@itwin/presentation-common 4.5.0-dev.2 → 4.5.0-dev.21

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 (393) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/LICENSE.md +1 -1
  3. package/README.md +1 -1
  4. package/Ruleset.schema.json +72 -19
  5. package/lib/cjs/assets/locales/en/Presentation.json +19 -19
  6. package/lib/cjs/presentation-common/AsyncTasks.d.ts.map +1 -1
  7. package/lib/cjs/presentation-common/AsyncTasks.js +6 -4
  8. package/lib/cjs/presentation-common/AsyncTasks.js.map +1 -1
  9. package/lib/cjs/presentation-common/CommonLoggerCategory.js +3 -3
  10. package/lib/cjs/presentation-common/CommonLoggerCategory.js.map +1 -1
  11. package/lib/cjs/presentation-common/Diagnostics.d.ts.map +1 -1
  12. package/lib/cjs/presentation-common/Diagnostics.js +27 -15
  13. package/lib/cjs/presentation-common/Diagnostics.js.map +1 -1
  14. package/lib/cjs/presentation-common/EC.d.ts +7 -4
  15. package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
  16. package/lib/cjs/presentation-common/EC.js +22 -17
  17. package/lib/cjs/presentation-common/EC.js.map +1 -1
  18. package/lib/cjs/presentation-common/ElementProperties.js +3 -3
  19. package/lib/cjs/presentation-common/ElementProperties.js.map +1 -1
  20. package/lib/cjs/presentation-common/Error.d.ts.map +1 -1
  21. package/lib/cjs/presentation-common/Error.js +5 -4
  22. package/lib/cjs/presentation-common/Error.js.map +1 -1
  23. package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
  24. package/lib/cjs/presentation-common/InstanceFilterDefinition.js +3 -3
  25. package/lib/cjs/presentation-common/InstanceFilterDefinition.js.map +1 -1
  26. package/lib/cjs/presentation-common/KeySet.d.ts.map +1 -1
  27. package/lib/cjs/presentation-common/KeySet.js +80 -46
  28. package/lib/cjs/presentation-common/KeySet.js.map +1 -1
  29. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.d.ts.map +1 -1
  30. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
  31. package/lib/cjs/presentation-common/LabelDefinition.d.ts.map +1 -1
  32. package/lib/cjs/presentation-common/LabelDefinition.js +5 -4
  33. package/lib/cjs/presentation-common/LabelDefinition.js.map +1 -1
  34. package/lib/cjs/presentation-common/LocalizationHelper.js.map +1 -1
  35. package/lib/cjs/presentation-common/PresentationIpcInterface.js +3 -3
  36. package/lib/cjs/presentation-common/PresentationIpcInterface.js.map +1 -1
  37. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  38. package/lib/cjs/presentation-common/PresentationManagerOptions.js +3 -3
  39. package/lib/cjs/presentation-common/PresentationManagerOptions.js.map +1 -1
  40. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  41. package/lib/cjs/presentation-common/PresentationRpcInterface.js +52 -20
  42. package/lib/cjs/presentation-common/PresentationRpcInterface.js.map +1 -1
  43. package/lib/cjs/presentation-common/RegisteredRuleset.d.ts.map +1 -1
  44. package/lib/cjs/presentation-common/RegisteredRuleset.js +21 -9
  45. package/lib/cjs/presentation-common/RegisteredRuleset.js.map +1 -1
  46. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts +1 -1
  47. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  48. package/lib/cjs/presentation-common/RpcRequestsHandler.js +19 -15
  49. package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
  50. package/lib/cjs/presentation-common/RulesetVariables.d.ts.map +1 -1
  51. package/lib/cjs/presentation-common/RulesetVariables.js +7 -5
  52. package/lib/cjs/presentation-common/RulesetVariables.js.map +1 -1
  53. package/lib/cjs/presentation-common/RulesetsFactory.d.ts.map +1 -1
  54. package/lib/cjs/presentation-common/RulesetsFactory.js +42 -26
  55. package/lib/cjs/presentation-common/RulesetsFactory.js.map +1 -1
  56. package/lib/cjs/presentation-common/Update.d.ts.map +1 -1
  57. package/lib/cjs/presentation-common/Update.js +4 -3
  58. package/lib/cjs/presentation-common/Update.js.map +1 -1
  59. package/lib/cjs/presentation-common/Utils.js +3 -3
  60. package/lib/cjs/presentation-common/Utils.js.map +1 -1
  61. package/lib/cjs/presentation-common/content/Category.js +3 -3
  62. package/lib/cjs/presentation-common/content/Category.js.map +1 -1
  63. package/lib/cjs/presentation-common/content/Content.d.ts.map +1 -1
  64. package/lib/cjs/presentation-common/content/Content.js +10 -9
  65. package/lib/cjs/presentation-common/content/Content.js.map +1 -1
  66. package/lib/cjs/presentation-common/content/ContentTraverser.d.ts.map +1 -1
  67. package/lib/cjs/presentation-common/content/ContentTraverser.js +47 -25
  68. package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
  69. package/lib/cjs/presentation-common/content/Descriptor.d.ts.map +1 -1
  70. package/lib/cjs/presentation-common/content/Descriptor.js +56 -21
  71. package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
  72. package/lib/cjs/presentation-common/content/DisplayTypes.js +3 -3
  73. package/lib/cjs/presentation-common/content/DisplayTypes.js.map +1 -1
  74. package/lib/cjs/presentation-common/content/Editor.js +3 -3
  75. package/lib/cjs/presentation-common/content/Editor.js.map +1 -1
  76. package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
  77. package/lib/cjs/presentation-common/content/Fields.js +47 -23
  78. package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
  79. package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
  80. package/lib/cjs/presentation-common/content/Item.js +8 -6
  81. package/lib/cjs/presentation-common/content/Item.js.map +1 -1
  82. package/lib/cjs/presentation-common/content/Property.d.ts +1 -1
  83. package/lib/cjs/presentation-common/content/Property.d.ts.map +1 -1
  84. package/lib/cjs/presentation-common/content/Property.js +4 -4
  85. package/lib/cjs/presentation-common/content/Property.js.map +1 -1
  86. package/lib/cjs/presentation-common/content/PropertyValueFormatter.d.ts.map +1 -1
  87. package/lib/cjs/presentation-common/content/PropertyValueFormatter.js +13 -11
  88. package/lib/cjs/presentation-common/content/PropertyValueFormatter.js.map +1 -1
  89. package/lib/cjs/presentation-common/content/Renderer.js +3 -3
  90. package/lib/cjs/presentation-common/content/Renderer.js.map +1 -1
  91. package/lib/cjs/presentation-common/content/TypeDescription.js +3 -3
  92. package/lib/cjs/presentation-common/content/TypeDescription.js.map +1 -1
  93. package/lib/cjs/presentation-common/content/Value.d.ts.map +1 -1
  94. package/lib/cjs/presentation-common/content/Value.js +46 -30
  95. package/lib/cjs/presentation-common/content/Value.js.map +1 -1
  96. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js +3 -3
  97. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  98. package/lib/cjs/presentation-common/hierarchy/Key.d.ts.map +1 -1
  99. package/lib/cjs/presentation-common/hierarchy/Key.js +14 -8
  100. package/lib/cjs/presentation-common/hierarchy/Key.js.map +1 -1
  101. package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
  102. package/lib/cjs/presentation-common/hierarchy/Node.js +7 -5
  103. package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
  104. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  105. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js +11 -7
  106. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  107. package/lib/cjs/presentation-common/rules/ClassSpecifications.js +3 -3
  108. package/lib/cjs/presentation-common/rules/ClassSpecifications.js.map +1 -1
  109. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts +39 -11
  110. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts.map +1 -1
  111. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.js +3 -3
  112. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
  113. package/lib/cjs/presentation-common/rules/RelationshipDirection.js +3 -3
  114. package/lib/cjs/presentation-common/rules/RelationshipDirection.js.map +1 -1
  115. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js +3 -3
  116. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  117. package/lib/cjs/presentation-common/rules/Rule.js +3 -3
  118. package/lib/cjs/presentation-common/rules/Rule.js.map +1 -1
  119. package/lib/cjs/presentation-common/rules/Ruleset.js +3 -3
  120. package/lib/cjs/presentation-common/rules/Ruleset.js.map +1 -1
  121. package/lib/cjs/presentation-common/rules/SchemasSpecification.js +3 -3
  122. package/lib/cjs/presentation-common/rules/SchemasSpecification.js.map +1 -1
  123. package/lib/cjs/presentation-common/rules/Variables.js +3 -3
  124. package/lib/cjs/presentation-common/rules/Variables.js.map +1 -1
  125. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js +3 -3
  126. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  127. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.js +3 -3
  128. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  129. package/lib/cjs/presentation-common/rules/content/ContentRule.js +3 -3
  130. package/lib/cjs/presentation-common/rules/content/ContentRule.js.map +1 -1
  131. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  132. package/lib/cjs/presentation-common/rules/content/ContentSpecification.js +3 -3
  133. package/lib/cjs/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  134. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.js +3 -3
  135. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  136. package/lib/cjs/presentation-common/rules/content/PropertySpecification.js +3 -3
  137. package/lib/cjs/presentation-common/rules/content/PropertySpecification.js.map +1 -1
  138. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.js +3 -3
  139. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  140. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js +3 -3
  141. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js.map +1 -1
  142. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.js +3 -3
  143. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  144. package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.js +3 -3
  145. package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.js.map +1 -1
  146. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js +3 -3
  147. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
  148. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts.map +1 -1
  149. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js +3 -3
  150. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
  151. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js +3 -3
  152. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  153. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js +3 -3
  154. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
  155. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts +1 -5
  156. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  157. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.js +3 -3
  158. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  159. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.js +3 -3
  160. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  161. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js +3 -3
  162. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  163. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js +3 -3
  164. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
  165. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  166. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js +3 -3
  167. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  168. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js +3 -3
  169. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js.map +1 -1
  170. package/lib/cjs/presentation-common/rules/customization/SortingRule.js +3 -3
  171. package/lib/cjs/presentation-common/rules/customization/SortingRule.js.map +1 -1
  172. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js +3 -3
  173. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js.map +1 -1
  174. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js +3 -3
  175. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  176. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  177. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js +3 -3
  178. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  179. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js +3 -3
  180. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  181. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js +3 -3
  182. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  183. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js +3 -3
  184. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  185. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.js +3 -3
  186. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
  187. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.js +3 -3
  188. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  189. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js +3 -3
  190. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  191. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js +3 -3
  192. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  193. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js +3 -3
  194. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  195. package/lib/cjs/presentation-common/selection/SelectionScope.js +3 -3
  196. package/lib/cjs/presentation-common/selection/SelectionScope.js.map +1 -1
  197. package/lib/cjs/presentation-common.js +3 -3
  198. package/lib/cjs/presentation-common.js.map +1 -1
  199. package/lib/esm/presentation-common/AsyncTasks.d.ts.map +1 -1
  200. package/lib/esm/presentation-common/AsyncTasks.js +6 -4
  201. package/lib/esm/presentation-common/AsyncTasks.js.map +1 -1
  202. package/lib/esm/presentation-common/CommonLoggerCategory.js +3 -3
  203. package/lib/esm/presentation-common/CommonLoggerCategory.js.map +1 -1
  204. package/lib/esm/presentation-common/Diagnostics.d.ts.map +1 -1
  205. package/lib/esm/presentation-common/Diagnostics.js +27 -15
  206. package/lib/esm/presentation-common/Diagnostics.js.map +1 -1
  207. package/lib/esm/presentation-common/EC.d.ts +7 -4
  208. package/lib/esm/presentation-common/EC.d.ts.map +1 -1
  209. package/lib/esm/presentation-common/EC.js +22 -17
  210. package/lib/esm/presentation-common/EC.js.map +1 -1
  211. package/lib/esm/presentation-common/ElementProperties.js +3 -3
  212. package/lib/esm/presentation-common/ElementProperties.js.map +1 -1
  213. package/lib/esm/presentation-common/Error.d.ts.map +1 -1
  214. package/lib/esm/presentation-common/Error.js +5 -4
  215. package/lib/esm/presentation-common/Error.js.map +1 -1
  216. package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
  217. package/lib/esm/presentation-common/InstanceFilterDefinition.js +3 -3
  218. package/lib/esm/presentation-common/InstanceFilterDefinition.js.map +1 -1
  219. package/lib/esm/presentation-common/KeySet.d.ts.map +1 -1
  220. package/lib/esm/presentation-common/KeySet.js +80 -46
  221. package/lib/esm/presentation-common/KeySet.js.map +1 -1
  222. package/lib/esm/presentation-common/KoqPropertyValueFormatter.d.ts.map +1 -1
  223. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
  224. package/lib/esm/presentation-common/LabelDefinition.d.ts.map +1 -1
  225. package/lib/esm/presentation-common/LabelDefinition.js +5 -4
  226. package/lib/esm/presentation-common/LabelDefinition.js.map +1 -1
  227. package/lib/esm/presentation-common/LocalizationHelper.js.map +1 -1
  228. package/lib/esm/presentation-common/PresentationIpcInterface.js +3 -3
  229. package/lib/esm/presentation-common/PresentationIpcInterface.js.map +1 -1
  230. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  231. package/lib/esm/presentation-common/PresentationManagerOptions.js +3 -3
  232. package/lib/esm/presentation-common/PresentationManagerOptions.js.map +1 -1
  233. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  234. package/lib/esm/presentation-common/PresentationRpcInterface.js +52 -20
  235. package/lib/esm/presentation-common/PresentationRpcInterface.js.map +1 -1
  236. package/lib/esm/presentation-common/RegisteredRuleset.d.ts.map +1 -1
  237. package/lib/esm/presentation-common/RegisteredRuleset.js +21 -9
  238. package/lib/esm/presentation-common/RegisteredRuleset.js.map +1 -1
  239. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts +1 -1
  240. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  241. package/lib/esm/presentation-common/RpcRequestsHandler.js +20 -16
  242. package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
  243. package/lib/esm/presentation-common/RulesetVariables.d.ts.map +1 -1
  244. package/lib/esm/presentation-common/RulesetVariables.js +7 -5
  245. package/lib/esm/presentation-common/RulesetVariables.js.map +1 -1
  246. package/lib/esm/presentation-common/RulesetsFactory.d.ts.map +1 -1
  247. package/lib/esm/presentation-common/RulesetsFactory.js +42 -26
  248. package/lib/esm/presentation-common/RulesetsFactory.js.map +1 -1
  249. package/lib/esm/presentation-common/Update.d.ts.map +1 -1
  250. package/lib/esm/presentation-common/Update.js +4 -3
  251. package/lib/esm/presentation-common/Update.js.map +1 -1
  252. package/lib/esm/presentation-common/Utils.js +3 -3
  253. package/lib/esm/presentation-common/Utils.js.map +1 -1
  254. package/lib/esm/presentation-common/content/Category.js +3 -3
  255. package/lib/esm/presentation-common/content/Category.js.map +1 -1
  256. package/lib/esm/presentation-common/content/Content.d.ts.map +1 -1
  257. package/lib/esm/presentation-common/content/Content.js +10 -9
  258. package/lib/esm/presentation-common/content/Content.js.map +1 -1
  259. package/lib/esm/presentation-common/content/ContentTraverser.d.ts.map +1 -1
  260. package/lib/esm/presentation-common/content/ContentTraverser.js +47 -25
  261. package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
  262. package/lib/esm/presentation-common/content/Descriptor.d.ts.map +1 -1
  263. package/lib/esm/presentation-common/content/Descriptor.js +56 -21
  264. package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
  265. package/lib/esm/presentation-common/content/DisplayTypes.js +3 -3
  266. package/lib/esm/presentation-common/content/DisplayTypes.js.map +1 -1
  267. package/lib/esm/presentation-common/content/Editor.js +3 -3
  268. package/lib/esm/presentation-common/content/Editor.js.map +1 -1
  269. package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
  270. package/lib/esm/presentation-common/content/Fields.js +47 -23
  271. package/lib/esm/presentation-common/content/Fields.js.map +1 -1
  272. package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
  273. package/lib/esm/presentation-common/content/Item.js +8 -6
  274. package/lib/esm/presentation-common/content/Item.js.map +1 -1
  275. package/lib/esm/presentation-common/content/Property.d.ts +1 -1
  276. package/lib/esm/presentation-common/content/Property.d.ts.map +1 -1
  277. package/lib/esm/presentation-common/content/Property.js +4 -4
  278. package/lib/esm/presentation-common/content/Property.js.map +1 -1
  279. package/lib/esm/presentation-common/content/PropertyValueFormatter.d.ts.map +1 -1
  280. package/lib/esm/presentation-common/content/PropertyValueFormatter.js +13 -11
  281. package/lib/esm/presentation-common/content/PropertyValueFormatter.js.map +1 -1
  282. package/lib/esm/presentation-common/content/Renderer.js +3 -3
  283. package/lib/esm/presentation-common/content/Renderer.js.map +1 -1
  284. package/lib/esm/presentation-common/content/TypeDescription.js +3 -3
  285. package/lib/esm/presentation-common/content/TypeDescription.js.map +1 -1
  286. package/lib/esm/presentation-common/content/Value.d.ts.map +1 -1
  287. package/lib/esm/presentation-common/content/Value.js +46 -30
  288. package/lib/esm/presentation-common/content/Value.js.map +1 -1
  289. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js +3 -3
  290. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  291. package/lib/esm/presentation-common/hierarchy/Key.d.ts.map +1 -1
  292. package/lib/esm/presentation-common/hierarchy/Key.js +14 -8
  293. package/lib/esm/presentation-common/hierarchy/Key.js.map +1 -1
  294. package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
  295. package/lib/esm/presentation-common/hierarchy/Node.js +7 -5
  296. package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
  297. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  298. package/lib/esm/presentation-common/hierarchy/NodePathElement.js +11 -7
  299. package/lib/esm/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  300. package/lib/esm/presentation-common/rules/ClassSpecifications.js +3 -3
  301. package/lib/esm/presentation-common/rules/ClassSpecifications.js.map +1 -1
  302. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts +39 -11
  303. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts.map +1 -1
  304. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js +3 -3
  305. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
  306. package/lib/esm/presentation-common/rules/RelationshipDirection.js +3 -3
  307. package/lib/esm/presentation-common/rules/RelationshipDirection.js.map +1 -1
  308. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js +3 -3
  309. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  310. package/lib/esm/presentation-common/rules/Rule.js +3 -3
  311. package/lib/esm/presentation-common/rules/Rule.js.map +1 -1
  312. package/lib/esm/presentation-common/rules/Ruleset.js +3 -3
  313. package/lib/esm/presentation-common/rules/Ruleset.js.map +1 -1
  314. package/lib/esm/presentation-common/rules/SchemasSpecification.js +3 -3
  315. package/lib/esm/presentation-common/rules/SchemasSpecification.js.map +1 -1
  316. package/lib/esm/presentation-common/rules/Variables.js +3 -3
  317. package/lib/esm/presentation-common/rules/Variables.js.map +1 -1
  318. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js +3 -3
  319. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  320. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js +3 -3
  321. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  322. package/lib/esm/presentation-common/rules/content/ContentRule.js +3 -3
  323. package/lib/esm/presentation-common/rules/content/ContentRule.js.map +1 -1
  324. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  325. package/lib/esm/presentation-common/rules/content/ContentSpecification.js +3 -3
  326. package/lib/esm/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  327. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js +3 -3
  328. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  329. package/lib/esm/presentation-common/rules/content/PropertySpecification.js +3 -3
  330. package/lib/esm/presentation-common/rules/content/PropertySpecification.js.map +1 -1
  331. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js +3 -3
  332. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  333. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js +3 -3
  334. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js.map +1 -1
  335. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js +3 -3
  336. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  337. package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.js +3 -3
  338. package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.js.map +1 -1
  339. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js +3 -3
  340. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
  341. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts.map +1 -1
  342. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js +3 -3
  343. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
  344. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js +3 -3
  345. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  346. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js +3 -3
  347. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
  348. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts +1 -5
  349. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  350. package/lib/esm/presentation-common/rules/customization/CustomizationRule.js +3 -3
  351. package/lib/esm/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  352. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js +3 -3
  353. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  354. package/lib/esm/presentation-common/rules/customization/GroupingRule.js +3 -3
  355. package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  356. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js +3 -3
  357. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
  358. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  359. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js +3 -3
  360. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  361. package/lib/esm/presentation-common/rules/customization/LabelOverride.js +3 -3
  362. package/lib/esm/presentation-common/rules/customization/LabelOverride.js.map +1 -1
  363. package/lib/esm/presentation-common/rules/customization/SortingRule.js +3 -3
  364. package/lib/esm/presentation-common/rules/customization/SortingRule.js.map +1 -1
  365. package/lib/esm/presentation-common/rules/customization/StyleOverride.js +3 -3
  366. package/lib/esm/presentation-common/rules/customization/StyleOverride.js.map +1 -1
  367. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js +3 -3
  368. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  369. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  370. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js +3 -3
  371. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  372. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js +3 -3
  373. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  374. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js +3 -3
  375. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  376. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js +3 -3
  377. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  378. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js +3 -3
  379. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
  380. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js +3 -3
  381. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  382. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js +3 -3
  383. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  384. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js +3 -3
  385. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  386. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js +3 -3
  387. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  388. package/lib/esm/presentation-common/selection/SelectionScope.js +3 -3
  389. package/lib/esm/presentation-common/selection/SelectionScope.js.map +1 -1
  390. package/lib/esm/presentation-common.js +3 -3
  391. package/lib/esm/presentation-common.js.map +1 -1
  392. package/lib/public/locales/en/Presentation.json +19 -19
  393. package/package.json +14 -11
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
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
- *--------------------------------------------------------------------------------------------*/
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
6
  /** @packageDocumentation
7
7
  * @module UnifiedSelection
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionScope.js","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.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 UnifiedSelection\n */\n\n/**\n * Data structure that describes a [selection scope]($docs/presentation/unified-selection/index#selection-scopes).\n * @public\n */\nexport interface SelectionScope {\n /** Unique ID of the selection scope */\n id: string;\n /** Label */\n label: string;\n /** Description */\n description?: string;\n}\n\n/**\n * A data structure that defines properties for applying element selection scope.\n * @public\n */\nexport interface ElementSelectionScopeProps {\n /** Identifies this as the \"element\" selection scope */\n id: \"element\";\n /**\n * Specifies how far \"up\" we should walk to find the target element. When not specified or `0`,\n * the target element matches the request element. When `1`, the target element matches the direct parent element.\n * When `2`, the target element is parent of the parent element and so on. In all situations when this is `> 0`,\n * we're not walking further than the last existing element, for example when `ancestorLevel = 1` (direct parent\n * element is requested), but the request element doesn't have a parent, the request element is returned as the result.\n */\n ancestorLevel?: number;\n}\n\n/**\n * A data structure that defines properties for applying a selection scope.\n * @public\n */\nexport type SelectionScopeProps = ElementSelectionScopeProps | { id: string };\n"]}
1
+ {"version":3,"file":"SelectionScope.js","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;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 UnifiedSelection\r\n */\r\n\r\n/**\r\n * Data structure that describes a [selection scope]($docs/presentation/unified-selection/index#selection-scopes).\r\n * @public\r\n */\r\nexport interface SelectionScope {\r\n /** Unique ID of the selection scope */\r\n id: string;\r\n /** Label */\r\n label: string;\r\n /** Description */\r\n description?: string;\r\n}\r\n\r\n/**\r\n * A data structure that defines properties for applying element selection scope.\r\n * @public\r\n */\r\nexport interface ElementSelectionScopeProps {\r\n /** Identifies this as the \"element\" selection scope */\r\n id: \"element\";\r\n /**\r\n * Specifies how far \"up\" we should walk to find the target element. When not specified or `0`,\r\n * the target element matches the request element. When `1`, the target element matches the direct parent element.\r\n * When `2`, the target element is parent of the parent element and so on. In all situations when this is `> 0`,\r\n * we're not walking further than the last existing element, for example when `ancestorLevel = 1` (direct parent\r\n * element is requested), but the request element doesn't have a parent, the request element is returned as the result.\r\n */\r\n ancestorLevel?: number;\r\n}\r\n\r\n/**\r\n * A data structure that defines properties for applying a selection scope.\r\n * @public\r\n */\r\nexport type SelectionScopeProps = ElementSelectionScopeProps | { id: string };\r\n"]}
@@ -15,9 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /*---------------------------------------------------------------------------------------------
18
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
19
- * See LICENSE.md in the project root for license terms and full copyright notice.
20
- *--------------------------------------------------------------------------------------------*/
18
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
19
+ * See LICENSE.md in the project root for license terms and full copyright notice.
20
+ *--------------------------------------------------------------------------------------------*/
21
21
  /**
22
22
  * @module Core
23
23
  *
@@ -1 +1 @@
1
- {"version":3,"file":"presentation-common.js","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F;;;;;GAKG;AACH,mEAAiD;AACjD,oEAAkD;AAClD,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,wEAAsD;AACtD,mFAAiE;AACjE,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,+DAA6C;AAC7C,8DAA4C;AAC5C,iFAA+D;AAC/D,2EAAyD;AACzD,iFAA+D;AAC/D,kFAAgE;AAEhE;;;;;;GAMG;AACH,iFAA+D;AAC/D,2EAAyD;AACzD,0EAAwD;AAExD;;;;;GAKG;AACH,iFAA+D;AAE/D;;;;;GAKG;AACH,yEAAuD;AACvD,wEAAsD;AACtD,2EAAyD;AACzD,6EAA2D;AAC3D,uEAAqD;AACrD,uEAAqD;AACrD,qEAAmD;AACnD,yEAAuD;AACvD,yEAAuD;AACvD,gFAA8D;AAC9D,sEAAoD;AACpD,iFAA+D;AAC/D,uFAAqE;AAErE;;;;;GAKG;AACH,iFAA+D;AAC/D,sEAAoD;AACpD,uEAAqD;AACrD,kFAAgE;AAEhE;;;;;GAKG;AACH,sFAAoE;AACpE,+FAA6E;AAC7E,gGAA8E;AAC9E,8GAA4F;AAC5F,oHAAkG;AAClG,uFAAqE;AACrE,0FAAwE;AACxE,0GAAwF;AACxF,qFAAmE;AACnE,qFAAmE;AACnE,yFAAuE;AACvE,8FAA4E;AAC5E,6FAA2E;AAC3E,yFAAuE;AACvE,4FAA0E;AAC1E,kGAAgF;AAChF,0FAAwE;AACxE,wFAAsE;AACtE,0FAAwE;AACxE,qHAAmG;AACnG,2GAAyF;AACzF,kFAAgE;AAChE,2FAAyE;AACzE,4FAA0E;AAC1E,yGAAuF;AACvF,sGAAoF;AACpF,kHAAgG;AAChG,gGAA8E;AAC9E,8GAA4F;AAC5F,6GAA2F;AAC3F,4GAA0F;AAC1F,+GAA6F;AAC7F,kFAAgE;AAChE,2FAAyE;AACzE,oFAAkE;AAClE,4FAA0E;AAC1E,mEAAiD;AACjD,sEAAoD;AACpD,mFAAiE;AACjE,wEAAsD","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/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used all across Presentation packages.\n */\nexport * from \"./presentation-common/AsyncTasks\";\nexport * from \"./presentation-common/Diagnostics\";\nexport * from \"./presentation-common/EC\";\nexport * from \"./presentation-common/Error\";\nexport * from \"./presentation-common/KeySet\";\nexport * from \"./presentation-common/LabelDefinition\";\nexport * from \"./presentation-common/PresentationManagerOptions\";\nexport * from \"./presentation-common/RegisteredRuleset\";\nexport * from \"./presentation-common/RulesetVariables\";\nexport * from \"./presentation-common/RulesetsFactory\";\nexport * from \"./presentation-common/Update\";\nexport * from \"./presentation-common/Utils\";\nexport * from \"./presentation-common/PresentationIpcInterface\";\nexport * from \"./presentation-common/LocalizationHelper\";\nexport * from \"./presentation-common/InstanceFilterDefinition\";\nexport * from \"./presentation-common/KoqPropertyValueFormatter\";\n\n/**\n * @module RPC\n *\n * @docs-group-description RPC\n * Types used for RPC communication between frontend and backend. Generally should\n * only be used internally by presentation packages.\n */\nexport * from \"./presentation-common/PresentationRpcInterface\";\nexport * from \"./presentation-common/RpcRequestsHandler\";\nexport * from \"./presentation-common/ElementProperties\";\n\n/**\n * @module UnifiedSelection\n *\n * @docs-group-description UnifiedSelection\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\n */\nexport * from \"./presentation-common/selection/SelectionScope\";\n\n/**\n * @module Content\n *\n * @docs-group-description Content\n * Types related to presentation [content]($docs/presentation/content/index.md).\n */\nexport * from \"./presentation-common/content/Category\";\nexport * from \"./presentation-common/content/Content\";\nexport * from \"./presentation-common/content/Descriptor\";\nexport * from \"./presentation-common/content/DisplayTypes\";\nexport * from \"./presentation-common/content/Editor\";\nexport * from \"./presentation-common/content/Fields\";\nexport * from \"./presentation-common/content/Item\";\nexport * from \"./presentation-common/content/Property\";\nexport * from \"./presentation-common/content/Renderer\";\nexport * from \"./presentation-common/content/TypeDescription\";\nexport * from \"./presentation-common/content/Value\";\nexport * from \"./presentation-common/content/ContentTraverser\";\nexport * from \"./presentation-common/content/PropertyValueFormatter\";\n\n/**\n * @module Hierarchies\n *\n * @docs-group-description Hierarchies\n * Types related to presentation [hierarchies]($docs/presentation/hierarchies/index.md).\n */\nexport * from \"./presentation-common/hierarchy/HierarchyLevel\";\nexport * from \"./presentation-common/hierarchy/Key\";\nexport * from \"./presentation-common/hierarchy/Node\";\nexport * from \"./presentation-common/hierarchy/NodePathElement\";\n\n/**\n * @module PresentationRules\n *\n * @docs-group-description PresentationRules\n * Types for defining the presentation ruleset.\n */\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeRule\";\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/CustomNodeSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/NavigationRule\";\nexport * from \"./presentation-common/rules/hierarchy/NodeArtifactsRule\";\nexport * from \"./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/RootNodeRule\";\nexport * from \"./presentation-common/rules/hierarchy/SubCondition\";\nexport * from \"./presentation-common/rules/customization/CheckBoxRule\";\nexport * from \"./presentation-common/rules/customization/CustomizationRule\";\nexport * from \"./presentation-common/rules/customization/ExtendedDataRule\";\nexport * from \"./presentation-common/rules/customization/GroupingRule\";\nexport * from \"./presentation-common/rules/customization/ImageIdOverride\";\nexport * from \"./presentation-common/rules/customization/InstanceLabelOverride\";\nexport * from \"./presentation-common/rules/customization/LabelOverride\";\nexport * from \"./presentation-common/rules/customization/SortingRule\";\nexport * from \"./presentation-common/rules/customization/StyleOverride\";\nexport * from \"./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification\";\nexport * from \"./presentation-common/rules/content/ContentRelatedInstancesSpecification\";\nexport * from \"./presentation-common/rules/content/ContentRule\";\nexport * from \"./presentation-common/rules/content/ContentSpecification\";\nexport * from \"./presentation-common/rules/content/PropertySpecification\";\nexport * from \"./presentation-common/rules/content/SelectedNodeInstancesSpecification\";\nexport * from \"./presentation-common/rules/content/DefaultPropertyCategoryOverride\";\nexport * from \"./presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/ContentModifier\";\nexport * from \"./presentation-common/rules/content/modifiers/PropertyCategorySpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/PropertyEditorsSpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/CustomRendererSpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/RelatedPropertiesSpecification\";\nexport * from \"./presentation-common/rules/ClassSpecifications\";\nexport * from \"./presentation-common/rules/RelatedInstanceSpecification\";\nexport * from \"./presentation-common/rules/RelationshipDirection\";\nexport * from \"./presentation-common/rules/RelationshipPathSpecification\";\nexport * from \"./presentation-common/rules/Rule\";\nexport * from \"./presentation-common/rules/Ruleset\";\nexport * from \"./presentation-common/rules/SchemasSpecification\";\nexport * from \"./presentation-common/rules/Variables\";\n"]}
1
+ {"version":3,"file":"presentation-common.js","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,mEAAiD;AACjD,oEAAkD;AAClD,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,wEAAsD;AACtD,mFAAiE;AACjE,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,+DAA6C;AAC7C,8DAA4C;AAC5C,iFAA+D;AAC/D,2EAAyD;AACzD,iFAA+D;AAC/D,kFAAgE;AAEhE;;;;;;GAMG;AACH,iFAA+D;AAC/D,2EAAyD;AACzD,0EAAwD;AAExD;;;;;GAKG;AACH,iFAA+D;AAE/D;;;;;GAKG;AACH,yEAAuD;AACvD,wEAAsD;AACtD,2EAAyD;AACzD,6EAA2D;AAC3D,uEAAqD;AACrD,uEAAqD;AACrD,qEAAmD;AACnD,yEAAuD;AACvD,yEAAuD;AACvD,gFAA8D;AAC9D,sEAAoD;AACpD,iFAA+D;AAC/D,uFAAqE;AAErE;;;;;GAKG;AACH,iFAA+D;AAC/D,sEAAoD;AACpD,uEAAqD;AACrD,kFAAgE;AAEhE;;;;;GAKG;AACH,sFAAoE;AACpE,+FAA6E;AAC7E,gGAA8E;AAC9E,8GAA4F;AAC5F,oHAAkG;AAClG,uFAAqE;AACrE,0FAAwE;AACxE,0GAAwF;AACxF,qFAAmE;AACnE,qFAAmE;AACnE,yFAAuE;AACvE,8FAA4E;AAC5E,6FAA2E;AAC3E,yFAAuE;AACvE,4FAA0E;AAC1E,kGAAgF;AAChF,0FAAwE;AACxE,wFAAsE;AACtE,0FAAwE;AACxE,qHAAmG;AACnG,2GAAyF;AACzF,kFAAgE;AAChE,2FAAyE;AACzE,4FAA0E;AAC1E,yGAAuF;AACvF,sGAAoF;AACpF,kHAAgG;AAChG,gGAA8E;AAC9E,8GAA4F;AAC5F,6GAA2F;AAC3F,4GAA0F;AAC1F,+GAA6F;AAC7F,kFAAgE;AAChE,2FAAyE;AACzE,oFAAkE;AAClE,4FAA0E;AAC1E,mEAAiD;AACjD,sEAAoD;AACpD,mFAAiE;AACjE,wEAAsD","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/**\r\n * @module Core\r\n *\r\n * @docs-group-description Core\r\n * Common types used all across Presentation packages.\r\n */\r\nexport * from \"./presentation-common/AsyncTasks\";\r\nexport * from \"./presentation-common/Diagnostics\";\r\nexport * from \"./presentation-common/EC\";\r\nexport * from \"./presentation-common/Error\";\r\nexport * from \"./presentation-common/KeySet\";\r\nexport * from \"./presentation-common/LabelDefinition\";\r\nexport * from \"./presentation-common/PresentationManagerOptions\";\r\nexport * from \"./presentation-common/RegisteredRuleset\";\r\nexport * from \"./presentation-common/RulesetVariables\";\r\nexport * from \"./presentation-common/RulesetsFactory\";\r\nexport * from \"./presentation-common/Update\";\r\nexport * from \"./presentation-common/Utils\";\r\nexport * from \"./presentation-common/PresentationIpcInterface\";\r\nexport * from \"./presentation-common/LocalizationHelper\";\r\nexport * from \"./presentation-common/InstanceFilterDefinition\";\r\nexport * from \"./presentation-common/KoqPropertyValueFormatter\";\r\n\r\n/**\r\n * @module RPC\r\n *\r\n * @docs-group-description RPC\r\n * Types used for RPC communication between frontend and backend. Generally should\r\n * only be used internally by presentation packages.\r\n */\r\nexport * from \"./presentation-common/PresentationRpcInterface\";\r\nexport * from \"./presentation-common/RpcRequestsHandler\";\r\nexport * from \"./presentation-common/ElementProperties\";\r\n\r\n/**\r\n * @module UnifiedSelection\r\n *\r\n * @docs-group-description UnifiedSelection\r\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\r\n */\r\nexport * from \"./presentation-common/selection/SelectionScope\";\r\n\r\n/**\r\n * @module Content\r\n *\r\n * @docs-group-description Content\r\n * Types related to presentation [content]($docs/presentation/content/index.md).\r\n */\r\nexport * from \"./presentation-common/content/Category\";\r\nexport * from \"./presentation-common/content/Content\";\r\nexport * from \"./presentation-common/content/Descriptor\";\r\nexport * from \"./presentation-common/content/DisplayTypes\";\r\nexport * from \"./presentation-common/content/Editor\";\r\nexport * from \"./presentation-common/content/Fields\";\r\nexport * from \"./presentation-common/content/Item\";\r\nexport * from \"./presentation-common/content/Property\";\r\nexport * from \"./presentation-common/content/Renderer\";\r\nexport * from \"./presentation-common/content/TypeDescription\";\r\nexport * from \"./presentation-common/content/Value\";\r\nexport * from \"./presentation-common/content/ContentTraverser\";\r\nexport * from \"./presentation-common/content/PropertyValueFormatter\";\r\n\r\n/**\r\n * @module Hierarchies\r\n *\r\n * @docs-group-description Hierarchies\r\n * Types related to presentation [hierarchies]($docs/presentation/hierarchies/index.md).\r\n */\r\nexport * from \"./presentation-common/hierarchy/HierarchyLevel\";\r\nexport * from \"./presentation-common/hierarchy/Key\";\r\nexport * from \"./presentation-common/hierarchy/Node\";\r\nexport * from \"./presentation-common/hierarchy/NodePathElement\";\r\n\r\n/**\r\n * @module PresentationRules\r\n *\r\n * @docs-group-description PresentationRules\r\n * Types for defining the presentation ruleset.\r\n */\r\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeRule\";\r\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/CustomNodeSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/NavigationRule\";\r\nexport * from \"./presentation-common/rules/hierarchy/NodeArtifactsRule\";\r\nexport * from \"./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/RootNodeRule\";\r\nexport * from \"./presentation-common/rules/hierarchy/SubCondition\";\r\nexport * from \"./presentation-common/rules/customization/CheckBoxRule\";\r\nexport * from \"./presentation-common/rules/customization/CustomizationRule\";\r\nexport * from \"./presentation-common/rules/customization/ExtendedDataRule\";\r\nexport * from \"./presentation-common/rules/customization/GroupingRule\";\r\nexport * from \"./presentation-common/rules/customization/ImageIdOverride\";\r\nexport * from \"./presentation-common/rules/customization/InstanceLabelOverride\";\r\nexport * from \"./presentation-common/rules/customization/LabelOverride\";\r\nexport * from \"./presentation-common/rules/customization/SortingRule\";\r\nexport * from \"./presentation-common/rules/customization/StyleOverride\";\r\nexport * from \"./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification\";\r\nexport * from \"./presentation-common/rules/content/ContentRelatedInstancesSpecification\";\r\nexport * from \"./presentation-common/rules/content/ContentRule\";\r\nexport * from \"./presentation-common/rules/content/ContentSpecification\";\r\nexport * from \"./presentation-common/rules/content/PropertySpecification\";\r\nexport * from \"./presentation-common/rules/content/SelectedNodeInstancesSpecification\";\r\nexport * from \"./presentation-common/rules/content/DefaultPropertyCategoryOverride\";\r\nexport * from \"./presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification\";\r\nexport * from \"./presentation-common/rules/content/modifiers/ContentModifier\";\r\nexport * from \"./presentation-common/rules/content/modifiers/PropertyCategorySpecification\";\r\nexport * from \"./presentation-common/rules/content/modifiers/PropertyEditorsSpecification\";\r\nexport * from \"./presentation-common/rules/content/modifiers/CustomRendererSpecification\";\r\nexport * from \"./presentation-common/rules/content/modifiers/RelatedPropertiesSpecification\";\r\nexport * from \"./presentation-common/rules/ClassSpecifications\";\r\nexport * from \"./presentation-common/rules/RelatedInstanceSpecification\";\r\nexport * from \"./presentation-common/rules/RelationshipDirection\";\r\nexport * from \"./presentation-common/rules/RelationshipPathSpecification\";\r\nexport * from \"./presentation-common/rules/Rule\";\r\nexport * from \"./presentation-common/rules/Ruleset\";\r\nexport * from \"./presentation-common/rules/SchemasSpecification\";\r\nexport * from \"./presentation-common/rules/Variables\";\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AsyncTasks.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/AsyncTasks.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAoB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEpE;;;;;;;;;;;;GAYG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,iBAAiB,CAAyB;IAClD,IAAW,aAAa,gBAAqC;IACtD,cAAc,IAAI,WAAW;CAOrC"}
1
+ {"version":3,"file":"AsyncTasks.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/AsyncTasks.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAoB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEpE;;;;;;;;;;;;GAYG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,iBAAiB,CAAyB;IAClD,IAAW,aAAa,gBAEvB;IACM,cAAc,IAAI,WAAW;CAOrC"}
@@ -1,7 +1,7 @@
1
1
  /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
5
  /** @packageDocumentation
6
6
  * @module Core
7
7
  */
@@ -23,7 +23,9 @@ export class AsyncTasksTracker {
23
23
  constructor() {
24
24
  this._asyncsInProgress = new Set();
25
25
  }
26
- get pendingAsyncs() { return this._asyncsInProgress; }
26
+ get pendingAsyncs() {
27
+ return this._asyncsInProgress;
28
+ }
27
29
  trackAsyncTask() {
28
30
  const id = Guid.createValue();
29
31
  this._asyncsInProgress.add(id);
@@ -1 +1 @@
1
- {"version":3,"file":"AsyncTasks.js","sourceRoot":"","sources":["../../../src/presentation-common/AsyncTasks.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,IAAI,EAA2B,MAAM,qBAAqB,CAAC;AAEpE;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,iBAAiB;IAA9B;QACU,sBAAiB,GAAG,IAAI,GAAG,EAAc,CAAC;IASpD,CAAC;IARC,IAAW,aAAa,KAAK,OAAO,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACtD,cAAc;QACnB,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAC9B,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC/B,OAAO;YACL,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC;SACjD,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Core\n */\n\nimport { Guid, GuidString, IDisposable } from \"@itwin/core-bentley\";\n\n/**\n * A helper to track ongoing async tasks. Usage:\n * ```\n * await using(tracker.trackAsyncTask(), async (_r) => {\n * await doSomethingAsync();\n * });\n * ```\n *\n * Can be used with `waitForPendingAsyncs` in test helpers to wait for all\n * async tasks to complete.\n *\n * @internal\n */\nexport class AsyncTasksTracker {\n private _asyncsInProgress = new Set<GuidString>();\n public get pendingAsyncs() { return this._asyncsInProgress; }\n public trackAsyncTask(): IDisposable {\n const id = Guid.createValue();\n this._asyncsInProgress.add(id);\n return {\n dispose: () => this._asyncsInProgress.delete(id),\n };\n }\n}\n"]}
1
+ {"version":3,"file":"AsyncTasks.js","sourceRoot":"","sources":["../../../src/presentation-common/AsyncTasks.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,IAAI,EAA2B,MAAM,qBAAqB,CAAC;AAEpE;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,iBAAiB;IAA9B;QACU,sBAAiB,GAAG,IAAI,GAAG,EAAc,CAAC;IAWpD,CAAC;IAVC,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IACM,cAAc;QACnB,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAC9B,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC/B,OAAO;YACL,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC;SACjD,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n * See LICENSE.md in the project root for license terms and full copyright notice.\r\n *--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Core\r\n */\r\n\r\nimport { Guid, GuidString, IDisposable } from \"@itwin/core-bentley\";\r\n\r\n/**\r\n * A helper to track ongoing async tasks. Usage:\r\n * ```\r\n * await using(tracker.trackAsyncTask(), async (_r) => {\r\n * await doSomethingAsync();\r\n * });\r\n * ```\r\n *\r\n * Can be used with `waitForPendingAsyncs` in test helpers to wait for all\r\n * async tasks to complete.\r\n *\r\n * @internal\r\n */\r\nexport class AsyncTasksTracker {\r\n private _asyncsInProgress = new Set<GuidString>();\r\n public get pendingAsyncs() {\r\n return this._asyncsInProgress;\r\n }\r\n public trackAsyncTask(): IDisposable {\r\n const id = Guid.createValue();\r\n this._asyncsInProgress.add(id);\r\n return {\r\n dispose: () => this._asyncsInProgress.delete(id),\r\n };\r\n }\r\n}\r\n"]}
@@ -1,7 +1,7 @@
1
1
  /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
5
  /** @packageDocumentation
6
6
  * @module Core
7
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"CommonLoggerCategory.js","sourceRoot":"","sources":["../../../src/presentation-common/CommonLoggerCategory.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,CAAN,IAAY,gCAEX;AAFD,WAAY,gCAAgC;IAC1C,mEAA+B,CAAA;AACjC,CAAC,EAFW,gCAAgC,KAAhC,gCAAgC,QAE3C","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\n/**\n * Logger categories used by this package\n * @note All logger categories in this package start with the `presentation-common` prefix.\n * @see [Logger]($bentley)\n * @public\n */\nexport enum PresentationCommonLoggerCategory {\n Package = \"presentation-common\",\n}\n"]}
1
+ {"version":3,"file":"CommonLoggerCategory.js","sourceRoot":"","sources":["../../../src/presentation-common/CommonLoggerCategory.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,CAAN,IAAY,gCAEX;AAFD,WAAY,gCAAgC;IAC1C,mEAA+B,CAAA;AACjC,CAAC,EAFW,gCAAgC,KAAhC,gCAAgC,QAE3C","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\n/**\r\n * Logger categories used by this package\r\n * @note All logger categories in this package start with the `presentation-common` prefix.\r\n * @see [Logger]($bentley)\r\n * @public\r\n */\r\nexport enum PresentationCommonLoggerCategory {\r\n Package = \"presentation-common\",\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Diagnostics.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/Diagnostics.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAEzF;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,GAAG,yBAAyB,EAAE,GAAG,EAAE,SAAS,GAAG,OAAO,GAAG,yBAAyB,yCAStJ;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,GAAG,yBAAyB,EAAE,GAAG,EAAE,SAAS,GAAG,OAAO,GAAG,yBAAyB,cActJ;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,oBAAoB,EAAE,CAAC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AyB,CAAC;CAC9C;AAED;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;AAEzE;;;GAGG;AACH,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB;IAClE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,wBAAwB,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC;CACxC;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE;QACR,GAAG,CAAC,EAAE,yBAAyB,CAAC;QAChC,MAAM,CAAC,EAAE,yBAAyB,CAAC;KACpC,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAC;CAC5D;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;AAE/E;;;GAGG;AAEH,yBAAiB,mBAAmB,CAAC;IACnC,SAAgB,SAAS,CAAC,KAAK,EAAE,mBAAmB,GAAG,KAAK,IAAI,qBAAqB,CAEpF;IACD,SAAgB,OAAO,CAAC,KAAK,EAAE,mBAAmB,GAAG,KAAK,IAAI,oBAAoB,CAEjF;CACF"}
@@ -1,7 +1,7 @@
1
1
  /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
5
  /** @packageDocumentation
6
6
  * @module Core
7
7
  */
@@ -15,12 +15,18 @@
15
15
  * @internal
16
16
  */
17
17
  export function combineDiagnosticsSeverities(lhs, rhs) {
18
- if (!lhs && !rhs)
18
+ if (!lhs && !rhs) {
19
19
  return undefined;
20
- const combinedSeverity = (lhs === "trace" || rhs === "trace") ? "trace" :
21
- (lhs === "debug" || lhs === true || rhs === "debug" || rhs === true) ? "debug" :
22
- (lhs === "info" || rhs === "info") ? "info" :
23
- (lhs === "warning" || rhs === "warning") ? "warning" : "error";
20
+ }
21
+ const combinedSeverity = lhs === "trace" || rhs === "trace"
22
+ ? "trace"
23
+ : lhs === "debug" || lhs === true || rhs === "debug" || rhs === true
24
+ ? "debug"
25
+ : lhs === "info" || rhs === "info"
26
+ ? "info"
27
+ : lhs === "warning" || rhs === "warning"
28
+ ? "warning"
29
+ : "error";
24
30
  return combinedSeverity;
25
31
  }
26
32
  /**
@@ -36,24 +42,30 @@ export function combineDiagnosticsSeverities(lhs, rhs) {
36
42
  * @internal
37
43
  */
38
44
  export function compareDiagnosticsSeverities(lhs, rhs) {
39
- const normalizedLhs = (lhs === undefined || lhs === false) ? "error" : lhs === true ? "debug" : lhs;
40
- const normalizedRhs = (rhs === undefined || rhs === false) ? "error" : rhs === true ? "debug" : rhs;
41
- if (normalizedLhs === normalizedRhs)
45
+ const normalizedLhs = lhs === undefined || lhs === false ? "error" : lhs === true ? "debug" : lhs;
46
+ const normalizedRhs = rhs === undefined || rhs === false ? "error" : rhs === true ? "debug" : rhs;
47
+ if (normalizedLhs === normalizedRhs) {
42
48
  return 0;
43
- if (normalizedLhs === "error")
49
+ }
50
+ if (normalizedLhs === "error") {
44
51
  return 1;
45
- if (normalizedLhs === "warning")
52
+ }
53
+ if (normalizedLhs === "warning") {
46
54
  return normalizedRhs === "error" ? -1 : 1;
47
- if (normalizedLhs === "info")
55
+ }
56
+ if (normalizedLhs === "info") {
48
57
  return normalizedRhs === "warning" || normalizedRhs === "error" ? -1 : 1;
49
- if (normalizedLhs === "debug")
58
+ }
59
+ if (normalizedLhs === "debug") {
50
60
  return normalizedRhs === "info" || normalizedRhs === "warning" || normalizedRhs === "error" ? -1 : 1;
61
+ }
51
62
  return -1;
52
63
  }
53
64
  /**
54
65
  * Functions related to diagnostics log entry.
55
66
  * @beta
56
67
  */
68
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
57
69
  export var DiagnosticsLogEntry;
58
70
  (function (DiagnosticsLogEntry) {
59
71
  function isMessage(entry) {
@@ -1 +1 @@
1
- {"version":3,"file":"Diagnostics.js","sourceRoot":"","sources":["../../../src/presentation-common/Diagnostics.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAQH;;;;;;;;GAQG;AACH,MAAM,UAAU,4BAA4B,CAAC,GAAoD,EAAE,GAAoD;IACrJ,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG;QACd,OAAO,SAAS,CAAC;IACnB,MAAM,gBAAgB,GACpB,CAAC,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;YAC9E,CAAC,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;gBAC3C,CAAC,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,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CAAC,OAAO,CAAC;IAClC,CAAC;IAFe,6BAAS,YAExB,CAAA;IACD,SAAgB,OAAO,CAAC,KAA0B;QAChD,OAAO,CAAC,CAAE,KAAa,CAAC,KAAK,CAAC;IAChC,CAAC;IAFe,2BAAO,UAEtB,CAAA;AACH,CAAC,EAPgB,mBAAmB,KAAnB,mBAAmB,QAOnC","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\n/**\n * Type of diagnostics logger severity.\n * @beta\n */\nexport type DiagnosticsLoggerSeverity = \"error\" | \"warning\" | \"info\" | \"debug\" | \"trace\";\n\n/**\n * Returns lower severity of the given two. Examples:\n * ```\n * combineDiagnosticsSeverities(\"error\", \"error\") === \"error\"\n * combineDiagnosticsSeverities(\"error\", \"debug\") === \"debug\"\n * combineDiagnosticsSeverities(\"debug\", \"error\") === \"debug\"\n * ```\n * @internal\n */\nexport function combineDiagnosticsSeverities(lhs: undefined | boolean | DiagnosticsLoggerSeverity, rhs: undefined | boolean | DiagnosticsLoggerSeverity) {\n if (!lhs && !rhs)\n return undefined;\n const combinedSeverity: DiagnosticsLoggerSeverity =\n (lhs === \"trace\" || rhs === \"trace\") ? \"trace\" :\n (lhs === \"debug\" || lhs === true || rhs === \"debug\" || rhs === true) ? \"debug\" :\n (lhs === \"info\" || rhs === \"info\") ? \"info\" :\n (lhs === \"warning\" || rhs === \"warning\") ? \"warning\" : \"error\";\n return combinedSeverity;\n}\n\n/**\n * Returns 0 if the given severities are equal after normalization, negative if `lhs` is lower, positive if higher. Examples:\n * ```\n * compareDiagnosticsSeverities(\"error\", \"error\") === 0\n * compareDiagnosticsSeverities(\"error\", false) === 0\n * compareDiagnosticsSeverities(\"error\", undefined) === 0\n * compareDiagnosticsSeverities(\"debug\", true) === 0\n * compareDiagnosticsSeverities(\"debug\", \"error\") < 0\n * compareDiagnosticsSeverities(\"error\", \"debug\") > 0\n * ```\n * @internal\n */\nexport function compareDiagnosticsSeverities(lhs: undefined | boolean | DiagnosticsLoggerSeverity, rhs: undefined | boolean | DiagnosticsLoggerSeverity) {\n const normalizedLhs: DiagnosticsLoggerSeverity = (lhs === undefined || lhs === false) ? \"error\" : lhs === true ? \"debug\" : lhs;\n const normalizedRhs: DiagnosticsLoggerSeverity = (rhs === undefined || rhs === false) ? \"error\" : rhs === true ? \"debug\" : rhs;\n if (normalizedLhs === normalizedRhs)\n return 0;\n if (normalizedLhs === \"error\")\n return 1;\n if (normalizedLhs === \"warning\")\n return normalizedRhs === \"error\" ? -1 : 1;\n if (normalizedLhs === \"info\")\n return normalizedRhs === \"warning\" || normalizedRhs === \"error\" ? -1 : 1;\n if (normalizedLhs === \"debug\")\n return normalizedRhs === \"info\" || normalizedRhs === \"warning\" || normalizedRhs === \"error\" ? -1 : 1;\n return -1;\n}\n\n/**\n * Data structure for diagnostics information.\n * @beta\n */\nexport interface Diagnostics {\n logs?: DiagnosticsScopeLogs[];\n}\n\n/**\n * Data structure with client diagnostics information.\n * @beta\n */\nexport interface ClientDiagnostics extends Diagnostics {\n backendVersion?: string;\n}\n\n/**\n * Data structure for diagnostics options.\n * @beta\n */\nexport interface DiagnosticsOptions {\n /**\n * Flag specifying that performance should be measured, or\n * minimum duration in milliseconds for which performance metric should be included.\n */\n perf?: boolean | { minimumDuration: number };\n /** Severity for developer log messages */\n dev?: boolean | DiagnosticsLoggerSeverity;\n /** Severity for presentation rules' editor log messages */\n editor?: boolean | DiagnosticsLoggerSeverity;\n}\n\n/**\n * A function that can be called after receiving diagnostics.\n * @beta\n */\nexport type ClientDiagnosticsHandler = (logs: ClientDiagnostics) => void;\n\n/**\n * Data structure for client diagnostics options.\n * @beta\n */\nexport interface ClientDiagnosticsOptions extends DiagnosticsOptions {\n backendVersion?: boolean;\n handler: ClientDiagnosticsHandler;\n}\n\n/**\n * Data structure which contains client diagnostics options.\n * @public\n */\nexport interface ClientDiagnosticsAttribute {\n /**\n * Diagnostics options.\n * @beta\n */\n diagnostics?: ClientDiagnosticsOptions;\n}\n\n/**\n * Data structure for diagnostics log message information.\n * @beta\n */\nexport interface DiagnosticsLogMessage {\n severity: {\n dev?: DiagnosticsLoggerSeverity;\n editor?: DiagnosticsLoggerSeverity;\n };\n category: string;\n message: string;\n timestamp: number;\n}\n\n/**\n * Data structure for diagnostics scope information.\n * @beta\n */\nexport interface DiagnosticsScopeLogs {\n scope: string;\n scopeCreateTimestamp?: number;\n duration?: number;\n logs?: DiagnosticsLogEntry[];\n attributes?: { [attributeKey: string]: string | string[] };\n}\n\n/**\n * Data structure for diagnostics log entry.\n * @beta\n */\nexport type DiagnosticsLogEntry = DiagnosticsLogMessage | DiagnosticsScopeLogs;\n\n/**\n * Functions related to diagnostics log entry.\n * @beta\n */\nexport namespace DiagnosticsLogEntry { // eslint-disable-line @typescript-eslint/no-redeclare\n export function isMessage(entry: DiagnosticsLogEntry): entry is DiagnosticsLogMessage {\n return !!(entry as any).message;\n }\n export function isScope(entry: DiagnosticsLogEntry): entry is DiagnosticsScopeLogs {\n return !!(entry as any).scope;\n }\n}\n"]}
1
+ {"version":3,"file":"Diagnostics.js","sourceRoot":"","sources":["../../../src/presentation-common/Diagnostics.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAQH;;;;;;;;GAQG;AACH,MAAM,UAAU,4BAA4B,CAAC,GAAoD,EAAE,GAAoD;IACrJ,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IACD,MAAM,gBAAgB,GACpB,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,OAAO;QAChC,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,IAAI;YAClE,CAAC,CAAC,OAAO;YACT,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AC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACtG;IACD,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC;AA6FD;;;GAGG;AACH,2DAA2D;AAC3D,MAAM,KAAW,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,SAAgB,SAAS,CAAC,KAA0B;QAClD,OAAO,CAAC,CAAE,KAAa,CAAC,OAAO,CAAC;IAClC,CAAC;IAFe,6BAAS,YAExB,CAAA;IACD,SAAgB,OAAO,CAAC,KAA0B;QAChD,OAAO,CAAC,CAAE,KAAa,CAAC,KAAK,CAAC;IAChC,CAAC;IAFe,2BAAO,UAEtB,CAAA;AACH,CAAC,EAPgB,mBAAmB,KAAnB,mBAAmB,QAOnC","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\n/**\r\n * Type of diagnostics logger severity.\r\n * @beta\r\n */\r\nexport type DiagnosticsLoggerSeverity = \"error\" | \"warning\" | \"info\" | \"debug\" | \"trace\";\r\n\r\n/**\r\n * Returns lower severity of the given two. Examples:\r\n * ```\r\n * combineDiagnosticsSeverities(\"error\", \"error\") === \"error\"\r\n * combineDiagnosticsSeverities(\"error\", \"debug\") === \"debug\"\r\n * combineDiagnosticsSeverities(\"debug\", \"error\") === \"debug\"\r\n * ```\r\n * @internal\r\n */\r\nexport function combineDiagnosticsSeverities(lhs: undefined | boolean | DiagnosticsLoggerSeverity, rhs: undefined | boolean | DiagnosticsLoggerSeverity) {\r\n if (!lhs && !rhs) {\r\n return undefined;\r\n }\r\n const combinedSeverity: DiagnosticsLoggerSeverity =\r\n lhs === \"trace\" || rhs === \"trace\"\r\n ? \"trace\"\r\n : lhs === \"debug\" || lhs === true || rhs === \"debug\" || rhs === true\r\n ? \"debug\"\r\n : lhs === \"info\" || rhs === \"info\"\r\n ? \"info\"\r\n : lhs === \"warning\" || rhs === \"warning\"\r\n ? \"warning\"\r\n : \"error\";\r\n return combinedSeverity;\r\n}\r\n\r\n/**\r\n * Returns 0 if the given severities are equal after normalization, negative if `lhs` is lower, positive if higher. Examples:\r\n * ```\r\n * compareDiagnosticsSeverities(\"error\", \"error\") === 0\r\n * compareDiagnosticsSeverities(\"error\", false) === 0\r\n * compareDiagnosticsSeverities(\"error\", undefined) === 0\r\n * compareDiagnosticsSeverities(\"debug\", true) === 0\r\n * compareDiagnosticsSeverities(\"debug\", \"error\") < 0\r\n * compareDiagnosticsSeverities(\"error\", \"debug\") > 0\r\n * ```\r\n * @internal\r\n */\r\nexport function compareDiagnosticsSeverities(lhs: undefined | boolean | DiagnosticsLoggerSeverity, rhs: undefined | boolean | DiagnosticsLoggerSeverity) {\r\n const normalizedLhs: DiagnosticsLoggerSeverity = lhs === undefined || lhs === false ? \"error\" : lhs === true ? \"debug\" : lhs;\r\n const normalizedRhs: DiagnosticsLoggerSeverity = rhs === undefined || rhs === false ? \"error\" : rhs === true ? \"debug\" : rhs;\r\n if (normalizedLhs === normalizedRhs) {\r\n return 0;\r\n }\r\n if (normalizedLhs === \"error\") {\r\n return 1;\r\n }\r\n if (normalizedLhs === \"warning\") {\r\n return normalizedRhs === \"error\" ? -1 : 1;\r\n }\r\n if (normalizedLhs === \"info\") {\r\n return normalizedRhs === \"warning\" || normalizedRhs === \"error\" ? -1 : 1;\r\n }\r\n if (normalizedLhs === \"debug\") {\r\n return normalizedRhs === \"info\" || normalizedRhs === \"warning\" || normalizedRhs === \"error\" ? -1 : 1;\r\n }\r\n return -1;\r\n}\r\n\r\n/**\r\n * Data structure for diagnostics information.\r\n * @beta\r\n */\r\nexport interface Diagnostics {\r\n logs?: DiagnosticsScopeLogs[];\r\n}\r\n\r\n/**\r\n * Data structure with client diagnostics information.\r\n * @beta\r\n */\r\nexport interface ClientDiagnostics extends Diagnostics {\r\n backendVersion?: string;\r\n}\r\n\r\n/**\r\n * Data structure for diagnostics options.\r\n * @beta\r\n */\r\nexport interface DiagnosticsOptions {\r\n /**\r\n * Flag specifying that performance should be measured, or\r\n * minimum duration in milliseconds for which performance metric should be included.\r\n */\r\n perf?: boolean | { minimumDuration: number };\r\n /** Severity for developer log messages */\r\n dev?: boolean | DiagnosticsLoggerSeverity;\r\n /** Severity for presentation rules' editor log messages */\r\n editor?: boolean | DiagnosticsLoggerSeverity;\r\n}\r\n\r\n/**\r\n * A function that can be called after receiving diagnostics.\r\n * @beta\r\n */\r\nexport type ClientDiagnosticsHandler = (logs: ClientDiagnostics) => void;\r\n\r\n/**\r\n * Data structure for client diagnostics options.\r\n * @beta\r\n */\r\nexport interface ClientDiagnosticsOptions extends DiagnosticsOptions {\r\n backendVersion?: boolean;\r\n handler: ClientDiagnosticsHandler;\r\n}\r\n\r\n/**\r\n * Data structure which contains client diagnostics options.\r\n * @public\r\n */\r\nexport interface ClientDiagnosticsAttribute {\r\n /**\r\n * Diagnostics options.\r\n * @beta\r\n */\r\n diagnostics?: ClientDiagnosticsOptions;\r\n}\r\n\r\n/**\r\n * Data structure for diagnostics log message information.\r\n * @beta\r\n */\r\nexport interface DiagnosticsLogMessage {\r\n severity: {\r\n dev?: DiagnosticsLoggerSeverity;\r\n editor?: DiagnosticsLoggerSeverity;\r\n };\r\n category: string;\r\n message: string;\r\n timestamp: number;\r\n}\r\n\r\n/**\r\n * Data structure for diagnostics scope information.\r\n * @beta\r\n */\r\nexport interface DiagnosticsScopeLogs {\r\n scope: string;\r\n scopeCreateTimestamp?: number;\r\n duration?: number;\r\n logs?: DiagnosticsLogEntry[];\r\n attributes?: { [attributeKey: string]: string | string[] };\r\n}\r\n\r\n/**\r\n * Data structure for diagnostics log entry.\r\n * @beta\r\n */\r\nexport type DiagnosticsLogEntry = DiagnosticsLogMessage | DiagnosticsScopeLogs;\r\n\r\n/**\r\n * Functions related to diagnostics log entry.\r\n * @beta\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare\r\nexport namespace DiagnosticsLogEntry {\r\n export function isMessage(entry: DiagnosticsLogEntry): entry is DiagnosticsLogMessage {\r\n return !!(entry as any).message;\r\n }\r\n export function isScope(entry: DiagnosticsLogEntry): entry is DiagnosticsScopeLogs {\r\n return !!(entry as any).scope;\r\n }\r\n}\r\n"]}
@@ -68,7 +68,7 @@ export declare namespace ClassInfo {
68
68
  /**
69
69
  * Serialize [[ClassInfo]] to JSON
70
70
  * @deprecated in 3.x. Use [[ClassInfo]].
71
- */
71
+ */
72
72
  function toJSON(info: ClassInfo): ClassInfoJSON;
73
73
  /**
74
74
  * Deserialize [[ClassInfo]] from JSON
@@ -156,7 +156,7 @@ export declare namespace NavigationPropertyInfo {
156
156
  /**
157
157
  * Serialize [[NavigationPropertyInfo]] to JSON
158
158
  * @deprecated in 3.x. Use [[toCompressedJSON]].
159
- */
159
+ */
160
160
  function toJSON(info: NavigationPropertyInfo): NavigationPropertyInfoJSON;
161
161
  /** Serialize [[NavigationPropertyInfo]] to compressed JSON */
162
162
  function toCompressedJSON(navigationPropertyInfo: NavigationPropertyInfo, classesMap: {
@@ -202,7 +202,7 @@ export interface PropertyInfo {
202
202
  /**
203
203
  * Navigation property info if the field is navigation type
204
204
  * @beta
205
- */
205
+ */
206
206
  navigationPropertyInfo?: NavigationPropertyInfo;
207
207
  }
208
208
  /** @public */
@@ -210,7 +210,7 @@ export declare namespace PropertyInfo {
210
210
  /**
211
211
  * Serialize [[PropertyInfo]] to JSON
212
212
  * @deprecated in 3.x. Use [[PropertyInfo]].
213
- */
213
+ */
214
214
  function toJSON(info: PropertyInfo): PropertyInfoJSON;
215
215
  /** Serialize [[PropertyInfo]] to compressed JSON */
216
216
  function toCompressedJSON(propertyInfo: PropertyInfo, classesMap: {
@@ -246,6 +246,8 @@ export interface RelatedClassInfo {
246
246
  targetClassInfo: ClassInfo;
247
247
  /** Is target class handled polymorphically */
248
248
  isPolymorphicTargetClass?: boolean;
249
+ /** Optionally, IDs of specific target class instances. */
250
+ targetInstanceIds?: Id64String[];
249
251
  /** Information about the ECRelationship */
250
252
  relationshipInfo: ClassInfo;
251
253
  /** Should relationship be followed in a forward direction to access the related class. */
@@ -286,6 +288,7 @@ export interface RelatedClassInfoJSON<TClassInfoJSON = ClassInfoJSON> {
286
288
  sourceClassInfo: TClassInfoJSON;
287
289
  targetClassInfo: TClassInfoJSON;
288
290
  isPolymorphicTargetClass?: boolean;
291
+ targetInstanceIds?: Id64String[];
289
292
  relationshipInfo: TClassInfoJSON;
290
293
  isForwardRelationship: boolean;
291
294
  isPolymorphicRelationship?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"EC.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/EC.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAU,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC;AAEpC;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,uDAAuD;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,EAAE,EAAE,UAAU,CAAC;CAChB;AAED,cAAc;AACd,yBAAiB,WAAW,CAAC;IAC3B,8BAA8B;IAC9B,SAAgB,OAAO,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,GAAG,MAAM,CAKlE;IAED;;;OAGG;IAGH,SAAgB,MAAM,CAAC,GAAG,EAAE,WAAW,GAAG,eAAe,CAExD;IAED;;;OAGG;IAGH,SAAgB,QAAQ,CAAC,IAAI,EAAE,eAAe;;;MAE7C;CACF;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,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CAa1C;CACF;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;AAElD;;;GAGG;AAEH,MAAM,MAAM,oBAAoB,CAAC,cAAc,GAAG,aAAa,IAAI,oBAAoB,CAAC,cAAc,CAAC,EAAE,CAAC;AAE1G,cAAc;AAEd,yBAAiB,gBAAgB,CAAC;IAChC,0DAA0D;IAC1D,SAAgB,OAAO,CAAC,IAAI,EAAE,gBAAgB,GAAG,gBAAgB,CAOhE;IAED,kFAAkF;IAClF,SAAgB,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,gBAAgB,GAAG,wBAAwB,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,gBAAgB,GAAG,wBAAwB,CAAC,GAAG,OAAO,CAEhJ;IAED,uEAAuE;IACvE,SAAgB,KAAK,CAAC,IAAI,EAAE,gBAAgB,GAAG,wBAAwB,CAEtE;CACF;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
5
  /** @packageDocumentation
6
6
  * @module Core
7
7
  */
@@ -12,8 +12,9 @@ export var InstanceKey;
12
12
  /** Compare 2 instance keys */
13
13
  function compare(lhs, rhs) {
14
14
  const classNameCompare = lhs.className.localeCompare(rhs.className);
15
- if (classNameCompare !== 0)
15
+ if (classNameCompare !== 0) {
16
16
  return classNameCompare;
17
+ }
17
18
  return lhs.id.localeCompare(rhs.id);
18
19
  }
19
20
  InstanceKey.compare = compare;
@@ -44,7 +45,7 @@ export var ClassInfo;
44
45
  /**
45
46
  * Serialize [[ClassInfo]] to JSON
46
47
  * @deprecated in 3.x. Use [[ClassInfo]].
47
- */
48
+ */
48
49
  // istanbul ignore next
49
50
  // eslint-disable-next-line deprecation/deprecation
50
51
  function toJSON(info) {
@@ -71,7 +72,7 @@ export var NavigationPropertyInfo;
71
72
  /**
72
73
  * Serialize [[NavigationPropertyInfo]] to JSON
73
74
  * @deprecated in 3.x. Use [[toCompressedJSON]].
74
- */
75
+ */
75
76
  // istanbul ignore next
76
77
  function toJSON(info) {
77
78
  return { ...info };
@@ -115,7 +116,7 @@ export var PropertyInfo;
115
116
  /**
116
117
  * Serialize [[PropertyInfo]] to JSON
117
118
  * @deprecated in 3.x. Use [[PropertyInfo]].
118
- */
119
+ */
119
120
  // istanbul ignore next
120
121
  function toJSON(info) {
121
122
  return { ...info };
@@ -193,10 +194,10 @@ export var RelatedClassInfo;
193
194
  RelatedClassInfo.fromCompressedJSON = fromCompressedJSON;
194
195
  /** Check two [[RelatedClassInfo]] or [[StrippedRelatedClassInfo]] for equality */
195
196
  function equals(lhs, rhs) {
196
- return lhs.isForwardRelationship === rhs.isForwardRelationship
197
- && getClassName(lhs, "source") === getClassName(rhs, "source")
198
- && getClassName(lhs, "target") === getClassName(rhs, "target")
199
- && getClassName(lhs, "relationship") === getClassName(rhs, "relationship");
197
+ return (lhs.isForwardRelationship === rhs.isForwardRelationship &&
198
+ getClassName(lhs, "source") === getClassName(rhs, "source") &&
199
+ getClassName(lhs, "target") === getClassName(rhs, "target") &&
200
+ getClassName(lhs, "relationship") === getClassName(rhs, "relationship"));
200
201
  }
201
202
  RelatedClassInfo.equals = equals;
202
203
  function isStripped(info) {
@@ -205,9 +206,12 @@ export var RelatedClassInfo;
205
206
  }
206
207
  function getClassName(info, whichClass) {
207
208
  switch (whichClass) {
208
- case "source": return isStripped(info) ? info.sourceClassName : info.sourceClassInfo.name;
209
- case "target": return isStripped(info) ? info.targetClassName : info.targetClassInfo.name;
210
- case "relationship": return isStripped(info) ? info.relationshipName : info.relationshipInfo.name;
209
+ case "source":
210
+ return isStripped(info) ? info.sourceClassName : info.sourceClassInfo.name;
211
+ case "target":
212
+ return isStripped(info) ? info.targetClassName : info.targetClassInfo.name;
213
+ case "relationship":
214
+ return isStripped(info) ? info.relationshipName : info.relationshipInfo.name;
211
215
  }
212
216
  }
213
217
  /** Strip given [[RelatedClassInfo]] to [[StrippedRelatedClassInfo]] */
@@ -249,8 +253,9 @@ export var RelatedClassInfoWithOptionalRelationship;
249
253
  const { sourceClassInfo, targetClassInfo, relationshipInfo, ...otherProps } = json;
250
254
  assert(classesMap.hasOwnProperty(sourceClassInfo));
251
255
  assert(classesMap.hasOwnProperty(targetClassInfo));
252
- if (relationshipInfo)
256
+ if (relationshipInfo) {
253
257
  assert(classesMap.hasOwnProperty(relationshipInfo));
258
+ }
254
259
  return {
255
260
  ...otherProps,
256
261
  sourceClassInfo: { id: sourceClassInfo, ...classesMap[sourceClassInfo] },
@@ -261,6 +266,7 @@ export var RelatedClassInfoWithOptionalRelationship;
261
266
  RelatedClassInfoWithOptionalRelationship.fromCompressedJSON = fromCompressedJSON;
262
267
  })(RelatedClassInfoWithOptionalRelationship || (RelatedClassInfoWithOptionalRelationship = {}));
263
268
  /** @public */
269
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
264
270
  export var RelationshipPath;
265
271
  (function (RelationshipPath) {
266
272
  /** Reverse direction of the given [[RelationshipPath]] */
@@ -275,8 +281,7 @@ export var RelationshipPath;
275
281
  RelationshipPath.reverse = reverse;
276
282
  /** Check two [[RelationshipPath]] or [[StrippedRelationshipPath]] for equality */
277
283
  function equals(lhs, rhs) {
278
- return lhs.length === rhs.length
279
- && lhs.every((lhsPart, i) => RelatedClassInfo.equals(lhsPart, rhs[i]));
284
+ return lhs.length === rhs.length && lhs.every((lhsPart, i) => RelatedClassInfo.equals(lhsPart, rhs[i]));
280
285
  }
281
286
  RelationshipPath.equals = equals;
282
287
  /** Strip given [[RelationshipPath]] to [[StrippedRelationshipPath]] */