@itwin/presentation-common 4.0.0-dev.10 → 4.0.0-dev.101

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.
Files changed (557) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/Ruleset.schema.json +15 -0
  3. package/lib/cjs/assets/locales/en/Presentation.json +19 -0
  4. package/lib/cjs/assets/locales/en-PSEUDO/Presentation.json +19 -0
  5. package/lib/cjs/presentation-common/AsyncTasks.d.ts +22 -22
  6. package/lib/cjs/presentation-common/AsyncTasks.js +38 -38
  7. package/lib/cjs/presentation-common/AsyncTasks.js.map +1 -1
  8. package/lib/cjs/presentation-common/CommonLoggerCategory.d.ts +12 -12
  9. package/lib/cjs/presentation-common/CommonLoggerCategory.js +20 -20
  10. package/lib/cjs/presentation-common/CommonLoggerCategory.js.map +1 -1
  11. package/lib/cjs/presentation-common/Diagnostics.d.ts +125 -125
  12. package/lib/cjs/presentation-common/Diagnostics.d.ts.map +1 -1
  13. package/lib/cjs/presentation-common/Diagnostics.js +72 -72
  14. package/lib/cjs/presentation-common/Diagnostics.js.map +1 -1
  15. package/lib/cjs/presentation-common/EC.d.ts +347 -350
  16. package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
  17. package/lib/cjs/presentation-common/EC.js +290 -290
  18. package/lib/cjs/presentation-common/EC.js.map +1 -1
  19. package/lib/cjs/presentation-common/ElementProperties.d.ts +123 -123
  20. package/lib/cjs/presentation-common/ElementProperties.d.ts.map +1 -1
  21. package/lib/cjs/presentation-common/ElementProperties.js +9 -9
  22. package/lib/cjs/presentation-common/ElementProperties.js.map +1 -1
  23. package/lib/cjs/presentation-common/Error.d.ts +47 -45
  24. package/lib/cjs/presentation-common/Error.d.ts.map +1 -1
  25. package/lib/cjs/presentation-common/Error.js +64 -62
  26. package/lib/cjs/presentation-common/Error.js.map +1 -1
  27. package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts +93 -93
  28. package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
  29. package/lib/cjs/presentation-common/InstanceFilterDefinition.js +9 -9
  30. package/lib/cjs/presentation-common/InstanceFilterDefinition.js.map +1 -1
  31. package/lib/cjs/presentation-common/KeySet.d.ts +146 -146
  32. package/lib/cjs/presentation-common/KeySet.d.ts.map +1 -1
  33. package/lib/cjs/presentation-common/KeySet.js +428 -428
  34. package/lib/cjs/presentation-common/KeySet.js.map +1 -1
  35. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.d.ts +20 -0
  36. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.d.ts.map +1 -0
  37. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js +125 -0
  38. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js.map +1 -0
  39. package/lib/cjs/presentation-common/LabelDefinition.d.ts +93 -87
  40. package/lib/cjs/presentation-common/LabelDefinition.d.ts.map +1 -1
  41. package/lib/cjs/presentation-common/LabelDefinition.js +78 -73
  42. package/lib/cjs/presentation-common/LabelDefinition.js.map +1 -1
  43. package/lib/cjs/presentation-common/LocalizationHelper.d.ts +29 -29
  44. package/lib/cjs/presentation-common/LocalizationHelper.d.ts.map +1 -1
  45. package/lib/cjs/presentation-common/LocalizationHelper.js +113 -110
  46. package/lib/cjs/presentation-common/LocalizationHelper.js.map +1 -1
  47. package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts +27 -40
  48. package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts.map +1 -1
  49. package/lib/cjs/presentation-common/PresentationIpcInterface.js +12 -12
  50. package/lib/cjs/presentation-common/PresentationIpcInterface.js.map +1 -1
  51. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts +279 -261
  52. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  53. package/lib/cjs/presentation-common/PresentationManagerOptions.js +23 -23
  54. package/lib/cjs/presentation-common/PresentationManagerOptions.js.map +1 -1
  55. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts +186 -186
  56. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  57. package/lib/cjs/presentation-common/PresentationRpcInterface.js +108 -104
  58. package/lib/cjs/presentation-common/PresentationRpcInterface.js.map +1 -1
  59. package/lib/cjs/presentation-common/RegisteredRuleset.d.ts +26 -26
  60. package/lib/cjs/presentation-common/RegisteredRuleset.js +33 -33
  61. package/lib/cjs/presentation-common/RegisteredRuleset.js.map +1 -1
  62. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts +82 -83
  63. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  64. package/lib/cjs/presentation-common/RpcRequestsHandler.js +166 -171
  65. package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
  66. package/lib/cjs/presentation-common/RulesetVariables.d.ts +171 -171
  67. package/lib/cjs/presentation-common/RulesetVariables.d.ts.map +1 -1
  68. package/lib/cjs/presentation-common/RulesetVariables.js +55 -55
  69. package/lib/cjs/presentation-common/RulesetVariables.js.map +1 -1
  70. package/lib/cjs/presentation-common/RulesetsFactory.d.ts +44 -44
  71. package/lib/cjs/presentation-common/RulesetsFactory.d.ts.map +1 -1
  72. package/lib/cjs/presentation-common/RulesetsFactory.js +223 -223
  73. package/lib/cjs/presentation-common/RulesetsFactory.js.map +1 -1
  74. package/lib/cjs/presentation-common/Update.d.ts +150 -213
  75. package/lib/cjs/presentation-common/Update.d.ts.map +1 -1
  76. package/lib/cjs/presentation-common/Update.js +114 -226
  77. package/lib/cjs/presentation-common/Update.js.map +1 -1
  78. package/lib/cjs/presentation-common/Utils.d.ts +62 -62
  79. package/lib/cjs/presentation-common/Utils.d.ts.map +1 -1
  80. package/lib/cjs/presentation-common/Utils.js +43 -43
  81. package/lib/cjs/presentation-common/Utils.js.map +1 -1
  82. package/lib/cjs/presentation-common/content/Category.d.ts +49 -49
  83. package/lib/cjs/presentation-common/content/Category.js +48 -48
  84. package/lib/cjs/presentation-common/content/Category.js.map +1 -1
  85. package/lib/cjs/presentation-common/content/Content.d.ts +38 -38
  86. package/lib/cjs/presentation-common/content/Content.js +56 -56
  87. package/lib/cjs/presentation-common/content/Content.js.map +1 -1
  88. package/lib/cjs/presentation-common/content/ContentTraverser.d.ts +271 -271
  89. package/lib/cjs/presentation-common/content/ContentTraverser.js +437 -439
  90. package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
  91. package/lib/cjs/presentation-common/content/Descriptor.d.ts +328 -328
  92. package/lib/cjs/presentation-common/content/Descriptor.js +191 -193
  93. package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
  94. package/lib/cjs/presentation-common/content/DisplayTypes.d.ts +21 -21
  95. package/lib/cjs/presentation-common/content/DisplayTypes.js +29 -29
  96. package/lib/cjs/presentation-common/content/DisplayTypes.js.map +1 -1
  97. package/lib/cjs/presentation-common/content/Editor.d.ts +15 -15
  98. package/lib/cjs/presentation-common/content/Editor.js +9 -9
  99. package/lib/cjs/presentation-common/content/Editor.js.map +1 -1
  100. package/lib/cjs/presentation-common/content/Fields.d.ts +298 -301
  101. package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
  102. package/lib/cjs/presentation-common/content/Fields.js +393 -397
  103. package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
  104. package/lib/cjs/presentation-common/content/Item.d.ts +85 -85
  105. package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
  106. package/lib/cjs/presentation-common/content/Item.js +84 -84
  107. package/lib/cjs/presentation-common/content/Item.js.map +1 -1
  108. package/lib/cjs/presentation-common/content/Property.d.ts +57 -57
  109. package/lib/cjs/presentation-common/content/Property.d.ts.map +1 -1
  110. package/lib/cjs/presentation-common/content/Property.js +40 -40
  111. package/lib/cjs/presentation-common/content/Property.js.map +1 -1
  112. package/lib/cjs/presentation-common/content/PropertyValueFormatter.d.ts +29 -0
  113. package/lib/cjs/presentation-common/content/PropertyValueFormatter.d.ts.map +1 -0
  114. package/lib/cjs/presentation-common/content/PropertyValueFormatter.js +139 -0
  115. package/lib/cjs/presentation-common/content/PropertyValueFormatter.js.map +1 -0
  116. package/lib/cjs/presentation-common/content/Renderer.d.ts +11 -11
  117. package/lib/cjs/presentation-common/content/Renderer.js +9 -9
  118. package/lib/cjs/presentation-common/content/Renderer.js.map +1 -1
  119. package/lib/cjs/presentation-common/content/TypeDescription.d.ts +72 -72
  120. package/lib/cjs/presentation-common/content/TypeDescription.d.ts.map +1 -1
  121. package/lib/cjs/presentation-common/content/TypeDescription.js +23 -23
  122. package/lib/cjs/presentation-common/content/TypeDescription.js.map +1 -1
  123. package/lib/cjs/presentation-common/content/Value.d.ts +204 -189
  124. package/lib/cjs/presentation-common/content/Value.d.ts.map +1 -1
  125. package/lib/cjs/presentation-common/content/Value.js +281 -273
  126. package/lib/cjs/presentation-common/content/Value.js.map +1 -1
  127. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts +37 -37
  128. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js +31 -31
  129. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  130. package/lib/cjs/presentation-common/hierarchy/Key.d.ts +246 -246
  131. package/lib/cjs/presentation-common/hierarchy/Key.d.ts.map +1 -1
  132. package/lib/cjs/presentation-common/hierarchy/Key.js +121 -121
  133. package/lib/cjs/presentation-common/hierarchy/Key.js.map +1 -1
  134. package/lib/cjs/presentation-common/hierarchy/Node.d.ts +154 -154
  135. package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
  136. package/lib/cjs/presentation-common/hierarchy/Node.js +106 -106
  137. package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
  138. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts +96 -96
  139. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js +122 -122
  140. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  141. package/lib/cjs/presentation-common/rules/ClassSpecifications.d.ts +45 -45
  142. package/lib/cjs/presentation-common/rules/ClassSpecifications.js +9 -9
  143. package/lib/cjs/presentation-common/rules/ClassSpecifications.js.map +1 -1
  144. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts +31 -31
  145. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.js +9 -9
  146. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
  147. package/lib/cjs/presentation-common/rules/RelationshipDirection.d.ts +13 -13
  148. package/lib/cjs/presentation-common/rules/RelationshipDirection.js +21 -21
  149. package/lib/cjs/presentation-common/rules/RelationshipDirection.js.map +1 -1
  150. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts +56 -56
  151. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
  152. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js +9 -9
  153. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  154. package/lib/cjs/presentation-common/rules/Rule.d.ts +76 -76
  155. package/lib/cjs/presentation-common/rules/Rule.js +35 -35
  156. package/lib/cjs/presentation-common/rules/Rule.js.map +1 -1
  157. package/lib/cjs/presentation-common/rules/Ruleset.d.ts +65 -65
  158. package/lib/cjs/presentation-common/rules/Ruleset.js +9 -9
  159. package/lib/cjs/presentation-common/rules/Ruleset.js.map +1 -1
  160. package/lib/cjs/presentation-common/rules/SchemasSpecification.d.ts +41 -41
  161. package/lib/cjs/presentation-common/rules/SchemasSpecification.js +9 -9
  162. package/lib/cjs/presentation-common/rules/SchemasSpecification.js.map +1 -1
  163. package/lib/cjs/presentation-common/rules/Variables.d.ts +58 -58
  164. package/lib/cjs/presentation-common/rules/Variables.js +25 -25
  165. package/lib/cjs/presentation-common/rules/Variables.js.map +1 -1
  166. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +41 -41
  167. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js +9 -9
  168. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  169. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +25 -25
  170. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.js +9 -9
  171. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  172. package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts +30 -30
  173. package/lib/cjs/presentation-common/rules/content/ContentRule.js +9 -9
  174. package/lib/cjs/presentation-common/rules/content/ContentRule.js.map +1 -1
  175. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +58 -58
  176. package/lib/cjs/presentation-common/rules/content/ContentSpecification.js +20 -20
  177. package/lib/cjs/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  178. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +19 -19
  179. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.js +9 -9
  180. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  181. package/lib/cjs/presentation-common/rules/content/PropertySpecification.d.ts +86 -86
  182. package/lib/cjs/presentation-common/rules/content/PropertySpecification.js +9 -9
  183. package/lib/cjs/presentation-common/rules/content/PropertySpecification.js.map +1 -1
  184. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +28 -28
  185. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.js +9 -9
  186. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  187. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts +25 -25
  188. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js +9 -9
  189. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js.map +1 -1
  190. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts +64 -57
  191. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
  192. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.js +9 -9
  193. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  194. package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.d.ts +17 -17
  195. package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.js +9 -9
  196. package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.js.map +1 -1
  197. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +107 -107
  198. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts.map +1 -1
  199. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js +9 -9
  200. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
  201. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +108 -108
  202. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js +21 -21
  203. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
  204. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +96 -96
  205. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js +43 -43
  206. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  207. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts +44 -44
  208. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js +9 -9
  209. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
  210. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts +36 -36
  211. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.js +9 -9
  212. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  213. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts +27 -27
  214. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.js +9 -9
  215. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  216. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +207 -207
  217. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js +51 -51
  218. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  219. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts +29 -29
  220. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js +9 -9
  221. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
  222. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts +158 -158
  223. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  224. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js +25 -25
  225. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  226. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts +40 -40
  227. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js +9 -9
  228. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js.map +1 -1
  229. package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts +58 -58
  230. package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
  231. package/lib/cjs/presentation-common/rules/customization/SortingRule.js +9 -9
  232. package/lib/cjs/presentation-common/rules/customization/SortingRule.js.map +1 -1
  233. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts +48 -48
  234. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js +9 -9
  235. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js.map +1 -1
  236. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +14 -14
  237. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js +9 -9
  238. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  239. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +98 -98
  240. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  241. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js +21 -21
  242. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  243. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +31 -31
  244. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js +9 -9
  245. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  246. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +79 -79
  247. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js +19 -19
  248. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  249. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +39 -39
  250. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js +9 -9
  251. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  252. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.d.ts +50 -50
  253. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.d.ts.map +1 -1
  254. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.js +9 -9
  255. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
  256. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +27 -27
  257. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.js +9 -9
  258. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  259. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +27 -27
  260. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js +9 -9
  261. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  262. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts +16 -16
  263. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js +9 -9
  264. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  265. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts +35 -35
  266. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js +9 -9
  267. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  268. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts +38 -38
  269. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts.map +1 -1
  270. package/lib/cjs/presentation-common/selection/SelectionScope.js +9 -9
  271. package/lib/cjs/presentation-common/selection/SelectionScope.js.map +1 -1
  272. package/lib/cjs/presentation-common.d.ts +114 -112
  273. package/lib/cjs/presentation-common.d.ts.map +1 -1
  274. package/lib/cjs/presentation-common.js +134 -128
  275. package/lib/cjs/presentation-common.js.map +1 -1
  276. package/lib/esm/presentation-common/AsyncTasks.d.ts +22 -22
  277. package/lib/esm/presentation-common/AsyncTasks.js +34 -34
  278. package/lib/esm/presentation-common/AsyncTasks.js.map +1 -1
  279. package/lib/esm/presentation-common/CommonLoggerCategory.d.ts +12 -12
  280. package/lib/esm/presentation-common/CommonLoggerCategory.js +17 -17
  281. package/lib/esm/presentation-common/CommonLoggerCategory.js.map +1 -1
  282. package/lib/esm/presentation-common/Diagnostics.d.ts +125 -125
  283. package/lib/esm/presentation-common/Diagnostics.d.ts.map +1 -1
  284. package/lib/esm/presentation-common/Diagnostics.js +67 -67
  285. package/lib/esm/presentation-common/Diagnostics.js.map +1 -1
  286. package/lib/esm/presentation-common/EC.d.ts +347 -350
  287. package/lib/esm/presentation-common/EC.d.ts.map +1 -1
  288. package/lib/esm/presentation-common/EC.js +287 -287
  289. package/lib/esm/presentation-common/EC.js.map +1 -1
  290. package/lib/esm/presentation-common/ElementProperties.d.ts +123 -123
  291. package/lib/esm/presentation-common/ElementProperties.d.ts.map +1 -1
  292. package/lib/esm/presentation-common/ElementProperties.js +8 -8
  293. package/lib/esm/presentation-common/ElementProperties.js.map +1 -1
  294. package/lib/esm/presentation-common/Error.d.ts +47 -45
  295. package/lib/esm/presentation-common/Error.d.ts.map +1 -1
  296. package/lib/esm/presentation-common/Error.js +60 -58
  297. package/lib/esm/presentation-common/Error.js.map +1 -1
  298. package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts +93 -93
  299. package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
  300. package/lib/esm/presentation-common/InstanceFilterDefinition.js +8 -8
  301. package/lib/esm/presentation-common/InstanceFilterDefinition.js.map +1 -1
  302. package/lib/esm/presentation-common/KeySet.d.ts +146 -146
  303. package/lib/esm/presentation-common/KeySet.d.ts.map +1 -1
  304. package/lib/esm/presentation-common/KeySet.js +424 -424
  305. package/lib/esm/presentation-common/KeySet.js.map +1 -1
  306. package/lib/esm/presentation-common/KoqPropertyValueFormatter.d.ts +20 -0
  307. package/lib/esm/presentation-common/KoqPropertyValueFormatter.d.ts.map +1 -0
  308. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js +121 -0
  309. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js.map +1 -0
  310. package/lib/esm/presentation-common/LabelDefinition.d.ts +93 -87
  311. package/lib/esm/presentation-common/LabelDefinition.d.ts.map +1 -1
  312. package/lib/esm/presentation-common/LabelDefinition.js +75 -70
  313. package/lib/esm/presentation-common/LabelDefinition.js.map +1 -1
  314. package/lib/esm/presentation-common/LocalizationHelper.d.ts +29 -29
  315. package/lib/esm/presentation-common/LocalizationHelper.d.ts.map +1 -1
  316. package/lib/esm/presentation-common/LocalizationHelper.js +109 -106
  317. package/lib/esm/presentation-common/LocalizationHelper.js.map +1 -1
  318. package/lib/esm/presentation-common/PresentationIpcInterface.d.ts +27 -40
  319. package/lib/esm/presentation-common/PresentationIpcInterface.d.ts.map +1 -1
  320. package/lib/esm/presentation-common/PresentationIpcInterface.js +9 -9
  321. package/lib/esm/presentation-common/PresentationIpcInterface.js.map +1 -1
  322. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts +279 -261
  323. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  324. package/lib/esm/presentation-common/PresentationManagerOptions.js +18 -18
  325. package/lib/esm/presentation-common/PresentationManagerOptions.js.map +1 -1
  326. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts +186 -186
  327. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  328. package/lib/esm/presentation-common/PresentationRpcInterface.js +105 -100
  329. package/lib/esm/presentation-common/PresentationRpcInterface.js.map +1 -1
  330. package/lib/esm/presentation-common/RegisteredRuleset.d.ts +26 -26
  331. package/lib/esm/presentation-common/RegisteredRuleset.js +29 -29
  332. package/lib/esm/presentation-common/RegisteredRuleset.js.map +1 -1
  333. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts +82 -83
  334. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  335. package/lib/esm/presentation-common/RpcRequestsHandler.js +162 -167
  336. package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
  337. package/lib/esm/presentation-common/RulesetVariables.d.ts +171 -171
  338. package/lib/esm/presentation-common/RulesetVariables.d.ts.map +1 -1
  339. package/lib/esm/presentation-common/RulesetVariables.js +52 -52
  340. package/lib/esm/presentation-common/RulesetVariables.js.map +1 -1
  341. package/lib/esm/presentation-common/RulesetsFactory.d.ts +44 -44
  342. package/lib/esm/presentation-common/RulesetsFactory.d.ts.map +1 -1
  343. package/lib/esm/presentation-common/RulesetsFactory.js +219 -219
  344. package/lib/esm/presentation-common/RulesetsFactory.js.map +1 -1
  345. package/lib/esm/presentation-common/Update.d.ts +150 -213
  346. package/lib/esm/presentation-common/Update.d.ts.map +1 -1
  347. package/lib/esm/presentation-common/Update.js +111 -223
  348. package/lib/esm/presentation-common/Update.js.map +1 -1
  349. package/lib/esm/presentation-common/Utils.d.ts +62 -62
  350. package/lib/esm/presentation-common/Utils.d.ts.map +1 -1
  351. package/lib/esm/presentation-common/Utils.js +39 -39
  352. package/lib/esm/presentation-common/Utils.js.map +1 -1
  353. package/lib/esm/presentation-common/content/Category.d.ts +49 -49
  354. package/lib/esm/presentation-common/content/Category.js +45 -45
  355. package/lib/esm/presentation-common/content/Category.js.map +1 -1
  356. package/lib/esm/presentation-common/content/Content.d.ts +38 -38
  357. package/lib/esm/presentation-common/content/Content.js +52 -52
  358. package/lib/esm/presentation-common/content/Content.js.map +1 -1
  359. package/lib/esm/presentation-common/content/ContentTraverser.d.ts +271 -271
  360. package/lib/esm/presentation-common/content/ContentTraverser.js +427 -429
  361. package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
  362. package/lib/esm/presentation-common/content/Descriptor.d.ts +328 -328
  363. package/lib/esm/presentation-common/content/Descriptor.js +187 -189
  364. package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
  365. package/lib/esm/presentation-common/content/DisplayTypes.d.ts +21 -21
  366. package/lib/esm/presentation-common/content/DisplayTypes.js +26 -26
  367. package/lib/esm/presentation-common/content/DisplayTypes.js.map +1 -1
  368. package/lib/esm/presentation-common/content/Editor.d.ts +15 -15
  369. package/lib/esm/presentation-common/content/Editor.js +8 -8
  370. package/lib/esm/presentation-common/content/Editor.js.map +1 -1
  371. package/lib/esm/presentation-common/content/Fields.d.ts +298 -301
  372. package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
  373. package/lib/esm/presentation-common/content/Fields.js +386 -390
  374. package/lib/esm/presentation-common/content/Fields.js.map +1 -1
  375. package/lib/esm/presentation-common/content/Item.d.ts +85 -85
  376. package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
  377. package/lib/esm/presentation-common/content/Item.js +80 -80
  378. package/lib/esm/presentation-common/content/Item.js.map +1 -1
  379. package/lib/esm/presentation-common/content/Property.d.ts +57 -57
  380. package/lib/esm/presentation-common/content/Property.d.ts.map +1 -1
  381. package/lib/esm/presentation-common/content/Property.js +37 -37
  382. package/lib/esm/presentation-common/content/Property.js.map +1 -1
  383. package/lib/esm/presentation-common/content/PropertyValueFormatter.d.ts +29 -0
  384. package/lib/esm/presentation-common/content/PropertyValueFormatter.d.ts.map +1 -0
  385. package/lib/esm/presentation-common/content/PropertyValueFormatter.js +134 -0
  386. package/lib/esm/presentation-common/content/PropertyValueFormatter.js.map +1 -0
  387. package/lib/esm/presentation-common/content/Renderer.d.ts +11 -11
  388. package/lib/esm/presentation-common/content/Renderer.js +8 -8
  389. package/lib/esm/presentation-common/content/Renderer.js.map +1 -1
  390. package/lib/esm/presentation-common/content/TypeDescription.d.ts +72 -72
  391. package/lib/esm/presentation-common/content/TypeDescription.d.ts.map +1 -1
  392. package/lib/esm/presentation-common/content/TypeDescription.js +20 -20
  393. package/lib/esm/presentation-common/content/TypeDescription.js.map +1 -1
  394. package/lib/esm/presentation-common/content/Value.d.ts +204 -189
  395. package/lib/esm/presentation-common/content/Value.d.ts.map +1 -1
  396. package/lib/esm/presentation-common/content/Value.js +278 -270
  397. package/lib/esm/presentation-common/content/Value.js.map +1 -1
  398. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts +37 -37
  399. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js +28 -28
  400. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  401. package/lib/esm/presentation-common/hierarchy/Key.d.ts +246 -246
  402. package/lib/esm/presentation-common/hierarchy/Key.d.ts.map +1 -1
  403. package/lib/esm/presentation-common/hierarchy/Key.js +118 -118
  404. package/lib/esm/presentation-common/hierarchy/Key.js.map +1 -1
  405. package/lib/esm/presentation-common/hierarchy/Node.d.ts +154 -154
  406. package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
  407. package/lib/esm/presentation-common/hierarchy/Node.js +103 -103
  408. package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
  409. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts +96 -96
  410. package/lib/esm/presentation-common/hierarchy/NodePathElement.js +119 -119
  411. package/lib/esm/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  412. package/lib/esm/presentation-common/rules/ClassSpecifications.d.ts +45 -45
  413. package/lib/esm/presentation-common/rules/ClassSpecifications.js +8 -8
  414. package/lib/esm/presentation-common/rules/ClassSpecifications.js.map +1 -1
  415. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts +31 -31
  416. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js +8 -8
  417. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
  418. package/lib/esm/presentation-common/rules/RelationshipDirection.d.ts +13 -13
  419. package/lib/esm/presentation-common/rules/RelationshipDirection.js +18 -18
  420. package/lib/esm/presentation-common/rules/RelationshipDirection.js.map +1 -1
  421. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts +56 -56
  422. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
  423. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js +8 -8
  424. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  425. package/lib/esm/presentation-common/rules/Rule.d.ts +76 -76
  426. package/lib/esm/presentation-common/rules/Rule.js +32 -32
  427. package/lib/esm/presentation-common/rules/Rule.js.map +1 -1
  428. package/lib/esm/presentation-common/rules/Ruleset.d.ts +65 -65
  429. package/lib/esm/presentation-common/rules/Ruleset.js +8 -8
  430. package/lib/esm/presentation-common/rules/Ruleset.js.map +1 -1
  431. package/lib/esm/presentation-common/rules/SchemasSpecification.d.ts +41 -41
  432. package/lib/esm/presentation-common/rules/SchemasSpecification.js +8 -8
  433. package/lib/esm/presentation-common/rules/SchemasSpecification.js.map +1 -1
  434. package/lib/esm/presentation-common/rules/Variables.d.ts +58 -58
  435. package/lib/esm/presentation-common/rules/Variables.js +22 -22
  436. package/lib/esm/presentation-common/rules/Variables.js.map +1 -1
  437. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +41 -41
  438. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js +8 -8
  439. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  440. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +25 -25
  441. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js +8 -8
  442. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  443. package/lib/esm/presentation-common/rules/content/ContentRule.d.ts +30 -30
  444. package/lib/esm/presentation-common/rules/content/ContentRule.js +8 -8
  445. package/lib/esm/presentation-common/rules/content/ContentRule.js.map +1 -1
  446. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +58 -58
  447. package/lib/esm/presentation-common/rules/content/ContentSpecification.js +17 -17
  448. package/lib/esm/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  449. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +19 -19
  450. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js +8 -8
  451. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  452. package/lib/esm/presentation-common/rules/content/PropertySpecification.d.ts +86 -86
  453. package/lib/esm/presentation-common/rules/content/PropertySpecification.js +8 -8
  454. package/lib/esm/presentation-common/rules/content/PropertySpecification.js.map +1 -1
  455. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +28 -28
  456. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js +8 -8
  457. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  458. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts +25 -25
  459. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js +8 -8
  460. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js.map +1 -1
  461. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts +64 -57
  462. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
  463. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js +8 -8
  464. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  465. package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.d.ts +17 -17
  466. package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.js +8 -8
  467. package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.js.map +1 -1
  468. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +107 -107
  469. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts.map +1 -1
  470. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js +8 -8
  471. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
  472. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +108 -108
  473. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js +18 -18
  474. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
  475. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +96 -96
  476. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js +40 -40
  477. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  478. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts +44 -44
  479. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js +8 -8
  480. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
  481. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts +36 -36
  482. package/lib/esm/presentation-common/rules/customization/CustomizationRule.js +8 -8
  483. package/lib/esm/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  484. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts +27 -27
  485. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js +8 -8
  486. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  487. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +207 -207
  488. package/lib/esm/presentation-common/rules/customization/GroupingRule.js +48 -48
  489. package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  490. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts +29 -29
  491. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js +8 -8
  492. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
  493. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts +158 -158
  494. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  495. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js +22 -22
  496. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  497. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts +40 -40
  498. package/lib/esm/presentation-common/rules/customization/LabelOverride.js +8 -8
  499. package/lib/esm/presentation-common/rules/customization/LabelOverride.js.map +1 -1
  500. package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts +58 -58
  501. package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
  502. package/lib/esm/presentation-common/rules/customization/SortingRule.js +8 -8
  503. package/lib/esm/presentation-common/rules/customization/SortingRule.js.map +1 -1
  504. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts +48 -48
  505. package/lib/esm/presentation-common/rules/customization/StyleOverride.js +8 -8
  506. package/lib/esm/presentation-common/rules/customization/StyleOverride.js.map +1 -1
  507. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +14 -14
  508. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js +8 -8
  509. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  510. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +98 -98
  511. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  512. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js +18 -18
  513. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  514. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +31 -31
  515. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js +8 -8
  516. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  517. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +79 -79
  518. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js +16 -16
  519. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  520. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +39 -39
  521. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js +8 -8
  522. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  523. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.d.ts +50 -50
  524. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.d.ts.map +1 -1
  525. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js +8 -8
  526. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
  527. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +27 -27
  528. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js +8 -8
  529. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  530. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +27 -27
  531. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js +8 -8
  532. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  533. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts +16 -16
  534. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js +8 -8
  535. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  536. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts +35 -35
  537. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js +8 -8
  538. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  539. package/lib/esm/presentation-common/selection/SelectionScope.d.ts +38 -38
  540. package/lib/esm/presentation-common/selection/SelectionScope.d.ts.map +1 -1
  541. package/lib/esm/presentation-common/selection/SelectionScope.js +8 -8
  542. package/lib/esm/presentation-common/selection/SelectionScope.js.map +1 -1
  543. package/lib/esm/presentation-common.d.ts +114 -112
  544. package/lib/esm/presentation-common.d.ts.map +1 -1
  545. package/lib/esm/presentation-common.js +118 -116
  546. package/lib/esm/presentation-common.js.map +1 -1
  547. package/lib/public/locales/en/Presentation.json +19 -0
  548. package/package.json +19 -18
  549. package/lib/cjs/assets/locales/en/BisCore.json +0 -18
  550. package/lib/cjs/assets/locales/en/ECPresentation.json +0 -9
  551. package/lib/cjs/assets/locales/en/RulesEngine.json +0 -6
  552. package/lib/cjs/assets/locales/en-PSEUDO/BisCore.json +0 -18
  553. package/lib/cjs/assets/locales/en-PSEUDO/ECPresentation.json +0 -9
  554. package/lib/cjs/assets/locales/en-PSEUDO/RulesEngine.json +0 -6
  555. package/lib/public/locales/en/BisCore.json +0 -18
  556. package/lib/public/locales/en/ECPresentation.json +0 -9
  557. package/lib/public/locales/en/RulesEngine.json +0 -6
@@ -1 +1 @@
1
- {"version":3,"file":"EC.js","sourceRoot":"","sources":["../../../src/presentation-common/EC.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAyD;AA2BzD,cAAc;AACd,IAAiB,WAAW,CA4B3B;AA5BD,WAAiB,WAAW;IAC1B,8BAA8B;IAC9B,SAAgB,OAAO,CAAC,GAAgB,EAAE,GAAgB;QACxD,MAAM,gBAAgB,GAAG,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACpE,IAAI,gBAAgB,KAAK,CAAC;YACxB,OAAO,gBAAgB,CAAC;QAC1B,OAAO,GAAG,CAAC,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;IALe,mBAAO,UAKtB,CAAA;IAED;;;OAGG;IACH,uBAAuB;IACvB,mDAAmD;IACnD,SAAgB,MAAM,CAAC,GAAgB;QACrC,OAAO,EAAE,GAAG,GAAG,EAAE,CAAC;IACpB,CAAC;IAFe,kBAAM,SAErB,CAAA;IAED;;;OAGG;IACH,uBAAuB;IACvB,mDAAmD;IACnD,SAAgB,QAAQ,CAAC,IAAqB;QAC5C,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC;IACrB,CAAC;IAFe,oBAAQ,WAEvB,CAAA;AACH,CAAC,EA5BgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QA4B3B;AAyBD,cAAc;AACd,IAAiB,SAAS,CAoBzB;AApBD,WAAiB,SAAS;IACxB;;;MAGE;IACF,uBAAuB;IACvB,mDAAmD;IACnD,SAAgB,MAAM,CAAC,IAAe;QACpC,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC;IACrB,CAA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AC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;SACpH,CAAC;IACJ,CAAC;IAZe,2DAAkB,qBAYjC,CAAA;AACH,CAAC,EArCgB,wCAAwC,GAAxC,gDAAwC,KAAxC,gDAAwC,QAqCxD;AAeD,cAAc;AACd,IAAiB,gBAAgB,CAqBhC;AArBD,WAAiB,gBAAgB;IAC/B,0DAA0D;IAC1D,SAAgB,OAAO,CAAC,IAAsB;QAC5C,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACxC,GAAG,IAAI;YACP,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,qBAAqB,EAAE,CAAC,IAAI,CAAC,qBAAqB;SACnD,CAAC,CAAC,CAAC;IACN,CAAC;IAPe,wBAAO,UAOtB,CAAA;IAED,kFAAkF;IAClF,SAAgB,MAAM,CAAC,GAAuD,EAAE,GAAuD;QACrI,OAAO,GAAG,CAAC,MAAM,KAAK,GAAG,CAAC,MAAM;eAC3B,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3E,CAAC;IAHe,uBAAM,SAGrB,CAAA;IAED,uEAAuE;IACvE,SAAgB,KAAK,CAAC,IAAsB;QAC1C,OAAO,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IAFe,sBAAK,QAEpB,CAAA;AACH,CAAC,EArBgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAqBhC","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 { assert, Id64String } from \"@itwin/core-bentley\";\r\nimport { FormatProps } from \"@itwin/core-quantity\";\r\nimport { PartialBy } from \"./Utils\";\r\n\r\n/**\r\n * Type of an ECClass ID.\r\n * @public\r\n */\r\nexport type ClassId = Id64String;\r\n\r\n/**\r\n * Type of an ECInstance ID.\r\n * @public\r\n */\r\nexport type InstanceId = Id64String;\r\n\r\n/**\r\n * A key that uniquely identifies an instance in an iModel\r\n * @public\r\n */\r\nexport interface InstanceKey {\r\n /** Full class name in format `SchemaName:ClassName` */\r\n className: string;\r\n /** ECInstance ID */\r\n id: InstanceId;\r\n}\r\n\r\n/** @public */\r\nexport namespace InstanceKey {\r\n /** Compare 2 instance keys */\r\n export function compare(lhs: InstanceKey, rhs: InstanceKey): number {\r\n const classNameCompare = lhs.className.localeCompare(rhs.className);\r\n if (classNameCompare !== 0)\r\n return classNameCompare;\r\n return lhs.id.localeCompare(rhs.id);\r\n }\r\n\r\n /**\r\n * Serialize [[InstanceKey]] to JSON\r\n * @deprecated in 3.x. Use [[InstanceKey]].\r\n */\r\n // istanbul ignore next\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function toJSON(key: InstanceKey): InstanceKeyJSON {\r\n return { ...key };\r\n }\r\n\r\n /**\r\n * Deserialize [[InstanceKey]] from JSON\r\n * @deprecated in 3.x. Use [[InstanceKey]].\r\n */\r\n // istanbul ignore next\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function fromJSON(json: InstanceKeyJSON) {\r\n return { ...json };\r\n }\r\n}\r\n\r\n/**\r\n * A serialized version of [[InstanceKey]]\r\n * @public\r\n * @deprecated in 3.x. Use [[InstanceKey]].\r\n */\r\nexport interface InstanceKeyJSON {\r\n className: string;\r\n id: string;\r\n}\r\n\r\n/**\r\n * Information about an ECClass\r\n * @public\r\n */\r\nexport interface ClassInfo {\r\n /** ECClass ID */\r\n id: ClassId;\r\n /** Full class name in format `SchemaName:ClassName` */\r\n name: string;\r\n /** ECClass label */\r\n label: string;\r\n}\r\n\r\n/** @public */\r\nexport namespace ClassInfo {\r\n /**\r\n * Serialize [[ClassInfo]] to JSON\r\n * @deprecated in 3.x. Use [[ClassInfo]].\r\n */\r\n // istanbul ignore next\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function toJSON(info: ClassInfo): ClassInfoJSON {\r\n return { ...info };\r\n }\r\n\r\n /**\r\n * Deserialize [[ClassInfo]] from JSON\r\n * @deprecated in 3.x. Use [[ClassInfo]].\r\n */\r\n // istanbul ignore next\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function fromJSON(json: ClassInfoJSON): ClassInfo {\r\n return { ...json };\r\n }\r\n}\r\n\r\n/**\r\n * A serialized version of [[ClassInfo]]\r\n * @public\r\n * @deprecated in 3.x. Use [[ClassInfo]].\r\n */\r\nexport interface ClassInfoJSON {\r\n id: string;\r\n name: string;\r\n label: string;\r\n}\r\n\r\n/**\r\n * A serialized and compressed version of [[ClassInfo]]\r\n * @public\r\n */\r\nexport interface CompressedClassInfoJSON {\r\n name: string;\r\n label: string;\r\n}\r\n\r\n/**\r\n * A single choice in enumeration\r\n * @public\r\n */\r\nexport interface EnumerationChoice {\r\n /** Label of the choice */\r\n label: string;\r\n /** Value of the choice */\r\n value: string | number;\r\n}\r\n\r\n/**\r\n * Enumeration information\r\n * @public\r\n */\r\nexport interface EnumerationInfo {\r\n /** Available enumeration choices */\r\n choices: EnumerationChoice[];\r\n /** Is the enumeration strict (values only allowed from `choices` list) */\r\n isStrict: boolean;\r\n}\r\n\r\n/**\r\n * Kind of quantity information\r\n * @public\r\n */\r\nexport interface KindOfQuantityInfo {\r\n /** Full name of KindOfQuantity in format `SchemaName:KindOfQuantityName` */\r\n name: string;\r\n /** Label of KindOfQuantity */\r\n label: string;\r\n /**\r\n * Persistence unit identifier.\r\n * @alpha Still not entirely clear how kind of quantities will be handled and what data we'll need\r\n */\r\n persistenceUnit: string;\r\n /**\r\n * Active format that was used to format property value.\r\n * @alpha Still not entirely clear how kind of quantities will be handled and what data we'll need\r\n */\r\n activeFormat?: FormatProps;\r\n}\r\n\r\n/**\r\n * A data structure for storing navigation property information.\r\n * @beta\r\n */\r\nexport interface NavigationPropertyInfo {\r\n /** Information about ECProperty's relationship class */\r\n classInfo: ClassInfo;\r\n /** Is the direction of the relationship forward */\r\n isForwardRelationship: boolean;\r\n /** Information about ECProperty's target class */\r\n targetClassInfo: ClassInfo;\r\n /** Is ECProperty's target class polymorphic */\r\n isTargetPolymorphic: boolean;\r\n}\r\n\r\n/**\r\n * Contains utilities for working with objects of [[NavigationPropertyInfo]] type.\r\n * @beta\r\n */\r\nexport namespace NavigationPropertyInfo {\r\n /**\r\n * Serialize [[NavigationPropertyInfo]] to JSON\r\n * @deprecated in 3.x. Use [[toCompressedJSON]].\r\n */\r\n // istanbul ignore next\r\n export function toJSON(info: NavigationPropertyInfo): NavigationPropertyInfoJSON {\r\n return { ...info };\r\n }\r\n\r\n /** Serialize [[NavigationPropertyInfo]] to compressed JSON */\r\n export function toCompressedJSON(navigationPropertyInfo: NavigationPropertyInfo, classesMap: { [id: string]: CompressedClassInfoJSON }): NavigationPropertyInfoJSON<string> {\r\n const { id: relationshipId, ...relationshipLeftOverInfo } = navigationPropertyInfo.classInfo;\r\n const { id: targetId, ...targetLeftOverInfo } = navigationPropertyInfo.targetClassInfo;\r\n classesMap[relationshipId] = relationshipLeftOverInfo;\r\n classesMap[targetId] = targetLeftOverInfo;\r\n\r\n return {\r\n ...navigationPropertyInfo,\r\n classInfo: relationshipId,\r\n targetClassInfo: targetId,\r\n };\r\n }\r\n\r\n /**\r\n * Deserialize [[NavigationPropertyInfo]] from JSON\r\n * @deprecated in 3.x. Use [[fromCompressedJSON]].\r\n */\r\n // istanbul ignore next\r\n export function fromJSON(json: NavigationPropertyInfoJSON): NavigationPropertyInfo {\r\n return { ...json };\r\n }\r\n\r\n /** Deserialize [[NavigationPropertyInfo]] from compressed JSON */\r\n export function fromCompressedJSON(compressedNavigationPropertyInfoJSON: NavigationPropertyInfoJSON<string>, classesMap: { [id: string]: CompressedClassInfoJSON }): NavigationPropertyInfo {\r\n return {\r\n ...compressedNavigationPropertyInfoJSON,\r\n classInfo: { id: compressedNavigationPropertyInfoJSON.classInfo, ...classesMap[compressedNavigationPropertyInfoJSON.classInfo] },\r\n targetClassInfo: { id: compressedNavigationPropertyInfoJSON.targetClassInfo, ...classesMap[compressedNavigationPropertyInfoJSON.targetClassInfo] },\r\n };\r\n }\r\n}\r\n\r\n/**\r\n * A serialized version of [[NavigationPropertyInfo]]\r\n * @beta\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport interface NavigationPropertyInfoJSON<TClassInfoJSON = ClassInfoJSON> {\r\n classInfo: TClassInfoJSON;\r\n isForwardRelationship: boolean;\r\n targetClassInfo: TClassInfoJSON;\r\n isTargetPolymorphic: boolean;\r\n}\r\n\r\n/**\r\n * A structure that describes an ECProperty\r\n * @public\r\n */\r\nexport interface PropertyInfo {\r\n /** Information about ECProperty class */\r\n classInfo: ClassInfo;\r\n /** Name of the ECProperty */\r\n name: string;\r\n /** Type name of the ECProperty */\r\n type: string;\r\n /** Enumeration info if the property is enumerable */\r\n enumerationInfo?: EnumerationInfo;\r\n /**\r\n * Kind of quantity information, if any.\r\n * @alpha Still not entirely clear how kind of quantities will be handled and what data we'll need\r\n */\r\n kindOfQuantity?: KindOfQuantityInfo;\r\n /** Extended type name of the ECProperty if it has one */\r\n extendedType?: string;\r\n /**\r\n * Navigation property info if the field is navigation type\r\n * @beta\r\n */\r\n navigationPropertyInfo?: NavigationPropertyInfo;\r\n}\r\n\r\n/** @public */\r\nexport namespace PropertyInfo {\r\n /**\r\n * Serialize [[PropertyInfo]] to JSON\r\n * @deprecated in 3.x. Use [[PropertyInfo]].\r\n */\r\n // istanbul ignore next\r\n export function toJSON(info: PropertyInfo): PropertyInfoJSON {\r\n return { ...info };\r\n }\r\n\r\n /** Serialize [[PropertyInfo]] to compressed JSON */\r\n export function toCompressedJSON(propertyInfo: PropertyInfo, classesMap: { [id: string]: CompressedClassInfoJSON }): PropertyInfoJSON<string> {\r\n const { navigationPropertyInfo, ...leftOverPropertyInfo } = propertyInfo;\r\n const { id, ...leftOverInfo } = propertyInfo.classInfo;\r\n classesMap[id] = leftOverInfo;\r\n\r\n return {\r\n ...leftOverPropertyInfo,\r\n classInfo: propertyInfo.classInfo.id,\r\n ...(navigationPropertyInfo ? { navigationPropertyInfo: NavigationPropertyInfo.toCompressedJSON(navigationPropertyInfo, classesMap) } : undefined),\r\n };\r\n }\r\n\r\n /**\r\n * Deserialize [[PropertyInfo]] from JSON\r\n * @deprecated in 3.x. Use [[PropertyInfo]].\r\n */\r\n // istanbul ignore next\r\n export function fromJSON(json: PropertyInfoJSON): PropertyInfo {\r\n return { ...json };\r\n }\r\n}\r\n\r\n/**\r\n * A serialized version of [[PropertyInfo]]\r\n * @public\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport interface PropertyInfoJSON<TClassInfoJSON = ClassInfoJSON> {\r\n classInfo: TClassInfoJSON;\r\n name: string;\r\n type: string;\r\n enumerationInfo?: EnumerationInfo;\r\n kindOfQuantity?: KindOfQuantityInfo;\r\n /** @beta */\r\n navigationPropertyInfo?: NavigationPropertyInfoJSON<TClassInfoJSON>;\r\n}\r\n\r\n/**\r\n * A structure that describes a related class and the properties of that relationship.\r\n * @public\r\n */\r\nexport interface RelatedClassInfo {\r\n /** Information about the source ECClass */\r\n sourceClassInfo: ClassInfo;\r\n\r\n /** Information about the target ECClass */\r\n targetClassInfo: ClassInfo;\r\n\r\n /** Is target class handled polymorphically */\r\n isPolymorphicTargetClass?: boolean;\r\n\r\n /** Information about the ECRelationship */\r\n relationshipInfo: ClassInfo;\r\n\r\n /** Should relationship be followed in a forward direction to access the related class. */\r\n isForwardRelationship: boolean;\r\n\r\n /** Is relationship handled polymorphically */\r\n isPolymorphicRelationship?: boolean;\r\n}\r\n\r\n/** @public */\r\nexport namespace RelatedClassInfo {\r\n /**\r\n * Serialize [[RelatedClassInfo]] to JSON\r\n * @deprecated in 3.x. Use [[RelatedClassInfo]].\r\n */\r\n export function toJSON(info: RelatedClassInfo): RelatedClassInfoJSON {\r\n return { ...info };\r\n }\r\n\r\n /** Serialize [[RelatedClassInfo]] to compressed JSON */\r\n export function toCompressedJSON(classInfo: RelatedClassInfo, classesMap: { [id: string]: CompressedClassInfoJSON }): RelatedClassInfoJSON<string> {\r\n const { id: sourceId, ...sourceLeftOverInfo } = classInfo.sourceClassInfo;\r\n const { id: targetId, ...targetLeftOverInfo } = classInfo.targetClassInfo;\r\n const { id: relationshipId, ...relationshipLeftOverInfo } = classInfo.relationshipInfo;\r\n\r\n classesMap[sourceId] = sourceLeftOverInfo;\r\n classesMap[targetId] = targetLeftOverInfo;\r\n classesMap[relationshipId] = relationshipLeftOverInfo;\r\n\r\n return {\r\n ...classInfo,\r\n sourceClassInfo: sourceId,\r\n targetClassInfo: targetId,\r\n relationshipInfo: relationshipId,\r\n };\r\n }\r\n\r\n /**\r\n * Deserialize [[RelatedClassInfo]] from JSON\r\n * @deprecated in 3.x. Use [[RelatedClassInfo]].\r\n */\r\n export function fromJSON(json: RelatedClassInfoJSON): RelatedClassInfo {\r\n return { ...json };\r\n }\r\n\r\n /** Deserialize [[RelatedClassInfo]] from compressed JSON */\r\n export function fromCompressedJSON(json: RelatedClassInfoJSON<string>, classesMap: { [id: string]: CompressedClassInfoJSON }): RelatedClassInfo {\r\n assert(classesMap.hasOwnProperty(json.sourceClassInfo));\r\n assert(classesMap.hasOwnProperty(json.targetClassInfo));\r\n assert(classesMap.hasOwnProperty(json.relationshipInfo));\r\n return {\r\n ...json,\r\n sourceClassInfo: { id: json.sourceClassInfo, ...classesMap[json.sourceClassInfo] },\r\n targetClassInfo: { id: json.targetClassInfo, ...classesMap[json.targetClassInfo] },\r\n relationshipInfo: { id: json.relationshipInfo, ...classesMap[json.relationshipInfo] },\r\n };\r\n }\r\n\r\n /** Check two [[RelatedClassInfo]] or [[StrippedRelatedClassInfo]] for equality */\r\n export function equals(lhs: RelatedClassInfo | StrippedRelatedClassInfo, rhs: RelatedClassInfo | StrippedRelatedClassInfo): boolean {\r\n return lhs.isForwardRelationship === rhs.isForwardRelationship\r\n && getClassName(lhs, \"source\") === getClassName(rhs, \"source\")\r\n && getClassName(lhs, \"target\") === getClassName(rhs, \"target\")\r\n && getClassName(lhs, \"relationship\") === getClassName(rhs, \"relationship\");\r\n }\r\n\r\n function isStripped(info: RelatedClassInfo | StrippedRelatedClassInfo): info is StrippedRelatedClassInfo {\r\n const maybeStripped = info as StrippedRelatedClassInfo;\r\n return !!maybeStripped.relationshipName && !!maybeStripped.sourceClassName && !!maybeStripped.targetClassName;\r\n }\r\n\r\n function getClassName(info: RelatedClassInfo | StrippedRelatedClassInfo, whichClass: \"relationship\" | \"source\" | \"target\"): string {\r\n switch (whichClass) {\r\n case \"source\": return isStripped(info) ? info.sourceClassName : info.sourceClassInfo.name;\r\n case \"target\": return isStripped(info) ? info.targetClassName : info.targetClassInfo.name;\r\n case \"relationship\": return isStripped(info) ? info.relationshipName : info.relationshipInfo.name;\r\n }\r\n }\r\n\r\n /** Strip given [[RelatedClassInfo]] to [[StrippedRelatedClassInfo]] */\r\n export function strip(full: RelatedClassInfo): StrippedRelatedClassInfo {\r\n return {\r\n sourceClassName: full.sourceClassInfo.name,\r\n targetClassName: full.targetClassInfo.name,\r\n relationshipName: full.relationshipInfo.name,\r\n isForwardRelationship: full.isForwardRelationship,\r\n };\r\n }\r\n}\r\n\r\n/**\r\n * A serialized version of [[RelatedClassInfo]]\r\n * @public\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport interface RelatedClassInfoJSON<TClassInfoJSON = ClassInfoJSON> {\r\n sourceClassInfo: TClassInfoJSON;\r\n targetClassInfo: TClassInfoJSON;\r\n isPolymorphicTargetClass?: boolean;\r\n relationshipInfo: TClassInfoJSON;\r\n isForwardRelationship: boolean;\r\n isPolymorphicRelationship?: boolean;\r\n}\r\n\r\n/**\r\n * A structure that describes a relationship between source and target classes where\r\n * an actual ECRelationship between them is optional.\r\n * @public\r\n */\r\nexport type RelatedClassInfoWithOptionalRelationship = PartialBy<RelatedClassInfo, \"relationshipInfo\" | \"isForwardRelationship\" | \"isPolymorphicRelationship\">;\r\n\r\n/** @public */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport type RelatedClassInfoWithOptionalRelationshipJSON<TClassInfoJSON = ClassInfoJSON> = PartialBy<RelatedClassInfoJSON<TClassInfoJSON>, \"relationshipInfo\" | \"isForwardRelationship\" | \"isPolymorphicRelationship\">;\r\n\r\n/** @public */\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare\r\nexport namespace RelatedClassInfoWithOptionalRelationship {\r\n /** Serialize [[RelatedClassInfoWithOptionalRelationship]] to compressed JSON */\r\n export function toCompressedJSON(classInfo: RelatedClassInfoWithOptionalRelationship, classesMap: { [id: string]: CompressedClassInfoJSON }): RelatedClassInfoWithOptionalRelationshipJSON<string> {\r\n const { sourceClassInfo, targetClassInfo, relationshipInfo, ...otherProps } = classInfo;\r\n const { id: sourceId, ...sourceLeftOverInfo } = sourceClassInfo;\r\n const { id: targetId, ...targetLeftOverInfo } = targetClassInfo;\r\n\r\n classesMap[sourceId] = sourceLeftOverInfo;\r\n classesMap[targetId] = targetLeftOverInfo;\r\n\r\n if (relationshipInfo) {\r\n const { id: relationshipId, ...relationshipLeftOverInfo } = relationshipInfo;\r\n classesMap[relationshipId] = relationshipLeftOverInfo;\r\n }\r\n\r\n return {\r\n ...otherProps,\r\n sourceClassInfo: sourceId,\r\n targetClassInfo: targetId,\r\n ...(relationshipInfo ? { relationshipInfo: relationshipInfo.id } : undefined),\r\n };\r\n }\r\n\r\n /** Deserialize [[RelatedClassInfoWithOptionalRelationship]] from compressed JSON */\r\n export function fromCompressedJSON(json: RelatedClassInfoWithOptionalRelationshipJSON<string>, classesMap: { [id: string]: CompressedClassInfoJSON }): RelatedClassInfoWithOptionalRelationship {\r\n const { sourceClassInfo, targetClassInfo, relationshipInfo, ...otherProps } = json;\r\n assert(classesMap.hasOwnProperty(sourceClassInfo));\r\n assert(classesMap.hasOwnProperty(targetClassInfo));\r\n if (relationshipInfo)\r\n assert(classesMap.hasOwnProperty(relationshipInfo));\r\n return {\r\n ...otherProps,\r\n sourceClassInfo: { id: sourceClassInfo, ...classesMap[sourceClassInfo] },\r\n targetClassInfo: { id: targetClassInfo, ...classesMap[targetClassInfo] },\r\n ...(relationshipInfo ? { relationshipInfo: { id: relationshipInfo, ...classesMap[relationshipInfo] } } : undefined),\r\n };\r\n }\r\n}\r\n\r\n/**\r\n * A structure that describes a related class path.\r\n * @public\r\n */\r\nexport type RelationshipPath = RelatedClassInfo[];\r\n\r\n/**\r\n * Serialized [[RelationshipPath]]\r\n * @public\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport type RelationshipPathJSON<TClassInfoJSON = ClassInfoJSON> = RelatedClassInfoJSON<TClassInfoJSON>[];\r\n\r\n/** @public */\r\nexport namespace RelationshipPath { // eslint-disable-line @typescript-eslint/no-redeclare\r\n /** Reverse direction of the given [[RelationshipPath]] */\r\n export function reverse(path: RelationshipPath): RelationshipPath {\r\n return [...path].reverse().map((step) => ({\r\n ...step,\r\n sourceClassInfo: step.targetClassInfo,\r\n targetClassInfo: step.sourceClassInfo,\r\n isForwardRelationship: !step.isForwardRelationship,\r\n }));\r\n }\r\n\r\n /** Check two [[RelationshipPath]] or [[StrippedRelationshipPath]] for equality */\r\n export function equals(lhs: Array<RelatedClassInfo | StrippedRelatedClassInfo>, rhs: Array<RelatedClassInfo | StrippedRelatedClassInfo>): boolean {\r\n return lhs.length === rhs.length\r\n && lhs.every((lhsPart, i) => RelatedClassInfo.equals(lhsPart, rhs[i]));\r\n }\r\n\r\n /** Strip given [[RelationshipPath]] to [[StrippedRelationshipPath]] */\r\n export function strip(full: RelationshipPath): StrippedRelationshipPath {\r\n return full.map(RelatedClassInfo.strip);\r\n }\r\n}\r\n\r\n/**\r\n * Data structure that contains a subset of [[RelatedClassInfo]] required to\r\n * identify the relationship.\r\n * @public\r\n */\r\nexport interface StrippedRelatedClassInfo {\r\n sourceClassName: string;\r\n targetClassName: string;\r\n relationshipName: string;\r\n isForwardRelationship: boolean;\r\n}\r\n\r\n/**\r\n * Data structure that contains a subset of [[RelationshipPath]] required to\r\n * identify the relationship path.\r\n * @public\r\n */\r\nexport type StrippedRelationshipPath = StrippedRelatedClassInfo[];\r\n"]}
1
+ {"version":3,"file":"EC.js","sourceRoot":"","sources":["../../../src/presentation-common/EC.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAyD;AA2BzD,cAAc;AACd,IAAiB,WAAW,CA4B3B;AA5BD,WAAiB,WAAW;IAC1B,8BAA8B;IAC9B,SAAgB,OAAO,CAAC,GAAgB,EAAE,GAAgB;QACxD,MAAM,gBAAgB,GAAG,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACpE,IAAI,gBAAgB,KAAK,CAAC;YACxB,OAAO,gBAAgB,CAAC;QAC1B,OAAO,GAAG,CAAC,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;IALe,mBAAO,UAKtB,CAAA;IAED;;;OAGG;IACH,uBAAuB;IACvB,mDAAmD;IACnD,SAAgB,MAAM,CAAC,GAAgB;QACrC,OAAO,EAAE,GAAG,GAAG,EAAE,CAAC;IACpB,CAAC;IAFe,kBAAM,SAErB,CAAA;IAED;;;OAGG;IACH,uBAAuB;IACvB,mDAAmD;IACnD,SAAgB,QAAQ,CAAC,IAAqB;QAC5C,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC;IACrB,CAAC;IAFe,oBAAQ,WAEvB,CAAA;AACH,CAAC,EA5BgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QA4B3B;AAyBD,cAAc;AACd,IAAiB,SAAS,CAoBzB;AApB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hB,wBAAgB,QAqBhC","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 { assert, Id64String } from \"@itwin/core-bentley\";\nimport { FormatProps } from \"@itwin/core-quantity\";\nimport { PartialBy } from \"./Utils\";\n\n/**\n * Type of an ECClass ID.\n * @public\n */\nexport type ClassId = Id64String;\n\n/**\n * Type of an ECInstance ID.\n * @public\n */\nexport type InstanceId = Id64String;\n\n/**\n * A key that uniquely identifies an instance in an iModel\n * @public\n */\nexport interface InstanceKey {\n /** Full class name in format `SchemaName:ClassName` */\n className: string;\n /** ECInstance ID */\n id: InstanceId;\n}\n\n/** @public */\nexport namespace InstanceKey {\n /** Compare 2 instance keys */\n export function compare(lhs: InstanceKey, rhs: InstanceKey): number {\n const classNameCompare = lhs.className.localeCompare(rhs.className);\n if (classNameCompare !== 0)\n return classNameCompare;\n return lhs.id.localeCompare(rhs.id);\n }\n\n /**\n * Serialize [[InstanceKey]] to JSON\n * @deprecated in 3.x. Use [[InstanceKey]].\n */\n // istanbul ignore next\n // eslint-disable-next-line deprecation/deprecation\n export function toJSON(key: InstanceKey): InstanceKeyJSON {\n return { ...key };\n }\n\n /**\n * Deserialize [[InstanceKey]] from JSON\n * @deprecated in 3.x. Use [[InstanceKey]].\n */\n // istanbul ignore next\n // eslint-disable-next-line deprecation/deprecation\n export function fromJSON(json: InstanceKeyJSON) {\n return { ...json };\n }\n}\n\n/**\n * A serialized version of [[InstanceKey]]\n * @public\n * @deprecated in 3.x. Use [[InstanceKey]].\n */\nexport interface InstanceKeyJSON {\n className: string;\n id: string;\n}\n\n/**\n * Information about an ECClass\n * @public\n */\nexport interface ClassInfo {\n /** ECClass ID */\n id: ClassId;\n /** Full class name in format `SchemaName:ClassName` */\n name: string;\n /** ECClass label */\n label: string;\n}\n\n/** @public */\nexport namespace ClassInfo {\n /**\n * Serialize [[ClassInfo]] to JSON\n * @deprecated in 3.x. Use [[ClassInfo]].\n */\n // istanbul ignore next\n // eslint-disable-next-line deprecation/deprecation\n export function toJSON(info: ClassInfo): ClassInfoJSON {\n return { ...info };\n }\n\n /**\n * Deserialize [[ClassInfo]] from JSON\n * @deprecated in 3.x. Use [[ClassInfo]].\n */\n // istanbul ignore next\n // eslint-disable-next-line deprecation/deprecation\n export function fromJSON(json: ClassInfoJSON): ClassInfo {\n return { ...json };\n }\n}\n\n/**\n * A serialized version of [[ClassInfo]]\n * @public\n * @deprecated in 3.x. Use [[ClassInfo]].\n */\nexport interface ClassInfoJSON {\n id: string;\n name: string;\n label: string;\n}\n\n/**\n * A serialized and compressed version of [[ClassInfo]]\n * @public\n */\nexport interface CompressedClassInfoJSON {\n name: string;\n label: string;\n}\n\n/**\n * A single choice in enumeration\n * @public\n */\nexport interface EnumerationChoice {\n /** Label of the choice */\n label: string;\n /** Value of the choice */\n value: string | number;\n}\n\n/**\n * Enumeration information\n * @public\n */\nexport interface EnumerationInfo {\n /** Available enumeration choices */\n choices: EnumerationChoice[];\n /** Is the enumeration strict (values only allowed from `choices` list) */\n isStrict: boolean;\n}\n\n/**\n * Kind of quantity information\n * @public\n */\nexport interface KindOfQuantityInfo {\n /** Full name of KindOfQuantity in format `SchemaName:KindOfQuantityName` */\n name: string;\n /** Label of KindOfQuantity */\n label: string;\n /**\n * Persistence unit identifier.\n * @alpha Still not entirely clear how kind of quantities will be handled and what data we'll need\n */\n persistenceUnit: string;\n /**\n * Active format that was used to format property value.\n * @alpha Still not entirely clear how kind of quantities will be handled and what data we'll need\n */\n activeFormat?: FormatProps;\n}\n\n/**\n * A data structure for storing navigation property information.\n * @beta\n */\nexport interface NavigationPropertyInfo {\n /** Information about ECProperty's relationship class */\n classInfo: ClassInfo;\n /** Is the direction of the relationship forward */\n isForwardRelationship: boolean;\n /** Information about ECProperty's target class */\n targetClassInfo: ClassInfo;\n /** Is ECProperty's target class polymorphic */\n isTargetPolymorphic: boolean;\n}\n\n/**\n * Contains utilities for working with objects of [[NavigationPropertyInfo]] type.\n * @beta\n */\nexport namespace NavigationPropertyInfo {\n /**\n * Serialize [[NavigationPropertyInfo]] to JSON\n * @deprecated in 3.x. Use [[toCompressedJSON]].\n */\n // istanbul ignore next\n export function toJSON(info: NavigationPropertyInfo): NavigationPropertyInfoJSON {\n return { ...info };\n }\n\n /** Serialize [[NavigationPropertyInfo]] to compressed JSON */\n export function toCompressedJSON(navigationPropertyInfo: NavigationPropertyInfo, classesMap: { [id: string]: CompressedClassInfoJSON }): NavigationPropertyInfoJSON<string> {\n const { id: relationshipId, ...relationshipLeftOverInfo } = navigationPropertyInfo.classInfo;\n const { id: targetId, ...targetLeftOverInfo } = navigationPropertyInfo.targetClassInfo;\n classesMap[relationshipId] = relationshipLeftOverInfo;\n classesMap[targetId] = targetLeftOverInfo;\n\n return {\n ...navigationPropertyInfo,\n classInfo: relationshipId,\n targetClassInfo: targetId,\n };\n }\n\n /**\n * Deserialize [[NavigationPropertyInfo]] from JSON\n * @deprecated in 3.x. Use [[fromCompressedJSON]].\n */\n // istanbul ignore next\n export function fromJSON(json: NavigationPropertyInfoJSON): NavigationPropertyInfo {\n return { ...json };\n }\n\n /** Deserialize [[NavigationPropertyInfo]] from compressed JSON */\n export function fromCompressedJSON(compressedNavigationPropertyInfoJSON: NavigationPropertyInfoJSON<string>, classesMap: { [id: string]: CompressedClassInfoJSON }): NavigationPropertyInfo {\n return {\n ...compressedNavigationPropertyInfoJSON,\n classInfo: { id: compressedNavigationPropertyInfoJSON.classInfo, ...classesMap[compressedNavigationPropertyInfoJSON.classInfo] },\n targetClassInfo: { id: compressedNavigationPropertyInfoJSON.targetClassInfo, ...classesMap[compressedNavigationPropertyInfoJSON.targetClassInfo] },\n };\n }\n}\n\n/**\n * A serialized version of [[NavigationPropertyInfo]]\n * @beta\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface NavigationPropertyInfoJSON<TClassInfoJSON = ClassInfoJSON> {\n classInfo: TClassInfoJSON;\n isForwardRelationship: boolean;\n targetClassInfo: TClassInfoJSON;\n isTargetPolymorphic: boolean;\n}\n\n/**\n * A structure that describes an ECProperty\n * @public\n */\nexport interface PropertyInfo {\n /** Information about ECProperty class */\n classInfo: ClassInfo;\n /** Name of the ECProperty */\n name: string;\n /** Type name of the ECProperty */\n type: string;\n /** Enumeration info if the property is enumerable */\n enumerationInfo?: EnumerationInfo;\n /** Kind of quantity information, if any. */\n kindOfQuantity?: KindOfQuantityInfo;\n /** Extended type name of the ECProperty if it has one */\n extendedType?: string;\n /**\n * Navigation property info if the field is navigation type\n * @beta\n */\n navigationPropertyInfo?: NavigationPropertyInfo;\n}\n\n/** @public */\nexport namespace PropertyInfo {\n /**\n * Serialize [[PropertyInfo]] to JSON\n * @deprecated in 3.x. Use [[PropertyInfo]].\n */\n // istanbul ignore next\n export function toJSON(info: PropertyInfo): PropertyInfoJSON {\n return { ...info };\n }\n\n /** Serialize [[PropertyInfo]] to compressed JSON */\n export function toCompressedJSON(propertyInfo: PropertyInfo, classesMap: { [id: string]: CompressedClassInfoJSON }): PropertyInfoJSON<string> {\n const { navigationPropertyInfo, ...leftOverPropertyInfo } = propertyInfo;\n const { id, ...leftOverInfo } = propertyInfo.classInfo;\n classesMap[id] = leftOverInfo;\n\n return {\n ...leftOverPropertyInfo,\n classInfo: propertyInfo.classInfo.id,\n ...(navigationPropertyInfo ? { navigationPropertyInfo: NavigationPropertyInfo.toCompressedJSON(navigationPropertyInfo, classesMap) } : undefined),\n };\n }\n\n /**\n * Deserialize [[PropertyInfo]] from JSON\n * @deprecated in 3.x. Use [[PropertyInfo]].\n */\n // istanbul ignore next\n export function fromJSON(json: PropertyInfoJSON): PropertyInfo {\n return { ...json };\n }\n}\n\n/**\n * A serialized version of [[PropertyInfo]]\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface PropertyInfoJSON<TClassInfoJSON = ClassInfoJSON> {\n classInfo: TClassInfoJSON;\n name: string;\n type: string;\n enumerationInfo?: EnumerationInfo;\n kindOfQuantity?: KindOfQuantityInfo;\n /** @beta */\n navigationPropertyInfo?: NavigationPropertyInfoJSON<TClassInfoJSON>;\n}\n\n/**\n * A structure that describes a related class and the properties of that relationship.\n * @public\n */\nexport interface RelatedClassInfo {\n /** Information about the source ECClass */\n sourceClassInfo: ClassInfo;\n\n /** Information about the target ECClass */\n targetClassInfo: ClassInfo;\n\n /** Is target class handled polymorphically */\n isPolymorphicTargetClass?: boolean;\n\n /** Information about the ECRelationship */\n relationshipInfo: ClassInfo;\n\n /** Should relationship be followed in a forward direction to access the related class. */\n isForwardRelationship: boolean;\n\n /** Is relationship handled polymorphically */\n isPolymorphicRelationship?: boolean;\n}\n\n/** @public */\nexport namespace RelatedClassInfo {\n /**\n * Serialize [[RelatedClassInfo]] to JSON\n * @deprecated in 3.x. Use [[RelatedClassInfo]].\n */\n export function toJSON(info: RelatedClassInfo): RelatedClassInfoJSON {\n return { ...info };\n }\n\n /** Serialize [[RelatedClassInfo]] to compressed JSON */\n export function toCompressedJSON(classInfo: RelatedClassInfo, classesMap: { [id: string]: CompressedClassInfoJSON }): RelatedClassInfoJSON<string> {\n const { id: sourceId, ...sourceLeftOverInfo } = classInfo.sourceClassInfo;\n const { id: targetId, ...targetLeftOverInfo } = classInfo.targetClassInfo;\n const { id: relationshipId, ...relationshipLeftOverInfo } = classInfo.relationshipInfo;\n\n classesMap[sourceId] = sourceLeftOverInfo;\n classesMap[targetId] = targetLeftOverInfo;\n classesMap[relationshipId] = relationshipLeftOverInfo;\n\n return {\n ...classInfo,\n sourceClassInfo: sourceId,\n targetClassInfo: targetId,\n relationshipInfo: relationshipId,\n };\n }\n\n /**\n * Deserialize [[RelatedClassInfo]] from JSON\n * @deprecated in 3.x. Use [[RelatedClassInfo]].\n */\n export function fromJSON(json: RelatedClassInfoJSON): RelatedClassInfo {\n return { ...json };\n }\n\n /** Deserialize [[RelatedClassInfo]] from compressed JSON */\n export function fromCompressedJSON(json: RelatedClassInfoJSON<string>, classesMap: { [id: string]: CompressedClassInfoJSON }): RelatedClassInfo {\n assert(classesMap.hasOwnProperty(json.sourceClassInfo));\n assert(classesMap.hasOwnProperty(json.targetClassInfo));\n assert(classesMap.hasOwnProperty(json.relationshipInfo));\n return {\n ...json,\n sourceClassInfo: { id: json.sourceClassInfo, ...classesMap[json.sourceClassInfo] },\n targetClassInfo: { id: json.targetClassInfo, ...classesMap[json.targetClassInfo] },\n relationshipInfo: { id: json.relationshipInfo, ...classesMap[json.relationshipInfo] },\n };\n }\n\n /** Check two [[RelatedClassInfo]] or [[StrippedRelatedClassInfo]] for equality */\n export function equals(lhs: RelatedClassInfo | StrippedRelatedClassInfo, rhs: RelatedClassInfo | StrippedRelatedClassInfo): boolean {\n return lhs.isForwardRelationship === rhs.isForwardRelationship\n && getClassName(lhs, \"source\") === getClassName(rhs, \"source\")\n && getClassName(lhs, \"target\") === getClassName(rhs, \"target\")\n && getClassName(lhs, \"relationship\") === getClassName(rhs, \"relationship\");\n }\n\n function isStripped(info: RelatedClassInfo | StrippedRelatedClassInfo): info is StrippedRelatedClassInfo {\n const maybeStripped = info as StrippedRelatedClassInfo;\n return !!maybeStripped.relationshipName && !!maybeStripped.sourceClassName && !!maybeStripped.targetClassName;\n }\n\n function getClassName(info: RelatedClassInfo | StrippedRelatedClassInfo, whichClass: \"relationship\" | \"source\" | \"target\"): string {\n switch (whichClass) {\n case \"source\": return isStripped(info) ? info.sourceClassName : info.sourceClassInfo.name;\n case \"target\": return isStripped(info) ? info.targetClassName : info.targetClassInfo.name;\n case \"relationship\": return isStripped(info) ? info.relationshipName : info.relationshipInfo.name;\n }\n }\n\n /** Strip given [[RelatedClassInfo]] to [[StrippedRelatedClassInfo]] */\n export function strip(full: RelatedClassInfo): StrippedRelatedClassInfo {\n return {\n sourceClassName: full.sourceClassInfo.name,\n targetClassName: full.targetClassInfo.name,\n relationshipName: full.relationshipInfo.name,\n isForwardRelationship: full.isForwardRelationship,\n };\n }\n}\n\n/**\n * A serialized version of [[RelatedClassInfo]]\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface RelatedClassInfoJSON<TClassInfoJSON = ClassInfoJSON> {\n sourceClassInfo: TClassInfoJSON;\n targetClassInfo: TClassInfoJSON;\n isPolymorphicTargetClass?: boolean;\n relationshipInfo: TClassInfoJSON;\n isForwardRelationship: boolean;\n isPolymorphicRelationship?: boolean;\n}\n\n/**\n * A structure that describes a relationship between source and target classes where\n * an actual ECRelationship between them is optional.\n * @public\n */\nexport type RelatedClassInfoWithOptionalRelationship = PartialBy<RelatedClassInfo, \"relationshipInfo\" | \"isForwardRelationship\" | \"isPolymorphicRelationship\">;\n\n/** @public */\n// eslint-disable-next-line deprecation/deprecation\nexport type RelatedClassInfoWithOptionalRelationshipJSON<TClassInfoJSON = ClassInfoJSON> = PartialBy<RelatedClassInfoJSON<TClassInfoJSON>, \"relationshipInfo\" | \"isForwardRelationship\" | \"isPolymorphicRelationship\">;\n\n/** @public */\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport namespace RelatedClassInfoWithOptionalRelationship {\n /** Serialize [[RelatedClassInfoWithOptionalRelationship]] to compressed JSON */\n export function toCompressedJSON(classInfo: RelatedClassInfoWithOptionalRelationship, classesMap: { [id: string]: CompressedClassInfoJSON }): RelatedClassInfoWithOptionalRelationshipJSON<string> {\n const { sourceClassInfo, targetClassInfo, relationshipInfo, ...otherProps } = classInfo;\n const { id: sourceId, ...sourceLeftOverInfo } = sourceClassInfo;\n const { id: targetId, ...targetLeftOverInfo } = targetClassInfo;\n\n classesMap[sourceId] = sourceLeftOverInfo;\n classesMap[targetId] = targetLeftOverInfo;\n\n if (relationshipInfo) {\n const { id: relationshipId, ...relationshipLeftOverInfo } = relationshipInfo;\n classesMap[relationshipId] = relationshipLeftOverInfo;\n }\n\n return {\n ...otherProps,\n sourceClassInfo: sourceId,\n targetClassInfo: targetId,\n ...(relationshipInfo ? { relationshipInfo: relationshipInfo.id } : undefined),\n };\n }\n\n /** Deserialize [[RelatedClassInfoWithOptionalRelationship]] from compressed JSON */\n export function fromCompressedJSON(json: RelatedClassInfoWithOptionalRelationshipJSON<string>, classesMap: { [id: string]: CompressedClassInfoJSON }): RelatedClassInfoWithOptionalRelationship {\n const { sourceClassInfo, targetClassInfo, relationshipInfo, ...otherProps } = json;\n assert(classesMap.hasOwnProperty(sourceClassInfo));\n assert(classesMap.hasOwnProperty(targetClassInfo));\n if (relationshipInfo)\n assert(classesMap.hasOwnProperty(relationshipInfo));\n return {\n ...otherProps,\n sourceClassInfo: { id: sourceClassInfo, ...classesMap[sourceClassInfo] },\n targetClassInfo: { id: targetClassInfo, ...classesMap[targetClassInfo] },\n ...(relationshipInfo ? { relationshipInfo: { id: relationshipInfo, ...classesMap[relationshipInfo] } } : undefined),\n };\n }\n}\n\n/**\n * A structure that describes a related class path.\n * @public\n */\nexport type RelationshipPath = RelatedClassInfo[];\n\n/**\n * Serialized [[RelationshipPath]]\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport type RelationshipPathJSON<TClassInfoJSON = ClassInfoJSON> = RelatedClassInfoJSON<TClassInfoJSON>[];\n\n/** @public */\nexport namespace RelationshipPath { // eslint-disable-line @typescript-eslint/no-redeclare\n /** Reverse direction of the given [[RelationshipPath]] */\n export function reverse(path: RelationshipPath): RelationshipPath {\n return [...path].reverse().map((step) => ({\n ...step,\n sourceClassInfo: step.targetClassInfo,\n targetClassInfo: step.sourceClassInfo,\n isForwardRelationship: !step.isForwardRelationship,\n }));\n }\n\n /** Check two [[RelationshipPath]] or [[StrippedRelationshipPath]] for equality */\n export function equals(lhs: Array<RelatedClassInfo | StrippedRelatedClassInfo>, rhs: Array<RelatedClassInfo | StrippedRelatedClassInfo>): boolean {\n return lhs.length === rhs.length\n && lhs.every((lhsPart, i) => RelatedClassInfo.equals(lhsPart, rhs[i]));\n }\n\n /** Strip given [[RelationshipPath]] to [[StrippedRelationshipPath]] */\n export function strip(full: RelationshipPath): StrippedRelationshipPath {\n return full.map(RelatedClassInfo.strip);\n }\n}\n\n/**\n * Data structure that contains a subset of [[RelatedClassInfo]] required to\n * identify the relationship.\n * @public\n */\nexport interface StrippedRelatedClassInfo {\n sourceClassName: string;\n targetClassName: string;\n relationshipName: string;\n isForwardRelationship: boolean;\n}\n\n/**\n * Data structure that contains a subset of [[RelationshipPath]] required to\n * identify the relationship path.\n * @public\n */\nexport type StrippedRelationshipPath = StrippedRelatedClassInfo[];\n"]}
@@ -1,124 +1,124 @@
1
- /** @packageDocumentation
2
- * @module RPC
3
- */
4
- import { Id64String } from "@itwin/core-bentley";
5
- /**
6
- * Data structure for storing element properties information in a simplified format.
7
- * @see [[Content]] for a format that stores all available element property data.
8
- * @public
9
- */
10
- export interface ElementProperties {
11
- /** Label of element's ECClass. */
12
- class: string;
13
- /** Element's ID. */
14
- id: Id64String;
15
- /** Element's label. */
16
- label: string;
17
- /** Container of property values */
18
- items: {
19
- [label: string]: ElementPropertiesItem;
20
- };
21
- }
22
- /**
23
- * Base type for all [[ElementPropertiesItem]] types.
24
- * @public
25
- */
26
- export interface ElementPropertiesItemBase {
27
- /** Type of the properties item. */
28
- type: "category" | ElementPropertiesPropertyValueType;
29
- }
30
- /**
31
- * Definition for a category. A category can nest other property items, including categories.
32
- * @public
33
- */
34
- export interface ElementPropertiesCategoryItem extends ElementPropertiesItemBase {
35
- /** Type of the properties item. */
36
- type: "category";
37
- /** Container of property values */
38
- items: {
39
- [label: string]: ElementPropertiesItem;
40
- };
41
- }
42
- /**
43
- * Base type for all [[ElementPropertiesPropertyItem]] types.
44
- * @public
45
- */
46
- export interface ElementPropertiesPropertyItemBase extends ElementPropertiesItemBase {
47
- /** Type of the properties item. */
48
- type: ElementPropertiesPropertyValueType;
49
- }
50
- /**
51
- * Definition for a primitive property value.
52
- * @public
53
- */
54
- export interface ElementPropertiesPrimitivePropertyItem extends ElementPropertiesPropertyItemBase {
55
- /** Type of the properties item. */
56
- type: "primitive";
57
- /** Display value of the property. */
58
- value: string;
59
- }
60
- /**
61
- * Base type for all [[ElementPropertiesArrayPropertyItem]] types.
62
- * @public
63
- */
64
- export interface ElementPropertiesArrayPropertyItemBase extends ElementPropertiesPropertyItemBase {
65
- /** Type of the properties item. */
66
- type: "array";
67
- /** Type of values contained in this array. */
68
- valueType: "primitive" | "struct";
69
- }
70
- /**
71
- * Definition for a primitives' array property value.
72
- * @public
73
- */
74
- export interface ElementPropertiesPrimitiveArrayPropertyItem extends ElementPropertiesArrayPropertyItemBase {
75
- /** Type of values contained in this array. */
76
- valueType: "primitive";
77
- /** Array of display values. */
78
- values: string[];
79
- }
80
- /**
81
- * Definition for a structs' array property value.
82
- * @public
83
- */
84
- export interface ElementPropertiesStructArrayPropertyItem extends ElementPropertiesArrayPropertyItemBase {
85
- /** Type of values contained in this array. */
86
- valueType: "struct";
87
- /** Array of structs. */
88
- values: Array<{
89
- [memberLabel: string]: ElementPropertiesPropertyItem;
90
- }>;
91
- }
92
- /**
93
- * Definition for an array property value.
94
- * @public
95
- */
96
- export declare type ElementPropertiesArrayPropertyItem = ElementPropertiesPrimitiveArrayPropertyItem | ElementPropertiesStructArrayPropertyItem;
97
- /**
98
- * Definition for an struct property value.
99
- * @public
100
- */
101
- export interface ElementPropertiesStructPropertyItem extends ElementPropertiesPropertyItemBase {
102
- /** Type of the properties item. */
103
- type: "struct";
104
- /** Container of struct members. */
105
- members: {
106
- [memberLabel: string]: ElementPropertiesPropertyItem;
107
- };
108
- }
109
- /**
110
- * Available element property types.
111
- * @public
112
- */
113
- export declare type ElementPropertiesPropertyValueType = "primitive" | "array" | "struct";
114
- /**
115
- * Definition of a property value.
116
- * @public
117
- */
118
- export declare type ElementPropertiesPropertyItem = ElementPropertiesPrimitivePropertyItem | ElementPropertiesArrayPropertyItem | ElementPropertiesStructPropertyItem;
119
- /**
120
- * Definition of a property item, including a property category.
121
- * @public
122
- */
123
- export declare type ElementPropertiesItem = ElementPropertiesCategoryItem | ElementPropertiesPropertyItem;
1
+ /** @packageDocumentation
2
+ * @module RPC
3
+ */
4
+ import { Id64String } from "@itwin/core-bentley";
5
+ /**
6
+ * Data structure for storing element properties information in a simplified format.
7
+ * @see [[Content]] for a format that stores all available element property data.
8
+ * @public
9
+ */
10
+ export interface ElementProperties {
11
+ /** Label of element's ECClass. */
12
+ class: string;
13
+ /** Element's ID. */
14
+ id: Id64String;
15
+ /** Element's label. */
16
+ label: string;
17
+ /** Container of property values */
18
+ items: {
19
+ [label: string]: ElementPropertiesItem;
20
+ };
21
+ }
22
+ /**
23
+ * Base type for all [[ElementPropertiesItem]] types.
24
+ * @public
25
+ */
26
+ export interface ElementPropertiesItemBase {
27
+ /** Type of the properties item. */
28
+ type: "category" | ElementPropertiesPropertyValueType;
29
+ }
30
+ /**
31
+ * Definition for a category. A category can nest other property items, including categories.
32
+ * @public
33
+ */
34
+ export interface ElementPropertiesCategoryItem extends ElementPropertiesItemBase {
35
+ /** Type of the properties item. */
36
+ type: "category";
37
+ /** Container of property values */
38
+ items: {
39
+ [label: string]: ElementPropertiesItem;
40
+ };
41
+ }
42
+ /**
43
+ * Base type for all [[ElementPropertiesPropertyItem]] types.
44
+ * @public
45
+ */
46
+ export interface ElementPropertiesPropertyItemBase extends ElementPropertiesItemBase {
47
+ /** Type of the properties item. */
48
+ type: ElementPropertiesPropertyValueType;
49
+ }
50
+ /**
51
+ * Definition for a primitive property value.
52
+ * @public
53
+ */
54
+ export interface ElementPropertiesPrimitivePropertyItem extends ElementPropertiesPropertyItemBase {
55
+ /** Type of the properties item. */
56
+ type: "primitive";
57
+ /** Display value of the property. */
58
+ value: string;
59
+ }
60
+ /**
61
+ * Base type for all [[ElementPropertiesArrayPropertyItem]] types.
62
+ * @public
63
+ */
64
+ export interface ElementPropertiesArrayPropertyItemBase extends ElementPropertiesPropertyItemBase {
65
+ /** Type of the properties item. */
66
+ type: "array";
67
+ /** Type of values contained in this array. */
68
+ valueType: "primitive" | "struct";
69
+ }
70
+ /**
71
+ * Definition for a primitives' array property value.
72
+ * @public
73
+ */
74
+ export interface ElementPropertiesPrimitiveArrayPropertyItem extends ElementPropertiesArrayPropertyItemBase {
75
+ /** Type of values contained in this array. */
76
+ valueType: "primitive";
77
+ /** Array of display values. */
78
+ values: string[];
79
+ }
80
+ /**
81
+ * Definition for a structs' array property value.
82
+ * @public
83
+ */
84
+ export interface ElementPropertiesStructArrayPropertyItem extends ElementPropertiesArrayPropertyItemBase {
85
+ /** Type of values contained in this array. */
86
+ valueType: "struct";
87
+ /** Array of structs. */
88
+ values: Array<{
89
+ [memberLabel: string]: ElementPropertiesPropertyItem;
90
+ }>;
91
+ }
92
+ /**
93
+ * Definition for an array property value.
94
+ * @public
95
+ */
96
+ export type ElementPropertiesArrayPropertyItem = ElementPropertiesPrimitiveArrayPropertyItem | ElementPropertiesStructArrayPropertyItem;
97
+ /**
98
+ * Definition for an struct property value.
99
+ * @public
100
+ */
101
+ export interface ElementPropertiesStructPropertyItem extends ElementPropertiesPropertyItemBase {
102
+ /** Type of the properties item. */
103
+ type: "struct";
104
+ /** Container of struct members. */
105
+ members: {
106
+ [memberLabel: string]: ElementPropertiesPropertyItem;
107
+ };
108
+ }
109
+ /**
110
+ * Available element property types.
111
+ * @public
112
+ */
113
+ export type ElementPropertiesPropertyValueType = "primitive" | "array" | "struct";
114
+ /**
115
+ * Definition of a property value.
116
+ * @public
117
+ */
118
+ export type ElementPropertiesPropertyItem = ElementPropertiesPrimitivePropertyItem | ElementPropertiesArrayPropertyItem | ElementPropertiesStructPropertyItem;
119
+ /**
120
+ * Definition of a property item, including a property category.
121
+ * @public
122
+ */
123
+ export type ElementPropertiesItem = ElementPropertiesCategoryItem | ElementPropertiesPropertyItem;
124
124
  //# sourceMappingURL=ElementProperties.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ElementProperties.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/ElementProperties.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM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8CAA8C;IAC9C,SAAS,EAAE,QAAQ,CAAC;IACpB,wBAAwB;IACxB,MAAM,EAAE,KAAK,CAAC;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,6BAA6B,CAAA;KAAE,CAAC,CAAC;CACzE;AAED;;;GAGG;AACH,oBAAY,kCAAkC,GAAG,2CAA2C,GAAG,wCAAwC,CAAC;AAExI;;;GAGG;AACH,MAAM,WAAW,mCAAoC,SAAQ,iCAAiC;IAC5F,mCAAmC;IACnC,IAAI,EAAE,QAAQ,CAAC;IACf,mCAAmC;IACnC,OAAO,EAAE;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,6BAA6B,CAAA;KAAE,CAAC;CACnE;AAED;;;GAGG;AACH,oBAAY,kCAAkC,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AAElF;;;GAGG;AACH,oBAAY,6BAA6B,GAAG,sCAAsC,GAAG,kCAAkC,GAAG,mCAAmC,CAAC;AAE9J;;;GAGG;AACH,oBAAY,qBAAqB,GAAG,6BAA6B,GAAG,6BAA6B,CAAC"}
1
+ {"version":3,"file":"ElementProperties.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/ElementProperties.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,EAAE,EAAE,UAAU,CAAC;IACf,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,KAAK,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB,CAAA;KAAE,CAAC;CACnD;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,mCAAmC;IACnC,IAAI,EAAE,UAAU,GAAG,kCAAkC,CAAC;CACvD;AAED;;;GAGG;AACH,MAAM,WAAW,6BAA8B,S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nE;AAED;;;GAGG;AACH,MAAM,MAAM,kCAAkC,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AAElF;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GAAG,sCAAsC,GAAG,kCAAkC,GAAG,mCAAmC,CAAC;AAE9J;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,6BAA6B,GAAG,6BAA6B,CAAC"}
@@ -1,10 +1,10 @@
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 RPC
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
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 RPC
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  //# sourceMappingURL=ElementProperties.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ElementProperties.js","sourceRoot":"","sources":["../../../src/presentation-common/ElementProperties.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module RPC\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\n\r\n/**\r\n * Data structure for storing element properties information in a simplified format.\r\n * @see [[Content]] for a format that stores all available element property data.\r\n * @public\r\n */\r\nexport interface ElementProperties {\r\n /** Label of element's ECClass. */\r\n class: string;\r\n /** Element's ID. */\r\n id: Id64String;\r\n /** Element's label. */\r\n label: string;\r\n /** Container of property values */\r\n items: { [label: string]: ElementPropertiesItem };\r\n}\r\n\r\n/**\r\n * Base type for all [[ElementPropertiesItem]] types.\r\n * @public\r\n */\r\nexport interface ElementPropertiesItemBase {\r\n /** Type of the properties item. */\r\n type: \"category\" | ElementPropertiesPropertyValueType;\r\n}\r\n\r\n/**\r\n * Definition for a category. A category can nest other property items, including categories.\r\n * @public\r\n */\r\nexport interface ElementPropertiesCategoryItem extends ElementPropertiesItemBase {\r\n /** Type of the properties item. */\r\n type: \"category\";\r\n /** Container of property values */\r\n items: { [label: string]: ElementPropertiesItem };\r\n}\r\n\r\n/**\r\n * Base type for all [[ElementPropertiesPropertyItem]] types.\r\n * @public\r\n */\r\nexport interface ElementPropertiesPropertyItemBase extends ElementPropertiesItemBase {\r\n /** Type of the properties item. */\r\n type: ElementPropertiesPropertyValueType;\r\n}\r\n\r\n/**\r\n * Definition for a primitive property value.\r\n * @public\r\n */\r\nexport interface ElementPropertiesPrimitivePropertyItem extends ElementPropertiesPropertyItemBase {\r\n /** Type of the properties item. */\r\n type: \"primitive\";\r\n /** Display value of the property. */\r\n value: string;\r\n}\r\n\r\n/**\r\n * Base type for all [[ElementPropertiesArrayPropertyItem]] types.\r\n * @public\r\n */\r\nexport interface ElementPropertiesArrayPropertyItemBase extends ElementPropertiesPropertyItemBase {\r\n /** Type of the properties item. */\r\n type: \"array\";\r\n /** Type of values contained in this array. */\r\n valueType: \"primitive\" | \"struct\";\r\n}\r\n\r\n/**\r\n * Definition for a primitives' array property value.\r\n * @public\r\n */\r\nexport interface ElementPropertiesPrimitiveArrayPropertyItem extends ElementPropertiesArrayPropertyItemBase {\r\n /** Type of values contained in this array. */\r\n valueType: \"primitive\";\r\n /** Array of display values. */\r\n values: string[];\r\n}\r\n\r\n/**\r\n * Definition for a structs' array property value.\r\n * @public\r\n */\r\nexport interface ElementPropertiesStructArrayPropertyItem extends ElementPropertiesArrayPropertyItemBase {\r\n /** Type of values contained in this array. */\r\n valueType: \"struct\";\r\n /** Array of structs. */\r\n values: Array<{ [memberLabel: string]: ElementPropertiesPropertyItem }>;\r\n}\r\n\r\n/**\r\n * Definition for an array property value.\r\n * @public\r\n */\r\nexport type ElementPropertiesArrayPropertyItem = ElementPropertiesPrimitiveArrayPropertyItem | ElementPropertiesStructArrayPropertyItem;\r\n\r\n/**\r\n * Definition for an struct property value.\r\n * @public\r\n */\r\nexport interface ElementPropertiesStructPropertyItem extends ElementPropertiesPropertyItemBase {\r\n /** Type of the properties item. */\r\n type: \"struct\";\r\n /** Container of struct members. */\r\n members: { [memberLabel: string]: ElementPropertiesPropertyItem };\r\n}\r\n\r\n/**\r\n * Available element property types.\r\n * @public\r\n */\r\nexport type ElementPropertiesPropertyValueType = \"primitive\" | \"array\" | \"struct\";\r\n\r\n/**\r\n * Definition of a property value.\r\n * @public\r\n */\r\nexport type ElementPropertiesPropertyItem = ElementPropertiesPrimitivePropertyItem | ElementPropertiesArrayPropertyItem | ElementPropertiesStructPropertyItem;\r\n\r\n/**\r\n * Definition of a property item, including a property category.\r\n * @public\r\n */\r\nexport type ElementPropertiesItem = ElementPropertiesCategoryItem | ElementPropertiesPropertyItem;\r\n"]}
1
+ {"version":3,"file":"ElementProperties.js","sourceRoot":"","sources":["../../../src/presentation-common/ElementProperties.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module RPC\n */\n\nimport { Id64String } from \"@itwin/core-bentley\";\n\n/**\n * Data structure for storing element properties information in a simplified format.\n * @see [[Content]] for a format that stores all available element property data.\n * @public\n */\nexport interface ElementProperties {\n /** Label of element's ECClass. */\n class: string;\n /** Element's ID. */\n id: Id64String;\n /** Element's label. */\n label: string;\n /** Container of property values */\n items: { [label: string]: ElementPropertiesItem };\n}\n\n/**\n * Base type for all [[ElementPropertiesItem]] types.\n * @public\n */\nexport interface ElementPropertiesItemBase {\n /** Type of the properties item. */\n type: \"category\" | ElementPropertiesPropertyValueType;\n}\n\n/**\n * Definition for a category. A category can nest other property items, including categories.\n * @public\n */\nexport interface ElementPropertiesCategoryItem extends ElementPropertiesItemBase {\n /** Type of the properties item. */\n type: \"category\";\n /** Container of property values */\n items: { [label: string]: ElementPropertiesItem };\n}\n\n/**\n * Base type for all [[ElementPropertiesPropertyItem]] types.\n * @public\n */\nexport interface ElementPropertiesPropertyItemBase extends ElementPropertiesItemBase {\n /** Type of the properties item. */\n type: ElementPropertiesPropertyValueType;\n}\n\n/**\n * Definition for a primitive property value.\n * @public\n */\nexport interface ElementPropertiesPrimitivePropertyItem extends ElementPropertiesPropertyItemBase {\n /** Type of the properties item. */\n type: \"primitive\";\n /** Display value of the property. */\n value: string;\n}\n\n/**\n * Base type for all [[ElementPropertiesArrayPropertyItem]] types.\n * @public\n */\nexport interface ElementPropertiesArrayPropertyItemBase extends ElementPropertiesPropertyItemBase {\n /** Type of the properties item. */\n type: \"array\";\n /** Type of values contained in this array. */\n valueType: \"primitive\" | \"struct\";\n}\n\n/**\n * Definition for a primitives' array property value.\n * @public\n */\nexport interface ElementPropertiesPrimitiveArrayPropertyItem extends ElementPropertiesArrayPropertyItemBase {\n /** Type of values contained in this array. */\n valueType: \"primitive\";\n /** Array of display values. */\n values: string[];\n}\n\n/**\n * Definition for a structs' array property value.\n * @public\n */\nexport interface ElementPropertiesStructArrayPropertyItem extends ElementPropertiesArrayPropertyItemBase {\n /** Type of values contained in this array. */\n valueType: \"struct\";\n /** Array of structs. */\n values: Array<{ [memberLabel: string]: ElementPropertiesPropertyItem }>;\n}\n\n/**\n * Definition for an array property value.\n * @public\n */\nexport type ElementPropertiesArrayPropertyItem = ElementPropertiesPrimitiveArrayPropertyItem | ElementPropertiesStructArrayPropertyItem;\n\n/**\n * Definition for an struct property value.\n * @public\n */\nexport interface ElementPropertiesStructPropertyItem extends ElementPropertiesPropertyItemBase {\n /** Type of the properties item. */\n type: \"struct\";\n /** Container of struct members. */\n members: { [memberLabel: string]: ElementPropertiesPropertyItem };\n}\n\n/**\n * Available element property types.\n * @public\n */\nexport type ElementPropertiesPropertyValueType = \"primitive\" | \"array\" | \"struct\";\n\n/**\n * Definition of a property value.\n * @public\n */\nexport type ElementPropertiesPropertyItem = ElementPropertiesPrimitivePropertyItem | ElementPropertiesArrayPropertyItem | ElementPropertiesStructPropertyItem;\n\n/**\n * Definition of a property item, including a property category.\n * @public\n */\nexport type ElementPropertiesItem = ElementPropertiesCategoryItem | ElementPropertiesPropertyItem;\n"]}
@@ -1,46 +1,48 @@
1
- /** @packageDocumentation
2
- * @module Core
3
- */
4
- import { BentleyError, GetMetaDataFunction } from "@itwin/core-bentley";
5
- /**
6
- * Status codes used by Presentation APIs.
7
- * @public
8
- */
9
- export declare enum PresentationStatus {
10
- /** Success result. */
11
- Success = 0,
12
- /** Request was cancelled. */
13
- Canceled = 1,
14
- /** Error: Unknown */
15
- Error = 65536,
16
- /** Error: Backend is not initialized. */
17
- NotInitialized = 65537,
18
- /** Error: Argument is invalid. */
19
- InvalidArgument = 65539,
20
- /**
21
- * Timeout for the request was reached which prevented it from being fulfilled. Frontend may
22
- * repeat the request.
23
- */
24
- BackendTimeout = 65543
25
- }
26
- /**
27
- * An error type thrown by Presentation APIs.
28
- * @public
29
- */
30
- export declare class PresentationError extends BentleyError {
31
- /**
32
- * Creates an instance of Error.
33
- * @param errorNumber Error code
34
- * @param message Optional brief description of the error. The `message` property combined with the `name`
35
- * property is used by the `Error.prototype.toString()` method to create a string representation of the Error.
36
- * @param log Optional log function which logs the error.
37
- * @param getMetaData Optional function that returns meta-data related to an error.
38
- */
39
- constructor(errorNumber: PresentationStatus, message?: string, getMetaData?: GetMetaDataFunction);
40
- /**
41
- * Returns the name of each error status. The name is used by the `Error.prototype.toString()`
42
- * method to create a string representation of the error.
43
- */
44
- protected _initName(): string;
45
- }
1
+ /** @packageDocumentation
2
+ * @module Core
3
+ */
4
+ import { BentleyError, GetMetaDataFunction } from "@itwin/core-bentley";
5
+ /**
6
+ * Status codes used by Presentation APIs.
7
+ * @public
8
+ */
9
+ export declare enum PresentationStatus {
10
+ /** Success result. */
11
+ Success = 0,
12
+ /** Request was cancelled. */
13
+ Canceled = 1,
14
+ /** Error: Unknown */
15
+ Error = 65536,
16
+ /** Error: Backend is not initialized. */
17
+ NotInitialized = 65537,
18
+ /** Error: Result set is too large. */
19
+ ResultSetTooLarge = 65538,
20
+ /** Error: Argument is invalid. */
21
+ InvalidArgument = 65539,
22
+ /**
23
+ * Timeout for the request was reached which prevented it from being fulfilled. Frontend may
24
+ * repeat the request.
25
+ */
26
+ BackendTimeout = 65543
27
+ }
28
+ /**
29
+ * An error type thrown by Presentation APIs.
30
+ * @public
31
+ */
32
+ export declare class PresentationError extends BentleyError {
33
+ /**
34
+ * Creates an instance of Error.
35
+ * @param errorNumber Error code
36
+ * @param message Optional brief description of the error. The `message` property combined with the `name`
37
+ * property is used by the `Error.prototype.toString()` method to create a string representation of the Error.
38
+ * @param log Optional log function which logs the error.
39
+ * @param getMetaData Optional function that returns meta-data related to an error.
40
+ */
41
+ constructor(errorNumber: PresentationStatus, message?: string, getMetaData?: GetMetaDataFunction);
42
+ /**
43
+ * Returns the name of each error status. The name is used by the `Error.prototype.toString()`
44
+ * method to create a string representation of the error.
45
+ */
46
+ protected _initName(): string;
47
+ }
46
48
  //# sourceMappingURL=Error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/Error.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAExE;;;GAGG;AACH,oBAAY,kBAAkB;IAC5B,sBAAsB;IACtB,OAAO,IAAI;IAEX,6BAA6B;IAC7B,QAAQ,IAAI;IAEZ,qBAAqB;IACrB,KAAK,QAAU;IAEf,yCAAyC;IACzC,cAAc,QAAY;IAE1B,kCAAkC;IAClC,eAAe,QAAY;IAE3B;;;OAGG;IACH,cAAc,QAAY;CAC3B;AAED;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IAEjD;;;;;;;OAOG;gBACgB,WAAW,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,mBAAmB;IAIvG;;;OAGG;cAEgB,SAAS,IAAI,MAAM;CAMvC"}
1
+ {"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/Error.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAExE;;;GAGG;AACH,oBAAY,kBAAkB;IAC5B,sBAAsB;IACtB,OAAO,IAAI;IAEX,6BAA6B;IAC7B,QAAQ,IAAI;IAEZ,qBAAqB;IACrB,KAAK,QAAU;IAEf,yCAAyC;IACzC,cAAc,QAAY;IAE1B,sCAAsC;IACtC,iBAAiB,QAAY;IAE7B,kCAAkC;IAClC,eAAe,QAAY;IAE3B;;;OAGG;IACH,cAAc,QAAY;CAC3B;AAED;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IAEjD;;;;;;;OAOG;gBACgB,WAAW,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,mBAAmB;IAIvG;;;OAGG;cAEgB,SAAS,IAAI,MAAM;CAMvC"}