@itwin/presentation-common 3.6.0-dev.54 → 3.6.0-dev.59

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 (356) hide show
  1. package/Ruleset.schema.json +236 -309
  2. package/lib/cjs/presentation-common/EC.d.ts +52 -17
  3. package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
  4. package/lib/cjs/presentation-common/EC.js +74 -54
  5. package/lib/cjs/presentation-common/EC.js.map +1 -1
  6. package/lib/cjs/presentation-common/ElementProperties.d.ts +14 -14
  7. package/lib/cjs/presentation-common/ElementProperties.js.map +1 -1
  8. package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts +43 -9
  9. package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
  10. package/lib/cjs/presentation-common/InstanceFilterDefinition.js.map +1 -1
  11. package/lib/cjs/presentation-common/KeySet.d.ts.map +1 -1
  12. package/lib/cjs/presentation-common/KeySet.js +5 -0
  13. package/lib/cjs/presentation-common/KeySet.js.map +1 -1
  14. package/lib/cjs/presentation-common/LabelDefinition.d.ts +24 -16
  15. package/lib/cjs/presentation-common/LabelDefinition.d.ts.map +1 -1
  16. package/lib/cjs/presentation-common/LabelDefinition.js +26 -29
  17. package/lib/cjs/presentation-common/LabelDefinition.js.map +1 -1
  18. package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts +2 -2
  19. package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts.map +1 -1
  20. package/lib/cjs/presentation-common/PresentationIpcInterface.js.map +1 -1
  21. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts +19 -14
  22. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  23. package/lib/cjs/presentation-common/PresentationManagerOptions.js +1 -1
  24. package/lib/cjs/presentation-common/PresentationManagerOptions.js.map +1 -1
  25. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts +19 -21
  26. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  27. package/lib/cjs/presentation-common/PresentationRpcInterface.js +2 -5
  28. package/lib/cjs/presentation-common/PresentationRpcInterface.js.map +1 -1
  29. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts +8 -8
  30. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  31. package/lib/cjs/presentation-common/RpcRequestsHandler.js +11 -1
  32. package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
  33. package/lib/cjs/presentation-common/RulesetVariables.d.ts +5 -0
  34. package/lib/cjs/presentation-common/RulesetVariables.d.ts.map +1 -1
  35. package/lib/cjs/presentation-common/RulesetVariables.js.map +1 -1
  36. package/lib/cjs/presentation-common/Update.d.ts +21 -4
  37. package/lib/cjs/presentation-common/Update.d.ts.map +1 -1
  38. package/lib/cjs/presentation-common/Update.js +34 -4
  39. package/lib/cjs/presentation-common/Update.js.map +1 -1
  40. package/lib/cjs/presentation-common/content/Category.d.ts.map +1 -1
  41. package/lib/cjs/presentation-common/content/Category.js +1 -2
  42. package/lib/cjs/presentation-common/content/Category.js.map +1 -1
  43. package/lib/cjs/presentation-common/content/ContentTraverser.d.ts +194 -24
  44. package/lib/cjs/presentation-common/content/ContentTraverser.d.ts.map +1 -1
  45. package/lib/cjs/presentation-common/content/ContentTraverser.js +63 -44
  46. package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
  47. package/lib/cjs/presentation-common/content/Descriptor.d.ts +67 -18
  48. package/lib/cjs/presentation-common/content/Descriptor.d.ts.map +1 -1
  49. package/lib/cjs/presentation-common/content/Descriptor.js +0 -2
  50. package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
  51. package/lib/cjs/presentation-common/content/Fields.d.ts +24 -5
  52. package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
  53. package/lib/cjs/presentation-common/content/Fields.js +10 -7
  54. package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
  55. package/lib/cjs/presentation-common/content/Item.d.ts +6 -8
  56. package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
  57. package/lib/cjs/presentation-common/content/Item.js +6 -8
  58. package/lib/cjs/presentation-common/content/Item.js.map +1 -1
  59. package/lib/cjs/presentation-common/content/Property.d.ts +8 -2
  60. package/lib/cjs/presentation-common/content/Property.d.ts.map +1 -1
  61. package/lib/cjs/presentation-common/content/Property.js +12 -8
  62. package/lib/cjs/presentation-common/content/Property.js.map +1 -1
  63. package/lib/cjs/presentation-common/content/Value.d.ts +43 -11
  64. package/lib/cjs/presentation-common/content/Value.d.ts.map +1 -1
  65. package/lib/cjs/presentation-common/content/Value.js +72 -16
  66. package/lib/cjs/presentation-common/content/Value.js.map +1 -1
  67. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts +11 -4
  68. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
  69. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js +10 -2
  70. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  71. package/lib/cjs/presentation-common/hierarchy/Key.d.ts +27 -14
  72. package/lib/cjs/presentation-common/hierarchy/Key.d.ts.map +1 -1
  73. package/lib/cjs/presentation-common/hierarchy/Key.js +15 -6
  74. package/lib/cjs/presentation-common/hierarchy/Key.js.map +1 -1
  75. package/lib/cjs/presentation-common/hierarchy/Node.d.ts +12 -7
  76. package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
  77. package/lib/cjs/presentation-common/hierarchy/Node.js +23 -14
  78. package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
  79. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts +18 -7
  80. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  81. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js +33 -9
  82. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  83. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts +5 -2
  84. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
  85. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  86. package/lib/cjs/presentation-common/rules/Rule.d.ts +5 -3
  87. package/lib/cjs/presentation-common/rules/Rule.d.ts.map +1 -1
  88. package/lib/cjs/presentation-common/rules/Rule.js.map +1 -1
  89. package/lib/cjs/presentation-common/rules/Ruleset.d.ts +0 -1
  90. package/lib/cjs/presentation-common/rules/Ruleset.d.ts.map +1 -1
  91. package/lib/cjs/presentation-common/rules/Ruleset.js.map +1 -1
  92. package/lib/cjs/presentation-common/rules/SchemasSpecification.d.ts +1 -1
  93. package/lib/cjs/presentation-common/rules/SchemasSpecification.js.map +1 -1
  94. package/lib/cjs/presentation-common/rules/Variables.d.ts +5 -2
  95. package/lib/cjs/presentation-common/rules/Variables.d.ts.map +1 -1
  96. package/lib/cjs/presentation-common/rules/Variables.js.map +1 -1
  97. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +2 -2
  98. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
  99. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  100. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +2 -2
  101. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts.map +1 -1
  102. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  103. package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts +2 -2
  104. package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts.map +1 -1
  105. package/lib/cjs/presentation-common/rules/content/ContentRule.js.map +1 -1
  106. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +5 -2
  107. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  108. package/lib/cjs/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  109. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +2 -2
  110. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts.map +1 -1
  111. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  112. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +2 -2
  113. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts.map +1 -1
  114. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  115. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts +2 -2
  116. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
  117. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  118. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +9 -6
  119. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts.map +1 -1
  120. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
  121. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +6 -3
  122. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
  123. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  124. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts +2 -2
  125. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts.map +1 -1
  126. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
  127. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts +2 -2
  128. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts.map +1 -1
  129. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  130. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +17 -10
  131. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  132. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  133. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts +2 -2
  134. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts.map +1 -1
  135. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
  136. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts +17 -15
  137. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  138. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  139. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts +2 -2
  140. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts.map +1 -1
  141. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js.map +1 -1
  142. package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts +3 -3
  143. package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
  144. package/lib/cjs/presentation-common/rules/customization/SortingRule.js.map +1 -1
  145. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts +2 -2
  146. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts.map +1 -1
  147. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js.map +1 -1
  148. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +1 -2
  149. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts.map +1 -1
  150. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  151. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +5 -4
  152. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  153. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js +0 -1
  154. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  155. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +2 -2
  156. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  157. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  158. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +9 -6
  159. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts.map +1 -1
  160. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  161. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +2 -2
  162. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  163. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  164. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +2 -2
  165. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts.map +1 -1
  166. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  167. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +2 -2
  168. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts.map +1 -1
  169. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  170. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts +1 -2
  171. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts.map +1 -1
  172. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  173. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts +0 -1
  174. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts.map +1 -1
  175. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  176. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts +17 -4
  177. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts.map +1 -1
  178. package/lib/cjs/presentation-common/selection/SelectionScope.js.map +1 -1
  179. package/lib/esm/presentation-common/EC.d.ts +52 -17
  180. package/lib/esm/presentation-common/EC.d.ts.map +1 -1
  181. package/lib/esm/presentation-common/EC.js +75 -55
  182. package/lib/esm/presentation-common/EC.js.map +1 -1
  183. package/lib/esm/presentation-common/ElementProperties.d.ts +14 -14
  184. package/lib/esm/presentation-common/ElementProperties.js.map +1 -1
  185. package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts +43 -9
  186. package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
  187. package/lib/esm/presentation-common/InstanceFilterDefinition.js.map +1 -1
  188. package/lib/esm/presentation-common/KeySet.d.ts.map +1 -1
  189. package/lib/esm/presentation-common/KeySet.js +5 -0
  190. package/lib/esm/presentation-common/KeySet.js.map +1 -1
  191. package/lib/esm/presentation-common/LabelDefinition.d.ts +24 -16
  192. package/lib/esm/presentation-common/LabelDefinition.d.ts.map +1 -1
  193. package/lib/esm/presentation-common/LabelDefinition.js +26 -29
  194. package/lib/esm/presentation-common/LabelDefinition.js.map +1 -1
  195. package/lib/esm/presentation-common/PresentationIpcInterface.d.ts +2 -2
  196. package/lib/esm/presentation-common/PresentationIpcInterface.d.ts.map +1 -1
  197. package/lib/esm/presentation-common/PresentationIpcInterface.js.map +1 -1
  198. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts +19 -14
  199. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  200. package/lib/esm/presentation-common/PresentationManagerOptions.js +1 -1
  201. package/lib/esm/presentation-common/PresentationManagerOptions.js.map +1 -1
  202. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts +19 -21
  203. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  204. package/lib/esm/presentation-common/PresentationRpcInterface.js +2 -5
  205. package/lib/esm/presentation-common/PresentationRpcInterface.js.map +1 -1
  206. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts +8 -8
  207. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  208. package/lib/esm/presentation-common/RpcRequestsHandler.js +11 -1
  209. package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
  210. package/lib/esm/presentation-common/RulesetVariables.d.ts +5 -0
  211. package/lib/esm/presentation-common/RulesetVariables.d.ts.map +1 -1
  212. package/lib/esm/presentation-common/RulesetVariables.js.map +1 -1
  213. package/lib/esm/presentation-common/Update.d.ts +21 -4
  214. package/lib/esm/presentation-common/Update.d.ts.map +1 -1
  215. package/lib/esm/presentation-common/Update.js +34 -4
  216. package/lib/esm/presentation-common/Update.js.map +1 -1
  217. package/lib/esm/presentation-common/content/Category.d.ts.map +1 -1
  218. package/lib/esm/presentation-common/content/Category.js +1 -2
  219. package/lib/esm/presentation-common/content/Category.js.map +1 -1
  220. package/lib/esm/presentation-common/content/ContentTraverser.d.ts +194 -24
  221. package/lib/esm/presentation-common/content/ContentTraverser.d.ts.map +1 -1
  222. package/lib/esm/presentation-common/content/ContentTraverser.js +60 -42
  223. package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
  224. package/lib/esm/presentation-common/content/Descriptor.d.ts +67 -18
  225. package/lib/esm/presentation-common/content/Descriptor.d.ts.map +1 -1
  226. package/lib/esm/presentation-common/content/Descriptor.js +0 -2
  227. package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
  228. package/lib/esm/presentation-common/content/Fields.d.ts +24 -5
  229. package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
  230. package/lib/esm/presentation-common/content/Fields.js +11 -8
  231. package/lib/esm/presentation-common/content/Fields.js.map +1 -1
  232. package/lib/esm/presentation-common/content/Item.d.ts +6 -8
  233. package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
  234. package/lib/esm/presentation-common/content/Item.js +6 -8
  235. package/lib/esm/presentation-common/content/Item.js.map +1 -1
  236. package/lib/esm/presentation-common/content/Property.d.ts +8 -2
  237. package/lib/esm/presentation-common/content/Property.d.ts.map +1 -1
  238. package/lib/esm/presentation-common/content/Property.js +12 -8
  239. package/lib/esm/presentation-common/content/Property.js.map +1 -1
  240. package/lib/esm/presentation-common/content/Value.d.ts +43 -11
  241. package/lib/esm/presentation-common/content/Value.d.ts.map +1 -1
  242. package/lib/esm/presentation-common/content/Value.js +72 -16
  243. package/lib/esm/presentation-common/content/Value.js.map +1 -1
  244. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts +11 -4
  245. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
  246. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js +10 -2
  247. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  248. package/lib/esm/presentation-common/hierarchy/Key.d.ts +27 -14
  249. package/lib/esm/presentation-common/hierarchy/Key.d.ts.map +1 -1
  250. package/lib/esm/presentation-common/hierarchy/Key.js +15 -6
  251. package/lib/esm/presentation-common/hierarchy/Key.js.map +1 -1
  252. package/lib/esm/presentation-common/hierarchy/Node.d.ts +12 -7
  253. package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
  254. package/lib/esm/presentation-common/hierarchy/Node.js +23 -14
  255. package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
  256. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts +18 -7
  257. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  258. package/lib/esm/presentation-common/hierarchy/NodePathElement.js +33 -9
  259. package/lib/esm/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  260. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts +5 -2
  261. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
  262. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  263. package/lib/esm/presentation-common/rules/Rule.d.ts +5 -3
  264. package/lib/esm/presentation-common/rules/Rule.d.ts.map +1 -1
  265. package/lib/esm/presentation-common/rules/Rule.js.map +1 -1
  266. package/lib/esm/presentation-common/rules/Ruleset.d.ts +0 -1
  267. package/lib/esm/presentation-common/rules/Ruleset.d.ts.map +1 -1
  268. package/lib/esm/presentation-common/rules/Ruleset.js.map +1 -1
  269. package/lib/esm/presentation-common/rules/SchemasSpecification.d.ts +1 -1
  270. package/lib/esm/presentation-common/rules/SchemasSpecification.js.map +1 -1
  271. package/lib/esm/presentation-common/rules/Variables.d.ts +5 -2
  272. package/lib/esm/presentation-common/rules/Variables.d.ts.map +1 -1
  273. package/lib/esm/presentation-common/rules/Variables.js.map +1 -1
  274. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +2 -2
  275. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
  276. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  277. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +2 -2
  278. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts.map +1 -1
  279. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  280. package/lib/esm/presentation-common/rules/content/ContentRule.d.ts +2 -2
  281. package/lib/esm/presentation-common/rules/content/ContentRule.d.ts.map +1 -1
  282. package/lib/esm/presentation-common/rules/content/ContentRule.js.map +1 -1
  283. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +5 -2
  284. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  285. package/lib/esm/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  286. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +2 -2
  287. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts.map +1 -1
  288. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  289. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +2 -2
  290. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts.map +1 -1
  291. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  292. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts +2 -2
  293. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
  294. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  295. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +9 -6
  296. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts.map +1 -1
  297. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
  298. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +6 -3
  299. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
  300. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  301. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts +2 -2
  302. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts.map +1 -1
  303. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
  304. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts +2 -2
  305. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts.map +1 -1
  306. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  307. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +17 -10
  308. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  309. package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  310. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts +2 -2
  311. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts.map +1 -1
  312. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
  313. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts +17 -15
  314. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  315. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  316. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts +2 -2
  317. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts.map +1 -1
  318. package/lib/esm/presentation-common/rules/customization/LabelOverride.js.map +1 -1
  319. package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts +3 -3
  320. package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
  321. package/lib/esm/presentation-common/rules/customization/SortingRule.js.map +1 -1
  322. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts +2 -2
  323. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts.map +1 -1
  324. package/lib/esm/presentation-common/rules/customization/StyleOverride.js.map +1 -1
  325. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +1 -2
  326. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts.map +1 -1
  327. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  328. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +5 -4
  329. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  330. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js +0 -1
  331. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  332. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +2 -2
  333. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  334. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  335. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +9 -6
  336. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts.map +1 -1
  337. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  338. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +2 -2
  339. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  340. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  341. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +2 -2
  342. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts.map +1 -1
  343. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  344. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +2 -2
  345. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts.map +1 -1
  346. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  347. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts +1 -2
  348. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts.map +1 -1
  349. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  350. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts +0 -1
  351. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts.map +1 -1
  352. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  353. package/lib/esm/presentation-common/selection/SelectionScope.d.ts +17 -4
  354. package/lib/esm/presentation-common/selection/SelectionScope.d.ts.map +1 -1
  355. package/lib/esm/presentation-common/selection/SelectionScope.js.map +1 -1
  356. package/package.json +10 -10
@@ -8,7 +8,6 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.DisplayValueGroup = exports.NestedContentValue = exports.DisplayValue = exports.Value = void 0;
11
- const EC_1 = require("../EC");
12
11
  /** @public */
13
12
  var Value;
14
13
  (function (Value) {
@@ -32,11 +31,16 @@ var Value;
32
31
  return isNestedContentValue(value);
33
32
  }
34
33
  Value.isNestedContent = isNestedContent;
35
- /** Serialize [[Value]] to JSON */
34
+ /**
35
+ * Serialize [[Value]] to JSON
36
+ * @deprecated in 3.x. Use [[Value]]
37
+ */
38
+ // eslint-disable-next-line deprecation/deprecation
36
39
  function fromJSON(json) {
37
40
  if (json === null)
38
41
  return undefined;
39
42
  if (isNestedContentValue(json))
43
+ // eslint-disable-next-line deprecation/deprecation
40
44
  return json.map(NestedContentValue.fromJSON);
41
45
  if (isArrayValue(json))
42
46
  return valuesArrayFromJSON(json);
@@ -45,11 +49,16 @@ var Value;
45
49
  return json;
46
50
  }
47
51
  Value.fromJSON = fromJSON;
48
- /** Deserialize [[Value]] from JSON */
52
+ /**
53
+ * Deserialize [[Value]] from JSON
54
+ * @deprecated in 3.x. Use [[Value]]
55
+ */
56
+ // eslint-disable-next-line deprecation/deprecation
49
57
  function toJSON(value) {
50
58
  if (undefined === value)
51
59
  return null;
52
60
  if (isNestedContentValue(value))
61
+ // eslint-disable-next-line deprecation/deprecation
53
62
  return value.map(NestedContentValue.toJSON);
54
63
  if (isArrayValue(value))
55
64
  return valuesArrayToJSON(value);
@@ -77,7 +86,11 @@ var DisplayValue;
77
86
  return isMapValue(value);
78
87
  }
79
88
  DisplayValue.isMap = isMap;
80
- /** Serialize [[DisplayValue]] to JSON */
89
+ /**
90
+ * Serialize [[DisplayValue]] to JSON
91
+ * @deprecated in 3.x. Use [[DisplayValue]]
92
+ */
93
+ // eslint-disable-next-line deprecation/deprecation
81
94
  function fromJSON(json) {
82
95
  if (json === null)
83
96
  return undefined;
@@ -88,7 +101,11 @@ var DisplayValue;
88
101
  return json;
89
102
  }
90
103
  DisplayValue.fromJSON = fromJSON;
91
- /** Deserialize [[DisplayValue]] from JSON */
104
+ /**
105
+ * Deserialize [[DisplayValue]] from JSON
106
+ * @deprecated in 3.x. Use [[DisplayValue]]
107
+ */
108
+ // eslint-disable-next-line deprecation/deprecation
92
109
  function toJSON(value) {
93
110
  if (undefined === value)
94
111
  return null;
@@ -103,23 +120,29 @@ var DisplayValue;
103
120
  /** @public */
104
121
  var NestedContentValue;
105
122
  (function (NestedContentValue) {
106
- /** Serialize [[NestedContentValue]] to JSON */
107
- function toJSON(json) {
123
+ /**
124
+ * Serialize [[NestedContentValue]] to JSON
125
+ * @deprecated in 3.x. Use [[NestedContentValue]]
126
+ */
127
+ // eslint-disable-next-line deprecation/deprecation
128
+ function toJSON(value) {
108
129
  return {
109
- primaryKeys: json.primaryKeys.map(EC_1.InstanceKey.toJSON),
110
- values: valuesMapToJSON(json.values),
111
- displayValues: displayValuesMapToJSON(json.displayValues),
112
- mergedFieldNames: json.mergedFieldNames,
130
+ ...value,
131
+ values: valuesMapToJSON(value.values),
132
+ displayValues: displayValuesMapToJSON(value.displayValues),
113
133
  };
114
134
  }
115
135
  NestedContentValue.toJSON = toJSON;
116
- /** Deserialize [[NestedContentValue]] from JSON */
136
+ /**
137
+ * Deserialize [[NestedContentValue]] from JSON
138
+ * @deprecated in 3.x. Use [[NestedContentValue]]
139
+ */
140
+ // eslint-disable-next-line deprecation/deprecation
117
141
  function fromJSON(json) {
118
142
  return {
119
- primaryKeys: json.primaryKeys.map(EC_1.InstanceKey.fromJSON),
143
+ ...json,
120
144
  values: valuesMapFromJSON(json.values),
121
145
  displayValues: displayValuesMapFromJSON(json.displayValues),
122
- mergedFieldNames: json.mergedFieldNames,
123
146
  };
124
147
  }
125
148
  NestedContentValue.fromJSON = fromJSON;
@@ -127,23 +150,36 @@ var NestedContentValue;
127
150
  /** @public */
128
151
  var DisplayValueGroup;
129
152
  (function (DisplayValueGroup) {
130
- /** Serialize [[DisplayValueGroup]] to JSON */
153
+ /**
154
+ * Serialize [[DisplayValueGroup]] to JSON
155
+ * @deprecated in 3.x. Use [[DisplayValueGroup]]
156
+ */
157
+ // eslint-disable-next-line deprecation/deprecation
131
158
  function toJSON(group) {
132
159
  return {
160
+ // eslint-disable-next-line deprecation/deprecation
133
161
  displayValue: DisplayValue.toJSON(group.displayValue),
162
+ // eslint-disable-next-line deprecation/deprecation
134
163
  groupedRawValues: group.groupedRawValues.map(Value.toJSON),
135
164
  };
136
165
  }
137
166
  DisplayValueGroup.toJSON = toJSON;
138
- /** Deserialize [[DisplayValueGroup]] from JSON */
167
+ /**
168
+ * Deserialize [[DisplayValueGroup]] from JSON
169
+ * @deprecated in 3.x. Use [[DisplayValueGroup]]
170
+ */
171
+ // eslint-disable-next-line deprecation/deprecation
139
172
  function fromJSON(json) {
140
173
  return {
174
+ // eslint-disable-next-line deprecation/deprecation
141
175
  displayValue: DisplayValue.fromJSON(json.displayValue),
176
+ // eslint-disable-next-line deprecation/deprecation
142
177
  groupedRawValues: json.groupedRawValues.map(Value.fromJSON),
143
178
  };
144
179
  }
145
180
  DisplayValueGroup.fromJSON = fromJSON;
146
181
  })(DisplayValueGroup = exports.DisplayValueGroup || (exports.DisplayValueGroup = {}));
182
+ // eslint-disable-next-line deprecation/deprecation
147
183
  function isNestedContentValue(v) {
148
184
  return (v !== undefined) && Array.isArray(v)
149
185
  && ((v.length === 0)
@@ -152,64 +188,84 @@ function isNestedContentValue(v) {
152
188
  && v[0].displayValues !== undefined
153
189
  && v[0].mergedFieldNames !== undefined);
154
190
  }
191
+ // eslint-disable-next-line deprecation/deprecation
155
192
  function isArrayValue(v) {
156
193
  // note: we don't guarantee by 100% that v is ValuesArray | DisplayValuesArray, but merely make compiler happy.
157
194
  // we have other means to determine the type of value.
158
195
  return (v !== undefined) && Array.isArray(v);
159
196
  }
197
+ // eslint-disable-next-line deprecation/deprecation
160
198
  function isMapValue(v) {
161
199
  return (v !== undefined) && (typeof v === "object") && !Array.isArray(v);
162
200
  }
163
201
  function isPrimitiveValue(v) {
164
202
  return !isArrayValue(v) && !isMapValue(v);
165
203
  }
204
+ // eslint-disable-next-line deprecation/deprecation
166
205
  function valuesArrayFromJSON(json) {
206
+ // eslint-disable-next-line deprecation/deprecation
167
207
  return json.map(Value.fromJSON);
168
208
  }
209
+ // eslint-disable-next-line deprecation/deprecation
169
210
  function valuesArrayToJSON(values) {
211
+ // eslint-disable-next-line deprecation/deprecation
170
212
  return values.map(Value.toJSON);
171
213
  }
214
+ // eslint-disable-next-line deprecation/deprecation
172
215
  function valuesMapFromJSON(json) {
173
216
  const map = {};
174
217
  for (const key in json) {
175
218
  /* istanbul ignore else */
176
219
  if (json.hasOwnProperty(key)) {
220
+ // eslint-disable-next-line deprecation/deprecation
177
221
  map[key] = Value.fromJSON(json[key]);
178
222
  }
179
223
  }
180
224
  return map;
181
225
  }
226
+ // eslint-disable-next-line deprecation/deprecation
182
227
  function valuesMapToJSON(values) {
228
+ // eslint-disable-next-line deprecation/deprecation
183
229
  const map = {};
184
230
  for (const key in values) {
185
231
  /* istanbul ignore else */
186
232
  if (values.hasOwnProperty(key)) {
233
+ // eslint-disable-next-line deprecation/deprecation
187
234
  map[key] = Value.toJSON(values[key]);
188
235
  }
189
236
  }
190
237
  return map;
191
238
  }
239
+ // eslint-disable-next-line deprecation/deprecation
192
240
  function displayValuesArrayFromJSON(json) {
241
+ // eslint-disable-next-line deprecation/deprecation
193
242
  return json.map(DisplayValue.fromJSON);
194
243
  }
244
+ // eslint-disable-next-line deprecation/deprecation
195
245
  function displayValuesArrayToJSON(values) {
246
+ // eslint-disable-next-line deprecation/deprecation
196
247
  return values.map(DisplayValue.toJSON);
197
248
  }
249
+ // eslint-disable-next-line deprecation/deprecation
198
250
  function displayValuesMapFromJSON(json) {
199
251
  const map = {};
200
252
  for (const key in json) {
201
253
  /* istanbul ignore else */
202
254
  if (json.hasOwnProperty(key)) {
255
+ // eslint-disable-next-line deprecation/deprecation
203
256
  map[key] = DisplayValue.fromJSON(json[key]);
204
257
  }
205
258
  }
206
259
  return map;
207
260
  }
261
+ // eslint-disable-next-line deprecation/deprecation
208
262
  function displayValuesMapToJSON(values) {
263
+ // eslint-disable-next-line deprecation/deprecation
209
264
  const map = {};
210
265
  for (const key in values) {
211
266
  /* istanbul ignore else */
212
267
  if (values.hasOwnProperty(key)) {
268
+ // eslint-disable-next-line deprecation/deprecation
213
269
  map[key] = DisplayValue.toJSON(values[key]);
214
270
  }
215
271
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Value.js","sourceRoot":"","sources":["../../../../src/presentation-common/content/Value.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,8BAAqD;AASrD,cAAc;AACd,IAAiB,KAAK,CA8CrB;AA9CD,WAAiB,KAAK;IACpB,+BAA+B;IAC/B,SAAgB,WAAW,CAAC,KAAY;QACtC,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAFe,iBAAW,cAE1B,CAAA;IAED,4BAA4B;IAC5B,SAAgB,OAAO,CAAC,KAAY;QAClC,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAFe,aAAO,UAEtB,CAAA;IAED,kCAAkC;IAClC,SAAgB,KAAK,CAAC,KAAY;QAChC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAFe,WAAK,QAEpB,CAAA;IAED,0CAA0C;IAC1C,SAAgB,eAAe,CAAC,KAAY;QAC1C,OAAO,oBAAoB,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAFe,qBAAe,kBAE9B,CAAA;IAED,kCAAkC;IAClC,SAAgB,QAAQ,CAAC,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/*---------------------------------------------------------------------------------------------\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 Content\r\n */\r\n\r\nimport { InstanceKey, InstanceKeyJSON } from \"../EC\";\r\nimport { ValuesDictionary } from \"../Utils\";\r\n\r\n/**\r\n * Raw value type\r\n * @public\r\n */\r\nexport type Value = string | number | boolean | undefined | ValuesMap | ValuesArray | NestedContentValue[];\r\n\r\n/** @public */\r\nexport namespace Value { // eslint-disable-line @typescript-eslint/no-redeclare\r\n /** Is the value a primitive */\r\n export function isPrimitive(value: Value): value is string | number | boolean | undefined {\r\n return isPrimitiveValue(value);\r\n }\r\n\r\n /** Is the value an array */\r\n export function isArray(value: Value): value is ValuesArray {\r\n return isArrayValue(value);\r\n }\r\n\r\n /** Is the value a map / struct */\r\n export function isMap(value: Value): value is ValuesMap {\r\n return isMapValue(value);\r\n }\r\n\r\n /** Is the value a nested content value */\r\n export function isNestedContent(value: Value): value is NestedContentValue[] {\r\n return isNestedContentValue(value);\r\n }\r\n\r\n /** Serialize [[Value]] to JSON */\r\n export function fromJSON(json: ValueJSON): Value {\r\n if (json === null)\r\n return undefined;\r\n if (isNestedContentValue(json))\r\n return json.map(NestedContentValue.fromJSON);\r\n if (isArrayValue(json))\r\n return valuesArrayFromJSON(json);\r\n if (isMapValue(json))\r\n return valuesMapFromJSON(json);\r\n return json;\r\n }\r\n\r\n /** Deserialize [[Value]] from JSON */\r\n export function toJSON(value: Value): ValueJSON {\r\n if (undefined === value)\r\n return null;\r\n if (isNestedContentValue(value))\r\n return value.map(NestedContentValue.toJSON);\r\n if (isArrayValue(value))\r\n return valuesArrayToJSON(value);\r\n if (isMapValue(value))\r\n return valuesMapToJSON(value);\r\n return value;\r\n }\r\n}\r\n\r\n/**\r\n * A map of raw values\r\n * @public\r\n */\r\nexport interface ValuesMap extends ValuesDictionary<Value> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * An array of raw values\r\n * @public\r\n */\r\nexport interface ValuesArray extends Array<Value> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * Display value type.\r\n * @public\r\n */\r\nexport type DisplayValue = string | undefined | DisplayValuesMap | DisplayValuesArray;\r\n\r\n/** @public */\r\nexport namespace DisplayValue { // eslint-disable-line @typescript-eslint/no-redeclare\r\n /** Is the value a primitive */\r\n export function isPrimitive(value: DisplayValue): value is string | undefined {\r\n return isPrimitiveValue(value);\r\n }\r\n\r\n /** Is the value an array */\r\n export function isArray(value: DisplayValue): value is DisplayValuesArray {\r\n return isArrayValue(value);\r\n }\r\n\r\n /** Is the value a map / struct */\r\n export function isMap(value: DisplayValue): value is DisplayValuesMap {\r\n return isMapValue(value);\r\n }\r\n\r\n /** Serialize [[DisplayValue]] to JSON */\r\n export function fromJSON(json: DisplayValueJSON): DisplayValue {\r\n if (json === null)\r\n return undefined;\r\n if (isArrayValue(json))\r\n return displayValuesArrayFromJSON(json);\r\n if (isMapValue(json))\r\n return displayValuesMapFromJSON(json);\r\n return json;\r\n }\r\n\r\n /** Deserialize [[DisplayValue]] from JSON */\r\n export function toJSON(value: DisplayValue): DisplayValueJSON {\r\n if (undefined === value)\r\n return null;\r\n if (isArrayValue(value))\r\n return displayValuesArrayToJSON(value);\r\n if (isMapValue(value))\r\n return displayValuesMapToJSON(value);\r\n return value;\r\n }\r\n}\r\n\r\n/**\r\n * A map of display values\r\n * @public\r\n */\r\nexport interface DisplayValuesMap extends ValuesDictionary<DisplayValue> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * An array of display values\r\n * @public\r\n */\r\nexport interface DisplayValuesArray extends Array<DisplayValue> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * Data structure that describes nested content value.\r\n * @public\r\n */\r\nexport interface NestedContentValue {\r\n /** Keys of instances whose content is contained in this value */\r\n primaryKeys: InstanceKey[];\r\n /** Content values map */\r\n values: ValuesDictionary<Value>;\r\n /** Content display values map */\r\n displayValues: ValuesDictionary<DisplayValue>;\r\n /** Names of fields whose values are merged */\r\n mergedFieldNames: string[];\r\n}\r\n\r\n/** @public */\r\nexport namespace NestedContentValue {\r\n /** Serialize [[NestedContentValue]] to JSON */\r\n export function toJSON(json: NestedContentValue): NestedContentValueJSON {\r\n return {\r\n primaryKeys: json.primaryKeys.map(InstanceKey.toJSON),\r\n values: valuesMapToJSON(json.values),\r\n displayValues: displayValuesMapToJSON(json.displayValues),\r\n mergedFieldNames: json.mergedFieldNames,\r\n };\r\n }\r\n\r\n /** Deserialize [[NestedContentValue]] from JSON */\r\n export function fromJSON(json: NestedContentValueJSON): NestedContentValue {\r\n return {\r\n primaryKeys: json.primaryKeys.map(InstanceKey.fromJSON),\r\n values: valuesMapFromJSON(json.values),\r\n displayValues: displayValuesMapFromJSON(json.displayValues),\r\n mergedFieldNames: json.mergedFieldNames,\r\n };\r\n }\r\n}\r\n\r\n/**\r\n * JSON representation of [[Value]]\r\n * @public\r\n */\r\nexport type ValueJSON = string | number | boolean | null | ValuesMapJSON | ValuesArrayJSON | NestedContentValueJSON[];\r\n\r\n/**\r\n * JSON representation of [[ValuesMap]]\r\n * @public\r\n */\r\nexport interface ValuesMapJSON extends ValuesDictionary<ValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[ValuesArray]]\r\n * @public\r\n */\r\nexport interface ValuesArrayJSON extends Array<ValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[DisplayValue]]\r\n * @public\r\n */\r\nexport type DisplayValueJSON = string | null | DisplayValuesMapJSON | DisplayValuesArrayJSON;\r\n\r\n/**\r\n * JSON representation of [[DisplayValuesMap]]\r\n * @public\r\n */\r\nexport interface DisplayValuesMapJSON extends ValuesDictionary<DisplayValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[DisplayValuesArray]]\r\n * @public\r\n */\r\nexport interface DisplayValuesArrayJSON extends Array<DisplayValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[NestedContentValue]]\r\n * @public\r\n */\r\nexport interface NestedContentValueJSON {\r\n primaryKeys: InstanceKeyJSON[];\r\n values: ValuesDictionary<ValueJSON>;\r\n displayValues: ValuesDictionary<DisplayValueJSON>;\r\n mergedFieldNames: string[];\r\n}\r\n\r\n/**\r\n * A group of raw values and their common display value.\r\n * @public\r\n */\r\nexport interface DisplayValueGroup {\r\n /** Common display value for all grouped raw values */\r\n displayValue: DisplayValue;\r\n /** A list of grouped raw values */\r\n groupedRawValues: Value[];\r\n}\r\n\r\n/**\r\n * JSON representation of [[DisplayValueGroup]].\r\n * @public\r\n */\r\nexport interface DisplayValueGroupJSON {\r\n displayValue: DisplayValueJSON;\r\n groupedRawValues: ValueJSON[];\r\n}\r\n\r\n/** @public */\r\nexport namespace DisplayValueGroup {\r\n /** Serialize [[DisplayValueGroup]] to JSON */\r\n export function toJSON(group: DisplayValueGroup): DisplayValueGroupJSON {\r\n return {\r\n displayValue: DisplayValue.toJSON(group.displayValue),\r\n groupedRawValues: group.groupedRawValues.map(Value.toJSON),\r\n };\r\n }\r\n\r\n /** Deserialize [[DisplayValueGroup]] from JSON */\r\n export function fromJSON(json: DisplayValueGroupJSON): DisplayValueGroup {\r\n return {\r\n displayValue: DisplayValue.fromJSON(json.displayValue),\r\n groupedRawValues: json.groupedRawValues.map(Value.fromJSON),\r\n };\r\n }\r\n}\r\n\r\nfunction isNestedContentValue(v: Value | ValueJSON): v is NestedContentValue[] | NestedContentValueJSON[] {\r\n return (v !== undefined) && Array.isArray(v)\r\n && ((v.length === 0)\r\n || (v[0] as NestedContentValue).primaryKeys !== undefined\r\n && (v[0] as NestedContentValue).values !== undefined\r\n && (v[0] as NestedContentValue).displayValues !== undefined\r\n && (v[0] as NestedContentValue).mergedFieldNames !== undefined);\r\n}\r\nfunction isArrayValue(v: Value | ValueJSON | DisplayValue | DisplayValueJSON): v is ValuesArray | ValuesArrayJSON | DisplayValuesArray | DisplayValuesArrayJSON {\r\n // note: we don't guarantee by 100% that v is ValuesArray | DisplayValuesArray, but merely make compiler happy.\r\n // we have other means to determine the type of value.\r\n return (v !== undefined) && Array.isArray(v);\r\n}\r\nfunction isMapValue(v: Value | ValueJSON | DisplayValue | DisplayValueJSON): v is ValuesMap | ValuesMapJSON | DisplayValuesMap | DisplayValuesMapJSON {\r\n return (v !== undefined) && (typeof v === \"object\") && !Array.isArray(v);\r\n}\r\nfunction isPrimitiveValue(v: Value | DisplayValue): v is string | number | boolean | undefined {\r\n return !isArrayValue(v) && !isMapValue(v);\r\n}\r\n\r\nfunction valuesArrayFromJSON(json: ValuesArrayJSON): ValuesArray {\r\n return json.map(Value.fromJSON);\r\n}\r\nfunction valuesArrayToJSON(values: ValuesArray): ValuesArrayJSON {\r\n return values.map(Value.toJSON);\r\n}\r\nfunction valuesMapFromJSON(json: ValuesMapJSON): ValuesMap {\r\n const map: ValuesMap = {};\r\n for (const key in json) {\r\n /* istanbul ignore else */\r\n if (json.hasOwnProperty(key)) {\r\n map[key] = Value.fromJSON(json[key]);\r\n }\r\n }\r\n return map;\r\n}\r\nfunction valuesMapToJSON(values: ValuesMap): ValuesMapJSON {\r\n const map: ValuesMapJSON = {};\r\n for (const key in values) {\r\n /* istanbul ignore else */\r\n if (values.hasOwnProperty(key)) {\r\n map[key] = Value.toJSON(values[key]);\r\n }\r\n }\r\n return map;\r\n}\r\n\r\nfunction displayValuesArrayFromJSON(json: DisplayValuesArrayJSON): DisplayValuesArray {\r\n return json.map(DisplayValue.fromJSON);\r\n}\r\nfunction displayValuesArrayToJSON(values: DisplayValuesArray): DisplayValuesArrayJSON {\r\n return values.map(DisplayValue.toJSON);\r\n}\r\nfunction displayValuesMapFromJSON(json: DisplayValuesMapJSON): DisplayValuesMap {\r\n const map: DisplayValuesMap = {};\r\n for (const key in json) {\r\n /* istanbul ignore else */\r\n if (json.hasOwnProperty(key)) {\r\n map[key] = DisplayValue.fromJSON(json[key]);\r\n }\r\n }\r\n return map;\r\n}\r\nfunction displayValuesMapToJSON(values: DisplayValuesMap): DisplayValuesMapJSON {\r\n const map: DisplayValuesMapJSON = {};\r\n for (const key in values) {\r\n /* istanbul ignore else */\r\n if (values.hasOwnProperty(key)) {\r\n map[key] = DisplayValue.toJSON(values[key]);\r\n }\r\n }\r\n return map;\r\n}\r\n"]}
1
+ {"version":3,"file":"Value.js","sourceRoot":"","sources":["../../../../src/presentation-common/content/Value.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAWH,cAAc;AACd,IAAiB,KAAK,CAwDrB;AAxDD,WAAiB,KAAK;IACpB,+BAA+B;IAC/B,SAAgB,WAAW,CAAC,KAAY;QACtC,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAFe,iBAAW,cAE1B,CAAA;IAED,4BAA4B;IAC5B,SAAgB,OAAO,CAAC,KAAY;QAClC,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAFe,aAAO,UAEtB,CAAA;IAED,kCAAkC;IAClC,SAAgB,KAAK,CAAC,KAAY;QAChC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAFe,WAAK,QAEpB,CAAA;IAED,0CAA0C;IAC1C,SAAgB,eAAe,CAAC,KAAY;QAC1C,OAAO,oBAAoB,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAFe,qBAAe,kBAE9B,CAAA;IAED;;;OAGG;IACH,mDAAmD;IACnD,SAAgB,QAAQ,CAAC,IAAe;QACtC,IAAI,IAAI,KAAK,IAAI;YACf,OAAO,SAAS,CAAC;QACnB,IAAI,oBAAoB,CAAC,IAAI,CAAC;YAC5B,mDAAmD;YACnD,OAAO,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAA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,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;SAC7C;KACF;IACD,OAAO,GAAG,CAAC;AACb,CAAC","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 Content\r\n */\r\n\r\nimport { InstanceKey } from \"../EC\";\r\nimport { ValuesDictionary } from \"../Utils\";\r\n\r\n/**\r\n * Raw value type\r\n * @public\r\n */\r\nexport type Value = string | number | boolean | undefined | ValuesMap | ValuesArray | NestedContentValue[];\r\n\r\n/** @public */\r\nexport namespace Value { // eslint-disable-line @typescript-eslint/no-redeclare\r\n /** Is the value a primitive */\r\n export function isPrimitive(value: Value): value is string | number | boolean | undefined {\r\n return isPrimitiveValue(value);\r\n }\r\n\r\n /** Is the value an array */\r\n export function isArray(value: Value): value is ValuesArray {\r\n return isArrayValue(value);\r\n }\r\n\r\n /** Is the value a map / struct */\r\n export function isMap(value: Value): value is ValuesMap {\r\n return isMapValue(value);\r\n }\r\n\r\n /** Is the value a nested content value */\r\n export function isNestedContent(value: Value): value is NestedContentValue[] {\r\n return isNestedContentValue(value);\r\n }\r\n\r\n /**\r\n * Serialize [[Value]] to JSON\r\n * @deprecated in 3.x. Use [[Value]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function fromJSON(json: ValueJSON): Value {\r\n if (json === null)\r\n return undefined;\r\n if (isNestedContentValue(json))\r\n // eslint-disable-next-line deprecation/deprecation\r\n return json.map(NestedContentValue.fromJSON);\r\n if (isArrayValue(json))\r\n return valuesArrayFromJSON(json);\r\n if (isMapValue(json))\r\n return valuesMapFromJSON(json);\r\n return json;\r\n }\r\n\r\n /**\r\n * Deserialize [[Value]] from JSON\r\n * @deprecated in 3.x. Use [[Value]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function toJSON(value: Value): ValueJSON {\r\n if (undefined === value)\r\n return null;\r\n if (isNestedContentValue(value))\r\n // eslint-disable-next-line deprecation/deprecation\r\n return value.map(NestedContentValue.toJSON);\r\n if (isArrayValue(value))\r\n return valuesArrayToJSON(value);\r\n if (isMapValue(value))\r\n return valuesMapToJSON(value);\r\n return value;\r\n }\r\n}\r\n\r\n/**\r\n * A map of raw values\r\n * @public\r\n */\r\nexport interface ValuesMap extends ValuesDictionary<Value> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * An array of raw values\r\n * @public\r\n */\r\nexport interface ValuesArray extends Array<Value> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * Display value type.\r\n * @public\r\n */\r\nexport type DisplayValue = string | undefined | DisplayValuesMap | DisplayValuesArray;\r\n\r\n/** @public */\r\nexport namespace DisplayValue { // eslint-disable-line @typescript-eslint/no-redeclare\r\n /** Is the value a primitive */\r\n export function isPrimitive(value: DisplayValue): value is string | undefined {\r\n return isPrimitiveValue(value);\r\n }\r\n\r\n /** Is the value an array */\r\n export function isArray(value: DisplayValue): value is DisplayValuesArray {\r\n return isArrayValue(value);\r\n }\r\n\r\n /** Is the value a map / struct */\r\n export function isMap(value: DisplayValue): value is DisplayValuesMap {\r\n return isMapValue(value);\r\n }\r\n\r\n /**\r\n * Serialize [[DisplayValue]] to JSON\r\n * @deprecated in 3.x. Use [[DisplayValue]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function fromJSON(json: DisplayValueJSON): DisplayValue {\r\n if (json === null)\r\n return undefined;\r\n if (isArrayValue(json))\r\n return displayValuesArrayFromJSON(json);\r\n if (isMapValue(json))\r\n return displayValuesMapFromJSON(json);\r\n return json;\r\n }\r\n\r\n /**\r\n * Deserialize [[DisplayValue]] from JSON\r\n * @deprecated in 3.x. Use [[DisplayValue]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function toJSON(value: DisplayValue): DisplayValueJSON {\r\n if (undefined === value)\r\n return null;\r\n if (isArrayValue(value))\r\n return displayValuesArrayToJSON(value);\r\n if (isMapValue(value))\r\n return displayValuesMapToJSON(value);\r\n return value;\r\n }\r\n}\r\n\r\n/**\r\n * A map of display values\r\n * @public\r\n */\r\nexport interface DisplayValuesMap extends ValuesDictionary<DisplayValue> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * An array of display values\r\n * @public\r\n */\r\nexport interface DisplayValuesArray extends Array<DisplayValue> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * Data structure that describes nested content value.\r\n * @public\r\n */\r\nexport interface NestedContentValue {\r\n /** Keys of instances whose content is contained in this value */\r\n primaryKeys: InstanceKey[];\r\n /** Content values map */\r\n values: ValuesDictionary<Value>;\r\n /** Content display values map */\r\n displayValues: ValuesDictionary<DisplayValue>;\r\n /** Names of fields whose values are merged */\r\n mergedFieldNames: string[];\r\n}\r\n\r\n/** @public */\r\nexport namespace NestedContentValue {\r\n /**\r\n * Serialize [[NestedContentValue]] to JSON\r\n * @deprecated in 3.x. Use [[NestedContentValue]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function toJSON(value: NestedContentValue): NestedContentValueJSON {\r\n return {\r\n ...value,\r\n values: valuesMapToJSON(value.values),\r\n displayValues: displayValuesMapToJSON(value.displayValues),\r\n };\r\n }\r\n\r\n /**\r\n * Deserialize [[NestedContentValue]] from JSON\r\n * @deprecated in 3.x. Use [[NestedContentValue]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function fromJSON(json: NestedContentValueJSON): NestedContentValue {\r\n return {\r\n ...json,\r\n values: valuesMapFromJSON(json.values),\r\n displayValues: displayValuesMapFromJSON(json.displayValues),\r\n };\r\n }\r\n}\r\n\r\n/**\r\n * JSON representation of [[Value]]\r\n * @public\r\n * @deprecated in 3.x. Use [[Value]]\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport type ValueJSON = string | number | boolean | null | ValuesMapJSON | ValuesArrayJSON | NestedContentValueJSON[];\r\n/**\r\n * JSON representation of [[ValuesMap]]\r\n * @public\r\n * @deprecated in 3.x. Use [[ValuesMap]]\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport interface ValuesMapJSON extends ValuesDictionary<ValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[ValuesArray]]\r\n * @public\r\n * @deprecated in 3.x. Use [[ValuesArray]]\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport interface ValuesArrayJSON extends Array<ValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[DisplayValue]]\r\n * @public\r\n * @deprecated in 3.x. Use [[DisplayValue]]\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport type DisplayValueJSON = string | null | DisplayValuesMapJSON | DisplayValuesArrayJSON;\r\n\r\n/**\r\n * JSON representation of [[DisplayValuesMap]]\r\n * @public\r\n * @deprecated in 3.x. Use [[DisplayValuesMap]]\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport interface DisplayValuesMapJSON extends ValuesDictionary<DisplayValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[DisplayValuesArray]]\r\n * @public\r\n * @deprecated in 3.x. Use [[DisplayValuesArray]]\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport interface DisplayValuesArrayJSON extends Array<DisplayValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[NestedContentValue]]\r\n * @public\r\n * @deprecated in 3.x. Use [[NestedContentValue]]\r\n */\r\nexport interface NestedContentValueJSON {\r\n primaryKeys: InstanceKey[];\r\n // eslint-disable-next-line deprecation/deprecation\r\n values: ValuesDictionary<ValueJSON>;\r\n // eslint-disable-next-line deprecation/deprecation\r\n displayValues: ValuesDictionary<DisplayValueJSON>;\r\n mergedFieldNames: string[];\r\n}\r\n\r\n/**\r\n * A group of raw values and their common display value.\r\n * @public\r\n */\r\nexport interface DisplayValueGroup {\r\n /** Common display value for all grouped raw values */\r\n displayValue: DisplayValue;\r\n /** A list of grouped raw values */\r\n groupedRawValues: Value[];\r\n}\r\n\r\n/**\r\n * JSON representation of [[DisplayValueGroup]].\r\n * @public\r\n * @deprecated in 3.x. Use [[DisplayValueGroup]]\r\n */\r\nexport interface DisplayValueGroupJSON {\r\n // eslint-disable-next-line deprecation/deprecation\r\n displayValue: DisplayValueJSON;\r\n // eslint-disable-next-line deprecation/deprecation\r\n groupedRawValues: ValueJSON[];\r\n}\r\n\r\n/** @public */\r\nexport namespace DisplayValueGroup {\r\n /**\r\n * Serialize [[DisplayValueGroup]] to JSON\r\n * @deprecated in 3.x. Use [[DisplayValueGroup]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function toJSON(group: DisplayValueGroup): DisplayValueGroupJSON {\r\n return {\r\n // eslint-disable-next-line deprecation/deprecation\r\n displayValue: DisplayValue.toJSON(group.displayValue),\r\n // eslint-disable-next-line deprecation/deprecation\r\n groupedRawValues: group.groupedRawValues.map(Value.toJSON),\r\n };\r\n }\r\n\r\n /**\r\n * Deserialize [[DisplayValueGroup]] from JSON\r\n * @deprecated in 3.x. Use [[DisplayValueGroup]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function fromJSON(json: DisplayValueGroupJSON): DisplayValueGroup {\r\n return {\r\n // eslint-disable-next-line deprecation/deprecation\r\n displayValue: DisplayValue.fromJSON(json.displayValue),\r\n // eslint-disable-next-line deprecation/deprecation\r\n groupedRawValues: json.groupedRawValues.map(Value.fromJSON),\r\n };\r\n }\r\n}\r\n\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction isNestedContentValue(v: Value | ValueJSON): v is NestedContentValue[] | NestedContentValueJSON[] {\r\n return (v !== undefined) && Array.isArray(v)\r\n && ((v.length === 0)\r\n || (v[0] as NestedContentValue).primaryKeys !== undefined\r\n && (v[0] as NestedContentValue).values !== undefined\r\n && (v[0] as NestedContentValue).displayValues !== undefined\r\n && (v[0] as NestedContentValue).mergedFieldNames !== undefined);\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction isArrayValue(v: Value | ValueJSON | DisplayValue | DisplayValueJSON): v is ValuesArray | ValuesArrayJSON | DisplayValuesArray | DisplayValuesArrayJSON {\r\n // note: we don't guarantee by 100% that v is ValuesArray | DisplayValuesArray, but merely make compiler happy.\r\n // we have other means to determine the type of value.\r\n return (v !== undefined) && Array.isArray(v);\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction isMapValue(v: Value | ValueJSON | DisplayValue | DisplayValueJSON): v is ValuesMap | ValuesMapJSON | DisplayValuesMap | DisplayValuesMapJSON {\r\n return (v !== undefined) && (typeof v === \"object\") && !Array.isArray(v);\r\n}\r\nfunction isPrimitiveValue(v: Value | DisplayValue): v is string | number | boolean | undefined {\r\n return !isArrayValue(v) && !isMapValue(v);\r\n}\r\n\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction valuesArrayFromJSON(json: ValuesArrayJSON): ValuesArray {\r\n // eslint-disable-next-line deprecation/deprecation\r\n return json.map(Value.fromJSON);\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction valuesArrayToJSON(values: ValuesArray): ValuesArrayJSON {\r\n // eslint-disable-next-line deprecation/deprecation\r\n return values.map(Value.toJSON);\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction valuesMapFromJSON(json: ValuesMapJSON): ValuesMap {\r\n const map: ValuesMap = {};\r\n for (const key in json) {\r\n /* istanbul ignore else */\r\n if (json.hasOwnProperty(key)) {\r\n // eslint-disable-next-line deprecation/deprecation\r\n map[key] = Value.fromJSON(json[key]);\r\n }\r\n }\r\n return map;\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction valuesMapToJSON(values: ValuesMap): ValuesMapJSON {\r\n // eslint-disable-next-line deprecation/deprecation\r\n const map: ValuesMapJSON = {};\r\n for (const key in values) {\r\n /* istanbul ignore else */\r\n if (values.hasOwnProperty(key)) {\r\n // eslint-disable-next-line deprecation/deprecation\r\n map[key] = Value.toJSON(values[key]);\r\n }\r\n }\r\n return map;\r\n}\r\n\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction displayValuesArrayFromJSON(json: DisplayValuesArrayJSON): DisplayValuesArray {\r\n // eslint-disable-next-line deprecation/deprecation\r\n return json.map(DisplayValue.fromJSON);\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction displayValuesArrayToJSON(values: DisplayValuesArray): DisplayValuesArrayJSON {\r\n // eslint-disable-next-line deprecation/deprecation\r\n return values.map(DisplayValue.toJSON);\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction displayValuesMapFromJSON(json: DisplayValuesMapJSON): DisplayValuesMap {\r\n const map: DisplayValuesMap = {};\r\n for (const key in json) {\r\n /* istanbul ignore else */\r\n if (json.hasOwnProperty(key)) {\r\n // eslint-disable-next-line deprecation/deprecation\r\n map[key] = DisplayValue.fromJSON(json[key]);\r\n }\r\n }\r\n return map;\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction displayValuesMapToJSON(values: DisplayValuesMap): DisplayValuesMapJSON {\r\n // eslint-disable-next-line deprecation/deprecation\r\n const map: DisplayValuesMapJSON = {};\r\n for (const key in values) {\r\n /* istanbul ignore else */\r\n if (values.hasOwnProperty(key)) {\r\n // eslint-disable-next-line deprecation/deprecation\r\n map[key] = DisplayValue.toJSON(values[key]);\r\n }\r\n }\r\n return map;\r\n}\r\n"]}
@@ -4,7 +4,7 @@
4
4
  import { Node, NodeJSON } from "./Node";
5
5
  /**
6
6
  * Defines a hierarchy level that consists of an array of nodes and possibly other information.
7
- * @alpha
7
+ * @beta
8
8
  */
9
9
  export interface HierarchyLevel {
10
10
  /** A list of nodes in a hierarchy level. */
@@ -17,15 +17,22 @@ export interface HierarchyLevel {
17
17
  }
18
18
  /**
19
19
  * JSON representation of [[HierarchyLevel]].
20
- * @alpha
20
+ * @beta
21
+ * @deprecated in 3.x. Use [[HierarchyLevel]]
21
22
  */
22
23
  export interface HierarchyLevelJSON {
23
24
  nodes: NodeJSON[];
24
25
  supportsFiltering?: boolean;
25
26
  }
26
- /** @alpha */
27
+ /**
28
+ * Contains helper functions for working with objects of [[HierarchyLevel]] type.
29
+ * @beta
30
+ */
27
31
  export declare namespace HierarchyLevel {
28
- /** Deserialize [[HierarchyLevel]] from JSON */
32
+ /**
33
+ * Deserialize [[HierarchyLevel]] from JSON
34
+ * @deprecated in 3.x. Use [[HierarchyLevel]].
35
+ */
29
36
  function fromJSON(json: HierarchyLevelJSON): HierarchyLevel;
30
37
  }
31
38
  //# sourceMappingURL=HierarchyLevel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HierarchyLevel.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/HierarchyLevel.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAExC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,KAAK,EAAE,IAAI,EAAE,CAAC;IACd;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,aAAa;AACb,yBAAiB,cAAc,CAAC;IAC9B,+CAA+C;IAC/C,SAAgB,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAKjE;CACF"}
1
+ {"version":3,"file":"HierarchyLevel.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/HierarchyLevel.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAExC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,KAAK,EAAE,IAAI,EAAE,CAAC;IACd;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAEjC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B;;;OAGG;IAEH,SAAgB,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAMjE;CACF"}
@@ -9,13 +9,21 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.HierarchyLevel = void 0;
11
11
  const Node_1 = require("./Node");
12
- /** @alpha */
12
+ /**
13
+ * Contains helper functions for working with objects of [[HierarchyLevel]] type.
14
+ * @beta
15
+ */
13
16
  var HierarchyLevel;
14
17
  (function (HierarchyLevel) {
15
- /** Deserialize [[HierarchyLevel]] from JSON */
18
+ /**
19
+ * Deserialize [[HierarchyLevel]] from JSON
20
+ * @deprecated in 3.x. Use [[HierarchyLevel]].
21
+ */
22
+ // eslint-disable-next-line deprecation/deprecation
16
23
  function fromJSON(json) {
17
24
  return {
18
25
  ...json,
26
+ // eslint-disable-next-line deprecation/deprecation
19
27
  nodes: json.nodes.map(Node_1.Node.fromJSON),
20
28
  };
21
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"HierarchyLevel.js","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/HierarchyLevel.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,iCAAwC;AAyBxC,aAAa;AACb,IAAiB,cAAc,CAQ9B;AARD,WAAiB,cAAc;IAC7B,+CAA+C;IAC/C,SAAgB,QAAQ,CAAC,IAAwB;QAC/C,OAAO;YACL,GAAG,IAAI;YACP,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,WAAI,CAAC,QAAQ,CAAC;SACrC,CAAC;IACJ,CAAC;IALe,uBAAQ,WAKvB,CAAA;AACH,CAAC,EARgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAQ9B","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 Hierarchies\r\n */\r\n\r\nimport { Node, NodeJSON } from \"./Node\";\r\n\r\n/**\r\n * Defines a hierarchy level that consists of an array of nodes and possibly other information.\r\n * @alpha\r\n */\r\nexport interface HierarchyLevel {\r\n /** A list of nodes in a hierarchy level. */\r\n nodes: Node[];\r\n /**\r\n * Identifies whether the hierarchy level supports filtering. If not, requesting either a hierarchy level descriptor or\r\n * a hierarchy level with [[HierarchyRequestOptions.instanceFilter]] will throw an error with [[PresentationStatus.InvalidArgument]] status.\r\n */\r\n supportsFiltering?: boolean;\r\n}\r\n\r\n/**\r\n * JSON representation of [[HierarchyLevel]].\r\n * @alpha\r\n */\r\nexport interface HierarchyLevelJSON {\r\n nodes: NodeJSON[];\r\n supportsFiltering?: boolean;\r\n}\r\n\r\n/** @alpha */\r\nexport namespace HierarchyLevel {\r\n /** Deserialize [[HierarchyLevel]] from JSON */\r\n export function fromJSON(json: HierarchyLevelJSON): HierarchyLevel {\r\n return {\r\n ...json,\r\n nodes: json.nodes.map(Node.fromJSON),\r\n };\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"HierarchyLevel.js","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/HierarchyLevel.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,iCAAwC;AA2BxC;;;GAGG;AACH,IAAiB,cAAc,CAa9B;AAbD,WAAiB,cAAc;IAC7B;;;OAGG;IACH,mDAAmD;IACnD,SAAgB,QAAQ,CAAC,IAAwB;QAC/C,OAAO;YACL,GAAG,IAAI;YACP,mDAAmD;YACnD,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,WAAI,CAAC,QAAQ,CAAC;SACrC,CAAC;IACJ,CAAC;IANe,uBAAQ,WAMvB,CAAA;AACH,CAAC,EAbgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAa9B","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 Hierarchies\r\n */\r\n\r\nimport { Node, NodeJSON } from \"./Node\";\r\n\r\n/**\r\n * Defines a hierarchy level that consists of an array of nodes and possibly other information.\r\n * @beta\r\n */\r\nexport interface HierarchyLevel {\r\n /** A list of nodes in a hierarchy level. */\r\n nodes: Node[];\r\n /**\r\n * Identifies whether the hierarchy level supports filtering. If not, requesting either a hierarchy level descriptor or\r\n * a hierarchy level with [[HierarchyRequestOptions.instanceFilter]] will throw an error with [[PresentationStatus.InvalidArgument]] status.\r\n */\r\n supportsFiltering?: boolean;\r\n}\r\n\r\n/**\r\n * JSON representation of [[HierarchyLevel]].\r\n * @beta\r\n * @deprecated in 3.x. Use [[HierarchyLevel]]\r\n */\r\nexport interface HierarchyLevelJSON {\r\n // eslint-disable-next-line deprecation/deprecation\r\n nodes: NodeJSON[];\r\n supportsFiltering?: boolean;\r\n}\r\n\r\n/**\r\n * Contains helper functions for working with objects of [[HierarchyLevel]] type.\r\n * @beta\r\n */\r\nexport namespace HierarchyLevel {\r\n /**\r\n * Deserialize [[HierarchyLevel]] from JSON\r\n * @deprecated in 3.x. Use [[HierarchyLevel]].\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function fromJSON(json: HierarchyLevelJSON): HierarchyLevel {\r\n return {\r\n ...json,\r\n // eslint-disable-next-line deprecation/deprecation\r\n nodes: json.nodes.map(Node.fromJSON),\r\n };\r\n }\r\n}\r\n"]}
@@ -1,7 +1,7 @@
1
1
  /** @packageDocumentation
2
2
  * @module Hierarchies
3
3
  */
4
- import { InstanceKey, InstanceKeyJSON } from "../EC";
4
+ import { InstanceKey } from "../EC";
5
5
  /**
6
6
  * Standard node types
7
7
  * @public
@@ -19,29 +19,35 @@ export declare enum StandardNodeTypes {
19
19
  export declare type NodeKey = BaseNodeKey | ECInstancesNodeKey | ECClassGroupingNodeKey | ECPropertyGroupingNodeKey | LabelGroupingNodeKey;
20
20
  /** @public */
21
21
  export declare namespace NodeKey {
22
- /** Serialize given [[NodeKey]] to JSON */
22
+ /**
23
+ * Serialize given [[NodeKey]] to JSON
24
+ * @deprecated in 3.x. Use [[NodeKey]].
25
+ */
23
26
  function toJSON(key: NodeKey): NodeKeyJSON;
24
- /** Deserialize node key from JSON */
27
+ /**
28
+ * Deserialize node key from JSON
29
+ * @deprecated in 3.x. Use [[NodeKey]].
30
+ */
25
31
  function fromJSON(json: NodeKeyJSON): NodeKey;
26
32
  /** Checks if the supplied key is an [[ECInstancesNodeKey]] */
27
33
  function isInstancesNodeKey(key: NodeKey): key is ECInstancesNodeKey;
28
- /** Checks if the supplied key is an [[ECInstancesNodeKey]] */
34
+ /** Checks if the supplied key is an [[ECInstancesNodeKey]]. @deprecated in 3.x */
29
35
  function isInstancesNodeKey(key: NodeKeyJSON): key is ECInstancesNodeKeyJSON;
30
36
  /** Checks if the supplied key is an [[ECClassGroupingNodeKey]] */
31
37
  function isClassGroupingNodeKey(key: NodeKey): key is ECClassGroupingNodeKey;
32
- /** Checks if the supplied key is an [[ECClassGroupingNodeKey]] */
38
+ /** Checks if the supplied key is an [[ECClassGroupingNodeKey]]. @deprecated in 3.x */
33
39
  function isClassGroupingNodeKey(key: NodeKeyJSON): key is ECClassGroupingNodeKeyJSON;
34
40
  /** Checks if the supplied key is an [[ECPropertyGroupingNodeKey]] */
35
41
  function isPropertyGroupingNodeKey(key: NodeKey): key is ECPropertyGroupingNodeKey;
36
- /** Checks if the supplied key is an [[ECPropertyGroupingNodeKey]] */
42
+ /** Checks if the supplied key is an [[ECPropertyGroupingNodeKey]]. @deprecated in 3.x */
37
43
  function isPropertyGroupingNodeKey(key: NodeKeyJSON): key is ECPropertyGroupingNodeKeyJSON;
38
44
  /** Checks if the supplied key is a [[LabelGroupingNodeKey]] */
39
45
  function isLabelGroupingNodeKey(key: NodeKey): key is LabelGroupingNodeKey;
40
- /** Checks if the supplied key is a [[LabelGroupingNodeKey]] */
46
+ /** Checks if the supplied key is a [[LabelGroupingNodeKey]]. @deprecated in 3.x */
41
47
  function isLabelGroupingNodeKey(key: NodeKeyJSON): key is LabelGroupingNodeKeyJSON;
42
48
  /** Checks if the supplied key is a grouping node key */
43
49
  function isGroupingNodeKey(key: NodeKey): key is GroupingNodeKey;
44
- /** Checks if the supplied key is a grouping node key */
50
+ /** Checks if the supplied key is a grouping node key. @deprecated in 3.x */
45
51
  function isGroupingNodeKey(key: NodeKeyJSON): key is GroupingNodeKeyJSON;
46
52
  /**
47
53
  * Checks if two given node keys are equal, taking their versions into account.
@@ -77,6 +83,7 @@ export interface BaseNodeKey {
77
83
  /**
78
84
  * Serialized [[BaseNodeKey]] JSON representation.
79
85
  * @public
86
+ * @deprecated in 3.x. Use [[BaseNodeKey]].
80
87
  */
81
88
  export interface BaseNodeKeyJSON {
82
89
  type: string;
@@ -95,10 +102,11 @@ export interface ECInstancesNodeKey extends BaseNodeKey {
95
102
  /**
96
103
  * Serialized [[ECInstancesNodeKey]] JSON representation.
97
104
  * @public
105
+ * @deprecated in 3.x. Use [[ECInstancesNodeKey]].
98
106
  */
99
- export interface ECInstancesNodeKeyJSON extends BaseNodeKeyJSON {
107
+ export interface ECInstancesNodeKeyJSON extends BaseNodeKey {
100
108
  type: StandardNodeTypes.ECInstancesNode;
101
- instanceKeys: InstanceKeyJSON[];
109
+ instanceKeys: InstanceKey[];
102
110
  }
103
111
  /**
104
112
  * Data structure that describes a grouping node key
@@ -117,8 +125,9 @@ export interface GroupingNodeKey extends BaseNodeKey {
117
125
  /**
118
126
  * Serialized [[GroupingNodeKey]] JSON representation.
119
127
  * @public
128
+ * @deprecated in 3.x. Use [[GroupingNodeKey]].
120
129
  */
121
- export interface GroupingNodeKeyJSON extends BaseNodeKeyJSON {
130
+ export interface GroupingNodeKeyJSON extends BaseNodeKey {
122
131
  groupedInstancesCount: number;
123
132
  }
124
133
  /**
@@ -133,8 +142,9 @@ export interface ECClassGroupingNodeKey extends GroupingNodeKey {
133
142
  /**
134
143
  * Serialized [[ECClassGroupingNodeKey]] JSON representation.
135
144
  * @public
145
+ * @deprecated in 3.x. Use [[ECClassGroupingNodeKey]].
136
146
  */
137
- export interface ECClassGroupingNodeKeyJSON extends GroupingNodeKeyJSON {
147
+ export interface ECClassGroupingNodeKeyJSON extends GroupingNodeKey {
138
148
  type: StandardNodeTypes.ECClassGroupingNode;
139
149
  className: string;
140
150
  }
@@ -154,8 +164,9 @@ export interface ECPropertyGroupingNodeKey extends GroupingNodeKey {
154
164
  /**
155
165
  * Serialized [[ECPropertyGroupingNodeKey]] JSON representation.
156
166
  * @public
167
+ * @deprecated in 3.x. Use [[ECPropertyGroupingNodeKey]].
157
168
  */
158
- export interface ECPropertyGroupingNodeKeyJSON extends GroupingNodeKeyJSON {
169
+ export interface ECPropertyGroupingNodeKeyJSON extends GroupingNodeKey {
159
170
  type: StandardNodeTypes.ECPropertyGroupingNode;
160
171
  className: string;
161
172
  propertyName: string;
@@ -173,14 +184,16 @@ export interface LabelGroupingNodeKey extends GroupingNodeKey {
173
184
  /**
174
185
  * Serialized [[LabelGroupingNodeKey]] JSON representation.
175
186
  * @public
187
+ * @deprecated in 3.x. Use [[LabelGroupingNodeKey]].
176
188
  */
177
- export interface LabelGroupingNodeKeyJSON extends GroupingNodeKeyJSON {
189
+ export interface LabelGroupingNodeKeyJSON extends GroupingNodeKey {
178
190
  type: StandardNodeTypes.DisplayLabelGroupingNode;
179
191
  label: string;
180
192
  }
181
193
  /**
182
194
  * One of the serialized node key types
183
195
  * @public
196
+ * @deprecated in 3.x. Use [[NodeKey]].
184
197
  */
185
198
  export declare type NodeKeyJSON = BaseNodeKeyJSON | ECInstancesNodeKeyJSON | ECClassGroupingNodeKeyJSON | ECPropertyGroupingNodeKeyJSON | LabelGroupingNodeKeyJSON;
186
199
  //# sourceMappingURL=Key.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Key.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/Key.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAErD;;;GAGG;AACH,oBAAY,iBAAiB;IAC3B,eAAe,oBAAoB;IACnC,mBAAmB,wBAAwB;IAC3C,sBAAsB,2BAA2B;IACjD,wBAAwB,6BAA6B;CACtD;AAED;;;GAGG;AACH,oBAAY,OAAO,GAAG,WAAW,GAAG,kBAAkB,GAAG,sBAAsB,GAAG,yBAAyB,GAAG,oBAAoB,CAAC;AACnI,cAAc;AACd,yBAAiB,OAAO,CAAC;IACvB,0CAA0C;IAC1C,SAAgB,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,WAAW,CAIhD;IAED,qCAAqC;IACrC,SAAgB,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAInD;IAED,8DAA8D;IAC9D,SAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,kBAAkB,CAAC;IAC5E,8DAA8D;IAC9D,SAAgB,kBAAkB,CAAC,GAAG,EAAE,WAAW,GAAG,GAAG,IAAI,sBAAsB,CAAC;IAKpF,kEAAkE;IAClE,SAAgB,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,sBAAsB,CAAC;IACpF,kEAAkE;IAClE,SAAgB,sBAAsB,CAAC,GAAG,EAAE,WAAW,GAAG,GAAG,IAAI,0B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;IAC/D,IAAI,EAAE,iBAAiB,CAAC,wBAAwB,CAAC;IACjD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AAEH,oBAAY,WAAW,GAAG,eAAe,GAAG,sBAAsB,GAAG,0BAA0B,GAAG,6BAA6B,GAAG,wBAAwB,CAAC"}
@@ -24,36 +24,45 @@ var StandardNodeTypes;
24
24
  /** @public */
25
25
  var NodeKey;
26
26
  (function (NodeKey) {
27
- /** Serialize given [[NodeKey]] to JSON */
27
+ /**
28
+ * Serialize given [[NodeKey]] to JSON
29
+ * @deprecated in 3.x. Use [[NodeKey]].
30
+ */
31
+ // eslint-disable-next-line deprecation/deprecation
28
32
  function toJSON(key) {
29
- if (isInstancesNodeKey(key))
30
- return { ...key, instanceKeys: key.instanceKeys.map(EC_1.InstanceKey.toJSON) };
31
33
  return { ...key };
32
34
  }
33
35
  NodeKey.toJSON = toJSON;
34
- /** Deserialize node key from JSON */
36
+ /**
37
+ * Deserialize node key from JSON
38
+ * @deprecated in 3.x. Use [[NodeKey]].
39
+ */
40
+ // eslint-disable-next-line deprecation/deprecation
35
41
  function fromJSON(json) {
36
- if (isInstancesNodeKey(json))
37
- return { version: 1, ...json, instanceKeys: json.instanceKeys.map(EC_1.InstanceKey.fromJSON) };
38
42
  return { version: 1, ...json };
39
43
  }
40
44
  NodeKey.fromJSON = fromJSON;
45
+ // eslint-disable-next-line deprecation/deprecation
41
46
  function isInstancesNodeKey(key) {
42
47
  return key.type === StandardNodeTypes.ECInstancesNode;
43
48
  }
44
49
  NodeKey.isInstancesNodeKey = isInstancesNodeKey;
50
+ // eslint-disable-next-line deprecation/deprecation
45
51
  function isClassGroupingNodeKey(key) {
46
52
  return key.type === StandardNodeTypes.ECClassGroupingNode;
47
53
  }
48
54
  NodeKey.isClassGroupingNodeKey = isClassGroupingNodeKey;
55
+ // eslint-disable-next-line deprecation/deprecation
49
56
  function isPropertyGroupingNodeKey(key) {
50
57
  return key.type === StandardNodeTypes.ECPropertyGroupingNode;
51
58
  }
52
59
  NodeKey.isPropertyGroupingNodeKey = isPropertyGroupingNodeKey;
60
+ // eslint-disable-next-line deprecation/deprecation
53
61
  function isLabelGroupingNodeKey(key) {
54
62
  return key.type === StandardNodeTypes.DisplayLabelGroupingNode;
55
63
  }
56
64
  NodeKey.isLabelGroupingNodeKey = isLabelGroupingNodeKey;
65
+ // eslint-disable-next-line deprecation/deprecation
57
66
  function isGroupingNodeKey(key) {
58
67
  return isClassGroupingNodeKey(key) || isPropertyGroupingNodeKey(key) || isLabelGroupingNodeKey(key);
59
68
  }