@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EC.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/EC.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAU,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"EC.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/EC.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAU,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAA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;AAE1G,cAAc;AACd,yBAAiB,gBAAgB,CAAC;IAChC,0DAA0D;IAC1D,SAAgB,OAAO,CAAC,IAAI,EAAE,gBAAgB,GAAG,gBAAgB,CAOhE;IAED,kFAAkF;IAClF,SAAgB,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,gBAAgB,GAAG,wBAAwB,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,gBAAgB,GAAG,wBAAwB,CAAC,GAAG,OAAO,CAGhJ;IAED,uEAAuE;IACvE,SAAgB,KAAK,CAAC,IAAI,EAAE,gBAAgB,GAAG,wBAAwB,CAEtE;CACF;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,EAAE,CAAC"}
|
|
@@ -1,291 +1,291 @@
|
|
|
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.RelationshipPath = exports.RelatedClassInfoWithOptionalRelationship = exports.RelatedClassInfo = exports.PropertyInfo = exports.NavigationPropertyInfo = exports.ClassInfo = exports.InstanceKey = void 0;
|
|
11
|
-
const core_bentley_1 = require("@itwin/core-bentley");
|
|
12
|
-
/** @public */
|
|
13
|
-
var InstanceKey;
|
|
14
|
-
(function (InstanceKey) {
|
|
15
|
-
/** Compare 2 instance keys */
|
|
16
|
-
function compare(lhs, rhs) {
|
|
17
|
-
const classNameCompare = lhs.className.localeCompare(rhs.className);
|
|
18
|
-
if (classNameCompare !== 0)
|
|
19
|
-
return classNameCompare;
|
|
20
|
-
return lhs.id.localeCompare(rhs.id);
|
|
21
|
-
}
|
|
22
|
-
InstanceKey.compare = compare;
|
|
23
|
-
/**
|
|
24
|
-
* Serialize [[InstanceKey]] to JSON
|
|
25
|
-
* @deprecated in 3.x. Use [[InstanceKey]].
|
|
26
|
-
*/
|
|
27
|
-
// istanbul ignore next
|
|
28
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
29
|
-
function toJSON(key) {
|
|
30
|
-
return { ...key };
|
|
31
|
-
}
|
|
32
|
-
InstanceKey.toJSON = toJSON;
|
|
33
|
-
/**
|
|
34
|
-
* Deserialize [[InstanceKey]] from JSON
|
|
35
|
-
* @deprecated in 3.x. Use [[InstanceKey]].
|
|
36
|
-
*/
|
|
37
|
-
// istanbul ignore next
|
|
38
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
39
|
-
function fromJSON(json) {
|
|
40
|
-
return { ...json };
|
|
41
|
-
}
|
|
42
|
-
InstanceKey.fromJSON = fromJSON;
|
|
43
|
-
})(InstanceKey = exports.InstanceKey || (exports.InstanceKey = {}));
|
|
44
|
-
/** @public */
|
|
45
|
-
var ClassInfo;
|
|
46
|
-
(function (ClassInfo) {
|
|
47
|
-
/**
|
|
48
|
-
* Serialize [[ClassInfo]] to JSON
|
|
49
|
-
* @deprecated in 3.x. Use [[ClassInfo]].
|
|
50
|
-
*/
|
|
51
|
-
// istanbul ignore next
|
|
52
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
53
|
-
function toJSON(info) {
|
|
54
|
-
return { ...info };
|
|
55
|
-
}
|
|
56
|
-
ClassInfo.toJSON = toJSON;
|
|
57
|
-
/**
|
|
58
|
-
* Deserialize [[ClassInfo]] from JSON
|
|
59
|
-
* @deprecated in 3.x. Use [[ClassInfo]].
|
|
60
|
-
*/
|
|
61
|
-
// istanbul ignore next
|
|
62
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
63
|
-
function fromJSON(json) {
|
|
64
|
-
return { ...json };
|
|
65
|
-
}
|
|
66
|
-
ClassInfo.fromJSON = fromJSON;
|
|
67
|
-
})(ClassInfo = exports.ClassInfo || (exports.ClassInfo = {}));
|
|
68
|
-
/**
|
|
69
|
-
* Contains utilities for working with objects of [[NavigationPropertyInfo]] type.
|
|
70
|
-
* @beta
|
|
71
|
-
*/
|
|
72
|
-
var NavigationPropertyInfo;
|
|
73
|
-
(function (NavigationPropertyInfo) {
|
|
74
|
-
/**
|
|
75
|
-
* Serialize [[NavigationPropertyInfo]] to JSON
|
|
76
|
-
* @deprecated in 3.x. Use [[toCompressedJSON]].
|
|
77
|
-
*/
|
|
78
|
-
// istanbul ignore next
|
|
79
|
-
function toJSON(info) {
|
|
80
|
-
return { ...info };
|
|
81
|
-
}
|
|
82
|
-
NavigationPropertyInfo.toJSON = toJSON;
|
|
83
|
-
/** Serialize [[NavigationPropertyInfo]] to compressed JSON */
|
|
84
|
-
function toCompressedJSON(navigationPropertyInfo, classesMap) {
|
|
85
|
-
const { id: relationshipId, ...relationshipLeftOverInfo } = navigationPropertyInfo.classInfo;
|
|
86
|
-
const { id: targetId, ...targetLeftOverInfo } = navigationPropertyInfo.targetClassInfo;
|
|
87
|
-
classesMap[relationshipId] = relationshipLeftOverInfo;
|
|
88
|
-
classesMap[targetId] = targetLeftOverInfo;
|
|
89
|
-
return {
|
|
90
|
-
...navigationPropertyInfo,
|
|
91
|
-
classInfo: relationshipId,
|
|
92
|
-
targetClassInfo: targetId,
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
NavigationPropertyInfo.toCompressedJSON = toCompressedJSON;
|
|
96
|
-
/**
|
|
97
|
-
* Deserialize [[NavigationPropertyInfo]] from JSON
|
|
98
|
-
* @deprecated in 3.x. Use [[fromCompressedJSON]].
|
|
99
|
-
*/
|
|
100
|
-
// istanbul ignore next
|
|
101
|
-
function fromJSON(json) {
|
|
102
|
-
return { ...json };
|
|
103
|
-
}
|
|
104
|
-
NavigationPropertyInfo.fromJSON = fromJSON;
|
|
105
|
-
/** Deserialize [[NavigationPropertyInfo]] from compressed JSON */
|
|
106
|
-
function fromCompressedJSON(compressedNavigationPropertyInfoJSON, classesMap) {
|
|
107
|
-
return {
|
|
108
|
-
...compressedNavigationPropertyInfoJSON,
|
|
109
|
-
classInfo: { id: compressedNavigationPropertyInfoJSON.classInfo, ...classesMap[compressedNavigationPropertyInfoJSON.classInfo] },
|
|
110
|
-
targetClassInfo: { id: compressedNavigationPropertyInfoJSON.targetClassInfo, ...classesMap[compressedNavigationPropertyInfoJSON.targetClassInfo] },
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
NavigationPropertyInfo.fromCompressedJSON = fromCompressedJSON;
|
|
114
|
-
})(NavigationPropertyInfo = exports.NavigationPropertyInfo || (exports.NavigationPropertyInfo = {}));
|
|
115
|
-
/** @public */
|
|
116
|
-
var PropertyInfo;
|
|
117
|
-
(function (PropertyInfo) {
|
|
118
|
-
/**
|
|
119
|
-
* Serialize [[PropertyInfo]] to JSON
|
|
120
|
-
* @deprecated in 3.x. Use [[PropertyInfo]].
|
|
121
|
-
*/
|
|
122
|
-
// istanbul ignore next
|
|
123
|
-
function toJSON(info) {
|
|
124
|
-
return { ...info };
|
|
125
|
-
}
|
|
126
|
-
PropertyInfo.toJSON = toJSON;
|
|
127
|
-
/** Serialize [[PropertyInfo]] to compressed JSON */
|
|
128
|
-
function toCompressedJSON(propertyInfo, classesMap) {
|
|
129
|
-
const { navigationPropertyInfo, ...leftOverPropertyInfo } = propertyInfo;
|
|
130
|
-
const { id, ...leftOverInfo } = propertyInfo.classInfo;
|
|
131
|
-
classesMap[id] = leftOverInfo;
|
|
132
|
-
return {
|
|
133
|
-
...leftOverPropertyInfo,
|
|
134
|
-
classInfo: propertyInfo.classInfo.id,
|
|
135
|
-
...(navigationPropertyInfo ? { navigationPropertyInfo: NavigationPropertyInfo.toCompressedJSON(navigationPropertyInfo, classesMap) } : undefined),
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
PropertyInfo.toCompressedJSON = toCompressedJSON;
|
|
139
|
-
/**
|
|
140
|
-
* Deserialize [[PropertyInfo]] from JSON
|
|
141
|
-
* @deprecated in 3.x. Use [[PropertyInfo]].
|
|
142
|
-
*/
|
|
143
|
-
// istanbul ignore next
|
|
144
|
-
function fromJSON(json) {
|
|
145
|
-
return { ...json };
|
|
146
|
-
}
|
|
147
|
-
PropertyInfo.fromJSON = fromJSON;
|
|
148
|
-
})(PropertyInfo = exports.PropertyInfo || (exports.PropertyInfo = {}));
|
|
149
|
-
/** @public */
|
|
150
|
-
var RelatedClassInfo;
|
|
151
|
-
(function (RelatedClassInfo) {
|
|
152
|
-
/**
|
|
153
|
-
* Serialize [[RelatedClassInfo]] to JSON
|
|
154
|
-
* @deprecated in 3.x. Use [[RelatedClassInfo]].
|
|
155
|
-
*/
|
|
156
|
-
function toJSON(info) {
|
|
157
|
-
return { ...info };
|
|
158
|
-
}
|
|
159
|
-
RelatedClassInfo.toJSON = toJSON;
|
|
160
|
-
/** Serialize [[RelatedClassInfo]] to compressed JSON */
|
|
161
|
-
function toCompressedJSON(classInfo, classesMap) {
|
|
162
|
-
const { id: sourceId, ...sourceLeftOverInfo } = classInfo.sourceClassInfo;
|
|
163
|
-
const { id: targetId, ...targetLeftOverInfo } = classInfo.targetClassInfo;
|
|
164
|
-
const { id: relationshipId, ...relationshipLeftOverInfo } = classInfo.relationshipInfo;
|
|
165
|
-
classesMap[sourceId] = sourceLeftOverInfo;
|
|
166
|
-
classesMap[targetId] = targetLeftOverInfo;
|
|
167
|
-
classesMap[relationshipId] = relationshipLeftOverInfo;
|
|
168
|
-
return {
|
|
169
|
-
...classInfo,
|
|
170
|
-
sourceClassInfo: sourceId,
|
|
171
|
-
targetClassInfo: targetId,
|
|
172
|
-
relationshipInfo: relationshipId,
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
RelatedClassInfo.toCompressedJSON = toCompressedJSON;
|
|
176
|
-
/**
|
|
177
|
-
* Deserialize [[RelatedClassInfo]] from JSON
|
|
178
|
-
* @deprecated in 3.x. Use [[RelatedClassInfo]].
|
|
179
|
-
*/
|
|
180
|
-
function fromJSON(json) {
|
|
181
|
-
return { ...json };
|
|
182
|
-
}
|
|
183
|
-
RelatedClassInfo.fromJSON = fromJSON;
|
|
184
|
-
/** Deserialize [[RelatedClassInfo]] from compressed JSON */
|
|
185
|
-
function fromCompressedJSON(json, classesMap) {
|
|
186
|
-
(0, core_bentley_1.assert)(classesMap.hasOwnProperty(json.sourceClassInfo));
|
|
187
|
-
(0, core_bentley_1.assert)(classesMap.hasOwnProperty(json.targetClassInfo));
|
|
188
|
-
(0, core_bentley_1.assert)(classesMap.hasOwnProperty(json.relationshipInfo));
|
|
189
|
-
return {
|
|
190
|
-
...json,
|
|
191
|
-
sourceClassInfo: { id: json.sourceClassInfo, ...classesMap[json.sourceClassInfo] },
|
|
192
|
-
targetClassInfo: { id: json.targetClassInfo, ...classesMap[json.targetClassInfo] },
|
|
193
|
-
relationshipInfo: { id: json.relationshipInfo, ...classesMap[json.relationshipInfo] },
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
RelatedClassInfo.fromCompressedJSON = fromCompressedJSON;
|
|
197
|
-
/** Check two [[RelatedClassInfo]] or [[StrippedRelatedClassInfo]] for equality */
|
|
198
|
-
function equals(lhs, rhs) {
|
|
199
|
-
return lhs.isForwardRelationship === rhs.isForwardRelationship
|
|
200
|
-
&& getClassName(lhs, "source") === getClassName(rhs, "source")
|
|
201
|
-
&& getClassName(lhs, "target") === getClassName(rhs, "target")
|
|
202
|
-
&& getClassName(lhs, "relationship") === getClassName(rhs, "relationship");
|
|
203
|
-
}
|
|
204
|
-
RelatedClassInfo.equals = equals;
|
|
205
|
-
function isStripped(info) {
|
|
206
|
-
const maybeStripped = info;
|
|
207
|
-
return !!maybeStripped.relationshipName && !!maybeStripped.sourceClassName && !!maybeStripped.targetClassName;
|
|
208
|
-
}
|
|
209
|
-
function getClassName(info, whichClass) {
|
|
210
|
-
switch (whichClass) {
|
|
211
|
-
case "source": return isStripped(info) ? info.sourceClassName : info.sourceClassInfo.name;
|
|
212
|
-
case "target": return isStripped(info) ? info.targetClassName : info.targetClassInfo.name;
|
|
213
|
-
case "relationship": return isStripped(info) ? info.relationshipName : info.relationshipInfo.name;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
/** Strip given [[RelatedClassInfo]] to [[StrippedRelatedClassInfo]] */
|
|
217
|
-
function strip(full) {
|
|
218
|
-
return {
|
|
219
|
-
sourceClassName: full.sourceClassInfo.name,
|
|
220
|
-
targetClassName: full.targetClassInfo.name,
|
|
221
|
-
relationshipName: full.relationshipInfo.name,
|
|
222
|
-
isForwardRelationship: full.isForwardRelationship,
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
RelatedClassInfo.strip = strip;
|
|
226
|
-
})(RelatedClassInfo = exports.RelatedClassInfo || (exports.RelatedClassInfo = {}));
|
|
227
|
-
/** @public */
|
|
228
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
229
|
-
var RelatedClassInfoWithOptionalRelationship;
|
|
230
|
-
(function (RelatedClassInfoWithOptionalRelationship) {
|
|
231
|
-
/** Serialize [[RelatedClassInfoWithOptionalRelationship]] to compressed JSON */
|
|
232
|
-
function toCompressedJSON(classInfo, classesMap) {
|
|
233
|
-
const { sourceClassInfo, targetClassInfo, relationshipInfo, ...otherProps } = classInfo;
|
|
234
|
-
const { id: sourceId, ...sourceLeftOverInfo } = sourceClassInfo;
|
|
235
|
-
const { id: targetId, ...targetLeftOverInfo } = targetClassInfo;
|
|
236
|
-
classesMap[sourceId] = sourceLeftOverInfo;
|
|
237
|
-
classesMap[targetId] = targetLeftOverInfo;
|
|
238
|
-
if (relationshipInfo) {
|
|
239
|
-
const { id: relationshipId, ...relationshipLeftOverInfo } = relationshipInfo;
|
|
240
|
-
classesMap[relationshipId] = relationshipLeftOverInfo;
|
|
241
|
-
}
|
|
242
|
-
return {
|
|
243
|
-
...otherProps,
|
|
244
|
-
sourceClassInfo: sourceId,
|
|
245
|
-
targetClassInfo: targetId,
|
|
246
|
-
...(relationshipInfo ? { relationshipInfo: relationshipInfo.id } : undefined),
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
RelatedClassInfoWithOptionalRelationship.toCompressedJSON = toCompressedJSON;
|
|
250
|
-
/** Deserialize [[RelatedClassInfoWithOptionalRelationship]] from compressed JSON */
|
|
251
|
-
function fromCompressedJSON(json, classesMap) {
|
|
252
|
-
const { sourceClassInfo, targetClassInfo, relationshipInfo, ...otherProps } = json;
|
|
253
|
-
(0, core_bentley_1.assert)(classesMap.hasOwnProperty(sourceClassInfo));
|
|
254
|
-
(0, core_bentley_1.assert)(classesMap.hasOwnProperty(targetClassInfo));
|
|
255
|
-
if (relationshipInfo)
|
|
256
|
-
(0, core_bentley_1.assert)(classesMap.hasOwnProperty(relationshipInfo));
|
|
257
|
-
return {
|
|
258
|
-
...otherProps,
|
|
259
|
-
sourceClassInfo: { id: sourceClassInfo, ...classesMap[sourceClassInfo] },
|
|
260
|
-
targetClassInfo: { id: targetClassInfo, ...classesMap[targetClassInfo] },
|
|
261
|
-
...(relationshipInfo ? { relationshipInfo: { id: relationshipInfo, ...classesMap[relationshipInfo] } } : undefined),
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
RelatedClassInfoWithOptionalRelationship.fromCompressedJSON = fromCompressedJSON;
|
|
265
|
-
})(RelatedClassInfoWithOptionalRelationship = exports.RelatedClassInfoWithOptionalRelationship || (exports.RelatedClassInfoWithOptionalRelationship = {}));
|
|
266
|
-
/** @public */
|
|
267
|
-
var RelationshipPath;
|
|
268
|
-
(function (RelationshipPath) {
|
|
269
|
-
/** Reverse direction of the given [[RelationshipPath]] */
|
|
270
|
-
function reverse(path) {
|
|
271
|
-
return [...path].reverse().map((step) => ({
|
|
272
|
-
...step,
|
|
273
|
-
sourceClassInfo: step.targetClassInfo,
|
|
274
|
-
targetClassInfo: step.sourceClassInfo,
|
|
275
|
-
isForwardRelationship: !step.isForwardRelationship,
|
|
276
|
-
}));
|
|
277
|
-
}
|
|
278
|
-
RelationshipPath.reverse = reverse;
|
|
279
|
-
/** Check two [[RelationshipPath]] or [[StrippedRelationshipPath]] for equality */
|
|
280
|
-
function equals(lhs, rhs) {
|
|
281
|
-
return lhs.length === rhs.length
|
|
282
|
-
&& lhs.every((lhsPart, i) => RelatedClassInfo.equals(lhsPart, rhs[i]));
|
|
283
|
-
}
|
|
284
|
-
RelationshipPath.equals = equals;
|
|
285
|
-
/** Strip given [[RelationshipPath]] to [[StrippedRelationshipPath]] */
|
|
286
|
-
function strip(full) {
|
|
287
|
-
return full.map(RelatedClassInfo.strip);
|
|
288
|
-
}
|
|
289
|
-
RelationshipPath.strip = strip;
|
|
290
|
-
})(RelationshipPath = exports.RelationshipPath || (exports.RelationshipPath = {}));
|
|
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.RelationshipPath = exports.RelatedClassInfoWithOptionalRelationship = exports.RelatedClassInfo = exports.PropertyInfo = exports.NavigationPropertyInfo = exports.ClassInfo = exports.InstanceKey = void 0;
|
|
11
|
+
const core_bentley_1 = require("@itwin/core-bentley");
|
|
12
|
+
/** @public */
|
|
13
|
+
var InstanceKey;
|
|
14
|
+
(function (InstanceKey) {
|
|
15
|
+
/** Compare 2 instance keys */
|
|
16
|
+
function compare(lhs, rhs) {
|
|
17
|
+
const classNameCompare = lhs.className.localeCompare(rhs.className);
|
|
18
|
+
if (classNameCompare !== 0)
|
|
19
|
+
return classNameCompare;
|
|
20
|
+
return lhs.id.localeCompare(rhs.id);
|
|
21
|
+
}
|
|
22
|
+
InstanceKey.compare = compare;
|
|
23
|
+
/**
|
|
24
|
+
* Serialize [[InstanceKey]] to JSON
|
|
25
|
+
* @deprecated in 3.x. Use [[InstanceKey]].
|
|
26
|
+
*/
|
|
27
|
+
// istanbul ignore next
|
|
28
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
29
|
+
function toJSON(key) {
|
|
30
|
+
return { ...key };
|
|
31
|
+
}
|
|
32
|
+
InstanceKey.toJSON = toJSON;
|
|
33
|
+
/**
|
|
34
|
+
* Deserialize [[InstanceKey]] from JSON
|
|
35
|
+
* @deprecated in 3.x. Use [[InstanceKey]].
|
|
36
|
+
*/
|
|
37
|
+
// istanbul ignore next
|
|
38
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
39
|
+
function fromJSON(json) {
|
|
40
|
+
return { ...json };
|
|
41
|
+
}
|
|
42
|
+
InstanceKey.fromJSON = fromJSON;
|
|
43
|
+
})(InstanceKey = exports.InstanceKey || (exports.InstanceKey = {}));
|
|
44
|
+
/** @public */
|
|
45
|
+
var ClassInfo;
|
|
46
|
+
(function (ClassInfo) {
|
|
47
|
+
/**
|
|
48
|
+
* Serialize [[ClassInfo]] to JSON
|
|
49
|
+
* @deprecated in 3.x. Use [[ClassInfo]].
|
|
50
|
+
*/
|
|
51
|
+
// istanbul ignore next
|
|
52
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
53
|
+
function toJSON(info) {
|
|
54
|
+
return { ...info };
|
|
55
|
+
}
|
|
56
|
+
ClassInfo.toJSON = toJSON;
|
|
57
|
+
/**
|
|
58
|
+
* Deserialize [[ClassInfo]] from JSON
|
|
59
|
+
* @deprecated in 3.x. Use [[ClassInfo]].
|
|
60
|
+
*/
|
|
61
|
+
// istanbul ignore next
|
|
62
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
63
|
+
function fromJSON(json) {
|
|
64
|
+
return { ...json };
|
|
65
|
+
}
|
|
66
|
+
ClassInfo.fromJSON = fromJSON;
|
|
67
|
+
})(ClassInfo = exports.ClassInfo || (exports.ClassInfo = {}));
|
|
68
|
+
/**
|
|
69
|
+
* Contains utilities for working with objects of [[NavigationPropertyInfo]] type.
|
|
70
|
+
* @beta
|
|
71
|
+
*/
|
|
72
|
+
var NavigationPropertyInfo;
|
|
73
|
+
(function (NavigationPropertyInfo) {
|
|
74
|
+
/**
|
|
75
|
+
* Serialize [[NavigationPropertyInfo]] to JSON
|
|
76
|
+
* @deprecated in 3.x. Use [[toCompressedJSON]].
|
|
77
|
+
*/
|
|
78
|
+
// istanbul ignore next
|
|
79
|
+
function toJSON(info) {
|
|
80
|
+
return { ...info };
|
|
81
|
+
}
|
|
82
|
+
NavigationPropertyInfo.toJSON = toJSON;
|
|
83
|
+
/** Serialize [[NavigationPropertyInfo]] to compressed JSON */
|
|
84
|
+
function toCompressedJSON(navigationPropertyInfo, classesMap) {
|
|
85
|
+
const { id: relationshipId, ...relationshipLeftOverInfo } = navigationPropertyInfo.classInfo;
|
|
86
|
+
const { id: targetId, ...targetLeftOverInfo } = navigationPropertyInfo.targetClassInfo;
|
|
87
|
+
classesMap[relationshipId] = relationshipLeftOverInfo;
|
|
88
|
+
classesMap[targetId] = targetLeftOverInfo;
|
|
89
|
+
return {
|
|
90
|
+
...navigationPropertyInfo,
|
|
91
|
+
classInfo: relationshipId,
|
|
92
|
+
targetClassInfo: targetId,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
NavigationPropertyInfo.toCompressedJSON = toCompressedJSON;
|
|
96
|
+
/**
|
|
97
|
+
* Deserialize [[NavigationPropertyInfo]] from JSON
|
|
98
|
+
* @deprecated in 3.x. Use [[fromCompressedJSON]].
|
|
99
|
+
*/
|
|
100
|
+
// istanbul ignore next
|
|
101
|
+
function fromJSON(json) {
|
|
102
|
+
return { ...json };
|
|
103
|
+
}
|
|
104
|
+
NavigationPropertyInfo.fromJSON = fromJSON;
|
|
105
|
+
/** Deserialize [[NavigationPropertyInfo]] from compressed JSON */
|
|
106
|
+
function fromCompressedJSON(compressedNavigationPropertyInfoJSON, classesMap) {
|
|
107
|
+
return {
|
|
108
|
+
...compressedNavigationPropertyInfoJSON,
|
|
109
|
+
classInfo: { id: compressedNavigationPropertyInfoJSON.classInfo, ...classesMap[compressedNavigationPropertyInfoJSON.classInfo] },
|
|
110
|
+
targetClassInfo: { id: compressedNavigationPropertyInfoJSON.targetClassInfo, ...classesMap[compressedNavigationPropertyInfoJSON.targetClassInfo] },
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
NavigationPropertyInfo.fromCompressedJSON = fromCompressedJSON;
|
|
114
|
+
})(NavigationPropertyInfo = exports.NavigationPropertyInfo || (exports.NavigationPropertyInfo = {}));
|
|
115
|
+
/** @public */
|
|
116
|
+
var PropertyInfo;
|
|
117
|
+
(function (PropertyInfo) {
|
|
118
|
+
/**
|
|
119
|
+
* Serialize [[PropertyInfo]] to JSON
|
|
120
|
+
* @deprecated in 3.x. Use [[PropertyInfo]].
|
|
121
|
+
*/
|
|
122
|
+
// istanbul ignore next
|
|
123
|
+
function toJSON(info) {
|
|
124
|
+
return { ...info };
|
|
125
|
+
}
|
|
126
|
+
PropertyInfo.toJSON = toJSON;
|
|
127
|
+
/** Serialize [[PropertyInfo]] to compressed JSON */
|
|
128
|
+
function toCompressedJSON(propertyInfo, classesMap) {
|
|
129
|
+
const { navigationPropertyInfo, ...leftOverPropertyInfo } = propertyInfo;
|
|
130
|
+
const { id, ...leftOverInfo } = propertyInfo.classInfo;
|
|
131
|
+
classesMap[id] = leftOverInfo;
|
|
132
|
+
return {
|
|
133
|
+
...leftOverPropertyInfo,
|
|
134
|
+
classInfo: propertyInfo.classInfo.id,
|
|
135
|
+
...(navigationPropertyInfo ? { navigationPropertyInfo: NavigationPropertyInfo.toCompressedJSON(navigationPropertyInfo, classesMap) } : undefined),
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
PropertyInfo.toCompressedJSON = toCompressedJSON;
|
|
139
|
+
/**
|
|
140
|
+
* Deserialize [[PropertyInfo]] from JSON
|
|
141
|
+
* @deprecated in 3.x. Use [[PropertyInfo]].
|
|
142
|
+
*/
|
|
143
|
+
// istanbul ignore next
|
|
144
|
+
function fromJSON(json) {
|
|
145
|
+
return { ...json };
|
|
146
|
+
}
|
|
147
|
+
PropertyInfo.fromJSON = fromJSON;
|
|
148
|
+
})(PropertyInfo = exports.PropertyInfo || (exports.PropertyInfo = {}));
|
|
149
|
+
/** @public */
|
|
150
|
+
var RelatedClassInfo;
|
|
151
|
+
(function (RelatedClassInfo) {
|
|
152
|
+
/**
|
|
153
|
+
* Serialize [[RelatedClassInfo]] to JSON
|
|
154
|
+
* @deprecated in 3.x. Use [[RelatedClassInfo]].
|
|
155
|
+
*/
|
|
156
|
+
function toJSON(info) {
|
|
157
|
+
return { ...info };
|
|
158
|
+
}
|
|
159
|
+
RelatedClassInfo.toJSON = toJSON;
|
|
160
|
+
/** Serialize [[RelatedClassInfo]] to compressed JSON */
|
|
161
|
+
function toCompressedJSON(classInfo, classesMap) {
|
|
162
|
+
const { id: sourceId, ...sourceLeftOverInfo } = classInfo.sourceClassInfo;
|
|
163
|
+
const { id: targetId, ...targetLeftOverInfo } = classInfo.targetClassInfo;
|
|
164
|
+
const { id: relationshipId, ...relationshipLeftOverInfo } = classInfo.relationshipInfo;
|
|
165
|
+
classesMap[sourceId] = sourceLeftOverInfo;
|
|
166
|
+
classesMap[targetId] = targetLeftOverInfo;
|
|
167
|
+
classesMap[relationshipId] = relationshipLeftOverInfo;
|
|
168
|
+
return {
|
|
169
|
+
...classInfo,
|
|
170
|
+
sourceClassInfo: sourceId,
|
|
171
|
+
targetClassInfo: targetId,
|
|
172
|
+
relationshipInfo: relationshipId,
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
RelatedClassInfo.toCompressedJSON = toCompressedJSON;
|
|
176
|
+
/**
|
|
177
|
+
* Deserialize [[RelatedClassInfo]] from JSON
|
|
178
|
+
* @deprecated in 3.x. Use [[RelatedClassInfo]].
|
|
179
|
+
*/
|
|
180
|
+
function fromJSON(json) {
|
|
181
|
+
return { ...json };
|
|
182
|
+
}
|
|
183
|
+
RelatedClassInfo.fromJSON = fromJSON;
|
|
184
|
+
/** Deserialize [[RelatedClassInfo]] from compressed JSON */
|
|
185
|
+
function fromCompressedJSON(json, classesMap) {
|
|
186
|
+
(0, core_bentley_1.assert)(classesMap.hasOwnProperty(json.sourceClassInfo));
|
|
187
|
+
(0, core_bentley_1.assert)(classesMap.hasOwnProperty(json.targetClassInfo));
|
|
188
|
+
(0, core_bentley_1.assert)(classesMap.hasOwnProperty(json.relationshipInfo));
|
|
189
|
+
return {
|
|
190
|
+
...json,
|
|
191
|
+
sourceClassInfo: { id: json.sourceClassInfo, ...classesMap[json.sourceClassInfo] },
|
|
192
|
+
targetClassInfo: { id: json.targetClassInfo, ...classesMap[json.targetClassInfo] },
|
|
193
|
+
relationshipInfo: { id: json.relationshipInfo, ...classesMap[json.relationshipInfo] },
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
RelatedClassInfo.fromCompressedJSON = fromCompressedJSON;
|
|
197
|
+
/** Check two [[RelatedClassInfo]] or [[StrippedRelatedClassInfo]] for equality */
|
|
198
|
+
function equals(lhs, rhs) {
|
|
199
|
+
return lhs.isForwardRelationship === rhs.isForwardRelationship
|
|
200
|
+
&& getClassName(lhs, "source") === getClassName(rhs, "source")
|
|
201
|
+
&& getClassName(lhs, "target") === getClassName(rhs, "target")
|
|
202
|
+
&& getClassName(lhs, "relationship") === getClassName(rhs, "relationship");
|
|
203
|
+
}
|
|
204
|
+
RelatedClassInfo.equals = equals;
|
|
205
|
+
function isStripped(info) {
|
|
206
|
+
const maybeStripped = info;
|
|
207
|
+
return !!maybeStripped.relationshipName && !!maybeStripped.sourceClassName && !!maybeStripped.targetClassName;
|
|
208
|
+
}
|
|
209
|
+
function getClassName(info, whichClass) {
|
|
210
|
+
switch (whichClass) {
|
|
211
|
+
case "source": return isStripped(info) ? info.sourceClassName : info.sourceClassInfo.name;
|
|
212
|
+
case "target": return isStripped(info) ? info.targetClassName : info.targetClassInfo.name;
|
|
213
|
+
case "relationship": return isStripped(info) ? info.relationshipName : info.relationshipInfo.name;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
/** Strip given [[RelatedClassInfo]] to [[StrippedRelatedClassInfo]] */
|
|
217
|
+
function strip(full) {
|
|
218
|
+
return {
|
|
219
|
+
sourceClassName: full.sourceClassInfo.name,
|
|
220
|
+
targetClassName: full.targetClassInfo.name,
|
|
221
|
+
relationshipName: full.relationshipInfo.name,
|
|
222
|
+
isForwardRelationship: full.isForwardRelationship,
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
RelatedClassInfo.strip = strip;
|
|
226
|
+
})(RelatedClassInfo = exports.RelatedClassInfo || (exports.RelatedClassInfo = {}));
|
|
227
|
+
/** @public */
|
|
228
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
229
|
+
var RelatedClassInfoWithOptionalRelationship;
|
|
230
|
+
(function (RelatedClassInfoWithOptionalRelationship) {
|
|
231
|
+
/** Serialize [[RelatedClassInfoWithOptionalRelationship]] to compressed JSON */
|
|
232
|
+
function toCompressedJSON(classInfo, classesMap) {
|
|
233
|
+
const { sourceClassInfo, targetClassInfo, relationshipInfo, ...otherProps } = classInfo;
|
|
234
|
+
const { id: sourceId, ...sourceLeftOverInfo } = sourceClassInfo;
|
|
235
|
+
const { id: targetId, ...targetLeftOverInfo } = targetClassInfo;
|
|
236
|
+
classesMap[sourceId] = sourceLeftOverInfo;
|
|
237
|
+
classesMap[targetId] = targetLeftOverInfo;
|
|
238
|
+
if (relationshipInfo) {
|
|
239
|
+
const { id: relationshipId, ...relationshipLeftOverInfo } = relationshipInfo;
|
|
240
|
+
classesMap[relationshipId] = relationshipLeftOverInfo;
|
|
241
|
+
}
|
|
242
|
+
return {
|
|
243
|
+
...otherProps,
|
|
244
|
+
sourceClassInfo: sourceId,
|
|
245
|
+
targetClassInfo: targetId,
|
|
246
|
+
...(relationshipInfo ? { relationshipInfo: relationshipInfo.id } : undefined),
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
RelatedClassInfoWithOptionalRelationship.toCompressedJSON = toCompressedJSON;
|
|
250
|
+
/** Deserialize [[RelatedClassInfoWithOptionalRelationship]] from compressed JSON */
|
|
251
|
+
function fromCompressedJSON(json, classesMap) {
|
|
252
|
+
const { sourceClassInfo, targetClassInfo, relationshipInfo, ...otherProps } = json;
|
|
253
|
+
(0, core_bentley_1.assert)(classesMap.hasOwnProperty(sourceClassInfo));
|
|
254
|
+
(0, core_bentley_1.assert)(classesMap.hasOwnProperty(targetClassInfo));
|
|
255
|
+
if (relationshipInfo)
|
|
256
|
+
(0, core_bentley_1.assert)(classesMap.hasOwnProperty(relationshipInfo));
|
|
257
|
+
return {
|
|
258
|
+
...otherProps,
|
|
259
|
+
sourceClassInfo: { id: sourceClassInfo, ...classesMap[sourceClassInfo] },
|
|
260
|
+
targetClassInfo: { id: targetClassInfo, ...classesMap[targetClassInfo] },
|
|
261
|
+
...(relationshipInfo ? { relationshipInfo: { id: relationshipInfo, ...classesMap[relationshipInfo] } } : undefined),
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
RelatedClassInfoWithOptionalRelationship.fromCompressedJSON = fromCompressedJSON;
|
|
265
|
+
})(RelatedClassInfoWithOptionalRelationship = exports.RelatedClassInfoWithOptionalRelationship || (exports.RelatedClassInfoWithOptionalRelationship = {}));
|
|
266
|
+
/** @public */
|
|
267
|
+
var RelationshipPath;
|
|
268
|
+
(function (RelationshipPath) {
|
|
269
|
+
/** Reverse direction of the given [[RelationshipPath]] */
|
|
270
|
+
function reverse(path) {
|
|
271
|
+
return [...path].reverse().map((step) => ({
|
|
272
|
+
...step,
|
|
273
|
+
sourceClassInfo: step.targetClassInfo,
|
|
274
|
+
targetClassInfo: step.sourceClassInfo,
|
|
275
|
+
isForwardRelationship: !step.isForwardRelationship,
|
|
276
|
+
}));
|
|
277
|
+
}
|
|
278
|
+
RelationshipPath.reverse = reverse;
|
|
279
|
+
/** Check two [[RelationshipPath]] or [[StrippedRelationshipPath]] for equality */
|
|
280
|
+
function equals(lhs, rhs) {
|
|
281
|
+
return lhs.length === rhs.length
|
|
282
|
+
&& lhs.every((lhsPart, i) => RelatedClassInfo.equals(lhsPart, rhs[i]));
|
|
283
|
+
}
|
|
284
|
+
RelationshipPath.equals = equals;
|
|
285
|
+
/** Strip given [[RelationshipPath]] to [[StrippedRelationshipPath]] */
|
|
286
|
+
function strip(full) {
|
|
287
|
+
return full.map(RelatedClassInfo.strip);
|
|
288
|
+
}
|
|
289
|
+
RelationshipPath.strip = strip;
|
|
290
|
+
})(RelationshipPath = exports.RelationshipPath || (exports.RelationshipPath = {}));
|
|
291
291
|
//# sourceMappingURL=EC.js.map
|