@itwin/presentation-common 3.2.0-dev.7 → 3.2.0-dev.70
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 +33 -1
- package/Ruleset.schema.json +297 -290
- package/lib/cjs/presentation-common/CommonLoggerCategory.d.ts +13 -0
- package/lib/cjs/presentation-common/CommonLoggerCategory.d.ts.map +1 -0
- package/lib/cjs/presentation-common/CommonLoggerCategory.js +21 -0
- package/lib/cjs/presentation-common/CommonLoggerCategory.js.map +1 -0
- package/lib/cjs/presentation-common/EC.d.ts +36 -0
- package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
- package/lib/cjs/presentation-common/EC.js +38 -4
- package/lib/cjs/presentation-common/EC.js.map +1 -1
- package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
- package/lib/cjs/presentation-common/RpcRequestsHandler.js +26 -0
- package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
- package/lib/cjs/presentation-common/Utils.d.ts +0 -2
- package/lib/cjs/presentation-common/Utils.d.ts.map +1 -1
- package/lib/cjs/presentation-common/Utils.js +1 -25
- package/lib/cjs/presentation-common/Utils.js.map +1 -1
- package/lib/cjs/presentation-common/content/ContentTraverser.js +2 -2
- package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
- package/lib/cjs/presentation-common/content/Descriptor.d.ts +9 -6
- package/lib/cjs/presentation-common/content/Descriptor.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Descriptor.js +4 -1
- package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
- package/lib/cjs/presentation-common/content/Fields.d.ts +3 -3
- package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Fields.js +11 -3
- package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
- package/lib/cjs/presentation-common/content/Item.d.ts +7 -3
- package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Item.js +2 -2
- package/lib/cjs/presentation-common/content/Item.js.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/Node.d.ts +35 -7
- package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
- package/lib/cjs/presentation-common/rules/ClassSpecifications.d.ts +10 -8
- package/lib/cjs/presentation-common/rules/ClassSpecifications.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/ClassSpecifications.js.map +1 -1
- package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts +10 -62
- package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts +20 -13
- package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/Rule.d.ts +11 -12
- 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/Ruleset.d.ts +6 -5
- package/lib/cjs/presentation-common/rules/Ruleset.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/Ruleset.js.map +1 -1
- package/lib/cjs/presentation-common/rules/SchemasSpecification.d.ts +5 -2
- package/lib/cjs/presentation-common/rules/SchemasSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/SchemasSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/Variables.d.ts +3 -3
- package/lib/cjs/presentation-common/rules/Variables.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +12 -14
- package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +6 -8
- package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts +15 -10
- package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/ContentRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +11 -5
- 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/content/DefaultPropertyCategoryOverride.d.ts +3 -4
- package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/PropertySpecification.d.ts +45 -21
- package/lib/cjs/presentation-common/rules/content/PropertySpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/PropertySpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +5 -10
- package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts +7 -10
- package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts +22 -12
- package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.d.ts +8 -2
- package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +30 -10
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +9 -4
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +25 -21
- package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js +5 -7
- package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts +8 -10
- package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts +6 -3
- 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/ExtendedDataRule.d.ts +9 -24
- package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +55 -72
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.js +1 -1
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts +9 -9
- package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts +33 -22
- package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js +1 -1
- package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts +14 -16
- package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/LabelOverride.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts +16 -29
- package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/SortingRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts +11 -11
- package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/StyleOverride.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +4 -5
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +30 -32
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +11 -6
- 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/CustomQueryInstanceNodesSpecification.d.ts +19 -20
- package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +14 -10
- 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/rules/hierarchy/NavigationRule.d.ts +16 -15
- package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +9 -28
- package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +8 -9
- package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts +3 -4
- package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts +17 -10
- package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
- package/lib/cjs/presentation-common/selection/SelectionScope.d.ts +1 -1
- package/lib/cjs/presentation-common/selection/SelectionScope.js.map +1 -1
- package/lib/cjs/presentation-common.d.ts +3 -3
- package/lib/cjs/presentation-common.js +3 -3
- package/lib/cjs/presentation-common.js.map +1 -1
- package/lib/esm/presentation-common/CommonLoggerCategory.d.ts +13 -0
- package/lib/esm/presentation-common/CommonLoggerCategory.d.ts.map +1 -0
- package/lib/esm/presentation-common/CommonLoggerCategory.js +18 -0
- package/lib/esm/presentation-common/CommonLoggerCategory.js.map +1 -0
- package/lib/esm/presentation-common/EC.d.ts +36 -0
- package/lib/esm/presentation-common/EC.d.ts.map +1 -1
- package/lib/esm/presentation-common/EC.js +37 -3
- package/lib/esm/presentation-common/EC.js.map +1 -1
- package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
- package/lib/esm/presentation-common/RpcRequestsHandler.js +27 -1
- package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
- package/lib/esm/presentation-common/Utils.d.ts +0 -2
- package/lib/esm/presentation-common/Utils.d.ts.map +1 -1
- package/lib/esm/presentation-common/Utils.js +0 -4
- package/lib/esm/presentation-common/Utils.js.map +1 -1
- package/lib/esm/presentation-common/content/ContentTraverser.js +2 -2
- package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
- package/lib/esm/presentation-common/content/Descriptor.d.ts +9 -6
- package/lib/esm/presentation-common/content/Descriptor.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Descriptor.js +4 -1
- package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
- package/lib/esm/presentation-common/content/Fields.d.ts +3 -3
- package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Fields.js +11 -3
- package/lib/esm/presentation-common/content/Fields.js.map +1 -1
- package/lib/esm/presentation-common/content/Item.d.ts +7 -3
- package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Item.js +2 -2
- package/lib/esm/presentation-common/content/Item.js.map +1 -1
- package/lib/esm/presentation-common/hierarchy/Node.d.ts +35 -7
- package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
- package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
- package/lib/esm/presentation-common/rules/ClassSpecifications.d.ts +10 -8
- package/lib/esm/presentation-common/rules/ClassSpecifications.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/ClassSpecifications.js.map +1 -1
- package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts +10 -62
- package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts +20 -13
- package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/Rule.d.ts +11 -12
- 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/Ruleset.d.ts +6 -5
- package/lib/esm/presentation-common/rules/Ruleset.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/Ruleset.js.map +1 -1
- package/lib/esm/presentation-common/rules/SchemasSpecification.d.ts +5 -2
- package/lib/esm/presentation-common/rules/SchemasSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/SchemasSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/Variables.d.ts +3 -3
- package/lib/esm/presentation-common/rules/Variables.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +12 -14
- package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +6 -8
- package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/ContentRule.d.ts +15 -10
- package/lib/esm/presentation-common/rules/content/ContentRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/ContentRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +11 -5
- 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/content/DefaultPropertyCategoryOverride.d.ts +3 -4
- package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/PropertySpecification.d.ts +45 -21
- package/lib/esm/presentation-common/rules/content/PropertySpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/PropertySpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +5 -10
- package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts +7 -10
- package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts +22 -12
- package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.d.ts +8 -2
- package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +30 -10
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +9 -4
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +25 -21
- package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js +5 -7
- package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts +8 -10
- package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts +6 -3
- 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/ExtendedDataRule.d.ts +9 -24
- package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +55 -72
- package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/customization/GroupingRule.js +1 -1
- package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts +9 -9
- package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts +33 -22
- package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js +1 -1
- package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts +14 -16
- package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/customization/LabelOverride.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts +16 -29
- package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/customization/SortingRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts +11 -11
- package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/customization/StyleOverride.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +4 -5
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +30 -32
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +11 -6
- 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/CustomQueryInstanceNodesSpecification.d.ts +19 -20
- package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +14 -10
- 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/rules/hierarchy/NavigationRule.d.ts +16 -15
- package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +9 -28
- package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +8 -9
- package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts +3 -4
- package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts +17 -10
- package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
- package/lib/esm/presentation-common/selection/SelectionScope.d.ts +1 -1
- package/lib/esm/presentation-common/selection/SelectionScope.js.map +1 -1
- package/lib/esm/presentation-common.d.ts +3 -3
- package/lib/esm/presentation-common.js +3 -3
- package/lib/esm/presentation-common.js.map +1 -1
- package/package.json +9 -10
package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts
CHANGED
|
@@ -4,20 +4,18 @@
|
|
|
4
4
|
import { RelationshipPathSpecification } from "../../RelationshipPathSpecification";
|
|
5
5
|
import { PropertySpecification } from "../PropertySpecification";
|
|
6
6
|
/**
|
|
7
|
-
* Meaning of the relationship
|
|
7
|
+
* Meaning of the relationship.
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
10
|
export declare enum RelationshipMeaning {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* primary instance.
|
|
12
|
+
* The properties should be displayed as if they belonged to the [primary instance]($docs/presentation/content/Terminology.md#primary-instance).
|
|
13
|
+
* Generally that means they assigned a category, that's nested under the default category.
|
|
15
14
|
*/
|
|
16
15
|
SameInstance = "SameInstance",
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* differently, e.g. put them under a different category, etc.
|
|
17
|
+
* The properties should be distinguished from properties of the [primary instance]($docs/presentation/content/Terminology.md#primary-instance)
|
|
18
|
+
* and shown separately to make it clear they belong to another instance. Generally that means they're assigned a separate root category.
|
|
21
19
|
*/
|
|
22
20
|
RelatedInstance = "RelatedInstance"
|
|
23
21
|
}
|
|
@@ -37,45 +35,51 @@ export declare enum RelatedPropertiesSpecialValues {
|
|
|
37
35
|
All = "*"
|
|
38
36
|
}
|
|
39
37
|
/**
|
|
40
|
-
*
|
|
38
|
+
* This specification allows including related instance properties into the content.
|
|
41
39
|
*
|
|
42
|
-
* @see [
|
|
40
|
+
* @see [Related properties specification specification reference documentation page]($docs/presentation/content/RelatedPropertiesSpecification.md)
|
|
43
41
|
* @public
|
|
44
42
|
*/
|
|
45
43
|
export interface RelatedPropertiesSpecification {
|
|
46
44
|
/**
|
|
47
|
-
*
|
|
45
|
+
* Specifies a chain of [relationship path specifications]($docs/presentation/RelationshipPathSpecification.md) that
|
|
46
|
+
* forms a path from the content instance to the related instance(s) whose properties should additionally be loaded.
|
|
48
47
|
*/
|
|
49
48
|
propertiesSource: RelationshipPathSpecification;
|
|
50
49
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
50
|
+
* Condition for filtering instances targeted by the [[propertiesSource]] attribute.
|
|
51
|
+
*
|
|
52
|
+
* **See:** [ECExpressions available in instance filter]($docs/presentation/Content/ECExpressions.md#instance-filter)
|
|
53
|
+
*/
|
|
54
|
+
instanceFilter?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The attribute tells whether the target class specified through [[propertiesSource]] should be handled
|
|
57
|
+
* polymorphically. This means properties of the concrete class are loaded in addition to properties of the
|
|
58
|
+
* target class itself.
|
|
54
59
|
*
|
|
55
60
|
* @note There's a difference between loading properties and instances polymorphically. This attribute
|
|
56
61
|
* only controls polymorphism of properties, while instances are always looked up in a polymorphic fashion.
|
|
57
62
|
*/
|
|
58
63
|
handleTargetClassPolymorphically?: boolean;
|
|
59
64
|
/**
|
|
60
|
-
* Should field containing related properties be
|
|
61
|
-
*
|
|
65
|
+
* Should the field containing related properties be assigned the [[NestedContentField.autoExpand]]
|
|
66
|
+
* attribute. The attribute tells UI components showing the properties that they should be initially displayed in the expanded state.
|
|
62
67
|
*/
|
|
63
68
|
autoExpand?: boolean;
|
|
64
69
|
/**
|
|
65
|
-
*
|
|
70
|
+
* Specifies whether the specification should be ignored if another higher priority specification for the same relationship already exists.
|
|
66
71
|
* @beta
|
|
67
72
|
*/
|
|
68
73
|
skipIfDuplicate?: boolean;
|
|
69
74
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
75
|
+
* The attribute describes what the related properties mean to the [primary instance]($docs/presentation/content/Terminology.md#primary-instance)
|
|
76
|
+
* whose properties are displayed.
|
|
72
77
|
*/
|
|
73
78
|
relationshipMeaning?: RelationshipMeaning;
|
|
74
|
-
/**
|
|
79
|
+
/** The attribute allows loading additional related properties that are related to the target instance of this specification. */
|
|
75
80
|
nestedRelatedProperties?: RelatedPropertiesSpecification[];
|
|
76
81
|
/**
|
|
77
|
-
*
|
|
78
|
-
* properties are included if this attribute is not specified.
|
|
82
|
+
* List of names or definitions of related class properties that should be included in the content.
|
|
79
83
|
*/
|
|
80
84
|
properties?: Array<string | PropertySpecification> | RelatedPropertiesSpecialValues;
|
|
81
85
|
}
|
package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelatedPropertiesSpecification.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE;;;GAGG;AACH,oBAAY,mBAAmB;IAC7B
|
|
1
|
+
{"version":3,"file":"RelatedPropertiesSpecification.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE;;;GAGG;AACH,oBAAY,mBAAmB;IAC7B;;;OAGG;IACH,YAAY,iBAAiB;IAE7B;;;OAGG;IACH,eAAe,oBAAoB;CACpC;AAED;;;GAGG;AACH,oBAAY,8BAA8B;IACxC;;;OAGG;IACH,IAAI,WAAW;IAEf;;OAEG;IACH,GAAG,MAAM;CACV;AAED;;;;;GAKG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;;OAGG;IACH,gBAAgB,EAAE,6BAA6B,CAAC;IAEhD;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;OAOG;IACH,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAE3C;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAE1C,gIAAgI;IAChI,uBAAuB,CAAC,EAAE,8BAA8B,EAAE,CAAC;IAE3D;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,qBAAqB,CAAC,GAAG,8BAA8B,CAAC;CACrF"}
|
package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js
CHANGED
|
@@ -9,21 +9,19 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.RelatedPropertiesSpecialValues = exports.RelationshipMeaning = void 0;
|
|
11
11
|
/**
|
|
12
|
-
* Meaning of the relationship
|
|
12
|
+
* Meaning of the relationship.
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
15
|
var RelationshipMeaning;
|
|
16
16
|
(function (RelationshipMeaning) {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* primary instance.
|
|
18
|
+
* The properties should be displayed as if they belonged to the [primary instance]($docs/presentation/content/Terminology.md#primary-instance).
|
|
19
|
+
* Generally that means they assigned a category, that's nested under the default category.
|
|
21
20
|
*/
|
|
22
21
|
RelationshipMeaning["SameInstance"] = "SameInstance";
|
|
23
22
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* differently, e.g. put them under a different category, etc.
|
|
23
|
+
* The properties should be distinguished from properties of the [primary instance]($docs/presentation/content/Terminology.md#primary-instance)
|
|
24
|
+
* and shown separately to make it clear they belong to another instance. Generally that means they're assigned a separate root category.
|
|
27
25
|
*/
|
|
28
26
|
RelationshipMeaning["RelatedInstance"] = "RelatedInstance";
|
|
29
27
|
})(RelationshipMeaning = exports.RelationshipMeaning || (exports.RelationshipMeaning = {}));
|
package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelatedPropertiesSpecification.js","sourceRoot":"","sources":["../../../../../../src/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAKH;;;GAGG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"RelatedPropertiesSpecification.js","sourceRoot":"","sources":["../../../../../../src/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAKH;;;GAGG;AACH,IAAY,mBAYX;AAZD,WAAY,mBAAmB;IAC7B;;;OAGG;IACH,oDAA6B,CAAA;IAE7B;;;OAGG;IACH,0DAAmC,CAAA;AACrC,CAAC,EAZW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAY9B;AAED;;;GAGG;AACH,IAAY,8BAWX;AAXD,WAAY,8BAA8B;IACxC;;;OAGG;IACH,iDAAe,CAAA;IAEf;;OAEG;IACH,2CAAS,CAAA;AACX,CAAC,EAXW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAWzC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { RelationshipPathSpecification } from \"../../RelationshipPathSpecification\";\r\nimport { PropertySpecification } from \"../PropertySpecification\";\r\n\r\n/**\r\n * Meaning of the relationship.\r\n * @public\r\n */\r\nexport enum RelationshipMeaning {\r\n /**\r\n * The properties should be displayed as if they belonged to the [primary instance]($docs/presentation/content/Terminology.md#primary-instance).\r\n * Generally that means they assigned a category, that's nested under the default category.\r\n */\r\n SameInstance = \"SameInstance\",\r\n\r\n /**\r\n * The properties should be distinguished from properties of the [primary instance]($docs/presentation/content/Terminology.md#primary-instance)\r\n * and shown separately to make it clear they belong to another instance. Generally that means they're assigned a separate root category.\r\n */\r\n RelatedInstance = \"RelatedInstance\",\r\n}\r\n\r\n/**\r\n * Special values that can be used in [[RelatedPropertiesSpecification.propertyNames]]\r\n * @public\r\n */\r\nexport enum RelatedPropertiesSpecialValues {\r\n /**\r\n * Used to specify that no properties should be included. Usually\r\n * used together with [[RelatedPropertiesSpecification.nestedRelatedProperties]]\r\n */\r\n None = \"_none_\",\r\n\r\n /**\r\n * Used to specify that all properties should be included.\r\n */\r\n All = \"*\",\r\n}\r\n\r\n/**\r\n * This specification allows including related instance properties into the content.\r\n *\r\n * @see [Related properties specification specification reference documentation page]($docs/presentation/content/RelatedPropertiesSpecification.md)\r\n * @public\r\n */\r\nexport interface RelatedPropertiesSpecification {\r\n /**\r\n * Specifies a chain of [relationship path specifications]($docs/presentation/RelationshipPathSpecification.md) that\r\n * forms a path from the content instance to the related instance(s) whose properties should additionally be loaded.\r\n */\r\n propertiesSource: RelationshipPathSpecification;\r\n\r\n /**\r\n * Condition for filtering instances targeted by the [[propertiesSource]] attribute.\r\n *\r\n * **See:** [ECExpressions available in instance filter]($docs/presentation/Content/ECExpressions.md#instance-filter)\r\n */\r\n instanceFilter?: string;\r\n\r\n /**\r\n * The attribute tells whether the target class specified through [[propertiesSource]] should be handled\r\n * polymorphically. This means properties of the concrete class are loaded in addition to properties of the\r\n * target class itself.\r\n *\r\n * @note There's a difference between loading properties and instances polymorphically. This attribute\r\n * only controls polymorphism of properties, while instances are always looked up in a polymorphic fashion.\r\n */\r\n handleTargetClassPolymorphically?: boolean;\r\n\r\n /**\r\n * Should the field containing related properties be assigned the [[NestedContentField.autoExpand]]\r\n * attribute. The attribute tells UI components showing the properties that they should be initially displayed in the expanded state.\r\n */\r\n autoExpand?: boolean;\r\n\r\n /**\r\n * Specifies whether the specification should be ignored if another higher priority specification for the same relationship already exists.\r\n * @beta\r\n */\r\n skipIfDuplicate?: boolean;\r\n\r\n /**\r\n * The attribute describes what the related properties mean to the [primary instance]($docs/presentation/content/Terminology.md#primary-instance)\r\n * whose properties are displayed.\r\n */\r\n relationshipMeaning?: RelationshipMeaning;\r\n\r\n /** The attribute allows loading additional related properties that are related to the target instance of this specification. */\r\n nestedRelatedProperties?: RelatedPropertiesSpecification[];\r\n\r\n /**\r\n * List of names or definitions of related class properties that should be included in the content.\r\n */\r\n properties?: Array<string | PropertySpecification> | RelatedPropertiesSpecialValues;\r\n}\r\n"]}
|
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module PresentationRules
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { RuleBase, RuleTypes } from "../Rule";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* CheckBox rules provide a way to create a checkbox for specific types of ECInstance's.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* If [[propertyName]] is not set, then [[defaultValue]] is used for default check box state.
|
|
10
|
-
*
|
|
11
|
-
* @see [More details]($docs/presentation/Customization/CheckBoxRule.md)
|
|
8
|
+
* @see [CheckBox rule reference documentation page]($docs/presentation/customization/CheckBoxRule.md)
|
|
12
9
|
* @public
|
|
10
|
+
* @deprecated Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
|
|
13
11
|
*/
|
|
14
|
-
export interface CheckBoxRule extends RuleBase
|
|
12
|
+
export interface CheckBoxRule extends RuleBase {
|
|
15
13
|
/** Used for serializing to JSON. */
|
|
16
14
|
ruleType: RuleTypes.CheckBox;
|
|
17
15
|
/**
|
|
18
16
|
* Defines a condition for the rule, which needs to be met in order to execute it. Condition
|
|
19
|
-
* is an [ECExpression]($docs/presentation/
|
|
17
|
+
* is an [ECExpression]($docs/presentation/advanced/ECExpressions.md), which can use
|
|
20
18
|
* a [limited set of symbols]($docs/presentation/customization/ECExpressions.md#rule-condition).
|
|
21
19
|
*/
|
|
22
20
|
condition?: string;
|
|
23
21
|
/**
|
|
24
|
-
* Name of boolean type ECProperty which is bound with the check box state. When set,
|
|
25
|
-
*
|
|
22
|
+
* Name of boolean type ECProperty which is bound with the check box state. When set, property
|
|
23
|
+
* value gets bound to checkbox state.
|
|
26
24
|
*
|
|
27
25
|
* @minLength 1
|
|
28
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CheckBoxRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,
|
|
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,SAAS,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,oCAAoC;IACpC,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC;IAE7B;;;;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CheckBoxRule.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport {
|
|
1
|
+
{"version":3,"file":"CheckBoxRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CheckBoxRule.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { RuleBase, RuleTypes } from \"../Rule\";\r\n\r\n/**\r\n * CheckBox rules provide a way to create a checkbox for specific types of ECInstance's.\r\n *\r\n * @see [CheckBox rule reference documentation page]($docs/presentation/customization/CheckBoxRule.md)\r\n * @public\r\n * @deprecated Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\r\n */\r\nexport interface CheckBoxRule extends RuleBase {\r\n /** Used for serializing to JSON. */\r\n ruleType: RuleTypes.CheckBox;\r\n\r\n /**\r\n * Defines a condition for the rule, which needs to be met in order to execute it. Condition\r\n * is an [ECExpression]($docs/presentation/advanced/ECExpressions.md), which can use\r\n * a [limited set of symbols]($docs/presentation/customization/ECExpressions.md#rule-condition).\r\n */\r\n condition?: string;\r\n\r\n /**\r\n * Name of boolean type ECProperty which is bound with the check box state. When set, property\r\n * value gets bound to checkbox state.\r\n *\r\n * @minLength 1\r\n */\r\n propertyName?: string;\r\n\r\n /**\r\n * Should property value be inversed for the check box state.\r\n *\r\n * **Note:** Only makes sense when bound to an ECProperty.\r\n */\r\n useInversedPropertyValue?: boolean;\r\n\r\n /**\r\n * Default value to use for the check box state\r\n *\r\n * **Note:** Only makes sense when *not* bound to an ECProperty.\r\n */\r\n defaultValue?: boolean;\r\n\r\n /**\r\n * Indicates whether check box is enabled or disabled.\r\n */\r\n isEnabled?: string | boolean;\r\n}\r\n"]}
|
|
@@ -12,7 +12,7 @@ import { SortingRule } from "./SortingRule";
|
|
|
12
12
|
import { StyleOverride } from "./StyleOverride";
|
|
13
13
|
/**
|
|
14
14
|
* Customization rules allow customizing each node or content item separately.
|
|
15
|
-
* Most of the rules have a `condition` property which uses [ECExpressions]($docs/presentation/
|
|
15
|
+
* Most of the rules have a `condition` property which uses [ECExpressions]($docs/presentation/customization/ECExpressions.md)
|
|
16
16
|
* for conditional rule filtering.
|
|
17
17
|
*
|
|
18
18
|
* **Nested customization rules:**
|
|
@@ -29,6 +29,9 @@ import { StyleOverride } from "./StyleOverride";
|
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
32
|
-
export declare type CustomizationRule = InstanceLabelOverride | CheckBoxRule |
|
|
33
|
-
|
|
32
|
+
export declare type CustomizationRule = InstanceLabelOverride | CheckBoxRule | // eslint-disable-line deprecation/deprecation
|
|
33
|
+
GroupingRule | ImageIdOverride | // eslint-disable-line deprecation/deprecation
|
|
34
|
+
LabelOverride | // eslint-disable-line deprecation/deprecation
|
|
35
|
+
SortingRule | StyleOverride | // eslint-disable-line deprecation/deprecation
|
|
36
|
+
ExtendedDataRule | NodeArtifactsRule;
|
|
34
37
|
//# sourceMappingURL=CustomizationRule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomizationRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CustomizationRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,MAAM,iBAAiB,GACnC,qBAAqB,GACrB,YAAY,
|
|
1
|
+
{"version":3,"file":"CustomizationRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CustomizationRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,MAAM,iBAAiB,GACnC,qBAAqB,GACrB,YAAY,GAAG,8CAA8C;AAC7D,YAAY,GACZ,eAAe,GAAG,8CAA8C;AAChE,aAAa,GAAG,8CAA8C;AAC9D,WAAW,GACX,aAAa,GAAG,8CAA8C;AAC9D,gBAAgB,GAChB,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomizationRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CustomizationRule.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { NodeArtifactsRule } from \"../hierarchy/NodeArtifactsRule\";\r\nimport { CheckBoxRule } from \"./CheckBoxRule\";\r\nimport { ExtendedDataRule } from \"./ExtendedDataRule\";\r\nimport { GroupingRule } from \"./GroupingRule\";\r\nimport { ImageIdOverride } from \"./ImageIdOverride\";\r\nimport { InstanceLabelOverride } from \"./InstanceLabelOverride\";\r\nimport { LabelOverride } from \"./LabelOverride\";\r\nimport { SortingRule } from \"./SortingRule\";\r\nimport { StyleOverride } from \"./StyleOverride\";\r\n\r\n/**\r\n * Customization rules allow customizing each node or content item separately.\r\n * Most of the rules have a `condition` property which uses [ECExpressions]($docs/presentation/
|
|
1
|
+
{"version":3,"file":"CustomizationRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CustomizationRule.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { NodeArtifactsRule } from \"../hierarchy/NodeArtifactsRule\";\r\nimport { CheckBoxRule } from \"./CheckBoxRule\";\r\nimport { ExtendedDataRule } from \"./ExtendedDataRule\";\r\nimport { GroupingRule } from \"./GroupingRule\";\r\nimport { ImageIdOverride } from \"./ImageIdOverride\";\r\nimport { InstanceLabelOverride } from \"./InstanceLabelOverride\";\r\nimport { LabelOverride } from \"./LabelOverride\";\r\nimport { SortingRule } from \"./SortingRule\";\r\nimport { StyleOverride } from \"./StyleOverride\";\r\n\r\n/**\r\n * Customization rules allow customizing each node or content item separately.\r\n * Most of the rules have a `condition` property which uses [ECExpressions]($docs/presentation/customization/ECExpressions.md)\r\n * for conditional rule filtering.\r\n *\r\n * **Nested customization rules:**\r\n *\r\n * Customization rules may be specified at ruleset level, in which case they're\r\n * applied to all content produced by the ruleset, or nested under navigation rules,\r\n * in which case they're applied only for nodes created by those rules.\r\n *\r\n * **Customization rule priorities:**\r\n *\r\n * Customization rules have a `priority` attribute which defines the order in which they're applied. If priorities match,\r\n * rules engine looks at the nesting level - the deeper the rule is nested, the higher is its `priority`.\r\n * If the nesting levels also match, the rule defined first wins.\r\n *\r\n * @public\r\n */\r\nexport declare type CustomizationRule =\r\n InstanceLabelOverride |\r\n CheckBoxRule | // eslint-disable-line deprecation/deprecation\r\n GroupingRule |\r\n ImageIdOverride | // eslint-disable-line deprecation/deprecation\r\n LabelOverride | // eslint-disable-line deprecation/deprecation\r\n SortingRule |\r\n StyleOverride | // eslint-disable-line deprecation/deprecation\r\n ExtendedDataRule |\r\n NodeArtifactsRule;\r\n"]}
|
|
@@ -1,40 +1,25 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module PresentationRules
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { RuleBase, RuleTypes } from "../Rule";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* objects (nodes, records).
|
|
6
|
+
* Extended data rule is used to inject some arbitrary data into presentation data objects (nodes, content records).
|
|
8
7
|
*
|
|
9
|
-
*
|
|
10
|
-
* - Table is showing models and elements polymorphically and application
|
|
11
|
-
* wants to handle all models and all elements differently. The rule can be used
|
|
12
|
-
* to inject some flag that tells whether table row represents a model or an element.
|
|
13
|
-
* - Tree shows a hierarchy of models and elements. Then element node is clicked,
|
|
14
|
-
* application needs to additionally know element model's ID. The rule can be used
|
|
15
|
-
* to inject that ID into element's node.
|
|
16
|
-
*
|
|
17
|
-
* @see [More details]($docs/presentation/Customization/ExtendedDataRule.md)
|
|
8
|
+
* @see [Extended data rule reference documentation page]($docs/presentation/customization/ExtendedDataRule.md)
|
|
18
9
|
* @public
|
|
19
10
|
*/
|
|
20
|
-
export interface ExtendedDataRule extends RuleBase
|
|
11
|
+
export interface ExtendedDataRule extends RuleBase {
|
|
21
12
|
/** Used for serializing to JSON. */
|
|
22
13
|
ruleType: RuleTypes.ExtendedData;
|
|
23
14
|
/**
|
|
24
|
-
* Defines a condition
|
|
25
|
-
* is an [ECExpression]($docs/presentation/
|
|
26
|
-
*
|
|
15
|
+
* Defines a condition which needs to be met in order for the rule to be used. The condition
|
|
16
|
+
* is an [ECExpression]($docs/presentation/customization/ECExpressions.md#rule-condition) which has
|
|
17
|
+
* to evaluate to a boolean value.
|
|
27
18
|
*/
|
|
28
19
|
condition?: string;
|
|
29
20
|
/**
|
|
30
|
-
* A map of
|
|
31
|
-
*
|
|
32
|
-
* The key part of the pair should be unique within all keys which are used for specific
|
|
33
|
-
* presentation object, even if they are applied using different `ExtendedData` definitions.
|
|
34
|
-
*
|
|
35
|
-
* The value part of the pair is an [ECExpression]($docs/presentation/Advanced/ECExpressions.md), which can use
|
|
36
|
-
* a [limited set of symbols]($docs/presentation/Customization/ECExpressions.md#rule-condition) and whose
|
|
37
|
-
* evaluated result is used as the value of the extended data item.
|
|
21
|
+
* A map of [ECExpressions]($docs/presentation/customization/ECExpressions.md#rule-condition) whose
|
|
22
|
+
* evaluation results are used as extended data values.
|
|
38
23
|
*/
|
|
39
24
|
items: {
|
|
40
25
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtendedDataRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/ExtendedDataRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ExtendedDataRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/ExtendedDataRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,WAAW,gBAAiB,SAAQ,QAAQ;IAChD,oCAAoC;IACpC,QAAQ,EAAE,SAAS,CAAC,YAAY,CAAC;IAEjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtendedDataRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/ExtendedDataRule.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport {
|
|
1
|
+
{"version":3,"file":"ExtendedDataRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/ExtendedDataRule.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { RuleBase, RuleTypes } from \"../Rule\";\r\n\r\n/**\r\n * Extended data rule is used to inject some arbitrary data into presentation data objects (nodes, content records).\r\n *\r\n * @see [Extended data rule reference documentation page]($docs/presentation/customization/ExtendedDataRule.md)\r\n * @public\r\n */\r\nexport interface ExtendedDataRule extends RuleBase {\r\n /** Used for serializing to JSON. */\r\n ruleType: RuleTypes.ExtendedData;\r\n\r\n /**\r\n * Defines a condition which needs to be met in order for the rule to be used. The condition\r\n * is an [ECExpression]($docs/presentation/customization/ECExpressions.md#rule-condition) which has\r\n * to evaluate to a boolean value.\r\n */\r\n condition?: string;\r\n\r\n /**\r\n * A map of [ECExpressions]($docs/presentation/customization/ECExpressions.md#rule-condition) whose\r\n * evaluation results are used as extended data values.\r\n */\r\n items: { [key: string]: string };\r\n}\r\n"]}
|
|
@@ -2,50 +2,37 @@
|
|
|
2
2
|
* @module PresentationRules
|
|
3
3
|
*/
|
|
4
4
|
import { SingleSchemaClassSpecification } from "../ClassSpecifications";
|
|
5
|
-
import {
|
|
5
|
+
import { RuleBase, RuleTypes } from "../Rule";
|
|
6
6
|
/**
|
|
7
|
-
* Grouping
|
|
7
|
+
* Grouping rules provide advanced ways to group instances when creating hierarchies.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
* - Group by base class.
|
|
11
|
-
* - Group by any property of the instance by a common value or a range of values.
|
|
12
|
-
* - Group multiple instances with the same label in to one ECInstance node. This can be used in cases when these
|
|
13
|
-
* instances represent the same object for the user.
|
|
14
|
-
*
|
|
15
|
-
* The rule works in conjunction with other grouping options available in navigation specifications [[ChildNodeSpecification]]:
|
|
16
|
-
* `groupByClass` and `groupByLabel`. The grouping hierarchy looks like this:
|
|
17
|
-
* - Base ECClass grouping node (specified by base class grouping specification [[ClassGroup]])
|
|
18
|
-
* - ECClass grouping node (specified by `groupByClass` property)
|
|
19
|
-
* - ECProperty grouping node 1 (specified by 1st [[PropertyGroup]])
|
|
20
|
-
* - ECProperty grouping node 2 (specified by 2nd [[PropertyGroup]])
|
|
21
|
-
* - ECProperty grouping node n (specified by n-th [[PropertyGroup]])
|
|
22
|
-
* - Display label grouping node (specified by `groupByLabel` property)
|
|
23
|
-
* - ECInstance nodes (may be grouped under a single node by [[SameLabelInstanceGroup]])
|
|
24
|
-
*
|
|
25
|
-
* @see [More details]($docs/presentation/Hierarchies/GroupingRule.md)
|
|
9
|
+
* @see [Grouping rule reference documentation page]($docs/presentation/hierarchies/GroupingRule.md)
|
|
26
10
|
* @public
|
|
27
11
|
*/
|
|
28
|
-
export interface GroupingRule extends RuleBase
|
|
12
|
+
export interface GroupingRule extends RuleBase {
|
|
29
13
|
/** Used for serializing to JSON. */
|
|
30
14
|
ruleType: RuleTypes.Grouping;
|
|
31
15
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
16
|
+
* An [ECExpression]($docs/presentation/hierarchies/ECExpressions.md#rule-condition) that results in
|
|
17
|
+
* a boolean value. If specified, the grouping rule applies only to instance nodes that cause the condition
|
|
18
|
+
* to evaluate to `true`.
|
|
35
19
|
*/
|
|
36
20
|
condition?: string;
|
|
37
|
-
/** Specification of ECClass which should be grouped using this rule */
|
|
21
|
+
/** Specification of ECClass which should be grouped using this rule. */
|
|
38
22
|
class: SingleSchemaClassSpecification;
|
|
39
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Specifies a list of [grouping specifications]($docs/presentation/hierarchies/GroupingRule.md#grouping-specifications)
|
|
25
|
+
* which describe the kind of grouping that should be applied.
|
|
26
|
+
*/
|
|
40
27
|
groups: GroupingSpecification[];
|
|
41
28
|
}
|
|
42
29
|
/**
|
|
43
|
-
* Grouping rule specifications
|
|
30
|
+
* Grouping rule specifications.
|
|
44
31
|
* @public
|
|
45
32
|
*/
|
|
46
33
|
export declare type GroupingSpecification = ClassGroup | PropertyGroup | SameLabelInstanceGroup;
|
|
47
34
|
/**
|
|
48
|
-
* Available types of [[GroupingSpecification]]
|
|
35
|
+
* Available types of [[GroupingSpecification]].
|
|
49
36
|
* @public
|
|
50
37
|
*/
|
|
51
38
|
export declare enum GroupingSpecificationTypes {
|
|
@@ -64,33 +51,43 @@ export interface GroupingSpecificationBase {
|
|
|
64
51
|
specType: GroupingSpecificationTypes;
|
|
65
52
|
}
|
|
66
53
|
/**
|
|
67
|
-
*
|
|
54
|
+
* Base class grouping allows grouping ECInstance nodes by their base class (as opposed to the hierarchy
|
|
55
|
+
* specifications' `groupByClass` attribute, which always groups by direct class).
|
|
56
|
+
*
|
|
57
|
+
* @see [Base class grouping documentation section]($docs/presentation/hierarchies/GroupingRule.md#base-class-grouping)
|
|
68
58
|
* @public
|
|
69
59
|
*/
|
|
70
60
|
export interface ClassGroup extends GroupingSpecificationBase {
|
|
71
61
|
/** Used for serializing to JSON. */
|
|
72
62
|
specType: GroupingSpecificationTypes.Class;
|
|
73
|
-
/**
|
|
63
|
+
/** Specifies whether a grouping node should be created if there is only one item in that group. */
|
|
74
64
|
createGroupForSingleItem?: boolean;
|
|
75
|
-
/**
|
|
65
|
+
/**
|
|
66
|
+
* Specification of the base ECClass to group by. If specified, allows grouping by a subclass of the class
|
|
67
|
+
* specified by rule's `class` attribute.
|
|
68
|
+
*/
|
|
76
69
|
baseClass?: SingleSchemaClassSpecification;
|
|
77
70
|
}
|
|
78
71
|
/**
|
|
79
|
-
* Allows grouping multiple instances with the same label into one
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* When multiple instances are grouped, an ECInstance node is created instead of a
|
|
83
|
-
* grouping node and the ECInstance key for the node is assigned to key of one of grouped
|
|
84
|
-
* instances.
|
|
72
|
+
* Allows grouping multiple instances with the same label into one ECInstances type of node. Similar to display label grouping,
|
|
73
|
+
* but instead of showing a grouping node with multiple grouped ECInstance nodes, it shows a single ECInstances node which represents
|
|
74
|
+
* multiple ECInstances.
|
|
85
75
|
*
|
|
76
|
+
* @see [Same label instance grouping documentation section]($docs/presentation/hierarchies/GroupingRule.md#same-label-instance-grouping)
|
|
86
77
|
* @public
|
|
87
78
|
*/
|
|
88
79
|
export interface SameLabelInstanceGroup extends GroupingSpecificationBase {
|
|
89
80
|
/** Used for serializing to JSON. */
|
|
90
81
|
specType: GroupingSpecificationTypes.SameLabelInstance;
|
|
91
82
|
/**
|
|
92
|
-
*
|
|
93
|
-
*
|
|
83
|
+
* Grouping nodes by label is an expensive operation because it requires the whole hierarchy level to be created before even the first
|
|
84
|
+
* grouped node can be produced. To alleviate the performance impact when this specification is used, two `applicationStage` settings have been introduced:
|
|
85
|
+
*
|
|
86
|
+
* - `"Query"` groups instances during ECSql query, which can often make use of database indices and is generally fairly quick. It is chosen
|
|
87
|
+
* as the default option, however, it fails to produce grouping nodes when certain ruleset specifications are involved.
|
|
88
|
+
*
|
|
89
|
+
* - `"PostProcess"` groups instances after the whole hierarchy level is built. It incurs a large performance penalty, but it will
|
|
90
|
+
* produce the expected result in all cases.
|
|
94
91
|
*/
|
|
95
92
|
applicationStage?: SameLabelInstanceGroupApplicationStage;
|
|
96
93
|
}
|
|
@@ -111,64 +108,48 @@ export declare enum SameLabelInstanceGroupApplicationStage {
|
|
|
111
108
|
PostProcess = "PostProcess"
|
|
112
109
|
}
|
|
113
110
|
/**
|
|
114
|
-
*
|
|
115
|
-
* by a common value or by range of values.
|
|
111
|
+
* Property grouping allows grouping by a property of the instance by value or by given ranges of values.
|
|
116
112
|
*
|
|
113
|
+
* @see [Property grouping documentation section]($docs/presentation/hierarchies/GroupingRule.md#property-grouping)
|
|
117
114
|
* @public
|
|
118
115
|
*/
|
|
119
116
|
export interface PropertyGroup extends GroupingSpecificationBase {
|
|
120
117
|
/** Used for serializing to JSON. */
|
|
121
118
|
specType: GroupingSpecificationTypes.Property;
|
|
122
119
|
/**
|
|
123
|
-
* Name of the ECProperty which is used for grouping.
|
|
120
|
+
* Name of the ECProperty which is used for grouping. The property must exist on the ECClass specified by the
|
|
121
|
+
* rule's `class` attribute and it must be of either a primitive or a navigation type.
|
|
124
122
|
*
|
|
125
123
|
* @minLength 1
|
|
126
124
|
*/
|
|
127
125
|
propertyName: string;
|
|
128
126
|
/**
|
|
129
|
-
*
|
|
127
|
+
* Specifies grouping node's image ID. If set, the ID is assigned to [[Node.imageId]] and
|
|
128
|
+
* it's up to the UI component to decide what to do with it.
|
|
130
129
|
*
|
|
131
130
|
* @minLength 1
|
|
132
131
|
*/
|
|
133
132
|
imageId?: string;
|
|
134
|
-
/**
|
|
133
|
+
/** Specifies whether a grouping node should be created if there is only one item in that group. */
|
|
135
134
|
createGroupForSingleItem?: boolean;
|
|
136
135
|
/**
|
|
137
|
-
* Should a separate grouping node be created for nodes whose grouping value is not
|
|
138
|
-
* set or is an empty string.
|
|
139
|
-
*
|
|
140
|
-
* Defaults to `true`.
|
|
136
|
+
* Should a separate grouping node be created for nodes whose grouping value is not set or is set to an empty string.
|
|
141
137
|
*/
|
|
142
138
|
createGroupForUnspecifiedValues?: boolean;
|
|
143
139
|
/**
|
|
144
|
-
*
|
|
145
|
-
* Defaults to [[PropertyGroupingValue.DisplayLabel]].
|
|
146
|
-
*
|
|
147
|
-
* **Note:** Grouping by property value is required if the display label is
|
|
148
|
-
* overridden to display grouped instances count.
|
|
140
|
+
* Specifies whether instances should be grouped using property's display or raw value.
|
|
149
141
|
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* @deprecated Display value should always be used for grouping. In cases when there's a
|
|
153
|
-
* need to show grouped instances count suffix, that can be achieved at the UI component
|
|
154
|
-
* layer by composing UI node's label from node's display label and
|
|
155
|
-
* [GroupingNodeKey.groupedInstancesCount]($presentation-common).
|
|
142
|
+
* @deprecated Display value should always be used for grouping.
|
|
156
143
|
*/
|
|
157
144
|
groupingValue?: PropertyGroupingValue;
|
|
158
145
|
/**
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
* Defaults to [[PropertyGroupingValue.DisplayLabel]].
|
|
162
|
-
*
|
|
163
|
-
* **Note:** Sorting by property value only makes sense when instances are grouped by
|
|
164
|
-
* property value as well.
|
|
165
|
-
*
|
|
166
|
-
* **Warning:** Grouping by label and sorting by property value is not possible.
|
|
146
|
+
* Specifies whether nodes should be sorted by their display label or the grouping property's value. In most cases the result
|
|
147
|
+
* is the same, unless a [label override rule]($docs/presentation/customization/LabelOverride.md) is used to change node's display label.
|
|
167
148
|
*
|
|
168
149
|
* @deprecated Property grouping nodes should always be sorted by display label.
|
|
169
150
|
*/
|
|
170
151
|
sortingValue?: PropertyGroupingValue;
|
|
171
|
-
/** Ranges into which the grouping values are divided */
|
|
152
|
+
/** Ranges into which the grouping values are divided. Instances are grouped by value if no ranges are specified. */
|
|
172
153
|
ranges?: PropertyRangeGroupSpecification[];
|
|
173
154
|
}
|
|
174
155
|
/**
|
|
@@ -185,7 +166,9 @@ export declare enum PropertyGroupingValue {
|
|
|
185
166
|
DisplayLabel = "DisplayLabel"
|
|
186
167
|
}
|
|
187
168
|
/**
|
|
188
|
-
* Describes a grouping range
|
|
169
|
+
* Describes a grouping range.
|
|
170
|
+
*
|
|
171
|
+
* @see [Property range group specification documentation section]($docs/presentation/hierarchies/GroupingRule.md#attribute-ranges)
|
|
189
172
|
* @public
|
|
190
173
|
*/
|
|
191
174
|
export interface PropertyRangeGroupSpecification {
|
|
@@ -196,20 +179,20 @@ export interface PropertyRangeGroupSpecification {
|
|
|
196
179
|
*/
|
|
197
180
|
imageId?: string;
|
|
198
181
|
/**
|
|
199
|
-
* Grouping node label. May be [localized]($docs/presentation/
|
|
200
|
-
* Defaults to `{from value} - {to value}
|
|
182
|
+
* Grouping node label. May be [localized]($docs/presentation/advanced/Localization.md).
|
|
183
|
+
* Defaults to `{from value} - {to value}`.
|
|
201
184
|
*
|
|
202
185
|
* @minLength 1
|
|
203
186
|
*/
|
|
204
187
|
label?: string;
|
|
205
188
|
/**
|
|
206
|
-
* Value that defines the range start (inclusive)
|
|
189
|
+
* Value that defines the range start (inclusive).
|
|
207
190
|
*
|
|
208
191
|
* @minLength 1
|
|
209
192
|
*/
|
|
210
193
|
fromValue: string;
|
|
211
194
|
/**
|
|
212
|
-
* Value that defines the range end (inclusive)
|
|
195
|
+
* Value that defines the range end (inclusive).
|
|
213
196
|
*
|
|
214
197
|
* @minLength 1
|
|
215
198
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupingRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/GroupingRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"GroupingRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/GroupingRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,oCAAoC;IACpC,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC;IAE7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,wEAAwE;IACxE,KAAK,EAAE,8BAA8B,CAAC;IAEtC;;;OAGG;IACH,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,MAAM,qBAAqB,GAAG,UAAU,GAAG,aAAa,GAAG,sBAAsB,CAAC;AAEhG;;;GAGG;AACH,oBAAY,0BAA0B;IACpC,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,iBAAiB,sBAAsB;CACxC;AAED;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC,2BAA2B;IAC3B,QAAQ,EAAE,0BAA0B,CAAC;CACtC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,UAAW,SAAQ,yBAAyB;IAC3D,oCAAoC;IACpC,QAAQ,EAAE,0BAA0B,CAAC,KAAK,CAAC;IAE3C,mGAAmG;IACnG,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;OAGG;IACH,SAAS,CAAC,EAAE,8BAA8B,CAAC;CAC5C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAuB,SAAQ,yBAAyB;IACvE,oCAAoC;IACpC,QAAQ,EAAE,0BAA0B,CAAC,iBAAiB,CAAC;IAEvD;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,sCAAsC,CAAC;CAC3D;AAED;;;GAGG;AACH,oBAAY,sCAAsC;IAChD,qCAAqC;IACrC,KAAK,UAAU;IAEf;;;;;;OAMG;IACH,WAAW,gBAAgB;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAc,SAAQ,yBAAyB;IAC9D,oCAAoC;IACpC,QAAQ,EAAE,0BAA0B,CAAC,QAAQ,CAAC;IAE9C;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,mGAAmG;IACnG,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;OAEG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAE1C;;;;OAIG;IACH,aAAa,CAAC,EAAE,qBAAqB,CAAC;IAEtC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;IAErC,oHAAoH;IACpH,MAAM,CAAC,EAAE,+BAA+B,EAAE,CAAC;CAC5C;AAED;;;;;;GAMG;AACH,oBAAY,qBAAqB;IAC/B,wBAAwB;IACxB,aAAa,kBAAkB;IAE/B,uBAAuB;IACvB,YAAY,iBAAiB;CAC9B;AAED;;;;;GAKG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.PropertyGroupingValue = exports.SameLabelInstanceGroupApplicationStage = exports.GroupingSpecificationTypes = void 0;
|
|
11
11
|
/**
|
|
12
|
-
* Available types of [[GroupingSpecification]]
|
|
12
|
+
* Available types of [[GroupingSpecification]].
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
15
|
var GroupingSpecificationTypes;
|