@itwin/presentation-common 5.0.0-dev.11 → 5.0.0-dev.110

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 (482) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/Ruleset.schema.json +3 -258
  3. package/lib/cjs/package.json +1 -0
  4. package/lib/cjs/presentation-common/AsyncTasks.d.ts +4 -4
  5. package/lib/cjs/presentation-common/AsyncTasks.d.ts.map +1 -1
  6. package/lib/cjs/presentation-common/AsyncTasks.js +5 -6
  7. package/lib/cjs/presentation-common/AsyncTasks.js.map +1 -1
  8. package/lib/cjs/presentation-common/EC.d.ts +37 -81
  9. package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
  10. package/lib/cjs/presentation-common/EC.js +1 -97
  11. package/lib/cjs/presentation-common/EC.js.map +1 -1
  12. package/lib/cjs/presentation-common/ElementProperties.d.ts +2 -2
  13. package/lib/cjs/presentation-common/ElementProperties.d.ts.map +1 -1
  14. package/lib/cjs/presentation-common/ElementProperties.js +22 -15
  15. package/lib/cjs/presentation-common/ElementProperties.js.map +1 -1
  16. package/lib/cjs/presentation-common/Error.d.ts +2 -0
  17. package/lib/cjs/presentation-common/Error.d.ts.map +1 -1
  18. package/lib/cjs/presentation-common/Error.js +2 -0
  19. package/lib/cjs/presentation-common/Error.js.map +1 -1
  20. package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts +1 -1
  21. package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
  22. package/lib/cjs/presentation-common/InstanceFilterDefinition.js.map +1 -1
  23. package/lib/cjs/presentation-common/KeySet.d.ts +3 -3
  24. package/lib/cjs/presentation-common/KeySet.d.ts.map +1 -1
  25. package/lib/cjs/presentation-common/KeySet.js +20 -22
  26. package/lib/cjs/presentation-common/KeySet.js.map +1 -1
  27. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js +15 -11
  28. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
  29. package/lib/cjs/presentation-common/LabelDefinition.d.ts +2 -50
  30. package/lib/cjs/presentation-common/LabelDefinition.d.ts.map +1 -1
  31. package/lib/cjs/presentation-common/LabelDefinition.js +4 -47
  32. package/lib/cjs/presentation-common/LabelDefinition.js.map +1 -1
  33. package/lib/cjs/presentation-common/LocalizationHelper.d.ts +10 -10
  34. package/lib/cjs/presentation-common/LocalizationHelper.d.ts.map +1 -1
  35. package/lib/cjs/presentation-common/LocalizationHelper.js +13 -12
  36. package/lib/cjs/presentation-common/LocalizationHelper.js.map +1 -1
  37. package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts +12 -7
  38. package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts.map +1 -1
  39. package/lib/cjs/presentation-common/PresentationIpcInterface.js +9 -1
  40. package/lib/cjs/presentation-common/PresentationIpcInterface.js.map +1 -1
  41. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts +40 -25
  42. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  43. package/lib/cjs/presentation-common/PresentationManagerOptions.js +0 -5
  44. package/lib/cjs/presentation-common/PresentationManagerOptions.js.map +1 -1
  45. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts +22 -29
  46. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  47. package/lib/cjs/presentation-common/PresentationRpcInterface.js +41 -36
  48. package/lib/cjs/presentation-common/PresentationRpcInterface.js.map +1 -1
  49. package/lib/cjs/presentation-common/RegisteredRuleset.d.ts +6 -5
  50. package/lib/cjs/presentation-common/RegisteredRuleset.d.ts.map +1 -1
  51. package/lib/cjs/presentation-common/RegisteredRuleset.js +9 -1
  52. package/lib/cjs/presentation-common/RegisteredRuleset.js.map +1 -1
  53. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts +21 -24
  54. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  55. package/lib/cjs/presentation-common/RpcRequestsHandler.js +42 -35
  56. package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
  57. package/lib/cjs/presentation-common/RulesetVariables.d.ts +1 -46
  58. package/lib/cjs/presentation-common/RulesetVariables.d.ts.map +1 -1
  59. package/lib/cjs/presentation-common/RulesetVariables.js.map +1 -1
  60. package/lib/cjs/presentation-common/RulesetsFactory.d.ts +4 -4
  61. package/lib/cjs/presentation-common/RulesetsFactory.d.ts.map +1 -1
  62. package/lib/cjs/presentation-common/RulesetsFactory.js +15 -15
  63. package/lib/cjs/presentation-common/RulesetsFactory.js.map +1 -1
  64. package/lib/cjs/presentation-common/Update.d.ts +2 -79
  65. package/lib/cjs/presentation-common/Update.d.ts.map +1 -1
  66. package/lib/cjs/presentation-common/Update.js +1 -104
  67. package/lib/cjs/presentation-common/Update.js.map +1 -1
  68. package/lib/cjs/presentation-common/Utils.d.ts +22 -1
  69. package/lib/cjs/presentation-common/Utils.d.ts.map +1 -1
  70. package/lib/cjs/presentation-common/Utils.js +59 -3
  71. package/lib/cjs/presentation-common/Utils.js.map +1 -1
  72. package/lib/cjs/presentation-common/content/Category.d.ts +1 -1
  73. package/lib/cjs/presentation-common/content/Category.d.ts.map +1 -1
  74. package/lib/cjs/presentation-common/content/Category.js.map +1 -1
  75. package/lib/cjs/presentation-common/content/Content.d.ts +2 -9
  76. package/lib/cjs/presentation-common/content/Content.d.ts.map +1 -1
  77. package/lib/cjs/presentation-common/content/Content.js +9 -14
  78. package/lib/cjs/presentation-common/content/Content.js.map +1 -1
  79. package/lib/cjs/presentation-common/content/ContentTraverser.d.ts +9 -9
  80. package/lib/cjs/presentation-common/content/ContentTraverser.d.ts.map +1 -1
  81. package/lib/cjs/presentation-common/content/ContentTraverser.js +138 -50
  82. package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
  83. package/lib/cjs/presentation-common/content/Descriptor.d.ts +7 -52
  84. package/lib/cjs/presentation-common/content/Descriptor.d.ts.map +1 -1
  85. package/lib/cjs/presentation-common/content/Descriptor.js +82 -53
  86. package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
  87. package/lib/cjs/presentation-common/content/Fields.d.ts +157 -33
  88. package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
  89. package/lib/cjs/presentation-common/content/Fields.js +275 -151
  90. package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
  91. package/lib/cjs/presentation-common/content/Item.d.ts +28 -33
  92. package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
  93. package/lib/cjs/presentation-common/content/Item.js +53 -68
  94. package/lib/cjs/presentation-common/content/Item.js.map +1 -1
  95. package/lib/cjs/presentation-common/content/Property.d.ts +2 -14
  96. package/lib/cjs/presentation-common/content/Property.d.ts.map +1 -1
  97. package/lib/cjs/presentation-common/content/Property.js +2 -20
  98. package/lib/cjs/presentation-common/content/Property.js.map +1 -1
  99. package/lib/cjs/presentation-common/content/PropertyValueFormatter.d.ts +6 -6
  100. package/lib/cjs/presentation-common/content/PropertyValueFormatter.d.ts.map +1 -1
  101. package/lib/cjs/presentation-common/content/PropertyValueFormatter.js +12 -9
  102. package/lib/cjs/presentation-common/content/PropertyValueFormatter.js.map +1 -1
  103. package/lib/cjs/presentation-common/content/Value.d.ts +8 -110
  104. package/lib/cjs/presentation-common/content/Value.d.ts.map +1 -1
  105. package/lib/cjs/presentation-common/content/Value.js +1 -215
  106. package/lib/cjs/presentation-common/content/Value.js.map +1 -1
  107. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts +1 -22
  108. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
  109. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js +0 -23
  110. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  111. package/lib/cjs/presentation-common/hierarchy/Key.d.ts +1 -84
  112. package/lib/cjs/presentation-common/hierarchy/Key.d.ts.map +1 -1
  113. package/lib/cjs/presentation-common/hierarchy/Key.js +8 -26
  114. package/lib/cjs/presentation-common/hierarchy/Key.js.map +1 -1
  115. package/lib/cjs/presentation-common/hierarchy/Node.d.ts +4 -107
  116. package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
  117. package/lib/cjs/presentation-common/hierarchy/Node.js +0 -99
  118. package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
  119. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts +1 -67
  120. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  121. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js +0 -117
  122. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  123. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts +2 -2
  124. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts.map +1 -1
  125. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
  126. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts +2 -2
  127. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
  128. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  129. package/lib/cjs/presentation-common/rules/Rule.d.ts +6 -20
  130. package/lib/cjs/presentation-common/rules/Rule.d.ts.map +1 -1
  131. package/lib/cjs/presentation-common/rules/Rule.js.map +1 -1
  132. package/lib/cjs/presentation-common/rules/Ruleset.d.ts +3 -3
  133. package/lib/cjs/presentation-common/rules/Ruleset.d.ts.map +1 -1
  134. package/lib/cjs/presentation-common/rules/Ruleset.js.map +1 -1
  135. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +2 -2
  136. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
  137. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  138. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +2 -2
  139. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts.map +1 -1
  140. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  141. package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts +2 -2
  142. package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts.map +1 -1
  143. package/lib/cjs/presentation-common/rules/content/ContentRule.js.map +1 -1
  144. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +5 -12
  145. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  146. package/lib/cjs/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  147. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +2 -2
  148. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts.map +1 -1
  149. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  150. package/lib/cjs/presentation-common/rules/content/PropertySpecification.d.ts +3 -3
  151. package/lib/cjs/presentation-common/rules/content/PropertySpecification.d.ts.map +1 -1
  152. package/lib/cjs/presentation-common/rules/content/PropertySpecification.js.map +1 -1
  153. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +1 -1
  154. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts.map +1 -1
  155. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  156. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts +3 -3
  157. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts.map +1 -1
  158. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js.map +1 -1
  159. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts +6 -6
  160. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
  161. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  162. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +1 -1
  163. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts.map +1 -1
  164. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
  165. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +2 -2
  166. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
  167. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  168. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts +6 -10
  169. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  170. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  171. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts +1 -1
  172. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts.map +1 -1
  173. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  174. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +4 -30
  175. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  176. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js +1 -15
  177. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  178. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts +3 -3
  179. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  180. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  181. package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts +2 -2
  182. package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
  183. package/lib/cjs/presentation-common/rules/customization/SortingRule.js.map +1 -1
  184. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +1 -1
  185. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts.map +1 -1
  186. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  187. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +6 -6
  188. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  189. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  190. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +3 -1
  191. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  192. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  193. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +2 -2
  194. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts.map +1 -1
  195. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  196. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +2 -11
  197. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  198. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  199. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.d.ts +6 -6
  200. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.d.ts.map +1 -1
  201. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
  202. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +1 -1
  203. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts.map +1 -1
  204. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  205. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +2 -2
  206. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts.map +1 -1
  207. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  208. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts +1 -1
  209. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts.map +1 -1
  210. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  211. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts +2 -2
  212. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts.map +1 -1
  213. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  214. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts +3 -0
  215. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts.map +1 -1
  216. package/lib/cjs/presentation-common/selection/SelectionScope.js +1 -0
  217. package/lib/cjs/presentation-common/selection/SelectionScope.js.map +1 -1
  218. package/lib/cjs/presentation-common-internal.d.ts +10 -0
  219. package/lib/cjs/presentation-common-internal.d.ts.map +1 -0
  220. package/lib/cjs/presentation-common-internal.js +32 -0
  221. package/lib/cjs/presentation-common-internal.js.map +1 -0
  222. package/lib/cjs/presentation-common.d.ts +68 -77
  223. package/lib/cjs/presentation-common.d.ts.map +1 -1
  224. package/lib/cjs/presentation-common.js +110 -89
  225. package/lib/cjs/presentation-common.js.map +1 -1
  226. package/lib/esm/presentation-common/AsyncTasks.d.ts +4 -4
  227. package/lib/esm/presentation-common/AsyncTasks.d.ts.map +1 -1
  228. package/lib/esm/presentation-common/AsyncTasks.js +5 -6
  229. package/lib/esm/presentation-common/AsyncTasks.js.map +1 -1
  230. package/lib/esm/presentation-common/EC.d.ts +37 -81
  231. package/lib/esm/presentation-common/EC.d.ts.map +1 -1
  232. package/lib/esm/presentation-common/EC.js +0 -96
  233. package/lib/esm/presentation-common/EC.js.map +1 -1
  234. package/lib/esm/presentation-common/ElementProperties.d.ts +2 -2
  235. package/lib/esm/presentation-common/ElementProperties.d.ts.map +1 -1
  236. package/lib/esm/presentation-common/ElementProperties.js +18 -11
  237. package/lib/esm/presentation-common/ElementProperties.js.map +1 -1
  238. package/lib/esm/presentation-common/Error.d.ts +2 -0
  239. package/lib/esm/presentation-common/Error.d.ts.map +1 -1
  240. package/lib/esm/presentation-common/Error.js +2 -0
  241. package/lib/esm/presentation-common/Error.js.map +1 -1
  242. package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts +1 -1
  243. package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
  244. package/lib/esm/presentation-common/InstanceFilterDefinition.js.map +1 -1
  245. package/lib/esm/presentation-common/KeySet.d.ts +3 -3
  246. package/lib/esm/presentation-common/KeySet.d.ts.map +1 -1
  247. package/lib/esm/presentation-common/KeySet.js +10 -12
  248. package/lib/esm/presentation-common/KeySet.js.map +1 -1
  249. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js +16 -12
  250. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
  251. package/lib/esm/presentation-common/LabelDefinition.d.ts +2 -50
  252. package/lib/esm/presentation-common/LabelDefinition.d.ts.map +1 -1
  253. package/lib/esm/presentation-common/LabelDefinition.js +3 -46
  254. package/lib/esm/presentation-common/LabelDefinition.js.map +1 -1
  255. package/lib/esm/presentation-common/LocalizationHelper.d.ts +10 -10
  256. package/lib/esm/presentation-common/LocalizationHelper.d.ts.map +1 -1
  257. package/lib/esm/presentation-common/LocalizationHelper.js +6 -5
  258. package/lib/esm/presentation-common/LocalizationHelper.js.map +1 -1
  259. package/lib/esm/presentation-common/PresentationIpcInterface.d.ts +12 -7
  260. package/lib/esm/presentation-common/PresentationIpcInterface.d.ts.map +1 -1
  261. package/lib/esm/presentation-common/PresentationIpcInterface.js +8 -0
  262. package/lib/esm/presentation-common/PresentationIpcInterface.js.map +1 -1
  263. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts +40 -25
  264. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  265. package/lib/esm/presentation-common/PresentationManagerOptions.js +0 -4
  266. package/lib/esm/presentation-common/PresentationManagerOptions.js.map +1 -1
  267. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts +22 -29
  268. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  269. package/lib/esm/presentation-common/PresentationRpcInterface.js +42 -36
  270. package/lib/esm/presentation-common/PresentationRpcInterface.js.map +1 -1
  271. package/lib/esm/presentation-common/RegisteredRuleset.d.ts +6 -5
  272. package/lib/esm/presentation-common/RegisteredRuleset.d.ts.map +1 -1
  273. package/lib/esm/presentation-common/RegisteredRuleset.js +9 -1
  274. package/lib/esm/presentation-common/RegisteredRuleset.js.map +1 -1
  275. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts +21 -24
  276. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  277. package/lib/esm/presentation-common/RpcRequestsHandler.js +42 -35
  278. package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
  279. package/lib/esm/presentation-common/RulesetVariables.d.ts +1 -46
  280. package/lib/esm/presentation-common/RulesetVariables.d.ts.map +1 -1
  281. package/lib/esm/presentation-common/RulesetVariables.js.map +1 -1
  282. package/lib/esm/presentation-common/RulesetsFactory.d.ts +4 -4
  283. package/lib/esm/presentation-common/RulesetsFactory.d.ts.map +1 -1
  284. package/lib/esm/presentation-common/RulesetsFactory.js +6 -6
  285. package/lib/esm/presentation-common/RulesetsFactory.js.map +1 -1
  286. package/lib/esm/presentation-common/Update.d.ts +2 -79
  287. package/lib/esm/presentation-common/Update.d.ts.map +1 -1
  288. package/lib/esm/presentation-common/Update.js +0 -103
  289. package/lib/esm/presentation-common/Update.js.map +1 -1
  290. package/lib/esm/presentation-common/Utils.d.ts +22 -1
  291. package/lib/esm/presentation-common/Utils.d.ts.map +1 -1
  292. package/lib/esm/presentation-common/Utils.js +54 -1
  293. package/lib/esm/presentation-common/Utils.js.map +1 -1
  294. package/lib/esm/presentation-common/content/Category.d.ts +1 -1
  295. package/lib/esm/presentation-common/content/Category.d.ts.map +1 -1
  296. package/lib/esm/presentation-common/content/Category.js.map +1 -1
  297. package/lib/esm/presentation-common/content/Content.d.ts +2 -9
  298. package/lib/esm/presentation-common/content/Content.d.ts.map +1 -1
  299. package/lib/esm/presentation-common/content/Content.js +7 -12
  300. package/lib/esm/presentation-common/content/Content.js.map +1 -1
  301. package/lib/esm/presentation-common/content/ContentTraverser.d.ts +9 -9
  302. package/lib/esm/presentation-common/content/ContentTraverser.d.ts.map +1 -1
  303. package/lib/esm/presentation-common/content/ContentTraverser.js +123 -35
  304. package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
  305. package/lib/esm/presentation-common/content/Descriptor.d.ts +7 -52
  306. package/lib/esm/presentation-common/content/Descriptor.d.ts.map +1 -1
  307. package/lib/esm/presentation-common/content/Descriptor.js +71 -42
  308. package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
  309. package/lib/esm/presentation-common/content/Fields.d.ts +157 -33
  310. package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
  311. package/lib/esm/presentation-common/content/Fields.js +268 -144
  312. package/lib/esm/presentation-common/content/Fields.js.map +1 -1
  313. package/lib/esm/presentation-common/content/Item.d.ts +28 -33
  314. package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
  315. package/lib/esm/presentation-common/content/Item.js +53 -68
  316. package/lib/esm/presentation-common/content/Item.js.map +1 -1
  317. package/lib/esm/presentation-common/content/Property.d.ts +2 -14
  318. package/lib/esm/presentation-common/content/Property.d.ts.map +1 -1
  319. package/lib/esm/presentation-common/content/Property.js +1 -19
  320. package/lib/esm/presentation-common/content/Property.js.map +1 -1
  321. package/lib/esm/presentation-common/content/PropertyValueFormatter.d.ts +6 -6
  322. package/lib/esm/presentation-common/content/PropertyValueFormatter.d.ts.map +1 -1
  323. package/lib/esm/presentation-common/content/PropertyValueFormatter.js +5 -2
  324. package/lib/esm/presentation-common/content/PropertyValueFormatter.js.map +1 -1
  325. package/lib/esm/presentation-common/content/Value.d.ts +8 -110
  326. package/lib/esm/presentation-common/content/Value.d.ts.map +1 -1
  327. package/lib/esm/presentation-common/content/Value.js +0 -214
  328. package/lib/esm/presentation-common/content/Value.js.map +1 -1
  329. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts +1 -22
  330. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
  331. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js +1 -22
  332. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  333. package/lib/esm/presentation-common/hierarchy/Key.d.ts +1 -84
  334. package/lib/esm/presentation-common/hierarchy/Key.d.ts.map +1 -1
  335. package/lib/esm/presentation-common/hierarchy/Key.js +7 -25
  336. package/lib/esm/presentation-common/hierarchy/Key.js.map +1 -1
  337. package/lib/esm/presentation-common/hierarchy/Node.d.ts +4 -107
  338. package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
  339. package/lib/esm/presentation-common/hierarchy/Node.js +1 -98
  340. package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
  341. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts +1 -67
  342. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  343. package/lib/esm/presentation-common/hierarchy/NodePathElement.js +1 -116
  344. package/lib/esm/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  345. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts +2 -2
  346. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts.map +1 -1
  347. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
  348. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts +2 -2
  349. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
  350. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  351. package/lib/esm/presentation-common/rules/Rule.d.ts +6 -20
  352. package/lib/esm/presentation-common/rules/Rule.d.ts.map +1 -1
  353. package/lib/esm/presentation-common/rules/Rule.js.map +1 -1
  354. package/lib/esm/presentation-common/rules/Ruleset.d.ts +3 -3
  355. package/lib/esm/presentation-common/rules/Ruleset.d.ts.map +1 -1
  356. package/lib/esm/presentation-common/rules/Ruleset.js.map +1 -1
  357. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +2 -2
  358. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
  359. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  360. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +2 -2
  361. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts.map +1 -1
  362. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  363. package/lib/esm/presentation-common/rules/content/ContentRule.d.ts +2 -2
  364. package/lib/esm/presentation-common/rules/content/ContentRule.d.ts.map +1 -1
  365. package/lib/esm/presentation-common/rules/content/ContentRule.js.map +1 -1
  366. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +5 -12
  367. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  368. package/lib/esm/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  369. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +2 -2
  370. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts.map +1 -1
  371. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  372. package/lib/esm/presentation-common/rules/content/PropertySpecification.d.ts +3 -3
  373. package/lib/esm/presentation-common/rules/content/PropertySpecification.d.ts.map +1 -1
  374. package/lib/esm/presentation-common/rules/content/PropertySpecification.js.map +1 -1
  375. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +1 -1
  376. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts.map +1 -1
  377. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  378. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts +3 -3
  379. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts.map +1 -1
  380. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js.map +1 -1
  381. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts +6 -6
  382. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
  383. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  384. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +1 -1
  385. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts.map +1 -1
  386. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
  387. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +2 -2
  388. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
  389. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  390. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts +6 -10
  391. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  392. package/lib/esm/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  393. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts +1 -1
  394. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts.map +1 -1
  395. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  396. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +4 -30
  397. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  398. package/lib/esm/presentation-common/rules/customization/GroupingRule.js +0 -14
  399. package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  400. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts +3 -3
  401. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  402. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  403. package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts +2 -2
  404. package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
  405. package/lib/esm/presentation-common/rules/customization/SortingRule.js.map +1 -1
  406. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +1 -1
  407. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts.map +1 -1
  408. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  409. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +6 -6
  410. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  411. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  412. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +3 -1
  413. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  414. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  415. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +2 -2
  416. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts.map +1 -1
  417. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  418. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +2 -11
  419. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  420. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  421. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.d.ts +6 -6
  422. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.d.ts.map +1 -1
  423. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
  424. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +1 -1
  425. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts.map +1 -1
  426. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  427. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +2 -2
  428. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts.map +1 -1
  429. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  430. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts +1 -1
  431. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts.map +1 -1
  432. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  433. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts +2 -2
  434. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts.map +1 -1
  435. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  436. package/lib/esm/presentation-common/selection/SelectionScope.d.ts +3 -0
  437. package/lib/esm/presentation-common/selection/SelectionScope.d.ts.map +1 -1
  438. package/lib/esm/presentation-common/selection/SelectionScope.js +1 -0
  439. package/lib/esm/presentation-common/selection/SelectionScope.js.map +1 -1
  440. package/lib/esm/presentation-common-internal.d.ts +10 -0
  441. package/lib/esm/presentation-common-internal.d.ts.map +1 -0
  442. package/lib/esm/presentation-common-internal.js +16 -0
  443. package/lib/esm/presentation-common-internal.js.map +1 -0
  444. package/lib/esm/presentation-common.d.ts +68 -77
  445. package/lib/esm/presentation-common.d.ts.map +1 -1
  446. package/lib/esm/presentation-common.js +60 -89
  447. package/lib/esm/presentation-common.js.map +1 -1
  448. package/package.json +47 -36
  449. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts +0 -45
  450. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts.map +0 -1
  451. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js +0 -10
  452. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js.map +0 -1
  453. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts +0 -30
  454. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts.map +0 -1
  455. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js +0 -10
  456. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js.map +0 -1
  457. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts +0 -41
  458. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts.map +0 -1
  459. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js +0 -10
  460. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js.map +0 -1
  461. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts +0 -49
  462. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts.map +0 -1
  463. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js +0 -10
  464. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js.map +0 -1
  465. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts +0 -45
  466. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts.map +0 -1
  467. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js +0 -9
  468. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js.map +0 -1
  469. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts +0 -30
  470. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts.map +0 -1
  471. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js +0 -9
  472. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js.map +0 -1
  473. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts +0 -41
  474. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts.map +0 -1
  475. package/lib/esm/presentation-common/rules/customization/LabelOverride.js +0 -9
  476. package/lib/esm/presentation-common/rules/customization/LabelOverride.js.map +0 -1
  477. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts +0 -49
  478. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts.map +0 -1
  479. package/lib/esm/presentation-common/rules/customization/StyleOverride.js +0 -9
  480. package/lib/esm/presentation-common/rules/customization/StyleOverride.js.map +0 -1
  481. /package/lib/{cjs/assets → assets}/locales/en/Presentation.json +0 -0
  482. /package/lib/{cjs/assets → assets}/locales/en-PSEUDO/Presentation.json +0 -0
@@ -8,8 +8,8 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.Content = void 0;
11
- const Descriptor_1 = require("./Descriptor");
12
- const Item_1 = require("./Item");
11
+ const Descriptor_js_1 = require("./Descriptor.js");
12
+ const Item_js_1 = require("./Item.js");
13
13
  /**
14
14
  * A data structure that contains the [[Descriptor]] and a list of [[Item]]
15
15
  * objects which are based on that descriptor.
@@ -17,6 +17,10 @@ const Item_1 = require("./Item");
17
17
  * @public
18
18
  */
19
19
  class Content {
20
+ /** Descriptor used to create the content */
21
+ descriptor;
22
+ /** Content items */
23
+ contentSet;
20
24
  /** Create a new [[Content]] instance */
21
25
  constructor(descriptor, items) {
22
26
  this.descriptor = descriptor;
@@ -35,24 +39,15 @@ class Content {
35
39
  return undefined;
36
40
  }
37
41
  if (typeof json === "string") {
38
- return JSON.parse(json, (key, value) => Content.reviver(key, value));
42
+ return Content.fromJSON(JSON.parse(json));
39
43
  }
40
- const descriptor = Descriptor_1.Descriptor.fromJSON(json.descriptor);
44
+ const descriptor = Descriptor_js_1.Descriptor.fromJSON(json.descriptor);
41
45
  if (!descriptor) {
42
46
  return undefined;
43
47
  }
44
- const contentSet = json.contentSet.map((itemJson) => Item_1.Item.fromJSON(itemJson)).filter((item) => item !== undefined);
48
+ const contentSet = json.contentSet.map((itemJson) => Item_js_1.Item.fromJSON(itemJson)).filter((item) => item !== undefined);
45
49
  return new Content(descriptor, contentSet);
46
50
  }
47
- /**
48
- * Reviver function that can be used as a second argument for
49
- * `JSON.parse` method when parsing Content objects.
50
- *
51
- * @internal
52
- */
53
- static reviver(key, value) {
54
- return key === "" ? Content.fromJSON(value) : value;
55
- }
56
51
  }
57
52
  exports.Content = Content;
58
53
  //# sourceMappingURL=Content.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../src/presentation-common/content/Content.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,6CAA0D;AAC1D,iCAAwC;AAWxC;;;;;GAKG;AACH,MAAa,OAAO;IAMlB,wCAAwC;IACxC,YAAmB,UAAsB,EAAE,KAAa;QACtD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED,oCAAoC;IAC7B,MAAM;QACX,OAAO;YACL,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;YACpC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;SAC/D,CAAC;IACJ,CAAC;IAED,wCAAwC;IACjC,MAAM,CAAC,QAAQ,CAAC,IAAsC;QAC3D,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;QACvE,CAAC;QAED,MAAM,UAAU,GAAG,uBAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAkB,EAAE,EAAE,CAAC,WAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAO,CAAC,IAAI,EAAgB,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;QACjJ,OAAO,IAAI,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAC7C,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,OAAO,CAAC,GAAW,EAAE,KAAU;QAC3C,OAAO,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACtD,CAAC;CACF;AAhDD,0BAgDC","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 { Descriptor, DescriptorJSON } from \"./Descriptor\";\r\nimport { Item, ItemJSON } from \"./Item\";\r\n\r\n/**\r\n * Serialized [[Content]] JSON representation.\r\n * @public\r\n */\r\nexport interface ContentJSON {\r\n descriptor: DescriptorJSON;\r\n contentSet: ItemJSON[];\r\n}\r\n\r\n/**\r\n * A data structure that contains the [[Descriptor]] and a list of [[Item]]\r\n * objects which are based on that descriptor.\r\n *\r\n * @public\r\n */\r\nexport class Content {\r\n /** Descriptor used to create the content */\r\n public readonly descriptor: Descriptor;\r\n /** Content items */\r\n public readonly contentSet: Item[];\r\n\r\n /** Create a new [[Content]] instance */\r\n public constructor(descriptor: Descriptor, items: Item[]) {\r\n this.descriptor = descriptor;\r\n this.contentSet = items;\r\n }\r\n\r\n /** Serialize this object to JSON */\r\n public toJSON(): ContentJSON {\r\n return {\r\n descriptor: this.descriptor.toJSON(),\r\n contentSet: this.contentSet.map((item: Item) => item.toJSON()),\r\n };\r\n }\r\n\r\n /** Deserialize [[Content]] from JSON */\r\n public static fromJSON(json: ContentJSON | string | undefined): Content | undefined {\r\n if (!json) {\r\n return undefined;\r\n }\r\n\r\n if (typeof json === \"string\") {\r\n return JSON.parse(json, (key, value) => Content.reviver(key, value));\r\n }\r\n\r\n const descriptor = Descriptor.fromJSON(json.descriptor);\r\n if (!descriptor) {\r\n return undefined;\r\n }\r\n\r\n const contentSet = json.contentSet.map((itemJson: ItemJSON) => Item.fromJSON(itemJson)).filter<Item>((item): item is Item => item !== undefined);\r\n return new Content(descriptor, contentSet);\r\n }\r\n\r\n /**\r\n * Reviver function that can be used as a second argument for\r\n * `JSON.parse` method when parsing Content objects.\r\n *\r\n * @internal\r\n */\r\n public static reviver(key: string, value: any): any {\r\n return key === \"\" ? Content.fromJSON(value) : value;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../src/presentation-common/content/Content.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,mDAA6D;AAC7D,uCAA2C;AAW3C;;;;;GAKG;AACH,MAAa,OAAO;IAClB,4CAA4C;IAC5B,UAAU,CAAa;IACvC,oBAAoB;IACJ,UAAU,CAAS;IAEnC,wCAAwC;IACxC,YAAmB,UAAsB,EAAE,KAAa;QACtD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED,oCAAoC;IAC7B,MAAM;QACX,OAAO;YACL,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;YACpC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;SAC/D,CAAC;IACJ,CAAC;IAED,wCAAwC;IACjC,MAAM,CAAC,QAAQ,CAAC,IAAsC;QAC3D,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5C,CAAC;QAED,MAAM,UAAU,GAAG,0BAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,cAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAO,CAAC,IAAI,EAAgB,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;QACvI,OAAO,IAAI,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAC7C,CAAC;CACF;AAtCD,0BAsCC","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 { Descriptor, DescriptorJSON } from \"./Descriptor.js\";\r\nimport { Item, ItemJSON } from \"./Item.js\";\r\n\r\n/**\r\n * Serialized [[Content]] JSON representation.\r\n * @public\r\n */\r\nexport interface ContentJSON {\r\n descriptor: DescriptorJSON;\r\n contentSet: ItemJSON[];\r\n}\r\n\r\n/**\r\n * A data structure that contains the [[Descriptor]] and a list of [[Item]]\r\n * objects which are based on that descriptor.\r\n *\r\n * @public\r\n */\r\nexport class Content {\r\n /** Descriptor used to create the content */\r\n public readonly descriptor: Descriptor;\r\n /** Content items */\r\n public readonly contentSet: Item[];\r\n\r\n /** Create a new [[Content]] instance */\r\n public constructor(descriptor: Descriptor, items: Item[]) {\r\n this.descriptor = descriptor;\r\n this.contentSet = items;\r\n }\r\n\r\n /** Serialize this object to JSON */\r\n public toJSON(): ContentJSON {\r\n return {\r\n descriptor: this.descriptor.toJSON(),\r\n contentSet: this.contentSet.map((item: Item) => item.toJSON()),\r\n };\r\n }\r\n\r\n /** Deserialize [[Content]] from JSON */\r\n public static fromJSON(json: ContentJSON | string | undefined): Content | undefined {\r\n if (!json) {\r\n return undefined;\r\n }\r\n\r\n if (typeof json === \"string\") {\r\n return Content.fromJSON(JSON.parse(json));\r\n }\r\n\r\n const descriptor = Descriptor.fromJSON(json.descriptor);\r\n if (!descriptor) {\r\n return undefined;\r\n }\r\n\r\n const contentSet = json.contentSet.map((itemJson) => Item.fromJSON(itemJson)).filter<Item>((item): item is Item => item !== undefined);\r\n return new Content(descriptor, contentSet);\r\n }\r\n}\r\n"]}
@@ -1,14 +1,14 @@
1
1
  /** @packageDocumentation
2
2
  * @module Content
3
3
  */
4
- import { CategoryDescription } from "./Category";
5
- import { Content } from "./Content";
6
- import { Descriptor } from "./Descriptor";
7
- import { Field } from "./Fields";
8
- import { Item } from "./Item";
9
- import { TypeDescription } from "./TypeDescription";
10
- import { DisplayValue, DisplayValuesArray, DisplayValuesMap, Value as PresentationValue, ValuesArray as PresentationValuesArray, ValuesMap as PresentationValuesMap } from "./Value";
11
- import { LabelDefinition } from "../LabelDefinition";
4
+ import { LabelDefinition } from "../LabelDefinition.js";
5
+ import { CategoryDescription } from "./Category.js";
6
+ import { Content } from "./Content.js";
7
+ import { Descriptor } from "./Descriptor.js";
8
+ import { Field } from "./Fields.js";
9
+ import { Item } from "./Item.js";
10
+ import { TypeDescription } from "./TypeDescription.js";
11
+ import { DisplayValue, DisplayValuesArray, DisplayValuesMap, Value as PresentationValue, ValuesArray as PresentationValuesArray, ValuesMap as PresentationValuesMap } from "./Value.js";
12
12
  /**
13
13
  * A data structure to define a hierarchy of [[Field]] objects.
14
14
  * @public
@@ -256,7 +256,7 @@ export declare function traverseContentItem(visitor: IContentVisitor, descriptor
256
256
  */
257
257
  export declare function createFieldHierarchies(fields: Field[], ignoreCategories?: boolean): FieldHierarchy[];
258
258
  /**
259
- * Adds a field hierarchy into root field hierarchies list. *
259
+ * Adds a field hierarchy into root field hierarchies list.
260
260
  * @public
261
261
  */
262
262
  export declare function addFieldHierarchy(rootHierarchies: FieldHierarchy[], hierarchy: FieldHierarchy): void;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentTraverser.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/content/ContentTraverser.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAsB,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAuB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAEhB,KAAK,IAAI,iBAAiB,EAC1B,WAAW,IAAI,uBAA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,OAAO,CAAC;IAC9C,2DAA2D;IAC3D,YAAY,IAAI,IAAI,CAAC;IAErB;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC;IAC5C,0DAA0D;IAC1D,WAAW,IAAI,IAAI,CAAC;IAEpB,mGAAmG;IACnG,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACzD,2CAA2C;IAC3C,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI,CAAC;CAChE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,OAAO,QAInG;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO,QAczE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,QAE/F;AAgPD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,gBAAgB,CAAC,EAAE,OAAO,oBAgCjF;AAoED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,eAAe,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,cAAc,GAAG,IAAI,CAapG;AAaD,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,UAE5E;AACD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,YAE3D"}
1
+ {"version":3,"file":"ContentTraverser.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/content/ContentTraverser.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,M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AAG,IAAI,CAapG;AAaD,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,UAE5E;AACD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,YAE3D"}
@@ -6,6 +6,58 @@
6
6
  /** @packageDocumentation
7
7
  * @module Content
8
8
  */
9
+ var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
10
+ if (value !== null && value !== void 0) {
11
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
12
+ var dispose, inner;
13
+ if (async) {
14
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
15
+ dispose = value[Symbol.asyncDispose];
16
+ }
17
+ if (dispose === void 0) {
18
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
19
+ dispose = value[Symbol.dispose];
20
+ if (async) inner = dispose;
21
+ }
22
+ if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
23
+ if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
24
+ env.stack.push({ value: value, dispose: dispose, async: async });
25
+ }
26
+ else if (async) {
27
+ env.stack.push({ async: true });
28
+ }
29
+ return value;
30
+ };
31
+ var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
32
+ return function (env) {
33
+ function fail(e) {
34
+ env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
35
+ env.hasError = true;
36
+ }
37
+ var r, s = 0;
38
+ function next() {
39
+ while (r = env.stack.pop()) {
40
+ try {
41
+ if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
42
+ if (r.dispose) {
43
+ var result = r.dispose.call(r.value);
44
+ if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
45
+ }
46
+ else s |= 1;
47
+ }
48
+ catch (e) {
49
+ fail(e);
50
+ }
51
+ }
52
+ if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
53
+ if (env.hasError) throw env.error;
54
+ }
55
+ return next();
56
+ };
57
+ })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
58
+ var e = new Error(message);
59
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
60
+ });
9
61
  Object.defineProperty(exports, "__esModule", { value: true });
10
62
  exports.FIELD_NAMES_SEPARATOR = void 0;
11
63
  exports.traverseFieldHierarchy = traverseFieldHierarchy;
@@ -16,11 +68,11 @@ exports.addFieldHierarchy = addFieldHierarchy;
16
68
  exports.combineFieldNames = combineFieldNames;
17
69
  exports.parseCombinedFieldNames = parseCombinedFieldNames;
18
70
  const core_bentley_1 = require("@itwin/core-bentley");
19
- const Content_1 = require("./Content");
20
- const Fields_1 = require("./Fields");
21
- const Item_1 = require("./Item");
22
- const TypeDescription_1 = require("./TypeDescription");
23
- const Value_1 = require("./Value");
71
+ const Content_js_1 = require("./Content.js");
72
+ const Fields_js_1 = require("./Fields.js");
73
+ const Item_js_1 = require("./Item.js");
74
+ const TypeDescription_js_1 = require("./TypeDescription.js");
75
+ const Value_js_1 = require("./Value.js");
24
76
  const NESTED_CONTENT_LABEL_SYMBOL = Symbol();
25
77
  /**
26
78
  * An utility for traversing field hierarchy. Stops traversal as soon as `cb` returns `false`.
@@ -56,9 +108,12 @@ function traverseContent(visitor, content) {
56
108
  * @public
57
109
  */
58
110
  function traverseContentItem(visitor, descriptor, item) {
59
- traverseContent(visitor, new Content_1.Content(descriptor, [item]));
111
+ traverseContent(visitor, new Content_js_1.Content(descriptor, [item]));
60
112
  }
61
113
  class VisitedCategories {
114
+ _visitor;
115
+ _visitedCategories;
116
+ _didVisitAllHierarchy;
62
117
  constructor(_visitor, category) {
63
118
  this._visitor = _visitor;
64
119
  const stack = [];
@@ -80,7 +135,7 @@ class VisitedCategories {
80
135
  }
81
136
  }
82
137
  }
83
- dispose() {
138
+ [Symbol.dispose]() {
84
139
  while (this._visitedCategories.pop()) {
85
140
  this._visitor.finishCategory();
86
141
  }
@@ -95,11 +150,20 @@ function traverseContentItemFields(visitor, fieldHierarchies, item) {
95
150
  }
96
151
  try {
97
152
  fieldHierarchies.forEach((fieldHierarchy) => {
98
- (0, core_bentley_1.using)(new VisitedCategories(visitor, fieldHierarchy.field.category), (res) => {
153
+ const env_1 = { stack: [], error: void 0, hasError: false };
154
+ try {
155
+ const res = __addDisposableResource(env_1, new VisitedCategories(visitor, fieldHierarchy.field.category), false);
99
156
  if (res.shouldContinue) {
100
157
  traverseContentItemField(visitor, fieldHierarchy, item);
101
158
  }
102
- });
159
+ }
160
+ catch (e_1) {
161
+ env_1.error = e_1;
162
+ env_1.hasError = true;
163
+ }
164
+ finally {
165
+ __disposeResources(env_1);
166
+ }
103
167
  });
104
168
  }
105
169
  finally {
@@ -143,13 +207,15 @@ function traverseContentItemField(visitor, fieldHierarchy, item) {
143
207
  else if (pathUpToField.length > 0) {
144
208
  fieldHierarchy = {
145
209
  ...fieldHierarchy,
146
- field: Object.assign(fieldHierarchy.field.clone(), {
147
- type: {
148
- valueFormat: TypeDescription_1.PropertyValueFormat.Array,
210
+ field: (function () {
211
+ const clone = fieldHierarchy.field.clone();
212
+ clone.type = {
213
+ valueFormat: TypeDescription_js_1.PropertyValueFormat.Array,
149
214
  typeName: `${fieldHierarchy.field.type.typeName}[]`,
150
215
  memberType: fieldHierarchy.field.type,
151
- },
152
- }),
216
+ };
217
+ return clone;
218
+ })(),
153
219
  };
154
220
  }
155
221
  traverseContentItemFieldValue(visitor, fieldHierarchy, item.mergedFieldNames, fieldHierarchy.field.type, parentFieldName, item.values[fieldHierarchy.field.name], item.displayValues[fieldHierarchy.field.name]);
@@ -160,14 +226,14 @@ function traverseContentItemField(visitor, fieldHierarchy, item) {
160
226
  }
161
227
  function traverseContentItemFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue) {
162
228
  if (rawValue !== undefined) {
163
- if (valueType.valueFormat === TypeDescription_1.PropertyValueFormat.Array) {
164
- (0, core_bentley_1.assert)(Value_1.Value.isArray(rawValue));
165
- (0, core_bentley_1.assert)(Value_1.DisplayValue.isArray(displayValue));
229
+ if (valueType.valueFormat === TypeDescription_js_1.PropertyValueFormat.Array) {
230
+ (0, core_bentley_1.assert)(Value_js_1.Value.isArray(rawValue));
231
+ (0, core_bentley_1.assert)(Value_js_1.DisplayValue.isArray(displayValue));
166
232
  return traverseContentItemArrayFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue);
167
233
  }
168
- if (valueType.valueFormat === TypeDescription_1.PropertyValueFormat.Struct) {
169
- (0, core_bentley_1.assert)(Value_1.Value.isMap(rawValue));
170
- (0, core_bentley_1.assert)(Value_1.DisplayValue.isMap(displayValue));
234
+ if (valueType.valueFormat === TypeDescription_js_1.PropertyValueFormat.Struct) {
235
+ (0, core_bentley_1.assert)(Value_js_1.Value.isMap(rawValue));
236
+ (0, core_bentley_1.assert)(Value_js_1.DisplayValue.isMap(displayValue));
171
237
  return traverseContentItemStructFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue);
172
238
  }
173
239
  }
@@ -175,7 +241,7 @@ function traverseContentItemFieldValue(visitor, fieldHierarchy, mergedFieldNames
175
241
  }
176
242
  function traverseContentItemArrayFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValues, displayValues) {
177
243
  (0, core_bentley_1.assert)(rawValues.length === displayValues.length);
178
- (0, core_bentley_1.assert)(valueType.valueFormat === TypeDescription_1.PropertyValueFormat.Array);
244
+ (0, core_bentley_1.assert)(valueType.valueFormat === TypeDescription_js_1.PropertyValueFormat.Array);
179
245
  if (!visitor.startArray({ hierarchy: fieldHierarchy, valueType, parentFieldName, rawValues, displayValues })) {
180
246
  return;
181
247
  }
@@ -190,7 +256,7 @@ function traverseContentItemArrayFieldValue(visitor, fieldHierarchy, mergedField
190
256
  }
191
257
  }
192
258
  function traverseContentItemStructFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValues, displayValues) {
193
- (0, core_bentley_1.assert)(valueType.valueFormat === TypeDescription_1.PropertyValueFormat.Struct);
259
+ (0, core_bentley_1.assert)(valueType.valueFormat === TypeDescription_js_1.PropertyValueFormat.Struct);
194
260
  const label = rawValues[NESTED_CONTENT_LABEL_SYMBOL];
195
261
  if (!visitor.startStruct({ hierarchy: fieldHierarchy, valueType, parentFieldName, rawValues, displayValues, label })) {
196
262
  return;
@@ -205,7 +271,14 @@ function traverseContentItemStructFieldValue(visitor, fieldHierarchy, mergedFiel
205
271
  // Not finding a member field means we're traversing an ECStruct. We still need to carry member information, so we
206
272
  // create a fake field to represent the member
207
273
  memberField = {
208
- field: new Fields_1.Field(fieldHierarchy.field.category, memberDescription.name, memberDescription.label, memberDescription.type, fieldHierarchy.field.isReadonly, 0),
274
+ field: new Fields_js_1.Field({
275
+ category: fieldHierarchy.field.category,
276
+ name: memberDescription.name,
277
+ label: memberDescription.label,
278
+ type: memberDescription.type,
279
+ isReadonly: fieldHierarchy.field.isReadonly,
280
+ priority: 0,
281
+ }),
209
282
  childFields: [],
210
283
  };
211
284
  }
@@ -326,7 +399,7 @@ function mergeHierarchies(lhs, rhs) {
326
399
  return result;
327
400
  }
328
401
  /**
329
- * Adds a field hierarchy into root field hierarchies list. *
402
+ * Adds a field hierarchy into root field hierarchies list.
330
403
  * @public
331
404
  */
332
405
  function addFieldHierarchy(rootHierarchies, hierarchy) {
@@ -370,27 +443,35 @@ function parseCombinedFieldNames(combinedName) {
370
443
  }
371
444
  function convertNestedContentItemToStructArrayItem(item, field, nextField) {
372
445
  const value = item.values[field.name] ?? [];
373
- (0, core_bentley_1.assert)(Value_1.Value.isNestedContent(value));
446
+ (0, core_bentley_1.assert)(Value_js_1.Value.isNestedContent(value));
374
447
  if (value.length === 0) {
375
448
  return { emptyNestedItem: true, convertedItem: item };
376
449
  }
377
- const nextFieldValues = { raw: [], display: [] };
378
- value.forEach((ncv) => {
379
- const nextRawValue = ncv.values[nextField.name];
380
- const nextDisplayValue = ncv.displayValues[nextField.name];
381
- if (nextField.isNestedContentField()) {
450
+ let nextFieldValues = { raw: [], display: [] };
451
+ if (nextField.isNestedContentField()) {
452
+ const nextNestedContent = [];
453
+ value.forEach((ncv) => {
454
+ const nextRawValue = ncv.values[nextField.name];
382
455
  if (nextRawValue) {
383
- (0, core_bentley_1.assert)(Value_1.Value.isNestedContent(nextRawValue));
384
- nextFieldValues.raw.push(...nextRawValue);
456
+ (0, core_bentley_1.assert)(Value_js_1.Value.isNestedContent(nextRawValue));
457
+ nextNestedContent.push(...nextRawValue);
385
458
  }
386
- }
387
- else {
388
- nextFieldValues.raw.push(nextRawValue);
389
- nextFieldValues.display.push(nextDisplayValue);
390
- }
459
+ });
460
+ nextFieldValues.raw = nextNestedContent;
461
+ }
462
+ else {
463
+ const nextValues = { raw: [], display: [] };
464
+ value.forEach((ncv) => {
465
+ nextValues.raw.push(ncv.values[nextField.name]);
466
+ nextValues.display.push(ncv.displayValues[nextField.name]);
467
+ });
468
+ nextFieldValues = nextValues;
469
+ }
470
+ const convertedItem = new Item_js_1.Item({
471
+ ...item,
472
+ values: { [nextField.name]: nextFieldValues.raw },
473
+ displayValues: { [nextField.name]: nextFieldValues.display },
391
474
  });
392
- const convertedItem = new Item_1.Item(item.primaryKeys, item.label, item.imageId, // eslint-disable-line @typescript-eslint/no-deprecated
393
- item.classInfo, { [nextField.name]: nextFieldValues.raw }, { [nextField.name]: nextFieldValues.display }, item.mergedFieldNames, item.extendedData);
394
475
  return { emptyNestedItem: false, convertedItem };
395
476
  }
396
477
  function convertNestedContentFieldHierarchyToStructArrayHierarchy(fieldHierarchy, parentFieldName) {
@@ -402,12 +483,13 @@ function convertNestedContentFieldHierarchyToStructArrayHierarchy(fieldHierarchy
402
483
  return child;
403
484
  });
404
485
  const convertedFieldHierarchy = {
405
- field: Object.assign(fieldHierarchy.field.clone(), {
406
- type: {
407
- valueFormat: TypeDescription_1.PropertyValueFormat.Array,
486
+ field: (function () {
487
+ const clone = fieldHierarchy.field.clone();
488
+ clone.type = {
489
+ valueFormat: TypeDescription_js_1.PropertyValueFormat.Array,
408
490
  typeName: `${fieldHierarchy.field.type.typeName}[]`,
409
491
  memberType: {
410
- valueFormat: TypeDescription_1.PropertyValueFormat.Struct,
492
+ valueFormat: TypeDescription_js_1.PropertyValueFormat.Struct,
411
493
  typeName: fieldHierarchy.field.type.typeName,
412
494
  members: convertedChildFieldHierarchies.map((member) => ({
413
495
  name: member.field.name,
@@ -415,8 +497,9 @@ function convertNestedContentFieldHierarchyToStructArrayHierarchy(fieldHierarchy
415
497
  type: member.field.type,
416
498
  })),
417
499
  },
418
- },
419
- }),
500
+ };
501
+ return clone;
502
+ })(),
420
503
  childFields: convertedChildFieldHierarchies,
421
504
  };
422
505
  return convertedFieldHierarchy;
@@ -427,7 +510,8 @@ function convertNestedContentValuesToStructArrayValuesRecursive(fieldHierarchy,
427
510
  const values = { ...ncv.values };
428
511
  const displayValues = { ...ncv.displayValues };
429
512
  const mergedFieldNames = [...ncv.mergedFieldNames];
430
- values[NESTED_CONTENT_LABEL_SYMBOL] = ncv.labelDefinition;
513
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
514
+ values[NESTED_CONTENT_LABEL_SYMBOL] = ncv.label ?? ncv.labelDefinition;
431
515
  fieldHierarchy.childFields.forEach((childFieldHierarchy) => {
432
516
  const childFieldName = childFieldHierarchy.field.name;
433
517
  if (-1 !== ncv.mergedFieldNames.indexOf(childFieldName)) {
@@ -435,7 +519,7 @@ function convertNestedContentValuesToStructArrayValuesRecursive(fieldHierarchy,
435
519
  }
436
520
  if (childFieldHierarchy.field.isNestedContentField()) {
437
521
  const value = values[childFieldName];
438
- (0, core_bentley_1.assert)(Value_1.Value.isNestedContent(value));
522
+ (0, core_bentley_1.assert)(Value_js_1.Value.isNestedContent(value));
439
523
  const convertedValues = convertNestedContentValuesToStructArrayValuesRecursive(childFieldHierarchy, value);
440
524
  values[childFieldName] = convertedValues.raw;
441
525
  displayValues[childFieldName] = convertedValues.display;
@@ -451,13 +535,17 @@ function convertNestedContentValuesToStructArrayValuesRecursive(fieldHierarchy,
451
535
  function convertNestedContentFieldHierarchyItemToStructArrayItem(item, fieldHierarchy) {
452
536
  const fieldName = fieldHierarchy.field.name;
453
537
  const rawValue = item.values[fieldName];
454
- (0, core_bentley_1.assert)(Value_1.Value.isNestedContent(rawValue));
538
+ (0, core_bentley_1.assert)(Value_js_1.Value.isNestedContent(rawValue));
455
539
  if (rawValue.length === 0) {
456
540
  return { emptyNestedItem: true, convertedItem: item };
457
541
  }
458
542
  const converted = convertNestedContentValuesToStructArrayValuesRecursive(fieldHierarchy, rawValue);
459
- const convertedItem = new Item_1.Item(item.primaryKeys, item.label, item.imageId, // eslint-disable-line @typescript-eslint/no-deprecated
460
- item.classInfo, { [fieldName]: converted.raw }, { [fieldName]: converted.display }, converted.mergedFieldNames, item.extendedData);
543
+ const convertedItem = new Item_js_1.Item({
544
+ ...item,
545
+ values: { [fieldName]: converted.raw },
546
+ displayValues: { [fieldName]: converted.display },
547
+ mergedFieldNames: converted.mergedFieldNames,
548
+ });
461
549
  return { emptyNestedItem: false, convertedItem };
462
550
  }
463
551
  //# sourceMappingURL=ContentTraverser.js.map