/
CustomizationRule.ts
47 lines (45 loc) · 2.12 KB
/
CustomizationRule.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module PresentationRules
*/
import { NodeArtifactsRule } from "../hierarchy/NodeArtifactsRule";
import { CheckBoxRule } from "./CheckBoxRule";
import { ExtendedDataRule } from "./ExtendedDataRule";
import { GroupingRule } from "./GroupingRule";
import { ImageIdOverride } from "./ImageIdOverride";
import { InstanceLabelOverride } from "./InstanceLabelOverride";
import { LabelOverride } from "./LabelOverride";
import { SortingRule } from "./SortingRule";
import { StyleOverride } from "./StyleOverride";
/**
* Customization rules allow customizing each node or content item separately.
* Most of the rules have a `condition` property which uses [ECExpressions]($docs/presentation/customization/ECExpressions.md)
* for conditional rule filtering.
*
* **Nested customization rules:**
*
* Customization rules may be specified at ruleset level, in which case they're
* applied to all content produced by the ruleset, or nested under navigation rules,
* in which case they're applied only for nodes created by those rules.
*
* **Customization rule priorities:**
*
* Customization rules have a `priority` attribute which defines the order in which they're applied. If priorities match,
* rules engine looks at the nesting level - the deeper the rule is nested, the higher is its `priority`.
* If the nesting levels also match, the rule defined first wins.
*
* @public
*/
export declare type CustomizationRule =
| InstanceLabelOverride
| CheckBoxRule // eslint-disable-line deprecation/deprecation
| GroupingRule
| ImageIdOverride // eslint-disable-line deprecation/deprecation
| LabelOverride // eslint-disable-line deprecation/deprecation
| SortingRule
| StyleOverride // eslint-disable-line deprecation/deprecation
| ExtendedDataRule
| NodeArtifactsRule;