@itwin/presentation-common 3.5.0-dev.4 → 3.5.0-dev.7
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/lib/cjs/assets/locales/en/BisCore.json +18 -18
- package/lib/cjs/assets/locales/en/ECPresentation.json +9 -9
- package/lib/cjs/assets/locales/en/RulesEngine.json +5 -5
- package/lib/cjs/presentation-common/AsyncTasks.d.ts +22 -22
- package/lib/cjs/presentation-common/AsyncTasks.js +38 -38
- package/lib/cjs/presentation-common/AsyncTasks.js.map +1 -1
- package/lib/cjs/presentation-common/CommonLoggerCategory.d.ts +12 -12
- package/lib/cjs/presentation-common/CommonLoggerCategory.js +20 -20
- package/lib/cjs/presentation-common/CommonLoggerCategory.js.map +1 -1
- package/lib/cjs/presentation-common/Diagnostics.d.ts +125 -125
- package/lib/cjs/presentation-common/Diagnostics.js +72 -72
- package/lib/cjs/presentation-common/Diagnostics.js.map +1 -1
- package/lib/cjs/presentation-common/EC.d.ts +315 -315
- package/lib/cjs/presentation-common/EC.js +270 -270
- 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.js +9 -9
- package/lib/cjs/presentation-common/ElementProperties.js.map +1 -1
- package/lib/cjs/presentation-common/Error.d.ts +45 -45
- package/lib/cjs/presentation-common/Error.js +62 -62
- package/lib/cjs/presentation-common/Error.js.map +1 -1
- package/lib/cjs/presentation-common/KeySet.d.ts +146 -146
- package/lib/cjs/presentation-common/KeySet.js +418 -418
- package/lib/cjs/presentation-common/KeySet.js.map +1 -1
- package/lib/cjs/presentation-common/LabelDefinition.d.ts +79 -79
- package/lib/cjs/presentation-common/LabelDefinition.js +76 -76
- 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.js +110 -110
- package/lib/cjs/presentation-common/LocalizationHelper.js.map +1 -1
- package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts +37 -37
- 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 +242 -242
- 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 +181 -181
- package/lib/cjs/presentation-common/PresentationRpcInterface.js +102 -102
- 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/RegisteredRuleset.js.map +1 -1
- package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts +82 -82
- package/lib/cjs/presentation-common/RpcRequestsHandler.js +155 -155
- package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
- package/lib/cjs/presentation-common/RulesetVariables.d.ts +166 -166
- package/lib/cjs/presentation-common/RulesetVariables.js +55 -55
- package/lib/cjs/presentation-common/RulesetVariables.js.map +1 -1
- package/lib/cjs/presentation-common/RulesetsFactory.d.ts +44 -44
- 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 +194 -194
- package/lib/cjs/presentation-common/Update.js +196 -196
- package/lib/cjs/presentation-common/Update.js.map +1 -1
- package/lib/cjs/presentation-common/Utils.d.ts +64 -64
- package/lib/cjs/presentation-common/Utils.js +45 -45
- package/lib/cjs/presentation-common/Utils.js.map +1 -1
- package/lib/cjs/presentation-common/content/Category.d.ts +49 -49
- package/lib/cjs/presentation-common/content/Category.js +49 -49
- package/lib/cjs/presentation-common/content/Category.js.map +1 -1
- 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/Content.js.map +1 -1
- package/lib/cjs/presentation-common/content/ContentTraverser.d.ts +101 -101
- package/lib/cjs/presentation-common/content/ContentTraverser.js +420 -420
- package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
- package/lib/cjs/presentation-common/content/Descriptor.d.ts +240 -240
- package/lib/cjs/presentation-common/content/Descriptor.js +189 -189
- 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/DisplayTypes.js.map +1 -1
- 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/Editor.js.map +1 -1
- package/lib/cjs/presentation-common/content/Fields.d.ts +282 -282
- package/lib/cjs/presentation-common/content/Fields.js +394 -394
- package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
- package/lib/cjs/presentation-common/content/Item.d.ts +87 -87
- package/lib/cjs/presentation-common/content/Item.js +86 -86
- package/lib/cjs/presentation-common/content/Item.js.map +1 -1
- package/lib/cjs/presentation-common/content/Property.d.ts +51 -51
- package/lib/cjs/presentation-common/content/Property.js +36 -36
- package/lib/cjs/presentation-common/content/Property.js.map +1 -1
- 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/Renderer.js.map +1 -1
- package/lib/cjs/presentation-common/content/TypeDescription.d.ts +72 -72
- package/lib/cjs/presentation-common/content/TypeDescription.js +23 -23
- package/lib/cjs/presentation-common/content/TypeDescription.js.map +1 -1
- package/lib/cjs/presentation-common/content/Value.d.ts +157 -157
- package/lib/cjs/presentation-common/content/Value.js +217 -217
- package/lib/cjs/presentation-common/content/Value.js.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/Key.d.ts +185 -185
- package/lib/cjs/presentation-common/hierarchy/Key.js +112 -112
- package/lib/cjs/presentation-common/hierarchy/Key.js.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/Node.d.ts +141 -141
- package/lib/cjs/presentation-common/hierarchy/Node.js +97 -97
- package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
- package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts +85 -85
- package/lib/cjs/presentation-common/hierarchy/NodePathElement.js +98 -98
- package/lib/cjs/presentation-common/hierarchy/NodePathElement.js.map +1 -1
- 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/ClassSpecifications.js.map +1 -1
- 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/RelatedInstanceSpecification.js.map +1 -1
- 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/RelationshipDirection.js.map +1 -1
- package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts +53 -53
- package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/Rule.d.ts +74 -74
- package/lib/cjs/presentation-common/rules/Rule.js +35 -35
- package/lib/cjs/presentation-common/rules/Rule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/Ruleset.d.ts +66 -66
- package/lib/cjs/presentation-common/rules/Ruleset.js +9 -9
- package/lib/cjs/presentation-common/rules/Ruleset.js.map +1 -1
- 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/SchemasSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/Variables.d.ts +55 -55
- package/lib/cjs/presentation-common/rules/Variables.js +25 -25
- package/lib/cjs/presentation-common/rules/Variables.js.map +1 -1
- 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/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
- 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/ContentRelatedInstancesSpecification.js.map +1 -1
- 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/ContentRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +55 -55
- package/lib/cjs/presentation-common/rules/content/ContentSpecification.js +20 -20
- package/lib/cjs/presentation-common/rules/content/ContentSpecification.js.map +1 -1
- 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/DefaultPropertyCategoryOverride.js.map +1 -1
- 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/PropertySpecification.js.map +1 -1
- 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/SelectedNodeInstancesSpecification.js.map +1 -1
- 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/CalculatedPropertiesSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts +57 -57
- 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/CustomRendererSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +107 -107
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js +9 -9
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +105 -105
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js +21 -21
- package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +93 -93
- package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js +43 -43
- package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
- 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/CheckBoxRule.js.map +1 -1
- 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/CustomizationRule.js.map +1 -1
- 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/ExtendedDataRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +200 -200
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.js +51 -51
- package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
- 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/ImageIdOverride.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts +156 -156
- package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js +25 -25
- package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
- 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/LabelOverride.js.map +1 -1
- package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts +58 -58
- package/lib/cjs/presentation-common/rules/customization/SortingRule.js +9 -9
- package/lib/cjs/presentation-common/rules/customization/SortingRule.js.map +1 -1
- 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/customization/StyleOverride.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +15 -15
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js +9 -9
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +97 -97
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js +22 -22
- package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
- 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/CustomNodeSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +76 -76
- package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js +19 -19
- package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
- 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/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.d.ts +50 -50
- package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.js +9 -9
- package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
- 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/NodeArtifactsRule.js.map +1 -1
- 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/RelatedInstanceNodesSpecification.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts +17 -17
- package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js +9 -9
- package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
- package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts +36 -36
- package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js +9 -9
- package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
- package/lib/cjs/presentation-common/selection/SelectionScope.d.ts +25 -25
- package/lib/cjs/presentation-common/selection/SelectionScope.js +9 -9
- package/lib/cjs/presentation-common/selection/SelectionScope.js.map +1 -1
- package/lib/cjs/presentation-common.d.ts +110 -110
- package/lib/cjs/presentation-common.js +126 -126
- 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/AsyncTasks.js.map +1 -1
- package/lib/esm/presentation-common/CommonLoggerCategory.d.ts +12 -12
- package/lib/esm/presentation-common/CommonLoggerCategory.js +17 -17
- package/lib/esm/presentation-common/CommonLoggerCategory.js.map +1 -1
- package/lib/esm/presentation-common/Diagnostics.d.ts +125 -125
- package/lib/esm/presentation-common/Diagnostics.js +67 -67
- package/lib/esm/presentation-common/Diagnostics.js.map +1 -1
- package/lib/esm/presentation-common/EC.d.ts +315 -315
- package/lib/esm/presentation-common/EC.js +267 -267
- 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.js +8 -8
- package/lib/esm/presentation-common/ElementProperties.js.map +1 -1
- package/lib/esm/presentation-common/Error.d.ts +45 -45
- package/lib/esm/presentation-common/Error.js +58 -58
- package/lib/esm/presentation-common/Error.js.map +1 -1
- package/lib/esm/presentation-common/KeySet.d.ts +146 -146
- package/lib/esm/presentation-common/KeySet.js +414 -414
- package/lib/esm/presentation-common/KeySet.js.map +1 -1
- package/lib/esm/presentation-common/LabelDefinition.d.ts +79 -79
- package/lib/esm/presentation-common/LabelDefinition.js +73 -73
- 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.js +106 -106
- package/lib/esm/presentation-common/LocalizationHelper.js.map +1 -1
- package/lib/esm/presentation-common/PresentationIpcInterface.d.ts +37 -37
- 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 +242 -242
- 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 +181 -181
- package/lib/esm/presentation-common/PresentationRpcInterface.js +98 -98
- 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/RegisteredRuleset.js.map +1 -1
- package/lib/esm/presentation-common/RpcRequestsHandler.d.ts +82 -82
- package/lib/esm/presentation-common/RpcRequestsHandler.js +151 -151
- package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
- package/lib/esm/presentation-common/RulesetVariables.d.ts +166 -166
- package/lib/esm/presentation-common/RulesetVariables.js +52 -52
- package/lib/esm/presentation-common/RulesetVariables.js.map +1 -1
- package/lib/esm/presentation-common/RulesetsFactory.d.ts +44 -44
- 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 +194 -194
- package/lib/esm/presentation-common/Update.js +193 -193
- package/lib/esm/presentation-common/Update.js.map +1 -1
- package/lib/esm/presentation-common/Utils.d.ts +64 -64
- package/lib/esm/presentation-common/Utils.js +41 -41
- package/lib/esm/presentation-common/Utils.js.map +1 -1
- package/lib/esm/presentation-common/content/Category.d.ts +49 -49
- package/lib/esm/presentation-common/content/Category.js +46 -46
- package/lib/esm/presentation-common/content/Category.js.map +1 -1
- 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/Content.js.map +1 -1
- package/lib/esm/presentation-common/content/ContentTraverser.d.ts +101 -101
- package/lib/esm/presentation-common/content/ContentTraverser.js +411 -411
- package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
- package/lib/esm/presentation-common/content/Descriptor.d.ts +240 -240
- package/lib/esm/presentation-common/content/Descriptor.js +185 -185
- 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/DisplayTypes.js.map +1 -1
- 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/Editor.js.map +1 -1
- package/lib/esm/presentation-common/content/Fields.d.ts +282 -282
- package/lib/esm/presentation-common/content/Fields.js +387 -387
- package/lib/esm/presentation-common/content/Fields.js.map +1 -1
- package/lib/esm/presentation-common/content/Item.d.ts +87 -87
- package/lib/esm/presentation-common/content/Item.js +82 -82
- package/lib/esm/presentation-common/content/Item.js.map +1 -1
- package/lib/esm/presentation-common/content/Property.d.ts +51 -51
- package/lib/esm/presentation-common/content/Property.js +33 -33
- package/lib/esm/presentation-common/content/Property.js.map +1 -1
- 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/Renderer.js.map +1 -1
- package/lib/esm/presentation-common/content/TypeDescription.d.ts +72 -72
- package/lib/esm/presentation-common/content/TypeDescription.js +20 -20
- package/lib/esm/presentation-common/content/TypeDescription.js.map +1 -1
- package/lib/esm/presentation-common/content/Value.d.ts +157 -157
- package/lib/esm/presentation-common/content/Value.js +214 -214
- package/lib/esm/presentation-common/content/Value.js.map +1 -1
- package/lib/esm/presentation-common/hierarchy/Key.d.ts +185 -185
- package/lib/esm/presentation-common/hierarchy/Key.js +109 -109
- package/lib/esm/presentation-common/hierarchy/Key.js.map +1 -1
- package/lib/esm/presentation-common/hierarchy/Node.d.ts +141 -141
- package/lib/esm/presentation-common/hierarchy/Node.js +94 -94
- package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
- package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts +85 -85
- package/lib/esm/presentation-common/hierarchy/NodePathElement.js +95 -95
- package/lib/esm/presentation-common/hierarchy/NodePathElement.js.map +1 -1
- 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/ClassSpecifications.js.map +1 -1
- 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/RelatedInstanceSpecification.js.map +1 -1
- 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/RelationshipDirection.js.map +1 -1
- package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts +53 -53
- package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js +8 -8
- package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/Rule.d.ts +74 -74
- package/lib/esm/presentation-common/rules/Rule.js +32 -32
- package/lib/esm/presentation-common/rules/Rule.js.map +1 -1
- package/lib/esm/presentation-common/rules/Ruleset.d.ts +66 -66
- package/lib/esm/presentation-common/rules/Ruleset.js +8 -8
- package/lib/esm/presentation-common/rules/Ruleset.js.map +1 -1
- 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/SchemasSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/Variables.d.ts +55 -55
- package/lib/esm/presentation-common/rules/Variables.js +22 -22
- package/lib/esm/presentation-common/rules/Variables.js.map +1 -1
- 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/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
- 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/ContentRelatedInstancesSpecification.js.map +1 -1
- 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/ContentRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +55 -55
- package/lib/esm/presentation-common/rules/content/ContentSpecification.js +17 -17
- package/lib/esm/presentation-common/rules/content/ContentSpecification.js.map +1 -1
- 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/DefaultPropertyCategoryOverride.js.map +1 -1
- 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/PropertySpecification.js.map +1 -1
- 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/SelectedNodeInstancesSpecification.js.map +1 -1
- 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/CalculatedPropertiesSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts +57 -57
- 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/CustomRendererSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +107 -107
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js +8 -8
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +105 -105
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js +18 -18
- package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +93 -93
- package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js +40 -40
- package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
- 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/CheckBoxRule.js.map +1 -1
- 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/CustomizationRule.js.map +1 -1
- 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/ExtendedDataRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +200 -200
- package/lib/esm/presentation-common/rules/customization/GroupingRule.js +48 -48
- package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
- 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/ImageIdOverride.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts +156 -156
- package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js +22 -22
- package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
- 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/LabelOverride.js.map +1 -1
- package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts +58 -58
- package/lib/esm/presentation-common/rules/customization/SortingRule.js +8 -8
- package/lib/esm/presentation-common/rules/customization/SortingRule.js.map +1 -1
- 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/customization/StyleOverride.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +15 -15
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js +8 -8
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +97 -97
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js +19 -19
- package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
- 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/CustomNodeSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +76 -76
- package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js +16 -16
- package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
- 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/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.d.ts +50 -50
- package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js +8 -8
- package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
- 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/NodeArtifactsRule.js.map +1 -1
- 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/RelatedInstanceNodesSpecification.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts +17 -17
- package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js +8 -8
- package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
- package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts +36 -36
- package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js +8 -8
- package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
- package/lib/esm/presentation-common/selection/SelectionScope.d.ts +25 -25
- package/lib/esm/presentation-common/selection/SelectionScope.js +8 -8
- package/lib/esm/presentation-common/selection/SelectionScope.js.map +1 -1
- package/lib/esm/presentation-common.d.ts +110 -110
- package/lib/esm/presentation-common.js +114 -114
- package/lib/esm/presentation-common.js.map +1 -1
- package/lib/public/locales/en/BisCore.json +18 -18
- package/lib/public/locales/en/ECPresentation.json +9 -9
- package/lib/public/locales/en/RulesEngine.json +5 -5
- package/package.json +9 -9
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
/** @packageDocumentation
|
|
6
|
-
* @module Core
|
|
7
|
-
*/
|
|
8
|
-
import { BentleyError } from "@itwin/core-bentley";
|
|
9
|
-
/**
|
|
10
|
-
* Status codes used by Presentation APIs.
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
export var PresentationStatus;
|
|
14
|
-
(function (PresentationStatus) {
|
|
15
|
-
/** Success result. */
|
|
16
|
-
PresentationStatus[PresentationStatus["Success"] = 0] = "Success";
|
|
17
|
-
/** Request was cancelled. */
|
|
18
|
-
PresentationStatus[PresentationStatus["Canceled"] = 1] = "Canceled";
|
|
19
|
-
/** Error: Unknown */
|
|
20
|
-
PresentationStatus[PresentationStatus["Error"] = 65536] = "Error";
|
|
21
|
-
/** Error: Backend is not initialized. */
|
|
22
|
-
PresentationStatus[PresentationStatus["NotInitialized"] = 65537] = "NotInitialized";
|
|
23
|
-
/** Error: Argument is invalid. */
|
|
24
|
-
PresentationStatus[PresentationStatus["InvalidArgument"] = 65539] = "InvalidArgument";
|
|
25
|
-
/**
|
|
26
|
-
* Timeout for the request was reached which prevented it from being fulfilled. Frontend may
|
|
27
|
-
* repeat the request.
|
|
28
|
-
*/
|
|
29
|
-
PresentationStatus[PresentationStatus["BackendTimeout"] = 65543] = "BackendTimeout";
|
|
30
|
-
})(PresentationStatus || (PresentationStatus = {}));
|
|
31
|
-
/**
|
|
32
|
-
* An error type thrown by Presentation APIs.
|
|
33
|
-
* @public
|
|
34
|
-
*/
|
|
35
|
-
export class PresentationError extends BentleyError {
|
|
36
|
-
/**
|
|
37
|
-
* Creates an instance of Error.
|
|
38
|
-
* @param errorNumber Error code
|
|
39
|
-
* @param message Optional brief description of the error. The `message` property combined with the `name`
|
|
40
|
-
* property is used by the `Error.prototype.toString()` method to create a string representation of the Error.
|
|
41
|
-
* @param log Optional log function which logs the error.
|
|
42
|
-
* @param getMetaData Optional function that returns meta-data related to an error.
|
|
43
|
-
*/
|
|
44
|
-
constructor(errorNumber, message, getMetaData) {
|
|
45
|
-
super(errorNumber, message, getMetaData);
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Returns the name of each error status. The name is used by the `Error.prototype.toString()`
|
|
49
|
-
* method to create a string representation of the error.
|
|
50
|
-
*/
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
52
|
-
_initName() {
|
|
53
|
-
let value = PresentationStatus[this.errorNumber];
|
|
54
|
-
if (!value)
|
|
55
|
-
value = `Unknown Error (${this.errorNumber})`;
|
|
56
|
-
return value;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module Core
|
|
7
|
+
*/
|
|
8
|
+
import { BentleyError } from "@itwin/core-bentley";
|
|
9
|
+
/**
|
|
10
|
+
* Status codes used by Presentation APIs.
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export var PresentationStatus;
|
|
14
|
+
(function (PresentationStatus) {
|
|
15
|
+
/** Success result. */
|
|
16
|
+
PresentationStatus[PresentationStatus["Success"] = 0] = "Success";
|
|
17
|
+
/** Request was cancelled. */
|
|
18
|
+
PresentationStatus[PresentationStatus["Canceled"] = 1] = "Canceled";
|
|
19
|
+
/** Error: Unknown */
|
|
20
|
+
PresentationStatus[PresentationStatus["Error"] = 65536] = "Error";
|
|
21
|
+
/** Error: Backend is not initialized. */
|
|
22
|
+
PresentationStatus[PresentationStatus["NotInitialized"] = 65537] = "NotInitialized";
|
|
23
|
+
/** Error: Argument is invalid. */
|
|
24
|
+
PresentationStatus[PresentationStatus["InvalidArgument"] = 65539] = "InvalidArgument";
|
|
25
|
+
/**
|
|
26
|
+
* Timeout for the request was reached which prevented it from being fulfilled. Frontend may
|
|
27
|
+
* repeat the request.
|
|
28
|
+
*/
|
|
29
|
+
PresentationStatus[PresentationStatus["BackendTimeout"] = 65543] = "BackendTimeout";
|
|
30
|
+
})(PresentationStatus || (PresentationStatus = {}));
|
|
31
|
+
/**
|
|
32
|
+
* An error type thrown by Presentation APIs.
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export class PresentationError extends BentleyError {
|
|
36
|
+
/**
|
|
37
|
+
* Creates an instance of Error.
|
|
38
|
+
* @param errorNumber Error code
|
|
39
|
+
* @param message Optional brief description of the error. The `message` property combined with the `name`
|
|
40
|
+
* property is used by the `Error.prototype.toString()` method to create a string representation of the Error.
|
|
41
|
+
* @param log Optional log function which logs the error.
|
|
42
|
+
* @param getMetaData Optional function that returns meta-data related to an error.
|
|
43
|
+
*/
|
|
44
|
+
constructor(errorNumber, message, getMetaData) {
|
|
45
|
+
super(errorNumber, message, getMetaData);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns the name of each error status. The name is used by the `Error.prototype.toString()`
|
|
49
|
+
* method to create a string representation of the error.
|
|
50
|
+
*/
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
52
|
+
_initName() {
|
|
53
|
+
let value = PresentationStatus[this.errorNumber];
|
|
54
|
+
if (!value)
|
|
55
|
+
value = `Unknown Error (${this.errorNumber})`;
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
59
|
//# sourceMappingURL=Error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.js","sourceRoot":"","sources":["../../../src/presentation-common/Error.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAuB,MAAM,qBAAqB,CAAC;AAExE;;;GAGG;AACH,MAAM,CAAN,IAAY,kBAqBX;AArBD,WAAY,kBAAkB;IAC5B,sBAAsB;IACtB,iEAAW,CAAA;IAEX,6BAA6B;IAC7B,mEAAY,CAAA;IAEZ,qBAAqB;IACrB,iEAAe,CAAA;IAEf,yCAAyC;IACzC,mFAA0B,CAAA;IAE1B,kCAAkC;IAClC,qFAA2B,CAAA;IAE3B;;;OAGG;IACH,mFAA0B,CAAA;AAC5B,CAAC,EArBW,kBAAkB,KAAlB,kBAAkB,QAqB7B;AAED;;;GAGG;AACH,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IAEjD;;;;;;;OAOG;IACH,YAAmB,WAA+B,EAAE,OAAgB,EAAE,WAAiC;QACrG,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACH,gEAAgE;IAC7C,SAAS;QAC1B,IAAI,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjD,IAAI,CAAC,KAAK;YACR,KAAK,GAAG,kBAAkB,IAAI,CAAC,WAAW,GAAG,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Core\n */\n\nimport { BentleyError, GetMetaDataFunction } from \"@itwin/core-bentley\";\n\n/**\n * Status codes used by Presentation APIs.\n * @public\n */\nexport enum PresentationStatus {\n /** Success result. */\n Success = 0,\n\n /** Request was cancelled. */\n Canceled = 1,\n\n /** Error: Unknown */\n Error = 0x10000,\n\n /** Error: Backend is not initialized. */\n NotInitialized = Error + 1,\n\n /** Error: Argument is invalid. */\n InvalidArgument = Error + 3,\n\n /**\n * Timeout for the request was reached which prevented it from being fulfilled. Frontend may\n * repeat the request.\n */\n BackendTimeout = Error + 7,\n}\n\n/**\n * An error type thrown by Presentation APIs.\n * @public\n */\nexport class PresentationError extends BentleyError {\n\n /**\n * Creates an instance of Error.\n * @param errorNumber Error code\n * @param message Optional brief description of the error. The `message` property combined with the `name`\n * property is used by the `Error.prototype.toString()` method to create a string representation of the Error.\n * @param log Optional log function which logs the error.\n * @param getMetaData Optional function that returns meta-data related to an error.\n */\n public constructor(errorNumber: PresentationStatus, message?: string, getMetaData?: GetMetaDataFunction) {\n super(errorNumber, message, getMetaData);\n }\n\n /**\n * Returns the name of each error status. The name is used by the `Error.prototype.toString()`\n * method to create a string representation of the error.\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n protected override _initName(): string {\n let value = PresentationStatus[this.errorNumber];\n if (!value)\n value = `Unknown Error (${this.errorNumber})`;\n return value;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Error.js","sourceRoot":"","sources":["../../../src/presentation-common/Error.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAuB,MAAM,qBAAqB,CAAC;AAExE;;;GAGG;AACH,MAAM,CAAN,IAAY,kBAqBX;AArBD,WAAY,kBAAkB;IAC5B,sBAAsB;IACtB,iEAAW,CAAA;IAEX,6BAA6B;IAC7B,mEAAY,CAAA;IAEZ,qBAAqB;IACrB,iEAAe,CAAA;IAEf,yCAAyC;IACzC,mFAA0B,CAAA;IAE1B,kCAAkC;IAClC,qFAA2B,CAAA;IAE3B;;;OAGG;IACH,mFAA0B,CAAA;AAC5B,CAAC,EArBW,kBAAkB,KAAlB,kBAAkB,QAqB7B;AAED;;;GAGG;AACH,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IAEjD;;;;;;;OAOG;IACH,YAAmB,WAA+B,EAAE,OAAgB,EAAE,WAAiC;QACrG,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACH,gEAAgE;IAC7C,SAAS;QAC1B,IAAI,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjD,IAAI,CAAC,KAAK;YACR,KAAK,GAAG,kBAAkB,IAAI,CAAC,WAAW,GAAG,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Core\r\n */\r\n\r\nimport { BentleyError, GetMetaDataFunction } from \"@itwin/core-bentley\";\r\n\r\n/**\r\n * Status codes used by Presentation APIs.\r\n * @public\r\n */\r\nexport enum PresentationStatus {\r\n /** Success result. */\r\n Success = 0,\r\n\r\n /** Request was cancelled. */\r\n Canceled = 1,\r\n\r\n /** Error: Unknown */\r\n Error = 0x10000,\r\n\r\n /** Error: Backend is not initialized. */\r\n NotInitialized = Error + 1,\r\n\r\n /** Error: Argument is invalid. */\r\n InvalidArgument = Error + 3,\r\n\r\n /**\r\n * Timeout for the request was reached which prevented it from being fulfilled. Frontend may\r\n * repeat the request.\r\n */\r\n BackendTimeout = Error + 7,\r\n}\r\n\r\n/**\r\n * An error type thrown by Presentation APIs.\r\n * @public\r\n */\r\nexport class PresentationError extends BentleyError {\r\n\r\n /**\r\n * Creates an instance of Error.\r\n * @param errorNumber Error code\r\n * @param message Optional brief description of the error. The `message` property combined with the `name`\r\n * property is used by the `Error.prototype.toString()` method to create a string representation of the Error.\r\n * @param log Optional log function which logs the error.\r\n * @param getMetaData Optional function that returns meta-data related to an error.\r\n */\r\n public constructor(errorNumber: PresentationStatus, message?: string, getMetaData?: GetMetaDataFunction) {\r\n super(errorNumber, message, getMetaData);\r\n }\r\n\r\n /**\r\n * Returns the name of each error status. The name is used by the `Error.prototype.toString()`\r\n * method to create a string representation of the error.\r\n */\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n protected override _initName(): string {\r\n let value = PresentationStatus[this.errorNumber];\r\n if (!value)\r\n value = `Unknown Error (${this.errorNumber})`;\r\n return value;\r\n }\r\n}\r\n"]}
|
|
@@ -1,147 +1,147 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Core
|
|
3
|
-
*/
|
|
4
|
-
import { GuidString } from "@itwin/core-bentley";
|
|
5
|
-
import { EntityProps } from "@itwin/core-common";
|
|
6
|
-
import { InstanceId, InstanceKey } from "./EC";
|
|
7
|
-
import { NodeKey, NodeKeyJSON } from "./hierarchy/Key";
|
|
8
|
-
/**
|
|
9
|
-
* A single key that identifies something in an iTwin.js application
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export declare type Key = Readonly<NodeKey> | Readonly<InstanceKey> | Readonly<EntityProps>;
|
|
13
|
-
/** @public */
|
|
14
|
-
export declare namespace Key {
|
|
15
|
-
/** Check if the supplied key is a `NodeKey` */
|
|
16
|
-
function isNodeKey(key: Key): key is NodeKey;
|
|
17
|
-
/** Check if the supplied key is an `InstanceKey` */
|
|
18
|
-
function isInstanceKey(key: Key): key is InstanceKey;
|
|
19
|
-
/** Check if the supplied key is an `EntityProps` */
|
|
20
|
-
function isEntityProps(key: Key): key is EntityProps;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* A type for multiple keys that identify something in iModel.js application
|
|
24
|
-
* @public
|
|
25
|
-
*/
|
|
26
|
-
export declare type Keys = ReadonlyArray<Key> | Readonly<KeySet>;
|
|
27
|
-
/**
|
|
28
|
-
* A data structure of serialized [[KeySet]]
|
|
29
|
-
* @public
|
|
30
|
-
*/
|
|
31
|
-
export interface KeySetJSON {
|
|
32
|
-
/** An array of tuples [class_name, compressed_instance_ids] */
|
|
33
|
-
instanceKeys: Array<[string, string]>;
|
|
34
|
-
/** An array of serialized node keys */
|
|
35
|
-
nodeKeys: NodeKeyJSON[];
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* A class that holds multiple [[Key]] objects. It's basically
|
|
39
|
-
* used as a container that holds multiple keys of different types.
|
|
40
|
-
*
|
|
41
|
-
* @public
|
|
42
|
-
*/
|
|
43
|
-
export declare class KeySet {
|
|
44
|
-
private _instanceKeys;
|
|
45
|
-
private _lowerCaseMap;
|
|
46
|
-
private _nodeKeys;
|
|
47
|
-
private _guid;
|
|
48
|
-
/**
|
|
49
|
-
* Creates an instance of KeySet.
|
|
50
|
-
* @param source Optional source to initialize from.
|
|
51
|
-
*/
|
|
52
|
-
constructor(source?: Keys);
|
|
53
|
-
private recalculateGuid;
|
|
54
|
-
/**
|
|
55
|
-
* Get a GUID that identifies changes in this keyset. The value
|
|
56
|
-
* does not uniquely identify contents of the keyset, but it can be
|
|
57
|
-
* used to check whether keyset has changed.
|
|
58
|
-
*/
|
|
59
|
-
get guid(): GuidString;
|
|
60
|
-
/**
|
|
61
|
-
* Get a map of instance keys stored in this KeySet
|
|
62
|
-
*
|
|
63
|
-
* **Warning**: getting instance keys might be expensive for
|
|
64
|
-
* large KeySets.
|
|
65
|
-
*/
|
|
66
|
-
get instanceKeys(): Map<string, Set<InstanceId>>;
|
|
67
|
-
/**
|
|
68
|
-
* Get instance keys count
|
|
69
|
-
*/
|
|
70
|
-
get instanceKeysCount(): number;
|
|
71
|
-
/**
|
|
72
|
-
* Get a set of node keys stored in this KeySet
|
|
73
|
-
*
|
|
74
|
-
* **Warning**: getting node keys might be expensive for
|
|
75
|
-
* large KeySets.
|
|
76
|
-
*/
|
|
77
|
-
get nodeKeys(): Set<NodeKey>;
|
|
78
|
-
/**
|
|
79
|
-
* Get node keys count
|
|
80
|
-
*/
|
|
81
|
-
get nodeKeysCount(): number;
|
|
82
|
-
private isKeySet;
|
|
83
|
-
private isKeysArray;
|
|
84
|
-
/**
|
|
85
|
-
* Clear this KeySet.
|
|
86
|
-
* @returns itself
|
|
87
|
-
*/
|
|
88
|
-
clear(): KeySet;
|
|
89
|
-
private addKeySet;
|
|
90
|
-
private addKeySetJSON;
|
|
91
|
-
/**
|
|
92
|
-
* Add a key or keys to this KeySet.
|
|
93
|
-
* @param value A key or keys to add.
|
|
94
|
-
* @param pred An optional predicate function that indicates whether a key should be added
|
|
95
|
-
* @returns itself
|
|
96
|
-
*/
|
|
97
|
-
add(value: Keys | Key, pred?: (key: Key) => boolean): KeySet;
|
|
98
|
-
private deleteKeySet;
|
|
99
|
-
/**
|
|
100
|
-
* Deletes a key or keys from this KeySet.
|
|
101
|
-
* @param value A key or keys to delete.
|
|
102
|
-
* @returns itself
|
|
103
|
-
*/
|
|
104
|
-
delete(value: Keys | Key): KeySet;
|
|
105
|
-
/**
|
|
106
|
-
* Check if this KeySet contains the specified key.
|
|
107
|
-
* @param value The key to check.
|
|
108
|
-
*/
|
|
109
|
-
has(value: Key): boolean;
|
|
110
|
-
private hasKeySet;
|
|
111
|
-
private hasKeysArray;
|
|
112
|
-
/**
|
|
113
|
-
* Check if this KeySet contains all the specified keys.
|
|
114
|
-
* @param keys The keys to check.
|
|
115
|
-
*/
|
|
116
|
-
hasAll(keys: Keys): boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Check if this KeySet contains any of the specified keys.
|
|
119
|
-
* @param keys The keys to check.
|
|
120
|
-
*/
|
|
121
|
-
hasAny(keys: Keys): boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Get the number of keys stored in this KeySet.
|
|
124
|
-
*/
|
|
125
|
-
get size(): number;
|
|
126
|
-
/**
|
|
127
|
-
* Is this KeySet currently empty.
|
|
128
|
-
*/
|
|
129
|
-
get isEmpty(): boolean;
|
|
130
|
-
/** Iterate over all keys in this keyset. */
|
|
131
|
-
some(callback: (key: Key) => boolean): boolean;
|
|
132
|
-
/** Iterate over all keys in this keyset. */
|
|
133
|
-
forEach(callback: (key: InstanceKey | NodeKey, index: number) => void): void;
|
|
134
|
-
/** Iterate over all keys in this keyset in batches */
|
|
135
|
-
forEachBatch(batchSize: number, callback: (batch: KeySet, index: number) => void): void;
|
|
136
|
-
/**
|
|
137
|
-
* Serializes this KeySet to JSON
|
|
138
|
-
* @public
|
|
139
|
-
*/
|
|
140
|
-
toJSON(): KeySetJSON;
|
|
141
|
-
/**
|
|
142
|
-
* Creates a KeySet from JSON
|
|
143
|
-
* @public
|
|
144
|
-
*/
|
|
145
|
-
static fromJSON(json: KeySetJSON): KeySet;
|
|
146
|
-
}
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Core
|
|
3
|
+
*/
|
|
4
|
+
import { GuidString } from "@itwin/core-bentley";
|
|
5
|
+
import { EntityProps } from "@itwin/core-common";
|
|
6
|
+
import { InstanceId, InstanceKey } from "./EC";
|
|
7
|
+
import { NodeKey, NodeKeyJSON } from "./hierarchy/Key";
|
|
8
|
+
/**
|
|
9
|
+
* A single key that identifies something in an iTwin.js application
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export declare type Key = Readonly<NodeKey> | Readonly<InstanceKey> | Readonly<EntityProps>;
|
|
13
|
+
/** @public */
|
|
14
|
+
export declare namespace Key {
|
|
15
|
+
/** Check if the supplied key is a `NodeKey` */
|
|
16
|
+
function isNodeKey(key: Key): key is NodeKey;
|
|
17
|
+
/** Check if the supplied key is an `InstanceKey` */
|
|
18
|
+
function isInstanceKey(key: Key): key is InstanceKey;
|
|
19
|
+
/** Check if the supplied key is an `EntityProps` */
|
|
20
|
+
function isEntityProps(key: Key): key is EntityProps;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A type for multiple keys that identify something in iModel.js application
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export declare type Keys = ReadonlyArray<Key> | Readonly<KeySet>;
|
|
27
|
+
/**
|
|
28
|
+
* A data structure of serialized [[KeySet]]
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface KeySetJSON {
|
|
32
|
+
/** An array of tuples [class_name, compressed_instance_ids] */
|
|
33
|
+
instanceKeys: Array<[string, string]>;
|
|
34
|
+
/** An array of serialized node keys */
|
|
35
|
+
nodeKeys: NodeKeyJSON[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A class that holds multiple [[Key]] objects. It's basically
|
|
39
|
+
* used as a container that holds multiple keys of different types.
|
|
40
|
+
*
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
export declare class KeySet {
|
|
44
|
+
private _instanceKeys;
|
|
45
|
+
private _lowerCaseMap;
|
|
46
|
+
private _nodeKeys;
|
|
47
|
+
private _guid;
|
|
48
|
+
/**
|
|
49
|
+
* Creates an instance of KeySet.
|
|
50
|
+
* @param source Optional source to initialize from.
|
|
51
|
+
*/
|
|
52
|
+
constructor(source?: Keys);
|
|
53
|
+
private recalculateGuid;
|
|
54
|
+
/**
|
|
55
|
+
* Get a GUID that identifies changes in this keyset. The value
|
|
56
|
+
* does not uniquely identify contents of the keyset, but it can be
|
|
57
|
+
* used to check whether keyset has changed.
|
|
58
|
+
*/
|
|
59
|
+
get guid(): GuidString;
|
|
60
|
+
/**
|
|
61
|
+
* Get a map of instance keys stored in this KeySet
|
|
62
|
+
*
|
|
63
|
+
* **Warning**: getting instance keys might be expensive for
|
|
64
|
+
* large KeySets.
|
|
65
|
+
*/
|
|
66
|
+
get instanceKeys(): Map<string, Set<InstanceId>>;
|
|
67
|
+
/**
|
|
68
|
+
* Get instance keys count
|
|
69
|
+
*/
|
|
70
|
+
get instanceKeysCount(): number;
|
|
71
|
+
/**
|
|
72
|
+
* Get a set of node keys stored in this KeySet
|
|
73
|
+
*
|
|
74
|
+
* **Warning**: getting node keys might be expensive for
|
|
75
|
+
* large KeySets.
|
|
76
|
+
*/
|
|
77
|
+
get nodeKeys(): Set<NodeKey>;
|
|
78
|
+
/**
|
|
79
|
+
* Get node keys count
|
|
80
|
+
*/
|
|
81
|
+
get nodeKeysCount(): number;
|
|
82
|
+
private isKeySet;
|
|
83
|
+
private isKeysArray;
|
|
84
|
+
/**
|
|
85
|
+
* Clear this KeySet.
|
|
86
|
+
* @returns itself
|
|
87
|
+
*/
|
|
88
|
+
clear(): KeySet;
|
|
89
|
+
private addKeySet;
|
|
90
|
+
private addKeySetJSON;
|
|
91
|
+
/**
|
|
92
|
+
* Add a key or keys to this KeySet.
|
|
93
|
+
* @param value A key or keys to add.
|
|
94
|
+
* @param pred An optional predicate function that indicates whether a key should be added
|
|
95
|
+
* @returns itself
|
|
96
|
+
*/
|
|
97
|
+
add(value: Keys | Key, pred?: (key: Key) => boolean): KeySet;
|
|
98
|
+
private deleteKeySet;
|
|
99
|
+
/**
|
|
100
|
+
* Deletes a key or keys from this KeySet.
|
|
101
|
+
* @param value A key or keys to delete.
|
|
102
|
+
* @returns itself
|
|
103
|
+
*/
|
|
104
|
+
delete(value: Keys | Key): KeySet;
|
|
105
|
+
/**
|
|
106
|
+
* Check if this KeySet contains the specified key.
|
|
107
|
+
* @param value The key to check.
|
|
108
|
+
*/
|
|
109
|
+
has(value: Key): boolean;
|
|
110
|
+
private hasKeySet;
|
|
111
|
+
private hasKeysArray;
|
|
112
|
+
/**
|
|
113
|
+
* Check if this KeySet contains all the specified keys.
|
|
114
|
+
* @param keys The keys to check.
|
|
115
|
+
*/
|
|
116
|
+
hasAll(keys: Keys): boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Check if this KeySet contains any of the specified keys.
|
|
119
|
+
* @param keys The keys to check.
|
|
120
|
+
*/
|
|
121
|
+
hasAny(keys: Keys): boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Get the number of keys stored in this KeySet.
|
|
124
|
+
*/
|
|
125
|
+
get size(): number;
|
|
126
|
+
/**
|
|
127
|
+
* Is this KeySet currently empty.
|
|
128
|
+
*/
|
|
129
|
+
get isEmpty(): boolean;
|
|
130
|
+
/** Iterate over all keys in this keyset. */
|
|
131
|
+
some(callback: (key: Key) => boolean): boolean;
|
|
132
|
+
/** Iterate over all keys in this keyset. */
|
|
133
|
+
forEach(callback: (key: InstanceKey | NodeKey, index: number) => void): void;
|
|
134
|
+
/** Iterate over all keys in this keyset in batches */
|
|
135
|
+
forEachBatch(batchSize: number, callback: (batch: KeySet, index: number) => void): void;
|
|
136
|
+
/**
|
|
137
|
+
* Serializes this KeySet to JSON
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
toJSON(): KeySetJSON;
|
|
141
|
+
/**
|
|
142
|
+
* Creates a KeySet from JSON
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
static fromJSON(json: KeySetJSON): KeySet;
|
|
146
|
+
}
|
|
147
147
|
//# sourceMappingURL=KeySet.d.ts.map
|