@itwin/presentation-common 5.0.0-dev.1 → 5.0.0-dev.100

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 (507) hide show
  1. package/CHANGELOG.md +84 -1
  2. package/Ruleset.schema.json +3 -258
  3. package/lib/{cjs/assets → assets}/locales/en/Presentation.json +19 -19
  4. package/lib/cjs/package.json +1 -0
  5. package/lib/cjs/presentation-common/AsyncTasks.d.ts +4 -4
  6. package/lib/cjs/presentation-common/AsyncTasks.d.ts.map +1 -1
  7. package/lib/cjs/presentation-common/AsyncTasks.js +5 -6
  8. package/lib/cjs/presentation-common/AsyncTasks.js.map +1 -1
  9. package/lib/cjs/presentation-common/CommonLoggerCategory.js.map +1 -1
  10. package/lib/cjs/presentation-common/Diagnostics.js.map +1 -1
  11. package/lib/cjs/presentation-common/EC.d.ts +37 -81
  12. package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
  13. package/lib/cjs/presentation-common/EC.js +1 -97
  14. package/lib/cjs/presentation-common/EC.js.map +1 -1
  15. package/lib/cjs/presentation-common/ElementProperties.d.ts +2 -2
  16. package/lib/cjs/presentation-common/ElementProperties.d.ts.map +1 -1
  17. package/lib/cjs/presentation-common/ElementProperties.js +22 -15
  18. package/lib/cjs/presentation-common/ElementProperties.js.map +1 -1
  19. package/lib/cjs/presentation-common/Error.d.ts +2 -0
  20. package/lib/cjs/presentation-common/Error.d.ts.map +1 -1
  21. package/lib/cjs/presentation-common/Error.js +2 -0
  22. package/lib/cjs/presentation-common/Error.js.map +1 -1
  23. package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts +1 -1
  24. package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
  25. package/lib/cjs/presentation-common/InstanceFilterDefinition.js.map +1 -1
  26. package/lib/cjs/presentation-common/KeySet.d.ts +3 -3
  27. package/lib/cjs/presentation-common/KeySet.d.ts.map +1 -1
  28. package/lib/cjs/presentation-common/KeySet.js +31 -30
  29. package/lib/cjs/presentation-common/KeySet.js.map +1 -1
  30. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js +9 -7
  31. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
  32. package/lib/cjs/presentation-common/LabelDefinition.d.ts +2 -50
  33. package/lib/cjs/presentation-common/LabelDefinition.d.ts.map +1 -1
  34. package/lib/cjs/presentation-common/LabelDefinition.js +4 -47
  35. package/lib/cjs/presentation-common/LabelDefinition.js.map +1 -1
  36. package/lib/cjs/presentation-common/LocalizationHelper.d.ts +10 -10
  37. package/lib/cjs/presentation-common/LocalizationHelper.d.ts.map +1 -1
  38. package/lib/cjs/presentation-common/LocalizationHelper.js +13 -12
  39. package/lib/cjs/presentation-common/LocalizationHelper.js.map +1 -1
  40. package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts +12 -7
  41. package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts.map +1 -1
  42. package/lib/cjs/presentation-common/PresentationIpcInterface.js +9 -1
  43. package/lib/cjs/presentation-common/PresentationIpcInterface.js.map +1 -1
  44. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts +40 -25
  45. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  46. package/lib/cjs/presentation-common/PresentationManagerOptions.js +0 -5
  47. package/lib/cjs/presentation-common/PresentationManagerOptions.js.map +1 -1
  48. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts +39 -29
  49. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  50. package/lib/cjs/presentation-common/PresentationRpcInterface.js +59 -37
  51. package/lib/cjs/presentation-common/PresentationRpcInterface.js.map +1 -1
  52. package/lib/cjs/presentation-common/RegisteredRuleset.d.ts +6 -5
  53. package/lib/cjs/presentation-common/RegisteredRuleset.d.ts.map +1 -1
  54. package/lib/cjs/presentation-common/RegisteredRuleset.js +9 -1
  55. package/lib/cjs/presentation-common/RegisteredRuleset.js.map +1 -1
  56. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts +21 -24
  57. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  58. package/lib/cjs/presentation-common/RpcRequestsHandler.js +54 -35
  59. package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
  60. package/lib/cjs/presentation-common/RulesetVariables.d.ts +1 -46
  61. package/lib/cjs/presentation-common/RulesetVariables.d.ts.map +1 -1
  62. package/lib/cjs/presentation-common/RulesetVariables.js.map +1 -1
  63. package/lib/cjs/presentation-common/RulesetsFactory.d.ts +4 -4
  64. package/lib/cjs/presentation-common/RulesetsFactory.d.ts.map +1 -1
  65. package/lib/cjs/presentation-common/RulesetsFactory.js +15 -15
  66. package/lib/cjs/presentation-common/RulesetsFactory.js.map +1 -1
  67. package/lib/cjs/presentation-common/Update.d.ts +2 -79
  68. package/lib/cjs/presentation-common/Update.d.ts.map +1 -1
  69. package/lib/cjs/presentation-common/Update.js +1 -104
  70. package/lib/cjs/presentation-common/Update.js.map +1 -1
  71. package/lib/cjs/presentation-common/Utils.d.ts +22 -1
  72. package/lib/cjs/presentation-common/Utils.d.ts.map +1 -1
  73. package/lib/cjs/presentation-common/Utils.js +59 -3
  74. package/lib/cjs/presentation-common/Utils.js.map +1 -1
  75. package/lib/cjs/presentation-common/content/Category.d.ts +1 -1
  76. package/lib/cjs/presentation-common/content/Category.d.ts.map +1 -1
  77. package/lib/cjs/presentation-common/content/Category.js.map +1 -1
  78. package/lib/cjs/presentation-common/content/Content.d.ts +2 -9
  79. package/lib/cjs/presentation-common/content/Content.d.ts.map +1 -1
  80. package/lib/cjs/presentation-common/content/Content.js +9 -14
  81. package/lib/cjs/presentation-common/content/Content.js.map +1 -1
  82. package/lib/cjs/presentation-common/content/ContentTraverser.d.ts +9 -9
  83. package/lib/cjs/presentation-common/content/ContentTraverser.d.ts.map +1 -1
  84. package/lib/cjs/presentation-common/content/ContentTraverser.js +138 -50
  85. package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
  86. package/lib/cjs/presentation-common/content/Descriptor.d.ts +7 -52
  87. package/lib/cjs/presentation-common/content/Descriptor.d.ts.map +1 -1
  88. package/lib/cjs/presentation-common/content/Descriptor.js +82 -53
  89. package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
  90. package/lib/cjs/presentation-common/content/DisplayTypes.js.map +1 -1
  91. package/lib/cjs/presentation-common/content/Editor.js.map +1 -1
  92. package/lib/cjs/presentation-common/content/Fields.d.ts +157 -33
  93. package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
  94. package/lib/cjs/presentation-common/content/Fields.js +275 -151
  95. package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
  96. package/lib/cjs/presentation-common/content/Item.d.ts +28 -33
  97. package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
  98. package/lib/cjs/presentation-common/content/Item.js +53 -68
  99. package/lib/cjs/presentation-common/content/Item.js.map +1 -1
  100. package/lib/cjs/presentation-common/content/Property.d.ts +2 -14
  101. package/lib/cjs/presentation-common/content/Property.d.ts.map +1 -1
  102. package/lib/cjs/presentation-common/content/Property.js +2 -20
  103. package/lib/cjs/presentation-common/content/Property.js.map +1 -1
  104. package/lib/cjs/presentation-common/content/PropertyValueFormatter.d.ts +6 -6
  105. package/lib/cjs/presentation-common/content/PropertyValueFormatter.d.ts.map +1 -1
  106. package/lib/cjs/presentation-common/content/PropertyValueFormatter.js +43 -32
  107. package/lib/cjs/presentation-common/content/PropertyValueFormatter.js.map +1 -1
  108. package/lib/cjs/presentation-common/content/Renderer.js.map +1 -1
  109. package/lib/cjs/presentation-common/content/TypeDescription.js.map +1 -1
  110. package/lib/cjs/presentation-common/content/Value.d.ts +8 -110
  111. package/lib/cjs/presentation-common/content/Value.d.ts.map +1 -1
  112. package/lib/cjs/presentation-common/content/Value.js +1 -215
  113. package/lib/cjs/presentation-common/content/Value.js.map +1 -1
  114. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts +1 -22
  115. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
  116. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js +0 -23
  117. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  118. package/lib/cjs/presentation-common/hierarchy/Key.d.ts +1 -84
  119. package/lib/cjs/presentation-common/hierarchy/Key.d.ts.map +1 -1
  120. package/lib/cjs/presentation-common/hierarchy/Key.js +8 -26
  121. package/lib/cjs/presentation-common/hierarchy/Key.js.map +1 -1
  122. package/lib/cjs/presentation-common/hierarchy/Node.d.ts +4 -107
  123. package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
  124. package/lib/cjs/presentation-common/hierarchy/Node.js +0 -99
  125. package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
  126. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts +1 -67
  127. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  128. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js +0 -117
  129. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  130. package/lib/cjs/presentation-common/rules/ClassSpecifications.js.map +1 -1
  131. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts +2 -2
  132. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts.map +1 -1
  133. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
  134. package/lib/cjs/presentation-common/rules/RelationshipDirection.js.map +1 -1
  135. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts +2 -2
  136. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
  137. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  138. package/lib/cjs/presentation-common/rules/Rule.d.ts +6 -20
  139. package/lib/cjs/presentation-common/rules/Rule.d.ts.map +1 -1
  140. package/lib/cjs/presentation-common/rules/Rule.js.map +1 -1
  141. package/lib/cjs/presentation-common/rules/Ruleset.d.ts +3 -3
  142. package/lib/cjs/presentation-common/rules/Ruleset.d.ts.map +1 -1
  143. package/lib/cjs/presentation-common/rules/Ruleset.js.map +1 -1
  144. package/lib/cjs/presentation-common/rules/SchemasSpecification.js.map +1 -1
  145. package/lib/cjs/presentation-common/rules/Variables.js.map +1 -1
  146. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +2 -2
  147. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
  148. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  149. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +2 -2
  150. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts.map +1 -1
  151. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  152. package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts +2 -2
  153. package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts.map +1 -1
  154. package/lib/cjs/presentation-common/rules/content/ContentRule.js.map +1 -1
  155. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +5 -12
  156. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  157. package/lib/cjs/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  158. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +2 -2
  159. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts.map +1 -1
  160. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  161. package/lib/cjs/presentation-common/rules/content/PropertySpecification.d.ts +3 -3
  162. package/lib/cjs/presentation-common/rules/content/PropertySpecification.d.ts.map +1 -1
  163. package/lib/cjs/presentation-common/rules/content/PropertySpecification.js.map +1 -1
  164. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +1 -1
  165. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts.map +1 -1
  166. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  167. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts +3 -3
  168. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts.map +1 -1
  169. package/lib/cjs/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js.map +1 -1
  170. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts +6 -6
  171. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
  172. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  173. package/lib/cjs/presentation-common/rules/content/modifiers/CustomRendererSpecification.js.map +1 -1
  174. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +1 -1
  175. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts.map +1 -1
  176. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
  177. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
  178. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +2 -2
  179. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
  180. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  181. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts +6 -10
  182. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  183. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  184. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts +1 -1
  185. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts.map +1 -1
  186. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  187. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +4 -30
  188. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  189. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js +1 -15
  190. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  191. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts +3 -3
  192. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  193. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  194. package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts +2 -2
  195. package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
  196. package/lib/cjs/presentation-common/rules/customization/SortingRule.js.map +1 -1
  197. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +1 -1
  198. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts.map +1 -1
  199. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  200. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +6 -6
  201. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  202. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  203. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +3 -1
  204. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  205. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  206. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +2 -2
  207. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts.map +1 -1
  208. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  209. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +2 -11
  210. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  211. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  212. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.d.ts +6 -6
  213. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.d.ts.map +1 -1
  214. package/lib/cjs/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
  215. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +1 -1
  216. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts.map +1 -1
  217. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  218. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +2 -2
  219. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts.map +1 -1
  220. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  221. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts +1 -1
  222. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts.map +1 -1
  223. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  224. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts +2 -2
  225. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts.map +1 -1
  226. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  227. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts +3 -0
  228. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts.map +1 -1
  229. package/lib/cjs/presentation-common/selection/SelectionScope.js +1 -0
  230. package/lib/cjs/presentation-common/selection/SelectionScope.js.map +1 -1
  231. package/lib/cjs/presentation-common-internal.d.ts +10 -0
  232. package/lib/cjs/presentation-common-internal.d.ts.map +1 -0
  233. package/lib/cjs/presentation-common-internal.js +32 -0
  234. package/lib/cjs/presentation-common-internal.js.map +1 -0
  235. package/lib/cjs/presentation-common.d.ts +68 -77
  236. package/lib/cjs/presentation-common.d.ts.map +1 -1
  237. package/lib/cjs/presentation-common.js +110 -89
  238. package/lib/cjs/presentation-common.js.map +1 -1
  239. package/lib/esm/presentation-common/AsyncTasks.d.ts +4 -4
  240. package/lib/esm/presentation-common/AsyncTasks.d.ts.map +1 -1
  241. package/lib/esm/presentation-common/AsyncTasks.js +5 -6
  242. package/lib/esm/presentation-common/AsyncTasks.js.map +1 -1
  243. package/lib/esm/presentation-common/CommonLoggerCategory.js.map +1 -1
  244. package/lib/esm/presentation-common/Diagnostics.js.map +1 -1
  245. package/lib/esm/presentation-common/EC.d.ts +37 -81
  246. package/lib/esm/presentation-common/EC.d.ts.map +1 -1
  247. package/lib/esm/presentation-common/EC.js +0 -96
  248. package/lib/esm/presentation-common/EC.js.map +1 -1
  249. package/lib/esm/presentation-common/ElementProperties.d.ts +2 -2
  250. package/lib/esm/presentation-common/ElementProperties.d.ts.map +1 -1
  251. package/lib/esm/presentation-common/ElementProperties.js +18 -11
  252. package/lib/esm/presentation-common/ElementProperties.js.map +1 -1
  253. package/lib/esm/presentation-common/Error.d.ts +2 -0
  254. package/lib/esm/presentation-common/Error.d.ts.map +1 -1
  255. package/lib/esm/presentation-common/Error.js +2 -0
  256. package/lib/esm/presentation-common/Error.js.map +1 -1
  257. package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts +1 -1
  258. package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
  259. package/lib/esm/presentation-common/InstanceFilterDefinition.js.map +1 -1
  260. package/lib/esm/presentation-common/KeySet.d.ts +3 -3
  261. package/lib/esm/presentation-common/KeySet.d.ts.map +1 -1
  262. package/lib/esm/presentation-common/KeySet.js +21 -20
  263. package/lib/esm/presentation-common/KeySet.js.map +1 -1
  264. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js +10 -8
  265. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
  266. package/lib/esm/presentation-common/LabelDefinition.d.ts +2 -50
  267. package/lib/esm/presentation-common/LabelDefinition.d.ts.map +1 -1
  268. package/lib/esm/presentation-common/LabelDefinition.js +3 -46
  269. package/lib/esm/presentation-common/LabelDefinition.js.map +1 -1
  270. package/lib/esm/presentation-common/LocalizationHelper.d.ts +10 -10
  271. package/lib/esm/presentation-common/LocalizationHelper.d.ts.map +1 -1
  272. package/lib/esm/presentation-common/LocalizationHelper.js +6 -5
  273. package/lib/esm/presentation-common/LocalizationHelper.js.map +1 -1
  274. package/lib/esm/presentation-common/PresentationIpcInterface.d.ts +12 -7
  275. package/lib/esm/presentation-common/PresentationIpcInterface.d.ts.map +1 -1
  276. package/lib/esm/presentation-common/PresentationIpcInterface.js +8 -0
  277. package/lib/esm/presentation-common/PresentationIpcInterface.js.map +1 -1
  278. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts +40 -25
  279. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  280. package/lib/esm/presentation-common/PresentationManagerOptions.js +0 -4
  281. package/lib/esm/presentation-common/PresentationManagerOptions.js.map +1 -1
  282. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts +39 -29
  283. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  284. package/lib/esm/presentation-common/PresentationRpcInterface.js +60 -37
  285. package/lib/esm/presentation-common/PresentationRpcInterface.js.map +1 -1
  286. package/lib/esm/presentation-common/RegisteredRuleset.d.ts +6 -5
  287. package/lib/esm/presentation-common/RegisteredRuleset.d.ts.map +1 -1
  288. package/lib/esm/presentation-common/RegisteredRuleset.js +9 -1
  289. package/lib/esm/presentation-common/RegisteredRuleset.js.map +1 -1
  290. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts +21 -24
  291. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  292. package/lib/esm/presentation-common/RpcRequestsHandler.js +54 -35
  293. package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
  294. package/lib/esm/presentation-common/RulesetVariables.d.ts +1 -46
  295. package/lib/esm/presentation-common/RulesetVariables.d.ts.map +1 -1
  296. package/lib/esm/presentation-common/RulesetVariables.js.map +1 -1
  297. package/lib/esm/presentation-common/RulesetsFactory.d.ts +4 -4
  298. package/lib/esm/presentation-common/RulesetsFactory.d.ts.map +1 -1
  299. package/lib/esm/presentation-common/RulesetsFactory.js +6 -6
  300. package/lib/esm/presentation-common/RulesetsFactory.js.map +1 -1
  301. package/lib/esm/presentation-common/Update.d.ts +2 -79
  302. package/lib/esm/presentation-common/Update.d.ts.map +1 -1
  303. package/lib/esm/presentation-common/Update.js +0 -103
  304. package/lib/esm/presentation-common/Update.js.map +1 -1
  305. package/lib/esm/presentation-common/Utils.d.ts +22 -1
  306. package/lib/esm/presentation-common/Utils.d.ts.map +1 -1
  307. package/lib/esm/presentation-common/Utils.js +54 -1
  308. package/lib/esm/presentation-common/Utils.js.map +1 -1
  309. package/lib/esm/presentation-common/content/Category.d.ts +1 -1
  310. package/lib/esm/presentation-common/content/Category.d.ts.map +1 -1
  311. package/lib/esm/presentation-common/content/Category.js.map +1 -1
  312. package/lib/esm/presentation-common/content/Content.d.ts +2 -9
  313. package/lib/esm/presentation-common/content/Content.d.ts.map +1 -1
  314. package/lib/esm/presentation-common/content/Content.js +7 -12
  315. package/lib/esm/presentation-common/content/Content.js.map +1 -1
  316. package/lib/esm/presentation-common/content/ContentTraverser.d.ts +9 -9
  317. package/lib/esm/presentation-common/content/ContentTraverser.d.ts.map +1 -1
  318. package/lib/esm/presentation-common/content/ContentTraverser.js +123 -35
  319. package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
  320. package/lib/esm/presentation-common/content/Descriptor.d.ts +7 -52
  321. package/lib/esm/presentation-common/content/Descriptor.d.ts.map +1 -1
  322. package/lib/esm/presentation-common/content/Descriptor.js +71 -42
  323. package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
  324. package/lib/esm/presentation-common/content/DisplayTypes.js.map +1 -1
  325. package/lib/esm/presentation-common/content/Editor.js.map +1 -1
  326. package/lib/esm/presentation-common/content/Fields.d.ts +157 -33
  327. package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
  328. package/lib/esm/presentation-common/content/Fields.js +268 -144
  329. package/lib/esm/presentation-common/content/Fields.js.map +1 -1
  330. package/lib/esm/presentation-common/content/Item.d.ts +28 -33
  331. package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
  332. package/lib/esm/presentation-common/content/Item.js +53 -68
  333. package/lib/esm/presentation-common/content/Item.js.map +1 -1
  334. package/lib/esm/presentation-common/content/Property.d.ts +2 -14
  335. package/lib/esm/presentation-common/content/Property.d.ts.map +1 -1
  336. package/lib/esm/presentation-common/content/Property.js +1 -19
  337. package/lib/esm/presentation-common/content/Property.js.map +1 -1
  338. package/lib/esm/presentation-common/content/PropertyValueFormatter.d.ts +6 -6
  339. package/lib/esm/presentation-common/content/PropertyValueFormatter.d.ts.map +1 -1
  340. package/lib/esm/presentation-common/content/PropertyValueFormatter.js +36 -25
  341. package/lib/esm/presentation-common/content/PropertyValueFormatter.js.map +1 -1
  342. package/lib/esm/presentation-common/content/Renderer.js.map +1 -1
  343. package/lib/esm/presentation-common/content/TypeDescription.js.map +1 -1
  344. package/lib/esm/presentation-common/content/Value.d.ts +8 -110
  345. package/lib/esm/presentation-common/content/Value.d.ts.map +1 -1
  346. package/lib/esm/presentation-common/content/Value.js +0 -214
  347. package/lib/esm/presentation-common/content/Value.js.map +1 -1
  348. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts +1 -22
  349. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
  350. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js +1 -22
  351. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  352. package/lib/esm/presentation-common/hierarchy/Key.d.ts +1 -84
  353. package/lib/esm/presentation-common/hierarchy/Key.d.ts.map +1 -1
  354. package/lib/esm/presentation-common/hierarchy/Key.js +7 -25
  355. package/lib/esm/presentation-common/hierarchy/Key.js.map +1 -1
  356. package/lib/esm/presentation-common/hierarchy/Node.d.ts +4 -107
  357. package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
  358. package/lib/esm/presentation-common/hierarchy/Node.js +1 -98
  359. package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
  360. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts +1 -67
  361. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  362. package/lib/esm/presentation-common/hierarchy/NodePathElement.js +1 -116
  363. package/lib/esm/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  364. package/lib/esm/presentation-common/rules/ClassSpecifications.js.map +1 -1
  365. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts +2 -2
  366. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts.map +1 -1
  367. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
  368. package/lib/esm/presentation-common/rules/RelationshipDirection.js.map +1 -1
  369. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts +2 -2
  370. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
  371. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  372. package/lib/esm/presentation-common/rules/Rule.d.ts +6 -20
  373. package/lib/esm/presentation-common/rules/Rule.d.ts.map +1 -1
  374. package/lib/esm/presentation-common/rules/Rule.js.map +1 -1
  375. package/lib/esm/presentation-common/rules/Ruleset.d.ts +3 -3
  376. package/lib/esm/presentation-common/rules/Ruleset.d.ts.map +1 -1
  377. package/lib/esm/presentation-common/rules/Ruleset.js.map +1 -1
  378. package/lib/esm/presentation-common/rules/SchemasSpecification.js.map +1 -1
  379. package/lib/esm/presentation-common/rules/Variables.js.map +1 -1
  380. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +2 -2
  381. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
  382. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  383. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +2 -2
  384. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts.map +1 -1
  385. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  386. package/lib/esm/presentation-common/rules/content/ContentRule.d.ts +2 -2
  387. package/lib/esm/presentation-common/rules/content/ContentRule.d.ts.map +1 -1
  388. package/lib/esm/presentation-common/rules/content/ContentRule.js.map +1 -1
  389. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +5 -12
  390. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  391. package/lib/esm/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  392. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +2 -2
  393. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts.map +1 -1
  394. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  395. package/lib/esm/presentation-common/rules/content/PropertySpecification.d.ts +3 -3
  396. package/lib/esm/presentation-common/rules/content/PropertySpecification.d.ts.map +1 -1
  397. package/lib/esm/presentation-common/rules/content/PropertySpecification.js.map +1 -1
  398. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +1 -1
  399. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts.map +1 -1
  400. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  401. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts +3 -3
  402. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.d.ts.map +1 -1
  403. package/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js.map +1 -1
  404. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts +6 -6
  405. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
  406. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  407. package/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.js.map +1 -1
  408. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts +1 -1
  409. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.d.ts.map +1 -1
  410. package/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js.map +1 -1
  411. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
  412. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +2 -2
  413. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
  414. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  415. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts +6 -10
  416. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  417. package/lib/esm/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  418. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts +1 -1
  419. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts.map +1 -1
  420. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  421. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +4 -30
  422. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  423. package/lib/esm/presentation-common/rules/customization/GroupingRule.js +0 -14
  424. package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  425. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts +3 -3
  426. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  427. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  428. package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts +2 -2
  429. package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
  430. package/lib/esm/presentation-common/rules/customization/SortingRule.js.map +1 -1
  431. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +1 -1
  432. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts.map +1 -1
  433. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  434. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +6 -6
  435. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  436. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  437. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +3 -1
  438. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  439. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  440. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +2 -2
  441. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts.map +1 -1
  442. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  443. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +2 -11
  444. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  445. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  446. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.d.ts +6 -6
  447. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.d.ts.map +1 -1
  448. package/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js.map +1 -1
  449. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +1 -1
  450. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts.map +1 -1
  451. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  452. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +2 -2
  453. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts.map +1 -1
  454. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  455. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts +1 -1
  456. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts.map +1 -1
  457. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  458. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts +2 -2
  459. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts.map +1 -1
  460. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  461. package/lib/esm/presentation-common/selection/SelectionScope.d.ts +3 -0
  462. package/lib/esm/presentation-common/selection/SelectionScope.d.ts.map +1 -1
  463. package/lib/esm/presentation-common/selection/SelectionScope.js +1 -0
  464. package/lib/esm/presentation-common/selection/SelectionScope.js.map +1 -1
  465. package/lib/esm/presentation-common-internal.d.ts +10 -0
  466. package/lib/esm/presentation-common-internal.d.ts.map +1 -0
  467. package/lib/esm/presentation-common-internal.js +16 -0
  468. package/lib/esm/presentation-common-internal.js.map +1 -0
  469. package/lib/esm/presentation-common.d.ts +68 -77
  470. package/lib/esm/presentation-common.d.ts.map +1 -1
  471. package/lib/esm/presentation-common.js +60 -89
  472. package/lib/esm/presentation-common.js.map +1 -1
  473. package/lib/public/locales/en/Presentation.json +19 -19
  474. package/package.json +48 -37
  475. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts +0 -45
  476. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts.map +0 -1
  477. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js +0 -10
  478. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js.map +0 -1
  479. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts +0 -30
  480. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts.map +0 -1
  481. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js +0 -10
  482. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js.map +0 -1
  483. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts +0 -41
  484. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts.map +0 -1
  485. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js +0 -10
  486. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js.map +0 -1
  487. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts +0 -49
  488. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts.map +0 -1
  489. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js +0 -10
  490. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js.map +0 -1
  491. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts +0 -45
  492. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts.map +0 -1
  493. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js +0 -9
  494. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js.map +0 -1
  495. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts +0 -30
  496. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts.map +0 -1
  497. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js +0 -9
  498. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js.map +0 -1
  499. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts +0 -41
  500. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts.map +0 -1
  501. package/lib/esm/presentation-common/rules/customization/LabelOverride.js +0 -9
  502. package/lib/esm/presentation-common/rules/customization/LabelOverride.js.map +0 -1
  503. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts +0 -49
  504. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts.map +0 -1
  505. package/lib/esm/presentation-common/rules/customization/StyleOverride.js +0 -9
  506. package/lib/esm/presentation-common/rules/customization/StyleOverride.js.map +0 -1
  507. /package/lib/{cjs/assets → assets}/locales/en-PSEUDO/Presentation.json +0 -0
@@ -3,15 +3,15 @@
3
3
  */
4
4
  import { BeEvent, Id64String } from "@itwin/core-bentley";
5
5
  import { UnitSystemKey } from "@itwin/core-quantity";
6
- import { Descriptor, SelectionInfo } from "./content/Descriptor";
7
- import { FieldDescriptor } from "./content/Fields";
8
- import { Item } from "./content/Item";
9
- import { InstanceKey } from "./EC";
10
- import { ElementProperties } from "./ElementProperties";
11
- import { InstanceFilterDefinition } from "./InstanceFilterDefinition";
12
- import { Ruleset } from "./rules/Ruleset";
13
- import { RulesetVariable } from "./RulesetVariables";
14
- import { SelectionScopeProps } from "./selection/SelectionScope";
6
+ import { Descriptor, SelectionInfo } from "./content/Descriptor.js";
7
+ import { FieldDescriptor } from "./content/Fields.js";
8
+ import { Item } from "./content/Item.js";
9
+ import { InstanceKey } from "./EC.js";
10
+ import { ElementProperties } from "./ElementProperties.js";
11
+ import { InstanceFilterDefinition } from "./InstanceFilterDefinition.js";
12
+ import { Ruleset } from "./rules/Ruleset.js";
13
+ import { RulesetVariable } from "./RulesetVariables.js";
14
+ import { SelectionScopeProps } from "./selection/SelectionScope.js";
15
15
  /**
16
16
  * A generic request options type used for both hierarchy and content requests.
17
17
  * @public
@@ -26,12 +26,6 @@ export interface RequestOptions<TIModel> {
26
26
  * unit is used if unit system is not specified.
27
27
  */
28
28
  unitSystem?: UnitSystemKey;
29
- /**
30
- * Expected form of response. This property is set automatically on newer frontends.
31
- * `unparsed-json` — deliver response from native addon without parsing it.
32
- * @internal
33
- */
34
- transport?: "unparsed-json";
35
29
  }
36
30
  /**
37
31
  * Options for requests that require presentation ruleset. Not
@@ -175,16 +169,10 @@ export interface SingleElementPropertiesRequestOptions<TIModel, TParsedContent =
175
169
  contentParser?: (descriptor: Descriptor, item: Item) => TParsedContent;
176
170
  }
177
171
  /**
178
- * Request type for multiple elements properties requests.
172
+ * Base request type for multiple elements properties requests.
179
173
  * @public
180
174
  */
181
- export interface MultiElementPropertiesRequestOptions<TIModel, TParsedContent = ElementProperties> extends RequestOptions<TIModel> {
182
- /**
183
- * Classes of the elements to get properties for. If [[elementClasses]] is `undefined`, all classes
184
- * are used. Classes should be specified in one of these formats: "<schema name or alias>.<class_name>" or
185
- * "<schema name or alias>:<class_name>".
186
- */
187
- elementClasses?: string[];
175
+ export interface MultiElementPropertiesBaseRequestOptions<TIModel, TParsedContent = ElementProperties> extends RequestOptions<TIModel> {
188
176
  /**
189
177
  * Content parser that creates a result item based on given content descriptor and content item. Defaults
190
178
  * to a parser that creates [[ElementProperties]] objects.
@@ -197,6 +185,33 @@ export interface MultiElementPropertiesRequestOptions<TIModel, TParsedContent =
197
185
  */
198
186
  batchSize?: number;
199
187
  }
188
+ /**
189
+ * Request type for multiple elements properties requests, where elements are specified by class.
190
+ * @public
191
+ */
192
+ export interface MultiElementPropertiesByClassRequestOptions<TIModel, TParsedContent = ElementProperties> extends MultiElementPropertiesBaseRequestOptions<TIModel, TParsedContent> {
193
+ /**
194
+ * Classes of the elements to get properties for. If [[elementClasses]] is `undefined`, all classes
195
+ * are used. Classes should be specified in one of these formats: "<schema name or alias>.<class_name>" or
196
+ * "<schema name or alias>:<class_name>".
197
+ */
198
+ elementClasses?: string[];
199
+ }
200
+ /**
201
+ * Request type for multiple elements properties requests, where elements are specified by element id.
202
+ * @public
203
+ */
204
+ export interface MultiElementPropertiesByIdsRequestOptions<TIModel, TParsedContent = ElementProperties> extends MultiElementPropertiesBaseRequestOptions<TIModel, TParsedContent> {
205
+ /**
206
+ * A list of `bis.Element` IDs to get properties for.
207
+ */
208
+ elementIds?: Id64String[];
209
+ }
210
+ /**
211
+ * Request type for multiple elements properties requests.
212
+ * @public
213
+ */
214
+ export type MultiElementPropertiesRequestOptions<TIModel, TParsedContent = ElementProperties> = MultiElementPropertiesByClassRequestOptions<TIModel, TParsedContent> | MultiElementPropertiesByIdsRequestOptions<TIModel, TParsedContent>;
200
215
  /**
201
216
  * Request type for content instance keys' requests.
202
217
  * @public
@@ -229,19 +244,19 @@ export interface DisplayLabelsRequestOptions<TIModel, TInstanceKey> extends Requ
229
244
  /**
230
245
  * Request options used for selection scope related requests
231
246
  * @public
247
+ * @deprecated in 5.0. Use `computeSelection` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
232
248
  */
233
249
  export interface SelectionScopeRequestOptions<TIModel> extends RequestOptions<TIModel> {
234
250
  }
235
251
  /**
236
252
  * Request options used for calculating selection based on given instance keys and selection scope.
237
253
  * @public
254
+ * @deprecated in 5.0. Use `computeSelection` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
238
255
  */
239
256
  export interface ComputeSelectionRequestOptions<TIModel> extends RequestOptions<TIModel> {
240
257
  elementIds: Id64String[];
241
258
  scope: SelectionScopeProps;
242
259
  }
243
- /** @internal */
244
- export declare function isComputeSelectionRequestOptions<TIModel>(options: ComputeSelectionRequestOptions<TIModel> | SelectionScopeRequestOptions<TIModel>): options is ComputeSelectionRequestOptions<TIModel>;
245
260
  /**
246
261
  * Data structure for comparing a hierarchy after ruleset or ruleset variable changes.
247
262
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"PresentationManagerOptions.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/PresentationManagerOptions.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,OAAO;IACrC,kCAAkC;IAClC,MAAM,EAAE,OAAO,CAAC;IAEhB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;IAE3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B;AAED;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe,CAAE,SAAQ,cAAc,CAAC,OAAO,CAAC;IACrH,+DAA+D;IAC/D,WAAW,EAAE,OAAO,GAAG,MAAM,CAAC;IAE9B,o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E,cAAc,CAAC,GACtH,OAAO,IAAI,qCAAqC,CAAC,OAAO,CAAC,CAE3D;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,SAAS,MAAM,IAAI,QAAQ,GAAG;IAChE,4DAA4D;IAC5D,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;CACnC,CAAC"}
1
+ {"version":3,"file":"PresentationManagerOptions.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/PresentationManagerOptions.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,OAAO;IACrC,kCAAkC;IAClC,MAAM,EAAE,OAAO,CAAC;IAEhB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe,CAAE,SAAQ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AAM,MAAM,KAAK,CAAC,QAAQ,SAAS,MAAM,IAAI,QAAQ,GAAG;IACtD,iCAAiC;IACjC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,WAAW,CAAC,QAAQ,SAAS,MAAM,IAAI,QAAQ,GAAG;IAC5D,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,uCAAuC,CAAC,OAAO,EAAE,cAAc,GAAG,GAAG,EACnF,OAAO,EAAE,qCAAqC,CAAC,OAAO,CAAC,GAAG,oCAAoC,CAAC,OAAO,EAAE,cAAc,CAAC,GACtH,OAAO,IAAI,qCAAqC,CAAC,OAAO,CAAC,CAE3D;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,SAAS,MAAM,IAAI,QAAQ,GAAG;IAChE,4DAA4D;IAC5D,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;CACnC,CAAC"}
@@ -7,12 +7,7 @@
7
7
  * @module Core
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.isComputeSelectionRequestOptions = isComputeSelectionRequestOptions;
11
10
  exports.isSingleElementPropertiesRequestOptions = isSingleElementPropertiesRequestOptions;
12
- /** @internal */
13
- function isComputeSelectionRequestOptions(options) {
14
- return !!options.elementIds;
15
- }
16
11
  /**
17
12
  * Checks if supplied request options are for single or multiple element properties.
18
13
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"PresentationManagerOptions.js","sourceRoot":"","sources":["../../../src/presentation-common/PresentationManagerOptions.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;AAqRH,4EAIC;AAoDD,0FAIC;AA7DD,gBAAgB;AAChB,SAAgB,gCAAgC,CAC9C,OAAwF;IAExF,OAAO,CAAC,CAAE,OAAmD,CAAC,UAAU,CAAC;AAC3E,CAAC;AAgDD;;;GAGG;AACH,SAAgB,uCAAuC,CACrD,OAAuH;IAEvH,OAAQ,OAA0D,CAAC,SAAS,KAAK,SAAS,CAAC;AAC7F,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n * See LICENSE.md in the project root for license terms and full copyright notice.\r\n *--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Core\r\n */\r\n\r\nimport { BeEvent, Id64String } from \"@itwin/core-bentley\";\r\nimport { UnitSystemKey } from \"@itwin/core-quantity\";\r\nimport { Descriptor, SelectionInfo } from \"./content/Descriptor\";\r\nimport { FieldDescriptor } from \"./content/Fields\";\r\nimport { Item } from \"./content/Item\";\r\nimport { InstanceKey } from \"./EC\";\r\nimport { ElementProperties } from \"./ElementProperties\";\r\nimport { InstanceFilterDefinition } from \"./InstanceFilterDefinition\";\r\nimport { Ruleset } from \"./rules/Ruleset\";\r\nimport { RulesetVariable } from \"./RulesetVariables\";\r\nimport { SelectionScopeProps } from \"./selection/SelectionScope\";\r\n\r\n/**\r\n * A generic request options type used for both hierarchy and content requests.\r\n * @public\r\n */\r\nexport interface RequestOptions<TIModel> {\r\n /** iModel to request data from */\r\n imodel: TIModel;\r\n\r\n /** Optional locale to use when formatting / localizing data */\r\n locale?: string;\r\n\r\n /**\r\n * Unit system to use when formatting property values with units. Default presentation\r\n * unit is used if unit system is not specified.\r\n */\r\n unitSystem?: UnitSystemKey;\r\n\r\n /**\r\n * Expected form of response. This property is set automatically on newer frontends.\r\n * `unparsed-json` — deliver response from native addon without parsing it.\r\n * @internal\r\n */\r\n transport?: \"unparsed-json\";\r\n}\r\n\r\n/**\r\n * Options for requests that require presentation ruleset. Not\r\n * meant to be used directly, see one of the subclasses.\r\n *\r\n * @public\r\n */\r\nexport interface RequestOptionsWithRuleset<TIModel, TRulesetVariable = RulesetVariable> extends RequestOptions<TIModel> {\r\n /** Ruleset or id of the ruleset to use when requesting data */\r\n rulesetOrId: Ruleset | string;\r\n\r\n /** Ruleset variables to use when requesting data */\r\n rulesetVariables?: TRulesetVariable[];\r\n}\r\n\r\n/**\r\n * Request type for hierarchy requests.\r\n * @public\r\n */\r\nexport interface HierarchyRequestOptions<TIModel, TNodeKey, TRulesetVariable = RulesetVariable> extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\r\n /** Key of the parent node to get children for */\r\n parentKey?: TNodeKey;\r\n\r\n /**\r\n * An instance filter that should be applied for this hierarchy level.\r\n *\r\n * **Note:** May only be used on hierarchy levels that support filtering - check [[NavNode.supportsFiltering]] before\r\n * requesting filtered children.\r\n */\r\n instanceFilter?: InstanceFilterDefinition;\r\n\r\n /**\r\n * A limit to how many instances at most should be loaded for a hierarchy level. If the limit is exceeded,\r\n * the request fails with [[PresentationError]] having [[PresentationStatus.ResultSetTooLarge]] error number.\r\n *\r\n * Specifying the limit is useful when creating unlimited size result sets is not meaningful - this allows the library\r\n * to return early as soon as the limit is reached, instead of creating a very large result that's possibly too large to\r\n * be useful to be displayed to end users.\r\n *\r\n * @see [Hierarchies' filtering and limiting]($docs/presentation/hierarchies/FilteringLimiting.md)\r\n */\r\n sizeLimit?: number;\r\n}\r\n\r\n/**\r\n * Params for hierarchy level descriptor requests.\r\n * @public\r\n */\r\nexport interface HierarchyLevelDescriptorRequestOptions<TIModel, TNodeKey, TRulesetVariable = RulesetVariable>\r\n extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\r\n /** Key of the parent node to get hierarchy level descriptor for. */\r\n parentKey?: TNodeKey;\r\n}\r\n\r\n/**\r\n * Request type of filtering hierarchies by given ECInstance paths.\r\n * @public\r\n */\r\nexport interface FilterByInstancePathsHierarchyRequestOptions<TIModel, TRulesetVariable = RulesetVariable>\r\n extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\r\n /** A list of paths from root ECInstance to target ECInstance. */\r\n instancePaths: InstanceKey[][];\r\n\r\n /**\r\n * An optional index (`0 <= markedIndex < instancePaths.length`) to mark one of the instance paths. The\r\n * path is marked using `NodePathElement.isMarked` flag in the result.\r\n */\r\n markedIndex?: number;\r\n}\r\n\r\n/**\r\n * Request type of filtering hierarchies by given text.\r\n * @public\r\n */\r\nexport interface FilterByTextHierarchyRequestOptions<TIModel, TRulesetVariable = RulesetVariable> extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\r\n /** Text to filter the hierarchy by. */\r\n filterText: string;\r\n}\r\n\r\n/**\r\n * Request type for content sources requests.\r\n * @public\r\n */\r\nexport interface ContentSourcesRequestOptions<TIModel> extends RequestOptions<TIModel> {\r\n /** Full names of classes to get content sources for. Format for a full class name: `SchemaName:ClassName`. */\r\n classes: string[];\r\n}\r\n\r\n/**\r\n * Request type for content descriptor requests.\r\n * @public\r\n */\r\nexport interface ContentDescriptorRequestOptions<TIModel, TKeySet, TRulesetVariable = RulesetVariable>\r\n extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\r\n /**\r\n * Content display type.\r\n * @see [[DefaultContentDisplayTypes]]\r\n */\r\n displayType: string;\r\n /**\r\n * Content flags used for content customization.\r\n * @see [[ContentFlags]]\r\n */\r\n contentFlags?: number;\r\n /** Input keys for getting the content */\r\n keys: TKeySet;\r\n /** Information about the selection event that was the cause of this content request */\r\n selection?: SelectionInfo;\r\n}\r\n\r\n/**\r\n * Request type for content requests.\r\n * @public\r\n */\r\nexport interface ContentRequestOptions<TIModel, TDescriptor, TKeySet, TRulesetVariable = RulesetVariable>\r\n extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\r\n /** Content descriptor for customizing the returned content */\r\n descriptor: TDescriptor;\r\n /** Input keys for getting the content */\r\n keys: TKeySet;\r\n /**\r\n * Flag that specifies whether value formatting should be omitted or not.\r\n * Content is returned without `displayValues` when this is set to `true`.\r\n */\r\n omitFormattedValues?: boolean;\r\n}\r\n\r\n/**\r\n * Request type for distinct values' requests.\r\n * @public\r\n */\r\nexport interface DistinctValuesRequestOptions<TIModel, TDescriptor, TKeySet, TRulesetVariable = RulesetVariable>\r\n extends Paged<RequestOptionsWithRuleset<TIModel, TRulesetVariable>> {\r\n /** Content descriptor for customizing the returned content */\r\n descriptor: TDescriptor;\r\n /** Input keys for getting the content */\r\n keys: TKeySet;\r\n /** Descriptor for a field distinct values are requested for */\r\n fieldDescriptor: FieldDescriptor;\r\n}\r\n\r\n/**\r\n * Request type for element properties requests\r\n * @public\r\n * @deprecated in 4.x. Use [[SingleElementPropertiesRequestOptions]] or [[MultiElementPropertiesRequestOptions]] directly.\r\n */\r\nexport type ElementPropertiesRequestOptions<TIModel, TParsedContent = ElementProperties> =\r\n | SingleElementPropertiesRequestOptions<TIModel>\r\n | MultiElementPropertiesRequestOptions<TIModel, TParsedContent>;\r\n\r\n/**\r\n * Request type for single element properties requests.\r\n * @public\r\n */\r\nexport interface SingleElementPropertiesRequestOptions<TIModel, TParsedContent = ElementProperties> extends RequestOptions<TIModel> {\r\n /** ID of the element to get properties for. */\r\n elementId: Id64String;\r\n\r\n /**\r\n * Content parser that creates a result item based on given content descriptor and content item. Defaults\r\n * to a parser that creates [[ElementProperties]] objects.\r\n */\r\n contentParser?: (descriptor: Descriptor, item: Item) => TParsedContent;\r\n}\r\n\r\n/**\r\n * Request type for multiple elements properties requests.\r\n * @public\r\n */\r\nexport interface MultiElementPropertiesRequestOptions<TIModel, TParsedContent = ElementProperties> extends RequestOptions<TIModel> {\r\n /**\r\n * Classes of the elements to get properties for. If [[elementClasses]] is `undefined`, all classes\r\n * are used. Classes should be specified in one of these formats: \"<schema name or alias>.<class_name>\" or\r\n * \"<schema name or alias>:<class_name>\".\r\n */\r\n elementClasses?: string[];\r\n\r\n /**\r\n * Content parser that creates a result item based on given content descriptor and content item. Defaults\r\n * to a parser that creates [[ElementProperties]] objects.\r\n */\r\n contentParser?: (descriptor: Descriptor, item: Item) => TParsedContent;\r\n\r\n /**\r\n * The properties of multiple elements are going to be retrieved and returned in batches. Depending on the batch\r\n * size load on CPU vs MEMORY load may vary, so changing this attribute allows to fine tune the performance.\r\n * Defaults to `1000`.\r\n */\r\n batchSize?: number;\r\n}\r\n\r\n/**\r\n * Request type for content instance keys' requests.\r\n * @public\r\n */\r\nexport interface ContentInstanceKeysRequestOptions<TIModel, TKeySet, TRulesetVariable = RulesetVariable>\r\n extends Paged<RequestOptionsWithRuleset<TIModel, TRulesetVariable>> {\r\n /**\r\n * Content display type.\r\n * @see [[DefaultContentDisplayTypes]]\r\n */\r\n displayType?: string;\r\n /** Input keys for getting the content. */\r\n keys: TKeySet;\r\n}\r\n\r\n/**\r\n * Request type for label requests\r\n * @public\r\n */\r\nexport interface DisplayLabelRequestOptions<TIModel, TInstanceKey> extends RequestOptions<TIModel> {\r\n /** Key of ECInstance to get label for */\r\n key: TInstanceKey;\r\n}\r\n\r\n/**\r\n * Request type for labels requests\r\n * @public\r\n */\r\nexport interface DisplayLabelsRequestOptions<TIModel, TInstanceKey> extends RequestOptions<TIModel> {\r\n /** Keys of ECInstances to get labels for */\r\n keys: TInstanceKey[];\r\n}\r\n\r\n/**\r\n * Request options used for selection scope related requests\r\n * @public\r\n */\r\nexport interface SelectionScopeRequestOptions<TIModel> extends RequestOptions<TIModel> {} // eslint-disable-line @typescript-eslint/no-empty-object-type\r\n\r\n/**\r\n * Request options used for calculating selection based on given instance keys and selection scope.\r\n * @public\r\n */\r\nexport interface ComputeSelectionRequestOptions<TIModel> extends RequestOptions<TIModel> {\r\n elementIds: Id64String[];\r\n scope: SelectionScopeProps;\r\n}\r\n/** @internal */\r\nexport function isComputeSelectionRequestOptions<TIModel>(\r\n options: ComputeSelectionRequestOptions<TIModel> | SelectionScopeRequestOptions<TIModel>,\r\n): options is ComputeSelectionRequestOptions<TIModel> {\r\n return !!(options as ComputeSelectionRequestOptions<TIModel>).elementIds;\r\n}\r\n\r\n/**\r\n * Data structure for comparing a hierarchy after ruleset or ruleset variable changes.\r\n * @public\r\n */\r\nexport interface HierarchyCompareOptions<TIModel, TNodeKey, TRulesetVariable = RulesetVariable> extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\r\n prev: {\r\n rulesetOrId?: Ruleset | string;\r\n rulesetVariables?: TRulesetVariable[];\r\n };\r\n expandedNodeKeys?: TNodeKey[];\r\n continuationToken?: {\r\n prevHierarchyNode: string;\r\n currHierarchyNode: string;\r\n };\r\n resultSetSize?: number;\r\n}\r\n\r\n/**\r\n * Paging options\r\n * @public\r\n */\r\nexport interface PageOptions {\r\n /** Inclusive start 0-based index of the page */\r\n start?: number;\r\n /** Maximum size of the page */\r\n size?: number;\r\n}\r\n\r\n/**\r\n * A wrapper type that injects [[PageOptions]] into supplied type\r\n * @public\r\n */\r\nexport type Paged<TOptions extends object> = TOptions & {\r\n /** Optional paging parameters */\r\n paging?: PageOptions;\r\n};\r\n\r\n/**\r\n * A wrapper type that injects priority into supplied type.\r\n * @public\r\n */\r\nexport type Prioritized<TOptions extends object> = TOptions & {\r\n /** Optional priority */\r\n priority?: number;\r\n};\r\n\r\n/**\r\n * Checks if supplied request options are for single or multiple element properties.\r\n * @internal\r\n */\r\nexport function isSingleElementPropertiesRequestOptions<TIModel, TParsedContent = any>(\r\n options: SingleElementPropertiesRequestOptions<TIModel> | MultiElementPropertiesRequestOptions<TIModel, TParsedContent>,\r\n): options is SingleElementPropertiesRequestOptions<TIModel> {\r\n return (options as SingleElementPropertiesRequestOptions<TIModel>).elementId !== undefined;\r\n}\r\n\r\n/**\r\n * A wrapper type that injects cancelEvent into supplied type.\r\n * @public\r\n */\r\nexport type WithCancelEvent<TOptions extends object> = TOptions & {\r\n /** Event which is triggered when the request is canceled */\r\n cancelEvent?: BeEvent<() => void>;\r\n};\r\n"]}
1
+ {"version":3,"file":"PresentationManagerOptions.js","sourceRoot":"","sources":["../../../src/presentation-common/PresentationManagerOptions.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;AA2VH,0FAIC;AARD;;;GAGG;AACH,SAAgB,uCAAuC,CACrD,OAAuH;IAEvH,OAAQ,OAA0D,CAAC,SAAS,KAAK,SAAS,CAAC;AAC7F,CAAC","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 { BeEvent, Id64String } from \"@itwin/core-bentley\";\nimport { UnitSystemKey } from \"@itwin/core-quantity\";\nimport { Descriptor, SelectionInfo } from \"./content/Descriptor.js\";\nimport { FieldDescriptor } from \"./content/Fields.js\";\nimport { Item } from \"./content/Item.js\";\nimport { InstanceKey } from \"./EC.js\";\nimport { ElementProperties } from \"./ElementProperties.js\";\nimport { InstanceFilterDefinition } from \"./InstanceFilterDefinition.js\";\nimport { Ruleset } from \"./rules/Ruleset.js\";\nimport { RulesetVariable } from \"./RulesetVariables.js\";\nimport { SelectionScopeProps } from \"./selection/SelectionScope.js\";\n\n/**\n * A generic request options type used for both hierarchy and content requests.\n * @public\n */\nexport interface RequestOptions<TIModel> {\n /** iModel to request data from */\n imodel: TIModel;\n\n /** Optional locale to use when formatting / localizing data */\n locale?: string;\n\n /**\n * Unit system to use when formatting property values with units. Default presentation\n * unit is used if unit system is not specified.\n */\n unitSystem?: UnitSystemKey;\n}\n\n/**\n * Options for requests that require presentation ruleset. Not\n * meant to be used directly, see one of the subclasses.\n *\n * @public\n */\nexport interface RequestOptionsWithRuleset<TIModel, TRulesetVariable = RulesetVariable> extends RequestOptions<TIModel> {\n /** Ruleset or id of the ruleset to use when requesting data */\n rulesetOrId: Ruleset | string;\n\n /** Ruleset variables to use when requesting data */\n rulesetVariables?: TRulesetVariable[];\n}\n\n/**\n * Request type for hierarchy requests.\n * @public\n */\nexport interface HierarchyRequestOptions<TIModel, TNodeKey, TRulesetVariable = RulesetVariable> extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\n /** Key of the parent node to get children for */\n parentKey?: TNodeKey;\n\n /**\n * An instance filter that should be applied for this hierarchy level.\n *\n * **Note:** May only be used on hierarchy levels that support filtering - check [[NavNode.supportsFiltering]] before\n * requesting filtered children.\n */\n instanceFilter?: InstanceFilterDefinition;\n\n /**\n * A limit to how many instances at most should be loaded for a hierarchy level. If the limit is exceeded,\n * the request fails with [[PresentationError]] having [[PresentationStatus.ResultSetTooLarge]] error number.\n *\n * Specifying the limit is useful when creating unlimited size result sets is not meaningful - this allows the library\n * to return early as soon as the limit is reached, instead of creating a very large result that's possibly too large to\n * be useful to be displayed to end users.\n *\n * @see [Hierarchies' filtering and limiting]($docs/presentation/hierarchies/FilteringLimiting.md)\n */\n sizeLimit?: number;\n}\n\n/**\n * Params for hierarchy level descriptor requests.\n * @public\n */\nexport interface HierarchyLevelDescriptorRequestOptions<TIModel, TNodeKey, TRulesetVariable = RulesetVariable>\n extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\n /** Key of the parent node to get hierarchy level descriptor for. */\n parentKey?: TNodeKey;\n}\n\n/**\n * Request type of filtering hierarchies by given ECInstance paths.\n * @public\n */\nexport interface FilterByInstancePathsHierarchyRequestOptions<TIModel, TRulesetVariable = RulesetVariable>\n extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\n /** A list of paths from root ECInstance to target ECInstance. */\n instancePaths: InstanceKey[][];\n\n /**\n * An optional index (`0 <= markedIndex < instancePaths.length`) to mark one of the instance paths. The\n * path is marked using `NodePathElement.isMarked` flag in the result.\n */\n markedIndex?: number;\n}\n\n/**\n * Request type of filtering hierarchies by given text.\n * @public\n */\nexport interface FilterByTextHierarchyRequestOptions<TIModel, TRulesetVariable = RulesetVariable> extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\n /** Text to filter the hierarchy by. */\n filterText: string;\n}\n\n/**\n * Request type for content sources requests.\n * @public\n */\nexport interface ContentSourcesRequestOptions<TIModel> extends RequestOptions<TIModel> {\n /** Full names of classes to get content sources for. Format for a full class name: `SchemaName:ClassName`. */\n classes: string[];\n}\n\n/**\n * Request type for content descriptor requests.\n * @public\n */\nexport interface ContentDescriptorRequestOptions<TIModel, TKeySet, TRulesetVariable = RulesetVariable>\n extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\n /**\n * Content display type.\n * @see [[DefaultContentDisplayTypes]]\n */\n displayType: string;\n /**\n * Content flags used for content customization.\n * @see [[ContentFlags]]\n */\n contentFlags?: number;\n /** Input keys for getting the content */\n keys: TKeySet;\n /** Information about the selection event that was the cause of this content request */\n selection?: SelectionInfo;\n}\n\n/**\n * Request type for content requests.\n * @public\n */\nexport interface ContentRequestOptions<TIModel, TDescriptor, TKeySet, TRulesetVariable = RulesetVariable>\n extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\n /** Content descriptor for customizing the returned content */\n descriptor: TDescriptor;\n /** Input keys for getting the content */\n keys: TKeySet;\n /**\n * Flag that specifies whether value formatting should be omitted or not.\n * Content is returned without `displayValues` when this is set to `true`.\n */\n omitFormattedValues?: boolean;\n}\n\n/**\n * Request type for distinct values' requests.\n * @public\n */\nexport interface DistinctValuesRequestOptions<TIModel, TDescriptor, TKeySet, TRulesetVariable = RulesetVariable>\n extends Paged<RequestOptionsWithRuleset<TIModel, TRulesetVariable>> {\n /** Content descriptor for customizing the returned content */\n descriptor: TDescriptor;\n /** Input keys for getting the content */\n keys: TKeySet;\n /** Descriptor for a field distinct values are requested for */\n fieldDescriptor: FieldDescriptor;\n}\n\n/**\n * Request type for element properties requests\n * @public\n * @deprecated in 4.x. Use [[SingleElementPropertiesRequestOptions]] or [[MultiElementPropertiesRequestOptions]] directly.\n */\nexport type ElementPropertiesRequestOptions<TIModel, TParsedContent = ElementProperties> =\n | SingleElementPropertiesRequestOptions<TIModel>\n | MultiElementPropertiesRequestOptions<TIModel, TParsedContent>;\n\n/**\n * Request type for single element properties requests.\n * @public\n */\nexport interface SingleElementPropertiesRequestOptions<TIModel, TParsedContent = ElementProperties> extends RequestOptions<TIModel> {\n /** ID of the element to get properties for. */\n elementId: Id64String;\n\n /**\n * Content parser that creates a result item based on given content descriptor and content item. Defaults\n * to a parser that creates [[ElementProperties]] objects.\n */\n contentParser?: (descriptor: Descriptor, item: Item) => TParsedContent;\n}\n\n/**\n * Base request type for multiple elements properties requests.\n * @public\n */\nexport interface MultiElementPropertiesBaseRequestOptions<TIModel, TParsedContent = ElementProperties> extends RequestOptions<TIModel> {\n /**\n * Content parser that creates a result item based on given content descriptor and content item. Defaults\n * to a parser that creates [[ElementProperties]] objects.\n */\n contentParser?: (descriptor: Descriptor, item: Item) => TParsedContent;\n\n /**\n * The properties of multiple elements are going to be retrieved and returned in batches. Depending on the batch\n * size load on CPU vs MEMORY load may vary, so changing this attribute allows to fine tune the performance.\n * Defaults to `1000`.\n */\n batchSize?: number;\n}\n/**\n * Request type for multiple elements properties requests, where elements are specified by class.\n * @public\n */\nexport interface MultiElementPropertiesByClassRequestOptions<TIModel, TParsedContent = ElementProperties>\n extends MultiElementPropertiesBaseRequestOptions<TIModel, TParsedContent> {\n /**\n * Classes of the elements to get properties for. If [[elementClasses]] is `undefined`, all classes\n * are used. Classes should be specified in one of these formats: \"<schema name or alias>.<class_name>\" or\n * \"<schema name or alias>:<class_name>\".\n */\n elementClasses?: string[];\n}\n/**\n * Request type for multiple elements properties requests, where elements are specified by element id.\n * @public\n */\nexport interface MultiElementPropertiesByIdsRequestOptions<TIModel, TParsedContent = ElementProperties>\n extends MultiElementPropertiesBaseRequestOptions<TIModel, TParsedContent> {\n /**\n * A list of `bis.Element` IDs to get properties for.\n */\n elementIds?: Id64String[];\n}\n/**\n * Request type for multiple elements properties requests.\n * @public\n */\nexport type MultiElementPropertiesRequestOptions<TIModel, TParsedContent = ElementProperties> =\n | MultiElementPropertiesByClassRequestOptions<TIModel, TParsedContent>\n | MultiElementPropertiesByIdsRequestOptions<TIModel, TParsedContent>;\n\n/**\n * Request type for content instance keys' requests.\n * @public\n */\nexport interface ContentInstanceKeysRequestOptions<TIModel, TKeySet, TRulesetVariable = RulesetVariable>\n extends Paged<RequestOptionsWithRuleset<TIModel, TRulesetVariable>> {\n /**\n * Content display type.\n * @see [[DefaultContentDisplayTypes]]\n */\n displayType?: string;\n /** Input keys for getting the content. */\n keys: TKeySet;\n}\n\n/**\n * Request type for label requests\n * @public\n */\nexport interface DisplayLabelRequestOptions<TIModel, TInstanceKey> extends RequestOptions<TIModel> {\n /** Key of ECInstance to get label for */\n key: TInstanceKey;\n}\n\n/**\n * Request type for labels requests\n * @public\n */\nexport interface DisplayLabelsRequestOptions<TIModel, TInstanceKey> extends RequestOptions<TIModel> {\n /** Keys of ECInstances to get labels for */\n keys: TInstanceKey[];\n}\n\n/**\n * Request options used for selection scope related requests\n * @public\n * @deprecated in 5.0. Use `computeSelection` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport interface SelectionScopeRequestOptions<TIModel> extends RequestOptions<TIModel> {} // eslint-disable-line @typescript-eslint/no-empty-object-type\n\n/**\n * Request options used for calculating selection based on given instance keys and selection scope.\n * @public\n * @deprecated in 5.0. Use `computeSelection` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport interface ComputeSelectionRequestOptions<TIModel> extends RequestOptions<TIModel> {\n elementIds: Id64String[];\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n scope: SelectionScopeProps;\n}\n\n/**\n * Data structure for comparing a hierarchy after ruleset or ruleset variable changes.\n * @public\n */\nexport interface HierarchyCompareOptions<TIModel, TNodeKey, TRulesetVariable = RulesetVariable> extends RequestOptionsWithRuleset<TIModel, TRulesetVariable> {\n prev: {\n rulesetOrId?: Ruleset | string;\n rulesetVariables?: TRulesetVariable[];\n };\n expandedNodeKeys?: TNodeKey[];\n continuationToken?: {\n prevHierarchyNode: string;\n currHierarchyNode: string;\n };\n resultSetSize?: number;\n}\n\n/**\n * Paging options\n * @public\n */\nexport interface PageOptions {\n /** Inclusive start 0-based index of the page */\n start?: number;\n /** Maximum size of the page */\n size?: number;\n}\n\n/**\n * A wrapper type that injects [[PageOptions]] into supplied type\n * @public\n */\nexport type Paged<TOptions extends object> = TOptions & {\n /** Optional paging parameters */\n paging?: PageOptions;\n};\n\n/**\n * A wrapper type that injects priority into supplied type.\n * @public\n */\nexport type Prioritized<TOptions extends object> = TOptions & {\n /** Optional priority */\n priority?: number;\n};\n\n/**\n * Checks if supplied request options are for single or multiple element properties.\n * @internal\n */\nexport function isSingleElementPropertiesRequestOptions<TIModel, TParsedContent = any>(\n options: SingleElementPropertiesRequestOptions<TIModel> | MultiElementPropertiesRequestOptions<TIModel, TParsedContent>,\n): options is SingleElementPropertiesRequestOptions<TIModel> {\n return (options as SingleElementPropertiesRequestOptions<TIModel>).elementId !== undefined;\n}\n\n/**\n * A wrapper type that injects cancelEvent into supplied type.\n * @public\n */\nexport type WithCancelEvent<TOptions extends object> = TOptions & {\n /** Event which is triggered when the request is canceled */\n cancelEvent?: BeEvent<() => void>;\n};\n"]}
@@ -3,22 +3,22 @@
3
3
  */
4
4
  import { Id64String } from "@itwin/core-bentley";
5
5
  import { IModelRpcProps, RpcInterface } from "@itwin/core-common";
6
- import { DescriptorJSON, DescriptorOverrides, SelectClassInfoJSON } from "./content/Descriptor";
7
- import { ItemJSON } from "./content/Item";
8
- import { DisplayValueGroupJSON } from "./content/Value";
9
- import { ClientDiagnostics, ClientDiagnosticsOptions } from "./Diagnostics";
10
- import { CompressedClassInfoJSON, InstanceKey } from "./EC";
11
- import { ElementProperties } from "./ElementProperties";
12
- import { PresentationStatus } from "./Error";
13
- import { NodeKey } from "./hierarchy/Key";
14
- import { NodeJSON } from "./hierarchy/Node";
15
- import { NodePathElementJSON } from "./hierarchy/NodePathElement";
16
- import { KeySetJSON } from "./KeySet";
17
- import { LabelDefinition } from "./LabelDefinition";
18
- import { ComputeSelectionRequestOptions, ContentDescriptorRequestOptions, ContentInstanceKeysRequestOptions, ContentRequestOptions, ContentSourcesRequestOptions, DisplayLabelRequestOptions, DisplayLabelsRequestOptions, DistinctValuesRequestOptions, FilterByInstancePathsHierarchyRequestOptions, FilterByTextHierarchyRequestOptions, HierarchyLevelDescriptorRequestOptions, HierarchyRequestOptions, Paged, SelectionScopeRequestOptions, SingleElementPropertiesRequestOptions } from "./PresentationManagerOptions";
19
- import { RulesetVariableJSON } from "./RulesetVariables";
20
- import { SelectionScope } from "./selection/SelectionScope";
21
- import { Omit, PagedResponse } from "./Utils";
6
+ import { DescriptorJSON, DescriptorOverrides, SelectClassInfoJSON } from "./content/Descriptor.js";
7
+ import { ItemJSON } from "./content/Item.js";
8
+ import { DisplayValueGroup } from "./content/Value.js";
9
+ import { ClientDiagnostics, ClientDiagnosticsOptions } from "./Diagnostics.js";
10
+ import { CompressedClassInfoJSON, InstanceKey } from "./EC.js";
11
+ import { ElementProperties } from "./ElementProperties.js";
12
+ import { PresentationStatus } from "./Error.js";
13
+ import { NodeKey } from "./hierarchy/Key.js";
14
+ import { Node } from "./hierarchy/Node.js";
15
+ import { NodePathElement } from "./hierarchy/NodePathElement.js";
16
+ import { KeySetJSON } from "./KeySet.js";
17
+ import { LabelDefinition } from "./LabelDefinition.js";
18
+ import { ComputeSelectionRequestOptions, ContentDescriptorRequestOptions, ContentInstanceKeysRequestOptions, ContentRequestOptions, ContentSourcesRequestOptions, DisplayLabelRequestOptions, DisplayLabelsRequestOptions, DistinctValuesRequestOptions, FilterByInstancePathsHierarchyRequestOptions, FilterByTextHierarchyRequestOptions, HierarchyLevelDescriptorRequestOptions, HierarchyRequestOptions, Paged, SelectionScopeRequestOptions, SingleElementPropertiesRequestOptions } from "./PresentationManagerOptions.js";
19
+ import { RulesetVariableJSON } from "./RulesetVariables.js";
20
+ import { SelectionScope } from "./selection/SelectionScope.js";
21
+ import { Omit, PagedResponse } from "./Utils.js";
22
22
  /**
23
23
  * Base options for all presentation RPC requests.
24
24
  * @public
@@ -128,11 +128,13 @@ export type DisplayLabelsRpcRequestOptions = PresentationRpcRequestOptions<Displ
128
128
  /**
129
129
  * Data structure for selection scope request options.
130
130
  * @public
131
+ * @deprecated in 5.0. Use `computeSelection` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
131
132
  */
132
133
  export type SelectionScopeRpcRequestOptions = PresentationRpcRequestOptions<SelectionScopeRequestOptions<never>>;
133
134
  /**
134
135
  * Request options data structure for computing selection based on given selection scope and element IDs.
135
136
  * @public
137
+ * @deprecated in 5.0. Use `computeSelection` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
136
138
  */
137
139
  export type ComputeSelectionRpcRequestOptions = PresentationRpcRequestOptions<ComputeSelectionRequestOptions<never>>;
138
140
  /**
@@ -144,37 +146,45 @@ export declare class PresentationRpcInterface extends RpcInterface {
144
146
  static readonly interfaceName = "PresentationRpcInterface";
145
147
  /** The semantic version of the interface. */
146
148
  static interfaceVersion: string;
149
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
147
150
  getNodesCount(_token: IModelRpcProps, _options: HierarchyRpcRequestOptions): PresentationRpcResponse<number>;
148
- getPagedNodes(_token: IModelRpcProps, _options: Paged<HierarchyRpcRequestOptions>): PresentationRpcResponse<PagedResponse<NodeJSON>>;
151
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
152
+ getPagedNodes(_token: IModelRpcProps, _options: Paged<HierarchyRpcRequestOptions>): PresentationRpcResponse<PagedResponse<Node>>;
153
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
149
154
  getNodesDescriptor(_token: IModelRpcProps, _options: HierarchyLevelDescriptorRpcRequestOptions): PresentationRpcResponse<string | DescriptorJSON | undefined>;
150
- getNodePaths(_token: IModelRpcProps, _options: FilterByInstancePathsHierarchyRpcRequestOptions): PresentationRpcResponse<NodePathElementJSON[]>;
151
- getFilteredNodePaths(_token: IModelRpcProps, _options: FilterByTextHierarchyRpcRequestOptions): PresentationRpcResponse<NodePathElementJSON[]>;
155
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
156
+ getNodePaths(_token: IModelRpcProps, _options: FilterByInstancePathsHierarchyRpcRequestOptions): PresentationRpcResponse<NodePathElement[]>;
157
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
158
+ getFilteredNodePaths(_token: IModelRpcProps, _options: FilterByTextHierarchyRpcRequestOptions): PresentationRpcResponse<NodePathElement[]>;
159
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
152
160
  getContentSources(_token: IModelRpcProps, _options: ContentSourcesRpcRequestOptions): PresentationRpcResponse<ContentSourcesRpcResult>;
161
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
153
162
  getContentDescriptor(_token: IModelRpcProps, _options: ContentDescriptorRpcRequestOptions): PresentationRpcResponse<DescriptorJSON | undefined>;
163
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
154
164
  getContentSetSize(_token: IModelRpcProps, _options: ContentRpcRequestOptions): PresentationRpcResponse<number>;
165
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
155
166
  getPagedContent(_token: IModelRpcProps, _options: Paged<ContentRpcRequestOptions>): PresentationRpcResponse<{
156
167
  descriptor: DescriptorJSON;
157
168
  contentSet: PagedResponse<ItemJSON>;
158
169
  } | undefined>;
170
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
159
171
  getPagedContentSet(_token: IModelRpcProps, _options: Paged<ContentRpcRequestOptions>): PresentationRpcResponse<PagedResponse<ItemJSON>>;
172
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
160
173
  getElementProperties(_token: IModelRpcProps, _options: SingleElementPropertiesRpcRequestOptions): PresentationRpcResponse<ElementProperties | undefined>;
161
- getPagedDistinctValues(_token: IModelRpcProps, _options: DistinctValuesRpcRequestOptions): PresentationRpcResponse<PagedResponse<DisplayValueGroupJSON>>;
174
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
175
+ getPagedDistinctValues(_token: IModelRpcProps, _options: DistinctValuesRpcRequestOptions): PresentationRpcResponse<PagedResponse<DisplayValueGroup>>;
176
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
162
177
  getContentInstanceKeys(_token: IModelRpcProps, _options: ContentInstanceKeysRpcRequestOptions): PresentationRpcResponse<{
163
178
  total: number;
164
179
  items: KeySetJSON;
165
180
  }>;
181
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
166
182
  getDisplayLabelDefinition(_token: IModelRpcProps, _options: DisplayLabelRpcRequestOptions): PresentationRpcResponse<LabelDefinition>;
183
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
167
184
  getPagedDisplayLabelDefinitions(_token: IModelRpcProps, _options: DisplayLabelsRpcRequestOptions): PresentationRpcResponse<PagedResponse<LabelDefinition>>;
185
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
168
186
  getSelectionScopes(_token: IModelRpcProps, _options: SelectionScopeRpcRequestOptions): PresentationRpcResponse<SelectionScope[]>;
169
- /** @deprecated in 3.x. Use the override with [[ComputeSelectionRpcRequestOptions]]. */
170
- computeSelection(_token: IModelRpcProps, _options: SelectionScopeRpcRequestOptions, _ids: Id64String[], _scopeId: string): PresentationRpcResponse<KeySetJSON>;
187
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
171
188
  computeSelection(_token: IModelRpcProps, _options: ComputeSelectionRpcRequestOptions): PresentationRpcResponse<KeySetJSON>;
172
189
  }
173
- /** @internal */
174
- export declare enum PresentationIpcEvents {
175
- /**
176
- * ID of an event that's emitted when backend detects changes in presented data.
177
- */
178
- Update = "presentation.onUpdate"
179
- }
180
190
  //# sourceMappingURL=PresentationRpcInterface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PresentationRpcInterface.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/PresentationRpcInterface.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EACL,8BAA8B,EAC9B,+BAA+B,EAC/B,iCAAiC,EACjC,qBAAqB,EACrB,4BAA4B,EAC5B,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,4CAA4C,EAC5C,mCAAmC,EACnC,sCAAsC,EACtC,uBAAuB,EACvB,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I7I,uFAAuF;IAC1E,gBAAgB,CAC3B,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,+BAA+B,EACzC,IAAI,EAAE,UAAU,EAAE,EAClB,QAAQ,EAAE,MAAM,GACf,uBAAuB,CAAC,UAAU,CAAC;IACzB,gBAAgB,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,iCAAiC,GAAG,uBAAuB,CAAC,UAAU,CAAC;CASxI;AAED,gBAAgB;AAChB,oBAAY,qBAAqB;IAC/B;;OAEG;IACH,MAAM,0BAA0B;CACjC"}
1
+ {"version":3,"file":"PresentationRpcInterface.d.ts","sourceRoot":"","sources":["../../../src/presentation-common/PresentationRpcInterface.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAgB,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAA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oC,GAC7C,uBAAuB,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,UAAU,CAAA;KAAE,CAAC;IAIhE,4HAA4H;IAC/G,yBAAyB,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,6BAA6B,GAAG,uBAAuB,CAAC,eAAe,CAAC;IAIjJ,4HAA4H;IAC/G,+BAA+B,CAC1C,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,8BAA8B,GACvC,uBAAuB,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IAI1D,4HAA4H;IAE/G,kBAAkB,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,+BAA+B,GAAG,uBAAuB,CAAC,cAAc,EAAE,CAAC;IAI7I,4HAA4H;IAE/G,gBAAgB,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,iCAAiC,GAAG,uBAAuB,CAAC,UAAU,CAAC;CAGxI"}
@@ -6,92 +6,114 @@
6
6
  /** @packageDocumentation
7
7
  * @module RPC
8
8
  */
9
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
10
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
11
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
12
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
13
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
14
+ };
9
15
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.PresentationIpcEvents = exports.PresentationRpcInterface = void 0;
16
+ exports.PresentationRpcInterface = void 0;
11
17
  const core_common_1 = require("@itwin/core-common");
12
- const Error_1 = require("./Error");
18
+ const Utils_js_1 = require("./Utils.js");
13
19
  /**
14
20
  * Interface used for communication between Presentation backend and frontend.
15
21
  * @public
16
22
  */
17
- class PresentationRpcInterface extends core_common_1.RpcInterface {
23
+ let PresentationRpcInterface = class PresentationRpcInterface extends core_common_1.RpcInterface {
24
+ /** The immutable name of the interface. */
25
+ static interfaceName = "PresentationRpcInterface";
26
+ /** The semantic version of the interface. */
27
+ static interfaceVersion = "5.0.0";
18
28
  /*===========================================================================================
19
29
  NOTE: Any add/remove/change to the methods below requires an update of the interface version.
20
30
  NOTE: Please consult the README in core/common/src/rpc for the semantic versioning rules.
21
31
  ===========================================================================================*/
32
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
22
33
  async getNodesCount(_token, _options) {
23
34
  return this.forward(arguments);
24
35
  }
25
- // eslint-disable-next-line @typescript-eslint/no-deprecated
36
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
26
37
  async getPagedNodes(_token, _options) {
27
- return this.forward(arguments);
38
+ return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
28
39
  }
40
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
29
41
  async getNodesDescriptor(_token, _options) {
30
- return this.forward(arguments);
42
+ return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
31
43
  }
44
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
32
45
  // TODO: add paged version of this (#387280)
33
- // eslint-disable-next-line @typescript-eslint/no-deprecated
34
46
  async getNodePaths(_token, _options) {
35
- return this.forward(arguments);
47
+ return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
36
48
  }
49
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
37
50
  // TODO: add paged version of this (#387280)
38
- // eslint-disable-next-line @typescript-eslint/no-deprecated
39
51
  async getFilteredNodePaths(_token, _options) {
40
- return this.forward(arguments);
52
+ return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
41
53
  }
54
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
42
55
  async getContentSources(_token, _options) {
43
- return this.forward(arguments);
56
+ return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
44
57
  }
58
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
45
59
  async getContentDescriptor(_token, _options) {
46
- arguments[1] = { ...arguments[1], transport: "unparsed-json" };
47
60
  const response = await this.forward(arguments);
48
- if (response.statusCode === Error_1.PresentationStatus.Success && typeof response.result === "string") {
49
- response.result = JSON.parse(response.result);
50
- }
51
- return response;
61
+ return {
62
+ ...response,
63
+ ...(response.result ? { result: JSON.parse(response.result) } : {}),
64
+ };
52
65
  }
66
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
53
67
  async getContentSetSize(_token, _options) {
54
68
  return this.forward(arguments);
55
69
  }
70
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
56
71
  async getPagedContent(_token, _options) {
57
- return this.forward(arguments);
58
- }
72
+ const rpcResponse = await this.forward(arguments);
73
+ return {
74
+ ...rpcResponse,
75
+ ...(rpcResponse.result
76
+ ? /* c8 ignore next */ { result: { ...rpcResponse.result, contentSet: (0, Utils_js_1.deepReplaceNullsToUndefined)(rpcResponse.result.contentSet) } }
77
+ : {}),
78
+ };
79
+ }
80
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
59
81
  async getPagedContentSet(_token, _options) {
60
- return this.forward(arguments);
82
+ return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
61
83
  }
84
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
62
85
  async getElementProperties(_token, _options) {
63
- return this.forward(arguments);
86
+ return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
64
87
  }
88
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
65
89
  async getPagedDistinctValues(_token, _options) {
66
- return this.forward(arguments);
90
+ return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
67
91
  }
92
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
68
93
  async getContentInstanceKeys(_token, _options) {
69
94
  return this.forward(arguments);
70
95
  }
96
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
71
97
  async getDisplayLabelDefinition(_token, _options) {
72
- return this.forward(arguments);
98
+ return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
73
99
  }
100
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
74
101
  async getPagedDisplayLabelDefinitions(_token, _options) {
75
- return this.forward(arguments);
102
+ return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
76
103
  }
104
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
105
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
77
106
  async getSelectionScopes(_token, _options) {
78
107
  return this.forward(arguments);
79
108
  }
80
- async computeSelection(_token, _options, _ids, _scopeId) {
109
+ /** @deprecated in 4.10. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
110
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
111
+ async computeSelection(_token, _options) {
81
112
  return this.forward(arguments);
82
113
  }
83
- }
114
+ };
84
115
  exports.PresentationRpcInterface = PresentationRpcInterface;
85
- /** The immutable name of the interface. */
86
- PresentationRpcInterface.interfaceName = "PresentationRpcInterface";
87
- /** The semantic version of the interface. */
88
- PresentationRpcInterface.interfaceVersion = "4.1.0";
89
- /** @internal */
90
- var PresentationIpcEvents;
91
- (function (PresentationIpcEvents) {
92
- /**
93
- * ID of an event that's emitted when backend detects changes in presented data.
94
- */
95
- PresentationIpcEvents["Update"] = "presentation.onUpdate";
96
- })(PresentationIpcEvents || (exports.PresentationIpcEvents = PresentationIpcEvents = {}));
116
+ exports.PresentationRpcInterface = PresentationRpcInterface = __decorate([
117
+ core_common_1.RpcOperation.setDefaultPolicy({ retryInterval: () => 0 })
118
+ ], PresentationRpcInterface);
97
119
  //# sourceMappingURL=PresentationRpcInterface.js.map