@itwin/presentation-common 4.0.0-dev.8 → 4.0.0-dev.81
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 +51 -1
- package/Ruleset.schema.json +15 -0
- package/lib/cjs/assets/locales/en/Presentation.json +19 -0
- package/lib/cjs/assets/locales/en-PSEUDO/Presentation.json +19 -0
- package/lib/cjs/presentation-common/AsyncTasks.d.ts +22 -22
- package/lib/cjs/presentation-common/AsyncTasks.js +38 -38
- package/lib/cjs/presentation-common/CommonLoggerCategory.d.ts +12 -12
- package/lib/cjs/presentation-common/CommonLoggerCategory.js +20 -20
- package/lib/cjs/presentation-common/Diagnostics.d.ts +125 -125
- package/lib/cjs/presentation-common/Diagnostics.d.ts.map +1 -1
- package/lib/cjs/presentation-common/Diagnostics.js +72 -72
- package/lib/cjs/presentation-common/EC.d.ts +347 -350
- package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
- package/lib/cjs/presentation-common/EC.js +290 -290
- package/lib/cjs/presentation-common/EC.js.map +1 -1
- package/lib/cjs/presentation-common/ElementProperties.d.ts +123 -123
- package/lib/cjs/presentation-common/ElementProperties.d.ts.map +1 -1
- package/lib/cjs/presentation-common/ElementProperties.js +9 -9
- package/lib/cjs/presentation-common/Error.d.ts +47 -45
- package/lib/cjs/presentation-common/Error.d.ts.map +1 -1
- package/lib/cjs/presentation-common/Error.js +64 -62
- package/lib/cjs/presentation-common/Error.js.map +1 -1
- package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts +93 -93
- package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
- package/lib/cjs/presentation-common/InstanceFilterDefinition.js +9 -9
- package/lib/cjs/presentation-common/KeySet.d.ts +146 -146
- package/lib/cjs/presentation-common/KeySet.d.ts.map +1 -1
- package/lib/cjs/presentation-common/KeySet.js +428 -428
- package/lib/cjs/presentation-common/KoqPropertyValueFormatter.d.ts +20 -0
- package/lib/cjs/presentation-common/KoqPropertyValueFormatter.d.ts.map +1 -0
- package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js +156 -0
- package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js.map +1 -0
- package/lib/cjs/presentation-common/LabelDefinition.d.ts +93 -87
- package/lib/cjs/presentation-common/LabelDefinition.d.ts.map +1 -1
- package/lib/cjs/presentation-common/LabelDefinition.js +78 -73
- package/lib/cjs/presentation-common/LabelDefinition.js.map +1 -1
- package/lib/cjs/presentation-common/LocalizationHelper.d.ts +29 -29
- package/lib/cjs/presentation-common/LocalizationHelper.d.ts.map +1 -1
- package/lib/cjs/presentation-common/LocalizationHelper.js +113 -110
- package/lib/cjs/presentation-common/LocalizationHelper.js.map +1 -1
- package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts +27 -40
- package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts.map +1 -1
- package/lib/cjs/presentation-common/PresentationIpcInterface.js +12 -12
- package/lib/cjs/presentation-common/PresentationIpcInterface.js.map +1 -1
- package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts +279 -261
- package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
- package/lib/cjs/presentation-common/PresentationManagerOptions.js +23 -23
- package/lib/cjs/presentation-common/PresentationManagerOptions.js.map +1 -1
- package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts +186 -186
- package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
- package/lib/cjs/presentation-common/PresentationRpcInterface.js +108 -104
- package/lib/cjs/presentation-common/PresentationRpcInterface.js.map +1 -1
- package/lib/cjs/presentation-common/RegisteredRuleset.d.ts +26 -26
- package/lib/cjs/presentation-common/RegisteredRuleset.js +33 -33
- package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts +82 -83
- package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
- package/lib/cjs/presentation-common/RpcRequestsHandler.js +166 -171
- package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
- package/lib/cjs/presentation-common/RulesetVariables.d.ts +171 -171
- package/lib/cjs/presentation-common/RulesetVariables.d.ts.map +1 -1
- package/lib/cjs/presentation-common/RulesetVariables.js +55 -55
- package/lib/cjs/presentation-common/RulesetsFactory.d.ts +44 -44
- package/lib/cjs/presentation-common/RulesetsFactory.d.ts.map +1 -1
- package/lib/cjs/presentation-common/RulesetsFactory.js +223 -223
- package/lib/cjs/presentation-common/RulesetsFactory.js.map +1 -1
- package/lib/cjs/presentation-common/Update.d.ts +150 -213
- package/lib/cjs/presentation-common/Update.d.ts.map +1 -1
- package/lib/cjs/presentation-common/Update.js +114 -226
- package/lib/cjs/presentation-common/Update.js.map +1 -1
- package/lib/cjs/presentation-common/Utils.d.ts +62 -62
- package/lib/cjs/presentation-common/Utils.d.ts.map +1 -1
- package/lib/cjs/presentation-common/Utils.js +43 -43
- package/lib/cjs/presentation-common/content/Category.d.ts +49 -49
- package/lib/cjs/presentation-common/content/Category.js +48 -48
- package/lib/cjs/presentation-common/content/Content.d.ts +38 -38
- package/lib/cjs/presentation-common/content/Content.js +56 -56
- package/lib/cjs/presentation-common/content/ContentTraverser.d.ts +271 -271
- package/lib/cjs/presentation-common/content/ContentTraverser.js +437 -439
- package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
- package/lib/cjs/presentation-common/content/Descriptor.d.ts +328 -328
- package/lib/cjs/presentation-common/content/Descriptor.js +191 -193
- package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
- package/lib/cjs/presentation-common/content/DisplayTypes.d.ts +21 -21
- package/lib/cjs/presentation-common/content/DisplayTypes.js +29 -29
- package/lib/cjs/presentation-common/content/Editor.d.ts +15 -15
- package/lib/cjs/presentation-common/content/Editor.js +9 -9
- package/lib/cjs/presentation-common/content/Fields.d.ts +298 -301
- package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Fields.js +393 -397
- package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
- package/lib/cjs/presentation-common/content/Item.d.ts +85 -85
- package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Item.js +84 -84
- package/lib/cjs/presentation-common/content/Item.js.map +1 -1
- package/lib/cjs/presentation-common/content/Property.d.ts +57 -57
- package/lib/cjs/presentation-common/content/Property.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Property.js +40 -40
- package/lib/cjs/presentation-common/content/PropertyValueFormatter.d.ts +29 -0
- package/lib/cjs/presentation-common/content/PropertyValueFormatter.d.ts.map +1 -0
- package/lib/cjs/presentation-common/content/PropertyValueFormatter.js +139 -0
- package/lib/cjs/presentation-common/content/PropertyValueFormatter.js.map +1 -0
- package/lib/cjs/presentation-common/content/Renderer.d.ts +11 -11
- package/lib/cjs/presentation-common/content/Renderer.js +9 -9
- package/lib/cjs/presentation-common/content/TypeDescription.d.ts +72 -72
- package/lib/cjs/presentation-common/content/TypeDescription.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/TypeDescription.js +23 -23
- package/lib/cjs/presentation-common/content/Value.d.ts +204 -189
- package/lib/cjs/presentation-common/content/Value.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/Value.js +281 -273
- package/lib/cjs/presentation-common/content/Value.js.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts +37 -37
- package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js +31 -31
- package/lib/cjs/presentation-common/hierarchy/Key.d.ts +246 -246
- package/lib/cjs/presentation-common/hierarchy/Key.d.ts.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/Key.js +121 -121
- package/lib/cjs/presentation-common/hierarchy/Key.js.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/Node.d.ts +154 -154
- package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/Node.js +106 -106
- package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts +96 -96
- package/lib/cjs/presentation-common/hierarchy/NodePathElement.js +122 -122
- package/lib/cjs/presentation-common/rules/ClassSpecifications.d.ts +45 -45
- package/lib/cjs/presentation-common/rules/ClassSpecifications.js +9 -9
- package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts +31 -31
- package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/RelationshipDirection.d.ts +13 -13
- package/lib/cjs/presentation-common/rules/RelationshipDirection.js +21 -21
- package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts +56 -56
- package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/Rule.d.ts +76 -76
- package/lib/cjs/presentation-common/rules/Rule.js +35 -35
- package/lib/cjs/presentation-common/rules/Ruleset.d.ts +65 -65
- package/lib/cjs/presentation-common/rules/Ruleset.js +9 -9
- package/lib/cjs/presentation-common/rules/SchemasSpecification.d.ts +41 -41
- package/lib/cjs/presentation-common/rules/SchemasSpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/Variables.d.ts +58 -58
- package/lib/cjs/presentation-common/rules/Variables.js +25 -25
- package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +41 -41
- package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +25 -25
- package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts +30 -30
- package/lib/cjs/presentation-common/rules/content/ContentRule.js +9 -9
- package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +58 -58
- package/lib/cjs/presentation-common/rules/content/ContentSpecification.js +20 -20
- package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +19 -19
- package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.js +9 -9
- package/lib/cjs/presentation-common/rules/content/PropertySpecification.d.ts +86 -86
- package/lib/cjs/presentation-common/rules/content/PropertySpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +28 -28
- package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts +25 -25
- package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts +64 -57
- package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.js +9 -9
- package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.d.ts +17 -17
- package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +107 -107
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +108 -108
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js +21 -21
- package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +96 -96
- package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js +43 -43
- package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts +44 -44
- package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js +9 -9
- package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts +36 -36
- package/lib/cjs/presentation-common/rules/customization/CustomizationRule.js +9 -9
- package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts +27 -27
- package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.js +9 -9
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +207 -207
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.js +51 -51
- package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts +29 -29
- package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js +9 -9
- package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts +158 -158
- package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js +25 -25
- package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts +40 -40
- package/lib/cjs/presentation-common/rules/customization/LabelOverride.js +9 -9
- package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts +58 -58
- package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/SortingRule.js +9 -9
- package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts +48 -48
- package/lib/cjs/presentation-common/rules/customization/StyleOverride.js +9 -9
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +14 -14
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js +9 -9
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +98 -98
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js +21 -21
- package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +31 -31
- package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +79 -79
- package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js +19 -19
- package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +39 -39
- package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.d.ts +50 -50
- package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.d.ts.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.js +9 -9
- package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +27 -27
- package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.js +9 -9
- package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +27 -27
- package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts +16 -16
- package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js +9 -9
- package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts +35 -35
- package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js +9 -9
- package/lib/cjs/presentation-common/selection/SelectionScope.d.ts +38 -38
- package/lib/cjs/presentation-common/selection/SelectionScope.d.ts.map +1 -1
- package/lib/cjs/presentation-common/selection/SelectionScope.js +9 -9
- package/lib/cjs/presentation-common.d.ts +114 -112
- package/lib/cjs/presentation-common.d.ts.map +1 -1
- package/lib/cjs/presentation-common.js +134 -128
- package/lib/cjs/presentation-common.js.map +1 -1
- package/lib/esm/presentation-common/AsyncTasks.d.ts +22 -22
- package/lib/esm/presentation-common/AsyncTasks.js +34 -34
- package/lib/esm/presentation-common/CommonLoggerCategory.d.ts +12 -12
- package/lib/esm/presentation-common/CommonLoggerCategory.js +17 -17
- package/lib/esm/presentation-common/Diagnostics.d.ts +125 -125
- package/lib/esm/presentation-common/Diagnostics.d.ts.map +1 -1
- package/lib/esm/presentation-common/Diagnostics.js +67 -67
- package/lib/esm/presentation-common/EC.d.ts +347 -350
- package/lib/esm/presentation-common/EC.d.ts.map +1 -1
- package/lib/esm/presentation-common/EC.js +287 -287
- package/lib/esm/presentation-common/EC.js.map +1 -1
- package/lib/esm/presentation-common/ElementProperties.d.ts +123 -123
- package/lib/esm/presentation-common/ElementProperties.d.ts.map +1 -1
- package/lib/esm/presentation-common/ElementProperties.js +8 -8
- package/lib/esm/presentation-common/Error.d.ts +47 -45
- package/lib/esm/presentation-common/Error.d.ts.map +1 -1
- package/lib/esm/presentation-common/Error.js +60 -58
- package/lib/esm/presentation-common/Error.js.map +1 -1
- package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts +93 -93
- package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
- package/lib/esm/presentation-common/InstanceFilterDefinition.js +8 -8
- package/lib/esm/presentation-common/KeySet.d.ts +146 -146
- package/lib/esm/presentation-common/KeySet.d.ts.map +1 -1
- package/lib/esm/presentation-common/KeySet.js +424 -424
- package/lib/esm/presentation-common/KoqPropertyValueFormatter.d.ts +20 -0
- package/lib/esm/presentation-common/KoqPropertyValueFormatter.d.ts.map +1 -0
- package/lib/esm/presentation-common/KoqPropertyValueFormatter.js +152 -0
- package/lib/esm/presentation-common/KoqPropertyValueFormatter.js.map +1 -0
- package/lib/esm/presentation-common/LabelDefinition.d.ts +93 -87
- package/lib/esm/presentation-common/LabelDefinition.d.ts.map +1 -1
- package/lib/esm/presentation-common/LabelDefinition.js +75 -70
- package/lib/esm/presentation-common/LabelDefinition.js.map +1 -1
- package/lib/esm/presentation-common/LocalizationHelper.d.ts +29 -29
- package/lib/esm/presentation-common/LocalizationHelper.d.ts.map +1 -1
- package/lib/esm/presentation-common/LocalizationHelper.js +109 -106
- package/lib/esm/presentation-common/LocalizationHelper.js.map +1 -1
- package/lib/esm/presentation-common/PresentationIpcInterface.d.ts +27 -40
- package/lib/esm/presentation-common/PresentationIpcInterface.d.ts.map +1 -1
- package/lib/esm/presentation-common/PresentationIpcInterface.js +9 -9
- package/lib/esm/presentation-common/PresentationIpcInterface.js.map +1 -1
- package/lib/esm/presentation-common/PresentationManagerOptions.d.ts +279 -261
- package/lib/esm/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
- package/lib/esm/presentation-common/PresentationManagerOptions.js +18 -18
- package/lib/esm/presentation-common/PresentationManagerOptions.js.map +1 -1
- package/lib/esm/presentation-common/PresentationRpcInterface.d.ts +186 -186
- package/lib/esm/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
- package/lib/esm/presentation-common/PresentationRpcInterface.js +105 -100
- package/lib/esm/presentation-common/PresentationRpcInterface.js.map +1 -1
- package/lib/esm/presentation-common/RegisteredRuleset.d.ts +26 -26
- package/lib/esm/presentation-common/RegisteredRuleset.js +29 -29
- package/lib/esm/presentation-common/RpcRequestsHandler.d.ts +82 -83
- package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
- package/lib/esm/presentation-common/RpcRequestsHandler.js +162 -167
- package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
- package/lib/esm/presentation-common/RulesetVariables.d.ts +171 -171
- package/lib/esm/presentation-common/RulesetVariables.d.ts.map +1 -1
- package/lib/esm/presentation-common/RulesetVariables.js +52 -52
- package/lib/esm/presentation-common/RulesetsFactory.d.ts +44 -44
- package/lib/esm/presentation-common/RulesetsFactory.d.ts.map +1 -1
- package/lib/esm/presentation-common/RulesetsFactory.js +219 -219
- package/lib/esm/presentation-common/RulesetsFactory.js.map +1 -1
- package/lib/esm/presentation-common/Update.d.ts +150 -213
- package/lib/esm/presentation-common/Update.d.ts.map +1 -1
- package/lib/esm/presentation-common/Update.js +111 -223
- package/lib/esm/presentation-common/Update.js.map +1 -1
- package/lib/esm/presentation-common/Utils.d.ts +62 -62
- package/lib/esm/presentation-common/Utils.d.ts.map +1 -1
- package/lib/esm/presentation-common/Utils.js +39 -39
- package/lib/esm/presentation-common/content/Category.d.ts +49 -49
- package/lib/esm/presentation-common/content/Category.js +45 -45
- package/lib/esm/presentation-common/content/Content.d.ts +38 -38
- package/lib/esm/presentation-common/content/Content.js +52 -52
- package/lib/esm/presentation-common/content/ContentTraverser.d.ts +271 -271
- package/lib/esm/presentation-common/content/ContentTraverser.js +427 -429
- package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
- package/lib/esm/presentation-common/content/Descriptor.d.ts +328 -328
- package/lib/esm/presentation-common/content/Descriptor.js +187 -189
- package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
- package/lib/esm/presentation-common/content/DisplayTypes.d.ts +21 -21
- package/lib/esm/presentation-common/content/DisplayTypes.js +26 -26
- package/lib/esm/presentation-common/content/Editor.d.ts +15 -15
- package/lib/esm/presentation-common/content/Editor.js +8 -8
- package/lib/esm/presentation-common/content/Fields.d.ts +298 -301
- package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Fields.js +386 -390
- package/lib/esm/presentation-common/content/Fields.js.map +1 -1
- package/lib/esm/presentation-common/content/Item.d.ts +85 -85
- package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Item.js +80 -80
- package/lib/esm/presentation-common/content/Item.js.map +1 -1
- package/lib/esm/presentation-common/content/Property.d.ts +57 -57
- package/lib/esm/presentation-common/content/Property.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Property.js +37 -37
- package/lib/esm/presentation-common/content/PropertyValueFormatter.d.ts +29 -0
- package/lib/esm/presentation-common/content/PropertyValueFormatter.d.ts.map +1 -0
- package/lib/esm/presentation-common/content/PropertyValueFormatter.js +134 -0
- package/lib/esm/presentation-common/content/PropertyValueFormatter.js.map +1 -0
- package/lib/esm/presentation-common/content/Renderer.d.ts +11 -11
- package/lib/esm/presentation-common/content/Renderer.js +8 -8
- package/lib/esm/presentation-common/content/TypeDescription.d.ts +72 -72
- package/lib/esm/presentation-common/content/TypeDescription.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/TypeDescription.js +20 -20
- package/lib/esm/presentation-common/content/Value.d.ts +204 -189
- package/lib/esm/presentation-common/content/Value.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/Value.js +278 -270
- package/lib/esm/presentation-common/content/Value.js.map +1 -1
- package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts +37 -37
- package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js +28 -28
- package/lib/esm/presentation-common/hierarchy/Key.d.ts +246 -246
- package/lib/esm/presentation-common/hierarchy/Key.d.ts.map +1 -1
- package/lib/esm/presentation-common/hierarchy/Key.js +118 -118
- package/lib/esm/presentation-common/hierarchy/Key.js.map +1 -1
- package/lib/esm/presentation-common/hierarchy/Node.d.ts +154 -154
- package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
- package/lib/esm/presentation-common/hierarchy/Node.js +103 -103
- package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
- package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts +96 -96
- package/lib/esm/presentation-common/hierarchy/NodePathElement.js +119 -119
- package/lib/esm/presentation-common/rules/ClassSpecifications.d.ts +45 -45
- package/lib/esm/presentation-common/rules/ClassSpecifications.js +8 -8
- package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts +31 -31
- package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js +8 -8
- package/lib/esm/presentation-common/rules/RelationshipDirection.d.ts +13 -13
- package/lib/esm/presentation-common/rules/RelationshipDirection.js +18 -18
- package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts +56 -56
- package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js +8 -8
- package/lib/esm/presentation-common/rules/Rule.d.ts +76 -76
- package/lib/esm/presentation-common/rules/Rule.js +32 -32
- package/lib/esm/presentation-common/rules/Ruleset.d.ts +65 -65
- package/lib/esm/presentation-common/rules/Ruleset.js +8 -8
- package/lib/esm/presentation-common/rules/SchemasSpecification.d.ts +41 -41
- package/lib/esm/presentation-common/rules/SchemasSpecification.js +8 -8
- package/lib/esm/presentation-common/rules/Variables.d.ts +58 -58
- package/lib/esm/presentation-common/rules/Variables.js +22 -22
- package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +41 -41
- package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js +8 -8
- package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +25 -25
- package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js +8 -8
- package/lib/esm/presentation-common/rules/content/ContentRule.d.ts +30 -30
- package/lib/esm/presentation-common/rules/content/ContentRule.js +8 -8
- package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +58 -58
- package/lib/esm/presentation-common/rules/content/ContentSpecification.js +17 -17
- package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +19 -19
- package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js +8 -8
- package/lib/esm/presentation-common/rules/content/PropertySpecification.d.ts +86 -86
- package/lib/esm/presentation-common/rules/content/PropertySpecification.js +8 -8
- package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +28 -28
- package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js +8 -8
- package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts +25 -25
- package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js +8 -8
- package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts +64 -57
- package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js +8 -8
- package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.d.ts +17 -17
- package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.js +8 -8
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +107 -107
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js +8 -8
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +108 -108
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js +18 -18
- package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +96 -96
- package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js +40 -40
- package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts +44 -44
- package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js +8 -8
- package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts +36 -36
- package/lib/esm/presentation-common/rules/customization/CustomizationRule.js +8 -8
- package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts +27 -27
- package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js +8 -8
- package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +207 -207
- package/lib/esm/presentation-common/rules/customization/GroupingRule.js +48 -48
- package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts +29 -29
- package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js +8 -8
- package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts +158 -158
- package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js +22 -22
- package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts +40 -40
- package/lib/esm/presentation-common/rules/customization/LabelOverride.js +8 -8
- package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts +58 -58
- package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/customization/SortingRule.js +8 -8
- package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts +48 -48
- package/lib/esm/presentation-common/rules/customization/StyleOverride.js +8 -8
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +14 -14
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js +8 -8
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +98 -98
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js +18 -18
- package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +31 -31
- package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js +8 -8
- package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +79 -79
- package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js +16 -16
- package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +39 -39
- package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js +8 -8
- package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.d.ts +50 -50
- package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.d.ts.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js +8 -8
- package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +27 -27
- package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js +8 -8
- package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +27 -27
- package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js +8 -8
- package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts +16 -16
- package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js +8 -8
- package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts +35 -35
- package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js +8 -8
- package/lib/esm/presentation-common/selection/SelectionScope.d.ts +38 -38
- package/lib/esm/presentation-common/selection/SelectionScope.d.ts.map +1 -1
- package/lib/esm/presentation-common/selection/SelectionScope.js +8 -8
- package/lib/esm/presentation-common.d.ts +114 -112
- package/lib/esm/presentation-common.d.ts.map +1 -1
- package/lib/esm/presentation-common.js +118 -116
- package/lib/esm/presentation-common.js.map +1 -1
- package/lib/public/locales/en/Presentation.json +19 -0
- package/package.json +17 -15
- package/lib/cjs/assets/locales/en/BisCore.json +0 -18
- package/lib/cjs/assets/locales/en/ECPresentation.json +0 -9
- package/lib/cjs/assets/locales/en/RulesEngine.json +0 -6
- package/lib/cjs/assets/locales/en-PSEUDO/BisCore.json +0 -18
- package/lib/cjs/assets/locales/en-PSEUDO/ECPresentation.json +0 -9
- package/lib/cjs/assets/locales/en-PSEUDO/RulesEngine.json +0 -6
- package/lib/public/locales/en/BisCore.json +0 -18
- package/lib/public/locales/en/ECPresentation.json +0 -9
- package/lib/public/locales/en/RulesEngine.json +0 -6
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Core
|
|
3
|
-
*/
|
|
4
|
-
import { CompressedId64Set, Id64String } from "@itwin/core-bentley";
|
|
5
|
-
/**
|
|
6
|
-
* Possible variable value types
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export declare enum VariableValueTypes {
|
|
10
|
-
/** Integer value */
|
|
11
|
-
Int = "int",
|
|
12
|
-
/** Array of integer values */
|
|
13
|
-
IntArray = "int[]",
|
|
14
|
-
/** Boolean value */
|
|
15
|
-
Bool = "bool",
|
|
16
|
-
/** String value */
|
|
17
|
-
String = "string",
|
|
18
|
-
/** Id64String value */
|
|
19
|
-
Id64 = "id64",
|
|
20
|
-
/** Array of Id64String values */
|
|
21
|
-
Id64Array = "id64[]"
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Union of all supported variable value types
|
|
25
|
-
* @public
|
|
26
|
-
*/
|
|
27
|
-
export
|
|
28
|
-
/**
|
|
29
|
-
* JSON representation of [[VariableValue]]
|
|
30
|
-
* @public
|
|
31
|
-
*/
|
|
32
|
-
export
|
|
33
|
-
/**
|
|
34
|
-
* Base data structure for representing ruleset variables.
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
export interface RulesetVariableBase {
|
|
38
|
-
id: string;
|
|
39
|
-
type: VariableValueTypes;
|
|
40
|
-
value: VariableValue;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Data structure for representing boolean ruleset variables.
|
|
44
|
-
* @public
|
|
45
|
-
*/
|
|
46
|
-
export interface BooleanRulesetVariable extends RulesetVariableBase {
|
|
47
|
-
type: VariableValueTypes.Bool;
|
|
48
|
-
value: boolean;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Data structure for representing string ruleset variables.
|
|
52
|
-
* @public
|
|
53
|
-
*/
|
|
54
|
-
export interface StringRulesetVariable extends RulesetVariableBase {
|
|
55
|
-
type: VariableValueTypes.String;
|
|
56
|
-
value: string;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Data structure for representing int ruleset variables.
|
|
60
|
-
* @public
|
|
61
|
-
*/
|
|
62
|
-
export interface IntRulesetVariable extends RulesetVariableBase {
|
|
63
|
-
type: VariableValueTypes.Int;
|
|
64
|
-
value: number;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Data structure for representing int array ruleset variables.
|
|
68
|
-
* @public
|
|
69
|
-
*/
|
|
70
|
-
export interface IntsRulesetVariable extends RulesetVariableBase {
|
|
71
|
-
type: VariableValueTypes.IntArray;
|
|
72
|
-
value: number[];
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Data structure for representing ID ruleset variables.
|
|
76
|
-
* @public
|
|
77
|
-
*/
|
|
78
|
-
export interface Id64RulesetVariable extends RulesetVariableBase {
|
|
79
|
-
type: VariableValueTypes.Id64;
|
|
80
|
-
value: Id64String;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Data structure for representing ID array ruleset variables.
|
|
84
|
-
* @public
|
|
85
|
-
*/
|
|
86
|
-
export interface Id64sRulesetVariable extends RulesetVariableBase {
|
|
87
|
-
type: VariableValueTypes.Id64Array;
|
|
88
|
-
value: Id64String[];
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Data structure for representing ruleset variables.
|
|
92
|
-
* @public
|
|
93
|
-
*/
|
|
94
|
-
export
|
|
95
|
-
/**
|
|
96
|
-
* JSON representation of [[RulesetVariableBase]].
|
|
97
|
-
* @public
|
|
98
|
-
*/
|
|
99
|
-
export interface RulesetVariableBaseJSON {
|
|
100
|
-
id: string;
|
|
101
|
-
type: VariableValueTypes;
|
|
102
|
-
value: VariableValueJSON;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* JSON representation of [[BooleanRulesetVariable]].
|
|
106
|
-
* @public
|
|
107
|
-
* @deprecated in 3.x. Use [[BooleanRulesetVariable]]
|
|
108
|
-
*/
|
|
109
|
-
export interface BooleanRulesetVariableJSON extends RulesetVariableBaseJSON {
|
|
110
|
-
type: VariableValueTypes.Bool;
|
|
111
|
-
value: boolean;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* JSON representation of [[StringRulesetVariable]].
|
|
115
|
-
* @public
|
|
116
|
-
* @deprecated in 3.x. Use [[StringRulesetVariable]]
|
|
117
|
-
*/
|
|
118
|
-
export interface StringRulesetVariableJSON extends RulesetVariableBaseJSON {
|
|
119
|
-
type: VariableValueTypes.String;
|
|
120
|
-
value: string;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* JSON representation of [[IntRulesetVariable]].
|
|
124
|
-
* @public
|
|
125
|
-
* @deprecated in 3.x. Use [[IntRulesetVariable]]
|
|
126
|
-
*/
|
|
127
|
-
export interface IntRulesetVariableJSON extends RulesetVariableBaseJSON {
|
|
128
|
-
type: VariableValueTypes.Int;
|
|
129
|
-
value: number;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* JSON representation of [[IntsRulesetVariable]].
|
|
133
|
-
* @public
|
|
134
|
-
* @deprecated in 3.x. Use [[IntsRulesetVariable]]
|
|
135
|
-
*/
|
|
136
|
-
export interface IntsRulesetVariableJSON extends RulesetVariableBaseJSON {
|
|
137
|
-
type: VariableValueTypes.IntArray;
|
|
138
|
-
value: number[];
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* JSON representation of [[Id64RulesetVariable]].
|
|
142
|
-
* @public
|
|
143
|
-
* @deprecated in 3.x. Use [[Id64RulesetVariable]]
|
|
144
|
-
*/
|
|
145
|
-
export interface Id64RulesetVariableJSON extends RulesetVariableBaseJSON {
|
|
146
|
-
type: VariableValueTypes.Id64;
|
|
147
|
-
value: Id64String;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* JSON representation of [[Id64sRulesetVariable]].
|
|
151
|
-
* @public
|
|
152
|
-
*/
|
|
153
|
-
export interface Id64sRulesetVariableJSON extends RulesetVariableBaseJSON {
|
|
154
|
-
type: VariableValueTypes.Id64Array;
|
|
155
|
-
value: Id64String[] | CompressedId64Set;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* JSON representation of [[RulesetVariable]].
|
|
159
|
-
* @public
|
|
160
|
-
*/
|
|
161
|
-
export
|
|
162
|
-
/** @public */
|
|
163
|
-
export declare namespace RulesetVariable {
|
|
164
|
-
/**
|
|
165
|
-
* Serialize given RulesetVariable to JSON.
|
|
166
|
-
* Note: In case of [[Id64sRulesetVariable]], this method expects IDs are sorted. See [[OrderedId64Iterable.sortArray]].
|
|
167
|
-
*/
|
|
168
|
-
function toJSON(variable: RulesetVariable): RulesetVariableJSON;
|
|
169
|
-
/** Deserialize [[RulesetVariable]] from JSON. */
|
|
170
|
-
function fromJSON(json: RulesetVariableJSON): RulesetVariable;
|
|
171
|
-
}
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Core
|
|
3
|
+
*/
|
|
4
|
+
import { CompressedId64Set, Id64String } from "@itwin/core-bentley";
|
|
5
|
+
/**
|
|
6
|
+
* Possible variable value types
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare enum VariableValueTypes {
|
|
10
|
+
/** Integer value */
|
|
11
|
+
Int = "int",
|
|
12
|
+
/** Array of integer values */
|
|
13
|
+
IntArray = "int[]",
|
|
14
|
+
/** Boolean value */
|
|
15
|
+
Bool = "bool",
|
|
16
|
+
/** String value */
|
|
17
|
+
String = "string",
|
|
18
|
+
/** Id64String value */
|
|
19
|
+
Id64 = "id64",
|
|
20
|
+
/** Array of Id64String values */
|
|
21
|
+
Id64Array = "id64[]"
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Union of all supported variable value types
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export type VariableValue = boolean | string | number | number[] | Id64String | Id64String[];
|
|
28
|
+
/**
|
|
29
|
+
* JSON representation of [[VariableValue]]
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export type VariableValueJSON = boolean | string | number | number[] | Id64String | Id64String[] | CompressedId64Set;
|
|
33
|
+
/**
|
|
34
|
+
* Base data structure for representing ruleset variables.
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export interface RulesetVariableBase {
|
|
38
|
+
id: string;
|
|
39
|
+
type: VariableValueTypes;
|
|
40
|
+
value: VariableValue;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Data structure for representing boolean ruleset variables.
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export interface BooleanRulesetVariable extends RulesetVariableBase {
|
|
47
|
+
type: VariableValueTypes.Bool;
|
|
48
|
+
value: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Data structure for representing string ruleset variables.
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export interface StringRulesetVariable extends RulesetVariableBase {
|
|
55
|
+
type: VariableValueTypes.String;
|
|
56
|
+
value: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Data structure for representing int ruleset variables.
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
export interface IntRulesetVariable extends RulesetVariableBase {
|
|
63
|
+
type: VariableValueTypes.Int;
|
|
64
|
+
value: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Data structure for representing int array ruleset variables.
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export interface IntsRulesetVariable extends RulesetVariableBase {
|
|
71
|
+
type: VariableValueTypes.IntArray;
|
|
72
|
+
value: number[];
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Data structure for representing ID ruleset variables.
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
export interface Id64RulesetVariable extends RulesetVariableBase {
|
|
79
|
+
type: VariableValueTypes.Id64;
|
|
80
|
+
value: Id64String;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Data structure for representing ID array ruleset variables.
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export interface Id64sRulesetVariable extends RulesetVariableBase {
|
|
87
|
+
type: VariableValueTypes.Id64Array;
|
|
88
|
+
value: Id64String[];
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Data structure for representing ruleset variables.
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export type RulesetVariable = BooleanRulesetVariable | StringRulesetVariable | IntRulesetVariable | IntsRulesetVariable | Id64RulesetVariable | Id64sRulesetVariable;
|
|
95
|
+
/**
|
|
96
|
+
* JSON representation of [[RulesetVariableBase]].
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export interface RulesetVariableBaseJSON {
|
|
100
|
+
id: string;
|
|
101
|
+
type: VariableValueTypes;
|
|
102
|
+
value: VariableValueJSON;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* JSON representation of [[BooleanRulesetVariable]].
|
|
106
|
+
* @public
|
|
107
|
+
* @deprecated in 3.x. Use [[BooleanRulesetVariable]]
|
|
108
|
+
*/
|
|
109
|
+
export interface BooleanRulesetVariableJSON extends RulesetVariableBaseJSON {
|
|
110
|
+
type: VariableValueTypes.Bool;
|
|
111
|
+
value: boolean;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* JSON representation of [[StringRulesetVariable]].
|
|
115
|
+
* @public
|
|
116
|
+
* @deprecated in 3.x. Use [[StringRulesetVariable]]
|
|
117
|
+
*/
|
|
118
|
+
export interface StringRulesetVariableJSON extends RulesetVariableBaseJSON {
|
|
119
|
+
type: VariableValueTypes.String;
|
|
120
|
+
value: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* JSON representation of [[IntRulesetVariable]].
|
|
124
|
+
* @public
|
|
125
|
+
* @deprecated in 3.x. Use [[IntRulesetVariable]]
|
|
126
|
+
*/
|
|
127
|
+
export interface IntRulesetVariableJSON extends RulesetVariableBaseJSON {
|
|
128
|
+
type: VariableValueTypes.Int;
|
|
129
|
+
value: number;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* JSON representation of [[IntsRulesetVariable]].
|
|
133
|
+
* @public
|
|
134
|
+
* @deprecated in 3.x. Use [[IntsRulesetVariable]]
|
|
135
|
+
*/
|
|
136
|
+
export interface IntsRulesetVariableJSON extends RulesetVariableBaseJSON {
|
|
137
|
+
type: VariableValueTypes.IntArray;
|
|
138
|
+
value: number[];
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* JSON representation of [[Id64RulesetVariable]].
|
|
142
|
+
* @public
|
|
143
|
+
* @deprecated in 3.x. Use [[Id64RulesetVariable]]
|
|
144
|
+
*/
|
|
145
|
+
export interface Id64RulesetVariableJSON extends RulesetVariableBaseJSON {
|
|
146
|
+
type: VariableValueTypes.Id64;
|
|
147
|
+
value: Id64String;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* JSON representation of [[Id64sRulesetVariable]].
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
export interface Id64sRulesetVariableJSON extends RulesetVariableBaseJSON {
|
|
154
|
+
type: VariableValueTypes.Id64Array;
|
|
155
|
+
value: Id64String[] | CompressedId64Set;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* JSON representation of [[RulesetVariable]].
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
161
|
+
export type RulesetVariableJSON = BooleanRulesetVariableJSON | StringRulesetVariableJSON | IntRulesetVariableJSON | IntsRulesetVariableJSON | Id64RulesetVariableJSON | Id64sRulesetVariableJSON;
|
|
162
|
+
/** @public */
|
|
163
|
+
export declare namespace RulesetVariable {
|
|
164
|
+
/**
|
|
165
|
+
* Serialize given RulesetVariable to JSON.
|
|
166
|
+
* Note: In case of [[Id64sRulesetVariable]], this method expects IDs are sorted. See [[OrderedId64Iterable.sortArray]].
|
|
167
|
+
*/
|
|
168
|
+
function toJSON(variable: RulesetVariable): RulesetVariableJSON;
|
|
169
|
+
/** Deserialize [[RulesetVariable]] from JSON. */
|
|
170
|
+
function fromJSON(json: RulesetVariableJSON): RulesetVariable;
|
|
171
|
+
}
|
|
172
172
|
//# sourceMappingURL=RulesetVariables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RulesetVariables.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/RulesetVariables.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEpE;;;GAGG;AACH,oBAAY,kBAAkB;IAC5B,oBAAoB;IACpB,GAAG,QAAQ;IAEX,8BAA8B;IAC9B,QAAQ,UAAU;IAElB,oBAAoB;IACpB,IAAI,SAAS;IAEb,mBAAmB;IACnB,MAAM,WAAW;IAEjB,uBAAuB;IACvB,IAAI,SAAS;IAEb,iCAAiC;IACjC,SAAS,WAAW;CACrB;AAED;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"RulesetVariables.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/RulesetVariables.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,56 +1,56 @@
|
|
|
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 Core
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.RulesetVariable = exports.VariableValueTypes = void 0;
|
|
11
|
-
const core_bentley_1 = require("@itwin/core-bentley");
|
|
12
|
-
/**
|
|
13
|
-
* Possible variable value types
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
var VariableValueTypes;
|
|
17
|
-
(function (VariableValueTypes) {
|
|
18
|
-
/** Integer value */
|
|
19
|
-
VariableValueTypes["Int"] = "int";
|
|
20
|
-
/** Array of integer values */
|
|
21
|
-
VariableValueTypes["IntArray"] = "int[]";
|
|
22
|
-
/** Boolean value */
|
|
23
|
-
VariableValueTypes["Bool"] = "bool";
|
|
24
|
-
/** String value */
|
|
25
|
-
VariableValueTypes["String"] = "string";
|
|
26
|
-
/** Id64String value */
|
|
27
|
-
VariableValueTypes["Id64"] = "id64";
|
|
28
|
-
/** Array of Id64String values */
|
|
29
|
-
VariableValueTypes["Id64Array"] = "id64[]";
|
|
30
|
-
})(VariableValueTypes = exports.VariableValueTypes || (exports.VariableValueTypes = {}));
|
|
31
|
-
/** @public */
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
33
|
-
var RulesetVariable;
|
|
34
|
-
(function (RulesetVariable) {
|
|
35
|
-
/**
|
|
36
|
-
* Serialize given RulesetVariable to JSON.
|
|
37
|
-
* Note: In case of [[Id64sRulesetVariable]], this method expects IDs are sorted. See [[OrderedId64Iterable.sortArray]].
|
|
38
|
-
*/
|
|
39
|
-
function toJSON(variable) {
|
|
40
|
-
if (variable.type === VariableValueTypes.Id64Array)
|
|
41
|
-
return { ...variable, value: core_bentley_1.CompressedId64Set.compressArray(variable.value) };
|
|
42
|
-
return variable;
|
|
43
|
-
}
|
|
44
|
-
RulesetVariable.toJSON = toJSON;
|
|
45
|
-
/** Deserialize [[RulesetVariable]] from JSON. */
|
|
46
|
-
function fromJSON(json) {
|
|
47
|
-
if (json.type === VariableValueTypes.Id64Array) {
|
|
48
|
-
if (typeof json.value === "string")
|
|
49
|
-
return { ...json, value: core_bentley_1.CompressedId64Set.decompressArray(json.value) };
|
|
50
|
-
return json; // for some reason TS doesn't understand that `json.value` is always an array here
|
|
51
|
-
}
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
RulesetVariable.fromJSON = fromJSON;
|
|
55
|
-
})(RulesetVariable = exports.RulesetVariable || (exports.RulesetVariable = {}));
|
|
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 Core
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.RulesetVariable = exports.VariableValueTypes = void 0;
|
|
11
|
+
const core_bentley_1 = require("@itwin/core-bentley");
|
|
12
|
+
/**
|
|
13
|
+
* Possible variable value types
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
var VariableValueTypes;
|
|
17
|
+
(function (VariableValueTypes) {
|
|
18
|
+
/** Integer value */
|
|
19
|
+
VariableValueTypes["Int"] = "int";
|
|
20
|
+
/** Array of integer values */
|
|
21
|
+
VariableValueTypes["IntArray"] = "int[]";
|
|
22
|
+
/** Boolean value */
|
|
23
|
+
VariableValueTypes["Bool"] = "bool";
|
|
24
|
+
/** String value */
|
|
25
|
+
VariableValueTypes["String"] = "string";
|
|
26
|
+
/** Id64String value */
|
|
27
|
+
VariableValueTypes["Id64"] = "id64";
|
|
28
|
+
/** Array of Id64String values */
|
|
29
|
+
VariableValueTypes["Id64Array"] = "id64[]";
|
|
30
|
+
})(VariableValueTypes = exports.VariableValueTypes || (exports.VariableValueTypes = {}));
|
|
31
|
+
/** @public */
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
33
|
+
var RulesetVariable;
|
|
34
|
+
(function (RulesetVariable) {
|
|
35
|
+
/**
|
|
36
|
+
* Serialize given RulesetVariable to JSON.
|
|
37
|
+
* Note: In case of [[Id64sRulesetVariable]], this method expects IDs are sorted. See [[OrderedId64Iterable.sortArray]].
|
|
38
|
+
*/
|
|
39
|
+
function toJSON(variable) {
|
|
40
|
+
if (variable.type === VariableValueTypes.Id64Array)
|
|
41
|
+
return { ...variable, value: core_bentley_1.CompressedId64Set.compressArray(variable.value) };
|
|
42
|
+
return variable;
|
|
43
|
+
}
|
|
44
|
+
RulesetVariable.toJSON = toJSON;
|
|
45
|
+
/** Deserialize [[RulesetVariable]] from JSON. */
|
|
46
|
+
function fromJSON(json) {
|
|
47
|
+
if (json.type === VariableValueTypes.Id64Array) {
|
|
48
|
+
if (typeof json.value === "string")
|
|
49
|
+
return { ...json, value: core_bentley_1.CompressedId64Set.decompressArray(json.value) };
|
|
50
|
+
return json; // for some reason TS doesn't understand that `json.value` is always an array here
|
|
51
|
+
}
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
RulesetVariable.fromJSON = fromJSON;
|
|
55
|
+
})(RulesetVariable = exports.RulesetVariable || (exports.RulesetVariable = {}));
|
|
56
56
|
//# sourceMappingURL=RulesetVariables.js.map
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Core
|
|
3
|
-
*/
|
|
4
|
-
import { Field } from "./content/Fields";
|
|
5
|
-
import { Item } from "./content/Item";
|
|
6
|
-
import { InstanceKey } from "./EC";
|
|
7
|
-
import { Ruleset } from "./rules/Ruleset";
|
|
8
|
-
/**
|
|
9
|
-
* A factory class that can be used to create presentation rulesets targeted towards
|
|
10
|
-
* specific use cases.
|
|
11
|
-
*
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export declare class RulesetsFactory {
|
|
15
|
-
private createSimilarInstancesRulesetInfo;
|
|
16
|
-
/**
|
|
17
|
-
* Create a ruleset with content rules for getting instances are of the
|
|
18
|
-
* same ECClass and have the same property value as the provided `record`.
|
|
19
|
-
* @param field A field identifying which property of the record we should use
|
|
20
|
-
* @param record A record whose similar instances should be found
|
|
21
|
-
* @param computeDisplayValue Optional callback function to calculate display value that's
|
|
22
|
-
* used in ruleset's description. If not provided, display value from record is used instead.
|
|
23
|
-
*/
|
|
24
|
-
createSimilarInstancesRuleset(field: Field, record: Item, computeDisplayValue?: ComputeDisplayValueCallback): Promise<{
|
|
25
|
-
ruleset: Ruleset;
|
|
26
|
-
description: string;
|
|
27
|
-
}>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Definition of a function for calculating a display value.
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
export
|
|
34
|
-
/**
|
|
35
|
-
* Value of a primitive property.
|
|
36
|
-
* @public
|
|
37
|
-
*/
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
x: number;
|
|
41
|
-
y: number;
|
|
42
|
-
z?: number;
|
|
43
|
-
};
|
|
44
|
-
export {};
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Core
|
|
3
|
+
*/
|
|
4
|
+
import { Field } from "./content/Fields";
|
|
5
|
+
import { Item } from "./content/Item";
|
|
6
|
+
import { InstanceKey } from "./EC";
|
|
7
|
+
import { Ruleset } from "./rules/Ruleset";
|
|
8
|
+
/**
|
|
9
|
+
* A factory class that can be used to create presentation rulesets targeted towards
|
|
10
|
+
* specific use cases.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export declare class RulesetsFactory {
|
|
15
|
+
private createSimilarInstancesRulesetInfo;
|
|
16
|
+
/**
|
|
17
|
+
* Create a ruleset with content rules for getting instances are of the
|
|
18
|
+
* same ECClass and have the same property value as the provided `record`.
|
|
19
|
+
* @param field A field identifying which property of the record we should use
|
|
20
|
+
* @param record A record whose similar instances should be found
|
|
21
|
+
* @param computeDisplayValue Optional callback function to calculate display value that's
|
|
22
|
+
* used in ruleset's description. If not provided, display value from record is used instead.
|
|
23
|
+
*/
|
|
24
|
+
createSimilarInstancesRuleset(field: Field, record: Item, computeDisplayValue?: ComputeDisplayValueCallback): Promise<{
|
|
25
|
+
ruleset: Ruleset;
|
|
26
|
+
description: string;
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Definition of a function for calculating a display value.
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export type ComputeDisplayValueCallback = (type: string, value: PrimitivePropertyValue, displayValue: string) => Promise<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Value of a primitive property.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export type PrimitivePropertyValue = string | number | boolean | Point | InstanceKey | undefined;
|
|
39
|
+
type Point = {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
z?: number;
|
|
43
|
+
};
|
|
44
|
+
export {};
|
|
45
45
|
//# sourceMappingURL=RulesetsFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RulesetsFactory.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/RulesetsFactory.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,KAAK,EAAmB,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGtC,OAAO,EAAa,WAAW,EAAoB,MAAM,MAAM,CAAC;AAMhE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C;;;;;GAKG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,iCAAiC;IAgCzC;;;;;;;OAOG;IACU,6BAA6B,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;CAK9K;AAED;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"RulesetsFactory.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/RulesetsFactory.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,KAAK,EAAmB,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGtC,OAAO,EAAa,WAAW,EAAoB,MAAM,MAAM,CAAC;AAMhE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C;;;;;GAKG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,iCAAiC;IAgCzC;;;;;;;OAOG;IACU,6BAA6B,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;CAK9K;AAED;;;GAGG;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAOjI;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,WAAW,GAAG,SAAS,CAAC;AAGjG,KAAK,KAAK,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
|