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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/Ruleset.schema.json +3 -258
  2. package/lib/cjs/presentation-common/AsyncTasks.js +1 -3
  3. package/lib/cjs/presentation-common/AsyncTasks.js.map +1 -1
  4. package/lib/cjs/presentation-common/EC.d.ts +5 -80
  5. package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
  6. package/lib/cjs/presentation-common/EC.js +1 -97
  7. package/lib/cjs/presentation-common/EC.js.map +1 -1
  8. package/lib/cjs/presentation-common/ElementProperties.js +16 -9
  9. package/lib/cjs/presentation-common/ElementProperties.js.map +1 -1
  10. package/lib/cjs/presentation-common/KeySet.d.ts +2 -2
  11. package/lib/cjs/presentation-common/KeySet.d.ts.map +1 -1
  12. package/lib/cjs/presentation-common/KeySet.js +9 -11
  13. package/lib/cjs/presentation-common/KeySet.js.map +1 -1
  14. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js +3 -0
  15. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
  16. package/lib/cjs/presentation-common/LabelDefinition.d.ts +0 -48
  17. package/lib/cjs/presentation-common/LabelDefinition.d.ts.map +1 -1
  18. package/lib/cjs/presentation-common/LabelDefinition.js +1 -44
  19. package/lib/cjs/presentation-common/LabelDefinition.js.map +1 -1
  20. package/lib/cjs/presentation-common/LocalizationHelper.js +1 -0
  21. package/lib/cjs/presentation-common/LocalizationHelper.js.map +1 -1
  22. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts +7 -9
  23. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  24. package/lib/cjs/presentation-common/PresentationRpcInterface.js +21 -17
  25. package/lib/cjs/presentation-common/PresentationRpcInterface.js.map +1 -1
  26. package/lib/cjs/presentation-common/RegisteredRuleset.js +3 -0
  27. package/lib/cjs/presentation-common/RegisteredRuleset.js.map +1 -1
  28. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts +7 -7
  29. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  30. package/lib/cjs/presentation-common/RpcRequestsHandler.js +6 -1
  31. package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
  32. package/lib/cjs/presentation-common/RulesetVariables.d.ts +1 -46
  33. package/lib/cjs/presentation-common/RulesetVariables.d.ts.map +1 -1
  34. package/lib/cjs/presentation-common/RulesetVariables.js.map +1 -1
  35. package/lib/cjs/presentation-common/Update.d.ts +2 -79
  36. package/lib/cjs/presentation-common/Update.d.ts.map +1 -1
  37. package/lib/cjs/presentation-common/Update.js +1 -104
  38. package/lib/cjs/presentation-common/Update.js.map +1 -1
  39. package/lib/cjs/presentation-common/Utils.d.ts +7 -0
  40. package/lib/cjs/presentation-common/Utils.d.ts.map +1 -1
  41. package/lib/cjs/presentation-common/Utils.js +23 -0
  42. package/lib/cjs/presentation-common/Utils.js.map +1 -1
  43. package/lib/cjs/presentation-common/content/Content.d.ts +0 -7
  44. package/lib/cjs/presentation-common/content/Content.d.ts.map +1 -1
  45. package/lib/cjs/presentation-common/content/Content.js +5 -10
  46. package/lib/cjs/presentation-common/content/Content.js.map +1 -1
  47. package/lib/cjs/presentation-common/content/ContentTraverser.js +20 -12
  48. package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
  49. package/lib/cjs/presentation-common/content/Descriptor.d.ts +2 -31
  50. package/lib/cjs/presentation-common/content/Descriptor.d.ts.map +1 -1
  51. package/lib/cjs/presentation-common/content/Descriptor.js +50 -15
  52. package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
  53. package/lib/cjs/presentation-common/content/Fields.d.ts +4 -10
  54. package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
  55. package/lib/cjs/presentation-common/content/Fields.js +77 -35
  56. package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
  57. package/lib/cjs/presentation-common/content/Item.d.ts +5 -31
  58. package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
  59. package/lib/cjs/presentation-common/content/Item.js +24 -48
  60. package/lib/cjs/presentation-common/content/Item.js.map +1 -1
  61. package/lib/cjs/presentation-common/content/Property.d.ts +2 -12
  62. package/lib/cjs/presentation-common/content/Property.d.ts.map +1 -1
  63. package/lib/cjs/presentation-common/content/Property.js +0 -18
  64. package/lib/cjs/presentation-common/content/Property.js.map +1 -1
  65. package/lib/cjs/presentation-common/content/PropertyValueFormatter.js +3 -0
  66. package/lib/cjs/presentation-common/content/PropertyValueFormatter.js.map +1 -1
  67. package/lib/cjs/presentation-common/content/Value.d.ts +0 -106
  68. package/lib/cjs/presentation-common/content/Value.d.ts.map +1 -1
  69. package/lib/cjs/presentation-common/content/Value.js +1 -215
  70. package/lib/cjs/presentation-common/content/Value.js.map +1 -1
  71. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts +1 -22
  72. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
  73. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js +0 -23
  74. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  75. package/lib/cjs/presentation-common/hierarchy/Key.d.ts +0 -83
  76. package/lib/cjs/presentation-common/hierarchy/Key.d.ts.map +1 -1
  77. package/lib/cjs/presentation-common/hierarchy/Key.js +6 -24
  78. package/lib/cjs/presentation-common/hierarchy/Key.js.map +1 -1
  79. package/lib/cjs/presentation-common/hierarchy/Node.d.ts +2 -106
  80. package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
  81. package/lib/cjs/presentation-common/hierarchy/Node.js +0 -99
  82. package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
  83. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts +1 -67
  84. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  85. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js +0 -117
  86. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  87. package/lib/cjs/presentation-common/rules/Rule.d.ts +0 -14
  88. package/lib/cjs/presentation-common/rules/Rule.d.ts.map +1 -1
  89. package/lib/cjs/presentation-common/rules/Rule.js.map +1 -1
  90. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +0 -7
  91. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  92. package/lib/cjs/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  93. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts +1 -5
  94. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  95. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  96. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +2 -28
  97. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  98. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js +1 -15
  99. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  100. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +2 -0
  101. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  102. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  103. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +0 -9
  104. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  105. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  106. package/lib/cjs/presentation-common.d.ts +1 -5
  107. package/lib/cjs/presentation-common.d.ts.map +1 -1
  108. package/lib/cjs/presentation-common.js +2 -5
  109. package/lib/cjs/presentation-common.js.map +1 -1
  110. package/lib/esm/presentation-common/AsyncTasks.js +1 -3
  111. package/lib/esm/presentation-common/AsyncTasks.js.map +1 -1
  112. package/lib/esm/presentation-common/EC.d.ts +5 -80
  113. package/lib/esm/presentation-common/EC.d.ts.map +1 -1
  114. package/lib/esm/presentation-common/EC.js +0 -96
  115. package/lib/esm/presentation-common/EC.js.map +1 -1
  116. package/lib/esm/presentation-common/ElementProperties.js +16 -9
  117. package/lib/esm/presentation-common/ElementProperties.js.map +1 -1
  118. package/lib/esm/presentation-common/KeySet.d.ts +2 -2
  119. package/lib/esm/presentation-common/KeySet.d.ts.map +1 -1
  120. package/lib/esm/presentation-common/KeySet.js +9 -11
  121. package/lib/esm/presentation-common/KeySet.js.map +1 -1
  122. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js +3 -0
  123. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
  124. package/lib/esm/presentation-common/LabelDefinition.d.ts +0 -48
  125. package/lib/esm/presentation-common/LabelDefinition.d.ts.map +1 -1
  126. package/lib/esm/presentation-common/LabelDefinition.js +0 -43
  127. package/lib/esm/presentation-common/LabelDefinition.js.map +1 -1
  128. package/lib/esm/presentation-common/LocalizationHelper.js +1 -0
  129. package/lib/esm/presentation-common/LocalizationHelper.js.map +1 -1
  130. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts +7 -9
  131. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  132. package/lib/esm/presentation-common/PresentationRpcInterface.js +21 -17
  133. package/lib/esm/presentation-common/PresentationRpcInterface.js.map +1 -1
  134. package/lib/esm/presentation-common/RegisteredRuleset.js +3 -0
  135. package/lib/esm/presentation-common/RegisteredRuleset.js.map +1 -1
  136. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts +7 -7
  137. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  138. package/lib/esm/presentation-common/RpcRequestsHandler.js +6 -1
  139. package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
  140. package/lib/esm/presentation-common/RulesetVariables.d.ts +1 -46
  141. package/lib/esm/presentation-common/RulesetVariables.d.ts.map +1 -1
  142. package/lib/esm/presentation-common/RulesetVariables.js.map +1 -1
  143. package/lib/esm/presentation-common/Update.d.ts +2 -79
  144. package/lib/esm/presentation-common/Update.d.ts.map +1 -1
  145. package/lib/esm/presentation-common/Update.js +0 -103
  146. package/lib/esm/presentation-common/Update.js.map +1 -1
  147. package/lib/esm/presentation-common/Utils.d.ts +7 -0
  148. package/lib/esm/presentation-common/Utils.d.ts.map +1 -1
  149. package/lib/esm/presentation-common/Utils.js +22 -0
  150. package/lib/esm/presentation-common/Utils.js.map +1 -1
  151. package/lib/esm/presentation-common/content/Content.d.ts +0 -7
  152. package/lib/esm/presentation-common/content/Content.d.ts.map +1 -1
  153. package/lib/esm/presentation-common/content/Content.js +5 -10
  154. package/lib/esm/presentation-common/content/Content.js.map +1 -1
  155. package/lib/esm/presentation-common/content/ContentTraverser.js +20 -12
  156. package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
  157. package/lib/esm/presentation-common/content/Descriptor.d.ts +2 -31
  158. package/lib/esm/presentation-common/content/Descriptor.d.ts.map +1 -1
  159. package/lib/esm/presentation-common/content/Descriptor.js +50 -15
  160. package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
  161. package/lib/esm/presentation-common/content/Fields.d.ts +4 -10
  162. package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
  163. package/lib/esm/presentation-common/content/Fields.js +77 -35
  164. package/lib/esm/presentation-common/content/Fields.js.map +1 -1
  165. package/lib/esm/presentation-common/content/Item.d.ts +5 -31
  166. package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
  167. package/lib/esm/presentation-common/content/Item.js +24 -48
  168. package/lib/esm/presentation-common/content/Item.js.map +1 -1
  169. package/lib/esm/presentation-common/content/Property.d.ts +2 -12
  170. package/lib/esm/presentation-common/content/Property.d.ts.map +1 -1
  171. package/lib/esm/presentation-common/content/Property.js +0 -18
  172. package/lib/esm/presentation-common/content/Property.js.map +1 -1
  173. package/lib/esm/presentation-common/content/PropertyValueFormatter.js +3 -0
  174. package/lib/esm/presentation-common/content/PropertyValueFormatter.js.map +1 -1
  175. package/lib/esm/presentation-common/content/Value.d.ts +0 -106
  176. package/lib/esm/presentation-common/content/Value.d.ts.map +1 -1
  177. package/lib/esm/presentation-common/content/Value.js +0 -214
  178. package/lib/esm/presentation-common/content/Value.js.map +1 -1
  179. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts +1 -22
  180. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
  181. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js +1 -22
  182. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  183. package/lib/esm/presentation-common/hierarchy/Key.d.ts +0 -83
  184. package/lib/esm/presentation-common/hierarchy/Key.d.ts.map +1 -1
  185. package/lib/esm/presentation-common/hierarchy/Key.js +6 -24
  186. package/lib/esm/presentation-common/hierarchy/Key.js.map +1 -1
  187. package/lib/esm/presentation-common/hierarchy/Node.d.ts +2 -106
  188. package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
  189. package/lib/esm/presentation-common/hierarchy/Node.js +1 -98
  190. package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
  191. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts +1 -67
  192. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  193. package/lib/esm/presentation-common/hierarchy/NodePathElement.js +1 -116
  194. package/lib/esm/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  195. package/lib/esm/presentation-common/rules/Rule.d.ts +0 -14
  196. package/lib/esm/presentation-common/rules/Rule.d.ts.map +1 -1
  197. package/lib/esm/presentation-common/rules/Rule.js.map +1 -1
  198. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +0 -7
  199. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  200. package/lib/esm/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  201. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts +1 -5
  202. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  203. package/lib/esm/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  204. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +2 -28
  205. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  206. package/lib/esm/presentation-common/rules/customization/GroupingRule.js +0 -14
  207. package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  208. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +2 -0
  209. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  210. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  211. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +0 -9
  212. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  213. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  214. package/lib/esm/presentation-common.d.ts +1 -5
  215. package/lib/esm/presentation-common.d.ts.map +1 -1
  216. package/lib/esm/presentation-common.js +1 -5
  217. package/lib/esm/presentation-common.js.map +1 -1
  218. package/package.json +10 -10
  219. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts +0 -45
  220. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts.map +0 -1
  221. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js +0 -10
  222. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js.map +0 -1
  223. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts +0 -30
  224. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts.map +0 -1
  225. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js +0 -10
  226. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js.map +0 -1
  227. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts +0 -41
  228. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts.map +0 -1
  229. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js +0 -10
  230. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js.map +0 -1
  231. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts +0 -49
  232. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts.map +0 -1
  233. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js +0 -10
  234. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js.map +0 -1
  235. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts +0 -45
  236. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts.map +0 -1
  237. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js +0 -9
  238. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js.map +0 -1
  239. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts +0 -30
  240. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts.map +0 -1
  241. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js +0 -9
  242. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js.map +0 -1
  243. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts +0 -41
  244. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts.map +0 -1
  245. package/lib/esm/presentation-common/rules/customization/LabelOverride.js +0 -9
  246. package/lib/esm/presentation-common/rules/customization/LabelOverride.js.map +0 -1
  247. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts +0 -49
  248. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts.map +0 -1
  249. package/lib/esm/presentation-common/rules/customization/StyleOverride.js +0 -9
  250. package/lib/esm/presentation-common/rules/customization/StyleOverride.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../../src/presentation-common/rules/Rule.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AA6DH;;;GAGG;AACH,IAAY,SAqBX;AArBD,WAAY,SAAS;IACnB,kBAAkB;IAClB,oCAAuB,CAAA;IACvB,sCAAyB,CAAA;IAEzB,gBAAgB;IAChB,gCAAmB,CAAA;IACnB,gDAAmC,CAAA;IACnC,gFAAmE,CAAA;IAEnE,sBAAsB;IACtB,kCAAqB,CAAA;IACrB,gDAAmC,CAAA;IACnC,gDAAmC,CAAA;IACnC,4CAA+B,CAAA;IAC/B,4DAA+C,CAAA;IAC/C,4CAA+B,CAAA;IAC/B,kCAAqB,CAAA;IACrB,gDAAmC,CAAA;IACnC,4CAA+B,CAAA;IAC/B,0CAA6B,CAAA;AAC/B,CAAC,EArBW,SAAS,yBAAT,SAAS,QAqBpB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { ContentRule } from \"./content/ContentRule\";\nimport { DefaultPropertyCategoryOverride } from \"./content/DefaultPropertyCategoryOverride\";\nimport { ContentModifier } from \"./content/modifiers/ContentModifier\";\nimport { CustomizationRule } from \"./customization/CustomizationRule\";\nimport { NavigationRule } from \"./hierarchy/NavigationRule\";\nimport { RequiredSchemaSpecification } from \"./SchemasSpecification\";\n\n/**\n * Base interface for all [[Rule]] implementations.\n * @public\n */\nexport interface RuleBase {\n /**\n * Used for serializing to JSON.\n * @see RuleTypes\n */\n ruleType: `${RuleTypes}`;\n\n /**\n * Defines the order in which rules are handled, higher number means the rule is handled first. If priorities are\n * equal, the rules are handled in the order they're defined.\n *\n * @type integer\n */\n priority?: number;\n\n /**\n * Tells the library that the rule should only be handled if no other rule of the same type was handled previously (based on rule\n * priorities and definition order). This allows adding fallback rules which can be overriden by higher-priority rules.\n */\n onlyIfNotHandled?: boolean;\n\n /**\n * A list of [ECSchema requirements]($docs/presentation/RequiredSchemaSpecification.md) that need to be met for the rule to be used.\n */\n requiredSchemas?: RequiredSchemaSpecification[];\n}\n\n/**\n * A union of all presentation rule types.\n * @public\n */\nexport declare type Rule = CustomizationRule | NavigationRule | ContentRule | ContentModifier | DefaultPropertyCategoryOverride;\n\n/**\n * Container of a [[condition]] property. Used for rules that support conditions. Not\n * meant to be used directly, see [[Rule]].\n *\n * @deprecated in 3.x. This interface is not used anymore. All interfaces that used to extend it, have the [[condition]]\n * attribute of their own.\n * @public\n */\nexport interface ConditionContainer {\n /**\n * Defines a condition for the rule, which needs to be met in order to execute it.\n */\n condition?: string;\n}\n\n/**\n * Used for serializing [[Rule]] objects to JSON.\n * @public\n */\nexport enum RuleTypes {\n // hierarchy rules\n RootNodes = \"RootNodes\",\n ChildNodes = \"ChildNodes\",\n\n // content rules\n Content = \"Content\",\n ContentModifier = \"ContentModifier\", // eslint-disable-line @typescript-eslint/no-shadow\n DefaultPropertyCategoryOverride = \"DefaultPropertyCategoryOverride\", // eslint-disable-line @typescript-eslint/no-shadow\n\n // customization rules\n Grouping = \"Grouping\",\n PropertySorting = \"PropertySorting\",\n DisabledSorting = \"DisabledSorting\",\n NodeArtifacts = \"NodeArtifacts\",\n InstanceLabelOverride = \"InstanceLabelOverride\",\n LabelOverride = \"LabelOverride\",\n CheckBox = \"CheckBox\",\n ImageIdOverride = \"ImageIdOverride\",\n StyleOverride = \"StyleOverride\",\n ExtendedData = \"ExtendedData\",\n}\n"]}
1
+ {"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../../src/presentation-common/rules/Rule.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AA8CH;;;GAGG;AACH,IAAY,SAqBX;AArBD,WAAY,SAAS;IACnB,kBAAkB;IAClB,oCAAuB,CAAA;IACvB,sCAAyB,CAAA;IAEzB,gBAAgB;IAChB,gCAAmB,CAAA;IACnB,gDAAmC,CAAA;IACnC,gFAAmE,CAAA;IAEnE,sBAAsB;IACtB,kCAAqB,CAAA;IACrB,gDAAmC,CAAA;IACnC,gDAAmC,CAAA;IACnC,4CAA+B,CAAA;IAC/B,4DAA+C,CAAA;IAC/C,4CAA+B,CAAA;IAC/B,kCAAqB,CAAA;IACrB,gDAAmC,CAAA;IACnC,4CAA+B,CAAA;IAC/B,0CAA6B,CAAA;AAC/B,CAAC,EArBW,SAAS,yBAAT,SAAS,QAqBpB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { ContentRule } from \"./content/ContentRule\";\nimport { DefaultPropertyCategoryOverride } from \"./content/DefaultPropertyCategoryOverride\";\nimport { ContentModifier } from \"./content/modifiers/ContentModifier\";\nimport { CustomizationRule } from \"./customization/CustomizationRule\";\nimport { NavigationRule } from \"./hierarchy/NavigationRule\";\nimport { RequiredSchemaSpecification } from \"./SchemasSpecification\";\n\n/**\n * Base interface for all [[Rule]] implementations.\n * @public\n */\nexport interface RuleBase {\n /**\n * Used for serializing to JSON.\n * @see RuleTypes\n */\n ruleType: `${RuleTypes}`;\n\n /**\n * Defines the order in which rules are handled, higher number means the rule is handled first. If priorities are\n * equal, the rules are handled in the order they're defined.\n *\n * @type integer\n */\n priority?: number;\n\n /**\n * Tells the library that the rule should only be handled if no other rule of the same type was handled previously (based on rule\n * priorities and definition order). This allows adding fallback rules which can be overriden by higher-priority rules.\n */\n onlyIfNotHandled?: boolean;\n\n /**\n * A list of [ECSchema requirements]($docs/presentation/RequiredSchemaSpecification.md) that need to be met for the rule to be used.\n */\n requiredSchemas?: RequiredSchemaSpecification[];\n}\n\n/**\n * A union of all presentation rule types.\n * @public\n */\nexport declare type Rule = CustomizationRule | NavigationRule | ContentRule | ContentModifier | DefaultPropertyCategoryOverride;\n\n/**\n * Used for serializing [[Rule]] objects to JSON.\n * @public\n */\nexport enum RuleTypes {\n // hierarchy rules\n RootNodes = \"RootNodes\",\n ChildNodes = \"ChildNodes\",\n\n // content rules\n Content = \"Content\",\n ContentModifier = \"ContentModifier\", // eslint-disable-line @typescript-eslint/no-shadow\n DefaultPropertyCategoryOverride = \"DefaultPropertyCategoryOverride\", // eslint-disable-line @typescript-eslint/no-shadow\n\n // customization rules\n Grouping = \"Grouping\",\n PropertySorting = \"PropertySorting\",\n DisabledSorting = \"DisabledSorting\",\n NodeArtifacts = \"NodeArtifacts\",\n InstanceLabelOverride = \"InstanceLabelOverride\",\n LabelOverride = \"LabelOverride\",\n CheckBox = \"CheckBox\",\n ImageIdOverride = \"ImageIdOverride\",\n StyleOverride = \"StyleOverride\",\n ExtendedData = \"ExtendedData\",\n}\n"]}
@@ -34,13 +34,6 @@ export interface ContentSpecificationBase extends ContentModifiersList {
34
34
  * @type integer
35
35
  */
36
36
  priority?: number;
37
- /**
38
- * Should image IDs be calculated for the returned instances. When `true`, [[ImageIdOverride]] rules get applied when
39
- * creating the content.
40
- *
41
- * @deprecated in 3.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
42
- */
43
- showImages?: boolean;
44
37
  /** Specifications of [related instances]($docs/presentation/RelatedInstanceSpecification.md) that can be used when creating the content. */
45
38
  relatedInstances?: RelatedInstanceSpecification[];
46
39
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/content/ContentSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,8CAA8C,EAAE,MAAM,kDAAkD,CAAC;AAClH,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F;;;GAGG;AACH,oBAAY,yBAAyB;IACnC,iCAAiC,sCAAsC;IACvE,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;CAChD;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAyB,SAAQ,oBAAoB;IACpE;;;OAGG;IACH,QAAQ,EAAE,GAAG,yBAAyB,EAAE,CAAC;IAEzC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,4IAA4I;IAC5I,gBAAgB,CAAC,EAAE,4BAA4B,EAAE,CAAC;IAElD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,MAAM,oBAAoB,GACpC,8CAA8C,GAC9C,oCAAoC,GACpC,kCAAkC,CAAC"}
1
+ {"version":3,"file":"ContentSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/content/ContentSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,8CAA8C,EAAE,MAAM,kDAAkD,CAAC;AAClH,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F;;;GAGG;AACH,oBAAY,yBAAyB;IACnC,iCAAiC,sCAAsC;IACvE,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;CAChD;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAyB,SAAQ,oBAAoB;IACpE;;;OAGG;IACH,QAAQ,EAAE,GAAG,yBAAyB,EAAE,CAAC;IAEzC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,4IAA4I;IAC5I,gBAAgB,CAAC,EAAE,4BAA4B,EAAE,CAAC;IAElD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,MAAM,oBAAoB,GACpC,8CAA8C,GAC9C,oCAAoC,GACpC,kCAAkC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/content/ContentSpecification.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAQH;;;GAGG;AACH,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACnC,oGAAuE,CAAA;IACvE,gFAAmD,CAAA;IACnD,4EAA+C,CAAA;AACjD,CAAC,EAJW,yBAAyB,yCAAzB,yBAAyB,QAIpC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { RelatedInstanceSpecification } from \"../RelatedInstanceSpecification\";\nimport { ContentInstancesOfSpecificClassesSpecification } from \"./ContentInstancesOfSpecificClassesSpecification\";\nimport { ContentRelatedInstancesSpecification } from \"./ContentRelatedInstancesSpecification\";\nimport { ContentModifiersList } from \"./modifiers/ContentModifier\";\nimport { SelectedNodeInstancesSpecification } from \"./SelectedNodeInstancesSpecification\";\n\n/**\n * Used for serializing array of [[ContentSpecification]]\n * @public\n */\nexport enum ContentSpecificationTypes {\n ContentInstancesOfSpecificClasses = \"ContentInstancesOfSpecificClasses\",\n ContentRelatedInstances = \"ContentRelatedInstances\",\n SelectedNodeInstances = \"SelectedNodeInstances\",\n}\n\n/**\n * Base interface for all [[ContentSpecification]] implementations. Not\n * meant to be used directly, see `ContentSpecification`.\n *\n * @public\n */\nexport interface ContentSpecificationBase extends ContentModifiersList {\n /**\n * Used for serializing to JSON.\n * @see [[ContentSpecificationTypes]]\n */\n specType: `${ContentSpecificationTypes}`;\n\n /**\n * Controls the order in which specifications are handled — specification with higher priority value is handled\n * first. If priorities are equal, the specifications are handled in the order they appear in the ruleset.\n *\n * @type integer\n */\n priority?: number;\n\n /**\n * Should image IDs be calculated for the returned instances. When `true`, [[ImageIdOverride]] rules get applied when\n * creating the content.\n *\n * @deprecated in 3.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n showImages?: boolean;\n\n /** Specifications of [related instances]($docs/presentation/RelatedInstanceSpecification.md) that can be used when creating the content. */\n relatedInstances?: RelatedInstanceSpecification[];\n\n /**\n * Specifies whether this specification should be ignored if another specification was handled before as\n * determined by rule and specification priorities. This provides a mechanism for defining a fallback specification.\n */\n onlyIfNotHandled?: boolean;\n}\n\n/**\n * Content rule specifications which define what content is returned\n * when rule is used.\n *\n * @public\n */\nexport declare type ContentSpecification =\n | ContentInstancesOfSpecificClassesSpecification\n | ContentRelatedInstancesSpecification\n | SelectedNodeInstancesSpecification;\n"]}
1
+ {"version":3,"file":"ContentSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/content/ContentSpecification.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAQH;;;GAGG;AACH,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACnC,oGAAuE,CAAA;IACvE,gFAAmD,CAAA;IACnD,4EAA+C,CAAA;AACjD,CAAC,EAJW,yBAAyB,yCAAzB,yBAAyB,QAIpC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { RelatedInstanceSpecification } from \"../RelatedInstanceSpecification\";\nimport { ContentInstancesOfSpecificClassesSpecification } from \"./ContentInstancesOfSpecificClassesSpecification\";\nimport { ContentRelatedInstancesSpecification } from \"./ContentRelatedInstancesSpecification\";\nimport { ContentModifiersList } from \"./modifiers/ContentModifier\";\nimport { SelectedNodeInstancesSpecification } from \"./SelectedNodeInstancesSpecification\";\n\n/**\n * Used for serializing array of [[ContentSpecification]]\n * @public\n */\nexport enum ContentSpecificationTypes {\n ContentInstancesOfSpecificClasses = \"ContentInstancesOfSpecificClasses\",\n ContentRelatedInstances = \"ContentRelatedInstances\",\n SelectedNodeInstances = \"SelectedNodeInstances\",\n}\n\n/**\n * Base interface for all [[ContentSpecification]] implementations. Not\n * meant to be used directly, see `ContentSpecification`.\n *\n * @public\n */\nexport interface ContentSpecificationBase extends ContentModifiersList {\n /**\n * Used for serializing to JSON.\n * @see [[ContentSpecificationTypes]]\n */\n specType: `${ContentSpecificationTypes}`;\n\n /**\n * Controls the order in which specifications are handled — specification with higher priority value is handled\n * first. If priorities are equal, the specifications are handled in the order they appear in the ruleset.\n *\n * @type integer\n */\n priority?: number;\n\n /** Specifications of [related instances]($docs/presentation/RelatedInstanceSpecification.md) that can be used when creating the content. */\n relatedInstances?: RelatedInstanceSpecification[];\n\n /**\n * Specifies whether this specification should be ignored if another specification was handled before as\n * determined by rule and specification priorities. This provides a mechanism for defining a fallback specification.\n */\n onlyIfNotHandled?: boolean;\n}\n\n/**\n * Content rule specifications which define what content is returned\n * when rule is used.\n *\n * @public\n */\nexport declare type ContentSpecification =\n | ContentInstancesOfSpecificClassesSpecification\n | ContentRelatedInstancesSpecification\n | SelectedNodeInstancesSpecification;\n"]}
@@ -2,14 +2,10 @@
2
2
  * @module PresentationRules
3
3
  */
4
4
  import { NodeArtifactsRule } from "../hierarchy/NodeArtifactsRule";
5
- import { CheckBoxRule } from "./CheckBoxRule";
6
5
  import { ExtendedDataRule } from "./ExtendedDataRule";
7
6
  import { GroupingRule } from "./GroupingRule";
8
- import { ImageIdOverride } from "./ImageIdOverride";
9
7
  import { InstanceLabelOverride } from "./InstanceLabelOverride";
10
- import { LabelOverride } from "./LabelOverride";
11
8
  import { SortingRule } from "./SortingRule";
12
- import { StyleOverride } from "./StyleOverride";
13
9
  /**
14
10
  * Customization rules allow customizing each node or content item separately.
15
11
  * Most of the rules have a `condition` property which uses [ECExpressions]($docs/presentation/customization/ECExpressions.md)
@@ -29,5 +25,5 @@ import { StyleOverride } from "./StyleOverride";
29
25
  *
30
26
  * @public
31
27
  */
32
- export declare type CustomizationRule = InstanceLabelOverride | CheckBoxRule | GroupingRule | ImageIdOverride | LabelOverride | SortingRule | StyleOverride | ExtendedDataRule | NodeArtifactsRule;
28
+ export declare type CustomizationRule = InstanceLabelOverride | GroupingRule | SortingRule | ExtendedDataRule | NodeArtifactsRule;
33
29
  //# sourceMappingURL=CustomizationRule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomizationRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CustomizationRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,MAAM,iBAAiB,GACjC,qBAAqB,GACrB,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,aAAa,GACb,WAAW,GACX,aAAa,GACb,gBAAgB,GAChB,iBAAiB,CAAC"}
1
+ {"version":3,"file":"CustomizationRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CustomizationRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,MAAM,iBAAiB,GAAG,qBAAqB,GAAG,YAAY,GAAG,WAAW,GAAG,gBAAgB,GAAG,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomizationRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CustomizationRule.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { NodeArtifactsRule } from \"../hierarchy/NodeArtifactsRule\";\nimport { CheckBoxRule } from \"./CheckBoxRule\";\nimport { ExtendedDataRule } from \"./ExtendedDataRule\";\nimport { GroupingRule } from \"./GroupingRule\";\nimport { ImageIdOverride } from \"./ImageIdOverride\";\nimport { InstanceLabelOverride } from \"./InstanceLabelOverride\";\nimport { LabelOverride } from \"./LabelOverride\";\nimport { SortingRule } from \"./SortingRule\";\nimport { StyleOverride } from \"./StyleOverride\";\n\n/**\n * Customization rules allow customizing each node or content item separately.\n * Most of the rules have a `condition` property which uses [ECExpressions]($docs/presentation/customization/ECExpressions.md)\n * for conditional rule filtering.\n *\n * **Nested customization rules:**\n *\n * Customization rules may be specified at ruleset level, in which case they're\n * applied to all content produced by the ruleset, or nested under navigation rules,\n * in which case they're applied only for nodes created by those rules.\n *\n * **Customization rule priorities:**\n *\n * Customization rules have a `priority` attribute which defines the order in which they're applied. If priorities match,\n * rules engine looks at the nesting level - the deeper the rule is nested, the higher is its `priority`.\n * If the nesting levels also match, the rule defined first wins.\n *\n * @public\n */\nexport declare type CustomizationRule =\n | InstanceLabelOverride\n | CheckBoxRule // eslint-disable-line @typescript-eslint/no-deprecated\n | GroupingRule\n | ImageIdOverride // eslint-disable-line @typescript-eslint/no-deprecated\n | LabelOverride // eslint-disable-line @typescript-eslint/no-deprecated\n | SortingRule\n | StyleOverride // eslint-disable-line @typescript-eslint/no-deprecated\n | ExtendedDataRule\n | NodeArtifactsRule;\n"]}
1
+ {"version":3,"file":"CustomizationRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/CustomizationRule.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { NodeArtifactsRule } from \"../hierarchy/NodeArtifactsRule\";\nimport { ExtendedDataRule } from \"./ExtendedDataRule\";\nimport { GroupingRule } from \"./GroupingRule\";\nimport { InstanceLabelOverride } from \"./InstanceLabelOverride\";\nimport { SortingRule } from \"./SortingRule\";\n\n/**\n * Customization rules allow customizing each node or content item separately.\n * Most of the rules have a `condition` property which uses [ECExpressions]($docs/presentation/customization/ECExpressions.md)\n * for conditional rule filtering.\n *\n * **Nested customization rules:**\n *\n * Customization rules may be specified at ruleset level, in which case they're\n * applied to all content produced by the ruleset, or nested under navigation rules,\n * in which case they're applied only for nodes created by those rules.\n *\n * **Customization rule priorities:**\n *\n * Customization rules have a `priority` attribute which defines the order in which they're applied. If priorities match,\n * rules engine looks at the nesting level - the deeper the rule is nested, the higher is its `priority`.\n * If the nesting levels also match, the rule defined first wins.\n *\n * @public\n */\nexport declare type CustomizationRule = InstanceLabelOverride | GroupingRule | SortingRule | ExtendedDataRule | NodeArtifactsRule;\n"]}
@@ -133,6 +133,7 @@ export interface PropertyGroup extends GroupingSpecificationBase {
133
133
  * it's up to the UI component to decide what to do with it.
134
134
  *
135
135
  * @minLength 1
136
+ * @deprecated in 5.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
136
137
  */
137
138
  imageId?: string;
138
139
  /** Specifies whether a grouping node should be created if there is only one item in that group. */
@@ -141,37 +142,9 @@ export interface PropertyGroup extends GroupingSpecificationBase {
141
142
  * Should a separate grouping node be created for nodes whose grouping value is not set or is set to an empty string.
142
143
  */
143
144
  createGroupForUnspecifiedValues?: boolean;
144
- /**
145
- * Specifies whether instances should be grouped using property's display or raw value.
146
- *
147
- * @see PropertyGroupingValue
148
- * @deprecated in 3.x. Display value should always be used for grouping.
149
- */
150
- groupingValue?: `${PropertyGroupingValue}`;
151
- /**
152
- * Specifies whether nodes should be sorted by their display label or the grouping property's value. In most cases the result
153
- * is the same, unless a [label override rule]($docs/presentation/customization/LabelOverride.md) is used to change node's display label.
154
- *
155
- * @see PropertyGroupingValue
156
- * @deprecated in 3.x. Property grouping nodes should always be sorted by display label.
157
- */
158
- sortingValue?: `${PropertyGroupingValue}`;
159
145
  /** Ranges into which the grouping values are divided. Instances are grouped by value if no ranges are specified. */
160
146
  ranges?: PropertyRangeGroupSpecification[];
161
147
  }
162
- /**
163
- * Used in [[PropertyGroup]] to specify the type of value to use
164
- * for grouping and sorting
165
- *
166
- * @public
167
- * @deprecated in 3.x. The attributes using this enum are deprecated.
168
- */
169
- export declare enum PropertyGroupingValue {
170
- /** By property value */
171
- PropertyValue = "PropertyValue",
172
- /** By display label */
173
- DisplayLabel = "DisplayLabel"
174
- }
175
148
  /**
176
149
  * Describes a grouping range.
177
150
  *
@@ -183,6 +156,7 @@ export interface PropertyRangeGroupSpecification {
183
156
  * ID of an image to use for the grouping node. Defaults to [[PropertyGroup.imageId]] specified in [[PropertyGroup]].
184
157
  *
185
158
  * @minLength 1
159
+ * @deprecated in 5.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
186
160
  */
187
161
  imageId?: string;
188
162
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"GroupingRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/GroupingRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,oCAAoC;IACpC,QAAQ,EAAE,UAAU,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,wEAAwE;IACxE,KAAK,EAAE,8BAA8B,CAAC;IAEtC;;;OAGG;IACH,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,MAAM,qBAAqB,GAAG,UAAU,GAAG,aAAa,GAAG,sBAAsB,CAAC;AAEhG;;;GAGG;AACH,oBAAY,0BAA0B;IACpC,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,iBAAiB,sBAAsB;CACxC;AAED;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,QAAQ,EAAE,GAAG,0BAA0B,EAAE,CAAC;CAC3C;AAED;;;;;;GAMG;AACH,MAAM,WAAW,UAAW,SAAQ,yBAAyB;IAC3D,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAC;IAElB,mGAAmG;IACnG,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;OAGG;IACH,SAAS,CAAC,EAAE,8BAA8B,CAAC;CAC5C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAuB,SAAQ,yBAAyB;IACvE,oCAAoC;IACpC,QAAQ,EAAE,mBAAmB,CAAC;IAE9B;;;;;;;;;;;OAWG;IACH,gBAAgB,CAAC,EAAE,GAAG,sCAAsC,EAAE,CAAC;CAChE;AAED;;;GAGG;AACH,oBAAY,sCAAsC;IAChD,qCAAqC;IACrC,KAAK,UAAU;IAEf;;;;;;OAMG;IACH,WAAW,gBAAgB;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAc,SAAQ,yBAAyB;IAC9D,oCAAoC;IACpC,QAAQ,EAAE,UAAU,CAAC;IAErB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,mGAAmG;IACnG,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;OAEG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAE1C;;;;;OAKG;IACH,aAAa,CAAC,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAE3C;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAE1C,oHAAoH;IACpH,MAAM,CAAC,EAAE,+BAA+B,EAAE,CAAC;CAC5C;AAED;;;;;;GAMG;AACH,oBAAY,qBAAqB;IAC/B,wBAAwB;IACxB,aAAa,kBAAkB;IAE/B,uBAAuB;IACvB,YAAY,iBAAiB;CAC9B;AAED;;;;;GAKG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"GroupingRule.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/GroupingRule.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,oCAAoC;IACpC,QAAQ,EAAE,UAAU,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,wEAAwE;IACxE,KAAK,EAAE,8BAA8B,CAAC;IAEtC;;;OAGG;IACH,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,MAAM,qBAAqB,GAAG,UAAU,GAAG,aAAa,GAAG,sBAAsB,CAAC;AAEhG;;;GAGG;AACH,oBAAY,0BAA0B;IACpC,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,iBAAiB,sBAAsB;CACxC;AAED;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,QAAQ,EAAE,GAAG,0BAA0B,EAAE,CAAC;CAC3C;AAED;;;;;;GAMG;AACH,MAAM,WAAW,UAAW,SAAQ,yBAAyB;IAC3D,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAC;IAElB,mGAAmG;IACnG,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;OAGG;IACH,SAAS,CAAC,EAAE,8BAA8B,CAAC;CAC5C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAuB,SAAQ,yBAAyB;IACvE,oCAAoC;IACpC,QAAQ,EAAE,mBAAmB,CAAC;IAE9B;;;;;;;;;;;OAWG;IACH,gBAAgB,CAAC,EAAE,GAAG,sCAAsC,EAAE,CAAC;CAChE;AAED;;;GAGG;AACH,oBAAY,sCAAsC;IAChD,qCAAqC;IACrC,KAAK,UAAU;IAEf;;;;;;OAMG;IACH,WAAW,gBAAgB;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAc,SAAQ,yBAAyB;IAC9D,oCAAoC;IACpC,QAAQ,EAAE,UAAU,CAAC;IAErB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,mGAAmG;IACnG,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;OAEG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAE1C,oHAAoH;IACpH,MAAM,CAAC,EAAE,+BAA+B,EAAE,CAAC;CAC5C;AAED;;;;;GAKG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -7,7 +7,7 @@
7
7
  * @module PresentationRules
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.PropertyGroupingValue = exports.SameLabelInstanceGroupApplicationStage = exports.GroupingSpecificationTypes = void 0;
10
+ exports.SameLabelInstanceGroupApplicationStage = exports.GroupingSpecificationTypes = void 0;
11
11
  /**
12
12
  * Available types of [[GroupingSpecification]].
13
13
  * @public
@@ -35,18 +35,4 @@ var SameLabelInstanceGroupApplicationStage;
35
35
  */
36
36
  SameLabelInstanceGroupApplicationStage["PostProcess"] = "PostProcess";
37
37
  })(SameLabelInstanceGroupApplicationStage || (exports.SameLabelInstanceGroupApplicationStage = SameLabelInstanceGroupApplicationStage = {}));
38
- /**
39
- * Used in [[PropertyGroup]] to specify the type of value to use
40
- * for grouping and sorting
41
- *
42
- * @public
43
- * @deprecated in 3.x. The attributes using this enum are deprecated.
44
- */
45
- var PropertyGroupingValue;
46
- (function (PropertyGroupingValue) {
47
- /** By property value */
48
- PropertyGroupingValue["PropertyValue"] = "PropertyValue";
49
- /** By display label */
50
- PropertyGroupingValue["DisplayLabel"] = "DisplayLabel";
51
- })(PropertyGroupingValue || (exports.PropertyGroupingValue = PropertyGroupingValue = {}));
52
38
  //# sourceMappingURL=GroupingRule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GroupingRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/GroupingRule.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAsCH;;;GAGG;AACH,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,6CAAe,CAAA;IACf,mDAAqB,CAAA;IACrB,qEAAuC,CAAA;AACzC,CAAC,EAJW,0BAA0B,0CAA1B,0BAA0B,QAIrC;AAgED;;;GAGG;AACH,IAAY,sCAYX;AAZD,WAAY,sCAAsC;IAChD,qCAAqC;IACrC,yDAAe,CAAA;IAEf;;;;;;OAMG;IACH,qEAA2B,CAAA;AAC7B,CAAC,EAZW,sCAAsC,sDAAtC,sCAAsC,QAYjD;AAyDD;;;;;;GAMG;AACH,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,wBAAwB;IACxB,wDAA+B,CAAA;IAE/B,uBAAuB;IACvB,sDAA6B,CAAA;AAC/B,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { SingleSchemaClassSpecification } from \"../ClassSpecifications\";\nimport { RuleBase } from \"../Rule\";\n\n/**\n * Grouping rules provide advanced ways to group instances when creating hierarchies.\n *\n * @see [Grouping rule reference documentation page]($docs/presentation/hierarchies/GroupingRule.md)\n * @public\n */\nexport interface GroupingRule extends RuleBase {\n /** Used for serializing to JSON. */\n ruleType: \"Grouping\";\n\n /**\n * An [ECExpression]($docs/presentation/hierarchies/ECExpressions.md#rule-condition) that results in\n * a boolean value. If specified, the grouping rule applies only to instance nodes that cause the condition\n * to evaluate to `true`.\n */\n condition?: string;\n\n /** Specification of ECClass which should be grouped using this rule. */\n class: SingleSchemaClassSpecification;\n\n /**\n * Specifies a list of [grouping specifications]($docs/presentation/hierarchies/GroupingRule.md#grouping-specifications)\n * which describe the kind of grouping that should be applied.\n */\n groups: GroupingSpecification[];\n}\n\n/**\n * Grouping rule specifications.\n * @public\n */\nexport declare type GroupingSpecification = ClassGroup | PropertyGroup | SameLabelInstanceGroup;\n\n/**\n * Available types of [[GroupingSpecification]].\n * @public\n */\nexport enum GroupingSpecificationTypes {\n Class = \"Class\",\n Property = \"Property\",\n SameLabelInstance = \"SameLabelInstance\",\n}\n\n/**\n * Base interface for all [[GroupingSpecification]] implementations. Not\n * meant to be used directly, see `GroupingSpecification`.\n *\n * @public\n */\nexport interface GroupingSpecificationBase {\n /**\n * Type of the subclass\n * @see GroupingSpecificationTypes\n */\n specType: `${GroupingSpecificationTypes}`;\n}\n\n/**\n * Base class grouping allows grouping ECInstance nodes by their base class (as opposed to the hierarchy\n * specifications' `groupByClass` attribute, which always groups by direct class).\n *\n * @see [Base class grouping documentation section]($docs/presentation/hierarchies/GroupingRule.md#base-class-grouping)\n * @public\n */\nexport interface ClassGroup extends GroupingSpecificationBase {\n /** Used for serializing to JSON. */\n specType: \"Class\";\n\n /** Specifies whether a grouping node should be created if there is only one item in that group. */\n createGroupForSingleItem?: boolean;\n\n /**\n * Specification of the base ECClass to group by. If specified, allows grouping by a subclass of the class\n * specified by rule's `class` attribute.\n */\n baseClass?: SingleSchemaClassSpecification;\n}\n\n/**\n * Allows grouping multiple instances with the same label into one ECInstances type of node. Similar to display label grouping,\n * but instead of showing a grouping node with multiple grouped ECInstance nodes, it shows a single ECInstances node which represents\n * multiple ECInstances.\n *\n * @see [Same label instance grouping documentation section]($docs/presentation/hierarchies/GroupingRule.md#same-label-instance-grouping)\n * @public\n */\nexport interface SameLabelInstanceGroup extends GroupingSpecificationBase {\n /** Used for serializing to JSON. */\n specType: \"SameLabelInstance\";\n\n /**\n * Grouping nodes by label is an expensive operation because it requires the whole hierarchy level to be created before even the first\n * grouped node can be produced. To alleviate the performance impact when this specification is used, two `applicationStage` settings have been introduced:\n *\n * - `\"Query\"` groups instances during ECSql query, which can often make use of database indices and is generally fairly quick. It is chosen\n * as the default option, however, it fails to produce grouping nodes when certain ruleset specifications are involved.\n *\n * - `\"PostProcess\"` groups instances after the whole hierarchy level is built. It incurs a large performance penalty, but it will\n * produce the expected result in all cases.\n *\n * @see SameLabelInstanceGroupApplicationStage\n */\n applicationStage?: `${SameLabelInstanceGroupApplicationStage}`;\n}\n\n/**\n * Specifies hierarchy creation stages used to apply [[SameLabelInstanceGroup]] grouping.\n * @public\n */\nexport enum SameLabelInstanceGroupApplicationStage {\n /** Apply grouping at query stage. */\n Query = \"Query\",\n\n /**\n * Apply grouping at post-processing stage.\n *\n * This allows grouping nodes created by different hierarchy specifications at\n * a higher performance cost as it requires loading the whole hierarchy level before\n * returning even the first node - avoid using with large numbers of nodes.\n */\n PostProcess = \"PostProcess\",\n}\n\n/**\n * Property grouping allows grouping by a property of the instance by value or by given ranges of values.\n *\n * @see [Property grouping documentation section]($docs/presentation/hierarchies/GroupingRule.md#property-grouping)\n * @public\n */\nexport interface PropertyGroup extends GroupingSpecificationBase {\n /** Used for serializing to JSON. */\n specType: \"Property\";\n\n /**\n * Name of the ECProperty which is used for grouping. The property must exist on the ECClass specified by the\n * rule's `class` attribute and it must be of either a primitive or a navigation type.\n *\n * @minLength 1\n */\n propertyName: string;\n\n /**\n * Specifies grouping node's image ID. If set, the ID is assigned to [[Node.imageId]] and\n * it's up to the UI component to decide what to do with it.\n *\n * @minLength 1\n */\n imageId?: string;\n\n /** Specifies whether a grouping node should be created if there is only one item in that group. */\n createGroupForSingleItem?: boolean;\n\n /**\n * Should a separate grouping node be created for nodes whose grouping value is not set or is set to an empty string.\n */\n createGroupForUnspecifiedValues?: boolean;\n\n /**\n * Specifies whether instances should be grouped using property's display or raw value.\n *\n * @see PropertyGroupingValue\n * @deprecated in 3.x. Display value should always be used for grouping.\n */\n groupingValue?: `${PropertyGroupingValue}`; // eslint-disable-line @typescript-eslint/no-deprecated\n\n /**\n * Specifies whether nodes should be sorted by their display label or the grouping property's value. In most cases the result\n * is the same, unless a [label override rule]($docs/presentation/customization/LabelOverride.md) is used to change node's display label.\n *\n * @see PropertyGroupingValue\n * @deprecated in 3.x. Property grouping nodes should always be sorted by display label.\n */\n sortingValue?: `${PropertyGroupingValue}`; // eslint-disable-line @typescript-eslint/no-deprecated\n\n /** Ranges into which the grouping values are divided. Instances are grouped by value if no ranges are specified. */\n ranges?: PropertyRangeGroupSpecification[];\n}\n\n/**\n * Used in [[PropertyGroup]] to specify the type of value to use\n * for grouping and sorting\n *\n * @public\n * @deprecated in 3.x. The attributes using this enum are deprecated.\n */\nexport enum PropertyGroupingValue {\n /** By property value */\n PropertyValue = \"PropertyValue\",\n\n /** By display label */\n DisplayLabel = \"DisplayLabel\",\n}\n\n/**\n * Describes a grouping range.\n *\n * @see [Property range group specification documentation section]($docs/presentation/hierarchies/GroupingRule.md#attribute-ranges)\n * @public\n */\nexport interface PropertyRangeGroupSpecification {\n /**\n * ID of an image to use for the grouping node. Defaults to [[PropertyGroup.imageId]] specified in [[PropertyGroup]].\n *\n * @minLength 1\n */\n imageId?: string;\n\n /**\n * Grouping node label. May be [localized]($docs/presentation/advanced/Localization.md).\n * Defaults to `{from value} - {to value}`.\n *\n * @minLength 1\n */\n label?: string;\n\n /**\n * Value that defines the range start (inclusive).\n *\n * @minLength 1\n */\n fromValue: string;\n\n /**\n * Value that defines the range end (inclusive).\n *\n * @minLength 1\n */\n toValue: string;\n}\n"]}
1
+ {"version":3,"file":"GroupingRule.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/GroupingRule.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAsCH;;;GAGG;AACH,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,6CAAe,CAAA;IACf,mDAAqB,CAAA;IACrB,qEAAuC,CAAA;AACzC,CAAC,EAJW,0BAA0B,0CAA1B,0BAA0B,QAIrC;AAgED;;;GAGG;AACH,IAAY,sCAYX;AAZD,WAAY,sCAAsC;IAChD,qCAAqC;IACrC,yDAAe,CAAA;IAEf;;;;;;OAMG;IACH,qEAA2B,CAAA;AAC7B,CAAC,EAZW,sCAAsC,sDAAtC,sCAAsC,QAYjD","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { SingleSchemaClassSpecification } from \"../ClassSpecifications\";\nimport { RuleBase } from \"../Rule\";\n\n/**\n * Grouping rules provide advanced ways to group instances when creating hierarchies.\n *\n * @see [Grouping rule reference documentation page]($docs/presentation/hierarchies/GroupingRule.md)\n * @public\n */\nexport interface GroupingRule extends RuleBase {\n /** Used for serializing to JSON. */\n ruleType: \"Grouping\";\n\n /**\n * An [ECExpression]($docs/presentation/hierarchies/ECExpressions.md#rule-condition) that results in\n * a boolean value. If specified, the grouping rule applies only to instance nodes that cause the condition\n * to evaluate to `true`.\n */\n condition?: string;\n\n /** Specification of ECClass which should be grouped using this rule. */\n class: SingleSchemaClassSpecification;\n\n /**\n * Specifies a list of [grouping specifications]($docs/presentation/hierarchies/GroupingRule.md#grouping-specifications)\n * which describe the kind of grouping that should be applied.\n */\n groups: GroupingSpecification[];\n}\n\n/**\n * Grouping rule specifications.\n * @public\n */\nexport declare type GroupingSpecification = ClassGroup | PropertyGroup | SameLabelInstanceGroup;\n\n/**\n * Available types of [[GroupingSpecification]].\n * @public\n */\nexport enum GroupingSpecificationTypes {\n Class = \"Class\",\n Property = \"Property\",\n SameLabelInstance = \"SameLabelInstance\",\n}\n\n/**\n * Base interface for all [[GroupingSpecification]] implementations. Not\n * meant to be used directly, see `GroupingSpecification`.\n *\n * @public\n */\nexport interface GroupingSpecificationBase {\n /**\n * Type of the subclass\n * @see GroupingSpecificationTypes\n */\n specType: `${GroupingSpecificationTypes}`;\n}\n\n/**\n * Base class grouping allows grouping ECInstance nodes by their base class (as opposed to the hierarchy\n * specifications' `groupByClass` attribute, which always groups by direct class).\n *\n * @see [Base class grouping documentation section]($docs/presentation/hierarchies/GroupingRule.md#base-class-grouping)\n * @public\n */\nexport interface ClassGroup extends GroupingSpecificationBase {\n /** Used for serializing to JSON. */\n specType: \"Class\";\n\n /** Specifies whether a grouping node should be created if there is only one item in that group. */\n createGroupForSingleItem?: boolean;\n\n /**\n * Specification of the base ECClass to group by. If specified, allows grouping by a subclass of the class\n * specified by rule's `class` attribute.\n */\n baseClass?: SingleSchemaClassSpecification;\n}\n\n/**\n * Allows grouping multiple instances with the same label into one ECInstances type of node. Similar to display label grouping,\n * but instead of showing a grouping node with multiple grouped ECInstance nodes, it shows a single ECInstances node which represents\n * multiple ECInstances.\n *\n * @see [Same label instance grouping documentation section]($docs/presentation/hierarchies/GroupingRule.md#same-label-instance-grouping)\n * @public\n */\nexport interface SameLabelInstanceGroup extends GroupingSpecificationBase {\n /** Used for serializing to JSON. */\n specType: \"SameLabelInstance\";\n\n /**\n * Grouping nodes by label is an expensive operation because it requires the whole hierarchy level to be created before even the first\n * grouped node can be produced. To alleviate the performance impact when this specification is used, two `applicationStage` settings have been introduced:\n *\n * - `\"Query\"` groups instances during ECSql query, which can often make use of database indices and is generally fairly quick. It is chosen\n * as the default option, however, it fails to produce grouping nodes when certain ruleset specifications are involved.\n *\n * - `\"PostProcess\"` groups instances after the whole hierarchy level is built. It incurs a large performance penalty, but it will\n * produce the expected result in all cases.\n *\n * @see SameLabelInstanceGroupApplicationStage\n */\n applicationStage?: `${SameLabelInstanceGroupApplicationStage}`;\n}\n\n/**\n * Specifies hierarchy creation stages used to apply [[SameLabelInstanceGroup]] grouping.\n * @public\n */\nexport enum SameLabelInstanceGroupApplicationStage {\n /** Apply grouping at query stage. */\n Query = \"Query\",\n\n /**\n * Apply grouping at post-processing stage.\n *\n * This allows grouping nodes created by different hierarchy specifications at\n * a higher performance cost as it requires loading the whole hierarchy level before\n * returning even the first node - avoid using with large numbers of nodes.\n */\n PostProcess = \"PostProcess\",\n}\n\n/**\n * Property grouping allows grouping by a property of the instance by value or by given ranges of values.\n *\n * @see [Property grouping documentation section]($docs/presentation/hierarchies/GroupingRule.md#property-grouping)\n * @public\n */\nexport interface PropertyGroup extends GroupingSpecificationBase {\n /** Used for serializing to JSON. */\n specType: \"Property\";\n\n /**\n * Name of the ECProperty which is used for grouping. The property must exist on the ECClass specified by the\n * rule's `class` attribute and it must be of either a primitive or a navigation type.\n *\n * @minLength 1\n */\n propertyName: string;\n\n /**\n * Specifies grouping node's image ID. If set, the ID is assigned to [[Node.imageId]] and\n * it's up to the UI component to decide what to do with it.\n *\n * @minLength 1\n * @deprecated in 5.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n imageId?: string;\n\n /** Specifies whether a grouping node should be created if there is only one item in that group. */\n createGroupForSingleItem?: boolean;\n\n /**\n * Should a separate grouping node be created for nodes whose grouping value is not set or is set to an empty string.\n */\n createGroupForUnspecifiedValues?: boolean;\n\n /** Ranges into which the grouping values are divided. Instances are grouped by value if no ranges are specified. */\n ranges?: PropertyRangeGroupSpecification[];\n}\n\n/**\n * Describes a grouping range.\n *\n * @see [Property range group specification documentation section]($docs/presentation/hierarchies/GroupingRule.md#attribute-ranges)\n * @public\n */\nexport interface PropertyRangeGroupSpecification {\n /**\n * ID of an image to use for the grouping node. Defaults to [[PropertyGroup.imageId]] specified in [[PropertyGroup]].\n *\n * @minLength 1\n * @deprecated in 5.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n imageId?: string;\n\n /**\n * Grouping node label. May be [localized]($docs/presentation/advanced/Localization.md).\n * Defaults to `{from value} - {to value}`.\n *\n * @minLength 1\n */\n label?: string;\n\n /**\n * Value that defines the range start (inclusive).\n *\n * @minLength 1\n */\n fromValue: string;\n\n /**\n * Value that defines the range end (inclusive).\n *\n * @minLength 1\n */\n toValue: string;\n}\n"]}
@@ -26,6 +26,8 @@ export interface CustomNodeSpecification extends ChildNodeSpecificationBase {
26
26
  /**
27
27
  * Specifies node's image ID. If set, the ID is assigned to [[Node.imageId]] and it's
28
28
  * up to the UI component to decide what to do with it.
29
+ *
30
+ * @deprecated in 5.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.
29
31
  */
30
32
  imageId?: string;
31
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CustomNodeSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/CustomNodeSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,uBAAwB,SAAQ,0BAA0B;IACzE,oCAAoC;IACpC,QAAQ,EAAE,YAAY,CAAC;IAEvB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"CustomNodeSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/CustomNodeSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,uBAAwB,SAAQ,0BAA0B;IACzE,oCAAoC;IACpC,QAAQ,EAAE,YAAY,CAAC;IAEvB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomNodeSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/CustomNodeSpecification.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { ChildNodeSpecificationBase } from \"./ChildNodeSpecification\";\n\n/**\n * Returns a static custom-defined node that's not based on an ECInstance.\n *\n * @see [Custom node specification reference documentation page]($docs/presentation/hierarchies/CustomNode.md)\n * @public\n */\nexport interface CustomNodeSpecification extends ChildNodeSpecificationBase {\n /** Used for serializing to JSON. */\n specType: \"CustomNode\";\n\n /** Specifies node type, which is assigned to node's key. */\n type: string;\n\n /**\n * Specifies node label. This is a string value that may be [localized]($docs/presentation/advanced/Localization.md).\n */\n label: string;\n\n /**\n * Specifies the value of [[Node.description]] property, which is a string that may\n * be [localized]($docs/presentation/advanced/Localization.md). UI component displaying the node may choose\n * whether and how to surface this information to users.\n */\n description?: string;\n\n /**\n * Specifies node's image ID. If set, the ID is assigned to [[Node.imageId]] and it's\n * up to the UI component to decide what to do with it.\n */\n imageId?: string;\n}\n"]}
1
+ {"version":3,"file":"CustomNodeSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/CustomNodeSpecification.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { ChildNodeSpecificationBase } from \"./ChildNodeSpecification\";\n\n/**\n * Returns a static custom-defined node that's not based on an ECInstance.\n *\n * @see [Custom node specification reference documentation page]($docs/presentation/hierarchies/CustomNode.md)\n * @public\n */\nexport interface CustomNodeSpecification extends ChildNodeSpecificationBase {\n /** Used for serializing to JSON. */\n specType: \"CustomNode\";\n\n /** Specifies node type, which is assigned to node's key. */\n type: string;\n\n /**\n * Specifies node label. This is a string value that may be [localized]($docs/presentation/advanced/Localization.md).\n */\n label: string;\n\n /**\n * Specifies the value of [[Node.description]] property, which is a string that may\n * be [localized]($docs/presentation/advanced/Localization.md). UI component displaying the node may choose\n * whether and how to surface this information to users.\n */\n description?: string;\n\n /**\n * Specifies node's image ID. If set, the ID is assigned to [[Node.imageId]] and it's\n * up to the UI component to decide what to do with it.\n * \n * @deprecated in 5.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n imageId?: string;\n}\n"]}
@@ -22,15 +22,6 @@ export interface InstanceNodesOfSpecificClassesSpecification extends ChildNodeSp
22
22
  * prevents specified ECClasses and subclasses from being selected by [[classes]] attribute.
23
23
  */
24
24
  excludedClasses?: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];
25
- /**
26
- * Tells whether selecting instances from ECClasses specified in [[classes]] and [[excludedClasses]]
27
- * attributes should be polymorphic or not.
28
- *
29
- * @deprecated in 3.x. The attribute was replaced by `arePolymorphic` attribute specified individually for each class definition
30
- * under [[classes]] and [[excludedClasses]] attributes. At the moment, to keep backwards compatibility, this attribute acts
31
- * as a fallback value in case the flag is not specified individually for a class definition.
32
- */
33
- arePolymorphic?: boolean;
34
25
  /**
35
26
  * Specifies an [ECExpression]($docs/presentation/hierarchies/ECExpressions.md#instance-filter) for filtering
36
27
  * instances of ECClasses specified through the [[classes]] attribute.
@@ -1 +1 @@
1
- {"version":3,"file":"InstanceNodesOfSpecificClassesSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAE1G;;;;;GAKG;AACH,MAAM,WAAW,2CAA4C,SAAQ,0BAA0B,EAAE,kCAAkC;IACjI,oCAAoC;IACpC,QAAQ,EAAE,gCAAgC,CAAC;IAE3C;;;OAGG;IACH,OAAO,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAE7E;;;OAGG;IACH,eAAe,CAAC,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAEtF;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"InstanceNodesOfSpecificClassesSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAE1G;;;;;GAKG;AACH,MAAM,WAAW,2CAA4C,SAAQ,0BAA0B,EAAE,kCAAkC;IACjI,oCAAoC;IACpC,QAAQ,EAAE,gCAAgC,CAAC;IAE3C;;;OAGG;IACH,OAAO,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAE7E;;;OAGG;IACH,eAAe,CAAC,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAEtF;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"InstanceNodesOfSpecificClassesSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { MultiSchemaClassesSpecification } from \"../ClassSpecifications\";\nimport { ChildNodeSpecificationBase, DefaultGroupingPropertiesContainer } from \"./ChildNodeSpecification\";\n\n/**\n * Returns nodes for instances of specific ECClasses.\n *\n * @see [Instance nodes of specific classes specification reference documentation page]($docs/presentation/hierarchies/InstanceNodesOfSpecificClasses.md)\n * @public\n */\nexport interface InstanceNodesOfSpecificClassesSpecification extends ChildNodeSpecificationBase, DefaultGroupingPropertiesContainer {\n /** Used for serializing to JSON. */\n specType: \"InstanceNodesOfSpecificClasses\";\n\n /**\n * Defines a set of [multi schema classes]($docs/presentation/MultiSchemaClassesSpecification.md) that\n * specify which ECClasses need to be selected to form the result.\n */\n classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\n\n /**\n * Defines a set of [multi schema classes]($docs/presentation/MultiSchemaClassesSpecification.md) that\n * prevents specified ECClasses and subclasses from being selected by [[classes]] attribute.\n */\n excludedClasses?: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\n\n /**\n * Tells whether selecting instances from ECClasses specified in [[classes]] and [[excludedClasses]]\n * attributes should be polymorphic or not.\n *\n * @deprecated in 3.x. The attribute was replaced by `arePolymorphic` attribute specified individually for each class definition\n * under [[classes]] and [[excludedClasses]] attributes. At the moment, to keep backwards compatibility, this attribute acts\n * as a fallback value in case the flag is not specified individually for a class definition.\n */\n arePolymorphic?: boolean;\n\n /**\n * Specifies an [ECExpression]($docs/presentation/hierarchies/ECExpressions.md#instance-filter) for filtering\n * instances of ECClasses specified through the [[classes]] attribute.\n */\n instanceFilter?: string;\n}\n"]}
1
+ {"version":3,"file":"InstanceNodesOfSpecificClassesSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { MultiSchemaClassesSpecification } from \"../ClassSpecifications\";\nimport { ChildNodeSpecificationBase, DefaultGroupingPropertiesContainer } from \"./ChildNodeSpecification\";\n\n/**\n * Returns nodes for instances of specific ECClasses.\n *\n * @see [Instance nodes of specific classes specification reference documentation page]($docs/presentation/hierarchies/InstanceNodesOfSpecificClasses.md)\n * @public\n */\nexport interface InstanceNodesOfSpecificClassesSpecification extends ChildNodeSpecificationBase, DefaultGroupingPropertiesContainer {\n /** Used for serializing to JSON. */\n specType: \"InstanceNodesOfSpecificClasses\";\n\n /**\n * Defines a set of [multi schema classes]($docs/presentation/MultiSchemaClassesSpecification.md) that\n * specify which ECClasses need to be selected to form the result.\n */\n classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\n\n /**\n * Defines a set of [multi schema classes]($docs/presentation/MultiSchemaClassesSpecification.md) that\n * prevents specified ECClasses and subclasses from being selected by [[classes]] attribute.\n */\n excludedClasses?: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\n\n /**\n * Specifies an [ECExpression]($docs/presentation/hierarchies/ECExpressions.md#instance-filter) for filtering\n * instances of ECClasses specified through the [[classes]] attribute.\n */\n instanceFilter?: string;\n}\n"]}
@@ -15,7 +15,7 @@ export * from "./presentation-common/RegisteredRuleset";
15
15
  export * from "./presentation-common/RulesetVariables";
16
16
  export * from "./presentation-common/RulesetsFactory";
17
17
  export * from "./presentation-common/Update";
18
- export { DEFAULT_KEYS_BATCH_SIZE, Omit, PagedResponse, PartialBy, Subtract, ValuesDictionary, getInstancesCount } from "./presentation-common/Utils";
18
+ export { DEFAULT_KEYS_BATCH_SIZE, Omit, PagedResponse, PartialBy, Subtract, ValuesDictionary, getInstancesCount, deepReplaceNullsToUndefined, } from "./presentation-common/Utils";
19
19
  export * from "./presentation-common/PresentationIpcInterface";
20
20
  export * from "./presentation-common/LocalizationHelper";
21
21
  export * from "./presentation-common/InstanceFilterDefinition";
@@ -82,15 +82,11 @@ export * from "./presentation-common/rules/hierarchy/NodeArtifactsRule";
82
82
  export * from "./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification";
83
83
  export * from "./presentation-common/rules/hierarchy/RootNodeRule";
84
84
  export * from "./presentation-common/rules/hierarchy/SubCondition";
85
- export * from "./presentation-common/rules/customization/CheckBoxRule";
86
85
  export * from "./presentation-common/rules/customization/CustomizationRule";
87
86
  export * from "./presentation-common/rules/customization/ExtendedDataRule";
88
87
  export * from "./presentation-common/rules/customization/GroupingRule";
89
- export * from "./presentation-common/rules/customization/ImageIdOverride";
90
88
  export * from "./presentation-common/rules/customization/InstanceLabelOverride";
91
- export * from "./presentation-common/rules/customization/LabelOverride";
92
89
  export * from "./presentation-common/rules/customization/SortingRule";
93
- export * from "./presentation-common/rules/customization/StyleOverride";
94
90
  export * from "./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification";
95
91
  export * from "./presentation-common/rules/content/ContentRelatedInstancesSpecification";
96
92
  export * from "./presentation-common/rules/content/ContentRule";
@@ -1 +1 @@
1
- {"version":3,"file":"presentation-common.d.ts","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrJ,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAEhE;;;;;;GAMG;AACH,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AAEzD;;;;;GAKG;AACH,cAAc,gDAAgD,CAAC;AAE/D;;;;;GAKG;AACH,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sDAAsD,CAAC;AACrE,cAAc,yCAAyC,CAAC;AAExD;;;;;GAKG;AACH,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAEhE;;;;;GAKG;AACH,cAAc,qDAAqD,CAAC;AACpE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,mFAAmF,CAAC;AAClG,cAAc,sDAAsD,CAAC;AACrE,cAAc,yDAAyD,CAAC;AACxE,cAAc,yEAAyE,CAAC;AACxF,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,wDAAwD,CAAC;AACvE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,wDAAwD,CAAC;AACvE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,iEAAiE,CAAC;AAChF,cAAc,yDAAyD,CAAC;AACxE,cAAc,uDAAuD,CAAC;AACtE,cAAc,yDAAyD,CAAC;AACxE,cAAc,oFAAoF,CAAC;AACnG,cAAc,0EAA0E,CAAC;AACzF,cAAc,iDAAiD,CAAC;AAChE,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,wEAAwE,CAAC;AACvF,cAAc,qEAAqE,CAAC;AACpF,cAAc,iFAAiF,CAAC;AAChG,cAAc,+DAA+D,CAAC;AAC9E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,4EAA4E,CAAC;AAC3F,cAAc,2EAA2E,CAAC;AAC1F,cAAc,8EAA8E,CAAC;AAC7F,cAAc,iDAAiD,CAAC;AAChE,cAAc,0DAA0D,CAAC;AACzE,cAAc,mDAAmD,CAAC;AAClE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kDAAkD,CAAC;AACjE,cAAc,uCAAuC,CAAC"}
1
+ {"version":3,"file":"presentation-common.d.ts","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,IAAI,EACJ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AACrC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAEhE;;;;;;GAMG;AACH,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AAEzD;;;;;GAKG;AACH,cAAc,gDAAgD,CAAC;AAE/D;;;;;GAKG;AACH,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sDAAsD,CAAC;AACrE,cAAc,yCAAyC,CAAC;AAExD;;;;;GAKG;AACH,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAEhE;;;;;GAKG;AACH,cAAc,qDAAqD,CAAC;AACpE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,mFAAmF,CAAC;AAClG,cAAc,sDAAsD,CAAC;AACrE,cAAc,yDAAyD,CAAC;AACxE,cAAc,yEAAyE,CAAC;AACxF,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,wDAAwD,CAAC;AACvE,cAAc,iEAAiE,CAAC;AAChF,cAAc,uDAAuD,CAAC;AACtE,cAAc,oFAAoF,CAAC;AACnG,cAAc,0EAA0E,CAAC;AACzF,cAAc,iDAAiD,CAAC;AAChE,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,wEAAwE,CAAC;AACvF,cAAc,qEAAqE,CAAC;AACpF,cAAc,iFAAiF,CAAC;AAChG,cAAc,+DAA+D,CAAC;AAC9E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,4EAA4E,CAAC;AAC3F,cAAc,2EAA2E,CAAC;AAC1F,cAAc,8EAA8E,CAAC;AAC7F,cAAc,iDAAiD,CAAC;AAChE,cAAc,0DAA0D,CAAC;AACzE,cAAc,mDAAmD,CAAC;AAClE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kDAAkD,CAAC;AACjE,cAAc,uCAAuC,CAAC"}
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.getInstancesCount = exports.DEFAULT_KEYS_BATCH_SIZE = void 0;
17
+ exports.deepReplaceNullsToUndefined = exports.getInstancesCount = exports.DEFAULT_KEYS_BATCH_SIZE = void 0;
18
18
  /*---------------------------------------------------------------------------------------------
19
19
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
20
20
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -39,6 +39,7 @@ __exportStar(require("./presentation-common/Update"), exports);
39
39
  var Utils_1 = require("./presentation-common/Utils");
40
40
  Object.defineProperty(exports, "DEFAULT_KEYS_BATCH_SIZE", { enumerable: true, get: function () { return Utils_1.DEFAULT_KEYS_BATCH_SIZE; } });
41
41
  Object.defineProperty(exports, "getInstancesCount", { enumerable: true, get: function () { return Utils_1.getInstancesCount; } });
42
+ Object.defineProperty(exports, "deepReplaceNullsToUndefined", { enumerable: true, get: function () { return Utils_1.deepReplaceNullsToUndefined; } });
42
43
  __exportStar(require("./presentation-common/PresentationIpcInterface"), exports);
43
44
  __exportStar(require("./presentation-common/LocalizationHelper"), exports);
44
45
  __exportStar(require("./presentation-common/InstanceFilterDefinition"), exports);
@@ -105,15 +106,11 @@ __exportStar(require("./presentation-common/rules/hierarchy/NodeArtifactsRule"),
105
106
  __exportStar(require("./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification"), exports);
106
107
  __exportStar(require("./presentation-common/rules/hierarchy/RootNodeRule"), exports);
107
108
  __exportStar(require("./presentation-common/rules/hierarchy/SubCondition"), exports);
108
- __exportStar(require("./presentation-common/rules/customization/CheckBoxRule"), exports);
109
109
  __exportStar(require("./presentation-common/rules/customization/CustomizationRule"), exports);
110
110
  __exportStar(require("./presentation-common/rules/customization/ExtendedDataRule"), exports);
111
111
  __exportStar(require("./presentation-common/rules/customization/GroupingRule"), exports);
112
- __exportStar(require("./presentation-common/rules/customization/ImageIdOverride"), exports);
113
112
  __exportStar(require("./presentation-common/rules/customization/InstanceLabelOverride"), exports);
114
- __exportStar(require("./presentation-common/rules/customization/LabelOverride"), exports);
115
113
  __exportStar(require("./presentation-common/rules/customization/SortingRule"), exports);
116
- __exportStar(require("./presentation-common/rules/customization/StyleOverride"), exports);
117
114
  __exportStar(require("./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification"), exports);
118
115
  __exportStar(require("./presentation-common/rules/content/ContentRelatedInstancesSpecification"), exports);
119
116
  __exportStar(require("./presentation-common/rules/content/ContentRule"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"presentation-common.js","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,mEAAiD;AACjD,oEAAkD;AAClD,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,wEAAsD;AACtD,mFAAiE;AACjE,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,+DAA6C;AAC7C,qDAAqJ;AAA5I,gHAAA,uBAAuB,OAAA;AAA8D,0GAAA,iBAAiB,OAAA;AAC/G,iFAA+D;AAC/D,2EAAyD;AACzD,iFAA+D;AAC/D,kFAAgE;AAEhE;;;;;;GAMG;AACH,iFAA+D;AAC/D,2EAAyD;AAEzD;;;;;GAKG;AACH,iFAA+D;AAE/D;;;;;GAKG;AACH,yEAAuD;AACvD,wEAAsD;AACtD,2EAAyD;AACzD,6EAA2D;AAC3D,uEAAqD;AACrD,uEAAqD;AACrD,qEAAmD;AACnD,yEAAuD;AACvD,yEAAuD;AACvD,gFAA8D;AAC9D,sEAAoD;AACpD,iFAA+D;AAC/D,uFAAqE;AACrE,0EAAwD;AAExD;;;;;GAKG;AACH,iFAA+D;AAC/D,sEAAoD;AACpD,uEAAqD;AACrD,kFAAgE;AAEhE;;;;;GAKG;AACH,sFAAoE;AACpE,+FAA6E;AAC7E,gGAA8E;AAC9E,8GAA4F;AAC5F,oHAAkG;AAClG,uFAAqE;AACrE,0FAAwE;AACxE,0GAAwF;AACxF,qFAAmE;AACnE,qFAAmE;AACnE,yFAAuE;AACvE,8FAA4E;AAC5E,6FAA2E;AAC3E,yFAAuE;AACvE,4FAA0E;AAC1E,kGAAgF;AAChF,0FAAwE;AACxE,wFAAsE;AACtE,0FAAwE;AACxE,qHAAmG;AACnG,2GAAyF;AACzF,kFAAgE;AAChE,2FAAyE;AACzE,4FAA0E;AAC1E,yGAAuF;AACvF,sGAAoF;AACpF,kHAAgG;AAChG,gGAA8E;AAC9E,8GAA4F;AAC5F,6GAA2F;AAC3F,4GAA0F;AAC1F,+GAA6F;AAC7F,kFAAgE;AAChE,2FAAyE;AACzE,oFAAkE;AAClE,4FAA0E;AAC1E,mEAAiD;AACjD,sEAAoD;AACpD,mFAAiE;AACjE,wEAAsD","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used all across Presentation packages.\n */\nexport * from \"./presentation-common/AsyncTasks\";\nexport * from \"./presentation-common/Diagnostics\";\nexport * from \"./presentation-common/EC\";\nexport * from \"./presentation-common/Error\";\nexport * from \"./presentation-common/KeySet\";\nexport * from \"./presentation-common/LabelDefinition\";\nexport * from \"./presentation-common/PresentationManagerOptions\";\nexport * from \"./presentation-common/RegisteredRuleset\";\nexport * from \"./presentation-common/RulesetVariables\";\nexport * from \"./presentation-common/RulesetsFactory\";\nexport * from \"./presentation-common/Update\";\nexport { DEFAULT_KEYS_BATCH_SIZE, Omit, PagedResponse, PartialBy, Subtract, ValuesDictionary, getInstancesCount } from \"./presentation-common/Utils\";\nexport * from \"./presentation-common/PresentationIpcInterface\";\nexport * from \"./presentation-common/LocalizationHelper\";\nexport * from \"./presentation-common/InstanceFilterDefinition\";\nexport * from \"./presentation-common/KoqPropertyValueFormatter\";\n\n/**\n * @module RPC\n *\n * @docs-group-description RPC\n * Types used for RPC communication between frontend and backend. Generally should\n * only be used internally by presentation packages.\n */\nexport * from \"./presentation-common/PresentationRpcInterface\";\nexport * from \"./presentation-common/RpcRequestsHandler\";\n\n/**\n * @module UnifiedSelection\n *\n * @docs-group-description UnifiedSelection\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\n */\nexport * from \"./presentation-common/selection/SelectionScope\";\n\n/**\n * @module Content\n *\n * @docs-group-description Content\n * Types related to presentation [content]($docs/presentation/content/index.md).\n */\nexport * from \"./presentation-common/content/Category\";\nexport * from \"./presentation-common/content/Content\";\nexport * from \"./presentation-common/content/Descriptor\";\nexport * from \"./presentation-common/content/DisplayTypes\";\nexport * from \"./presentation-common/content/Editor\";\nexport * from \"./presentation-common/content/Fields\";\nexport * from \"./presentation-common/content/Item\";\nexport * from \"./presentation-common/content/Property\";\nexport * from \"./presentation-common/content/Renderer\";\nexport * from \"./presentation-common/content/TypeDescription\";\nexport * from \"./presentation-common/content/Value\";\nexport * from \"./presentation-common/content/ContentTraverser\";\nexport * from \"./presentation-common/content/PropertyValueFormatter\";\nexport * from \"./presentation-common/ElementProperties\";\n\n/**\n * @module Hierarchies\n *\n * @docs-group-description Hierarchies\n * Types related to presentation [hierarchies]($docs/presentation/hierarchies/index.md).\n */\nexport * from \"./presentation-common/hierarchy/HierarchyLevel\";\nexport * from \"./presentation-common/hierarchy/Key\";\nexport * from \"./presentation-common/hierarchy/Node\";\nexport * from \"./presentation-common/hierarchy/NodePathElement\";\n\n/**\n * @module PresentationRules\n *\n * @docs-group-description PresentationRules\n * Types for defining the presentation ruleset.\n */\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeRule\";\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/CustomNodeSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/NavigationRule\";\nexport * from \"./presentation-common/rules/hierarchy/NodeArtifactsRule\";\nexport * from \"./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/RootNodeRule\";\nexport * from \"./presentation-common/rules/hierarchy/SubCondition\";\nexport * from \"./presentation-common/rules/customization/CheckBoxRule\";\nexport * from \"./presentation-common/rules/customization/CustomizationRule\";\nexport * from \"./presentation-common/rules/customization/ExtendedDataRule\";\nexport * from \"./presentation-common/rules/customization/GroupingRule\";\nexport * from \"./presentation-common/rules/customization/ImageIdOverride\";\nexport * from \"./presentation-common/rules/customization/InstanceLabelOverride\";\nexport * from \"./presentation-common/rules/customization/LabelOverride\";\nexport * from \"./presentation-common/rules/customization/SortingRule\";\nexport * from \"./presentation-common/rules/customization/StyleOverride\";\nexport * from \"./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification\";\nexport * from \"./presentation-common/rules/content/ContentRelatedInstancesSpecification\";\nexport * from \"./presentation-common/rules/content/ContentRule\";\nexport * from \"./presentation-common/rules/content/ContentSpecification\";\nexport * from \"./presentation-common/rules/content/PropertySpecification\";\nexport * from \"./presentation-common/rules/content/SelectedNodeInstancesSpecification\";\nexport * from \"./presentation-common/rules/content/DefaultPropertyCategoryOverride\";\nexport * from \"./presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/ContentModifier\";\nexport * from \"./presentation-common/rules/content/modifiers/PropertyCategorySpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/PropertyEditorsSpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/CustomRendererSpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/RelatedPropertiesSpecification\";\nexport * from \"./presentation-common/rules/ClassSpecifications\";\nexport * from \"./presentation-common/rules/RelatedInstanceSpecification\";\nexport * from \"./presentation-common/rules/RelationshipDirection\";\nexport * from \"./presentation-common/rules/RelationshipPathSpecification\";\nexport * from \"./presentation-common/rules/Rule\";\nexport * from \"./presentation-common/rules/Ruleset\";\nexport * from \"./presentation-common/rules/SchemasSpecification\";\nexport * from \"./presentation-common/rules/Variables\";\n"]}
1
+ {"version":3,"file":"presentation-common.js","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,mEAAiD;AACjD,oEAAkD;AAClD,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,wEAAsD;AACtD,mFAAiE;AACjE,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,+DAA6C;AAC7C,qDASqC;AARnC,gHAAA,uBAAuB,OAAA;AAMvB,0GAAA,iBAAiB,OAAA;AACjB,oHAAA,2BAA2B,OAAA;AAE7B,iFAA+D;AAC/D,2EAAyD;AACzD,iFAA+D;AAC/D,kFAAgE;AAEhE;;;;;;GAMG;AACH,iFAA+D;AAC/D,2EAAyD;AAEzD;;;;;GAKG;AACH,iFAA+D;AAE/D;;;;;GAKG;AACH,yEAAuD;AACvD,wEAAsD;AACtD,2EAAyD;AACzD,6EAA2D;AAC3D,uEAAqD;AACrD,uEAAqD;AACrD,qEAAmD;AACnD,yEAAuD;AACvD,yEAAuD;AACvD,gFAA8D;AAC9D,sEAAoD;AACpD,iFAA+D;AAC/D,uFAAqE;AACrE,0EAAwD;AAExD;;;;;GAKG;AACH,iFAA+D;AAC/D,sEAAoD;AACpD,uEAAqD;AACrD,kFAAgE;AAEhE;;;;;GAKG;AACH,sFAAoE;AACpE,+FAA6E;AAC7E,gGAA8E;AAC9E,8GAA4F;AAC5F,oHAAkG;AAClG,uFAAqE;AACrE,0FAAwE;AACxE,0GAAwF;AACxF,qFAAmE;AACnE,qFAAmE;AACnE,8FAA4E;AAC5E,6FAA2E;AAC3E,yFAAuE;AACvE,kGAAgF;AAChF,wFAAsE;AACtE,qHAAmG;AACnG,2GAAyF;AACzF,kFAAgE;AAChE,2FAAyE;AACzE,4FAA0E;AAC1E,yGAAuF;AACvF,sGAAoF;AACpF,kHAAgG;AAChG,gGAA8E;AAC9E,8GAA4F;AAC5F,6GAA2F;AAC3F,4GAA0F;AAC1F,+GAA6F;AAC7F,kFAAgE;AAChE,2FAAyE;AACzE,oFAAkE;AAClE,4FAA0E;AAC1E,mEAAiD;AACjD,sEAAoD;AACpD,mFAAiE;AACjE,wEAAsD","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used all across Presentation packages.\n */\nexport * from \"./presentation-common/AsyncTasks\";\nexport * from \"./presentation-common/Diagnostics\";\nexport * from \"./presentation-common/EC\";\nexport * from \"./presentation-common/Error\";\nexport * from \"./presentation-common/KeySet\";\nexport * from \"./presentation-common/LabelDefinition\";\nexport * from \"./presentation-common/PresentationManagerOptions\";\nexport * from \"./presentation-common/RegisteredRuleset\";\nexport * from \"./presentation-common/RulesetVariables\";\nexport * from \"./presentation-common/RulesetsFactory\";\nexport * from \"./presentation-common/Update\";\nexport {\n DEFAULT_KEYS_BATCH_SIZE,\n Omit,\n PagedResponse,\n PartialBy,\n Subtract,\n ValuesDictionary,\n getInstancesCount,\n deepReplaceNullsToUndefined,\n} from \"./presentation-common/Utils\";\nexport * from \"./presentation-common/PresentationIpcInterface\";\nexport * from \"./presentation-common/LocalizationHelper\";\nexport * from \"./presentation-common/InstanceFilterDefinition\";\nexport * from \"./presentation-common/KoqPropertyValueFormatter\";\n\n/**\n * @module RPC\n *\n * @docs-group-description RPC\n * Types used for RPC communication between frontend and backend. Generally should\n * only be used internally by presentation packages.\n */\nexport * from \"./presentation-common/PresentationRpcInterface\";\nexport * from \"./presentation-common/RpcRequestsHandler\";\n\n/**\n * @module UnifiedSelection\n *\n * @docs-group-description UnifiedSelection\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\n */\nexport * from \"./presentation-common/selection/SelectionScope\";\n\n/**\n * @module Content\n *\n * @docs-group-description Content\n * Types related to presentation [content]($docs/presentation/content/index.md).\n */\nexport * from \"./presentation-common/content/Category\";\nexport * from \"./presentation-common/content/Content\";\nexport * from \"./presentation-common/content/Descriptor\";\nexport * from \"./presentation-common/content/DisplayTypes\";\nexport * from \"./presentation-common/content/Editor\";\nexport * from \"./presentation-common/content/Fields\";\nexport * from \"./presentation-common/content/Item\";\nexport * from \"./presentation-common/content/Property\";\nexport * from \"./presentation-common/content/Renderer\";\nexport * from \"./presentation-common/content/TypeDescription\";\nexport * from \"./presentation-common/content/Value\";\nexport * from \"./presentation-common/content/ContentTraverser\";\nexport * from \"./presentation-common/content/PropertyValueFormatter\";\nexport * from \"./presentation-common/ElementProperties\";\n\n/**\n * @module Hierarchies\n *\n * @docs-group-description Hierarchies\n * Types related to presentation [hierarchies]($docs/presentation/hierarchies/index.md).\n */\nexport * from \"./presentation-common/hierarchy/HierarchyLevel\";\nexport * from \"./presentation-common/hierarchy/Key\";\nexport * from \"./presentation-common/hierarchy/Node\";\nexport * from \"./presentation-common/hierarchy/NodePathElement\";\n\n/**\n * @module PresentationRules\n *\n * @docs-group-description PresentationRules\n * Types for defining the presentation ruleset.\n */\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeRule\";\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/CustomNodeSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/NavigationRule\";\nexport * from \"./presentation-common/rules/hierarchy/NodeArtifactsRule\";\nexport * from \"./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification\";\nexport * from \"./presentation-common/rules/hierarchy/RootNodeRule\";\nexport * from \"./presentation-common/rules/hierarchy/SubCondition\";\nexport * from \"./presentation-common/rules/customization/CustomizationRule\";\nexport * from \"./presentation-common/rules/customization/ExtendedDataRule\";\nexport * from \"./presentation-common/rules/customization/GroupingRule\";\nexport * from \"./presentation-common/rules/customization/InstanceLabelOverride\";\nexport * from \"./presentation-common/rules/customization/SortingRule\";\nexport * from \"./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification\";\nexport * from \"./presentation-common/rules/content/ContentRelatedInstancesSpecification\";\nexport * from \"./presentation-common/rules/content/ContentRule\";\nexport * from \"./presentation-common/rules/content/ContentSpecification\";\nexport * from \"./presentation-common/rules/content/PropertySpecification\";\nexport * from \"./presentation-common/rules/content/SelectedNodeInstancesSpecification\";\nexport * from \"./presentation-common/rules/content/DefaultPropertyCategoryOverride\";\nexport * from \"./presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/ContentModifier\";\nexport * from \"./presentation-common/rules/content/modifiers/PropertyCategorySpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/PropertyEditorsSpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/CustomRendererSpecification\";\nexport * from \"./presentation-common/rules/content/modifiers/RelatedPropertiesSpecification\";\nexport * from \"./presentation-common/rules/ClassSpecifications\";\nexport * from \"./presentation-common/rules/RelatedInstanceSpecification\";\nexport * from \"./presentation-common/rules/RelationshipDirection\";\nexport * from \"./presentation-common/rules/RelationshipPathSpecification\";\nexport * from \"./presentation-common/rules/Rule\";\nexport * from \"./presentation-common/rules/Ruleset\";\nexport * from \"./presentation-common/rules/SchemasSpecification\";\nexport * from \"./presentation-common/rules/Variables\";\n"]}
@@ -21,9 +21,7 @@ import { Guid } from "@itwin/core-bentley";
21
21
  * @internal
22
22
  */
23
23
  export class AsyncTasksTracker {
24
- constructor() {
25
- this._asyncsInProgress = new Set();
26
- }
24
+ _asyncsInProgress = new Set();
27
25
  get pendingAsyncs() {
28
26
  return this._asyncsInProgress;
29
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AsyncTasks.js","sourceRoot":"","sources":["../../../src/presentation-common/AsyncTasks.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAc,MAAM,qBAAqB,CAAC;AAEvD;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,iBAAiB;IAA9B;QACU,sBAAiB,GAAG,IAAI,GAAG,EAAc,CAAC;IAWpD,CAAC;IAVC,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IACM,cAAc;QACnB,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAC9B,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC/B,OAAO;YACL,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC;SAC1D,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Core\n */\n\nimport { Guid, GuidString } from \"@itwin/core-bentley\";\n\n/**\n * A helper to track ongoing async tasks. Usage:\n * ```\n * { \n * using _r = tracker.trackAsyncTask();\n * await doSomethingAsync();\n * }\n * ```\n *\n * Can be used with `waitForPendingAsyncs` in test helpers to wait for all\n * async tasks to complete.\n *\n * @internal\n */\nexport class AsyncTasksTracker {\n private _asyncsInProgress = new Set<GuidString>();\n public get pendingAsyncs() {\n return this._asyncsInProgress;\n }\n public trackAsyncTask(): Disposable {\n const id = Guid.createValue();\n this._asyncsInProgress.add(id);\n return {\n [Symbol.dispose]: () => this._asyncsInProgress.delete(id),\n };\n }\n}\n"]}
1
+ {"version":3,"file":"AsyncTasks.js","sourceRoot":"","sources":["../../../src/presentation-common/AsyncTasks.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAc,MAAM,qBAAqB,CAAC;AAEvD;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,iBAAiB;IACpB,iBAAiB,GAAG,IAAI,GAAG,EAAc,CAAC;IAClD,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IACM,cAAc;QACnB,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAC9B,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC/B,OAAO;YACL,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC;SAC1D,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Core\n */\n\nimport { Guid, GuidString } from \"@itwin/core-bentley\";\n\n/**\n * A helper to track ongoing async tasks. Usage:\n * ```\n * { \n * using _r = tracker.trackAsyncTask();\n * await doSomethingAsync();\n * }\n * ```\n *\n * Can be used with `waitForPendingAsyncs` in test helpers to wait for all\n * async tasks to complete.\n *\n * @internal\n */\nexport class AsyncTasksTracker {\n private _asyncsInProgress = new Set<GuidString>();\n public get pendingAsyncs() {\n return this._asyncsInProgress;\n }\n public trackAsyncTask(): Disposable {\n const id = Guid.createValue();\n this._asyncsInProgress.add(id);\n return {\n [Symbol.dispose]: () => this._asyncsInProgress.delete(id),\n };\n }\n}\n"]}