@itwin/presentation-common 5.0.0-dev.56 → 5.0.0-dev.58

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 (250) hide show
  1. package/Ruleset.schema.json +3 -258
  2. package/lib/cjs/presentation-common/AsyncTasks.js +1 -3
  3. package/lib/cjs/presentation-common/AsyncTasks.js.map +1 -1
  4. package/lib/cjs/presentation-common/EC.d.ts +5 -80
  5. package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
  6. package/lib/cjs/presentation-common/EC.js +1 -97
  7. package/lib/cjs/presentation-common/EC.js.map +1 -1
  8. package/lib/cjs/presentation-common/ElementProperties.js +16 -9
  9. package/lib/cjs/presentation-common/ElementProperties.js.map +1 -1
  10. package/lib/cjs/presentation-common/KeySet.d.ts +2 -2
  11. package/lib/cjs/presentation-common/KeySet.d.ts.map +1 -1
  12. package/lib/cjs/presentation-common/KeySet.js +9 -11
  13. package/lib/cjs/presentation-common/KeySet.js.map +1 -1
  14. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js +3 -0
  15. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
  16. package/lib/cjs/presentation-common/LabelDefinition.d.ts +0 -48
  17. package/lib/cjs/presentation-common/LabelDefinition.d.ts.map +1 -1
  18. package/lib/cjs/presentation-common/LabelDefinition.js +1 -44
  19. package/lib/cjs/presentation-common/LabelDefinition.js.map +1 -1
  20. package/lib/cjs/presentation-common/LocalizationHelper.js +1 -0
  21. package/lib/cjs/presentation-common/LocalizationHelper.js.map +1 -1
  22. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts +7 -9
  23. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  24. package/lib/cjs/presentation-common/PresentationRpcInterface.js +21 -17
  25. package/lib/cjs/presentation-common/PresentationRpcInterface.js.map +1 -1
  26. package/lib/cjs/presentation-common/RegisteredRuleset.js +3 -0
  27. package/lib/cjs/presentation-common/RegisteredRuleset.js.map +1 -1
  28. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts +7 -7
  29. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  30. package/lib/cjs/presentation-common/RpcRequestsHandler.js +6 -1
  31. package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
  32. package/lib/cjs/presentation-common/RulesetVariables.d.ts +1 -46
  33. package/lib/cjs/presentation-common/RulesetVariables.d.ts.map +1 -1
  34. package/lib/cjs/presentation-common/RulesetVariables.js.map +1 -1
  35. package/lib/cjs/presentation-common/Update.d.ts +2 -79
  36. package/lib/cjs/presentation-common/Update.d.ts.map +1 -1
  37. package/lib/cjs/presentation-common/Update.js +1 -104
  38. package/lib/cjs/presentation-common/Update.js.map +1 -1
  39. package/lib/cjs/presentation-common/Utils.d.ts +7 -0
  40. package/lib/cjs/presentation-common/Utils.d.ts.map +1 -1
  41. package/lib/cjs/presentation-common/Utils.js +23 -0
  42. package/lib/cjs/presentation-common/Utils.js.map +1 -1
  43. package/lib/cjs/presentation-common/content/Content.d.ts +0 -7
  44. package/lib/cjs/presentation-common/content/Content.d.ts.map +1 -1
  45. package/lib/cjs/presentation-common/content/Content.js +5 -10
  46. package/lib/cjs/presentation-common/content/Content.js.map +1 -1
  47. package/lib/cjs/presentation-common/content/ContentTraverser.js +20 -12
  48. package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
  49. package/lib/cjs/presentation-common/content/Descriptor.d.ts +2 -31
  50. package/lib/cjs/presentation-common/content/Descriptor.d.ts.map +1 -1
  51. package/lib/cjs/presentation-common/content/Descriptor.js +50 -15
  52. package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
  53. package/lib/cjs/presentation-common/content/Fields.d.ts +4 -10
  54. package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
  55. package/lib/cjs/presentation-common/content/Fields.js +77 -35
  56. package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
  57. package/lib/cjs/presentation-common/content/Item.d.ts +5 -31
  58. package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
  59. package/lib/cjs/presentation-common/content/Item.js +24 -48
  60. package/lib/cjs/presentation-common/content/Item.js.map +1 -1
  61. package/lib/cjs/presentation-common/content/Property.d.ts +2 -12
  62. package/lib/cjs/presentation-common/content/Property.d.ts.map +1 -1
  63. package/lib/cjs/presentation-common/content/Property.js +0 -18
  64. package/lib/cjs/presentation-common/content/Property.js.map +1 -1
  65. package/lib/cjs/presentation-common/content/PropertyValueFormatter.js +3 -0
  66. package/lib/cjs/presentation-common/content/PropertyValueFormatter.js.map +1 -1
  67. package/lib/cjs/presentation-common/content/Value.d.ts +0 -106
  68. package/lib/cjs/presentation-common/content/Value.d.ts.map +1 -1
  69. package/lib/cjs/presentation-common/content/Value.js +1 -215
  70. package/lib/cjs/presentation-common/content/Value.js.map +1 -1
  71. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts +1 -22
  72. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
  73. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js +0 -23
  74. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  75. package/lib/cjs/presentation-common/hierarchy/Key.d.ts +0 -83
  76. package/lib/cjs/presentation-common/hierarchy/Key.d.ts.map +1 -1
  77. package/lib/cjs/presentation-common/hierarchy/Key.js +6 -24
  78. package/lib/cjs/presentation-common/hierarchy/Key.js.map +1 -1
  79. package/lib/cjs/presentation-common/hierarchy/Node.d.ts +2 -106
  80. package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
  81. package/lib/cjs/presentation-common/hierarchy/Node.js +0 -99
  82. package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
  83. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts +1 -67
  84. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  85. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js +0 -117
  86. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  87. package/lib/cjs/presentation-common/rules/Rule.d.ts +0 -14
  88. package/lib/cjs/presentation-common/rules/Rule.d.ts.map +1 -1
  89. package/lib/cjs/presentation-common/rules/Rule.js.map +1 -1
  90. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +0 -7
  91. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  92. package/lib/cjs/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  93. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts +1 -5
  94. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  95. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  96. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +2 -28
  97. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  98. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js +1 -15
  99. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  100. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +2 -0
  101. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  102. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  103. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +0 -9
  104. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  105. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  106. package/lib/cjs/presentation-common.d.ts +1 -5
  107. package/lib/cjs/presentation-common.d.ts.map +1 -1
  108. package/lib/cjs/presentation-common.js +2 -5
  109. package/lib/cjs/presentation-common.js.map +1 -1
  110. package/lib/esm/presentation-common/AsyncTasks.js +1 -3
  111. package/lib/esm/presentation-common/AsyncTasks.js.map +1 -1
  112. package/lib/esm/presentation-common/EC.d.ts +5 -80
  113. package/lib/esm/presentation-common/EC.d.ts.map +1 -1
  114. package/lib/esm/presentation-common/EC.js +0 -96
  115. package/lib/esm/presentation-common/EC.js.map +1 -1
  116. package/lib/esm/presentation-common/ElementProperties.js +16 -9
  117. package/lib/esm/presentation-common/ElementProperties.js.map +1 -1
  118. package/lib/esm/presentation-common/KeySet.d.ts +2 -2
  119. package/lib/esm/presentation-common/KeySet.d.ts.map +1 -1
  120. package/lib/esm/presentation-common/KeySet.js +9 -11
  121. package/lib/esm/presentation-common/KeySet.js.map +1 -1
  122. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js +3 -0
  123. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
  124. package/lib/esm/presentation-common/LabelDefinition.d.ts +0 -48
  125. package/lib/esm/presentation-common/LabelDefinition.d.ts.map +1 -1
  126. package/lib/esm/presentation-common/LabelDefinition.js +0 -43
  127. package/lib/esm/presentation-common/LabelDefinition.js.map +1 -1
  128. package/lib/esm/presentation-common/LocalizationHelper.js +1 -0
  129. package/lib/esm/presentation-common/LocalizationHelper.js.map +1 -1
  130. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts +7 -9
  131. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  132. package/lib/esm/presentation-common/PresentationRpcInterface.js +21 -17
  133. package/lib/esm/presentation-common/PresentationRpcInterface.js.map +1 -1
  134. package/lib/esm/presentation-common/RegisteredRuleset.js +3 -0
  135. package/lib/esm/presentation-common/RegisteredRuleset.js.map +1 -1
  136. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts +7 -7
  137. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  138. package/lib/esm/presentation-common/RpcRequestsHandler.js +6 -1
  139. package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
  140. package/lib/esm/presentation-common/RulesetVariables.d.ts +1 -46
  141. package/lib/esm/presentation-common/RulesetVariables.d.ts.map +1 -1
  142. package/lib/esm/presentation-common/RulesetVariables.js.map +1 -1
  143. package/lib/esm/presentation-common/Update.d.ts +2 -79
  144. package/lib/esm/presentation-common/Update.d.ts.map +1 -1
  145. package/lib/esm/presentation-common/Update.js +0 -103
  146. package/lib/esm/presentation-common/Update.js.map +1 -1
  147. package/lib/esm/presentation-common/Utils.d.ts +7 -0
  148. package/lib/esm/presentation-common/Utils.d.ts.map +1 -1
  149. package/lib/esm/presentation-common/Utils.js +22 -0
  150. package/lib/esm/presentation-common/Utils.js.map +1 -1
  151. package/lib/esm/presentation-common/content/Content.d.ts +0 -7
  152. package/lib/esm/presentation-common/content/Content.d.ts.map +1 -1
  153. package/lib/esm/presentation-common/content/Content.js +5 -10
  154. package/lib/esm/presentation-common/content/Content.js.map +1 -1
  155. package/lib/esm/presentation-common/content/ContentTraverser.js +20 -12
  156. package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
  157. package/lib/esm/presentation-common/content/Descriptor.d.ts +2 -31
  158. package/lib/esm/presentation-common/content/Descriptor.d.ts.map +1 -1
  159. package/lib/esm/presentation-common/content/Descriptor.js +50 -15
  160. package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
  161. package/lib/esm/presentation-common/content/Fields.d.ts +4 -10
  162. package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
  163. package/lib/esm/presentation-common/content/Fields.js +77 -35
  164. package/lib/esm/presentation-common/content/Fields.js.map +1 -1
  165. package/lib/esm/presentation-common/content/Item.d.ts +5 -31
  166. package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
  167. package/lib/esm/presentation-common/content/Item.js +24 -48
  168. package/lib/esm/presentation-common/content/Item.js.map +1 -1
  169. package/lib/esm/presentation-common/content/Property.d.ts +2 -12
  170. package/lib/esm/presentation-common/content/Property.d.ts.map +1 -1
  171. package/lib/esm/presentation-common/content/Property.js +0 -18
  172. package/lib/esm/presentation-common/content/Property.js.map +1 -1
  173. package/lib/esm/presentation-common/content/PropertyValueFormatter.js +3 -0
  174. package/lib/esm/presentation-common/content/PropertyValueFormatter.js.map +1 -1
  175. package/lib/esm/presentation-common/content/Value.d.ts +0 -106
  176. package/lib/esm/presentation-common/content/Value.d.ts.map +1 -1
  177. package/lib/esm/presentation-common/content/Value.js +0 -214
  178. package/lib/esm/presentation-common/content/Value.js.map +1 -1
  179. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts +1 -22
  180. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
  181. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js +1 -22
  182. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  183. package/lib/esm/presentation-common/hierarchy/Key.d.ts +0 -83
  184. package/lib/esm/presentation-common/hierarchy/Key.d.ts.map +1 -1
  185. package/lib/esm/presentation-common/hierarchy/Key.js +6 -24
  186. package/lib/esm/presentation-common/hierarchy/Key.js.map +1 -1
  187. package/lib/esm/presentation-common/hierarchy/Node.d.ts +2 -106
  188. package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
  189. package/lib/esm/presentation-common/hierarchy/Node.js +1 -98
  190. package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
  191. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts +1 -67
  192. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  193. package/lib/esm/presentation-common/hierarchy/NodePathElement.js +1 -116
  194. package/lib/esm/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  195. package/lib/esm/presentation-common/rules/Rule.d.ts +0 -14
  196. package/lib/esm/presentation-common/rules/Rule.d.ts.map +1 -1
  197. package/lib/esm/presentation-common/rules/Rule.js.map +1 -1
  198. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +0 -7
  199. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  200. package/lib/esm/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  201. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts +1 -5
  202. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  203. package/lib/esm/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  204. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +2 -28
  205. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  206. package/lib/esm/presentation-common/rules/customization/GroupingRule.js +0 -14
  207. package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  208. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +2 -0
  209. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  210. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  211. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +0 -9
  212. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  213. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  214. package/lib/esm/presentation-common.d.ts +1 -5
  215. package/lib/esm/presentation-common.d.ts.map +1 -1
  216. package/lib/esm/presentation-common.js +1 -5
  217. package/lib/esm/presentation-common.js.map +1 -1
  218. package/package.json +10 -10
  219. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts +0 -45
  220. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts.map +0 -1
  221. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js +0 -10
  222. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js.map +0 -1
  223. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts +0 -30
  224. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts.map +0 -1
  225. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js +0 -10
  226. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js.map +0 -1
  227. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts +0 -41
  228. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts.map +0 -1
  229. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js +0 -10
  230. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js.map +0 -1
  231. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts +0 -49
  232. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts.map +0 -1
  233. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js +0 -10
  234. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js.map +0 -1
  235. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts +0 -45
  236. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts.map +0 -1
  237. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js +0 -9
  238. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js.map +0 -1
  239. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts +0 -30
  240. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts.map +0 -1
  241. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js +0 -9
  242. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js.map +0 -1
  243. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts +0 -41
  244. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts.map +0 -1
  245. package/lib/esm/presentation-common/rules/customization/LabelOverride.js +0 -9
  246. package/lib/esm/presentation-common/rules/customization/LabelOverride.js.map +0 -1
  247. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts +0 -49
  248. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts.map +0 -1
  249. package/lib/esm/presentation-common/rules/customization/StyleOverride.js +0 -9
  250. package/lib/esm/presentation-common/rules/customization/StyleOverride.js.map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K,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;gBACxD,OAAO,KAAK,CAAC;YACf,CAAC;YACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;gBACjD,IAAI,CAAC,KAAK,gBAAW,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;oBACxE,OAAO,KAAK,CAAC;gBACf,CAAC;YACH,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC;YAChC,IAAA,qBAAM,EAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC;YACpC,OAAO,GAAG,CAAC,SAAS,KAAK,GAAG,CAAC,SAAS,CAAC;QACzC,CAAC;QACD,IAAI,yBAAyB,CAAC,GAAG,CAAC,EAAE,CAAC;YACnC,IAAA,qBAAM,EAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC,CAAC;YACvC,OAAO,GAAG,CAAC,SAAS,KAAK,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,YAAY,KAAK,GAAG,CAAC,YAAY,CAAC;QAClF,CAAC;QACD,IAAI,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC;YAChC,IAAA,qBAAM,EAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC;YACpC,OAAO,GAAG,CAAC,KAAK,KAAK,GAAG,CAAC,KAAK,CAAC;QACjC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAhDe,cAAM,SAgDrB,CAAA;AACH,CAAC,EA1HgB,OAAO,uBAAP,OAAO,QA0HvB","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 Hierarchies\n */\n\nimport { assert, Id64String } from \"@itwin/core-bentley\";\nimport { InstanceKey } from \"../EC\";\n\n/**\n * Standard node types\n * @public\n */\nexport enum StandardNodeTypes {\n ECInstancesNode = \"ECInstancesNode\",\n ECClassGroupingNode = \"ECClassGroupingNode\",\n ECPropertyGroupingNode = \"ECPropertyGroupingNode\",\n DisplayLabelGroupingNode = \"DisplayLabelGroupingNode\",\n}\n\n/**\n * One of the node key types\n * @public\n */\nexport type NodeKey = BaseNodeKey | ECInstancesNodeKey | ECClassGroupingNodeKey | ECPropertyGroupingNodeKey | LabelGroupingNodeKey;\n/** @public */\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport namespace NodeKey {\n /**\n * Serialize given [[NodeKey]] to JSON\n * @deprecated in 3.x. Use [[NodeKey]].\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function toJSON(key: NodeKey): NodeKeyJSON {\n return { ...key };\n }\n\n /**\n * Deserialize node key from JSON\n * @deprecated in 3.x. Use [[NodeKey]].\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function fromJSON(json: NodeKeyJSON): NodeKey {\n return { version: 1, ...json };\n }\n\n /** Checks if the supplied key is an [[ECInstancesNodeKey]] */\n export function isInstancesNodeKey(key: NodeKey): key is ECInstancesNodeKey;\n /** Checks if the supplied key is an [[ECInstancesNodeKey]]. @deprecated in 3.x. Use an override for [[NodeKey]]. */\n export function isInstancesNodeKey(key: NodeKeyJSON): key is ECInstancesNodeKeyJSON;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function isInstancesNodeKey(key: NodeKey | NodeKeyJSON) {\n return key.type === StandardNodeTypes.ECInstancesNode;\n }\n\n /** Checks if the supplied key is an [[ECClassGroupingNodeKey]] */\n export function isClassGroupingNodeKey(key: NodeKey): key is ECClassGroupingNodeKey;\n /** Checks if the supplied key is an [[ECClassGroupingNodeKey]]. @deprecated in 3.x. Use an override for [[NodeKey]]. */\n export function isClassGroupingNodeKey(key: NodeKeyJSON): key is ECClassGroupingNodeKeyJSON;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function isClassGroupingNodeKey(key: NodeKey | NodeKeyJSON) {\n return key.type === StandardNodeTypes.ECClassGroupingNode;\n }\n\n /** Checks if the supplied key is an [[ECPropertyGroupingNodeKey]] */\n export function isPropertyGroupingNodeKey(key: NodeKey): key is ECPropertyGroupingNodeKey;\n /** Checks if the supplied key is an [[ECPropertyGroupingNodeKey]]. @deprecated in 3.x. Use an override for [[NodeKey]]. */\n export function isPropertyGroupingNodeKey(key: NodeKeyJSON): key is ECPropertyGroupingNodeKeyJSON;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function isPropertyGroupingNodeKey(key: NodeKey | NodeKeyJSON) {\n return key.type === StandardNodeTypes.ECPropertyGroupingNode;\n }\n\n /** Checks if the supplied key is a [[LabelGroupingNodeKey]] */\n export function isLabelGroupingNodeKey(key: NodeKey): key is LabelGroupingNodeKey;\n /** Checks if the supplied key is a [[LabelGroupingNodeKey]]. @deprecated in 3.x. Use an override for [[NodeKey]]. */\n export function isLabelGroupingNodeKey(key: NodeKeyJSON): key is LabelGroupingNodeKeyJSON;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function isLabelGroupingNodeKey(key: NodeKey | NodeKeyJSON) {\n return key.type === StandardNodeTypes.DisplayLabelGroupingNode;\n }\n\n /** Checks if the supplied key is a grouping node key */\n export function isGroupingNodeKey(key: NodeKey): key is GroupingNodeKey;\n /** Checks if the supplied key is a grouping node key. @deprecated in 3.x. Use an override for [[NodeKey]]. */\n export function isGroupingNodeKey(key: NodeKeyJSON): key is GroupingNodeKeyJSON;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function isGroupingNodeKey(key: NodeKey | NodeKeyJSON) {\n return isClassGroupingNodeKey(key) || isPropertyGroupingNodeKey(key) || isLabelGroupingNodeKey(key); // eslint-disable-line @typescript-eslint/no-deprecated\n }\n\n /**\n * Checks if two given node keys are equal, taking their versions into account.\n *\n * When comparing two keys of the same version, the algorithm uses [[NodeKey.pathFromRoot]] array\n * which is the most accurate way of checking equality. However, when version are different,\n * [[NodeKey.pathFromRoot]] array may contain different strings even though keys represent the same node.\n * In that case equality is checked using other key attributes, depending on the type of the node (type,\n * label, grouping class, property name, etc.).\n */\n export function equals(lhs: NodeKey, rhs: NodeKey): boolean {\n // types must always be equal\n if (lhs.type !== rhs.type) {\n return false;\n }\n\n // `pathFromRoot` lengths must always be equal\n if (lhs.pathFromRoot.length !== rhs.pathFromRoot.length) {\n return false;\n }\n\n // when versions are equal, compare using contents of `pathFromRoot` array\n if (lhs.version === rhs.version) {\n for (let i = 0; i < lhs.pathFromRoot.length; ++i) {\n if (lhs.pathFromRoot[i] !== rhs.pathFromRoot[i]) {\n return false;\n }\n }\n return true;\n }\n\n // when versions aren't equal, compare using other key information, because key hashes\n // of different key versions can't be compared\n if (isInstancesNodeKey(lhs)) {\n assert(isInstancesNodeKey(rhs));\n if (lhs.instanceKeys.length !== rhs.instanceKeys.length) {\n return false;\n }\n for (let i = 0; i < lhs.instanceKeys.length; ++i) {\n if (0 !== InstanceKey.compare(lhs.instanceKeys[i], rhs.instanceKeys[i])) {\n return false;\n }\n }\n return true;\n }\n if (isClassGroupingNodeKey(lhs)) {\n assert(isClassGroupingNodeKey(rhs));\n return lhs.className === rhs.className;\n }\n if (isPropertyGroupingNodeKey(lhs)) {\n assert(isPropertyGroupingNodeKey(rhs));\n return lhs.className === rhs.className && lhs.propertyName === rhs.propertyName;\n }\n if (isLabelGroupingNodeKey(lhs)) {\n assert(isLabelGroupingNodeKey(rhs));\n return lhs.label === rhs.label;\n }\n return true;\n }\n}\n\n/**\n * Node key path. Can be used to define path from one node to another.\n * @public\n */\nexport type NodeKeyPath = NodeKey[];\n\n/**\n * Data structure that describes a basic node key\n * @public\n */\nexport interface BaseNodeKey {\n /** Node type */\n type: string;\n\n /**\n * Version of the key. Different versions suggest that node keys were created by two different\n * versions of the library. In that case, keys representing the same node may be different.\n */\n version: number;\n\n /** Node hash path from root to the node whose key this is */\n pathFromRoot: string[];\n\n /** Query that returns all selected instance keys */\n instanceKeysSelectQuery?: PresentationQuery;\n}\n/**\n * Serialized [[BaseNodeKey]] JSON representation.\n * @public\n * @deprecated in 3.x. Use [[BaseNodeKey]].\n */\nexport interface BaseNodeKeyJSON {\n type: string;\n // TODO: make this required\n version?: number;\n pathFromRoot: string[];\n instanceKeysSelectQuery?: PresentationQuery;\n}\n\n/**\n * Data structure that describes a node ECInstance node key\n * @public\n */\nexport interface ECInstancesNodeKey extends BaseNodeKey {\n type: StandardNodeTypes.ECInstancesNode;\n /** List of [[InstanceKey]] objects of ECInstances represented by the node */\n instanceKeys: InstanceKey[];\n}\n/**\n * Serialized [[ECInstancesNodeKey]] JSON representation.\n * @public\n * @deprecated in 3.x. Use [[ECInstancesNodeKey]].\n */\nexport interface ECInstancesNodeKeyJSON extends BaseNodeKey {\n type: StandardNodeTypes.ECInstancesNode;\n instanceKeys: InstanceKey[];\n}\n\n/**\n * Data structure that describes a grouping node key\n * @public\n */\nexport interface GroupingNodeKey extends BaseNodeKey {\n /**\n * Get the number of instances grouped by the node represented\n * by this key.\n *\n * **Note:** this property is just a helper and is not involved\n * in identifying a node.\n */\n groupedInstancesCount: number;\n}\n/**\n * Serialized [[GroupingNodeKey]] JSON representation.\n * @public\n * @deprecated in 3.x. Use [[GroupingNodeKey]].\n */\nexport interface GroupingNodeKeyJSON extends BaseNodeKey {\n groupedInstancesCount: number;\n}\n\n/**\n * Data structure that describes an ECClass grouping node key\n * @public\n */\nexport interface ECClassGroupingNodeKey extends GroupingNodeKey {\n type: StandardNodeTypes.ECClassGroupingNode;\n /** Full name of the grouping ECClass */\n className: string;\n}\n/**\n * Serialized [[ECClassGroupingNodeKey]] JSON representation.\n * @public\n * @deprecated in 3.x. Use [[ECClassGroupingNodeKey]].\n */\nexport interface ECClassGroupingNodeKeyJSON extends GroupingNodeKey {\n type: StandardNodeTypes.ECClassGroupingNode;\n className: string;\n}\n\n/**\n * Data structure that describes an ECProperty grouping node key\n * @public\n */\nexport interface ECPropertyGroupingNodeKey extends GroupingNodeKey {\n type: StandardNodeTypes.ECPropertyGroupingNode;\n /** Full name of the grouping ECProperty class */\n className: string;\n /** Name of the ECProperty */\n propertyName: string;\n /** Raw grouping values */\n groupingValues: any[];\n}\n/**\n * Serialized [[ECPropertyGroupingNodeKey]] JSON representation.\n * @public\n * @deprecated in 3.x. Use [[ECPropertyGroupingNodeKey]].\n */\nexport interface ECPropertyGroupingNodeKeyJSON extends GroupingNodeKey {\n type: StandardNodeTypes.ECPropertyGroupingNode;\n className: string;\n propertyName: string;\n groupingValues: any[];\n}\n\n/**\n * Data structure that describes a display label grouping node key\n * @public\n */\nexport interface LabelGroupingNodeKey extends GroupingNodeKey {\n type: StandardNodeTypes.DisplayLabelGroupingNode;\n /** Grouping display label */\n label: string;\n}\n/**\n * Serialized [[LabelGroupingNodeKey]] JSON representation.\n * @public\n * @deprecated in 3.x. Use [[LabelGroupingNodeKey]].\n */\nexport interface LabelGroupingNodeKeyJSON extends GroupingNodeKey {\n type: StandardNodeTypes.DisplayLabelGroupingNode;\n label: string;\n}\n\n/**\n * One of the serialized node key types\n * @public\n * @deprecated in 3.x. Use [[NodeKey]].\n */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport type NodeKeyJSON = BaseNodeKeyJSON | ECInstancesNodeKeyJSON | ECClassGroupingNodeKeyJSON | ECPropertyGroupingNodeKeyJSON | LabelGroupingNodeKeyJSON;\n\n/**\n * Data structure that describes a presentation query\n * @public\n */\nexport interface PresentationQuery {\n /** ECSQL query */\n query: string;\n /** The query bindings */\n bindings?: PresentationQueryBinding[];\n}\n\n/**\n * Defines an [[Id64String]] value binding.\n * @public\n */\nexport interface IdBinding {\n type: \"Id\";\n value: Id64String;\n}\n\n/**\n * Defines an [[IdSet]] value binding for use with `InVirtualSet` ECSQL function.\n * @public\n */\nexport interface IdSetBinding {\n type: \"IdSet\";\n value: Id64String[];\n}\n\n/**\n * Defines an EC value binding.\n * @public\n */\nexport interface ECValueBinding {\n type: \"ECValue\";\n valueType: string;\n valueTypeExtended?: string;\n value: any;\n}\n\n/**\n * Defines a binding for a list of EC values for use with `InVirtualSet` ECSQL function.\n * @public\n */\nexport interface ECValueSetBinding {\n type: \"ValueSet\";\n valueType: string;\n valueTypeExtended?: string;\n value: any[];\n}\n\n/**\n * One of the [[PresentationQuery]] binding types.\n * @public\n */\nexport type PresentationQueryBinding = IdBinding | IdSetBinding | ECValueBinding | ECValueSetBinding;\n"]}
1
+ {"version":3,"file":"Key.js","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/Key.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,sDAAyD;AACzD,8BAAoC;AAEpC;;;GAGG;AACH,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,wDAAmC,CAAA;IACnC,gEAA2C,CAAA;IAC3C,sEAAiD,CAAA;IACjD,0EAAqD,CAAA;AACvD,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B;AAOD,cAAc;AACd,2DAA2D;AAC3D,IAAiB,OAAO,CAoFvB;AApFD,WAAiB,OAAO;IACtB,8DAA8D;IAC9D,SAAgB,kBAAkB,CAAC,GAAY;QAC7C,OAAO,GAAG,CAAC,IAAI,KAAK,iBAAiB,CAAC,eAAe,CAAC;IACxD,CAAC;IAFe,0BAAkB,qBAEjC,CAAA;IAED,kEAAkE;IAClE,SAAgB,sBAAsB,CAAC,GAAY;QACjD,OAAO,GAAG,CAAC,IAAI,KAAK,iBAAiB,CAAC,mBAAmB,CAAC;IAC5D,CAAC;IAFe,8BAAsB,yBAErC,CAAA;IAED,qEAAqE;IACrE,SAAgB,yBAAyB,CAAC,GAAY;QACpD,OAAO,GAAG,CAAC,IAAI,KAAK,iBAAiB,CAAC,sBAAsB,CAAC;IAC/D,CAAC;IAFe,iCAAyB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C,YAAY,CAAC,MAAM,KAAK,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;gBACxD,OAAO,KAAK,CAAC;YACf,CAAC;YACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;gBACjD,IAAI,CAAC,KAAK,gBAAW,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;oBACxE,OAAO,KAAK,CAAC;gBACf,CAAC;YACH,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC;YAChC,IAAA,qBAAM,EAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC;YACpC,OAAO,GAAG,CAAC,SAAS,KAAK,GAAG,CAAC,SAAS,CAAC;QACzC,CAAC;QACD,IAAI,yBAAyB,CAAC,GAAG,CAAC,EAAE,CAAC;YACnC,IAAA,qBAAM,EAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC,CAAC;YACvC,OAAO,GAAG,CAAC,SAAS,KAAK,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,YAAY,KAAK,GAAG,CAAC,YAAY,CAAC;QAClF,CAAC;QACD,IAAI,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC;YAChC,IAAA,qBAAM,EAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC;YACpC,OAAO,GAAG,CAAC,KAAK,KAAK,GAAG,CAAC,KAAK,CAAC;QACjC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAhDe,cAAM,SAgDrB,CAAA;AACH,CAAC,EApFgB,OAAO,uBAAP,OAAO,QAoFvB","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 Hierarchies\n */\n\nimport { assert, Id64String } from \"@itwin/core-bentley\";\nimport { InstanceKey } from \"../EC\";\n\n/**\n * Standard node types\n * @public\n */\nexport enum StandardNodeTypes {\n ECInstancesNode = \"ECInstancesNode\",\n ECClassGroupingNode = \"ECClassGroupingNode\",\n ECPropertyGroupingNode = \"ECPropertyGroupingNode\",\n DisplayLabelGroupingNode = \"DisplayLabelGroupingNode\",\n}\n\n/**\n * One of the node key types\n * @public\n */\nexport type NodeKey = BaseNodeKey | ECInstancesNodeKey | ECClassGroupingNodeKey | ECPropertyGroupingNodeKey | LabelGroupingNodeKey;\n/** @public */\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport namespace NodeKey {\n /** Checks if the supplied key is an [[ECInstancesNodeKey]] */\n export function isInstancesNodeKey(key: NodeKey): key is ECInstancesNodeKey {\n return key.type === StandardNodeTypes.ECInstancesNode;\n }\n\n /** Checks if the supplied key is an [[ECClassGroupingNodeKey]] */\n export function isClassGroupingNodeKey(key: NodeKey): key is ECClassGroupingNodeKey {\n return key.type === StandardNodeTypes.ECClassGroupingNode;\n }\n\n /** Checks if the supplied key is an [[ECPropertyGroupingNodeKey]] */\n export function isPropertyGroupingNodeKey(key: NodeKey): key is ECPropertyGroupingNodeKey {\n return key.type === StandardNodeTypes.ECPropertyGroupingNode;\n }\n\n /** Checks if the supplied key is a [[LabelGroupingNodeKey]] */\n export function isLabelGroupingNodeKey(key: NodeKey): key is LabelGroupingNodeKey {\n return key.type === StandardNodeTypes.DisplayLabelGroupingNode;\n }\n\n /** Checks if the supplied key is a grouping node key */\n export function isGroupingNodeKey(key: NodeKey): key is GroupingNodeKey {\n return isClassGroupingNodeKey(key) || isPropertyGroupingNodeKey(key) || isLabelGroupingNodeKey(key);\n }\n\n /**\n * Checks if two given node keys are equal, taking their versions into account.\n *\n * When comparing two keys of the same version, the algorithm uses [[NodeKey.pathFromRoot]] array\n * which is the most accurate way of checking equality. However, when version are different,\n * [[NodeKey.pathFromRoot]] array may contain different strings even though keys represent the same node.\n * In that case equality is checked using other key attributes, depending on the type of the node (type,\n * label, grouping class, property name, etc.).\n */\n export function equals(lhs: NodeKey, rhs: NodeKey): boolean {\n // types must always be equal\n if (lhs.type !== rhs.type) {\n return false;\n }\n\n // `pathFromRoot` lengths must always be equal\n if (lhs.pathFromRoot.length !== rhs.pathFromRoot.length) {\n return false;\n }\n\n // when versions are equal, compare using contents of `pathFromRoot` array\n if (lhs.version === rhs.version) {\n for (let i = 0; i < lhs.pathFromRoot.length; ++i) {\n if (lhs.pathFromRoot[i] !== rhs.pathFromRoot[i]) {\n return false;\n }\n }\n return true;\n }\n\n // when versions aren't equal, compare using other key information, because key hashes\n // of different key versions can't be compared\n if (isInstancesNodeKey(lhs)) {\n assert(isInstancesNodeKey(rhs));\n if (lhs.instanceKeys.length !== rhs.instanceKeys.length) {\n return false;\n }\n for (let i = 0; i < lhs.instanceKeys.length; ++i) {\n if (0 !== InstanceKey.compare(lhs.instanceKeys[i], rhs.instanceKeys[i])) {\n return false;\n }\n }\n return true;\n }\n if (isClassGroupingNodeKey(lhs)) {\n assert(isClassGroupingNodeKey(rhs));\n return lhs.className === rhs.className;\n }\n if (isPropertyGroupingNodeKey(lhs)) {\n assert(isPropertyGroupingNodeKey(rhs));\n return lhs.className === rhs.className && lhs.propertyName === rhs.propertyName;\n }\n if (isLabelGroupingNodeKey(lhs)) {\n assert(isLabelGroupingNodeKey(rhs));\n return lhs.label === rhs.label;\n }\n return true;\n }\n}\n\n/**\n * Node key path. Can be used to define path from one node to another.\n * @public\n */\nexport type NodeKeyPath = NodeKey[];\n\n/**\n * Data structure that describes a basic node key\n * @public\n */\nexport interface BaseNodeKey {\n /** Node type */\n type: string;\n\n /**\n * Version of the key. Different versions suggest that node keys were created by two different\n * versions of the library. In that case, keys representing the same node may be different.\n */\n version: number;\n\n /** Node hash path from root to the node whose key this is */\n pathFromRoot: string[];\n\n /** Query that returns all selected instance keys */\n instanceKeysSelectQuery?: PresentationQuery;\n}\n\n/**\n * Data structure that describes a node ECInstance node key\n * @public\n */\nexport interface ECInstancesNodeKey extends BaseNodeKey {\n type: StandardNodeTypes.ECInstancesNode;\n /** List of [[InstanceKey]] objects of ECInstances represented by the node */\n instanceKeys: InstanceKey[];\n}\n\n/**\n * Data structure that describes a grouping node key\n * @public\n */\nexport interface GroupingNodeKey extends BaseNodeKey {\n /**\n * Get the number of instances grouped by the node represented\n * by this key.\n *\n * **Note:** this property is just a helper and is not involved\n * in identifying a node.\n */\n groupedInstancesCount: number;\n}\n\n/**\n * Data structure that describes an ECClass grouping node key\n * @public\n */\nexport interface ECClassGroupingNodeKey extends GroupingNodeKey {\n type: StandardNodeTypes.ECClassGroupingNode;\n /** Full name of the grouping ECClass */\n className: string;\n}\n\n/**\n * Data structure that describes an ECProperty grouping node key\n * @public\n */\nexport interface ECPropertyGroupingNodeKey extends GroupingNodeKey {\n type: StandardNodeTypes.ECPropertyGroupingNode;\n /** Full name of the grouping ECProperty class */\n className: string;\n /** Name of the ECProperty */\n propertyName: string;\n /** Raw grouping values */\n groupingValues: any[];\n}\n\n/**\n * Data structure that describes a display label grouping node key\n * @public\n */\nexport interface LabelGroupingNodeKey extends GroupingNodeKey {\n type: StandardNodeTypes.DisplayLabelGroupingNode;\n /** Grouping display label */\n label: string;\n}\n\n/**\n * Data structure that describes a presentation query\n * @public\n */\nexport interface PresentationQuery {\n /** ECSQL query */\n query: string;\n /** The query bindings */\n bindings?: PresentationQueryBinding[];\n}\n\n/**\n * Defines an [[Id64String]] value binding.\n * @public\n */\nexport interface IdBinding {\n type: \"Id\";\n value: Id64String;\n}\n\n/**\n * Defines an [[IdSet]] value binding for use with `InVirtualSet` ECSQL function.\n * @public\n */\nexport interface IdSetBinding {\n type: \"IdSet\";\n value: Id64String[];\n}\n\n/**\n * Defines an EC value binding.\n * @public\n */\nexport interface ECValueBinding {\n type: \"ECValue\";\n valueType: string;\n valueTypeExtended?: string;\n value: any;\n}\n\n/**\n * Defines a binding for a list of EC values for use with `InVirtualSet` ECSQL function.\n * @public\n */\nexport interface ECValueSetBinding {\n type: \"ValueSet\";\n valueType: string;\n valueTypeExtended?: string;\n value: any[];\n}\n\n/**\n * One of the [[PresentationQuery]] binding types.\n * @public\n */\nexport type PresentationQueryBinding = IdBinding | IdSetBinding | ECValueBinding | ECValueSetBinding;\n"]}
@@ -1,8 +1,8 @@
1
1
  /** @packageDocumentation
2
2
  * @module Hierarchies
3
3
  */
4
- import { LabelDefinition, LabelDefinitionJSON } from "../LabelDefinition";
5
- import { NodeKey, NodeKeyJSON } from "./Key";
4
+ import { LabelDefinition } from "../LabelDefinition";
5
+ import { NodeKey } from "./Key";
6
6
  /**
7
7
  * Data structure that describes a tree node.
8
8
  * @public
@@ -19,21 +19,6 @@ export interface Node {
19
19
  * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
20
20
  */
21
21
  imageId?: string;
22
- /**
23
- * Foreground color
24
- * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
25
- */
26
- foreColor?: string;
27
- /**
28
- * Background color
29
- * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
30
- */
31
- backColor?: string;
32
- /**
33
- * Font style
34
- * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
35
- */
36
- fontStyle?: string;
37
22
  /** Does this node have child nodes */
38
23
  hasChildren?: boolean;
39
24
  /** Is this node selectable */
@@ -42,21 +27,6 @@ export interface Node {
42
27
  isEditable?: boolean;
43
28
  /** Is this node expanded */
44
29
  isExpanded?: boolean;
45
- /**
46
- * Is checkbox visible for this node
47
- * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
48
- */
49
- isCheckboxVisible?: boolean;
50
- /**
51
- * Is this node's checkbox checked
52
- * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
53
- */
54
- isChecked?: boolean;
55
- /**
56
- * Is this node's checkbox enabled
57
- * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
58
- */
59
- isCheckboxEnabled?: boolean;
60
30
  /**
61
31
  * Identifies whether the hierarchy level below this node supports filtering. If not, requesting either a hierarchy level descriptor or
62
32
  * a hierarchy level with [[HierarchyRequestOptions.instanceFilter]] will throw an error with [[PresentationStatus.InvalidArgument]] status.
@@ -67,87 +37,13 @@ export interface Node {
67
37
  [key: string]: any;
68
38
  };
69
39
  }
70
- /**
71
- * Serialized [[Node]] JSON representation.
72
- * @public
73
- * @deprecated in 3.x. Use [[Node]].
74
- */
75
- export interface NodeJSON {
76
- key: NodeKeyJSON;
77
- labelDefinition: LabelDefinitionJSON;
78
- description?: string;
79
- /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */
80
- imageId?: string;
81
- /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */
82
- foreColor?: string;
83
- /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */
84
- backColor?: string;
85
- /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */
86
- fontStyle?: string;
87
- hasChildren?: boolean;
88
- isSelectionDisabled?: boolean;
89
- isEditable?: boolean;
90
- isExpanded?: boolean;
91
- /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */
92
- isCheckboxVisible?: boolean;
93
- /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */
94
- isChecked?: boolean;
95
- /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */
96
- isCheckboxEnabled?: boolean;
97
- supportsFiltering?: boolean;
98
- extendedData?: {
99
- [key: string]: any;
100
- };
101
- }
102
40
  /**
103
41
  * Partial node definition.
104
42
  * @public
105
43
  */
106
44
  export type PartialNode = AllOrNone<Partial<Node>, "key" | "label">;
107
- /**
108
- * Serialized [[PartialNode]] JSON representation.
109
- * @public
110
- * @deprecated in 3.x. Use [[PartialNode]].
111
- */
112
- export type PartialNodeJSON = AllOrNone<Partial<NodeJSON>, "key" | "labelDefinition">;
113
45
  type AllOrNone<T, P extends keyof T> = Omit<T, P> & ({
114
46
  [K in P]?: never;
115
47
  } | Required<Pick<T, P>>);
116
- /** @public */
117
- export declare namespace Node {
118
- /**
119
- * Serialize given [[Node]] to JSON
120
- * @deprecated in 3.x. Use [[Node]].
121
- */
122
- function toJSON(node: Node): NodeJSON;
123
- /** @internal */
124
- function toPartialJSON(node: PartialNode): PartialNodeJSON;
125
- /**
126
- * Deserialize [[Node]] from JSON
127
- * @deprecated in 3.x. Use [[Node]].
128
- */
129
- function fromJSON(json: NodeJSON | string): Node;
130
- /** @internal */
131
- function fromPartialJSON(json: PartialNodeJSON): PartialNode;
132
- /**
133
- * Reviver function that can be used as a second argument for
134
- * `JSON.parse` method when parsing [[Node]] objects.
135
- * @internal
136
- */
137
- function reviver(key: string, value: any): any;
138
- /**
139
- * Deserialize nodes list from JSON
140
- * @param json JSON or JSON serialized to string to deserialize from
141
- * @returns Deserialized nodes list
142
- * @internal
143
- */
144
- function listFromJSON(json: NodeJSON[] | string): Node[];
145
- /**
146
- * Reviver function that can be used as a second argument for
147
- * `JSON.parse` method when parsing [[Node]][] objects.
148
- * @internal
149
- */
150
- function listReviver(key: string, value: any): any;
151
- }
152
48
  export {};
153
49
  //# sourceMappingURL=Node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/Node.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE7C;;;GAGG;AACH,MAAM,WAAW,IAAI;IACnB,6CAA6C;IAC7C,GAAG,EAAE,OAAO,CAAC;IACb,uCAAuC;IACvC,KAAK,EAAE,eAAe,CAAC;IACvB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,4BAA4B;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,4CAA4C;IAC5C,YAAY,CAAC,EAAE;QACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,QAA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O,CAAC;IACrB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,4CAA4C;IAC5C,YAAY,CAAC,EAAE;QACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,CAAC;AAEpE,KAAK,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC;KAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK;CAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC"}
@@ -7,103 +7,4 @@
7
7
  * @module Hierarchies
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.Node = void 0;
11
- const Key_1 = require("./Key");
12
- /** @public */
13
- var Node;
14
- (function (Node) {
15
- /**
16
- * Serialize given [[Node]] to JSON
17
- * @deprecated in 3.x. Use [[Node]].
18
- */
19
- // eslint-disable-next-line @typescript-eslint/no-deprecated
20
- function toJSON(node) {
21
- const { label, ...baseNode } = node;
22
- return {
23
- ...baseNode,
24
- labelDefinition: label,
25
- };
26
- }
27
- Node.toJSON = toJSON;
28
- /** @internal */
29
- // eslint-disable-next-line @typescript-eslint/no-deprecated
30
- function toPartialJSON(node) {
31
- if (node.key === undefined) {
32
- return node;
33
- }
34
- const { label, ...baseNode } = node;
35
- return {
36
- ...baseNode,
37
- labelDefinition: label,
38
- };
39
- }
40
- Node.toPartialJSON = toPartialJSON;
41
- /**
42
- * Deserialize [[Node]] from JSON
43
- * @deprecated in 3.x. Use [[Node]].
44
- */
45
- // eslint-disable-next-line @typescript-eslint/no-deprecated
46
- function fromJSON(json) {
47
- if (typeof json === "string") {
48
- return JSON.parse(json, reviver);
49
- }
50
- const { labelDefinition, ...baseJson } = json;
51
- return {
52
- ...baseJson,
53
- // eslint-disable-next-line @typescript-eslint/no-deprecated
54
- key: Key_1.NodeKey.fromJSON(json.key),
55
- label: labelDefinition,
56
- };
57
- }
58
- Node.fromJSON = fromJSON;
59
- /** @internal */
60
- // eslint-disable-next-line @typescript-eslint/no-deprecated
61
- function fromPartialJSON(json) {
62
- if (json.key === undefined) {
63
- return json;
64
- }
65
- const { key, labelDefinition, ...baseJson } = json;
66
- return {
67
- ...baseJson,
68
- // eslint-disable-next-line @typescript-eslint/no-deprecated
69
- key: Key_1.NodeKey.fromJSON(key),
70
- label: labelDefinition,
71
- };
72
- }
73
- Node.fromPartialJSON = fromPartialJSON;
74
- /**
75
- * Reviver function that can be used as a second argument for
76
- * `JSON.parse` method when parsing [[Node]] objects.
77
- * @internal
78
- */
79
- function reviver(key, value) {
80
- // eslint-disable-next-line @typescript-eslint/no-deprecated
81
- return key === "" ? fromJSON(value) : value;
82
- }
83
- Node.reviver = reviver;
84
- /**
85
- * Deserialize nodes list from JSON
86
- * @param json JSON or JSON serialized to string to deserialize from
87
- * @returns Deserialized nodes list
88
- * @internal
89
- */
90
- // eslint-disable-next-line @typescript-eslint/no-deprecated
91
- function listFromJSON(json) {
92
- if (typeof json === "string") {
93
- return JSON.parse(json, listReviver);
94
- }
95
- // eslint-disable-next-line @typescript-eslint/no-deprecated
96
- return json.map((m) => fromJSON(m));
97
- }
98
- Node.listFromJSON = listFromJSON;
99
- /**
100
- * Reviver function that can be used as a second argument for
101
- * `JSON.parse` method when parsing [[Node]][] objects.
102
- * @internal
103
- */
104
- function listReviver(key, value) {
105
- return key === "" ? listFromJSON(value) : value;
106
- }
107
- Node.listReviver = listReviver;
108
- })(Node || (exports.Node = Node = {}));
109
10
  //# sourceMappingURL=Node.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Node.js","sourceRoot":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IAAI,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;YAC3B,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;QACnD,OAAO;YACL,GAAG,QAAQ;YACX,4DAA4D;YAC5D,GAAG,EAAE,aAAO,CAAC,QAAQ,CAAC,GAAG,CAAC;YAC1B,KAAK,EAAE,eAAe;SACvB,CAAC;IACJ,CAAC;IAZe,oBAAe,kBAY9B,CAAA;IAED;;;;OAIG;IACH,SAAgB,OAAO,CAAC,GAAW,EAAE,KAAU;QAC7C,4DAA4D;QAC5D,OAAO,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC9C,CAAC;IAHe,YAAO,UAGtB,CAAA;IAED;;;;;OAKG;IACH,4DAA4D;IAC5D,SAAgB,YAAY,CAAC,IAAyB;QACpD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACvC,CAAC;QACD,4DAA4D;QAC5D,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,CAAC;IANe,iBAAY,eAM3B,CAAA;IAED;;;;OAIG;IACH,SAAgB,WAAW,CAAC,GAAW,EAAE,KAAU;QACjD,OAAO,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAClD,CAAC;IAFe,gBAAW,cAE1B,CAAA;AACH,CAAC,EA/FgB,IAAI,oBAAJ,IAAI,QA+FpB","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 Hierarchies\n */\n\nimport { LabelDefinition, LabelDefinitionJSON } from \"../LabelDefinition\";\nimport { NodeKey, NodeKeyJSON } from \"./Key\";\n\n/**\n * Data structure that describes a tree node.\n * @public\n */\nexport interface Node {\n /** A key that uniquely identifies a node. */\n key: NodeKey;\n /** Definition of node display label */\n label: LabelDefinition;\n /** Extensive description */\n description?: string;\n /**\n * Image ID\n * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n imageId?: string;\n /**\n * Foreground color\n * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n foreColor?: string;\n /**\n * Background color\n * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n backColor?: string;\n /**\n * Font style\n * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n fontStyle?: string;\n /** Does this node have child nodes */\n hasChildren?: boolean;\n /** Is this node selectable */\n isSelectionDisabled?: boolean;\n /** Is this node editable */\n isEditable?: boolean;\n /** Is this node expanded */\n isExpanded?: boolean;\n /**\n * Is checkbox visible for this node\n * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n isCheckboxVisible?: boolean;\n /**\n * Is this node's checkbox checked\n * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n isChecked?: boolean;\n /**\n * Is this node's checkbox enabled\n * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n isCheckboxEnabled?: boolean;\n /**\n * Identifies whether the hierarchy level below this node supports filtering. If not, requesting either a hierarchy level descriptor or\n * a hierarchy level with [[HierarchyRequestOptions.instanceFilter]] will throw an error with [[PresentationStatus.InvalidArgument]] status.\n */\n supportsFiltering?: boolean;\n /** Extended data injected into this node */\n extendedData?: {\n [key: string]: any;\n };\n}\n\n/**\n * Serialized [[Node]] JSON representation.\n * @public\n * @deprecated in 3.x. Use [[Node]].\n */\nexport interface NodeJSON {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n key: NodeKeyJSON;\n // TODO: rename to `label`\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n labelDefinition: LabelDefinitionJSON;\n description?: string;\n /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */\n imageId?: string;\n /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */\n foreColor?: string;\n /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */\n backColor?: string;\n /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */\n fontStyle?: string;\n hasChildren?: boolean;\n isSelectionDisabled?: boolean;\n isEditable?: boolean;\n isExpanded?: boolean;\n /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */\n isCheckboxVisible?: boolean;\n /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */\n isChecked?: boolean;\n /** @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details. */\n isCheckboxEnabled?: boolean;\n supportsFiltering?: boolean;\n extendedData?: {\n [key: string]: any;\n };\n}\n\n/**\n * Partial node definition.\n * @public\n */\nexport type PartialNode = AllOrNone<Partial<Node>, \"key\" | \"label\">;\n\n/**\n * Serialized [[PartialNode]] JSON representation.\n * @public\n * @deprecated in 3.x. Use [[PartialNode]].\n */\nexport type PartialNodeJSON = AllOrNone<Partial<NodeJSON>, \"key\" | \"labelDefinition\">;\n\ntype AllOrNone<T, P extends keyof T> = Omit<T, P> & ({ [K in P]?: never } | Required<Pick<T, P>>);\n\n/** @public */\nexport namespace Node {\n /**\n * Serialize given [[Node]] to JSON\n * @deprecated in 3.x. Use [[Node]].\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function toJSON(node: Node): NodeJSON {\n const { label, ...baseNode } = node;\n return {\n ...baseNode,\n labelDefinition: label,\n };\n }\n\n /** @internal */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function toPartialJSON(node: PartialNode): PartialNodeJSON {\n if (node.key === undefined) {\n return node;\n }\n\n const { label, ...baseNode } = node;\n return {\n ...baseNode,\n labelDefinition: label,\n };\n }\n\n /**\n * Deserialize [[Node]] from JSON\n * @deprecated in 3.x. Use [[Node]].\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function fromJSON(json: NodeJSON | string): Node {\n if (typeof json === \"string\") {\n return JSON.parse(json, reviver);\n }\n const { labelDefinition, ...baseJson } = json;\n return {\n ...baseJson,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n key: NodeKey.fromJSON(json.key),\n label: labelDefinition,\n };\n }\n\n /** @internal */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function fromPartialJSON(json: PartialNodeJSON): PartialNode {\n if (json.key === undefined) {\n return json;\n }\n\n const { key, labelDefinition, ...baseJson } = json;\n return {\n ...baseJson,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n key: NodeKey.fromJSON(key),\n label: labelDefinition,\n };\n }\n\n /**\n * Reviver function that can be used as a second argument for\n * `JSON.parse` method when parsing [[Node]] objects.\n * @internal\n */\n export function reviver(key: string, value: any): any {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return key === \"\" ? fromJSON(value) : value;\n }\n\n /**\n * Deserialize nodes list from JSON\n * @param json JSON or JSON serialized to string to deserialize from\n * @returns Deserialized nodes list\n * @internal\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function listFromJSON(json: NodeJSON[] | string): Node[] {\n if (typeof json === \"string\") {\n return JSON.parse(json, listReviver);\n }\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return json.map((m) => fromJSON(m));\n }\n\n /**\n * Reviver function that can be used as a second argument for\n * `JSON.parse` method when parsing [[Node]][] objects.\n * @internal\n */\n export function listReviver(key: string, value: any): any {\n return key === \"\" ? listFromJSON(value) : value;\n }\n}\n"]}
1
+ {"version":3,"file":"Node.js","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/Node.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;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 Hierarchies\n */\n\nimport { LabelDefinition } from \"../LabelDefinition\";\nimport { NodeKey } from \"./Key\";\n\n/**\n * Data structure that describes a tree node.\n * @public\n */\nexport interface Node {\n /** A key that uniquely identifies a node. */\n key: NodeKey;\n /** Definition of node display label */\n label: LabelDefinition;\n /** Extensive description */\n description?: string;\n /**\n * Image ID\n * @deprecated in 3.x. Use [[extendedData]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n imageId?: string;\n /** Does this node have child nodes */\n hasChildren?: boolean;\n /** Is this node selectable */\n isSelectionDisabled?: boolean;\n /** Is this node editable */\n isEditable?: boolean;\n /** Is this node expanded */\n isExpanded?: boolean;\n /**\n * Identifies whether the hierarchy level below this node supports filtering. If not, requesting either a hierarchy level descriptor or\n * a hierarchy level with [[HierarchyRequestOptions.instanceFilter]] will throw an error with [[PresentationStatus.InvalidArgument]] status.\n */\n supportsFiltering?: boolean;\n /** Extended data injected into this node */\n extendedData?: {\n [key: string]: any;\n };\n}\n\n/**\n * Partial node definition.\n * @public\n */\nexport type PartialNode = AllOrNone<Partial<Node>, \"key\" | \"label\">;\n\ntype AllOrNone<T, P extends keyof T> = Omit<T, P> & ({ [K in P]?: never } | Required<Pick<T, P>>);\n"]}
@@ -1,19 +1,7 @@
1
1
  /** @packageDocumentation
2
2
  * @module Hierarchies
3
3
  */
4
- import { Node, NodeJSON } from "./Node";
5
- /**
6
- * Serialized [[NodePathElement]] JSON representation.
7
- * @public
8
- * @deprecated in 3.x. Use [[NodePathElement]].
9
- */
10
- export interface NodePathElementJSON {
11
- node: NodeJSON;
12
- index: number;
13
- isMarked?: boolean;
14
- children: NodePathElementJSON[];
15
- filteringData?: NodePathFilteringDataJSON;
16
- }
4
+ import { Node } from "./Node";
17
5
  /**
18
6
  * Describes a single step in the nodes path.
19
7
  * @public
@@ -30,47 +18,6 @@ export interface NodePathElement {
30
18
  /** Additional filtering-related information */
31
19
  filteringData?: NodePathFilteringData;
32
20
  }
33
- /** @public */
34
- export declare namespace NodePathElement {
35
- /**
36
- * Serialize given [[NodePathElement]] to JSON
37
- * @deprecated in 3.x. Use [[NodePathElement]].
38
- */
39
- function toJSON(npe: NodePathElement): NodePathElementJSON;
40
- /**
41
- * Deserialize [[NodePathElement]] from JSON
42
- * @deprecated in 3.x. Use [[NodePathElement]].
43
- */
44
- function fromJSON(json: NodePathElementJSON | string): NodePathElement;
45
- /**
46
- * Reviver function that can be used as a second argument for
47
- * `JSON.parse` method when parsing [[NodePathElement]] objects.
48
- * @internal
49
- */
50
- function reviver(key: string, value: any): any;
51
- /**
52
- * Deserialize [[NodePathElement]] list from JSON
53
- * @param json JSON or JSON serialized to string to deserialize from
54
- * @returns Deserialized [[NodePathElement]] list
55
- * @internal
56
- */
57
- function listFromJSON(json: NodePathElementJSON[] | string): NodePathElement[];
58
- /**
59
- * Reviver function that can be used as a second argument for
60
- * `JSON.parse` method when parsing [[NodePathElement]][] objects.
61
- * @internal
62
- */
63
- function listReviver(key: string, value: any): any;
64
- }
65
- /**
66
- * Serialized [[NodePathFilteringData]] JSON representation.
67
- * @public
68
- * @deprecated in 3.x. Use [[NodePathFilteringData]].
69
- */
70
- export interface NodePathFilteringDataJSON {
71
- occurances: number;
72
- childrenOccurances: number;
73
- }
74
21
  /**
75
22
  * Data related to node hierarchy filtering
76
23
  * @public
@@ -81,17 +28,4 @@ export interface NodePathFilteringData {
81
28
  /** Number of filter matches in the current element's children (recursively) */
82
29
  childMatchesCount: number;
83
30
  }
84
- /** @public */
85
- export declare namespace NodePathFilteringData {
86
- /**
87
- * Serialize given [[NodePathFilteringData]] to JSON
88
- * @deprecated in 3.x. Use [[NodePathFilteringData]].
89
- */
90
- function toJSON(npfd: NodePathFilteringData): NodePathFilteringDataJSON;
91
- /**
92
- * Deserialize [[NodePathFilteringData]] from JSON
93
- * @deprecated in 3.x. Use [[NodePathFilteringData]].
94
- */
95
- function fromJSON(json: NodePathFilteringDataJSON): NodePathFilteringData;
96
- }
97
31
  //# sourceMappingURL=NodePathElement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NodePathElement.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/NodePathElement.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAExC;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAElC,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAEhC,aAAa,CAAC,EAAE,yBAAyB,CAAC;CAC3C;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,oBAAoB;IACpB,IAAI,EAAE,IAAI,CAAC;IACX,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0BAA0B;IAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,+CAA+C;IAC/C,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC;AAED,cAAc;AACd,yBAAiB,eAAe,CAAC;IAC/B;;;OAGG;IAEH,SAAgB,MAAM,CAAC,GAAG,EAAE,eAAe,GAAG,mBAAmB,CAiBhE;IAED;;;OAGG;IAEH,SAAgB,QAAQ,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,GAAG,eAAe,CAkB5E;IAED;;;;OAIG;IACH,SAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,GAAG,CAGpD;IAED;;;;;OAKG;IAEH,SAAgB,YAAY,CAAC,IAAI,EAAE,mBAAmB,EAAE,GAAG,MAAM,GAAG,eAAe,EAAE,CAMpF;IAED;;;;OAIG;IACH,SAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,GAAG,CAExD;CACF;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,cAAc;AACd,yBAAiB,qBAAqB,CAAC;IACrC;;;OAGG;IAEH,SAAgB,MAAM,CAAC,IAAI,EAAE,qBAAqB,GAAG,yBAAyB,CAK7E;IAED;;;OAGG;IAEH,SAAgB,QAAQ,CAAC,IAAI,EAAE,yBAAyB,GAAG,qBAAqB,CAK/E;CACF"}
1
+ {"version":3,"file":"NodePathElement.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/NodePathElement.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,oBAAoB;IACpB,IAAI,EAAE,IAAI,CAAC;IACX,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0BAA0B;IAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,+CAA+C;IAC/C,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
@@ -7,121 +7,4 @@
7
7
  * @module Hierarchies
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.NodePathFilteringData = exports.NodePathElement = void 0;
11
- const Node_1 = require("./Node");
12
- /** @public */
13
- var NodePathElement;
14
- (function (NodePathElement) {
15
- /**
16
- * Serialize given [[NodePathElement]] to JSON
17
- * @deprecated in 3.x. Use [[NodePathElement]].
18
- */
19
- // eslint-disable-next-line @typescript-eslint/no-deprecated
20
- function toJSON(npe) {
21
- // eslint-disable-next-line @typescript-eslint/no-deprecated
22
- const result = {
23
- // eslint-disable-next-line @typescript-eslint/no-deprecated
24
- node: Node_1.Node.toJSON(npe.node),
25
- index: npe.index,
26
- // eslint-disable-next-line @typescript-eslint/no-deprecated
27
- children: npe.children.map(NodePathElement.toJSON),
28
- };
29
- if (undefined !== npe.isMarked) {
30
- result.isMarked = npe.isMarked;
31
- }
32
- if (undefined !== npe.filteringData) {
33
- // eslint-disable-next-line @typescript-eslint/no-deprecated
34
- result.filteringData = NodePathFilteringData.toJSON(npe.filteringData);
35
- }
36
- return result;
37
- }
38
- NodePathElement.toJSON = toJSON;
39
- /**
40
- * Deserialize [[NodePathElement]] from JSON
41
- * @deprecated in 3.x. Use [[NodePathElement]].
42
- */
43
- // eslint-disable-next-line @typescript-eslint/no-deprecated
44
- function fromJSON(json) {
45
- if (typeof json === "string") {
46
- return JSON.parse(json, reviver);
47
- }
48
- const result = {
49
- index: json.index,
50
- // eslint-disable-next-line @typescript-eslint/no-deprecated
51
- node: Node_1.Node.fromJSON(json.node),
52
- children: listFromJSON(json.children),
53
- };
54
- if (undefined !== json.isMarked) {
55
- result.isMarked = json.isMarked;
56
- }
57
- if (undefined !== json.filteringData) {
58
- // eslint-disable-next-line @typescript-eslint/no-deprecated
59
- result.filteringData = NodePathFilteringData.fromJSON(json.filteringData);
60
- }
61
- return result;
62
- }
63
- NodePathElement.fromJSON = fromJSON;
64
- /**
65
- * Reviver function that can be used as a second argument for
66
- * `JSON.parse` method when parsing [[NodePathElement]] objects.
67
- * @internal
68
- */
69
- function reviver(key, value) {
70
- // eslint-disable-next-line @typescript-eslint/no-deprecated
71
- return key === "" ? fromJSON(value) : value;
72
- }
73
- NodePathElement.reviver = reviver;
74
- /**
75
- * Deserialize [[NodePathElement]] list from JSON
76
- * @param json JSON or JSON serialized to string to deserialize from
77
- * @returns Deserialized [[NodePathElement]] list
78
- * @internal
79
- */
80
- // eslint-disable-next-line @typescript-eslint/no-deprecated
81
- function listFromJSON(json) {
82
- if (typeof json === "string") {
83
- return JSON.parse(json, listReviver);
84
- }
85
- // eslint-disable-next-line @typescript-eslint/no-deprecated
86
- return json.map((m) => fromJSON(m));
87
- }
88
- NodePathElement.listFromJSON = listFromJSON;
89
- /**
90
- * Reviver function that can be used as a second argument for
91
- * `JSON.parse` method when parsing [[NodePathElement]][] objects.
92
- * @internal
93
- */
94
- function listReviver(key, value) {
95
- return key === "" ? listFromJSON(value) : value;
96
- }
97
- NodePathElement.listReviver = listReviver;
98
- })(NodePathElement || (exports.NodePathElement = NodePathElement = {}));
99
- /** @public */
100
- var NodePathFilteringData;
101
- (function (NodePathFilteringData) {
102
- /**
103
- * Serialize given [[NodePathFilteringData]] to JSON
104
- * @deprecated in 3.x. Use [[NodePathFilteringData]].
105
- */
106
- // eslint-disable-next-line @typescript-eslint/no-deprecated
107
- function toJSON(npfd) {
108
- return {
109
- occurances: npfd.matchesCount,
110
- childrenOccurances: npfd.childMatchesCount,
111
- };
112
- }
113
- NodePathFilteringData.toJSON = toJSON;
114
- /**
115
- * Deserialize [[NodePathFilteringData]] from JSON
116
- * @deprecated in 3.x. Use [[NodePathFilteringData]].
117
- */
118
- // eslint-disable-next-line @typescript-eslint/no-deprecated
119
- function fromJSON(json) {
120
- return {
121
- matchesCount: json.occurances,
122
- childMatchesCount: json.childrenOccurances,
123
- };
124
- }
125
- NodePathFilteringData.fromJSON = fromJSON;
126
- })(NodePathFilteringData || (exports.NodePathFilteringData = NodePathFilteringData = {}));
127
10
  //# sourceMappingURL=NodePathElement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NodePathElement.js","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/NodePathElement.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,iCAAwC;AAmCxC,cAAc;AACd,IAAiB,eAAe,CAmF/B;AAnFD,WAAiB,eAAe;IAC9B;;;OAGG;IACH,4DAA4D;IAC5D,SAAgB,MAAM,CAAC,GAAoB;QACzC,4DAA4D;QAC5D,MAAM,MAAM,GAAwB;YAClC,4DAA4D;YAC5D,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;YAC3B,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,4DAA4D;YAC5D,QAAQ,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,CAAC;SACnD,CAAC;QACF,IAAI,SAAS,KAAK,GAAG,CAAC,QAAQ,EAAE,CAAC;YAC/B,MAAM,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QACjC,CAAC;QACD,IAAI,SAAS,KAAK,GAAG,CAAC,aAAa,EAAE,CAAC;YACpC,4DAA4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KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACvC,CAAC;QACD,4DAA4D;QAC5D,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,CAAC;IANe,4BAAY,eAM3B,CAAA;IAED;;;;OAIG;IACH,SAAgB,WAAW,CAAC,GAAW,EAAE,KAAU;QACjD,OAAO,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAClD,CAAC;IAFe,2BAAW,cAE1B,CAAA;AACH,CAAC,EAnFgB,eAAe,+BAAf,eAAe,QAmF/B;AAuBD,cAAc;AACd,IAAiB,qBAAqB,CAwBrC;AAxBD,WAAiB,qBAAqB;IACpC;;;OAGG;IACH,4DAA4D;IAC5D,SAAgB,MAAM,CAAC,IAA2B;QAChD,OAAO;YACL,UAAU,EAAE,IAAI,CAAC,YAAY;YAC7B,kBAAkB,EAAE,IAAI,CAAC,iBAAiB;SAC3C,CAAC;IACJ,CAAC;IALe,4BAAM,SAKrB,CAAA;IAED;;;OAGG;IACH,4DAA4D;IAC5D,SAAgB,QAAQ,CAAC,IAA+B;QACtD,OAAO;YACL,YAAY,EAAE,IAAI,CAAC,UAAU;YAC7B,iBAAiB,EAAE,IAAI,CAAC,kBAAkB;SAC3C,CAAC;IACJ,CAAC;IALe,8BAAQ,WAKvB,CAAA;AACH,CAAC,EAxBgB,qBAAqB,qCAArB,qBAAqB,QAwBrC","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 Hierarchies\n */\n\nimport { Node, NodeJSON } from \"./Node\";\n\n/**\n * Serialized [[NodePathElement]] JSON representation.\n * @public\n * @deprecated in 3.x. Use [[NodePathElement]].\n */\nexport interface NodePathElementJSON {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n node: NodeJSON;\n index: number;\n isMarked?: boolean;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n children: NodePathElementJSON[];\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n filteringData?: NodePathFilteringDataJSON;\n}\n\n/**\n * Describes a single step in the nodes path.\n * @public\n */\nexport interface NodePathElement {\n /** Node instance */\n node: Node;\n /** Node index */\n index: number;\n /** Is this element part of the marked path */\n isMarked?: boolean;\n /** Child path elements */\n children: NodePathElement[];\n /** Additional filtering-related information */\n filteringData?: NodePathFilteringData;\n}\n\n/** @public */\nexport namespace NodePathElement {\n /**\n * Serialize given [[NodePathElement]] to JSON\n * @deprecated in 3.x. Use [[NodePathElement]].\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function toJSON(npe: NodePathElement): NodePathElementJSON {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const result: NodePathElementJSON = {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n node: Node.toJSON(npe.node),\n index: npe.index,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n children: npe.children.map(NodePathElement.toJSON),\n };\n if (undefined !== npe.isMarked) {\n result.isMarked = npe.isMarked;\n }\n if (undefined !== npe.filteringData) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n result.filteringData = NodePathFilteringData.toJSON(npe.filteringData);\n }\n return result;\n }\n\n /**\n * Deserialize [[NodePathElement]] from JSON\n * @deprecated in 3.x. Use [[NodePathElement]].\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function fromJSON(json: NodePathElementJSON | string): NodePathElement {\n if (typeof json === \"string\") {\n return JSON.parse(json, reviver);\n }\n const result: NodePathElement = {\n index: json.index,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n node: Node.fromJSON(json.node),\n children: listFromJSON(json.children),\n };\n if (undefined !== json.isMarked) {\n result.isMarked = json.isMarked;\n }\n if (undefined !== json.filteringData) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n result.filteringData = NodePathFilteringData.fromJSON(json.filteringData);\n }\n return result;\n }\n\n /**\n * Reviver function that can be used as a second argument for\n * `JSON.parse` method when parsing [[NodePathElement]] objects.\n * @internal\n */\n export function reviver(key: string, value: any): any {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return key === \"\" ? fromJSON(value) : value;\n }\n\n /**\n * Deserialize [[NodePathElement]] list from JSON\n * @param json JSON or JSON serialized to string to deserialize from\n * @returns Deserialized [[NodePathElement]] list\n * @internal\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function listFromJSON(json: NodePathElementJSON[] | string): NodePathElement[] {\n if (typeof json === \"string\") {\n return JSON.parse(json, listReviver);\n }\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return json.map((m) => fromJSON(m));\n }\n\n /**\n * Reviver function that can be used as a second argument for\n * `JSON.parse` method when parsing [[NodePathElement]][] objects.\n * @internal\n */\n export function listReviver(key: string, value: any): any {\n return key === \"\" ? listFromJSON(value) : value;\n }\n}\n\n/**\n * Serialized [[NodePathFilteringData]] JSON representation.\n * @public\n * @deprecated in 3.x. Use [[NodePathFilteringData]].\n */\nexport interface NodePathFilteringDataJSON {\n occurances: number;\n childrenOccurances: number;\n}\n\n/**\n * Data related to node hierarchy filtering\n * @public\n */\nexport interface NodePathFilteringData {\n /** Number of filter matches in the current element */\n matchesCount: number;\n /** Number of filter matches in the current element's children (recursively) */\n childMatchesCount: number;\n}\n\n/** @public */\nexport namespace NodePathFilteringData {\n /**\n * Serialize given [[NodePathFilteringData]] to JSON\n * @deprecated in 3.x. Use [[NodePathFilteringData]].\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function toJSON(npfd: NodePathFilteringData): NodePathFilteringDataJSON {\n return {\n occurances: npfd.matchesCount,\n childrenOccurances: npfd.childMatchesCount,\n };\n }\n\n /**\n * Deserialize [[NodePathFilteringData]] from JSON\n * @deprecated in 3.x. Use [[NodePathFilteringData]].\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n export function fromJSON(json: NodePathFilteringDataJSON): NodePathFilteringData {\n return {\n matchesCount: json.occurances,\n childMatchesCount: json.childrenOccurances,\n };\n }\n}\n"]}
1
+ {"version":3,"file":"NodePathElement.js","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/NodePathElement.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;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 Hierarchies\n */\n\nimport { Node } from \"./Node\";\n\n/**\n * Describes a single step in the nodes path.\n * @public\n */\nexport interface NodePathElement {\n /** Node instance */\n node: Node;\n /** Node index */\n index: number;\n /** Is this element part of the marked path */\n isMarked?: boolean;\n /** Child path elements */\n children: NodePathElement[];\n /** Additional filtering-related information */\n filteringData?: NodePathFilteringData;\n}\n\n/**\n * Data related to node hierarchy filtering\n * @public\n */\nexport interface NodePathFilteringData {\n /** Number of filter matches in the current element */\n matchesCount: number;\n /** Number of filter matches in the current element's children (recursively) */\n childMatchesCount: number;\n}\n"]}
@@ -39,20 +39,6 @@ export interface RuleBase {
39
39
  * @public
40
40
  */
41
41
  export declare type Rule = CustomizationRule | NavigationRule | ContentRule | ContentModifier | DefaultPropertyCategoryOverride;
42
- /**
43
- * Container of a [[condition]] property. Used for rules that support conditions. Not
44
- * meant to be used directly, see [[Rule]].
45
- *
46
- * @deprecated in 3.x. This interface is not used anymore. All interfaces that used to extend it, have the [[condition]]
47
- * attribute of their own.
48
- * @public
49
- */
50
- export interface ConditionContainer {
51
- /**
52
- * Defines a condition for the rule, which needs to be met in order to execute it.
53
- */
54
- condition?: string;
55
- }
56
42
  /**
57
43
  * Used for serializing [[Rule]] objects to JSON.
58
44
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/rules/Rule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAErE;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,QAAQ,EAAE,GAAG,SAAS,EAAE,CAAC;IAEzB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,eAAe,CAAC,EAAE,2BAA2B,EAAE,CAAC;CACjD;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,MAAM,IAAI,GAAG,iBAAiB,GAAG,cAAc,GAAG,WAAW,GAAG,eAAe,GAAG,+BAA+B,CAAC;AAEhI;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,oBAAY,SAAS;IAEnB,SAAS,cAAc;IACvB,UAAU,eAAe;IAGzB,OAAO,YAAY;IACnB,eAAe,oBAAoB,CAAE,mDAAmD;IACxF,+BAA+B,oCAAoC,CAAE,mDAAmD;IAGxH,QAAQ,aAAa;IACrB,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,aAAa,kBAAkB;IAC/B,qBAAqB,0BAA0B;IAC/C,aAAa,kBAAkB;IAC/B,QAAQ,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