@itwin/presentation-common 3.2.0-dev.8 → 3.3.0-dev.1

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 (315) hide show
  1. package/CHANGELOG.md +33 -1
  2. package/Ruleset.schema.json +304 -289
  3. package/lib/cjs/presentation-common/CommonLoggerCategory.d.ts +13 -0
  4. package/lib/cjs/presentation-common/CommonLoggerCategory.d.ts.map +1 -0
  5. package/lib/cjs/presentation-common/CommonLoggerCategory.js +21 -0
  6. package/lib/cjs/presentation-common/CommonLoggerCategory.js.map +1 -0
  7. package/lib/cjs/presentation-common/EC.d.ts +36 -0
  8. package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
  9. package/lib/cjs/presentation-common/EC.js +38 -4
  10. package/lib/cjs/presentation-common/EC.js.map +1 -1
  11. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  12. package/lib/cjs/presentation-common/RpcRequestsHandler.js +26 -0
  13. package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
  14. package/lib/cjs/presentation-common/Utils.d.ts +0 -2
  15. package/lib/cjs/presentation-common/Utils.d.ts.map +1 -1
  16. package/lib/cjs/presentation-common/Utils.js +1 -25
  17. package/lib/cjs/presentation-common/Utils.js.map +1 -1
  18. package/lib/cjs/presentation-common/content/ContentTraverser.js +2 -2
  19. package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
  20. package/lib/cjs/presentation-common/content/Descriptor.d.ts +9 -6
  21. package/lib/cjs/presentation-common/content/Descriptor.d.ts.map +1 -1
  22. package/lib/cjs/presentation-common/content/Descriptor.js +4 -1
  23. package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
  24. package/lib/cjs/presentation-common/content/Fields.d.ts +3 -3
  25. package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
  26. package/lib/cjs/presentation-common/content/Fields.js +11 -3
  27. package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
  28. package/lib/cjs/presentation-common/content/Item.d.ts +7 -3
  29. package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
  30. package/lib/cjs/presentation-common/content/Item.js +2 -2
  31. package/lib/cjs/presentation-common/content/Item.js.map +1 -1
  32. package/lib/cjs/presentation-common/hierarchy/Node.d.ts +35 -7
  33. package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
  34. package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
  35. package/lib/cjs/presentation-common/rules/ClassSpecifications.d.ts +10 -8
  36. package/lib/cjs/presentation-common/rules/ClassSpecifications.d.ts.map +1 -1
  37. package/lib/cjs/presentation-common/rules/ClassSpecifications.js.map +1 -1
  38. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts +10 -62
  39. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts.map +1 -1
  40. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
  41. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts +20 -13
  42. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
  43. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  44. package/lib/cjs/presentation-common/rules/Rule.d.ts +11 -12
  45. package/lib/cjs/presentation-common/rules/Rule.d.ts.map +1 -1
  46. package/lib/cjs/presentation-common/rules/Rule.js.map +1 -1
  47. package/lib/cjs/presentation-common/rules/Ruleset.d.ts +6 -5
  48. package/lib/cjs/presentation-common/rules/Ruleset.d.ts.map +1 -1
  49. package/lib/cjs/presentation-common/rules/Ruleset.js.map +1 -1
  50. package/lib/cjs/presentation-common/rules/SchemasSpecification.d.ts +5 -2
  51. package/lib/cjs/presentation-common/rules/SchemasSpecification.d.ts.map +1 -1
  52. package/lib/cjs/presentation-common/rules/SchemasSpecification.js.map +1 -1
  53. package/lib/cjs/presentation-common/rules/Variables.d.ts +3 -3
  54. package/lib/cjs/presentation-common/rules/Variables.js.map +1 -1
  55. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +12 -14
  56. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
  57. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  58. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +6 -8
  59. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts.map +1 -1
  60. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  61. package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts +15 -10
  62. package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts.map +1 -1
  63. package/lib/cjs/presentation-common/rules/content/ContentRule.js.map +1 -1
  64. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +11 -5
  65. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  66. package/lib/cjs/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  67. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +3 -4
  68. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts.map +1 -1
  69. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  70. package/lib/cjs/presentation-common/rules/content/PropertySpecification.d.ts +56 -21
  71. package/lib/cjs/presentation-common/rules/content/PropertySpecification.d.ts.map +1 -1
  72. package/lib/cjs/presentation-common/rules/content/PropertySpecification.js.map +1 -1
  73. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +5 -10
  74. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts.map +1 -1
  75. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  76. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts +7 -10
  77. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts.map +1 -1
  78. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js.map +1 -1
  79. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts +22 -12
  80. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
  81. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  82. package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.d.ts +8 -2
  83. package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.d.ts.map +1 -1
  84. package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.js.map +1 -1
  85. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +30 -10
  86. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts.map +1 -1
  87. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
  88. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +9 -4
  89. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts.map +1 -1
  90. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
  91. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +25 -21
  92. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
  93. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js +5 -7
  94. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  95. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts +8 -10
  96. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts.map +1 -1
  97. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
  98. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts +6 -3
  99. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  100. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  101. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts +9 -24
  102. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts.map +1 -1
  103. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  104. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +55 -72
  105. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  106. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js +1 -1
  107. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  108. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts +9 -9
  109. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts.map +1 -1
  110. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
  111. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts +33 -22
  112. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  113. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js +1 -1
  114. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  115. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts +14 -16
  116. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts.map +1 -1
  117. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js.map +1 -1
  118. package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts +16 -29
  119. package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
  120. package/lib/cjs/presentation-common/rules/customization/SortingRule.js.map +1 -1
  121. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts +11 -11
  122. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts.map +1 -1
  123. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js.map +1 -1
  124. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +4 -5
  125. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts.map +1 -1
  126. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  127. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +30 -32
  128. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  129. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  130. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +11 -6
  131. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  132. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  133. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +19 -20
  134. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts.map +1 -1
  135. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  136. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +14 -10
  137. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  138. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  139. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.d.ts +16 -15
  140. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.d.ts.map +1 -1
  141. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
  142. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +9 -28
  143. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts.map +1 -1
  144. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  145. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +8 -9
  146. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts.map +1 -1
  147. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  148. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts +3 -4
  149. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts.map +1 -1
  150. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  151. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts +17 -10
  152. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts.map +1 -1
  153. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  154. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts +1 -1
  155. package/lib/cjs/presentation-common/selection/SelectionScope.js.map +1 -1
  156. package/lib/cjs/presentation-common.d.ts +3 -3
  157. package/lib/cjs/presentation-common.js +3 -3
  158. package/lib/cjs/presentation-common.js.map +1 -1
  159. package/lib/esm/presentation-common/CommonLoggerCategory.d.ts +13 -0
  160. package/lib/esm/presentation-common/CommonLoggerCategory.d.ts.map +1 -0
  161. package/lib/esm/presentation-common/CommonLoggerCategory.js +18 -0
  162. package/lib/esm/presentation-common/CommonLoggerCategory.js.map +1 -0
  163. package/lib/esm/presentation-common/EC.d.ts +36 -0
  164. package/lib/esm/presentation-common/EC.d.ts.map +1 -1
  165. package/lib/esm/presentation-common/EC.js +37 -3
  166. package/lib/esm/presentation-common/EC.js.map +1 -1
  167. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  168. package/lib/esm/presentation-common/RpcRequestsHandler.js +27 -1
  169. package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
  170. package/lib/esm/presentation-common/Utils.d.ts +0 -2
  171. package/lib/esm/presentation-common/Utils.d.ts.map +1 -1
  172. package/lib/esm/presentation-common/Utils.js +0 -4
  173. package/lib/esm/presentation-common/Utils.js.map +1 -1
  174. package/lib/esm/presentation-common/content/ContentTraverser.js +2 -2
  175. package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
  176. package/lib/esm/presentation-common/content/Descriptor.d.ts +9 -6
  177. package/lib/esm/presentation-common/content/Descriptor.d.ts.map +1 -1
  178. package/lib/esm/presentation-common/content/Descriptor.js +4 -1
  179. package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
  180. package/lib/esm/presentation-common/content/Fields.d.ts +3 -3
  181. package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
  182. package/lib/esm/presentation-common/content/Fields.js +11 -3
  183. package/lib/esm/presentation-common/content/Fields.js.map +1 -1
  184. package/lib/esm/presentation-common/content/Item.d.ts +7 -3
  185. package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
  186. package/lib/esm/presentation-common/content/Item.js +2 -2
  187. package/lib/esm/presentation-common/content/Item.js.map +1 -1
  188. package/lib/esm/presentation-common/hierarchy/Node.d.ts +35 -7
  189. package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
  190. package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
  191. package/lib/esm/presentation-common/rules/ClassSpecifications.d.ts +10 -8
  192. package/lib/esm/presentation-common/rules/ClassSpecifications.d.ts.map +1 -1
  193. package/lib/esm/presentation-common/rules/ClassSpecifications.js.map +1 -1
  194. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts +10 -62
  195. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts.map +1 -1
  196. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
  197. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts +20 -13
  198. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
  199. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  200. package/lib/esm/presentation-common/rules/Rule.d.ts +11 -12
  201. package/lib/esm/presentation-common/rules/Rule.d.ts.map +1 -1
  202. package/lib/esm/presentation-common/rules/Rule.js.map +1 -1
  203. package/lib/esm/presentation-common/rules/Ruleset.d.ts +6 -5
  204. package/lib/esm/presentation-common/rules/Ruleset.d.ts.map +1 -1
  205. package/lib/esm/presentation-common/rules/Ruleset.js.map +1 -1
  206. package/lib/esm/presentation-common/rules/SchemasSpecification.d.ts +5 -2
  207. package/lib/esm/presentation-common/rules/SchemasSpecification.d.ts.map +1 -1
  208. package/lib/esm/presentation-common/rules/SchemasSpecification.js.map +1 -1
  209. package/lib/esm/presentation-common/rules/Variables.d.ts +3 -3
  210. package/lib/esm/presentation-common/rules/Variables.js.map +1 -1
  211. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +12 -14
  212. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
  213. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  214. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +6 -8
  215. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts.map +1 -1
  216. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  217. package/lib/esm/presentation-common/rules/content/ContentRule.d.ts +15 -10
  218. package/lib/esm/presentation-common/rules/content/ContentRule.d.ts.map +1 -1
  219. package/lib/esm/presentation-common/rules/content/ContentRule.js.map +1 -1
  220. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +11 -5
  221. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  222. package/lib/esm/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  223. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +3 -4
  224. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts.map +1 -1
  225. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  226. package/lib/esm/presentation-common/rules/content/PropertySpecification.d.ts +56 -21
  227. package/lib/esm/presentation-common/rules/content/PropertySpecification.d.ts.map +1 -1
  228. package/lib/esm/presentation-common/rules/content/PropertySpecification.js.map +1 -1
  229. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +5 -10
  230. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts.map +1 -1
  231. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  232. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts +7 -10
  233. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts.map +1 -1
  234. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js.map +1 -1
  235. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts +22 -12
  236. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
  237. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  238. package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.d.ts +8 -2
  239. package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.d.ts.map +1 -1
  240. package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.js.map +1 -1
  241. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +30 -10
  242. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts.map +1 -1
  243. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
  244. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +9 -4
  245. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts.map +1 -1
  246. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
  247. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +25 -21
  248. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
  249. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js +5 -7
  250. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  251. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts +8 -10
  252. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts.map +1 -1
  253. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
  254. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts +6 -3
  255. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  256. package/lib/esm/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  257. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts +9 -24
  258. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts.map +1 -1
  259. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  260. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +55 -72
  261. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  262. package/lib/esm/presentation-common/rules/customization/GroupingRule.js +1 -1
  263. package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  264. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts +9 -9
  265. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts.map +1 -1
  266. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
  267. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts +33 -22
  268. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  269. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js +1 -1
  270. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  271. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts +14 -16
  272. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts.map +1 -1
  273. package/lib/esm/presentation-common/rules/customization/LabelOverride.js.map +1 -1
  274. package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts +16 -29
  275. package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
  276. package/lib/esm/presentation-common/rules/customization/SortingRule.js.map +1 -1
  277. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts +11 -11
  278. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts.map +1 -1
  279. package/lib/esm/presentation-common/rules/customization/StyleOverride.js.map +1 -1
  280. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +4 -5
  281. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts.map +1 -1
  282. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  283. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +30 -32
  284. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  285. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  286. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +11 -6
  287. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  288. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  289. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +19 -20
  290. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts.map +1 -1
  291. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  292. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +14 -10
  293. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  294. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  295. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.d.ts +16 -15
  296. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.d.ts.map +1 -1
  297. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
  298. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +9 -28
  299. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts.map +1 -1
  300. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  301. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +8 -9
  302. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts.map +1 -1
  303. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  304. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts +3 -4
  305. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts.map +1 -1
  306. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  307. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts +17 -10
  308. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts.map +1 -1
  309. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  310. package/lib/esm/presentation-common/selection/SelectionScope.d.ts +1 -1
  311. package/lib/esm/presentation-common/selection/SelectionScope.js.map +1 -1
  312. package/lib/esm/presentation-common.d.ts +3 -3
  313. package/lib/esm/presentation-common.js +3 -3
  314. package/lib/esm/presentation-common.js.map +1 -1
  315. package/package.json +9 -10
@@ -1,44 +1,25 @@
1
1
  /** @packageDocumentation
2
2
  * @module PresentationRules
3
3
  */
4
- import { ConditionContainer, RuleBase, RuleTypes } from "../Rule";
4
+ import { RuleBase, RuleTypes } from "../Rule";
5
5
  /**
6
- * Rule used to create and assign artifacts to specific nodes. The artifacts can be
7
- * accessed when evaluating parent node's `hideExpression` to decide whether it should
8
- * be hidden or not.
6
+ * Node artifacts rules are used to create and assign artifacts to specific nodes. The artifacts can be
7
+ * accessed when evaluating parent node's `hideExpression` to decide whether it should be hidden or not.
9
8
  *
10
- * A typical use case:
11
- * - The hierarchy consists of *Subject* nodes and each *Subject* may or may not have child *Model* nodes. There are 2 types
12
- * of *Models*: *A* & *B*, we want *ModelA* nodes to be visible and *ModelB* ones to be hidden. We want *Subject* node to be
13
- * visible only if it has a *Model* (either *A* or *B*). In this case we can't use `hideIfNoChildren` flag on *Subjects*, because
14
- * a *Subject* node may only have a related *ModelB* which means *Subject* doesn't have children and should be displayed as a leaf node.
15
- * The solution is to use `NodeArtifacts` on the *ModelB* nodes and a `hideExpression` on *Subject* nodes. The expression can access
16
- * artifacts created by child *ModelB* nodes: `NOT ThisNode.HasChildren AND NOT ThisNode.ChildrenArtifacts.AnyMatches(x => x.IsModelB)`
17
- *
18
- * @note The rule is costly performance-wise and should only be used in very limited amount of specific cases where
19
- * hidden child nodes need to be used to used to determine parent node's visibility.
20
- *
21
- * @see [More details]($docs/presentation/Hierarchies/NodeArtifactsRule.md)
9
+ * @see [Node artifacts rule reference documentation page]($docs/presentation/hierarchies/NodeArtifactsRule.md)
22
10
  * @public
23
11
  */
24
- export interface NodeArtifactsRule extends RuleBase, ConditionContainer {
12
+ export interface NodeArtifactsRule extends RuleBase {
25
13
  /** Used for serializing to JSON. */
26
14
  ruleType: RuleTypes.NodeArtifacts;
27
15
  /**
28
- * Defines a condition for the rule, which needs to be met in order for it to be used. Condition
29
- * is an [ECExpression]($docs/presentation/Advanced/ECExpressions.md), which can use
30
- * a [limited set of symbols]($docs/presentation/Customization/ECExpressions.md#rule-condition).
16
+ * Specifies an [ECExpression]($docs/presentation/customization/ECExpressions.md#rule-condition) that
17
+ * allows applying node artifacts based on evaluation result, e.g. by some property of the parent node.
31
18
  */
32
19
  condition?: string;
33
20
  /**
34
- * A map of items that define the values stored in the artifacts data structure.
35
- *
36
- * The key part of the pair should be unique within all keys which are used for specific
37
- * presentation object, even if they are applied using different `NodeArtifacts` definitions.
38
- *
39
- * The value part of the pair is an [ECExpression]($docs/presentation/Advanced/ECExpressions.md), which can use
40
- * a [limited set of symbols]($docs/presentation/Customization/ECExpressions.md#override-value) and whose
41
- * evaluated result is used as the artifact value.
21
+ * A map of [ECExpressions]($docs/presentation/hierarchies/ECExpressions.md#specification) whose evaluation results
22
+ * are used as artifact values.
42
23
  */
43
24
  items: {
44
25
  [key: string]: string;
@@ -1 +1 @@
1
- {"version":3,"file":"NodeArtifactsRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/NodeArtifactsRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAElE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,iBAAkB,SAAQ,QAAQ,EAAE,kBAAkB;IACrE,oCAAoC;IACpC,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAC;IAElC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;OASG;IACH,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAClC"}
1
+ {"version":3,"file":"NodeArtifactsRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/NodeArtifactsRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,oCAAoC;IACpC,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAC;IAElC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAClC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NodeArtifactsRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/NodeArtifactsRule.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { ConditionContainer, RuleBase, RuleTypes } from \"../Rule\";\r\n\r\n/**\r\n * Rule used to create and assign artifacts to specific nodes. The artifacts can be\r\n * accessed when evaluating parent node's `hideExpression` to decide whether it should\r\n * be hidden or not.\r\n *\r\n * A typical use case:\r\n * - The hierarchy consists of *Subject* nodes and each *Subject* may or may not have child *Model* nodes. There are 2 types\r\n * of *Models*: *A* & *B*, we want *ModelA* nodes to be visible and *ModelB* ones to be hidden. We want *Subject* node to be\r\n * visible only if it has a *Model* (either *A* or *B*). In this case we can't use `hideIfNoChildren` flag on *Subjects*, because\r\n * a *Subject* node may only have a related *ModelB* which means *Subject* doesn't have children and should be displayed as a leaf node.\r\n * The solution is to use `NodeArtifacts` on the *ModelB* nodes and a `hideExpression` on *Subject* nodes. The expression can access\r\n * artifacts created by child *ModelB* nodes: `NOT ThisNode.HasChildren AND NOT ThisNode.ChildrenArtifacts.AnyMatches(x => x.IsModelB)`\r\n *\r\n * @note The rule is costly performance-wise and should only be used in very limited amount of specific cases where\r\n * hidden child nodes need to be used to used to determine parent node's visibility.\r\n *\r\n * @see [More details]($docs/presentation/Hierarchies/NodeArtifactsRule.md)\r\n * @public\r\n */\r\nexport interface NodeArtifactsRule extends RuleBase, ConditionContainer {\r\n /** Used for serializing to JSON. */\r\n ruleType: RuleTypes.NodeArtifacts;\r\n\r\n /**\r\n * Defines a condition for the rule, which needs to be met in order for it to be used. Condition\r\n * is an [ECExpression]($docs/presentation/Advanced/ECExpressions.md), which can use\r\n * a [limited set of symbols]($docs/presentation/Customization/ECExpressions.md#rule-condition).\r\n */\r\n condition?: string;\r\n\r\n /**\r\n * A map of items that define the values stored in the artifacts data structure.\r\n *\r\n * The key part of the pair should be unique within all keys which are used for specific\r\n * presentation object, even if they are applied using different `NodeArtifacts` definitions.\r\n *\r\n * The value part of the pair is an [ECExpression]($docs/presentation/Advanced/ECExpressions.md), which can use\r\n * a [limited set of symbols]($docs/presentation/Customization/ECExpressions.md#override-value) and whose\r\n * evaluated result is used as the artifact value.\r\n */\r\n items: { [key: string]: string };\r\n}\r\n"]}
1
+ {"version":3,"file":"NodeArtifactsRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/NodeArtifactsRule.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { RuleBase, RuleTypes } from \"../Rule\";\r\n\r\n/**\r\n * Node artifacts rules are used to create and assign artifacts to specific nodes. The artifacts can be\r\n * accessed when evaluating parent node's `hideExpression` to decide whether it should be hidden or not.\r\n *\r\n * @see [Node artifacts rule reference documentation page]($docs/presentation/hierarchies/NodeArtifactsRule.md)\r\n * @public\r\n */\r\nexport interface NodeArtifactsRule extends RuleBase {\r\n /** Used for serializing to JSON. */\r\n ruleType: RuleTypes.NodeArtifacts;\r\n\r\n /**\r\n * Specifies an [ECExpression]($docs/presentation/customization/ECExpressions.md#rule-condition) that\r\n * allows applying node artifacts based on evaluation result, e.g. by some property of the parent node.\r\n */\r\n condition?: string;\r\n\r\n /**\r\n * A map of [ECExpressions]($docs/presentation/hierarchies/ECExpressions.md#specification) whose evaluation results\r\n * are used as artifact values.\r\n */\r\n items: { [key: string]: string };\r\n}\r\n"]}
@@ -4,25 +4,24 @@
4
4
  import { RepeatableRelationshipPathSpecification } from "../RelationshipPathSpecification";
5
5
  import { ChildNodeSpecificationBase, ChildNodeSpecificationTypes, DefaultGroupingPropertiesContainer } from "./ChildNodeSpecification";
6
6
  /**
7
- * Creates nodes for related instances of specified ECClasses.
7
+ * Produces ECInstance nodes that are related to some source ECInstance. The source instance is determined
8
+ * by traversing the hierarchy upwards until an ECInstance node is encountered.
8
9
  *
9
- * **Precondition:** can be used only if parent node is ECInstance
10
- * node. If there is no immediate parent instance node it will go up until it finds one.
11
- *
12
- * @see [More details]($docs/presentation/Hierarchies/RelatedInstanceNodes.md)
10
+ * @see [Related instance nodes specification reference documentation page]($docs/presentation/hierarchies/RelatedInstanceNodes.md)
13
11
  * @public
14
12
  */
15
13
  export interface RelatedInstanceNodesSpecification extends ChildNodeSpecificationBase, DefaultGroupingPropertiesContainer {
16
14
  /** Used for serializing to JSON. */
17
15
  specType: ChildNodeSpecificationTypes.RelatedInstanceNodes;
18
16
  /**
19
- * Relationship paths from parent node instance class to child node instances' class.
17
+ * Specifies a chain of [relationship path specifications]($docs/presentation/RepeatableRelationshipPathSpecification.md)
18
+ * that forms a path from a source instance to the output instances. When this array is empty, the specification produces
19
+ * no results.
20
20
  */
21
21
  relationshipPaths: RepeatableRelationshipPathSpecification[];
22
22
  /**
23
- * Condition for filtering instances targeted by specified relationship paths.
24
- *
25
- * **See:** [ECExpressions Available in InstanceFilter]($docs/presentation/Hierarchies/ECExpressions.md#instance-filter)
23
+ * Specifies an [ECExpression]($docs/presentation/hierarchies/ECExpressions.md#instance-filter) for filtering
24
+ * instances of ECClasses targeted through the [[relationshipPaths]] attribute.
26
25
  */
27
26
  instanceFilter?: string;
28
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RelatedInstanceNodesSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,uCAAuC,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAEvI;;;;;;;;GAQG;AACH,MAAM,WAAW,iCAAkC,SAAQ,0BAA0B,EAAE,kCAAkC;IACvH,oCAAoC;IACpC,QAAQ,EAAE,2BAA2B,CAAC,oBAAoB,CAAC;IAE3D;;OAEG;IACH,iBAAiB,EAAE,uCAAuC,EAAE,CAAC;IAE7D;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"RelatedInstanceNodesSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,uCAAuC,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAEvI;;;;;;GAMG;AACH,MAAM,WAAW,iCAAkC,SAAQ,0BAA0B,EAAE,kCAAkC;IACvH,oCAAoC;IACpC,QAAQ,EAAE,2BAA2B,CAAC,oBAAoB,CAAC;IAE3D;;;;OAIG;IACH,iBAAiB,EAAE,uCAAuC,EAAE,CAAC;IAE7D;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"RelatedInstanceNodesSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { RepeatableRelationshipPathSpecification } from \"../RelationshipPathSpecification\";\r\nimport { ChildNodeSpecificationBase, ChildNodeSpecificationTypes, DefaultGroupingPropertiesContainer } from \"./ChildNodeSpecification\";\r\n\r\n/**\r\n * Creates nodes for related instances of specified ECClasses.\r\n *\r\n * **Precondition:** can be used only if parent node is ECInstance\r\n * node. If there is no immediate parent instance node it will go up until it finds one.\r\n *\r\n * @see [More details]($docs/presentation/Hierarchies/RelatedInstanceNodes.md)\r\n * @public\r\n */\r\nexport interface RelatedInstanceNodesSpecification extends ChildNodeSpecificationBase, DefaultGroupingPropertiesContainer {\r\n /** Used for serializing to JSON. */\r\n specType: ChildNodeSpecificationTypes.RelatedInstanceNodes;\r\n\r\n /**\r\n * Relationship paths from parent node instance class to child node instances' class.\r\n */\r\n relationshipPaths: RepeatableRelationshipPathSpecification[];\r\n\r\n /**\r\n * Condition for filtering instances targeted by specified relationship paths.\r\n *\r\n * **See:** [ECExpressions Available in InstanceFilter]($docs/presentation/Hierarchies/ECExpressions.md#instance-filter)\r\n */\r\n instanceFilter?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"RelatedInstanceNodesSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { RepeatableRelationshipPathSpecification } from \"../RelationshipPathSpecification\";\r\nimport { ChildNodeSpecificationBase, ChildNodeSpecificationTypes, DefaultGroupingPropertiesContainer } from \"./ChildNodeSpecification\";\r\n\r\n/**\r\n * Produces ECInstance nodes that are related to some source ECInstance. The source instance is determined\r\n * by traversing the hierarchy upwards until an ECInstance node is encountered.\r\n *\r\n * @see [Related instance nodes specification reference documentation page]($docs/presentation/hierarchies/RelatedInstanceNodes.md)\r\n * @public\r\n */\r\nexport interface RelatedInstanceNodesSpecification extends ChildNodeSpecificationBase, DefaultGroupingPropertiesContainer {\r\n /** Used for serializing to JSON. */\r\n specType: ChildNodeSpecificationTypes.RelatedInstanceNodes;\r\n\r\n /**\r\n * Specifies a chain of [relationship path specifications]($docs/presentation/RepeatableRelationshipPathSpecification.md)\r\n * that forms a path from a source instance to the output instances. When this array is empty, the specification produces\r\n * no results.\r\n */\r\n relationshipPaths: RepeatableRelationshipPathSpecification[];\r\n\r\n /**\r\n * Specifies an [ECExpression]($docs/presentation/hierarchies/ECExpressions.md#instance-filter) for filtering\r\n * instances of ECClasses targeted through the [[relationshipPaths]] attribute.\r\n */\r\n instanceFilter?: string;\r\n}\r\n"]}
@@ -4,16 +4,15 @@
4
4
  import { RuleTypes } from "../Rule";
5
5
  import { NavigationRuleBase } from "./NavigationRule";
6
6
  /**
7
- * Root node rules define the nodes that are displayed
8
- * at the root hierarchy level.
7
+ * Root node rules are used to define nodes that are displayed at the root hierarchy level.
9
8
  *
10
- * @see [More details]($docs/presentation/Hierarchies/RootNodeRule.md)
9
+ * @see [Root node rule reference documentation page]($docs/presentation/hierarchies/RootNodeRule.md)
11
10
  * @public
12
11
  */
13
12
  export interface RootNodeRule extends NavigationRuleBase {
14
13
  /** Used for serializing to JSON. */
15
14
  ruleType: RuleTypes.RootNodes;
16
- /** Automatically expand nodes created by this rule. */
15
+ /** Tells the library to assign produced nodes a flag, indicating that they should be automatically expanded. */
17
16
  autoExpand?: boolean;
18
17
  }
19
18
  //# sourceMappingURL=RootNodeRule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RootNodeRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/RootNodeRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD,oCAAoC;IACpC,QAAQ,EAAE,SAAS,CAAC,SAAS,CAAC;IAE9B,uDAAuD;IACvD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
1
+ {"version":3,"file":"RootNodeRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/RootNodeRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD,oCAAoC;IACpC,QAAQ,EAAE,SAAS,CAAC,SAAS,CAAC;IAE9B,gHAAgH;IAChH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"RootNodeRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/RootNodeRule.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { RuleTypes } from \"../Rule\";\r\nimport { NavigationRuleBase } from \"./NavigationRule\";\r\n\r\n/**\r\n * Root node rules define the nodes that are displayed\r\n * at the root hierarchy level.\r\n *\r\n * @see [More details]($docs/presentation/Hierarchies/RootNodeRule.md)\r\n * @public\r\n */\r\nexport interface RootNodeRule extends NavigationRuleBase {\r\n /** Used for serializing to JSON. */\r\n ruleType: RuleTypes.RootNodes;\r\n\r\n /** Automatically expand nodes created by this rule. */\r\n autoExpand?: boolean;\r\n}\r\n"]}
1
+ {"version":3,"file":"RootNodeRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/RootNodeRule.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { RuleTypes } from \"../Rule\";\r\nimport { NavigationRuleBase } from \"./NavigationRule\";\r\n\r\n/**\r\n * Root node rules are used to define nodes that are displayed at the root hierarchy level.\r\n *\r\n * @see [Root node rule reference documentation page]($docs/presentation/hierarchies/RootNodeRule.md)\r\n * @public\r\n */\r\nexport interface RootNodeRule extends NavigationRuleBase {\r\n /** Used for serializing to JSON. */\r\n ruleType: RuleTypes.RootNodes;\r\n\r\n /** Tells the library to assign produced nodes a flag, indicating that they should be automatically expanded. */\r\n autoExpand?: boolean;\r\n}\r\n"]}
@@ -1,30 +1,37 @@
1
1
  /** @packageDocumentation
2
2
  * @module PresentationRules
3
3
  */
4
- import { ConditionContainer } from "../Rule";
5
4
  import { RequiredSchemaSpecification } from "../SchemasSpecification";
6
5
  import { ChildNodeSpecification } from "./ChildNodeSpecification";
7
6
  /**
8
- * Defines child node specifications which should only be handled when a condition
9
- * is satisfied.
7
+ * This is a sub-rule which shares *placement attributes* and
8
+ * [nested customization rules]($docs/presentation/hierarchies/ChildNodeRule.md#attribute-customizationrules)
9
+ * of the hierarchy rule. This means the attributes of hierarchy rule are still in effect and the sub-rules
10
+ * can add additional condition of their own.
10
11
  *
12
+ * @see [Sub-conditions reference documentation section]($docs/presentation/hierarchies/ChildNodeRule.md#attribute-subconditions)
11
13
  * @public
12
14
  */
13
- export interface SubCondition extends ConditionContainer {
15
+ export interface SubCondition {
14
16
  /**
15
- * Defines a condition for the rule, which needs to be met in order to execute it. Condition
16
- * is an [ECExpression]($docs/presentation/Advanced/ECExpressions.md), which can use
17
- * a [limited set of symbols]($docs/presentation/Hierarchies/ECExpressions.md#rule-condition).
17
+ * Defines a condition which needs to be met in order for the rule to be used. The condition is an
18
+ * [ECExpression]($docs/presentation/hierarchies/ECExpressions.md#rule-condition) which has to evaluate
19
+ * to a boolean value.
18
20
  */
19
21
  condition?: string;
20
22
  /**
21
- * Schema requirements for this rule. The rule is not used if the requirements are not met.
23
+ * Specifications that define [ECSchema requirements]($docs/presentation/RequiredSchemaSpecification.md) for
24
+ * the rule to take effect.
22
25
  * @beta
23
26
  */
24
27
  requiredSchemas?: RequiredSchemaSpecification[];
25
- /** Nested sub-conditions */
28
+ /**
29
+ * A list of nested sub-rules which share *placement attributes* of this sub-condition. This means the
30
+ * attributes of this sub-condition are still in effect and the sub-rules can add additional condition
31
+ * of their own.
32
+ */
26
33
  subConditions?: SubCondition[];
27
- /** Child node specifications which are used if condition is satisfied */
34
+ /** A list of hierarchy specifications that define what nodes are going to be returned. */
28
35
  specifications?: ChildNodeSpecification[];
29
36
  }
30
37
  //# sourceMappingURL=SubCondition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SubCondition.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/SubCondition.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE;;;;;GAKG;AACH,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,CAAC,EAAE,2BAA2B,EAAE,CAAC;IAEhD,4BAA4B;IAC5B,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAE/B,yEAAyE;IACzE,cAAc,CAAC,EAAE,sBAAsB,EAAE,CAAC;CAC3C"}
1
+ {"version":3,"file":"SubCondition.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/SubCondition.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,2BAA2B,EAAE,CAAC;IAEhD;;;;OAIG;IACH,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAE/B,0FAA0F;IAC1F,cAAc,CAAC,EAAE,sBAAsB,EAAE,CAAC;CAC3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"SubCondition.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/SubCondition.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { ConditionContainer } from \"../Rule\";\r\nimport { RequiredSchemaSpecification } from \"../SchemasSpecification\";\r\nimport { ChildNodeSpecification } from \"./ChildNodeSpecification\";\r\n\r\n/**\r\n * Defines child node specifications which should only be handled when a condition\r\n * is satisfied.\r\n *\r\n * @public\r\n */\r\nexport interface SubCondition extends ConditionContainer {\r\n /**\r\n * Defines a condition for the rule, which needs to be met in order to execute it. Condition\r\n * is an [ECExpression]($docs/presentation/Advanced/ECExpressions.md), which can use\r\n * a [limited set of symbols]($docs/presentation/Hierarchies/ECExpressions.md#rule-condition).\r\n */\r\n condition?: string;\r\n\r\n /**\r\n * Schema requirements for this rule. The rule is not used if the requirements are not met.\r\n * @beta\r\n */\r\n requiredSchemas?: RequiredSchemaSpecification[];\r\n\r\n /** Nested sub-conditions */\r\n subConditions?: SubCondition[];\r\n\r\n /** Child node specifications which are used if condition is satisfied */\r\n specifications?: ChildNodeSpecification[];\r\n}\r\n"]}
1
+ {"version":3,"file":"SubCondition.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/SubCondition.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { RequiredSchemaSpecification } from \"../SchemasSpecification\";\r\nimport { ChildNodeSpecification } from \"./ChildNodeSpecification\";\r\n\r\n/**\r\n * This is a sub-rule which shares *placement attributes* and\r\n * [nested customization rules]($docs/presentation/hierarchies/ChildNodeRule.md#attribute-customizationrules)\r\n * of the hierarchy rule. This means the attributes of hierarchy rule are still in effect and the sub-rules\r\n * can add additional condition of their own.\r\n *\r\n * @see [Sub-conditions reference documentation section]($docs/presentation/hierarchies/ChildNodeRule.md#attribute-subconditions)\r\n * @public\r\n */\r\nexport interface SubCondition {\r\n /**\r\n * Defines a condition which needs to be met in order for the rule to be used. The condition is an\r\n * [ECExpression]($docs/presentation/hierarchies/ECExpressions.md#rule-condition) which has to evaluate\r\n * to a boolean value.\r\n */\r\n condition?: string;\r\n\r\n /**\r\n * Specifications that define [ECSchema requirements]($docs/presentation/RequiredSchemaSpecification.md) for\r\n * the rule to take effect.\r\n * @beta\r\n */\r\n requiredSchemas?: RequiredSchemaSpecification[];\r\n\r\n /**\r\n * A list of nested sub-rules which share *placement attributes* of this sub-condition. This means the\r\n * attributes of this sub-condition are still in effect and the sub-rules can add additional condition\r\n * of their own.\r\n */\r\n subConditions?: SubCondition[];\r\n\r\n /** A list of hierarchy specifications that define what nodes are going to be returned. */\r\n specifications?: ChildNodeSpecification[];\r\n}\r\n"]}
@@ -2,7 +2,7 @@
2
2
  * @module UnifiedSelection
3
3
  */
4
4
  /**
5
- * Data structure that describes a [selection scope]($docs/presentation/Unified-Selection/index#selection-scopes)
5
+ * Data structure that describes a [selection scope]($docs/presentation/unified-selection/index#selection-scopes)
6
6
  *
7
7
  * @public
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionScope.js","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module UnifiedSelection\r\n */\r\n\r\n/**\r\n * Data structure that describes a [selection scope]($docs/presentation/Unified-Selection/index#selection-scopes)\r\n *\r\n * @public\r\n */\r\nexport interface SelectionScope {\r\n /** Unique ID of the selection scope */\r\n id: string;\r\n /** Label */\r\n label: string;\r\n /** Description */\r\n description?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"SelectionScope.js","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module UnifiedSelection\r\n */\r\n\r\n/**\r\n * Data structure that describes a [selection scope]($docs/presentation/unified-selection/index#selection-scopes)\r\n *\r\n * @public\r\n */\r\nexport interface SelectionScope {\r\n /** Unique ID of the selection scope */\r\n id: string;\r\n /** Label */\r\n label: string;\r\n /** Description */\r\n description?: string;\r\n}\r\n"]}
@@ -31,14 +31,14 @@ export * from "./presentation-common/ElementProperties";
31
31
  * @module UnifiedSelection
32
32
  *
33
33
  * @docs-group-description UnifiedSelection
34
- * Types related to [unified selection]($docs/presentation/Unified-Selection/index.md).
34
+ * Types related to [unified selection]($docs/presentation/unified-selection/index.md).
35
35
  */
36
36
  export * from "./presentation-common/selection/SelectionScope";
37
37
  /**
38
38
  * @module Content
39
39
  *
40
40
  * @docs-group-description Content
41
- * Types related to presentation [content]($docs/presentation/Content/index.md).
41
+ * Types related to presentation [content]($docs/presentation/content/index.md).
42
42
  */
43
43
  export * from "./presentation-common/content/Category";
44
44
  export * from "./presentation-common/content/Content";
@@ -56,7 +56,7 @@ export * from "./presentation-common/content/ContentTraverser";
56
56
  * @module Hierarchies
57
57
  *
58
58
  * @docs-group-description Hierarchies
59
- * Types related to presentation [hierarchies]($docs/presentation/Hierarchies/index.md).
59
+ * Types related to presentation [hierarchies]($docs/presentation/hierarchies/index.md).
60
60
  */
61
61
  export * from "./presentation-common/hierarchy/Key";
62
62
  export * from "./presentation-common/hierarchy/Node";
@@ -47,14 +47,14 @@ __exportStar(require("./presentation-common/ElementProperties"), exports);
47
47
  * @module UnifiedSelection
48
48
  *
49
49
  * @docs-group-description UnifiedSelection
50
- * Types related to [unified selection]($docs/presentation/Unified-Selection/index.md).
50
+ * Types related to [unified selection]($docs/presentation/unified-selection/index.md).
51
51
  */
52
52
  __exportStar(require("./presentation-common/selection/SelectionScope"), exports);
53
53
  /**
54
54
  * @module Content
55
55
  *
56
56
  * @docs-group-description Content
57
- * Types related to presentation [content]($docs/presentation/Content/index.md).
57
+ * Types related to presentation [content]($docs/presentation/content/index.md).
58
58
  */
59
59
  __exportStar(require("./presentation-common/content/Category"), exports);
60
60
  __exportStar(require("./presentation-common/content/Content"), exports);
@@ -72,7 +72,7 @@ __exportStar(require("./presentation-common/content/ContentTraverser"), exports)
72
72
  * @module Hierarchies
73
73
  *
74
74
  * @docs-group-description Hierarchies
75
- * Types related to presentation [hierarchies]($docs/presentation/Hierarchies/index.md).
75
+ * Types related to presentation [hierarchies]($docs/presentation/hierarchies/index.md).
76
76
  */
77
77
  __exportStar(require("./presentation-common/hierarchy/Key"), exports);
78
78
  __exportStar(require("./presentation-common/hierarchy/Node"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"presentation-common.js","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F;;;;;GAKG;AACH,mEAAiD;AACjD,oEAAkD;AAClD,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,wEAAsD;AACtD,mFAAiE;AACjE,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,+DAA6C;AAC7C,8DAA4C;AAC5C,iFAA+D;AAE/D;;;;;;GAMG;AACH,iFAA+D;AAC/D,2EAAyD;AACzD,0EAAwD;AAExD;;;;;GAKG;AACH,iFAA+D;AAE/D;;;;;GAKG;AACH,yEAAuD;AACvD,wEAAsD;AACtD,2EAAyD;AACzD,6EAA2D;AAC3D,uEAAqD;AACrD,uEAAqD;AACrD,qEAAmD;AACnD,yEAAuD;AACvD,yEAAuD;AACvD,gFAA8D;AAC9D,sEAAoD;AACpD,iFAA+D;AAE/D;;;;;GAKG;AACH,sEAAoD;AACpD,uEAAqD;AACrD,kFAAgE;AAEhE;;;;;GAKG;AACH,sFAAoE;AACpE,+FAA6E;AAC7E,gGAA8E;AAC9E,8GAA4F;AAC5F,oHAAkG;AAClG,uFAAqE;AACrE,0FAAwE;AACxE,0GAAwF;AACxF,qFAAmE;AACnE,qFAAmE;AACnE,yFAAuE;AACvE,8FAA4E;AAC5E,6FAA2E;AAC3E,yFAAuE;AACvE,4FAA0E;AAC1E,kGAAgF;AAChF,0FAAwE;AACxE,wFAAsE;AACtE,0FAAwE;AACxE,qHAAmG;AACnG,2GAAyF;AACzF,kFAAgE;AAChE,2FAAyE;AACzE,4FAA0E;AAC1E,yGAAuF;AACvF,sGAAoF;AACpF,kHAAgG;AAChG,gGAA8E;AAC9E,8GAA4F;AAC5F,6GAA2F;AAC3F,4GAA0F;AAC1F,+GAA6F;AAC7F,kFAAgE;AAChE,2FAAyE;AACzE,oFAAkE;AAClE,4FAA0E;AAC1E,mEAAiD;AACjD,sEAAoD;AACpD,mFAAiE;AACjE,wEAAsD","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @module Core\r\n *\r\n * @docs-group-description Core\r\n * Common types used all across Presentation packages.\r\n */\r\nexport * from \"./presentation-common/AsyncTasks\";\r\nexport * from \"./presentation-common/Diagnostics\";\r\nexport * from \"./presentation-common/EC\";\r\nexport * from \"./presentation-common/Error\";\r\nexport * from \"./presentation-common/KeySet\";\r\nexport * from \"./presentation-common/LabelDefinition\";\r\nexport * from \"./presentation-common/PresentationManagerOptions\";\r\nexport * from \"./presentation-common/RegisteredRuleset\";\r\nexport * from \"./presentation-common/RulesetVariables\";\r\nexport * from \"./presentation-common/RulesetsFactory\";\r\nexport * from \"./presentation-common/Update\";\r\nexport * from \"./presentation-common/Utils\";\r\nexport * from \"./presentation-common/PresentationIpcInterface\";\r\n\r\n/**\r\n * @module RPC\r\n *\r\n * @docs-group-description RPC\r\n * Types used for RPC communication between frontend and backend. Generally should\r\n * only be used internally by presentation packages.\r\n */\r\nexport * from \"./presentation-common/PresentationRpcInterface\";\r\nexport * from \"./presentation-common/RpcRequestsHandler\";\r\nexport * from \"./presentation-common/ElementProperties\";\r\n\r\n/**\r\n * @module UnifiedSelection\r\n *\r\n * @docs-group-description UnifiedSelection\r\n * Types related to [unified selection]($docs/presentation/Unified-Selection/index.md).\r\n */\r\nexport * from \"./presentation-common/selection/SelectionScope\";\r\n\r\n/**\r\n * @module Content\r\n *\r\n * @docs-group-description Content\r\n * Types related to presentation [content]($docs/presentation/Content/index.md).\r\n */\r\nexport * from \"./presentation-common/content/Category\";\r\nexport * from \"./presentation-common/content/Content\";\r\nexport * from \"./presentation-common/content/Descriptor\";\r\nexport * from \"./presentation-common/content/DisplayTypes\";\r\nexport * from \"./presentation-common/content/Editor\";\r\nexport * from \"./presentation-common/content/Fields\";\r\nexport * from \"./presentation-common/content/Item\";\r\nexport * from \"./presentation-common/content/Property\";\r\nexport * from \"./presentation-common/content/Renderer\";\r\nexport * from \"./presentation-common/content/TypeDescription\";\r\nexport * from \"./presentation-common/content/Value\";\r\nexport * from \"./presentation-common/content/ContentTraverser\";\r\n\r\n/**\r\n * @module Hierarchies\r\n *\r\n * @docs-group-description Hierarchies\r\n * Types related to presentation [hierarchies]($docs/presentation/Hierarchies/index.md).\r\n */\r\nexport * from \"./presentation-common/hierarchy/Key\";\r\nexport * from \"./presentation-common/hierarchy/Node\";\r\nexport * from \"./presentation-common/hierarchy/NodePathElement\";\r\n\r\n/**\r\n * @module PresentationRules\r\n *\r\n * @docs-group-description PresentationRules\r\n * Types for defining the presentation ruleset.\r\n */\r\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeRule\";\r\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/CustomNodeSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/NavigationRule\";\r\nexport * from \"./presentation-common/rules/hierarchy/NodeArtifactsRule\";\r\nexport * from \"./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/RootNodeRule\";\r\nexport * from \"./presentation-common/rules/hierarchy/SubCondition\";\r\nexport * from \"./presentation-common/rules/customization/CheckBoxRule\";\r\nexport * from \"./presentation-common/rules/customization/CustomizationRule\";\r\nexport * from \"./presentation-common/rules/customization/ExtendedDataRule\";\r\nexport * from \"./presentation-common/rules/customization/GroupingRule\";\r\nexport * from \"./presentation-common/rules/customization/ImageIdOverride\";\r\nexport * from \"./presentation-common/rules/customization/InstanceLabelOverride\";\r\nexport * from \"./presentation-common/rules/customization/LabelOverride\";\r\nexport * from \"./presentation-common/rules/customization/SortingRule\";\r\nexport * from \"./presentation-common/rules/customization/StyleOverride\";\r\nexport * from \"./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification\";\r\nexport * from \"./presentation-common/rules/content/ContentRelatedInstancesSpecification\";\r\nexport * from \"./presentation-common/rules/content/ContentRule\";\r\nexport * from \"./presentation-common/rules/content/ContentSpecification\";\r\nexport * from \"./presentation-common/rules/content/PropertySpecification\";\r\nexport * from \"./presentation-common/rules/content/SelectedNodeInstancesSpecification\";\r\nexport * from \"./presentation-common/rules/content/DefaultPropertyCategoryOverride\";\r\nexport * from \"./presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification\";\r\nexport * from \"./presentation-common/rules/content/modifiers/ContentModifier\";\r\nexport * from \"./presentation-common/rules/content/modifiers/PropertyCategorySpecification\";\r\nexport * from \"./presentation-common/rules/content/modifiers/PropertyEditorsSpecification\";\r\nexport * from \"./presentation-common/rules/content/modifiers/CustomRendererSpecification\";\r\nexport * from \"./presentation-common/rules/content/modifiers/RelatedPropertiesSpecification\";\r\nexport * from \"./presentation-common/rules/ClassSpecifications\";\r\nexport * from \"./presentation-common/rules/RelatedInstanceSpecification\";\r\nexport * from \"./presentation-common/rules/RelationshipDirection\";\r\nexport * from \"./presentation-common/rules/RelationshipPathSpecification\";\r\nexport * from \"./presentation-common/rules/Rule\";\r\nexport * from \"./presentation-common/rules/Ruleset\";\r\nexport * from \"./presentation-common/rules/SchemasSpecification\";\r\nexport * from \"./presentation-common/rules/Variables\";\r\n"]}
1
+ {"version":3,"file":"presentation-common.js","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F;;;;;GAKG;AACH,mEAAiD;AACjD,oEAAkD;AAClD,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,wEAAsD;AACtD,mFAAiE;AACjE,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,+DAA6C;AAC7C,8DAA4C;AAC5C,iFAA+D;AAE/D;;;;;;GAMG;AACH,iFAA+D;AAC/D,2EAAyD;AACzD,0EAAwD;AAExD;;;;;GAKG;AACH,iFAA+D;AAE/D;;;;;GAKG;AACH,yEAAuD;AACvD,wEAAsD;AACtD,2EAAyD;AACzD,6EAA2D;AAC3D,uEAAqD;AACrD,uEAAqD;AACrD,qEAAmD;AACnD,yEAAuD;AACvD,yEAAuD;AACvD,gFAA8D;AAC9D,sEAAoD;AACpD,iFAA+D;AAE/D;;;;;GAKG;AACH,sEAAoD;AACpD,uEAAqD;AACrD,kFAAgE;AAEhE;;;;;GAKG;AACH,sFAAoE;AACpE,+FAA6E;AAC7E,gGAA8E;AAC9E,8GAA4F;AAC5F,oHAAkG;AAClG,uFAAqE;AACrE,0FAAwE;AACxE,0GAAwF;AACxF,qFAAmE;AACnE,qFAAmE;AACnE,yFAAuE;AACvE,8FAA4E;AAC5E,6FAA2E;AAC3E,yFAAuE;AACvE,4FAA0E;AAC1E,kGAAgF;AAChF,0FAAwE;AACxE,wFAAsE;AACtE,0FAAwE;AACxE,qHAAmG;AACnG,2GAAyF;AACzF,kFAAgE;AAChE,2FAAyE;AACzE,4FAA0E;AAC1E,yGAAuF;AACvF,sGAAoF;AACpF,kHAAgG;AAChG,gGAA8E;AAC9E,8GAA4F;AAC5F,6GAA2F;AAC3F,4GAA0F;AAC1F,+GAA6F;AAC7F,kFAAgE;AAChE,2FAAyE;AACzE,oFAAkE;AAClE,4FAA0E;AAC1E,mEAAiD;AACjD,sEAAoD;AACpD,mFAAiE;AACjE,wEAAsD","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @module Core\r\n *\r\n * @docs-group-description Core\r\n * Common types used all across Presentation packages.\r\n */\r\nexport * from \"./presentation-common/AsyncTasks\";\r\nexport * from \"./presentation-common/Diagnostics\";\r\nexport * from \"./presentation-common/EC\";\r\nexport * from \"./presentation-common/Error\";\r\nexport * from \"./presentation-common/KeySet\";\r\nexport * from \"./presentation-common/LabelDefinition\";\r\nexport * from \"./presentation-common/PresentationManagerOptions\";\r\nexport * from \"./presentation-common/RegisteredRuleset\";\r\nexport * from \"./presentation-common/RulesetVariables\";\r\nexport * from \"./presentation-common/RulesetsFactory\";\r\nexport * from \"./presentation-common/Update\";\r\nexport * from \"./presentation-common/Utils\";\r\nexport * from \"./presentation-common/PresentationIpcInterface\";\r\n\r\n/**\r\n * @module RPC\r\n *\r\n * @docs-group-description RPC\r\n * Types used for RPC communication between frontend and backend. Generally should\r\n * only be used internally by presentation packages.\r\n */\r\nexport * from \"./presentation-common/PresentationRpcInterface\";\r\nexport * from \"./presentation-common/RpcRequestsHandler\";\r\nexport * from \"./presentation-common/ElementProperties\";\r\n\r\n/**\r\n * @module UnifiedSelection\r\n *\r\n * @docs-group-description UnifiedSelection\r\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\r\n */\r\nexport * from \"./presentation-common/selection/SelectionScope\";\r\n\r\n/**\r\n * @module Content\r\n *\r\n * @docs-group-description Content\r\n * Types related to presentation [content]($docs/presentation/content/index.md).\r\n */\r\nexport * from \"./presentation-common/content/Category\";\r\nexport * from \"./presentation-common/content/Content\";\r\nexport * from \"./presentation-common/content/Descriptor\";\r\nexport * from \"./presentation-common/content/DisplayTypes\";\r\nexport * from \"./presentation-common/content/Editor\";\r\nexport * from \"./presentation-common/content/Fields\";\r\nexport * from \"./presentation-common/content/Item\";\r\nexport * from \"./presentation-common/content/Property\";\r\nexport * from \"./presentation-common/content/Renderer\";\r\nexport * from \"./presentation-common/content/TypeDescription\";\r\nexport * from \"./presentation-common/content/Value\";\r\nexport * from \"./presentation-common/content/ContentTraverser\";\r\n\r\n/**\r\n * @module Hierarchies\r\n *\r\n * @docs-group-description Hierarchies\r\n * Types related to presentation [hierarchies]($docs/presentation/hierarchies/index.md).\r\n */\r\nexport * from \"./presentation-common/hierarchy/Key\";\r\nexport * from \"./presentation-common/hierarchy/Node\";\r\nexport * from \"./presentation-common/hierarchy/NodePathElement\";\r\n\r\n/**\r\n * @module PresentationRules\r\n *\r\n * @docs-group-description PresentationRules\r\n * Types for defining the presentation ruleset.\r\n */\r\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeRule\";\r\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/CustomNodeSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/NavigationRule\";\r\nexport * from \"./presentation-common/rules/hierarchy/NodeArtifactsRule\";\r\nexport * from \"./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification\";\r\nexport * from \"./presentation-common/rules/hierarchy/RootNodeRule\";\r\nexport * from \"./presentation-common/rules/hierarchy/SubCondition\";\r\nexport * from \"./presentation-common/rules/customization/CheckBoxRule\";\r\nexport * from \"./presentation-common/rules/customization/CustomizationRule\";\r\nexport * from \"./presentation-common/rules/customization/ExtendedDataRule\";\r\nexport * from \"./presentation-common/rules/customization/GroupingRule\";\r\nexport * from \"./presentation-common/rules/customization/ImageIdOverride\";\r\nexport * from \"./presentation-common/rules/customization/InstanceLabelOverride\";\r\nexport * from \"./presentation-common/rules/customization/LabelOverride\";\r\nexport * from \"./presentation-common/rules/customization/SortingRule\";\r\nexport * from \"./presentation-common/rules/customization/StyleOverride\";\r\nexport * from \"./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification\";\r\nexport * from \"./presentation-common/rules/content/ContentRelatedInstancesSpecification\";\r\nexport * from \"./presentation-common/rules/content/ContentRule\";\r\nexport * from \"./presentation-common/rules/content/ContentSpecification\";\r\nexport * from \"./presentation-common/rules/content/PropertySpecification\";\r\nexport * from \"./presentation-common/rules/content/SelectedNodeInstancesSpecification\";\r\nexport * from \"./presentation-common/rules/content/DefaultPropertyCategoryOverride\";\r\nexport * from \"./presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification\";\r\nexport * from \"./presentation-common/rules/content/modifiers/ContentModifier\";\r\nexport * from \"./presentation-common/rules/content/modifiers/PropertyCategorySpecification\";\r\nexport * from \"./presentation-common/rules/content/modifiers/PropertyEditorsSpecification\";\r\nexport * from \"./presentation-common/rules/content/modifiers/CustomRendererSpecification\";\r\nexport * from \"./presentation-common/rules/content/modifiers/RelatedPropertiesSpecification\";\r\nexport * from \"./presentation-common/rules/ClassSpecifications\";\r\nexport * from \"./presentation-common/rules/RelatedInstanceSpecification\";\r\nexport * from \"./presentation-common/rules/RelationshipDirection\";\r\nexport * from \"./presentation-common/rules/RelationshipPathSpecification\";\r\nexport * from \"./presentation-common/rules/Rule\";\r\nexport * from \"./presentation-common/rules/Ruleset\";\r\nexport * from \"./presentation-common/rules/SchemasSpecification\";\r\nexport * from \"./presentation-common/rules/Variables\";\r\n"]}
@@ -0,0 +1,13 @@
1
+ /** @packageDocumentation
2
+ * @module Core
3
+ */
4
+ /**
5
+ * Logger categories used by this package
6
+ * @note All logger categories in this package start with the `presentation-common` prefix.
7
+ * @see [Logger]($bentley)
8
+ * @public
9
+ */
10
+ export declare enum PresentationCommonLoggerCategory {
11
+ Package = "presentation-common"
12
+ }
13
+ //# sourceMappingURL=CommonLoggerCategory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonLoggerCategory.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/CommonLoggerCategory.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;;;GAKG;AACH,oBAAY,gCAAgC;IAC1C,OAAO,wBAAwB;CAChC"}
@@ -0,0 +1,18 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module Core
7
+ */
8
+ /**
9
+ * Logger categories used by this package
10
+ * @note All logger categories in this package start with the `presentation-common` prefix.
11
+ * @see [Logger]($bentley)
12
+ * @public
13
+ */
14
+ export var PresentationCommonLoggerCategory;
15
+ (function (PresentationCommonLoggerCategory) {
16
+ PresentationCommonLoggerCategory["Package"] = "presentation-common";
17
+ })(PresentationCommonLoggerCategory || (PresentationCommonLoggerCategory = {}));
18
+ //# sourceMappingURL=CommonLoggerCategory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonLoggerCategory.js","sourceRoot":"","sources":["../../../src/presentation-common/CommonLoggerCategory.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,CAAN,IAAY,gCAEX;AAFD,WAAY,gCAAgC;IAC1C,mEAA+B,CAAA;AACjC,CAAC,EAFW,gCAAgC,KAAhC,gCAAgC,QAE3C","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Core\r\n */\r\n\r\n/**\r\n * Logger categories used by this package\r\n * @note All logger categories in this package start with the `presentation-common` prefix.\r\n * @see [Logger]($bentley)\r\n * @public\r\n */\r\nexport enum PresentationCommonLoggerCategory {\r\n Package = \"presentation-common\",\r\n}\r\n"]}
@@ -120,6 +120,35 @@ export interface KindOfQuantityInfo {
120
120
  */
121
121
  activeFormat?: FormatProps;
122
122
  }
123
+ /**
124
+ * Navigation property information
125
+ * @beta
126
+ */
127
+ export interface NavigationPropertyInfo {
128
+ /** Information about ECProperty's relationship class */
129
+ classInfo: ClassInfo;
130
+ /** Is the direction of the relationship forward */
131
+ isForwardRelationship: boolean;
132
+ }
133
+ /** @beta */
134
+ export declare namespace NavigationPropertyInfo {
135
+ /** Serialize [[NavigationPropertyInfo]] to JSON */
136
+ function toJSON(info: NavigationPropertyInfo): NavigationPropertyInfoJSON;
137
+ /** Serialize [[NavigationPropertyInfo]] to compressed JSON */
138
+ function toCompressedJSON(navigationPropertyInfo: NavigationPropertyInfo, classesMap: {
139
+ [id: string]: CompressedClassInfoJSON;
140
+ }): NavigationPropertyInfoJSON<string>;
141
+ /** Deserialize [[NavigationPropertyInfo]] from JSON */
142
+ function fromJSON(json: NavigationPropertyInfo): NavigationPropertyInfo;
143
+ }
144
+ /**
145
+ * A serialized version of [[NavigationPropertyInfo]]
146
+ * @beta
147
+ */
148
+ export interface NavigationPropertyInfoJSON<TClassInfoJSON = ClassInfoJSON> {
149
+ classInfo: TClassInfoJSON;
150
+ isForwardRelationship: boolean;
151
+ }
123
152
  /**
124
153
  * A structure that describes an ECProperty
125
154
  * @public
@@ -140,6 +169,11 @@ export interface PropertyInfo {
140
169
  kindOfQuantity?: KindOfQuantityInfo;
141
170
  /** Extended type name of the ECProperty if it has one */
142
171
  extendedType?: string;
172
+ /**
173
+ * Navigation property info if the field is navigation type
174
+ * @beta
175
+ */
176
+ navigationPropertyInfo?: NavigationPropertyInfo;
143
177
  }
144
178
  /** @public */
145
179
  export declare namespace PropertyInfo {
@@ -162,6 +196,8 @@ export interface PropertyInfoJSON<TClassInfoJSON = ClassInfoJSON> {
162
196
  type: string;
163
197
  enumerationInfo?: EnumerationInfo;
164
198
  kindOfQuantity?: KindOfQuantityInfo;
199
+ /** @beta */
200
+ navigationPropertyInfo?: NavigationPropertyInfoJSON<TClassInfoJSON>;
165
201
  }
166
202
  /**
167
203
  * A structure that describes a related class and the properties of that relationship.
@@ -1 +1 @@
1
- {"version":3,"file":"EC.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/EC.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;GAGG;AACH,oBAAY,OAAO,GAAG,UAAU,CAAC;AAEjC;;;GAGG;AACH,oBAAY,UAAU,GAAG,UAAU,CAAC;AAEpC;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,uDAAuD;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,EAAE,EAAE,UAAU,CAAC;CAChB;AAED,cAAc;AACd,yBAAiB,WAAW,CAAC;IAC3B,8BAA8B;IAC9B,SAAgB,OAAO,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,GAAG,MAAM,CAKlE;IAED,wCAAwC;IACxC,SAAgB,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,eAAe,CAEzD;IAED,4CAA4C;IAC5C,SAAgB,QAAQ,CAAC,IAAI,EAAE,eAAe;;;MAE7C;CACF;AAED;;;GAGG;AACH,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AC,gBAAgB,GAAG,wBAAwB,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,gBAAgB,GAAG,wBAAwB,CAAC,GAAG,OAAO,CAGhJ;IAED,uEAAuE;IACvE,SAAgB,KAAK,CAAC,IAAI,EAAE,gBAAgB,GAAG,wBAAwB,CAEtE;CACF;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED;;;;GAIG;AACH,oBAAY,wBAAwB,GAAG,wBAAwB,EAAE,CAAC"}
@@ -42,27 +42,61 @@ export var ClassInfo;
42
42
  }
43
43
  ClassInfo.fromJSON = fromJSON;
44
44
  })(ClassInfo || (ClassInfo = {}));
45
+ /** @beta */
46
+ export var NavigationPropertyInfo;
47
+ (function (NavigationPropertyInfo) {
48
+ /** Serialize [[NavigationPropertyInfo]] to JSON */
49
+ function toJSON(info) {
50
+ return { ...info, classInfo: ClassInfo.toJSON(info.classInfo) };
51
+ }
52
+ NavigationPropertyInfo.toJSON = toJSON;
53
+ /** Serialize [[NavigationPropertyInfo]] to compressed JSON */
54
+ function toCompressedJSON(navigationPropertyInfo, classesMap) {
55
+ const { id, ...leftOverInfo } = navigationPropertyInfo.classInfo;
56
+ classesMap[id] = leftOverInfo;
57
+ return {
58
+ ...navigationPropertyInfo,
59
+ classInfo: navigationPropertyInfo.classInfo.id,
60
+ };
61
+ }
62
+ NavigationPropertyInfo.toCompressedJSON = toCompressedJSON;
63
+ /** Deserialize [[NavigationPropertyInfo]] from JSON */
64
+ function fromJSON(json) {
65
+ return { ...json, classInfo: ClassInfo.fromJSON(json.classInfo) };
66
+ }
67
+ NavigationPropertyInfo.fromJSON = fromJSON;
68
+ })(NavigationPropertyInfo || (NavigationPropertyInfo = {}));
45
69
  /** @public */
46
70
  export var PropertyInfo;
47
71
  (function (PropertyInfo) {
48
72
  /** Serialize [[PropertyInfo]] to JSON */
49
73
  function toJSON(info) {
50
- return { ...info, classInfo: ClassInfo.toJSON(info.classInfo) };
74
+ return {
75
+ ...info,
76
+ classInfo: ClassInfo.toJSON(info.classInfo),
77
+ ...(info.navigationPropertyInfo ? { navigationPropertyInfo: NavigationPropertyInfo.toJSON(info.navigationPropertyInfo) } : undefined),
78
+ };
51
79
  }
52
80
  PropertyInfo.toJSON = toJSON;
53
81
  /** Serialize [[PropertyInfo]] to compressed JSON */
54
82
  function toCompressedJSON(propertyInfo, classesMap) {
83
+ const { navigationPropertyInfo, ...leftOverPropertyInfo } = propertyInfo;
55
84
  const { id, ...leftOverInfo } = propertyInfo.classInfo;
56
85
  classesMap[id] = leftOverInfo;
57
86
  return {
58
- ...propertyInfo,
87
+ ...leftOverPropertyInfo,
59
88
  classInfo: propertyInfo.classInfo.id,
89
+ ...(navigationPropertyInfo ? { navigationPropertyInfo: NavigationPropertyInfo.toCompressedJSON(navigationPropertyInfo, classesMap) } : undefined),
60
90
  };
61
91
  }
62
92
  PropertyInfo.toCompressedJSON = toCompressedJSON;
63
93
  /** Deserialize [[PropertyInfo]] from JSON */
64
94
  function fromJSON(json) {
65
- return { ...json, classInfo: ClassInfo.fromJSON(json.classInfo) };
95
+ return {
96
+ ...json,
97
+ classInfo: ClassInfo.fromJSON(json.classInfo),
98
+ ...(json.navigationPropertyInfo ? { navigationPropertyInfo: NavigationPropertyInfo.fromJSON(json.navigationPropertyInfo) } : undefined),
99
+ };
66
100
  }
67
101
  PropertyInfo.fromJSON = fromJSON;
68
102
  })(PropertyInfo || (PropertyInfo = {}));