@itwin/presentation-common 5.0.0-dev.8 → 5.0.0-dev.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -1
- package/Ruleset.schema.json +3 -258
- package/lib/cjs/presentation-common/AsyncTasks.d.ts +4 -4
- package/lib/cjs/presentation-common/AsyncTasks.d.ts.map +1 -1
- package/lib/cjs/presentation-common/AsyncTasks.js +5 -6
- package/lib/cjs/presentation-common/AsyncTasks.js.map +1 -1
- package/lib/cjs/presentation-common/EC.d.ts +36 -80
- package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
- package/lib/cjs/presentation-common/EC.js +1 -97
- package/lib/cjs/presentation-common/EC.js.map +1 -1
- package/lib/cjs/presentation-common/ElementProperties.js +16 -9
- package/lib/cjs/presentation-common/ElementProperties.js.map +1 -1
- package/lib/cjs/presentation-common/Error.d.ts +2 -0
- package/lib/cjs/presentation-common/Error.d.ts.map +1 -1
- package/lib/cjs/presentation-common/Error.js +2 -0
- package/lib/cjs/presentation-common/Error.js.map +1 -1
- package/lib/cjs/presentation-common/KeySet.d.ts +2 -2
- package/lib/cjs/presentation-common/KeySet.d.ts.map +1 -1
- package/lib/cjs/presentation-common/KeySet.js +9 -11
- package/lib/cjs/presentation-common/KeySet.js.map +1 -1
- package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js +4 -1
- package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
- package/lib/cjs/presentation-common/LabelDefinition.d.ts +0 -48
- package/lib/cjs/presentation-common/LabelDefinition.d.ts.map +1 -1
- package/lib/cjs/presentation-common/LabelDefinition.js +1 -44
- package/lib/cjs/presentation-common/LabelDefinition.js.map +1 -1
- package/lib/cjs/presentation-common/LocalizationHelper.js +1 -0
- package/lib/cjs/presentation-common/LocalizationHelper.js.map +1 -1
- package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts +31 -10
- package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
- package/lib/cjs/presentation-common/PresentationManagerOptions.js +0 -5
- package/lib/cjs/presentation-common/PresentationManagerOptions.js.map +1 -1
- package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts +9 -9
- package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
- package/lib/cjs/presentation-common/PresentationRpcInterface.js +36 -21
- package/lib/cjs/presentation-common/PresentationRpcInterface.js.map +1 -1
- package/lib/cjs/presentation-common/RegisteredRuleset.d.ts +3 -2
- package/lib/cjs/presentation-common/RegisteredRuleset.d.ts.map +1 -1
- package/lib/cjs/presentation-common/RegisteredRuleset.js +9 -1
- package/lib/cjs/presentation-common/RegisteredRuleset.js.map +1 -1
- package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts +9 -12
- package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
- package/lib/cjs/presentation-common/RpcRequestsHandler.js +37 -30
- package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
- package/lib/cjs/presentation-common/RulesetVariables.d.ts +1 -46
- package/lib/cjs/presentation-common/RulesetVariables.d.ts.map +1 -1
- package/lib/cjs/presentation-common/RulesetVariables.js.map +1 -1
- package/lib/cjs/presentation-common/Update.d.ts +2 -79
- package/lib/cjs/presentation-common/Update.d.ts.map +1 -1
- package/lib/cjs/presentation-common/Update.js +1 -104
- package/lib/cjs/presentation-common/Update.js.map +1 -1
- package/lib/cjs/presentation-common/Utils.d.ts +21 -0
- package/lib/cjs/presentation-common/Utils.d.ts.map +1 -1
- package/lib/cjs/presentation-common/Utils.js +57 -0
- package/lib/cjs/presentation-common/Utils.js.map +1 -1
- package/lib/cjs/presentation-common/content/Content.d.ts +0 -7
- package/lib/cjs/presentation-common/content/Content.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Content.js +5 -10
- package/lib/cjs/presentation-common/content/Content.js.map +1 -1
- package/lib/cjs/presentation-common/content/ContentTraverser.d.ts +1 -1
- package/lib/cjs/presentation-common/content/ContentTraverser.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/ContentTraverser.js +116 -28
- package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
- package/lib/cjs/presentation-common/content/Descriptor.d.ts +2 -31
- package/lib/cjs/presentation-common/content/Descriptor.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Descriptor.js +68 -22
- package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
- package/lib/cjs/presentation-common/content/Fields.d.ts +151 -27
- package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Fields.js +264 -140
- package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
- package/lib/cjs/presentation-common/content/Item.d.ts +26 -31
- package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Item.js +52 -67
- package/lib/cjs/presentation-common/content/Item.js.map +1 -1
- package/lib/cjs/presentation-common/content/Property.d.ts +2 -12
- package/lib/cjs/presentation-common/content/Property.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Property.js +0 -18
- package/lib/cjs/presentation-common/content/Property.js.map +1 -1
- package/lib/cjs/presentation-common/content/PropertyValueFormatter.js +3 -0
- package/lib/cjs/presentation-common/content/PropertyValueFormatter.js.map +1 -1
- package/lib/cjs/presentation-common/content/Value.d.ts +5 -107
- package/lib/cjs/presentation-common/content/Value.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Value.js +1 -215
- package/lib/cjs/presentation-common/content/Value.js.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts +1 -22
- package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js +0 -23
- package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/Key.d.ts +0 -83
- package/lib/cjs/presentation-common/hierarchy/Key.d.ts.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/Key.js +6 -24
- package/lib/cjs/presentation-common/hierarchy/Key.js.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/Node.d.ts +4 -107
- package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/Node.js +0 -99
- package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts +1 -67
- package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/NodePathElement.js +0 -117
- package/lib/cjs/presentation-common/hierarchy/NodePathElement.js.map +1 -1
- package/lib/cjs/presentation-common/rules/Rule.d.ts +0 -14
- package/lib/cjs/presentation-common/rules/Rule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/Rule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +0 -7
- package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/ContentSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts +1 -5
- package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +2 -28
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.js +1 -15
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +2 -0
- package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +0 -9
- package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/selection/SelectionScope.d.ts +3 -0
- package/lib/cjs/presentation-common/selection/SelectionScope.d.ts.map +1 -1
- package/lib/cjs/presentation-common/selection/SelectionScope.js +1 -0
- package/lib/cjs/presentation-common/selection/SelectionScope.js.map +1 -1
- package/lib/cjs/presentation-common.d.ts +1 -5
- package/lib/cjs/presentation-common.d.ts.map +1 -1
- package/lib/cjs/presentation-common.js +6 -5
- package/lib/cjs/presentation-common.js.map +1 -1
- package/lib/esm/presentation-common/AsyncTasks.d.ts +4 -4
- package/lib/esm/presentation-common/AsyncTasks.d.ts.map +1 -1
- package/lib/esm/presentation-common/AsyncTasks.js +5 -6
- package/lib/esm/presentation-common/AsyncTasks.js.map +1 -1
- package/lib/esm/presentation-common/EC.d.ts +36 -80
- package/lib/esm/presentation-common/EC.d.ts.map +1 -1
- package/lib/esm/presentation-common/EC.js +0 -96
- package/lib/esm/presentation-common/EC.js.map +1 -1
- package/lib/esm/presentation-common/ElementProperties.js +16 -9
- package/lib/esm/presentation-common/ElementProperties.js.map +1 -1
- package/lib/esm/presentation-common/Error.d.ts +2 -0
- package/lib/esm/presentation-common/Error.d.ts.map +1 -1
- package/lib/esm/presentation-common/Error.js +2 -0
- package/lib/esm/presentation-common/Error.js.map +1 -1
- package/lib/esm/presentation-common/KeySet.d.ts +2 -2
- package/lib/esm/presentation-common/KeySet.d.ts.map +1 -1
- package/lib/esm/presentation-common/KeySet.js +9 -11
- package/lib/esm/presentation-common/KeySet.js.map +1 -1
- package/lib/esm/presentation-common/KoqPropertyValueFormatter.js +5 -2
- package/lib/esm/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
- package/lib/esm/presentation-common/LabelDefinition.d.ts +0 -48
- package/lib/esm/presentation-common/LabelDefinition.d.ts.map +1 -1
- package/lib/esm/presentation-common/LabelDefinition.js +0 -43
- package/lib/esm/presentation-common/LabelDefinition.js.map +1 -1
- package/lib/esm/presentation-common/LocalizationHelper.js +1 -0
- package/lib/esm/presentation-common/LocalizationHelper.js.map +1 -1
- package/lib/esm/presentation-common/PresentationManagerOptions.d.ts +31 -10
- package/lib/esm/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
- package/lib/esm/presentation-common/PresentationManagerOptions.js +0 -4
- package/lib/esm/presentation-common/PresentationManagerOptions.js.map +1 -1
- package/lib/esm/presentation-common/PresentationRpcInterface.d.ts +9 -9
- package/lib/esm/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
- package/lib/esm/presentation-common/PresentationRpcInterface.js +38 -22
- package/lib/esm/presentation-common/PresentationRpcInterface.js.map +1 -1
- package/lib/esm/presentation-common/RegisteredRuleset.d.ts +3 -2
- package/lib/esm/presentation-common/RegisteredRuleset.d.ts.map +1 -1
- package/lib/esm/presentation-common/RegisteredRuleset.js +9 -1
- package/lib/esm/presentation-common/RegisteredRuleset.js.map +1 -1
- package/lib/esm/presentation-common/RpcRequestsHandler.d.ts +9 -12
- package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
- package/lib/esm/presentation-common/RpcRequestsHandler.js +39 -32
- package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
- package/lib/esm/presentation-common/RulesetVariables.d.ts +1 -46
- package/lib/esm/presentation-common/RulesetVariables.d.ts.map +1 -1
- package/lib/esm/presentation-common/RulesetVariables.js.map +1 -1
- package/lib/esm/presentation-common/Update.d.ts +2 -79
- package/lib/esm/presentation-common/Update.d.ts.map +1 -1
- package/lib/esm/presentation-common/Update.js +0 -103
- package/lib/esm/presentation-common/Update.js.map +1 -1
- package/lib/esm/presentation-common/Utils.d.ts +21 -0
- package/lib/esm/presentation-common/Utils.d.ts.map +1 -1
- package/lib/esm/presentation-common/Utils.js +54 -0
- package/lib/esm/presentation-common/Utils.js.map +1 -1
- package/lib/esm/presentation-common/content/Content.d.ts +0 -7
- package/lib/esm/presentation-common/content/Content.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Content.js +5 -10
- package/lib/esm/presentation-common/content/Content.js.map +1 -1
- package/lib/esm/presentation-common/content/ContentTraverser.d.ts +1 -1
- package/lib/esm/presentation-common/content/ContentTraverser.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/ContentTraverser.js +117 -29
- package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
- package/lib/esm/presentation-common/content/Descriptor.d.ts +2 -31
- package/lib/esm/presentation-common/content/Descriptor.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Descriptor.js +68 -22
- package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
- package/lib/esm/presentation-common/content/Fields.d.ts +151 -27
- package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Fields.js +264 -140
- package/lib/esm/presentation-common/content/Fields.js.map +1 -1
- package/lib/esm/presentation-common/content/Item.d.ts +26 -31
- package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Item.js +52 -67
- package/lib/esm/presentation-common/content/Item.js.map +1 -1
- package/lib/esm/presentation-common/content/Property.d.ts +2 -12
- package/lib/esm/presentation-common/content/Property.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Property.js +0 -18
- package/lib/esm/presentation-common/content/Property.js.map +1 -1
- package/lib/esm/presentation-common/content/PropertyValueFormatter.js +3 -0
- package/lib/esm/presentation-common/content/PropertyValueFormatter.js.map +1 -1
- package/lib/esm/presentation-common/content/Value.d.ts +5 -107
- package/lib/esm/presentation-common/content/Value.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Value.js +0 -214
- package/lib/esm/presentation-common/content/Value.js.map +1 -1
- package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts +1 -22
- package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
- package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js +1 -22
- package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
- package/lib/esm/presentation-common/hierarchy/Key.d.ts +0 -83
- package/lib/esm/presentation-common/hierarchy/Key.d.ts.map +1 -1
- package/lib/esm/presentation-common/hierarchy/Key.js +6 -24
- package/lib/esm/presentation-common/hierarchy/Key.js.map +1 -1
- package/lib/esm/presentation-common/hierarchy/Node.d.ts +4 -107
- package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
- package/lib/esm/presentation-common/hierarchy/Node.js +1 -98
- package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
- package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts +1 -67
- package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
- package/lib/esm/presentation-common/hierarchy/NodePathElement.js +1 -116
- package/lib/esm/presentation-common/hierarchy/NodePathElement.js.map +1 -1
- package/lib/esm/presentation-common/rules/Rule.d.ts +0 -14
- package/lib/esm/presentation-common/rules/Rule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/Rule.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +0 -7
- package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/ContentSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts +1 -5
- package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +2 -28
- package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/customization/GroupingRule.js +0 -14
- package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +2 -0
- package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +0 -9
- package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
- package/lib/esm/presentation-common/selection/SelectionScope.d.ts +3 -0
- package/lib/esm/presentation-common/selection/SelectionScope.d.ts.map +1 -1
- package/lib/esm/presentation-common/selection/SelectionScope.js +1 -0
- package/lib/esm/presentation-common/selection/SelectionScope.js.map +1 -1
- package/lib/esm/presentation-common.d.ts +1 -5
- package/lib/esm/presentation-common.d.ts.map +1 -1
- package/lib/esm/presentation-common.js +1 -5
- package/lib/esm/presentation-common.js.map +1 -1
- package/package.json +17 -18
- package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts +0 -45
- package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts.map +0 -1
- package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js +0 -10
- package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js.map +0 -1
- package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts +0 -30
- package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts.map +0 -1
- package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js +0 -10
- package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js.map +0 -1
- package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts +0 -41
- package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts.map +0 -1
- package/lib/cjs/presentation-common/rules/customization/LabelOverride.js +0 -10
- package/lib/cjs/presentation-common/rules/customization/LabelOverride.js.map +0 -1
- package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts +0 -49
- package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts.map +0 -1
- package/lib/cjs/presentation-common/rules/customization/StyleOverride.js +0 -10
- package/lib/cjs/presentation-common/rules/customization/StyleOverride.js.map +0 -1
- package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts +0 -45
- package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts.map +0 -1
- package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js +0 -9
- package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js.map +0 -1
- package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts +0 -30
- package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts.map +0 -1
- package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js +0 -9
- package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js.map +0 -1
- package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts +0 -41
- package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts.map +0 -1
- package/lib/esm/presentation-common/rules/customization/LabelOverride.js +0 -9
- package/lib/esm/presentation-common/rules/customization/LabelOverride.js.map +0 -1
- package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts +0 -49
- package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts.map +0 -1
- package/lib/esm/presentation-common/rules/customization/StyleOverride.js +0 -9
- package/lib/esm/presentation-common/rules/customization/StyleOverride.js.map +0 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Data structure that describes a [selection scope]($docs/presentation/unified-selection/index#selection-scopes).
|
|
6
6
|
* @public
|
|
7
|
+
* @deprecated in 5.0. Use `Props<typeof computeSelection>["scope"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
|
|
7
8
|
*/
|
|
8
9
|
export interface SelectionScope {
|
|
9
10
|
/** Unique ID of the selection scope */
|
|
@@ -16,6 +17,7 @@ export interface SelectionScope {
|
|
|
16
17
|
/**
|
|
17
18
|
* A data structure that defines properties for applying element selection scope.
|
|
18
19
|
* @public
|
|
20
|
+
* @deprecated in 5.0. Use `Props<typeof computeSelection>["scope"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
|
|
19
21
|
*/
|
|
20
22
|
export interface ElementSelectionScopeProps {
|
|
21
23
|
/** Identifies this as the "element" selection scope */
|
|
@@ -32,6 +34,7 @@ export interface ElementSelectionScopeProps {
|
|
|
32
34
|
/**
|
|
33
35
|
* A data structure that defines properties for applying a selection scope.
|
|
34
36
|
* @public
|
|
37
|
+
* @deprecated in 5.0. Use `Props<typeof computeSelection>["scope"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
|
|
35
38
|
*/
|
|
36
39
|
export type SelectionScopeProps = ElementSelectionScopeProps | {
|
|
37
40
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionScope.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectionScope.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,uDAAuD;IACvD,EAAE,EAAE,SAAS,CAAC;IACd;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,0BAA0B,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
5
6
|
/** @packageDocumentation
|
|
6
7
|
* @module UnifiedSelection
|
|
7
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionScope.js","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module UnifiedSelection\n */\n\n/**\n * Data structure that describes a [selection scope]($docs/presentation/unified-selection/index#selection-scopes).\n * @public\n */\nexport interface SelectionScope {\n /** Unique ID of the selection scope */\n id: string;\n /** Label */\n label: string;\n /** Description */\n description?: string;\n}\n\n/**\n * A data structure that defines properties for applying element selection scope.\n * @public\n */\nexport interface ElementSelectionScopeProps {\n /** Identifies this as the \"element\" selection scope */\n id: \"element\";\n /**\n * Specifies how far \"up\" we should walk to find the target element. When not specified or `0`,\n * the target element matches the request element. When `1`, the target element matches the direct parent element.\n * When `2`, the target element is parent of the parent element and so on. In all situations when this is `> 0`,\n * we're not walking further than the last existing element, for example when `ancestorLevel = 1` (direct parent\n * element is requested), but the request element doesn't have a parent, the request element is returned as the result.\n */\n ancestorLevel?: number;\n}\n\n/**\n * A data structure that defines properties for applying a selection scope.\n * @public\n */\nexport type SelectionScopeProps = ElementSelectionScopeProps | { id: string };\n"]}
|
|
1
|
+
{"version":3,"file":"SelectionScope.js","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,qDAAqD;AACrD;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/* eslint-disable @typescript-eslint/no-deprecated */\n/** @packageDocumentation\n * @module UnifiedSelection\n */\n\n/**\n * Data structure that describes a [selection scope]($docs/presentation/unified-selection/index#selection-scopes).\n * @public\n * @deprecated in 5.0. Use `Props<typeof computeSelection>[\"scope\"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport interface SelectionScope {\n /** Unique ID of the selection scope */\n id: string;\n /** Label */\n label: string;\n /** Description */\n description?: string;\n}\n\n/**\n * A data structure that defines properties for applying element selection scope.\n * @public\n * @deprecated in 5.0. Use `Props<typeof computeSelection>[\"scope\"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport interface ElementSelectionScopeProps {\n /** Identifies this as the \"element\" selection scope */\n id: \"element\";\n /**\n * Specifies how far \"up\" we should walk to find the target element. When not specified or `0`,\n * the target element matches the request element. When `1`, the target element matches the direct parent element.\n * When `2`, the target element is parent of the parent element and so on. In all situations when this is `> 0`,\n * we're not walking further than the last existing element, for example when `ancestorLevel = 1` (direct parent\n * element is requested), but the request element doesn't have a parent, the request element is returned as the result.\n */\n ancestorLevel?: number;\n}\n\n/**\n * A data structure that defines properties for applying a selection scope.\n * @public\n * @deprecated in 5.0. Use `Props<typeof computeSelection>[\"scope\"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport type SelectionScopeProps = ElementSelectionScopeProps | { id: string };\n"]}
|
|
@@ -15,7 +15,7 @@ export * from "./presentation-common/RegisteredRuleset";
|
|
|
15
15
|
export * from "./presentation-common/RulesetVariables";
|
|
16
16
|
export * from "./presentation-common/RulesetsFactory";
|
|
17
17
|
export * from "./presentation-common/Update";
|
|
18
|
-
export
|
|
18
|
+
export { DEFAULT_KEYS_BATCH_SIZE, Omit, PagedResponse, PartialBy, Subtract, ValuesDictionary, getInstancesCount, deepReplaceNullsToUndefined, createCancellableTimeoutPromise, } from "./presentation-common/Utils";
|
|
19
19
|
export * from "./presentation-common/PresentationIpcInterface";
|
|
20
20
|
export * from "./presentation-common/LocalizationHelper";
|
|
21
21
|
export * from "./presentation-common/InstanceFilterDefinition";
|
|
@@ -82,15 +82,11 @@ export * from "./presentation-common/rules/hierarchy/NodeArtifactsRule";
|
|
|
82
82
|
export * from "./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification";
|
|
83
83
|
export * from "./presentation-common/rules/hierarchy/RootNodeRule";
|
|
84
84
|
export * from "./presentation-common/rules/hierarchy/SubCondition";
|
|
85
|
-
export * from "./presentation-common/rules/customization/CheckBoxRule";
|
|
86
85
|
export * from "./presentation-common/rules/customization/CustomizationRule";
|
|
87
86
|
export * from "./presentation-common/rules/customization/ExtendedDataRule";
|
|
88
87
|
export * from "./presentation-common/rules/customization/GroupingRule";
|
|
89
|
-
export * from "./presentation-common/rules/customization/ImageIdOverride";
|
|
90
88
|
export * from "./presentation-common/rules/customization/InstanceLabelOverride";
|
|
91
|
-
export * from "./presentation-common/rules/customization/LabelOverride";
|
|
92
89
|
export * from "./presentation-common/rules/customization/SortingRule";
|
|
93
|
-
export * from "./presentation-common/rules/customization/StyleOverride";
|
|
94
90
|
export * from "./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification";
|
|
95
91
|
export * from "./presentation-common/rules/content/ContentRelatedInstancesSpecification";
|
|
96
92
|
export * from "./presentation-common/rules/content/ContentRule";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-common.d.ts","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,
|
|
1
|
+
{"version":3,"file":"presentation-common.d.ts","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,IAAI,EACJ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AACrC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAEhE;;;;;;GAMG;AACH,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AAEzD;;;;;GAKG;AACH,cAAc,gDAAgD,CAAC;AAE/D;;;;;GAKG;AACH,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sDAAsD,CAAC;AACrE,cAAc,yCAAyC,CAAC;AAExD;;;;;GAKG;AACH,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAEhE;;;;;GAKG;AACH,cAAc,qDAAqD,CAAC;AACpE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,mFAAmF,CAAC;AAClG,cAAc,sDAAsD,CAAC;AACrE,cAAc,yDAAyD,CAAC;AACxE,cAAc,yEAAyE,CAAC;AACxF,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,wDAAwD,CAAC;AACvE,cAAc,iEAAiE,CAAC;AAChF,cAAc,uDAAuD,CAAC;AACtE,cAAc,oFAAoF,CAAC;AACnG,cAAc,0EAA0E,CAAC;AACzF,cAAc,iDAAiD,CAAC;AAChE,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,wEAAwE,CAAC;AACvF,cAAc,qEAAqE,CAAC;AACpF,cAAc,iFAAiF,CAAC;AAChG,cAAc,+DAA+D,CAAC;AAC9E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,4EAA4E,CAAC;AAC3F,cAAc,2EAA2E,CAAC;AAC1F,cAAc,8EAA8E,CAAC;AAC7F,cAAc,iDAAiD,CAAC;AAChE,cAAc,0DAA0D,CAAC;AACzE,cAAc,mDAAmD,CAAC;AAClE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kDAAkD,CAAC;AACjE,cAAc,uCAAuC,CAAC"}
|
|
@@ -19,7 +19,7 @@ export * from "./presentation-common/RegisteredRuleset";
|
|
|
19
19
|
export * from "./presentation-common/RulesetVariables";
|
|
20
20
|
export * from "./presentation-common/RulesetsFactory";
|
|
21
21
|
export * from "./presentation-common/Update";
|
|
22
|
-
export
|
|
22
|
+
export { DEFAULT_KEYS_BATCH_SIZE, getInstancesCount, deepReplaceNullsToUndefined, createCancellableTimeoutPromise, } from "./presentation-common/Utils";
|
|
23
23
|
export * from "./presentation-common/PresentationIpcInterface";
|
|
24
24
|
export * from "./presentation-common/LocalizationHelper";
|
|
25
25
|
export * from "./presentation-common/InstanceFilterDefinition";
|
|
@@ -86,15 +86,11 @@ export * from "./presentation-common/rules/hierarchy/NodeArtifactsRule";
|
|
|
86
86
|
export * from "./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification";
|
|
87
87
|
export * from "./presentation-common/rules/hierarchy/RootNodeRule";
|
|
88
88
|
export * from "./presentation-common/rules/hierarchy/SubCondition";
|
|
89
|
-
export * from "./presentation-common/rules/customization/CheckBoxRule";
|
|
90
89
|
export * from "./presentation-common/rules/customization/CustomizationRule";
|
|
91
90
|
export * from "./presentation-common/rules/customization/ExtendedDataRule";
|
|
92
91
|
export * from "./presentation-common/rules/customization/GroupingRule";
|
|
93
|
-
export * from "./presentation-common/rules/customization/ImageIdOverride";
|
|
94
92
|
export * from "./presentation-common/rules/customization/InstanceLabelOverride";
|
|
95
|
-
export * from "./presentation-common/rules/customization/LabelOverride";
|
|
96
93
|
export * from "./presentation-common/rules/customization/SortingRule";
|
|
97
|
-
export * from "./presentation-common/rules/customization/StyleOverride";
|
|
98
94
|
export * from "./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification";
|
|
99
95
|
export * from "./presentation-common/rules/content/ContentRelatedInstancesSpecification";
|
|
100
96
|
export * from "./presentation-common/rules/content/ContentRule";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-common.js","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,
|
|
1
|
+
{"version":3,"file":"presentation-common.js","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,uBAAuB,EAMvB,iBAAiB,EACjB,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AACrC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAEhE;;;;;;GAMG;AACH,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AAEzD;;;;;GAKG;AACH,cAAc,gDAAgD,CAAC;AAE/D;;;;;GAKG;AACH,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sDAAsD,CAAC;AACrE,cAAc,yCAAyC,CAAC;AAExD;;;;;GAKG;AACH,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAEhE;;;;;GAKG;AACH,cAAc,qDAAqD,CAAC;AACpE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,mFAAmF,CAAC;AAClG,cAAc,sDAAsD,CAAC;AACrE,cAAc,yDAAyD,CAAC;AACxE,cAAc,yEAAyE,CAAC;AACxF,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,wDAAwD,CAAC;AACvE,cAAc,iEAAiE,CAAC;AAChF,cAAc,uDAAuD,CAAC;AACtE,cAAc,oFAAoF,CAAC;AACnG,cAAc,0EAA0E,CAAC;AACzF,cAAc,iDAAiD,CAAC;AAChE,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,wEAAwE,CAAC;AACvF,cAAc,qEAAqE,CAAC;AACpF,cAAc,iFAAiF,CAAC;AAChG,cAAc,+DAA+D,CAAC;AAC9E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,4EAA4E,CAAC;AAC3F,cAAc,2EAA2E,CAAC;AAC1F,cAAc,8EAA8E,CAAC;AAC7F,cAAc,iDAAiD,CAAC;AAChE,cAAc,0DAA0D,CAAC;AACzE,cAAc,mDAAmD,CAAC;AAClE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kDAAkD,CAAC;AACjE,cAAc,uCAAuC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used all across Presentation packages.\n */\nexport * from \"./presentation-common/AsyncTasks\";\nexport * from \"./presentation-common/Diagnostics\";\nexport * from \"./presentation-common/EC\";\nexport * from \"./presentation-common/Error\";\nexport * from \"./presentation-common/KeySet\";\nexport * from \"./presentation-common/LabelDefinition\";\nexport * from \"./presentation-common/PresentationManagerOptions\";\nexport * from \"./presentation-common/RegisteredRuleset\";\nexport * from \"./presentation-common/RulesetVariables\";\nexport * from \"./presentation-common/RulesetsFactory\";\nexport * from \"./presentation-common/Update\";\nexport {\n DEFAULT_KEYS_BATCH_SIZE,\n Omit,\n PagedResponse,\n PartialBy,\n Subtract,\n ValuesDictionary,\n getInstancesCount,\n deepReplaceNullsToUndefined,\n createCancellableTimeoutPromise,\n} from \"./presentation-common/Utils\";\nexport * from \"./presentation-common/PresentationIpcInterface\";\nexport * from \"./presentation-common/LocalizationHelper\";\nexport * from \"./presentation-common/InstanceFilterDefinition\";\nexport * from \"./presentation-common/KoqPropertyValueFormatter\";\n\n/**\n * @module RPC\n *\n * @docs-group-description RPC\n * Types used for RPC communication between frontend and backend. Generally should\n * only be used internally by presentation packages.\n */\nexport * from \"./presentation-common/PresentationRpcInterface\";\nexport * from \"./presentation-common/RpcRequestsHandler\";\n\n/**\n * @module UnifiedSelection\n *\n * @docs-group-description UnifiedSelection\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\n */\nexport * from \"./presentation-common/selection/SelectionScope\";\n\n/**\n * @module Content\n *\n * @docs-group-description Content\n * Types related to presentation [content]($docs/presentation/content/index.md).\n */\nexport * from \"./presentation-common/content/Category\";\nexport * from \"./presentation-common/content/Content\";\nexport * from \"./presentation-common/content/Descriptor\";\nexport * from \"./presentation-common/content/DisplayTypes\";\nexport * from \"./presentation-common/content/Editor\";\nexport * from \"./presentation-common/content/Fields\";\nexport * from \"./presentation-common/content/Item\";\nexport * from \"./presentation-common/content/Property\";\nexport * from \"./presentation-common/content/Renderer\";\nexport * from \"./presentation-common/content/TypeDescription\";\nexport * from \"./presentation-common/content/Value\";\nexport * from \"./presentation-common/content/ContentTraverser\";\nexport * from \"./presentation-common/content/PropertyValueFormatter\";\nexport * from \"./presentation-common/ElementProperties\";\n\n/**\n * @module Hierarchies\n *\n * @docs-group-description Hierarchies\n * Types related to presentation [hierarchies]($docs/presentation/hierarchies/index.md).\n */\nexport * from \"./presentation-common/hierarchy/HierarchyLevel\";\nexport * from \"./presentation-common/hierarchy/Key\";\nexport * from \"./presentation-common/hierarchy/Node\";\nexport * from \"./presentation-common/hierarchy/NodePathElement\";\n\n/**\n * @module PresentationRules\n *\n * @docs-group-description PresentationRules\n * Types for defining the presentation ruleset.\n */\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeRule\";\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/CustomNodeSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/NavigationRule\";\nexport * from \"./presentation-common/rules/hierarchy/NodeArtifactsRule\";\nexport * from \"./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/RootNodeRule\";\nexport * from \"./presentation-common/rules/hierarchy/SubCondition\";\nexport * from \"./presentation-common/rules/customization/CustomizationRule\";\nexport * from \"./presentation-common/rules/customization/ExtendedDataRule\";\nexport * from \"./presentation-common/rules/customization/GroupingRule\";\nexport * from \"./presentation-common/rules/customization/InstanceLabelOverride\";\nexport * from \"./presentation-common/rules/customization/SortingRule\";\nexport * from \"./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification\";\nexport * from \"./presentation-common/rules/content/ContentRelatedInstancesSpecification\";\nexport * from \"./presentation-common/rules/content/ContentRule\";\nexport * from \"./presentation-common/rules/content/ContentSpecification\";\nexport * from \"./presentation-common/rules/content/PropertySpecification\";\nexport * from \"./presentation-common/rules/content/SelectedNodeInstancesSpecification\";\nexport * from \"./presentation-common/rules/content/DefaultPropertyCategoryOverride\";\nexport * from \"./presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/ContentModifier\";\nexport * from \"./presentation-common/rules/content/modifiers/PropertyCategorySpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/PropertyEditorsSpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/CustomRendererSpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/RelatedPropertiesSpecification\";\nexport * from \"./presentation-common/rules/ClassSpecifications\";\nexport * from \"./presentation-common/rules/RelatedInstanceSpecification\";\nexport * from \"./presentation-common/rules/RelationshipDirection\";\nexport * from \"./presentation-common/rules/RelationshipPathSpecification\";\nexport * from \"./presentation-common/rules/Rule\";\nexport * from \"./presentation-common/rules/Ruleset\";\nexport * from \"./presentation-common/rules/SchemasSpecification\";\nexport * from \"./presentation-common/rules/Variables\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/presentation-common",
|
|
3
|
-
"version": "5.0.0-dev.
|
|
3
|
+
"version": "5.0.0-dev.82",
|
|
4
4
|
"description": "Common pieces for iModel.js presentation packages",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"module": "lib/esm/presentation-common.js",
|
|
23
23
|
"typings": "lib/cjs/presentation-common",
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@itwin/core-bentley": "
|
|
26
|
-
"@itwin/core-common": "
|
|
27
|
-
"@itwin/
|
|
28
|
-
"@itwin/
|
|
25
|
+
"@itwin/core-bentley": "5.0.0-dev.82",
|
|
26
|
+
"@itwin/core-common": "5.0.0-dev.82",
|
|
27
|
+
"@itwin/ecschema-metadata": "5.0.0-dev.82",
|
|
28
|
+
"@itwin/core-quantity": "5.0.0-dev.82"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@itwin/eslint-plugin": "5.0.0-dev.1",
|
|
@@ -43,17 +43,16 @@
|
|
|
43
43
|
"chai-as-promised": "^7.1.1",
|
|
44
44
|
"chai-jest-snapshot": "^2.0.0",
|
|
45
45
|
"chai-subset": "1.6.0",
|
|
46
|
-
"cpx2": "^
|
|
47
|
-
"cross-env": "^
|
|
46
|
+
"cpx2": "^8.0.0",
|
|
47
|
+
"cross-env": "^7.0.3",
|
|
48
48
|
"deep-equal": "^1",
|
|
49
49
|
"eslint": "^9.13.0",
|
|
50
50
|
"eslint-config-prettier": "^9.1.0",
|
|
51
51
|
"faker": "^4.1.0",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"nyc": "^15.1.0",
|
|
52
|
+
"mocha": "^11.1.0",
|
|
53
|
+
"nyc": "^17.1.0",
|
|
55
54
|
"prettier": "^3.2.5",
|
|
56
|
-
"rimraf": "^
|
|
55
|
+
"rimraf": "^6.0.1",
|
|
57
56
|
"sinon": "^17.0.2",
|
|
58
57
|
"sinon-chai": "^3.7.0",
|
|
59
58
|
"source-map-support": "^0.5.6",
|
|
@@ -61,11 +60,11 @@
|
|
|
61
60
|
"typescript": "~5.6.2",
|
|
62
61
|
"typescript-json-schema": "^0.55.0",
|
|
63
62
|
"yargs": "^17.4.0",
|
|
64
|
-
"@itwin/build-tools": "5.0.0-dev.
|
|
65
|
-
"@itwin/
|
|
66
|
-
"@itwin/core-
|
|
67
|
-
"@itwin/core-
|
|
68
|
-
"@itwin/
|
|
63
|
+
"@itwin/build-tools": "5.0.0-dev.82",
|
|
64
|
+
"@itwin/ecschema-metadata": "5.0.0-dev.82",
|
|
65
|
+
"@itwin/core-bentley": "5.0.0-dev.82",
|
|
66
|
+
"@itwin/core-quantity": "5.0.0-dev.82",
|
|
67
|
+
"@itwin/core-common": "5.0.0-dev.82"
|
|
69
68
|
},
|
|
70
69
|
"nyc": {
|
|
71
70
|
"extends": "./node_modules/@itwin/build-tools/.nycrc"
|
|
@@ -78,7 +77,7 @@
|
|
|
78
77
|
"build:public": "cpx \"./assets/**/*\" ./lib/public && npm run -s pseudolocalize:public",
|
|
79
78
|
"build:watch": "npm run -s ruleset-json-schema && npm run -s watch",
|
|
80
79
|
"watch": "npm run -s build:cjs -- -w",
|
|
81
|
-
"clean": "rimraf lib .rush/temp/package-deps*.json",
|
|
80
|
+
"clean": "rimraf -g lib .rush/temp/package-deps*.json",
|
|
82
81
|
"cover": "nyc npm -s test",
|
|
83
82
|
"docs": "npm run -s docs:reference && npm run -s docs:changelog",
|
|
84
83
|
"docs:changelog": "cpx ./CHANGELOG.md ../../generated-docs/presentation/presentation-common",
|
|
@@ -91,7 +90,7 @@
|
|
|
91
90
|
"lint": "eslint \"./src/**/*.ts\" 1>&2",
|
|
92
91
|
"pseudolocalize:assets": "betools pseudolocalize --englishDir ./assets/locales/en --out ./lib/cjs/assets/locales/en-PSEUDO",
|
|
93
92
|
"pseudolocalize:public": "betools pseudolocalize --englishDir ./assets/locales/en --out ./lib/public/locales/en-PSEUDO",
|
|
94
|
-
"test": "mocha --config
|
|
93
|
+
"test": "mocha --config ./.mocharc.json",
|
|
95
94
|
"test:watch": "npm -s test -- --reporter min --watch-extensions ts --watch",
|
|
96
95
|
"prettier:fix": "prettier --write ."
|
|
97
96
|
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module PresentationRules
|
|
3
|
-
*/
|
|
4
|
-
import { RuleBase } from "../Rule";
|
|
5
|
-
/**
|
|
6
|
-
* CheckBox rules provide a way to create a checkbox for specific types of ECInstance's.
|
|
7
|
-
*
|
|
8
|
-
* @see [CheckBox rule reference documentation page]($docs/presentation/customization/CheckBoxRule.md)
|
|
9
|
-
* @public
|
|
10
|
-
* @deprecated in 3.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
|
|
11
|
-
*/
|
|
12
|
-
export interface CheckBoxRule extends RuleBase {
|
|
13
|
-
/** Used for serializing to JSON. */
|
|
14
|
-
ruleType: "CheckBox";
|
|
15
|
-
/**
|
|
16
|
-
* Defines a condition for the rule, which needs to be met in order to execute it. Condition
|
|
17
|
-
* is an [ECExpression]($docs/presentation/advanced/ECExpressions.md), which can use
|
|
18
|
-
* a [limited set of symbols]($docs/presentation/customization/ECExpressions.md#rule-condition).
|
|
19
|
-
*/
|
|
20
|
-
condition?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Name of boolean type ECProperty which is bound with the check box state. When set, property
|
|
23
|
-
* value gets bound to checkbox state.
|
|
24
|
-
*
|
|
25
|
-
* @minLength 1
|
|
26
|
-
*/
|
|
27
|
-
propertyName?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Should property value be inversed for the check box state.
|
|
30
|
-
*
|
|
31
|
-
* **Note:** Only makes sense when bound to an ECProperty.
|
|
32
|
-
*/
|
|
33
|
-
useInversedPropertyValue?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Default value to use for the check box state
|
|
36
|
-
*
|
|
37
|
-
* **Note:** Only makes sense when *not* bound to an ECProperty.
|
|
38
|
-
*/
|
|
39
|
-
defaultValue?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Indicates whether check box is enabled or disabled.
|
|
42
|
-
*/
|
|
43
|
-
isEnabled?: string | boolean;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=CheckBoxRule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CheckBoxRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,oCAAoC;IACpC,QAAQ,EAAE,UAAU,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC9B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module PresentationRules
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
//# sourceMappingURL=CheckBoxRule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CheckBoxRule.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { RuleBase } from \"../Rule\";\n\n/**\n * CheckBox rules provide a way to create a checkbox for specific types of ECInstance's.\n *\n * @see [CheckBox rule reference documentation page]($docs/presentation/customization/CheckBoxRule.md)\n * @public\n * @deprecated in 3.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\nexport interface CheckBoxRule extends RuleBase {\n /** Used for serializing to JSON. */\n ruleType: \"CheckBox\";\n\n /**\n * Defines a condition for the rule, which needs to be met in order to execute it. Condition\n * is an [ECExpression]($docs/presentation/advanced/ECExpressions.md), which can use\n * a [limited set of symbols]($docs/presentation/customization/ECExpressions.md#rule-condition).\n */\n condition?: string;\n\n /**\n * Name of boolean type ECProperty which is bound with the check box state. When set, property\n * value gets bound to checkbox state.\n *\n * @minLength 1\n */\n propertyName?: string;\n\n /**\n * Should property value be inversed for the check box state.\n *\n * **Note:** Only makes sense when bound to an ECProperty.\n */\n useInversedPropertyValue?: boolean;\n\n /**\n * Default value to use for the check box state\n *\n * **Note:** Only makes sense when *not* bound to an ECProperty.\n */\n defaultValue?: boolean;\n\n /**\n * Indicates whether check box is enabled or disabled.\n */\n isEnabled?: string | boolean;\n}\n"]}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module PresentationRules
|
|
3
|
-
*/
|
|
4
|
-
import { RuleBase } from "../Rule";
|
|
5
|
-
/**
|
|
6
|
-
* ImageId override rules allow setting an image ID to specific types of ECInstances.
|
|
7
|
-
*
|
|
8
|
-
* @see [Image ID override reference documentation page]($docs/presentation/customization/ImageIdOverride.md)
|
|
9
|
-
* @public
|
|
10
|
-
* @deprecated in 3.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
|
|
11
|
-
*/
|
|
12
|
-
export interface ImageIdOverride extends RuleBase {
|
|
13
|
-
/** Used for serializing to JSON. */
|
|
14
|
-
ruleType: "ImageIdOverride";
|
|
15
|
-
/**
|
|
16
|
-
* Defines a condition for the rule, which needs to be met in order to execute it. Condition
|
|
17
|
-
* is an [ECExpression]($docs/presentation/advanced/ECExpressions.md), which can use
|
|
18
|
-
* a [limited set of symbols]($docs/presentation/customization/ECExpressions.md#rule-condition).
|
|
19
|
-
*/
|
|
20
|
-
condition?: string;
|
|
21
|
-
/**
|
|
22
|
-
* An expression whose result becomes the image ID. This is
|
|
23
|
-
* an [ECExpression]($docs/presentation/customization/ECExpressions.md), so ID can be
|
|
24
|
-
* defined/formatted dynamically based on the context - for example ECInstance property value.
|
|
25
|
-
*
|
|
26
|
-
* @minLength 1
|
|
27
|
-
*/
|
|
28
|
-
imageIdExpression: string;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=ImageIdOverride.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageIdOverride.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/ImageIdOverride.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C,oCAAoC;IACpC,QAAQ,EAAE,iBAAiB,CAAC;IAE5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module PresentationRules
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
//# sourceMappingURL=ImageIdOverride.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageIdOverride.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/ImageIdOverride.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { RuleBase } from \"../Rule\";\n\n/**\n * ImageId override rules allow setting an image ID to specific types of ECInstances.\n *\n * @see [Image ID override reference documentation page]($docs/presentation/customization/ImageIdOverride.md)\n * @public\n * @deprecated in 3.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\nexport interface ImageIdOverride extends RuleBase {\n /** Used for serializing to JSON. */\n ruleType: \"ImageIdOverride\";\n\n /**\n * Defines a condition for the rule, which needs to be met in order to execute it. Condition\n * is an [ECExpression]($docs/presentation/advanced/ECExpressions.md), which can use\n * a [limited set of symbols]($docs/presentation/customization/ECExpressions.md#rule-condition).\n */\n condition?: string;\n\n /**\n * An expression whose result becomes the image ID. This is\n * an [ECExpression]($docs/presentation/customization/ECExpressions.md), so ID can be\n * defined/formatted dynamically based on the context - for example ECInstance property value.\n *\n * @minLength 1\n */\n imageIdExpression: string;\n}\n"]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module PresentationRules
|
|
3
|
-
*/
|
|
4
|
-
import { RuleBase } from "../Rule";
|
|
5
|
-
/**
|
|
6
|
-
* Label override rules provide advanced ways to override instance labels and descriptions in
|
|
7
|
-
* exchange of some performance penalty.
|
|
8
|
-
*
|
|
9
|
-
* @see [Label override reference documentation page]($docs/presentation/customization/LabelOverride.md)
|
|
10
|
-
* @public
|
|
11
|
-
* @deprecated in 3.x. Use [[InstanceLabelOverride]] rule instead.
|
|
12
|
-
*/
|
|
13
|
-
export interface LabelOverride extends RuleBase {
|
|
14
|
-
/** Used for serializing to JSON. */
|
|
15
|
-
ruleType: "LabelOverride";
|
|
16
|
-
/**
|
|
17
|
-
* Defines a condition for the rule, which needs to be met in order to execute it. Condition
|
|
18
|
-
* is an [ECExpression]($docs/presentation/advanced/ECExpressions.md), which can use
|
|
19
|
-
* a [limited set of symbols]($docs/presentation/customization/ECExpressions.md#rule-condition).
|
|
20
|
-
*/
|
|
21
|
-
condition?: string;
|
|
22
|
-
/**
|
|
23
|
-
* An expression whose result becomes the label. This is
|
|
24
|
-
* an [ECExpression]($docs/presentation/customization/ECExpressions.md), so label
|
|
25
|
-
* can be defined/formatted dynamically based on the context - for example
|
|
26
|
-
* ECInstance property value. May be [localized]($docs/presentation/advanced/Localization.md).
|
|
27
|
-
*
|
|
28
|
-
* @minLength 1
|
|
29
|
-
*/
|
|
30
|
-
label?: string;
|
|
31
|
-
/**
|
|
32
|
-
* An expression whose result becomes the description. This is
|
|
33
|
-
* an [ECExpression]($docs/presentation/customization/ECExpressions.md), so
|
|
34
|
-
* description can be defined/formatted dynamically based on the context - for example
|
|
35
|
-
* ECInstance property value. May be [localized]($docs/presentation/advanced/Localization.md).
|
|
36
|
-
*
|
|
37
|
-
* @minLength 1
|
|
38
|
-
*/
|
|
39
|
-
description?: string;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=LabelOverride.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LabelOverride.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/LabelOverride.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;;;;;GAOG;AACH,MAAM,WAAW,aAAc,SAAQ,QAAQ;IAC7C,oCAAoC;IACpC,QAAQ,EAAE,eAAe,CAAC;IAE1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module PresentationRules
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
//# sourceMappingURL=LabelOverride.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LabelOverride.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/LabelOverride.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { RuleBase } from \"../Rule\";\n\n/**\n * Label override rules provide advanced ways to override instance labels and descriptions in\n * exchange of some performance penalty.\n *\n * @see [Label override reference documentation page]($docs/presentation/customization/LabelOverride.md)\n * @public\n * @deprecated in 3.x. Use [[InstanceLabelOverride]] rule instead.\n */\nexport interface LabelOverride extends RuleBase {\n /** Used for serializing to JSON. */\n ruleType: \"LabelOverride\";\n\n /**\n * Defines a condition for the rule, which needs to be met in order to execute it. Condition\n * is an [ECExpression]($docs/presentation/advanced/ECExpressions.md), which can use\n * a [limited set of symbols]($docs/presentation/customization/ECExpressions.md#rule-condition).\n */\n condition?: string;\n\n /**\n * An expression whose result becomes the label. This is\n * an [ECExpression]($docs/presentation/customization/ECExpressions.md), so label\n * can be defined/formatted dynamically based on the context - for example\n * ECInstance property value. May be [localized]($docs/presentation/advanced/Localization.md).\n *\n * @minLength 1\n */\n label?: string;\n\n /**\n * An expression whose result becomes the description. This is\n * an [ECExpression]($docs/presentation/customization/ECExpressions.md), so\n * description can be defined/formatted dynamically based on the context - for example\n * ECInstance property value. May be [localized]($docs/presentation/advanced/Localization.md).\n *\n * @minLength 1\n */\n description?: string;\n}\n"]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module PresentationRules
|
|
3
|
-
*/
|
|
4
|
-
import { RuleBase } from "../Rule";
|
|
5
|
-
/**
|
|
6
|
-
* Style override rules allow customizing display style of specific types of ECInstances.
|
|
7
|
-
*
|
|
8
|
-
* @see [Style override reference documentation page]($docs/presentation/customization/StyleOverride.md)
|
|
9
|
-
* @public
|
|
10
|
-
* @deprecated in 3.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
|
|
11
|
-
*/
|
|
12
|
-
export interface StyleOverride extends RuleBase {
|
|
13
|
-
/** Used for serializing to JSON. */
|
|
14
|
-
ruleType: "StyleOverride";
|
|
15
|
-
/**
|
|
16
|
-
* Defines a condition for the rule, which needs to be met in order to execute it. Condition
|
|
17
|
-
* is an [ECExpression]($docs/presentation/advanced/ECExpressions.md), which can use
|
|
18
|
-
* a [limited set of symbols]($docs/presentation/customization/ECExpressions.md#rule-condition).
|
|
19
|
-
*/
|
|
20
|
-
condition?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Foreground color that should be used for node. The value should be an [ECExpression]($docs/presentation/advanced/ECExpressions.md)
|
|
23
|
-
* whose result would evaluate to one the following formats:
|
|
24
|
-
* - color name (`Red`, `Blue`, etc.)
|
|
25
|
-
* - `rgb(255, 255, 255)`
|
|
26
|
-
* - `#0F0F0F`
|
|
27
|
-
*/
|
|
28
|
-
foreColor?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Background color that should be used for node. The value should be an [ECExpression]($docs/presentation/advanced/ECExpressions.md)
|
|
31
|
-
* whose result would evaluate to one the following formats:
|
|
32
|
-
* - color name (`Red`, `Blue`, etc.)
|
|
33
|
-
* - `rgb(255, 255, 255)`
|
|
34
|
-
* - `#0F0F0F`
|
|
35
|
-
*/
|
|
36
|
-
backColor?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Font style that should be used for node. The value should be an [ECExpression]($docs/presentation/advanced/ECExpressions.md)
|
|
39
|
-
* whose result would evaluate to one the following values:
|
|
40
|
-
* - `"Bold"`
|
|
41
|
-
* - `"Italic"`
|
|
42
|
-
* - `"Italic,Bold"`
|
|
43
|
-
* - `"Regular"`
|
|
44
|
-
*
|
|
45
|
-
* Defaults to `"Regular"`.
|
|
46
|
-
*/
|
|
47
|
-
fontStyle?: string;
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=StyleOverride.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StyleOverride.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/StyleOverride.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,WAAW,aAAc,SAAQ,QAAQ;IAC7C,oCAAoC;IACpC,QAAQ,EAAE,eAAe,CAAC;IAE1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module PresentationRules
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
//# sourceMappingURL=StyleOverride.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StyleOverride.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/StyleOverride.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { RuleBase } from \"../Rule\";\n\n/**\n * Style override rules allow customizing display style of specific types of ECInstances.\n *\n * @see [Style override reference documentation page]($docs/presentation/customization/StyleOverride.md)\n * @public\n * @deprecated in 3.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\nexport interface StyleOverride extends RuleBase {\n /** Used for serializing to JSON. */\n ruleType: \"StyleOverride\";\n\n /**\n * Defines a condition for the rule, which needs to be met in order to execute it. Condition\n * is an [ECExpression]($docs/presentation/advanced/ECExpressions.md), which can use\n * a [limited set of symbols]($docs/presentation/customization/ECExpressions.md#rule-condition).\n */\n condition?: string;\n\n /**\n * Foreground color that should be used for node. The value should be an [ECExpression]($docs/presentation/advanced/ECExpressions.md)\n * whose result would evaluate to one the following formats:\n * - color name (`Red`, `Blue`, etc.)\n * - `rgb(255, 255, 255)`\n * - `#0F0F0F`\n */\n foreColor?: string;\n\n /**\n * Background color that should be used for node. The value should be an [ECExpression]($docs/presentation/advanced/ECExpressions.md)\n * whose result would evaluate to one the following formats:\n * - color name (`Red`, `Blue`, etc.)\n * - `rgb(255, 255, 255)`\n * - `#0F0F0F`\n */\n backColor?: string;\n\n /**\n * Font style that should be used for node. The value should be an [ECExpression]($docs/presentation/advanced/ECExpressions.md)\n * whose result would evaluate to one the following values:\n * - `\"Bold\"`\n * - `\"Italic\"`\n * - `\"Italic,Bold\"`\n * - `\"Regular\"`\n *\n * Defaults to `\"Regular\"`.\n */\n fontStyle?: string;\n}\n"]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module PresentationRules
|
|
3
|
-
*/
|
|
4
|
-
import { RuleBase } from "../Rule";
|
|
5
|
-
/**
|
|
6
|
-
* CheckBox rules provide a way to create a checkbox for specific types of ECInstance's.
|
|
7
|
-
*
|
|
8
|
-
* @see [CheckBox rule reference documentation page]($docs/presentation/customization/CheckBoxRule.md)
|
|
9
|
-
* @public
|
|
10
|
-
* @deprecated in 3.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
|
|
11
|
-
*/
|
|
12
|
-
export interface CheckBoxRule extends RuleBase {
|
|
13
|
-
/** Used for serializing to JSON. */
|
|
14
|
-
ruleType: "CheckBox";
|
|
15
|
-
/**
|
|
16
|
-
* Defines a condition for the rule, which needs to be met in order to execute it. Condition
|
|
17
|
-
* is an [ECExpression]($docs/presentation/advanced/ECExpressions.md), which can use
|
|
18
|
-
* a [limited set of symbols]($docs/presentation/customization/ECExpressions.md#rule-condition).
|
|
19
|
-
*/
|
|
20
|
-
condition?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Name of boolean type ECProperty which is bound with the check box state. When set, property
|
|
23
|
-
* value gets bound to checkbox state.
|
|
24
|
-
*
|
|
25
|
-
* @minLength 1
|
|
26
|
-
*/
|
|
27
|
-
propertyName?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Should property value be inversed for the check box state.
|
|
30
|
-
*
|
|
31
|
-
* **Note:** Only makes sense when bound to an ECProperty.
|
|
32
|
-
*/
|
|
33
|
-
useInversedPropertyValue?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Default value to use for the check box state
|
|
36
|
-
*
|
|
37
|
-
* **Note:** Only makes sense when *not* bound to an ECProperty.
|
|
38
|
-
*/
|
|
39
|
-
defaultValue?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Indicates whether check box is enabled or disabled.
|
|
42
|
-
*/
|
|
43
|
-
isEnabled?: string | boolean;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=CheckBoxRule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CheckBoxRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,oCAAoC;IACpC,QAAQ,EAAE,UAAU,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC9B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
/** @packageDocumentation
|
|
6
|
-
* @module PresentationRules
|
|
7
|
-
*/
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=CheckBoxRule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CheckBoxRule.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { RuleBase } from \"../Rule\";\n\n/**\n * CheckBox rules provide a way to create a checkbox for specific types of ECInstance's.\n *\n * @see [CheckBox rule reference documentation page]($docs/presentation/customization/CheckBoxRule.md)\n * @public\n * @deprecated in 3.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\nexport interface CheckBoxRule extends RuleBase {\n /** Used for serializing to JSON. */\n ruleType: \"CheckBox\";\n\n /**\n * Defines a condition for the rule, which needs to be met in order to execute it. Condition\n * is an [ECExpression]($docs/presentation/advanced/ECExpressions.md), which can use\n * a [limited set of symbols]($docs/presentation/customization/ECExpressions.md#rule-condition).\n */\n condition?: string;\n\n /**\n * Name of boolean type ECProperty which is bound with the check box state. When set, property\n * value gets bound to checkbox state.\n *\n * @minLength 1\n */\n propertyName?: string;\n\n /**\n * Should property value be inversed for the check box state.\n *\n * **Note:** Only makes sense when bound to an ECProperty.\n */\n useInversedPropertyValue?: boolean;\n\n /**\n * Default value to use for the check box state\n *\n * **Note:** Only makes sense when *not* bound to an ECProperty.\n */\n defaultValue?: boolean;\n\n /**\n * Indicates whether check box is enabled or disabled.\n */\n isEnabled?: string | boolean;\n}\n"]}
|