@itwin/components-react 4.0.0-dev.7 → 4.0.0-dev.9

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 (556) hide show
  1. package/CHANGELOG.md +1 -99
  2. package/lib/cjs/components-react/UiComponents.d.ts +1 -1
  3. package/lib/cjs/components-react/UiComponents.js +1 -1
  4. package/lib/cjs/components-react/UiComponents.js.map +1 -1
  5. package/lib/cjs/components-react/common/ImageRenderer.d.ts.map +1 -1
  6. package/lib/cjs/components-react/common/ImageRenderer.js +1 -0
  7. package/lib/cjs/components-react/common/ImageRenderer.js.map +1 -1
  8. package/lib/cjs/components-react/common/selection/SelectionModes.d.ts +2 -2
  9. package/lib/cjs/components-react/common/selection/SelectionModes.js +2 -2
  10. package/lib/cjs/components-react/common/selection/SelectionModes.js.map +1 -1
  11. package/lib/cjs/components-react/converters/TypeConverterManager.d.ts.map +1 -1
  12. package/lib/cjs/components-react/converters/TypeConverterManager.js +4 -3
  13. package/lib/cjs/components-react/converters/TypeConverterManager.js.map +1 -1
  14. package/lib/cjs/components-react/datepicker/DatePicker.d.ts.map +1 -1
  15. package/lib/cjs/components-react/datepicker/DatePicker.js +7 -0
  16. package/lib/cjs/components-react/datepicker/DatePicker.js.map +1 -1
  17. package/lib/cjs/components-react/datepicker/DatePicker.scss +27 -21
  18. package/lib/cjs/components-react/datepicker/DatePickerPopupButton.scss +2 -3
  19. package/lib/cjs/components-react/datepicker/TimeField.scss +8 -6
  20. package/lib/cjs/components-react/editors/BooleanEditor.d.ts +1 -0
  21. package/lib/cjs/components-react/editors/BooleanEditor.d.ts.map +1 -1
  22. package/lib/cjs/components-react/editors/BooleanEditor.js +9 -14
  23. package/lib/cjs/components-react/editors/BooleanEditor.js.map +1 -1
  24. package/lib/cjs/components-react/editors/BooleanEditor.scss +5 -7
  25. package/lib/cjs/components-react/editors/EditorContainer.d.ts +1 -1
  26. package/lib/cjs/components-react/editors/EditorContainer.js +1 -1
  27. package/lib/cjs/components-react/editors/EditorContainer.js.map +1 -1
  28. package/lib/cjs/components-react/editors/EnumButtonGroupEditor.scss +17 -18
  29. package/lib/cjs/components-react/editors/IconEditor.scss +3 -4
  30. package/lib/cjs/components-react/editors/ImageCheckBoxEditor.d.ts.map +1 -1
  31. package/lib/cjs/components-react/editors/ImageCheckBoxEditor.js.map +1 -1
  32. package/lib/cjs/components-react/editors/ImageCheckBoxEditor.scss +6 -5
  33. package/lib/cjs/components-react/editors/PopupButton.scss +14 -18
  34. package/lib/cjs/components-react/editors/TextareaEditor.js +1 -1
  35. package/lib/cjs/components-react/editors/TextareaEditor.js.map +1 -1
  36. package/lib/cjs/components-react/editors/ToggleEditor.d.ts.map +1 -1
  37. package/lib/cjs/components-react/editors/ToggleEditor.js +1 -9
  38. package/lib/cjs/components-react/editors/ToggleEditor.js.map +1 -1
  39. package/lib/cjs/components-react/editors/ToggleEditor.scss +4 -6
  40. package/lib/cjs/components-react/favorite/FavoritePropertiesRenderer.d.ts +25 -1
  41. package/lib/cjs/components-react/favorite/FavoritePropertiesRenderer.d.ts.map +1 -1
  42. package/lib/cjs/components-react/favorite/FavoritePropertiesRenderer.js +24 -2
  43. package/lib/cjs/components-react/favorite/FavoritePropertiesRenderer.js.map +1 -1
  44. package/lib/cjs/components-react/filter-builder/FilterBuilderRule.scss +3 -4
  45. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.js.map +1 -1
  46. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.scss +9 -6
  47. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleProperty.js.map +1 -1
  48. package/lib/cjs/components-react/filtering/ResultSelector.scss +1 -1
  49. package/lib/cjs/components-react/iconpicker/IconPickerButton.d.ts +2 -2
  50. package/lib/cjs/components-react/iconpicker/IconPickerButton.d.ts.map +1 -1
  51. package/lib/cjs/components-react/iconpicker/IconPickerButton.js +4 -4
  52. package/lib/cjs/components-react/iconpicker/IconPickerButton.js.map +1 -1
  53. package/lib/cjs/components-react/iconpicker/IconPickerButton.scss +5 -5
  54. package/lib/cjs/components-react/properties/ItemStyle.d.ts +2 -2
  55. package/lib/cjs/components-react/properties/ItemStyle.js +1 -1
  56. package/lib/cjs/components-react/properties/ItemStyle.js.map +1 -1
  57. package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.js +1 -1
  58. package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.js.map +1 -1
  59. package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.scss +2 -2
  60. package/lib/cjs/components-react/properties/renderers/PrimitivePropertyRenderer.js +1 -1
  61. package/lib/cjs/components-react/properties/renderers/PrimitivePropertyRenderer.js.map +1 -1
  62. package/lib/cjs/components-react/properties/renderers/PropertyRenderer.js +1 -1
  63. package/lib/cjs/components-react/properties/renderers/PropertyRenderer.js.map +1 -1
  64. package/lib/cjs/components-react/properties/renderers/PropertyView.scss +4 -5
  65. package/lib/cjs/components-react/properties/renderers/label/PropertyLabelRenderer.scss +6 -6
  66. package/lib/cjs/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.d.ts +2 -0
  67. package/lib/cjs/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.d.ts.map +1 -1
  68. package/lib/cjs/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.js.map +1 -1
  69. package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.d.ts +0 -1
  70. package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.d.ts.map +1 -1
  71. package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.js +0 -1
  72. package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.js.map +1 -1
  73. package/lib/cjs/components-react/propertygrid/component/PropertyCategoryBlock.d.ts +2 -0
  74. package/lib/cjs/components-react/propertygrid/component/PropertyCategoryBlock.d.ts.map +1 -1
  75. package/lib/cjs/components-react/propertygrid/component/PropertyCategoryBlock.js.map +1 -1
  76. package/lib/cjs/components-react/propertygrid/component/PropertyGrid.d.ts +0 -9
  77. package/lib/cjs/components-react/propertygrid/component/PropertyGrid.d.ts.map +1 -1
  78. package/lib/cjs/components-react/propertygrid/component/PropertyGrid.js.map +1 -1
  79. package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGrid.scss +2 -2
  80. package/lib/cjs/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts +0 -4
  81. package/lib/cjs/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts.map +1 -1
  82. package/lib/cjs/components-react/propertygrid/internal/flat-items/FlatGridItem.js.map +1 -1
  83. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.d.ts +0 -2
  84. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.d.ts.map +1 -1
  85. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.js +0 -6
  86. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.js.map +1 -1
  87. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts +0 -8
  88. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts.map +1 -1
  89. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.js.map +1 -1
  90. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.d.ts +0 -6
  91. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.d.ts.map +1 -1
  92. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.js +2 -14
  93. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.js.map +1 -1
  94. package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.js +1 -1
  95. package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.js.map +1 -1
  96. package/lib/cjs/components-react/selectable-content/SelectableContent.scss +0 -1
  97. package/lib/cjs/components-react/table/TableDataProvider.d.ts +2 -158
  98. package/lib/cjs/components-react/table/TableDataProvider.d.ts.map +1 -1
  99. package/lib/cjs/components-react/table/TableDataProvider.js +2 -17
  100. package/lib/cjs/components-react/table/TableDataProvider.js.map +1 -1
  101. package/lib/cjs/components-react/toolbar/Items.scss +12 -10
  102. package/lib/cjs/components-react/toolbar/Overflow.scss +5 -5
  103. package/lib/cjs/components-react/toolbar/OverflowPanel.scss +5 -5
  104. package/lib/cjs/components-react/toolbar/PopupItem.scss +14 -12
  105. package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.d.ts +0 -17
  106. package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  107. package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.js +3 -13
  108. package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  109. package/lib/cjs/components-react/toolbar/_variables.scss +2 -3
  110. package/lib/cjs/components-react/toolbar/groupPanel/Panel.scss +1 -1
  111. package/lib/cjs/components-react/toolbar/groupPanel/tool/Tool.scss +10 -11
  112. package/lib/cjs/components-react/tree/ImageLoader.d.ts +1 -1
  113. package/lib/cjs/components-react/tree/ImageLoader.d.ts.map +1 -1
  114. package/lib/cjs/components-react/tree/ImageLoader.js +1 -1
  115. package/lib/cjs/components-react/tree/ImageLoader.js.map +1 -1
  116. package/lib/cjs/components-react/tree/SimpleTreeDataProvider.d.ts +1 -3
  117. package/lib/cjs/components-react/tree/SimpleTreeDataProvider.d.ts.map +1 -1
  118. package/lib/cjs/components-react/tree/SimpleTreeDataProvider.js +0 -2
  119. package/lib/cjs/components-react/tree/SimpleTreeDataProvider.js.map +1 -1
  120. package/lib/cjs/components-react/tree/TreeDataProvider.d.ts +1 -22
  121. package/lib/cjs/components-react/tree/TreeDataProvider.d.ts.map +1 -1
  122. package/lib/cjs/components-react/tree/TreeDataProvider.js +1 -0
  123. package/lib/cjs/components-react/tree/TreeDataProvider.js.map +1 -1
  124. package/lib/cjs/components-react/tree/controlled/Observable.d.ts +12 -2
  125. package/lib/cjs/components-react/tree/controlled/Observable.d.ts.map +1 -1
  126. package/lib/cjs/components-react/tree/controlled/Observable.js.map +1 -1
  127. package/lib/cjs/components-react/tree/controlled/TreeHooks.d.ts.map +1 -1
  128. package/lib/cjs/components-react/tree/controlled/TreeHooks.js +2 -4
  129. package/lib/cjs/components-react/tree/controlled/TreeHooks.js.map +1 -1
  130. package/lib/cjs/components-react/tree/controlled/TreeModel.d.ts +1 -1
  131. package/lib/cjs/components-react/tree/controlled/TreeModel.js +1 -1
  132. package/lib/cjs/components-react/tree/controlled/TreeModel.js.map +1 -1
  133. package/lib/cjs/components-react/tree/controlled/TreeNodeLoader.d.ts +4 -12
  134. package/lib/cjs/components-react/tree/controlled/TreeNodeLoader.d.ts.map +1 -1
  135. package/lib/cjs/components-react/tree/controlled/TreeNodeLoader.js +0 -14
  136. package/lib/cjs/components-react/tree/controlled/TreeNodeLoader.js.map +1 -1
  137. package/lib/cjs/components-react/tree/controlled/component/ControlledTree.d.ts.map +1 -1
  138. package/lib/cjs/components-react/tree/controlled/component/ControlledTree.js +1 -2
  139. package/lib/cjs/components-react/tree/controlled/component/ControlledTree.js.map +1 -1
  140. package/lib/cjs/components-react/tree/controlled/component/NodeContent.d.ts.map +1 -1
  141. package/lib/cjs/components-react/tree/controlled/component/NodeContent.js +5 -4
  142. package/lib/cjs/components-react/tree/controlled/component/NodeContent.js.map +1 -1
  143. package/lib/cjs/components-react/tree/controlled/component/NodeContent.scss +3 -4
  144. package/lib/cjs/components-react.d.ts +5 -16
  145. package/lib/cjs/components-react.d.ts.map +1 -1
  146. package/lib/cjs/components-react.js +6 -16
  147. package/lib/cjs/components-react.js.map +1 -1
  148. package/lib/esm/components-react/UiComponents.d.ts +1 -1
  149. package/lib/esm/components-react/UiComponents.js +1 -1
  150. package/lib/esm/components-react/UiComponents.js.map +1 -1
  151. package/lib/esm/components-react/common/ImageRenderer.d.ts.map +1 -1
  152. package/lib/esm/components-react/common/ImageRenderer.js +1 -0
  153. package/lib/esm/components-react/common/ImageRenderer.js.map +1 -1
  154. package/lib/esm/components-react/common/selection/SelectionModes.d.ts +2 -2
  155. package/lib/esm/components-react/common/selection/SelectionModes.js +2 -2
  156. package/lib/esm/components-react/common/selection/SelectionModes.js.map +1 -1
  157. package/lib/esm/components-react/converters/TypeConverterManager.d.ts.map +1 -1
  158. package/lib/esm/components-react/converters/TypeConverterManager.js +4 -3
  159. package/lib/esm/components-react/converters/TypeConverterManager.js.map +1 -1
  160. package/lib/esm/components-react/datepicker/DatePicker.d.ts.map +1 -1
  161. package/lib/esm/components-react/datepicker/DatePicker.js +7 -0
  162. package/lib/esm/components-react/datepicker/DatePicker.js.map +1 -1
  163. package/lib/esm/components-react/datepicker/DatePicker.scss +27 -21
  164. package/lib/esm/components-react/datepicker/DatePickerPopupButton.scss +2 -3
  165. package/lib/esm/components-react/datepicker/TimeField.scss +8 -6
  166. package/lib/esm/components-react/editors/BooleanEditor.d.ts +1 -0
  167. package/lib/esm/components-react/editors/BooleanEditor.d.ts.map +1 -1
  168. package/lib/esm/components-react/editors/BooleanEditor.js +9 -14
  169. package/lib/esm/components-react/editors/BooleanEditor.js.map +1 -1
  170. package/lib/esm/components-react/editors/BooleanEditor.scss +5 -7
  171. package/lib/esm/components-react/editors/EditorContainer.d.ts +1 -1
  172. package/lib/esm/components-react/editors/EditorContainer.js +1 -1
  173. package/lib/esm/components-react/editors/EditorContainer.js.map +1 -1
  174. package/lib/esm/components-react/editors/EnumButtonGroupEditor.scss +17 -18
  175. package/lib/esm/components-react/editors/IconEditor.scss +3 -4
  176. package/lib/esm/components-react/editors/ImageCheckBoxEditor.d.ts.map +1 -1
  177. package/lib/esm/components-react/editors/ImageCheckBoxEditor.js.map +1 -1
  178. package/lib/esm/components-react/editors/ImageCheckBoxEditor.scss +6 -5
  179. package/lib/esm/components-react/editors/PopupButton.scss +14 -18
  180. package/lib/esm/components-react/editors/TextareaEditor.js +1 -1
  181. package/lib/esm/components-react/editors/TextareaEditor.js.map +1 -1
  182. package/lib/esm/components-react/editors/ToggleEditor.d.ts.map +1 -1
  183. package/lib/esm/components-react/editors/ToggleEditor.js +1 -9
  184. package/lib/esm/components-react/editors/ToggleEditor.js.map +1 -1
  185. package/lib/esm/components-react/editors/ToggleEditor.scss +4 -6
  186. package/lib/esm/components-react/favorite/FavoritePropertiesRenderer.d.ts +25 -1
  187. package/lib/esm/components-react/favorite/FavoritePropertiesRenderer.d.ts.map +1 -1
  188. package/lib/esm/components-react/favorite/FavoritePropertiesRenderer.js +24 -2
  189. package/lib/esm/components-react/favorite/FavoritePropertiesRenderer.js.map +1 -1
  190. package/lib/esm/components-react/filter-builder/FilterBuilderRule.scss +3 -4
  191. package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.js.map +1 -1
  192. package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.scss +9 -6
  193. package/lib/esm/components-react/filter-builder/FilterBuilderRuleProperty.js.map +1 -1
  194. package/lib/esm/components-react/filtering/ResultSelector.scss +1 -1
  195. package/lib/esm/components-react/iconpicker/IconPickerButton.d.ts +2 -2
  196. package/lib/esm/components-react/iconpicker/IconPickerButton.d.ts.map +1 -1
  197. package/lib/esm/components-react/iconpicker/IconPickerButton.js +5 -5
  198. package/lib/esm/components-react/iconpicker/IconPickerButton.js.map +1 -1
  199. package/lib/esm/components-react/iconpicker/IconPickerButton.scss +5 -5
  200. package/lib/esm/components-react/properties/ItemStyle.d.ts +2 -2
  201. package/lib/esm/components-react/properties/ItemStyle.js +1 -1
  202. package/lib/esm/components-react/properties/ItemStyle.js.map +1 -1
  203. package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.js +1 -1
  204. package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.js.map +1 -1
  205. package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.scss +2 -2
  206. package/lib/esm/components-react/properties/renderers/PrimitivePropertyRenderer.js +1 -1
  207. package/lib/esm/components-react/properties/renderers/PrimitivePropertyRenderer.js.map +1 -1
  208. package/lib/esm/components-react/properties/renderers/PropertyRenderer.js +1 -1
  209. package/lib/esm/components-react/properties/renderers/PropertyRenderer.js.map +1 -1
  210. package/lib/esm/components-react/properties/renderers/PropertyView.scss +4 -5
  211. package/lib/esm/components-react/properties/renderers/label/PropertyLabelRenderer.scss +6 -6
  212. package/lib/esm/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.d.ts +2 -0
  213. package/lib/esm/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.d.ts.map +1 -1
  214. package/lib/esm/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.js.map +1 -1
  215. package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.d.ts +0 -1
  216. package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.d.ts.map +1 -1
  217. package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.js +0 -1
  218. package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.js.map +1 -1
  219. package/lib/esm/components-react/propertygrid/component/PropertyCategoryBlock.d.ts +2 -0
  220. package/lib/esm/components-react/propertygrid/component/PropertyCategoryBlock.d.ts.map +1 -1
  221. package/lib/esm/components-react/propertygrid/component/PropertyCategoryBlock.js.map +1 -1
  222. package/lib/esm/components-react/propertygrid/component/PropertyGrid.d.ts +0 -9
  223. package/lib/esm/components-react/propertygrid/component/PropertyGrid.d.ts.map +1 -1
  224. package/lib/esm/components-react/propertygrid/component/PropertyGrid.js.map +1 -1
  225. package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGrid.scss +2 -2
  226. package/lib/esm/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts +0 -4
  227. package/lib/esm/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts.map +1 -1
  228. package/lib/esm/components-react/propertygrid/internal/flat-items/FlatGridItem.js.map +1 -1
  229. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.d.ts +0 -2
  230. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.d.ts.map +1 -1
  231. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.js +0 -6
  232. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.js.map +1 -1
  233. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts +0 -8
  234. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts.map +1 -1
  235. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.js.map +1 -1
  236. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.d.ts +0 -6
  237. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.d.ts.map +1 -1
  238. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.js +2 -14
  239. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.js.map +1 -1
  240. package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.js +1 -1
  241. package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.js.map +1 -1
  242. package/lib/esm/components-react/selectable-content/SelectableContent.scss +0 -1
  243. package/lib/esm/components-react/table/TableDataProvider.d.ts +2 -158
  244. package/lib/esm/components-react/table/TableDataProvider.d.ts.map +1 -1
  245. package/lib/esm/components-react/table/TableDataProvider.js +1 -16
  246. package/lib/esm/components-react/table/TableDataProvider.js.map +1 -1
  247. package/lib/esm/components-react/toolbar/Items.scss +12 -10
  248. package/lib/esm/components-react/toolbar/Overflow.scss +5 -5
  249. package/lib/esm/components-react/toolbar/OverflowPanel.scss +5 -5
  250. package/lib/esm/components-react/toolbar/PopupItem.scss +14 -12
  251. package/lib/esm/components-react/toolbar/ToolbarWithOverflow.d.ts +0 -17
  252. package/lib/esm/components-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  253. package/lib/esm/components-react/toolbar/ToolbarWithOverflow.js +5 -12
  254. package/lib/esm/components-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  255. package/lib/esm/components-react/toolbar/_variables.scss +2 -3
  256. package/lib/esm/components-react/toolbar/groupPanel/Panel.scss +1 -1
  257. package/lib/esm/components-react/toolbar/groupPanel/tool/Tool.scss +10 -11
  258. package/lib/esm/components-react/tree/ImageLoader.d.ts +1 -1
  259. package/lib/esm/components-react/tree/ImageLoader.d.ts.map +1 -1
  260. package/lib/esm/components-react/tree/ImageLoader.js +1 -1
  261. package/lib/esm/components-react/tree/ImageLoader.js.map +1 -1
  262. package/lib/esm/components-react/tree/SimpleTreeDataProvider.d.ts +1 -3
  263. package/lib/esm/components-react/tree/SimpleTreeDataProvider.d.ts.map +1 -1
  264. package/lib/esm/components-react/tree/SimpleTreeDataProvider.js +0 -2
  265. package/lib/esm/components-react/tree/SimpleTreeDataProvider.js.map +1 -1
  266. package/lib/esm/components-react/tree/TreeDataProvider.d.ts +1 -22
  267. package/lib/esm/components-react/tree/TreeDataProvider.d.ts.map +1 -1
  268. package/lib/esm/components-react/tree/TreeDataProvider.js +1 -0
  269. package/lib/esm/components-react/tree/TreeDataProvider.js.map +1 -1
  270. package/lib/esm/components-react/tree/controlled/Observable.d.ts +12 -2
  271. package/lib/esm/components-react/tree/controlled/Observable.d.ts.map +1 -1
  272. package/lib/esm/components-react/tree/controlled/Observable.js.map +1 -1
  273. package/lib/esm/components-react/tree/controlled/TreeHooks.d.ts.map +1 -1
  274. package/lib/esm/components-react/tree/controlled/TreeHooks.js +2 -4
  275. package/lib/esm/components-react/tree/controlled/TreeHooks.js.map +1 -1
  276. package/lib/esm/components-react/tree/controlled/TreeModel.d.ts +1 -1
  277. package/lib/esm/components-react/tree/controlled/TreeModel.js +1 -1
  278. package/lib/esm/components-react/tree/controlled/TreeModel.js.map +1 -1
  279. package/lib/esm/components-react/tree/controlled/TreeNodeLoader.d.ts +4 -12
  280. package/lib/esm/components-react/tree/controlled/TreeNodeLoader.d.ts.map +1 -1
  281. package/lib/esm/components-react/tree/controlled/TreeNodeLoader.js +0 -14
  282. package/lib/esm/components-react/tree/controlled/TreeNodeLoader.js.map +1 -1
  283. package/lib/esm/components-react/tree/controlled/component/ControlledTree.d.ts.map +1 -1
  284. package/lib/esm/components-react/tree/controlled/component/ControlledTree.js +1 -2
  285. package/lib/esm/components-react/tree/controlled/component/ControlledTree.js.map +1 -1
  286. package/lib/esm/components-react/tree/controlled/component/NodeContent.d.ts.map +1 -1
  287. package/lib/esm/components-react/tree/controlled/component/NodeContent.js +5 -4
  288. package/lib/esm/components-react/tree/controlled/component/NodeContent.js.map +1 -1
  289. package/lib/esm/components-react/tree/controlled/component/NodeContent.scss +3 -4
  290. package/lib/esm/components-react.d.ts +5 -16
  291. package/lib/esm/components-react.d.ts.map +1 -1
  292. package/lib/esm/components-react.js +6 -16
  293. package/lib/esm/components-react.js.map +1 -1
  294. package/package.json +21 -36
  295. package/lib/cjs/components-react/breadcrumb/BeInspireTree.d.ts +0 -263
  296. package/lib/cjs/components-react/breadcrumb/BeInspireTree.d.ts.map +0 -1
  297. package/lib/cjs/components-react/breadcrumb/BeInspireTree.js +0 -902
  298. package/lib/cjs/components-react/breadcrumb/BeInspireTree.js.map +0 -1
  299. package/lib/cjs/components-react/breadcrumb/Breadcrumb.d.ts +0 -198
  300. package/lib/cjs/components-react/breadcrumb/Breadcrumb.d.ts.map +0 -1
  301. package/lib/cjs/components-react/breadcrumb/Breadcrumb.js +0 -652
  302. package/lib/cjs/components-react/breadcrumb/Breadcrumb.js.map +0 -1
  303. package/lib/cjs/components-react/breadcrumb/Breadcrumb.scss +0 -197
  304. package/lib/cjs/components-react/breadcrumb/BreadcrumbDetails.d.ts +0 -66
  305. package/lib/cjs/components-react/breadcrumb/BreadcrumbDetails.d.ts.map +0 -1
  306. package/lib/cjs/components-react/breadcrumb/BreadcrumbDetails.js +0 -232
  307. package/lib/cjs/components-react/breadcrumb/BreadcrumbDetails.js.map +0 -1
  308. package/lib/cjs/components-react/breadcrumb/BreadcrumbPath.d.ts +0 -36
  309. package/lib/cjs/components-react/breadcrumb/BreadcrumbPath.d.ts.map +0 -1
  310. package/lib/cjs/components-react/breadcrumb/BreadcrumbPath.js +0 -47
  311. package/lib/cjs/components-react/breadcrumb/BreadcrumbPath.js.map +0 -1
  312. package/lib/cjs/components-react/breadcrumb/BreadcrumbTreeUtils.d.ts +0 -30
  313. package/lib/cjs/components-react/breadcrumb/BreadcrumbTreeUtils.d.ts.map +0 -1
  314. package/lib/cjs/components-react/breadcrumb/BreadcrumbTreeUtils.js +0 -136
  315. package/lib/cjs/components-react/breadcrumb/BreadcrumbTreeUtils.js.map +0 -1
  316. package/lib/cjs/components-react/common/showhide/ShowHideDialog.d.ts +0 -39
  317. package/lib/cjs/components-react/common/showhide/ShowHideDialog.d.ts.map +0 -1
  318. package/lib/cjs/components-react/common/showhide/ShowHideDialog.js +0 -91
  319. package/lib/cjs/components-react/common/showhide/ShowHideDialog.js.map +0 -1
  320. package/lib/cjs/components-react/common/showhide/ShowHideItem.d.ts +0 -15
  321. package/lib/cjs/components-react/common/showhide/ShowHideItem.d.ts.map +0 -1
  322. package/lib/cjs/components-react/common/showhide/ShowHideItem.js +0 -10
  323. package/lib/cjs/components-react/common/showhide/ShowHideItem.js.map +0 -1
  324. package/lib/cjs/components-react/common/showhide/ShowHideMenu.d.ts +0 -54
  325. package/lib/cjs/components-react/common/showhide/ShowHideMenu.d.ts.map +0 -1
  326. package/lib/cjs/components-react/common/showhide/ShowHideMenu.js +0 -124
  327. package/lib/cjs/components-react/common/showhide/ShowHideMenu.js.map +0 -1
  328. package/lib/cjs/components-react/editors/ThemedEnumEditor.d.ts +0 -63
  329. package/lib/cjs/components-react/editors/ThemedEnumEditor.d.ts.map +0 -1
  330. package/lib/cjs/components-react/editors/ThemedEnumEditor.js +0 -207
  331. package/lib/cjs/components-react/editors/ThemedEnumEditor.js.map +0 -1
  332. package/lib/cjs/components-react/editors/ThemedEnumEditor.scss +0 -83
  333. package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.scss +0 -11
  334. package/lib/cjs/components-react/table/SimpleTableDataProvider.d.ts +0 -58
  335. package/lib/cjs/components-react/table/SimpleTableDataProvider.d.ts.map +0 -1
  336. package/lib/cjs/components-react/table/SimpleTableDataProvider.js +0 -255
  337. package/lib/cjs/components-react/table/SimpleTableDataProvider.js.map +0 -1
  338. package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.d.ts +0 -242
  339. package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.d.ts.map +0 -1
  340. package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.js +0 -115
  341. package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.js.map +0 -1
  342. package/lib/cjs/components-react/table/columnfiltering/ColumnFiltering.scss +0 -79
  343. package/lib/cjs/components-react/table/columnfiltering/ColumnFilteringUtilities.d.ts +0 -14
  344. package/lib/cjs/components-react/table/columnfiltering/ColumnFilteringUtilities.d.ts.map +0 -1
  345. package/lib/cjs/components-react/table/columnfiltering/ColumnFilteringUtilities.js +0 -37
  346. package/lib/cjs/components-react/table/columnfiltering/ColumnFilteringUtilities.js.map +0 -1
  347. package/lib/cjs/components-react/table/columnfiltering/DataGridFilterParser.d.ts +0 -88
  348. package/lib/cjs/components-react/table/columnfiltering/DataGridFilterParser.d.ts.map +0 -1
  349. package/lib/cjs/components-react/table/columnfiltering/DataGridFilterParser.js +0 -193
  350. package/lib/cjs/components-react/table/columnfiltering/DataGridFilterParser.js.map +0 -1
  351. package/lib/cjs/components-react/table/columnfiltering/FilterableColumnBase.d.ts +0 -58
  352. package/lib/cjs/components-react/table/columnfiltering/FilterableColumnBase.d.ts.map +0 -1
  353. package/lib/cjs/components-react/table/columnfiltering/FilterableColumnBase.js +0 -104
  354. package/lib/cjs/components-react/table/columnfiltering/FilterableColumnBase.js.map +0 -1
  355. package/lib/cjs/components-react/table/columnfiltering/TableColumnFilterDescriptor.d.ts +0 -57
  356. package/lib/cjs/components-react/table/columnfiltering/TableColumnFilterDescriptor.d.ts.map +0 -1
  357. package/lib/cjs/components-react/table/columnfiltering/TableColumnFilterDescriptor.js +0 -364
  358. package/lib/cjs/components-react/table/columnfiltering/TableColumnFilterDescriptor.js.map +0 -1
  359. package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptor.d.ts +0 -86
  360. package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptor.d.ts.map +0 -1
  361. package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptor.js +0 -404
  362. package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptor.js.map +0 -1
  363. package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptorCollection.d.ts +0 -29
  364. package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptorCollection.d.ts.map +0 -1
  365. package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptorCollection.js +0 -88
  366. package/lib/cjs/components-react/table/columnfiltering/TableFilterDescriptorCollection.js.map +0 -1
  367. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.d.ts +0 -29
  368. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.d.ts.map +0 -1
  369. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.js +0 -75
  370. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.js.map +0 -1
  371. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.d.ts +0 -5
  372. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.d.ts.map +0 -1
  373. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.js +0 -23
  374. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.js.map +0 -1
  375. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/NumericFilter.d.ts +0 -22
  376. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/NumericFilter.d.ts.map +0 -1
  377. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/NumericFilter.js +0 -88
  378. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/NumericFilter.js.map +0 -1
  379. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.d.ts +0 -5
  380. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.d.ts.map +0 -1
  381. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.js +0 -23
  382. package/lib/cjs/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.js.map +0 -1
  383. package/lib/cjs/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.d.ts +0 -19
  384. package/lib/cjs/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.d.ts.map +0 -1
  385. package/lib/cjs/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.js +0 -184
  386. package/lib/cjs/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.js.map +0 -1
  387. package/lib/cjs/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.scss +0 -36
  388. package/lib/cjs/components-react/table/component/ColumnDragLayer.d.ts +0 -15
  389. package/lib/cjs/components-react/table/component/ColumnDragLayer.d.ts.map +0 -1
  390. package/lib/cjs/components-react/table/component/ColumnDragLayer.js +0 -66
  391. package/lib/cjs/components-react/table/component/ColumnDragLayer.js.map +0 -1
  392. package/lib/cjs/components-react/table/component/DragDropHeaderCell.d.ts +0 -27
  393. package/lib/cjs/components-react/table/component/DragDropHeaderCell.d.ts.map +0 -1
  394. package/lib/cjs/components-react/table/component/DragDropHeaderCell.js +0 -102
  395. package/lib/cjs/components-react/table/component/DragDropHeaderCell.js.map +0 -1
  396. package/lib/cjs/components-react/table/component/Table.d.ts +0 -308
  397. package/lib/cjs/components-react/table/component/Table.d.ts.map +0 -1
  398. package/lib/cjs/components-react/table/component/Table.js +0 -1335
  399. package/lib/cjs/components-react/table/component/Table.js.map +0 -1
  400. package/lib/cjs/components-react/table/component/Table.scss +0 -201
  401. package/lib/cjs/components-react/table/component/TableCell.d.ts +0 -101
  402. package/lib/cjs/components-react/table/component/TableCell.d.ts.map +0 -1
  403. package/lib/cjs/components-react/table/component/TableCell.js +0 -137
  404. package/lib/cjs/components-react/table/component/TableCell.js.map +0 -1
  405. package/lib/cjs/components-react/table/component/TableCell.scss +0 -49
  406. package/lib/cjs/components-react/table/component/TableColumn.d.ts +0 -31
  407. package/lib/cjs/components-react/table/component/TableColumn.d.ts.map +0 -1
  408. package/lib/cjs/components-react/table/component/TableColumn.js +0 -33
  409. package/lib/cjs/components-react/table/component/TableColumn.js.map +0 -1
  410. package/lib/cjs/components-react/table/component/dragdrop/BeDragDropContext.d.ts +0 -13
  411. package/lib/cjs/components-react/table/component/dragdrop/BeDragDropContext.d.ts.map +0 -1
  412. package/lib/cjs/components-react/table/component/dragdrop/BeDragDropContext.js +0 -42
  413. package/lib/cjs/components-react/table/component/dragdrop/BeDragDropContext.js.map +0 -1
  414. package/lib/cjs/components-react/table/component/dragdrop/DragDropDef.d.ts +0 -155
  415. package/lib/cjs/components-react/table/component/dragdrop/DragDropDef.d.ts.map +0 -1
  416. package/lib/cjs/components-react/table/component/dragdrop/DragDropDef.js +0 -33
  417. package/lib/cjs/components-react/table/component/dragdrop/DragDropDef.js.map +0 -1
  418. package/lib/cjs/components-react/table/component/dragdrop/withDragSource.d.ts +0 -42
  419. package/lib/cjs/components-react/table/component/dragdrop/withDragSource.d.ts.map +0 -1
  420. package/lib/cjs/components-react/table/component/dragdrop/withDragSource.js +0 -189
  421. package/lib/cjs/components-react/table/component/dragdrop/withDragSource.js.map +0 -1
  422. package/lib/cjs/components-react/table/component/dragdrop/withDropTarget.d.ts +0 -36
  423. package/lib/cjs/components-react/table/component/dragdrop/withDropTarget.d.ts.map +0 -1
  424. package/lib/cjs/components-react/table/component/dragdrop/withDropTarget.js +0 -150
  425. package/lib/cjs/components-react/table/component/dragdrop/withDropTarget.js.map +0 -1
  426. package/lib/esm/components-react/breadcrumb/BeInspireTree.d.ts +0 -263
  427. package/lib/esm/components-react/breadcrumb/BeInspireTree.d.ts.map +0 -1
  428. package/lib/esm/components-react/breadcrumb/BeInspireTree.js +0 -892
  429. package/lib/esm/components-react/breadcrumb/BeInspireTree.js.map +0 -1
  430. package/lib/esm/components-react/breadcrumb/Breadcrumb.d.ts +0 -198
  431. package/lib/esm/components-react/breadcrumb/Breadcrumb.d.ts.map +0 -1
  432. package/lib/esm/components-react/breadcrumb/Breadcrumb.js +0 -623
  433. package/lib/esm/components-react/breadcrumb/Breadcrumb.js.map +0 -1
  434. package/lib/esm/components-react/breadcrumb/Breadcrumb.scss +0 -197
  435. package/lib/esm/components-react/breadcrumb/BreadcrumbDetails.d.ts +0 -66
  436. package/lib/esm/components-react/breadcrumb/BreadcrumbDetails.d.ts.map +0 -1
  437. package/lib/esm/components-react/breadcrumb/BreadcrumbDetails.js +0 -206
  438. package/lib/esm/components-react/breadcrumb/BreadcrumbDetails.js.map +0 -1
  439. package/lib/esm/components-react/breadcrumb/BreadcrumbPath.d.ts +0 -36
  440. package/lib/esm/components-react/breadcrumb/BreadcrumbPath.d.ts.map +0 -1
  441. package/lib/esm/components-react/breadcrumb/BreadcrumbPath.js +0 -42
  442. package/lib/esm/components-react/breadcrumb/BreadcrumbPath.js.map +0 -1
  443. package/lib/esm/components-react/breadcrumb/BreadcrumbTreeUtils.d.ts +0 -30
  444. package/lib/esm/components-react/breadcrumb/BreadcrumbTreeUtils.d.ts.map +0 -1
  445. package/lib/esm/components-react/breadcrumb/BreadcrumbTreeUtils.js +0 -131
  446. package/lib/esm/components-react/breadcrumb/BreadcrumbTreeUtils.js.map +0 -1
  447. package/lib/esm/components-react/common/showhide/ShowHideDialog.d.ts +0 -39
  448. package/lib/esm/components-react/common/showhide/ShowHideDialog.d.ts.map +0 -1
  449. package/lib/esm/components-react/common/showhide/ShowHideDialog.js +0 -68
  450. package/lib/esm/components-react/common/showhide/ShowHideDialog.js.map +0 -1
  451. package/lib/esm/components-react/common/showhide/ShowHideItem.d.ts +0 -15
  452. package/lib/esm/components-react/common/showhide/ShowHideItem.d.ts.map +0 -1
  453. package/lib/esm/components-react/common/showhide/ShowHideItem.js +0 -9
  454. package/lib/esm/components-react/common/showhide/ShowHideItem.js.map +0 -1
  455. package/lib/esm/components-react/common/showhide/ShowHideMenu.d.ts +0 -54
  456. package/lib/esm/components-react/common/showhide/ShowHideMenu.d.ts.map +0 -1
  457. package/lib/esm/components-react/common/showhide/ShowHideMenu.js +0 -101
  458. package/lib/esm/components-react/common/showhide/ShowHideMenu.js.map +0 -1
  459. package/lib/esm/components-react/editors/ThemedEnumEditor.d.ts +0 -63
  460. package/lib/esm/components-react/editors/ThemedEnumEditor.d.ts.map +0 -1
  461. package/lib/esm/components-react/editors/ThemedEnumEditor.js +0 -180
  462. package/lib/esm/components-react/editors/ThemedEnumEditor.js.map +0 -1
  463. package/lib/esm/components-react/editors/ThemedEnumEditor.scss +0 -83
  464. package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.scss +0 -11
  465. package/lib/esm/components-react/table/SimpleTableDataProvider.d.ts +0 -58
  466. package/lib/esm/components-react/table/SimpleTableDataProvider.d.ts.map +0 -1
  467. package/lib/esm/components-react/table/SimpleTableDataProvider.js +0 -251
  468. package/lib/esm/components-react/table/SimpleTableDataProvider.js.map +0 -1
  469. package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.d.ts +0 -242
  470. package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.d.ts.map +0 -1
  471. package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.js +0 -108
  472. package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.js.map +0 -1
  473. package/lib/esm/components-react/table/columnfiltering/ColumnFiltering.scss +0 -79
  474. package/lib/esm/components-react/table/columnfiltering/ColumnFilteringUtilities.d.ts +0 -14
  475. package/lib/esm/components-react/table/columnfiltering/ColumnFilteringUtilities.d.ts.map +0 -1
  476. package/lib/esm/components-react/table/columnfiltering/ColumnFilteringUtilities.js +0 -33
  477. package/lib/esm/components-react/table/columnfiltering/ColumnFilteringUtilities.js.map +0 -1
  478. package/lib/esm/components-react/table/columnfiltering/DataGridFilterParser.d.ts +0 -88
  479. package/lib/esm/components-react/table/columnfiltering/DataGridFilterParser.d.ts.map +0 -1
  480. package/lib/esm/components-react/table/columnfiltering/DataGridFilterParser.js +0 -189
  481. package/lib/esm/components-react/table/columnfiltering/DataGridFilterParser.js.map +0 -1
  482. package/lib/esm/components-react/table/columnfiltering/FilterableColumnBase.d.ts +0 -58
  483. package/lib/esm/components-react/table/columnfiltering/FilterableColumnBase.d.ts.map +0 -1
  484. package/lib/esm/components-react/table/columnfiltering/FilterableColumnBase.js +0 -100
  485. package/lib/esm/components-react/table/columnfiltering/FilterableColumnBase.js.map +0 -1
  486. package/lib/esm/components-react/table/columnfiltering/TableColumnFilterDescriptor.d.ts +0 -57
  487. package/lib/esm/components-react/table/columnfiltering/TableColumnFilterDescriptor.d.ts.map +0 -1
  488. package/lib/esm/components-react/table/columnfiltering/TableColumnFilterDescriptor.js +0 -360
  489. package/lib/esm/components-react/table/columnfiltering/TableColumnFilterDescriptor.js.map +0 -1
  490. package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptor.d.ts +0 -86
  491. package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptor.d.ts.map +0 -1
  492. package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptor.js +0 -400
  493. package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptor.js.map +0 -1
  494. package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptorCollection.d.ts +0 -29
  495. package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptorCollection.d.ts.map +0 -1
  496. package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptorCollection.js +0 -84
  497. package/lib/esm/components-react/table/columnfiltering/TableFilterDescriptorCollection.js.map +0 -1
  498. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.d.ts +0 -29
  499. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.d.ts.map +0 -1
  500. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.js +0 -49
  501. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/AutoCompleteFilter.js.map +0 -1
  502. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.d.ts +0 -5
  503. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.d.ts.map +0 -1
  504. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.js +0 -16
  505. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/MultiSelectFilter.js.map +0 -1
  506. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/NumericFilter.d.ts +0 -22
  507. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/NumericFilter.d.ts.map +0 -1
  508. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/NumericFilter.js +0 -81
  509. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/NumericFilter.js.map +0 -1
  510. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.d.ts +0 -5
  511. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.d.ts.map +0 -1
  512. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.js +0 -16
  513. package/lib/esm/components-react/table/columnfiltering/data-grid-addons/SingleSelectFilter.js.map +0 -1
  514. package/lib/esm/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.d.ts +0 -19
  515. package/lib/esm/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.d.ts.map +0 -1
  516. package/lib/esm/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.js +0 -177
  517. package/lib/esm/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.js.map +0 -1
  518. package/lib/esm/components-react/table/columnfiltering/multi-value-filter/MultiValueFilter.scss +0 -36
  519. package/lib/esm/components-react/table/component/ColumnDragLayer.d.ts +0 -15
  520. package/lib/esm/components-react/table/component/ColumnDragLayer.d.ts.map +0 -1
  521. package/lib/esm/components-react/table/component/ColumnDragLayer.js +0 -40
  522. package/lib/esm/components-react/table/component/ColumnDragLayer.js.map +0 -1
  523. package/lib/esm/components-react/table/component/DragDropHeaderCell.d.ts +0 -27
  524. package/lib/esm/components-react/table/component/DragDropHeaderCell.d.ts.map +0 -1
  525. package/lib/esm/components-react/table/component/DragDropHeaderCell.js +0 -76
  526. package/lib/esm/components-react/table/component/DragDropHeaderCell.js.map +0 -1
  527. package/lib/esm/components-react/table/component/Table.d.ts +0 -308
  528. package/lib/esm/components-react/table/component/Table.d.ts.map +0 -1
  529. package/lib/esm/components-react/table/component/Table.js +0 -1308
  530. package/lib/esm/components-react/table/component/Table.js.map +0 -1
  531. package/lib/esm/components-react/table/component/Table.scss +0 -201
  532. package/lib/esm/components-react/table/component/TableCell.d.ts +0 -101
  533. package/lib/esm/components-react/table/component/TableCell.d.ts.map +0 -1
  534. package/lib/esm/components-react/table/component/TableCell.js +0 -109
  535. package/lib/esm/components-react/table/component/TableCell.js.map +0 -1
  536. package/lib/esm/components-react/table/component/TableCell.scss +0 -49
  537. package/lib/esm/components-react/table/component/TableColumn.d.ts +0 -31
  538. package/lib/esm/components-react/table/component/TableColumn.d.ts.map +0 -1
  539. package/lib/esm/components-react/table/component/TableColumn.js +0 -29
  540. package/lib/esm/components-react/table/component/TableColumn.js.map +0 -1
  541. package/lib/esm/components-react/table/component/dragdrop/BeDragDropContext.d.ts +0 -13
  542. package/lib/esm/components-react/table/component/dragdrop/BeDragDropContext.d.ts.map +0 -1
  543. package/lib/esm/components-react/table/component/dragdrop/BeDragDropContext.js +0 -19
  544. package/lib/esm/components-react/table/component/dragdrop/BeDragDropContext.js.map +0 -1
  545. package/lib/esm/components-react/table/component/dragdrop/DragDropDef.d.ts +0 -155
  546. package/lib/esm/components-react/table/component/dragdrop/DragDropDef.d.ts.map +0 -1
  547. package/lib/esm/components-react/table/component/dragdrop/DragDropDef.js +0 -30
  548. package/lib/esm/components-react/table/component/dragdrop/DragDropDef.js.map +0 -1
  549. package/lib/esm/components-react/table/component/dragdrop/withDragSource.d.ts +0 -42
  550. package/lib/esm/components-react/table/component/dragdrop/withDragSource.d.ts.map +0 -1
  551. package/lib/esm/components-react/table/component/dragdrop/withDragSource.js +0 -166
  552. package/lib/esm/components-react/table/component/dragdrop/withDragSource.js.map +0 -1
  553. package/lib/esm/components-react/table/component/dragdrop/withDropTarget.d.ts +0 -36
  554. package/lib/esm/components-react/table/component/dragdrop/withDropTarget.d.ts.map +0 -1
  555. package/lib/esm/components-react/table/component/dragdrop/withDropTarget.js +0 -127
  556. package/lib/esm/components-react/table/component/dragdrop/withDropTarget.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"FlatGridItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/FlatGridItem.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,0BAA0B,EAAE,MAAM,GAAG,SAAS,CAAC;IACxD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAC;IAC1C,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC;IACvC,qBAAqB,IAAI,YAAY,EAAE,CAAC;IACxC,4BAA4B,IAAI,YAAY,EAAE,CAAC;IAC/C,WAAW,IAAI,YAAY,EAAE,CAAC;IAC9B,8BAA8B,IAAI,YAAY,CAAC;CAChD;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC,QAAQ,CAAC;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,eAAe,EAAE,gBAAgB,CAAC;IAE3C,8EAA8E;IAC9E,kBAAkB,IAAI,gBAAgB,EAAE,CAAC;IACzC,wFAAwF;IACxF,8BAA8B,IAAI,gBAAgB,EAAE,CAAC;CACtD;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC/D,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC;IACxC,QAAQ,CAAC,aAAa,EAAE,cAAc,CAAC;IACvC,QAAQ,CAAC,0BAA0B,EAAE,MAAM,CAAC;IAC5C,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IAEpC,WAAW,IAAI,uBAAuB,EAAE,CAAC;CAC1C;AAED;;;GAGG;AACH,oBAAY,YAAY,GAAG,uBAAuB,GAAG,gBAAgB,CAAC"}
1
+ {"version":3,"file":"FlatGridItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/FlatGridItem.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;A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oBAAY,YAAY,GAAG,uBAAuB,GAAG,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FlatGridItem.js","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/FlatGridItem.ts"],"names":[],"mappings":";AAAA;;;+FAG+F","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module PropertyGrid\r\n */\r\nimport { CategorizedPropertyTypes, FlatGridItemType } from \"./MutableFlatGridItem\";\r\nimport { PropertyRecord } from \"@itwin/appui-abstract\";\r\nimport { PropertyCategory } from \"../../PropertyDataProvider\";\r\n\r\n/**\r\n * Base immutable data structure defining common methods and properties for categories and categorized properties\r\n * @public\r\n */\r\nexport interface FlatGridItemBase {\r\n readonly isExpanded: boolean;\r\n readonly key: string;\r\n readonly selectionKey: string;\r\n readonly parentSelectionKey: string | undefined;\r\n readonly parentCategorySelectionKey: string | undefined;\r\n readonly depth: number;\r\n readonly label: string;\r\n readonly type: FlatGridItemType;\r\n readonly lastInNumberOfCategories: number;\r\n readonly isLastInRootCategory: boolean;\r\n getDescendantsAndSelf(): FlatGridItem[];\r\n getVisibleDescendantsAndSelf(): FlatGridItem[];\r\n getChildren(): FlatGridItem[];\r\n getLastVisibleDescendantOrSelf(): FlatGridItem;\r\n}\r\n\r\n/**\r\n * Data structure which describes methods and properties present on immutable [[GridCategoryItem]]\r\n * @public\r\n */\r\nexport interface GridCategoryItem extends FlatGridItemBase {\r\n readonly type: FlatGridItemType.Category;\r\n readonly name: string;\r\n readonly derivedCategory: PropertyCategory;\r\n\r\n /** @deprecated in 3.1. Use [[getChildren]] and filter categories yourself. */\r\n getChildCategories(): GridCategoryItem[];\r\n /** @deprecated in 3.1. Use [[getDescendantsAndSelf]] and filter categories yourself. */\r\n getDescendantCategoriesAndSelf(): GridCategoryItem[];\r\n}\r\n\r\n/**\r\n * Data structure which describes methods and properties present on immutable [[CategorizedPropertyItem]] objects\r\n * @public\r\n */\r\nexport interface CategorizedPropertyItem extends FlatGridItemBase {\r\n readonly type: CategorizedPropertyTypes;\r\n readonly derivedRecord: PropertyRecord;\r\n readonly parentCategorySelectionKey: string;\r\n readonly parentSelectionKey: string;\r\n\r\n getChildren(): CategorizedPropertyItem[];\r\n}\r\n\r\n/**\r\n * Type which describes immutable [[GridCategoryItem]] or [[CategorizedPropertyItem]]\r\n * @public\r\n */\r\nexport type FlatGridItem = CategorizedPropertyItem | GridCategoryItem;\r\n"]}
1
+ {"version":3,"file":"FlatGridItem.js","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/FlatGridItem.ts"],"names":[],"mappings":";AAAA;;;+FAG+F","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module PropertyGrid\r\n */\r\nimport { CategorizedPropertyTypes, FlatGridItemType } from \"./MutableFlatGridItem\";\r\nimport { PropertyRecord } from \"@itwin/appui-abstract\";\r\nimport { PropertyCategory } from \"../../PropertyDataProvider\";\r\n\r\n/**\r\n * Base immutable data structure defining common methods and properties for categories and categorized properties\r\n * @public\r\n */\r\nexport interface FlatGridItemBase {\r\n readonly isExpanded: boolean;\r\n readonly key: string;\r\n readonly selectionKey: string;\r\n readonly parentSelectionKey: string | undefined;\r\n readonly parentCategorySelectionKey: string | undefined;\r\n readonly depth: number;\r\n readonly label: string;\r\n readonly type: FlatGridItemType;\r\n readonly lastInNumberOfCategories: number;\r\n readonly isLastInRootCategory: boolean;\r\n getDescendantsAndSelf(): FlatGridItem[];\r\n getVisibleDescendantsAndSelf(): FlatGridItem[];\r\n getChildren(): FlatGridItem[];\r\n getLastVisibleDescendantOrSelf(): FlatGridItem;\r\n}\r\n\r\n/**\r\n * Data structure which describes methods and properties present on immutable [[GridCategoryItem]]\r\n * @public\r\n */\r\nexport interface GridCategoryItem extends FlatGridItemBase {\r\n readonly type: FlatGridItemType.Category;\r\n readonly name: string;\r\n readonly derivedCategory: PropertyCategory;\r\n}\r\n\r\n/**\r\n * Data structure which describes methods and properties present on immutable [[CategorizedPropertyItem]] objects\r\n * @public\r\n */\r\nexport interface CategorizedPropertyItem extends FlatGridItemBase {\r\n readonly type: CategorizedPropertyTypes;\r\n readonly derivedRecord: PropertyRecord;\r\n readonly parentCategorySelectionKey: string;\r\n readonly parentSelectionKey: string;\r\n\r\n getChildren(): CategorizedPropertyItem[];\r\n}\r\n\r\n/**\r\n * Type which describes immutable [[GridCategoryItem]] or [[CategorizedPropertyItem]]\r\n * @public\r\n */\r\nexport type FlatGridItem = CategorizedPropertyItem | GridCategoryItem;\r\n"]}
@@ -16,8 +16,6 @@ export declare class MutableCustomGridCategory extends MutableFlatPropertyGridIt
16
16
  get lastInNumberOfCategories(): number;
17
17
  set lastInNumberOfCategories(value: number);
18
18
  getSelf(): this;
19
- getChildCategories(): IMutableGridCategoryItem[];
20
- getDescendantCategoriesAndSelf(): IMutableGridCategoryItem[];
21
19
  getChildren(): IMutableFlatGridItem[];
22
20
  getVisibleDescendantsAndSelf(): IMutableFlatGridItem[];
23
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MutableCustomGridCategory.d.ts","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EACL,gBAAgB,EAAmC,oBAAoB,EAAE,wBAAwB,EAAE,2BAA2B,EAC/H,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,gBAAgB;AAChB,qBAAa,yBAA0B,SAAQ,2BAA4B,YAAW,wBAAwB;IAC5G,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoC;IAC9D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA+B;IAEzD,SAAgB,IAAI,4BAAsC;IAC1D,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,YAAY,EAAE,MAAM,CAAC;gBAGnC,QAAQ,EAAE,gBAAgB,EAC1B,WAAW,EAAE,mBAAmB,EAChC,eAAe,EAAE,uBAAuB,EACxC,kBAAkB,EAAE,MAAM,GAAG,SAAS,EACtC,KAAK,EAAE,MAAM;IAoBf,IAAW,eAAe,IAAI,gBAAgB,CAO7C;IAED,IAAW,cAAc,IAAI,OAAO,CAEnC;IAED,IAAoB,wBAAwB,IAAI,MAAM,CAErD;IAED,IAAoB,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAEzD;IAEM,OAAO;IAIP,kBAAkB,IAAI,wBAAwB,EAAE;IAIhD,8BAA8B,IAAI,wBAAwB,EAAE;IAI5D,WAAW,IAAI,oBAAoB,EAAE;IAI5B,4BAA4B,IAAI,oBAAoB,EAAE;CAGvE"}
1
+ {"version":3,"file":"MutableCustomGridCategory.d.ts","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EACL,gBAAgB,EAAmC,oBAAoB,EAAE,wBAAwB,EAAE,2BAA2B,EAC/H,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,gBAAgB;AAChB,qBAAa,yBAA0B,SAAQ,2BAA4B,YAAW,wBAAwB;IAC5G,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoC;IAC9D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA+B;IAEzD,SAAgB,IAAI,4BAAsC;IAC1D,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,YAAY,EAAE,MAAM,CAAC;gBAGnC,QAAQ,EAAE,gBAAgB,EAC1B,WAAW,EAAE,mBAAmB,EAChC,eAAe,EAAE,uBAAuB,EACxC,kBAAkB,EAAE,MAAM,GAAG,SAAS,EACtC,KAAK,EAAE,MAAM;IAoBf,IAAW,eAAe,IAAI,gBAAgB,CAO7C;IAED,IAAW,cAAc,IAAI,OAAO,CAEnC;IAED,IAAoB,wBAAwB,IAAI,MAAM,CAErD;IAED,IAAoB,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAEzD;IAEM,OAAO;IAIP,WAAW,IAAI,oBAAoB,EAAE;IAI5B,4BAA4B,IAAI,oBAAoB,EAAE;CAGvE"}
@@ -39,12 +39,6 @@ class MutableCustomGridCategory extends MutableFlatGridItem_1.MutableFlatPropert
39
39
  getSelf() {
40
40
  return this;
41
41
  }
42
- getChildCategories() {
43
- return [];
44
- }
45
- getDescendantCategoriesAndSelf() {
46
- return [this];
47
- }
48
42
  getChildren() {
49
43
  return this._children;
50
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MutableCustomGridCategory.js","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.ts"],"names":[],"mappings":";;;AAKA,+DAE+B;AAI/B,gBAAgB;AAChB,MAAa,yBAA0B,SAAQ,iDAA2B;IASxE,YACE,QAA0B,EAC1B,WAAgC,EAChC,eAAwC,EACxC,kBAAsC,EACtC,KAAa;;QAEb,KAAK,CAAC,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;QAZvC,SAAI,GAAG,sCAAgB,CAAC,QAAiB,CAAC;QAcxD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C;IACd,CAAC;IAEM,kBAAkB;QACvB,OAAO,EAAE,CAAC;IACZ,CAAC;IAEM,8BAA8B;QACnC,OAAO,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;IAEM,WAAW;QAChB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAEe,4BAA4B;QAC1C,OAAO,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;CACF;AA1ED,8DA0EC","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\nimport { PropertyCategory } from \"../../PropertyDataProvider\";\r\nimport {\r\n FlatGridItemType, IMutableCategorizedPropertyItem, IMutableFlatGridItem, IMutableGridCategoryItem, MutableFlatPropertyGridItem,\r\n} from \"./MutableFlatGridItem\";\r\nimport { CategoryRecordsDict } from \"./MutableGridCategory\";\r\nimport { IMutableGridItemFactory } from \"./MutableGridItemFactory\";\r\n\r\n/** @internal */\r\nexport class MutableCustomGridCategory extends MutableFlatPropertyGridItem implements IMutableGridCategoryItem {\r\n private readonly _children: IMutableCategorizedPropertyItem[];\r\n private readonly _renderer: PropertyCategory[\"renderer\"];\r\n\r\n public readonly type = FlatGridItemType.Category as const;\r\n public readonly label: string;\r\n public readonly name: string;\r\n public readonly selectionKey: string;\r\n\r\n public constructor(\r\n category: PropertyCategory,\r\n recordsDict: CategoryRecordsDict,\r\n gridItemFactory: IMutableGridItemFactory,\r\n parentSelectionKey: string | undefined,\r\n depth: number,\r\n ) {\r\n super(depth, parentSelectionKey, parentSelectionKey);\r\n\r\n this.name = category.name;\r\n this.label = category.label;\r\n this.isExpanded = category.expand;\r\n this.selectionKey = parentSelectionKey === undefined ? this.name : `${parentSelectionKey}_${this.name}`;\r\n this._renderer = category.renderer;\r\n\r\n // Even though categories are nested and have their own depth, categorized properties depth is counted starting with\r\n // the parent category.\r\n const categoryRecords = recordsDict[category.name] ?? [];\r\n this._children = categoryRecords.map(\r\n (value) => gridItemFactory.createCategorizedProperty(value, this.selectionKey, this.selectionKey, 0),\r\n );\r\n\r\n this.lastInNumberOfCategories = -1;\r\n }\r\n\r\n public get derivedCategory(): PropertyCategory {\r\n return {\r\n name: this.name,\r\n label: this.label,\r\n expand: this.isExpanded,\r\n renderer: this._renderer,\r\n };\r\n }\r\n\r\n public get isRootCategory(): boolean {\r\n return this.depth === 0;\r\n }\r\n\r\n public override get lastInNumberOfCategories(): number {\r\n return this._lastInNumberOfCategories;\r\n }\r\n\r\n public override set lastInNumberOfCategories(value: number) {\r\n this._lastInNumberOfCategories = value + 1;\r\n }\r\n\r\n public getSelf() {\r\n return this;\r\n }\r\n\r\n public getChildCategories(): IMutableGridCategoryItem[] {\r\n return [];\r\n }\r\n\r\n public getDescendantCategoriesAndSelf(): IMutableGridCategoryItem[] {\r\n return [this];\r\n }\r\n\r\n public getChildren(): IMutableFlatGridItem[] {\r\n return this._children;\r\n }\r\n\r\n public override getVisibleDescendantsAndSelf(): IMutableFlatGridItem[] {\r\n return [this];\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"MutableCustomGridCategory.js","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.ts"],"names":[],"mappings":";;;AAKA,+DAE+B;AAI/B,gBAAgB;AAChB,MAAa,yBAA0B,SAAQ,iDAA2B;IASxE,YACE,QAA0B,EAC1B,WAAgC,EAChC,eAAwC,EACxC,kBAAsC,EACtC,KAAa;;QAEb,KAAK,CAAC,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;QAZvC,SAAI,GAAG,sCAAgB,CAAC,QAAiB,CAAC;QAcxD,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;QAC1B,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,MAAM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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\nimport { PropertyCategory } from \"../../PropertyDataProvider\";\r\nimport {\r\n FlatGridItemType, IMutableCategorizedPropertyItem, IMutableFlatGridItem, IMutableGridCategoryItem, MutableFlatPropertyGridItem,\r\n} from \"./MutableFlatGridItem\";\r\nimport { CategoryRecordsDict } from \"./MutableGridCategory\";\r\nimport { IMutableGridItemFactory } from \"./MutableGridItemFactory\";\r\n\r\n/** @internal */\r\nexport class MutableCustomGridCategory extends MutableFlatPropertyGridItem implements IMutableGridCategoryItem {\r\n private readonly _children: IMutableCategorizedPropertyItem[];\r\n private readonly _renderer: PropertyCategory[\"renderer\"];\r\n\r\n public readonly type = FlatGridItemType.Category as const;\r\n public readonly label: string;\r\n public readonly name: string;\r\n public readonly selectionKey: string;\r\n\r\n public constructor(\r\n category: PropertyCategory,\r\n recordsDict: CategoryRecordsDict,\r\n gridItemFactory: IMutableGridItemFactory,\r\n parentSelectionKey: string | undefined,\r\n depth: number,\r\n ) {\r\n super(depth, parentSelectionKey, parentSelectionKey);\r\n\r\n this.name = category.name;\r\n this.label = category.label;\r\n this.isExpanded = category.expand;\r\n this.selectionKey = parentSelectionKey === undefined ? this.name : `${parentSelectionKey}_${this.name}`;\r\n this._renderer = category.renderer;\r\n\r\n // Even though categories are nested and have their own depth, categorized properties depth is counted starting with\r\n // the parent category.\r\n const categoryRecords = recordsDict[category.name] ?? [];\r\n this._children = categoryRecords.map(\r\n (value) => gridItemFactory.createCategorizedProperty(value, this.selectionKey, this.selectionKey, 0),\r\n );\r\n\r\n this.lastInNumberOfCategories = -1;\r\n }\r\n\r\n public get derivedCategory(): PropertyCategory {\r\n return {\r\n name: this.name,\r\n label: this.label,\r\n expand: this.isExpanded,\r\n renderer: this._renderer,\r\n };\r\n }\r\n\r\n public get isRootCategory(): boolean {\r\n return this.depth === 0;\r\n }\r\n\r\n public override get lastInNumberOfCategories(): number {\r\n return this._lastInNumberOfCategories;\r\n }\r\n\r\n public override set lastInNumberOfCategories(value: number) {\r\n this._lastInNumberOfCategories = value + 1;\r\n }\r\n\r\n public getSelf() {\r\n return this;\r\n }\r\n\r\n public getChildren(): IMutableFlatGridItem[] {\r\n return this._children;\r\n }\r\n\r\n public override getVisibleDescendantsAndSelf(): IMutableFlatGridItem[] {\r\n return [this];\r\n }\r\n}\r\n"]}
@@ -104,14 +104,6 @@ export interface IMutableGridCategoryItem extends IMutableFlatPropertyGridItem {
104
104
  name: string;
105
105
  derivedCategory: PropertyCategory;
106
106
  isRootCategory: boolean;
107
- /**
108
- * @deprecated in 3.1. Use [[getChildren]] and filter categories yourself. Do not use this method to mutate the grid model, as this may lead to unexpected outcomes.
109
- */
110
- getChildCategories(): IMutableGridCategoryItem[];
111
- /**
112
- * @deprecated in 3.1. Use [[getDescendantsAndSelf]] and filter categories yourself. Do not use this method to mutate the grid model, as this may lead to unexpected outcomes.
113
- */
114
- getDescendantCategoriesAndSelf(): IMutableGridCategoryItem[];
115
107
  }
116
108
  /**
117
109
  * Data structure which describes methods and properties to be held by Mutable CategorizedPropertyItems
@@ -1 +1 @@
1
- {"version":3,"file":"MutableFlatGridItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAuB,cAAc,EAAuB,MAAM,uBAAuB,CAAC;AACjG,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;;;;GAKG;AACH,oBAAY,gBAAgB;IAC1B,QAAQ,IAAA;IACR,SAAS,IAAA;IACT,KAAK,IAAA;IACL,MAAM,IAAA;CACP;AAED;;;GAGG;AACH,oBAAY,wBAAwB,GAAG,gBAAgB,CAAC,KAAK,GAA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CAAC;CAClD;AAED;;;GAGG;AACH,oBAAY,oBAAoB,GAAG,+BAA+B,GAAG,wBAAwB,CAAC;AAE9F;;;GAGG;AACH,8BAAsB,0BAA2B,SAAQ,2BAA4B,YAAW,OAAO,CAAC,+BAA+B,CAAC;IACtI,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,aAAa,CAAS;gBAG5B,IAAI,EAAE,wBAAwB,EAC9B,MAAM,EAAE,cAAc,EACtB,kBAAkB,EAAE,MAAM,EAC1B,0BAA0B,EAAE,MAAM,EAClC,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,MAAM,EACrB,oBAAoB,CAAC,EAAE,MAAM;IAkB/B,SAAyB,IAAI,EAAE,wBAAwB,CAAC;aAC/B,WAAW,IAAI,+BAA+B,EAAE;IAEzE;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAe/B;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAQ7B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAQlB,OAAO,IAAI,+BAA+B;IAIjD,IAAoB,0BAA0B,WAE7C;IAED,IAAoB,kBAAkB,WAErC;IAED;;OAEG;IACH,IAAW,YAAY,WAEtB;IAED,IAAW,KAAK,WAEf;IAED;;OAEG;IACH,IAAW,aAAa,mBAEvB;CACF"}
1
+ {"version":3,"file":"MutableFlatGridItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAuB,cAAc,EAAuB,MAAM,uBAAuB,CAAC;AACjG,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;;;;GAKG;AACH,oBAAY,gBAAgB;IAC1B,QAAQ,IAAA;IACR,SAAS,IAAA;IACT,KAAK,IAAA;IACL,MAAM,IAAA;CACP;AAED;;;GAGG;AACH,oBAAY,w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AwB,CAAC;AAE9F;;;GAGG;AACH,8BAAsB,0BAA2B,SAAQ,2BAA4B,YAAW,OAAO,CAAC,+BAA+B,CAAC;IACtI,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,aAAa,CAAS;gBAG5B,IAAI,EAAE,wBAAwB,EAC9B,MAAM,EAAE,cAAc,EACtB,kBAAkB,EAAE,MAAM,EAC1B,0BAA0B,EAAE,MAAM,EAClC,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,MAAM,EACrB,oBAAoB,CAAC,EAAE,MAAM;IAkB/B,SAAyB,IAAI,EAAE,wBAAwB,CAAC;aAC/B,WAAW,IAAI,+BAA+B,EAAE;IAEzE;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAe/B;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAQ7B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAQlB,OAAO,IAAI,+BAA+B;IAIjD,IAAoB,0BAA0B,WAE7C;IAED,IAAoB,kBAAkB,WAErC;IAED;;OAEG;IACH,IAAW,YAAY,WAEtB;IAED,IAAW,KAAK,WAEf;IAED;;OAEG;IACH,IAAW,aAAa,mBAEvB;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"MutableFlatGridItem.js","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.ts"],"names":[],"mappings":";;;;;;;AAAA;;;+FAG+F;AAC/F;;GAEG;AACH,iCAAkC;AAClC,sDAA8B;AAC9B,0DAAiG;AAGjG;;;;;GAKG;AACH,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,+DAAQ,CAAA;IACR,iEAAS,CAAA;IACT,yDAAK,CAAA;IACL,2DAAM,CAAA;AACR,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B;AA6BD;;;GAGG;AACH,MAAsB,2BAA2B;IAQ/C,YAA2B,MAAc,EAAU,mBAAuC,EAAU,2BAA+C;QAAx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AAC,CAAC;IAC1C,CAAC;IAEM,OAAO;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAoB,0BAA0B;QAC5C,OAAO,KAAK,CAAC,0BAA2B,CAAC;IAC3C,CAAC;IAED,IAAoB,kBAAkB;QACpC,OAAO,KAAK,CAAC,kBAAmB,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,YAAY,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;CACF;AA1GD,gEA0GC","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 PropertyGrid\r\n */\r\nimport { immerable } from \"immer\";\r\nimport shortid from \"shortid\";\r\nimport { PropertyDescription, PropertyRecord, PropertyValueFormat } from \"@itwin/appui-abstract\";\r\nimport { PropertyCategory } from \"../../PropertyDataProvider\";\r\n\r\n/**\r\n * Types of FlatGridItems for differentiating what property FlatGridItem is wrapping.\r\n * Category for PropertyCategory\r\n * (Primitive, Array, Struct) for PropertyRecord with valueFormats: (Primitive, Array, Struct)\r\n * @public\r\n */\r\nexport enum FlatGridItemType {\r\n Category,\r\n Primitive,\r\n Array,\r\n Struct,\r\n}\r\n\r\n/**\r\n * Type which extracts FlatGridItemTypes relevant for working with CategorizedProperties\r\n * @public\r\n */\r\nexport type CategorizedPropertyTypes = FlatGridItemType.Array | FlatGridItemType.Primitive | FlatGridItemType.Struct;\r\n\r\n/**\r\n * Base mutable data structure defining common methods and properties for both CategorizedProperties and GridCategoryItems\r\n * @public\r\n */\r\nexport interface IMutableFlatPropertyGridItem {\r\n readonly type: FlatGridItemType;\r\n readonly key: string;\r\n readonly selectionKey: string;\r\n readonly parentSelectionKey: string | undefined;\r\n readonly parentCategorySelectionKey: string | undefined;\r\n readonly depth: number;\r\n readonly label: string;\r\n lastInNumberOfCategories: number;\r\n isLastInRootCategory: boolean;\r\n isExpanded: boolean;\r\n getDescendantsAndSelf(): IMutableFlatGridItem[];\r\n getVisibleDescendantsAndSelf(): IMutableFlatGridItem[];\r\n getChildren(): IMutableFlatGridItem[];\r\n getLastVisibleDescendantOrSelf(): IMutableFlatGridItem;\r\n}\r\n\r\n/**\r\n * Base class for all FlatPropertyGrid items\r\n * @public\r\n */\r\nexport abstract class MutableFlatPropertyGridItem implements IMutableFlatPropertyGridItem {\r\n public [immerable] = true;\r\n\r\n public readonly key: string = shortid.generate();\r\n protected _isExpanded: boolean = false;\r\n protected _lastInNumberOfCategories: number = 0;\r\n protected _isLastInRootCategory: boolean = false;\r\n\r\n public constructor(private _depth: number, private _parentSelectionKey: string | undefined, private _parentCategorySelectionKey: string | undefined) {\r\n if (this._depth < 0)\r\n throw new Error(\"Depth cannot be negative\");\r\n }\r\n\r\n public abstract type: FlatGridItemType;\r\n public abstract label: string;\r\n public abstract selectionKey: string;\r\n\r\n public get depth() {\r\n return this._depth;\r\n }\r\n\r\n public get parentSelectionKey() {\r\n return this._parentSelectionKey;\r\n }\r\n\r\n public get parentCategorySelectionKey() {\r\n return this._parentCategorySelectionKey;\r\n }\r\n\r\n public get isExpanded() {\r\n return this._isExpanded;\r\n }\r\n\r\n public set isExpanded(value: boolean) {\r\n this._isExpanded = value;\r\n }\r\n\r\n public abstract getChildren(): IMutableFlatGridItem[];\r\n public abstract getSelf(): IMutableFlatGridItem;\r\n\r\n protected getDescendants() {\r\n const descendants: IMutableFlatGridItem[] = [];\r\n this.getChildren().forEach((child) => descendants.push(...child.getDescendantsAndSelf()));\r\n\r\n return descendants;\r\n }\r\n\r\n /**\r\n * Gets a flat list of all FlatGridItems beneath this flat grid item including itself in depth first visiting order.\r\n */\r\n public getDescendantsAndSelf(): IMutableFlatGridItem[] {\r\n return [this.getSelf(), ...this.getDescendants()];\r\n }\r\n\r\n /**\r\n * Gets a flat list of visible FlatGridItems beneath this flat grid item.\r\n */\r\n public getVisibleDescendants(): IMutableFlatGridItem[] {\r\n const descendants: IMutableFlatGridItem[] = [];\r\n if (this.isExpanded)\r\n this.getChildren().forEach((child) => descendants.push(...child.getVisibleDescendantsAndSelf()));\r\n return descendants;\r\n }\r\n\r\n /**\r\n * Gets a flat list of visible FlatGridItems beneath this flat grid item and itself in depth first visiting order.\r\n */\r\n public getVisibleDescendantsAndSelf(): IMutableFlatGridItem[] {\r\n return [this.getSelf(), ...this.getVisibleDescendants()];\r\n }\r\n\r\n /**\r\n * @returns self if item is not expanded, last visible descendant of this item otherwise.\r\n */\r\n public getLastVisibleDescendantOrSelf(): IMutableFlatGridItem {\r\n if (!this.isExpanded)\r\n return this.getSelf();\r\n\r\n const children = this.getChildren();\r\n if (children.length < 1)\r\n return this.getSelf();\r\n\r\n return children[children.length - 1].getLastVisibleDescendantOrSelf();\r\n }\r\n\r\n /**\r\n * Sets lastInNumberOfCategories value and sends it down to this items last child\r\n * @internal\r\n */\r\n public get lastInNumberOfCategories(): number {\r\n if (this.isExpanded && this.getChildren().length > 0)\r\n return 0;\r\n\r\n return this._lastInNumberOfCategories;\r\n }\r\n\r\n public set lastInNumberOfCategories(value: number) {\r\n this._lastInNumberOfCategories = value;\r\n const children = this.getChildren();\r\n if (children.length < 1)\r\n return;\r\n\r\n children[children.length - 1].lastInNumberOfCategories = value;\r\n }\r\n\r\n /**\r\n * Gets and sets isLastInRootCategory value and sends it down to this items last child\r\n * @internal\r\n */\r\n public get isLastInRootCategory(): boolean {\r\n if (this.isExpanded && this.getChildren().length > 0)\r\n return false;\r\n\r\n return this._isLastInRootCategory;\r\n }\r\n\r\n public set isLastInRootCategory(value: boolean) {\r\n this._isLastInRootCategory = value;\r\n const children = this.getChildren();\r\n if (children.length < 1)\r\n return;\r\n\r\n children[children.length - 1].isLastInRootCategory = value;\r\n }\r\n}\r\n\r\n/**\r\n * Data structure which describes methods and properties to be held by Mutable GridCategoryItems\r\n * @public\r\n */\r\nexport interface IMutableGridCategoryItem extends IMutableFlatPropertyGridItem {\r\n type: FlatGridItemType.Category;\r\n name: string;\r\n derivedCategory: PropertyCategory;\r\n isRootCategory: boolean;\r\n\r\n /**\r\n * @deprecated in 3.1. Use [[getChildren]] and filter categories yourself. Do not use this method to mutate the grid model, as this may lead to unexpected outcomes.\r\n */\r\n getChildCategories(): IMutableGridCategoryItem[];\r\n /**\r\n * @deprecated in 3.1. Use [[getDescendantsAndSelf]] and filter categories yourself. Do not use this method to mutate the grid model, as this may lead to unexpected outcomes.\r\n */\r\n getDescendantCategoriesAndSelf(): IMutableGridCategoryItem[];\r\n}\r\n\r\n/**\r\n * Data structure which describes methods and properties to be held by Mutable CategorizedPropertyItems\r\n * @public\r\n */\r\nexport interface IMutableCategorizedPropertyItem extends IMutableFlatPropertyGridItem {\r\n readonly type: CategorizedPropertyTypes;\r\n readonly derivedRecord: PropertyRecord;\r\n readonly parentCategorySelectionKey: string;\r\n readonly parentSelectionKey: string;\r\n\r\n getChildren(): IMutableCategorizedPropertyItem[];\r\n}\r\n\r\n/**\r\n * Type which describes mutable GridCategoryItem or CategorizedProperty\r\n * @public\r\n */\r\nexport type IMutableFlatGridItem = IMutableCategorizedPropertyItem | IMutableGridCategoryItem;\r\n\r\n/**\r\n * Base class for all Mutable CategorizedProperties\r\n * @public\r\n */\r\nexport abstract class MutableCategorizedProperty extends MutableFlatPropertyGridItem implements Partial<IMutableCategorizedPropertyItem> {\r\n private _derivedRecord: PropertyRecord;\r\n private _selectionKey: string;\r\n\r\n public constructor(\r\n type: CategorizedPropertyTypes,\r\n record: PropertyRecord,\r\n parentSelectionKey: string,\r\n parentCategorySelectionKey: string,\r\n depth: number,\r\n overrideName?: string,\r\n overrideDisplayLabel?: string,\r\n ) {\r\n super(depth, parentSelectionKey, parentCategorySelectionKey);\r\n\r\n const recordType = this.valueTypeToFlatGridType(record.value.valueFormat);\r\n if (recordType !== type) {\r\n const expectedTypeStr = FlatGridItemType[type];\r\n const actualTypeStr = FlatGridItemType[recordType];\r\n throw Error(`Record with incorrect value format passed to property: expected ${expectedTypeStr}, got ${actualTypeStr}`);\r\n }\r\n\r\n const overridenProperty = this.makeOverridenProperty(record.property, overrideName, overrideDisplayLabel);\r\n this._derivedRecord = this.makeDerivedRecord(record, overridenProperty);\r\n\r\n this._selectionKey = `${this.parentSelectionKey}_${this.derivedRecord.property.name}`;\r\n this._isExpanded = !!record.autoExpand;\r\n }\r\n\r\n public abstract override type: CategorizedPropertyTypes;\r\n public abstract override getChildren(): IMutableCategorizedPropertyItem[];\r\n\r\n /**\r\n * Maps PropertyRecord valueFormat to FlatGridItemType\r\n * @param valueType valueFormat to map\r\n * @returns mapped FlatGridItemType\r\n */\r\n private valueTypeToFlatGridType(valueType: PropertyValueFormat) {\r\n switch (valueType) {\r\n case PropertyValueFormat.Primitive:\r\n return FlatGridItemType.Primitive;\r\n case PropertyValueFormat.Array:\r\n return FlatGridItemType.Array;\r\n case PropertyValueFormat.Struct:\r\n return FlatGridItemType.Struct;\r\n /* istanbul ignore next */\r\n default:\r\n const unhandledType: never = valueType;\r\n throw Error(`Property Value Format not handled: ${unhandledType}`);\r\n }\r\n }\r\n\r\n /**\r\n * Make new property description with overriden fields.\r\n * @param propertyDescription property description to override.\r\n * @param overrideName property description name to override.\r\n * @param overrideDisplay property description display name to override.\r\n */\r\n private makeOverridenProperty(propertyDescription: PropertyDescription, overrideName?: string, overrideDisplay?: string): PropertyDescription {\r\n const { name, displayLabel, ...property } = { ...propertyDescription };\r\n const newName = overrideName ?? name;\r\n const newDisplayLabel = overrideDisplay ?? displayLabel;\r\n\r\n return { ...property, name: newName, displayLabel: newDisplayLabel };\r\n }\r\n\r\n /**\r\n * Gets derived property record that has it's property description field overriden\r\n */\r\n private makeDerivedRecord(record: PropertyRecord, overridenPropertyDescription: PropertyDescription) {\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n const { value, property, ...others } = record;\r\n const newRecord = new PropertyRecord(value, overridenPropertyDescription);\r\n\r\n return Object.assign(newRecord, others);\r\n }\r\n\r\n public getSelf(): IMutableCategorizedPropertyItem {\r\n return this;\r\n }\r\n\r\n public override get parentCategorySelectionKey() {\r\n return super.parentCategorySelectionKey!;\r\n }\r\n\r\n public override get parentSelectionKey() {\r\n return super.parentSelectionKey!;\r\n }\r\n\r\n /**\r\n * Unique selection key made of parent selectionKey and this property name.\r\n */\r\n public get selectionKey() {\r\n return this._selectionKey;\r\n }\r\n\r\n public get label() {\r\n return this._derivedRecord.property.displayLabel;\r\n }\r\n\r\n /**\r\n * Record with overriden property description.\r\n */\r\n public get derivedRecord() {\r\n return this._derivedRecord;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"MutableFlatGridItem.js","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.ts"],"names":[],"mappings":";;;;;;;AAAA;;;+FAG+F;AAC/F;;GAEG;AACH,iCAAkC;AAClC,sDAA8B;AAC9B,0DAAiG;AAGjG;;;;;GAKG;AACH,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,+DAAQ,CAAA;IACR,iEAAS,CAAA;IACT,yDAAK,CAAA;IACL,2DAAM,CAAA;AACR,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B;AA6BD;;;GAGG;AACH,MAAsB,2BAA2B;IAQ/C,YAA2B,MAAc,EAAU,mBAAuC,EAAU,2BAA+C;QAAxH,WAAM,GAAN,MAAM,CAAQ;QAAU,wBAAmB,GAAnB,mBAAmB,CAAoB;QAAU,gCAA2B,GAA3B,2BAA2B,CAAoB;QAP5I,QAAW,GAAG,IAAI,CAAC;QAEV,QAAG,GAAW,iBAAO,CAAC,QAAQ,EAAE,CAAC;QACvC,gBAAW,GAAY,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IACnC,CAAC;IAED;;OAEG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,YAAY,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;CACF;AA1GD,gEA0GC","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 PropertyGrid\r\n */\r\nimport { immerable } from \"immer\";\r\nimport shortid from \"shortid\";\r\nimport { PropertyDescription, PropertyRecord, PropertyValueFormat } from \"@itwin/appui-abstract\";\r\nimport { PropertyCategory } from \"../../PropertyDataProvider\";\r\n\r\n/**\r\n * Types of FlatGridItems for differentiating what property FlatGridItem is wrapping.\r\n * Category for PropertyCategory\r\n * (Primitive, Array, Struct) for PropertyRecord with valueFormats: (Primitive, Array, Struct)\r\n * @public\r\n */\r\nexport enum FlatGridItemType {\r\n Category,\r\n Primitive,\r\n Array,\r\n Struct,\r\n}\r\n\r\n/**\r\n * Type which extracts FlatGridItemTypes relevant for working with CategorizedProperties\r\n * @public\r\n */\r\nexport type CategorizedPropertyTypes = FlatGridItemType.Array | FlatGridItemType.Primitive | FlatGridItemType.Struct;\r\n\r\n/**\r\n * Base mutable data structure defining common methods and properties for both CategorizedProperties and GridCategoryItems\r\n * @public\r\n */\r\nexport interface IMutableFlatPropertyGridItem {\r\n readonly type: FlatGridItemType;\r\n readonly key: string;\r\n readonly selectionKey: string;\r\n readonly parentSelectionKey: string | undefined;\r\n readonly parentCategorySelectionKey: string | undefined;\r\n readonly depth: number;\r\n readonly label: string;\r\n lastInNumberOfCategories: number;\r\n isLastInRootCategory: boolean;\r\n isExpanded: boolean;\r\n getDescendantsAndSelf(): IMutableFlatGridItem[];\r\n getVisibleDescendantsAndSelf(): IMutableFlatGridItem[];\r\n getChildren(): IMutableFlatGridItem[];\r\n getLastVisibleDescendantOrSelf(): IMutableFlatGridItem;\r\n}\r\n\r\n/**\r\n * Base class for all FlatPropertyGrid items\r\n * @public\r\n */\r\nexport abstract class MutableFlatPropertyGridItem implements IMutableFlatPropertyGridItem {\r\n public [immerable] = true;\r\n\r\n public readonly key: string = shortid.generate();\r\n protected _isExpanded: boolean = false;\r\n protected _lastInNumberOfCategories: number = 0;\r\n protected _isLastInRootCategory: boolean = false;\r\n\r\n public constructor(private _depth: number, private _parentSelectionKey: string | undefined, private _parentCategorySelectionKey: string | undefined) {\r\n if (this._depth < 0)\r\n throw new Error(\"Depth cannot be negative\");\r\n }\r\n\r\n public abstract type: FlatGridItemType;\r\n public abstract label: string;\r\n public abstract selectionKey: string;\r\n\r\n public get depth() {\r\n return this._depth;\r\n }\r\n\r\n public get parentSelectionKey() {\r\n return this._parentSelectionKey;\r\n }\r\n\r\n public get parentCategorySelectionKey() {\r\n return this._parentCategorySelectionKey;\r\n }\r\n\r\n public get isExpanded() {\r\n return this._isExpanded;\r\n }\r\n\r\n public set isExpanded(value: boolean) {\r\n this._isExpanded = value;\r\n }\r\n\r\n public abstract getChildren(): IMutableFlatGridItem[];\r\n public abstract getSelf(): IMutableFlatGridItem;\r\n\r\n protected getDescendants() {\r\n const descendants: IMutableFlatGridItem[] = [];\r\n this.getChildren().forEach((child) => descendants.push(...child.getDescendantsAndSelf()));\r\n\r\n return descendants;\r\n }\r\n\r\n /**\r\n * Gets a flat list of all FlatGridItems beneath this flat grid item including itself in depth first visiting order.\r\n */\r\n public getDescendantsAndSelf(): IMutableFlatGridItem[] {\r\n return [this.getSelf(), ...this.getDescendants()];\r\n }\r\n\r\n /**\r\n * Gets a flat list of visible FlatGridItems beneath this flat grid item.\r\n */\r\n public getVisibleDescendants(): IMutableFlatGridItem[] {\r\n const descendants: IMutableFlatGridItem[] = [];\r\n if (this.isExpanded)\r\n this.getChildren().forEach((child) => descendants.push(...child.getVisibleDescendantsAndSelf()));\r\n return descendants;\r\n }\r\n\r\n /**\r\n * Gets a flat list of visible FlatGridItems beneath this flat grid item and itself in depth first visiting order.\r\n */\r\n public getVisibleDescendantsAndSelf(): IMutableFlatGridItem[] {\r\n return [this.getSelf(), ...this.getVisibleDescendants()];\r\n }\r\n\r\n /**\r\n * @returns self if item is not expanded, last visible descendant of this item otherwise.\r\n */\r\n public getLastVisibleDescendantOrSelf(): IMutableFlatGridItem {\r\n if (!this.isExpanded)\r\n return this.getSelf();\r\n\r\n const children = this.getChildren();\r\n if (children.length < 1)\r\n return this.getSelf();\r\n\r\n return children[children.length - 1].getLastVisibleDescendantOrSelf();\r\n }\r\n\r\n /**\r\n * Sets lastInNumberOfCategories value and sends it down to this items last child\r\n * @internal\r\n */\r\n public get lastInNumberOfCategories(): number {\r\n if (this.isExpanded && this.getChildren().length > 0)\r\n return 0;\r\n\r\n return this._lastInNumberOfCategories;\r\n }\r\n\r\n public set lastInNumberOfCategories(value: number) {\r\n this._lastInNumberOfCategories = value;\r\n const children = this.getChildren();\r\n if (children.length < 1)\r\n return;\r\n\r\n children[children.length - 1].lastInNumberOfCategories = value;\r\n }\r\n\r\n /**\r\n * Gets and sets isLastInRootCategory value and sends it down to this items last child\r\n * @internal\r\n */\r\n public get isLastInRootCategory(): boolean {\r\n if (this.isExpanded && this.getChildren().length > 0)\r\n return false;\r\n\r\n return this._isLastInRootCategory;\r\n }\r\n\r\n public set isLastInRootCategory(value: boolean) {\r\n this._isLastInRootCategory = value;\r\n const children = this.getChildren();\r\n if (children.length < 1)\r\n return;\r\n\r\n children[children.length - 1].isLastInRootCategory = value;\r\n }\r\n}\r\n\r\n/**\r\n * Data structure which describes methods and properties to be held by Mutable GridCategoryItems\r\n * @public\r\n */\r\nexport interface IMutableGridCategoryItem extends IMutableFlatPropertyGridItem {\r\n type: FlatGridItemType.Category;\r\n name: string;\r\n derivedCategory: PropertyCategory;\r\n isRootCategory: boolean;\r\n}\r\n\r\n/**\r\n * Data structure which describes methods and properties to be held by Mutable CategorizedPropertyItems\r\n * @public\r\n */\r\nexport interface IMutableCategorizedPropertyItem extends IMutableFlatPropertyGridItem {\r\n readonly type: CategorizedPropertyTypes;\r\n readonly derivedRecord: PropertyRecord;\r\n readonly parentCategorySelectionKey: string;\r\n readonly parentSelectionKey: string;\r\n\r\n getChildren(): IMutableCategorizedPropertyItem[];\r\n}\r\n\r\n/**\r\n * Type which describes mutable GridCategoryItem or CategorizedProperty\r\n * @public\r\n */\r\nexport type IMutableFlatGridItem = IMutableCategorizedPropertyItem | IMutableGridCategoryItem;\r\n\r\n/**\r\n * Base class for all Mutable CategorizedProperties\r\n * @public\r\n */\r\nexport abstract class MutableCategorizedProperty extends MutableFlatPropertyGridItem implements Partial<IMutableCategorizedPropertyItem> {\r\n private _derivedRecord: PropertyRecord;\r\n private _selectionKey: string;\r\n\r\n public constructor(\r\n type: CategorizedPropertyTypes,\r\n record: PropertyRecord,\r\n parentSelectionKey: string,\r\n parentCategorySelectionKey: string,\r\n depth: number,\r\n overrideName?: string,\r\n overrideDisplayLabel?: string,\r\n ) {\r\n super(depth, parentSelectionKey, parentCategorySelectionKey);\r\n\r\n const recordType = this.valueTypeToFlatGridType(record.value.valueFormat);\r\n if (recordType !== type) {\r\n const expectedTypeStr = FlatGridItemType[type];\r\n const actualTypeStr = FlatGridItemType[recordType];\r\n throw Error(`Record with incorrect value format passed to property: expected ${expectedTypeStr}, got ${actualTypeStr}`);\r\n }\r\n\r\n const overridenProperty = this.makeOverridenProperty(record.property, overrideName, overrideDisplayLabel);\r\n this._derivedRecord = this.makeDerivedRecord(record, overridenProperty);\r\n\r\n this._selectionKey = `${this.parentSelectionKey}_${this.derivedRecord.property.name}`;\r\n this._isExpanded = !!record.autoExpand;\r\n }\r\n\r\n public abstract override type: CategorizedPropertyTypes;\r\n public abstract override getChildren(): IMutableCategorizedPropertyItem[];\r\n\r\n /**\r\n * Maps PropertyRecord valueFormat to FlatGridItemType\r\n * @param valueType valueFormat to map\r\n * @returns mapped FlatGridItemType\r\n */\r\n private valueTypeToFlatGridType(valueType: PropertyValueFormat) {\r\n switch (valueType) {\r\n case PropertyValueFormat.Primitive:\r\n return FlatGridItemType.Primitive;\r\n case PropertyValueFormat.Array:\r\n return FlatGridItemType.Array;\r\n case PropertyValueFormat.Struct:\r\n return FlatGridItemType.Struct;\r\n /* istanbul ignore next */\r\n default:\r\n const unhandledType: never = valueType;\r\n throw Error(`Property Value Format not handled: ${unhandledType}`);\r\n }\r\n }\r\n\r\n /**\r\n * Make new property description with overriden fields.\r\n * @param propertyDescription property description to override.\r\n * @param overrideName property description name to override.\r\n * @param overrideDisplay property description display name to override.\r\n */\r\n private makeOverridenProperty(propertyDescription: PropertyDescription, overrideName?: string, overrideDisplay?: string): PropertyDescription {\r\n const { name, displayLabel, ...property } = { ...propertyDescription };\r\n const newName = overrideName ?? name;\r\n const newDisplayLabel = overrideDisplay ?? displayLabel;\r\n\r\n return { ...property, name: newName, displayLabel: newDisplayLabel };\r\n }\r\n\r\n /**\r\n * Gets derived property record that has it's property description field overriden\r\n */\r\n private makeDerivedRecord(record: PropertyRecord, overridenPropertyDescription: PropertyDescription) {\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n const { value, property, ...others } = record;\r\n const newRecord = new PropertyRecord(value, overridenPropertyDescription);\r\n\r\n return Object.assign(newRecord, others);\r\n }\r\n\r\n public getSelf(): IMutableCategorizedPropertyItem {\r\n return this;\r\n }\r\n\r\n public override get parentCategorySelectionKey() {\r\n return super.parentCategorySelectionKey!;\r\n }\r\n\r\n public override get parentSelectionKey() {\r\n return super.parentSelectionKey!;\r\n }\r\n\r\n /**\r\n * Unique selection key made of parent selectionKey and this property name.\r\n */\r\n public get selectionKey() {\r\n return this._selectionKey;\r\n }\r\n\r\n public get label() {\r\n return this._derivedRecord.property.displayLabel;\r\n }\r\n\r\n /**\r\n * Record with overriden property description.\r\n */\r\n public get derivedRecord() {\r\n return this._derivedRecord;\r\n }\r\n}\r\n"]}
@@ -18,7 +18,6 @@ export interface CategoryRecordsDict {
18
18
  */
19
19
  export declare class MutableGridCategory extends MutableFlatPropertyGridItem implements IMutableGridCategoryItem {
20
20
  private _children;
21
- private _childCategories;
22
21
  private _selectionKey;
23
22
  private _category;
24
23
  constructor(category: PropertyCategory, recordsDict: CategoryRecordsDict, gridItemFactory: IMutableGridItemFactory, parentSelectionKey?: string, depth?: number);
@@ -33,11 +32,6 @@ export declare class MutableGridCategory extends MutableFlatPropertyGridItem imp
33
32
  get derivedCategory(): PropertyCategory;
34
33
  getSelf(): this;
35
34
  getChildren(): IMutableFlatGridItem[];
36
- getChildCategories(): IMutableGridCategoryItem[];
37
- /**
38
- * Gets a flat list of all categories beneath this category and itself in depth first visiting order.
39
- */
40
- getDescendantCategoriesAndSelf(): IMutableGridCategoryItem[];
41
35
  /**
42
36
  * Gets and Sets lastInNumberOfCategories.
43
37
  * Setter increments set value by one to account self as category.
@@ -1 +1 @@
1
- {"version":3,"file":"MutableGridCategory.d.ts","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/MutableGridCategory.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACtI,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,CAAC,YAAY,EAAE,MAAM,GAAG,cAAc,EAAE,CAAC;CAC1C;AAED;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,2BAA4B,YAAW,wBAAwB;IACtG,OAAO,CAAC,SAAS,CAAyB;IAC1C,OAAO,CAAC,gBAAgB,CAA6B;IACrD,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,SAAS,CAAmB;gBAGlC,QAAQ,EAAE,gBAAgB,EAC1B,WAAW,EAAE,mBAAmB,EAChC,eAAe,EAAE,uBAAuB,EACxC,kBAAkB,CAAC,EAAE,MAAM,EAC3B,KAAK,GAAE,MAAU;IA0BnB;;OAEG;IACH,IAAW,cAAc,YAExB;IAED,IAAW,YAAY,WAEtB;IAED,IAAW,IAAI,IAAI,gBAAgB,CAAC,QAAQ,CAE3C;IAED,IAAW,IAAI,WAEd;IAED,IAAW,KAAK,WAEf;IAED,IAAW,eAAe,IAAI,gBAAgB,CAE7C;IAEM,OAAO;IAIP,WAAW,IAAI,oBAAoB,EAAE;IAIrC,kBAAkB;IAIzB;;OAEG;IACI,8BAA8B,IAAI,wBAAwB,EAAE;IAQnE;;;;;OAKG;IACH,IAAoB,wBAAwB,IAAI,MAAM,CAKrD;IAED,IAAoB,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAEzD;CACF"}
1
+ {"version":3,"file":"MutableGridCategory.d.ts","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/MutableGridCategory.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACtI,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,CAAC,YAAY,EAAE,MAAM,GAAG,cAAc,EAAE,CAAC;CAC1C;AAED;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,2BAA4B,YAAW,wBAAwB;IACtG,OAAO,CAAC,SAAS,CAAyB;IAC1C,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,SAAS,CAAmB;gBAGlC,QAAQ,EAAE,gBAAgB,EAC1B,WAAW,EAAE,mBAAmB,EAChC,eAAe,EAAE,uBAAuB,EACxC,kBAAkB,CAAC,EAAE,MAAM,EAC3B,KAAK,GAAE,MAAU;IA0BnB;;OAEG;IACH,IAAW,cAAc,YAExB;IAED,IAAW,YAAY,WAEtB;IAED,IAAW,IAAI,IAAI,gBAAgB,CAAC,QAAQ,CAE3C;IAED,IAAW,IAAI,WAEd;IAED,IAAW,KAAK,WAEf;IAED,IAAW,eAAe,IAAI,gBAAgB,CAE7C;IAEM,OAAO;IAIP,WAAW,IAAI,oBAAoB,EAAE;IAI5C;;;;;OAKG;IACH,IAAoB,wBAAwB,IAAI,MAAM,CAKrD;IAED,IAAoB,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAEzD;CACF"}
@@ -24,8 +24,8 @@ class MutableGridCategory extends MutableFlatGridItem_1.MutableFlatPropertyGridI
24
24
  const categoryRecords = (_a = recordsDict[category.name]) !== null && _a !== void 0 ? _a : [];
25
25
  this._children = categoryRecords.map((value) => gridItemFactory.createCategorizedProperty(value, this.selectionKey, this.selectionKey, 0));
26
26
  const childCategories = (_b = category.childCategories) !== null && _b !== void 0 ? _b : [];
27
- this._childCategories = childCategories.map((childCategory) => gridItemFactory.createGridCategory(childCategory, recordsDict, this.selectionKey, this.depth + 1));
28
- this._children.push(...this._childCategories);
27
+ const child = childCategories.map((childCategory) => gridItemFactory.createGridCategory(childCategory, recordsDict, this.selectionKey, this.depth + 1));
28
+ this._children.push(...child);
29
29
  // Assign lastInNumberOfCategories and isLastInRootCategory for entire children hierarchy
30
30
  this.lastInNumberOfCategories = 0;
31
31
  this.isLastInRootCategory = this.isRootCategory;
@@ -57,18 +57,6 @@ class MutableGridCategory extends MutableFlatGridItem_1.MutableFlatPropertyGridI
57
57
  getChildren() {
58
58
  return this._children;
59
59
  }
60
- getChildCategories() {
61
- return this._childCategories;
62
- }
63
- /**
64
- * Gets a flat list of all categories beneath this category and itself in depth first visiting order.
65
- */
66
- getDescendantCategoriesAndSelf() {
67
- const descendants = [];
68
- // eslint-disable-next-line deprecation/deprecation
69
- this._childCategories.forEach((value) => descendants.push(...value.getDescendantCategoriesAndSelf()));
70
- return [this, ...descendants];
71
- }
72
60
  /**
73
61
  * Gets and Sets lastInNumberOfCategories.
74
62
  * Setter increments set value by one to account self as category.
@@ -1 +1 @@
1
- {"version":3,"file":"MutableGridCategory.js","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/MutableGridCategory.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAO/F,+DAAsI;AAWtI;;;GAGG;AACH,MAAa,mBAAoB,SAAQ,iDAA2B;IAMlE,YACE,QAA0B,EAC1B,WAAgC,EAChC,eAAwC,EACxC,kBAA2B,EAC3B,QAAgB,CAAC;;QAEjB,KAAK,CAAC,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;QACrD,IAAI,CAAC,SAAS,GAAG,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;QAEzF,IAAI,kBAAkB,KAAK,SAAS;YAClC,IAAI,CAAC,aAAa,GAAG,GAAG,kBAAkB,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;;YAE9D,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC;QAErC,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC;QAEnC,yIAAyI;QACzI,MAAM,eAAe,GAAG,MAAA,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;QACzD,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,eAAe,CAAC,yBAAy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CAAC;IAC/B,CAAC;IAED;;OAEG;IACI,8BAA8B;QACnC,MAAM,WAAW,GAA+B,EAAE,CAAC;QACnD,mDAAmD;QACnD,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAC;QAEtG,OAAO,CAAC,IAAI,EAAE,GAAG,WAAW,CAAC,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACH,IAAoB,wBAAwB;QAC1C,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,GAAG,CAAC;YAClD,OAAO,CAAC,CAAC;QAEX,OAAO,IAAI,CAAC,yBAAyB,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,IAAoB,wBAAwB,CAAC,KAAa;QACxD,KAAK,CAAC,wBAAwB,GAAG,KAAK,GAAG,CAAC,CAAC;IAC7C,CAAC;CACF;AAvGD,kDAuGC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module PropertyGrid\r\n */\r\nimport { PropertyRecord } from \"@itwin/appui-abstract\";\r\nimport { PropertyCategory } from \"../../PropertyDataProvider\";\r\nimport { FlatGridItemType, IMutableFlatGridItem, IMutableGridCategoryItem, MutableFlatPropertyGridItem } from \"./MutableFlatGridItem\";\r\nimport { IMutableGridItemFactory } from \"./MutableGridItemFactory\";\r\n\r\n/**\r\n * Category name to PropertyRecord[] key pair interface used to describe which records belong to which category.\r\n * @public\r\n */\r\nexport interface CategoryRecordsDict {\r\n [categoryName: string]: PropertyRecord[];\r\n}\r\n\r\n/**\r\n * Mutable wrapper object for PropertyCategory which provides methods for working with and managing category and record children hierarchies\r\n * @public\r\n */\r\nexport class MutableGridCategory extends MutableFlatPropertyGridItem implements IMutableGridCategoryItem {\r\n private _children: IMutableFlatGridItem[];\r\n private _childCategories: IMutableGridCategoryItem[];\r\n private _selectionKey: string;\r\n private _category: PropertyCategory;\r\n\r\n constructor(\r\n category: PropertyCategory,\r\n recordsDict: CategoryRecordsDict,\r\n gridItemFactory: IMutableGridItemFactory,\r\n parentSelectionKey?: string,\r\n depth: number = 0,\r\n ) {\r\n super(depth, parentSelectionKey, parentSelectionKey);\r\n this._category = { name: category.name, label: category.label, expand: category.expand };\r\n\r\n if (parentSelectionKey !== undefined)\r\n this._selectionKey = `${parentSelectionKey}_${category.name}`;\r\n else\r\n this._selectionKey = category.name;\r\n\r\n this._isExpanded = category.expand;\r\n\r\n // Even though categories are nested and have their own depth, categorized properties depth is counted starting with the parent category.\r\n const categoryRecords = recordsDict[category.name] ?? [];\r\n this._children = categoryRecords.map((value) => gridItemFactory.createCategorizedProperty(value, this.selectionKey, this.selectionKey, 0));\r\n\r\n const childCategories = category.childCategories ?? [];\r\n this._childCategories = childCategories.map((childCategory) => gridItemFactory.createGridCategory(childCategory, recordsDict, this.selectionKey, this.depth + 1));\r\n\r\n this._children.push(...this._childCategories);\r\n\r\n // Assign lastInNumberOfCategories and isLastInRootCategory for entire children hierarchy\r\n this.lastInNumberOfCategories = 0;\r\n this.isLastInRootCategory = this.isRootCategory;\r\n }\r\n\r\n /**\r\n * Category is considered to be root category if its depth is 0\r\n */\r\n public get isRootCategory() {\r\n return this.depth === 0;\r\n }\r\n\r\n public get selectionKey() {\r\n return this._selectionKey;\r\n }\r\n\r\n public get type(): FlatGridItemType.Category {\r\n return FlatGridItemType.Category;\r\n }\r\n\r\n public get name() {\r\n return this._category.name;\r\n }\r\n\r\n public get label() {\r\n return this._category.label;\r\n }\r\n\r\n public get derivedCategory(): PropertyCategory {\r\n return { ...this._category, expand: this.isExpanded };\r\n }\r\n\r\n public getSelf() {\r\n return this;\r\n }\r\n\r\n public getChildren(): IMutableFlatGridItem[] {\r\n return this._children;\r\n }\r\n\r\n public getChildCategories() {\r\n return this._childCategories;\r\n }\r\n\r\n /**\r\n * Gets a flat list of all categories beneath this category and itself in depth first visiting order.\r\n */\r\n public getDescendantCategoriesAndSelf(): IMutableGridCategoryItem[] {\r\n const descendants: IMutableGridCategoryItem[] = [];\r\n // eslint-disable-next-line deprecation/deprecation\r\n this._childCategories.forEach((value) => descendants.push(...value.getDescendantCategoriesAndSelf()));\r\n\r\n return [this, ...descendants];\r\n }\r\n\r\n /**\r\n * Gets and Sets lastInNumberOfCategories.\r\n * Setter increments set value by one to account self as category.\r\n * New value is sent down to this items last child\r\n * @internal\r\n */\r\n public override get lastInNumberOfCategories(): number {\r\n if (this.isExpanded && this.getChildren().length > 0)\r\n return 0;\r\n\r\n return this._lastInNumberOfCategories - 1;\r\n }\r\n\r\n public override set lastInNumberOfCategories(value: number) {\r\n super.lastInNumberOfCategories = value + 1;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"MutableGridCategory.js","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-items/MutableGridCategory.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAO/F,+DAAsI;AAWtI;;;GAGG;AACH,MAAa,mBAAoB,SAAQ,iDAA2B;IAKlE,YACE,QAA0B,EAC1B,WAAgC,EAChC,eAAwC,EACxC,kBAA2B,EAC3B,QAAgB,CAAC;;QAEjB,KAAK,CAAC,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;QACrD,IAAI,CAAC,SAAS,GAAG,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;QAEzF,IAAI,kBAAkB,KAAK,SAAS;YAClC,IAAI,CAAC,aAAa,GAAG,GAAG,kBAAkB,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;;YAE9D,IAAI,CAAC,aAAa,G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IAAW,eAAe;QACxB,OAAO,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC;IACxD,CAAC;IAEM,OAAO;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,WAAW;QAChB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED;;;;;OAKG;IACH,IAAoB,wBAAwB;QAC1C,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,GAAG,CAAC;YAClD,OAAO,CAAC,CAAC;QAEX,OAAO,IAAI,CAAC,yBAAyB,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,IAAoB,wBAAwB,CAAC,KAAa;QACxD,KAAK,CAAC,wBAAwB,GAAG,KAAK,GAAG,CAAC,CAAC;IAC7C,CAAC;CACF;AAvFD,kDAuFC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module PropertyGrid\r\n */\r\nimport { PropertyRecord } from \"@itwin/appui-abstract\";\r\nimport { PropertyCategory } from \"../../PropertyDataProvider\";\r\nimport { FlatGridItemType, IMutableFlatGridItem, IMutableGridCategoryItem, MutableFlatPropertyGridItem } from \"./MutableFlatGridItem\";\r\nimport { IMutableGridItemFactory } from \"./MutableGridItemFactory\";\r\n\r\n/**\r\n * Category name to PropertyRecord[] key pair interface used to describe which records belong to which category.\r\n * @public\r\n */\r\nexport interface CategoryRecordsDict {\r\n [categoryName: string]: PropertyRecord[];\r\n}\r\n\r\n/**\r\n * Mutable wrapper object for PropertyCategory which provides methods for working with and managing category and record children hierarchies\r\n * @public\r\n */\r\nexport class MutableGridCategory extends MutableFlatPropertyGridItem implements IMutableGridCategoryItem {\r\n private _children: IMutableFlatGridItem[];\r\n private _selectionKey: string;\r\n private _category: PropertyCategory;\r\n\r\n constructor(\r\n category: PropertyCategory,\r\n recordsDict: CategoryRecordsDict,\r\n gridItemFactory: IMutableGridItemFactory,\r\n parentSelectionKey?: string,\r\n depth: number = 0,\r\n ) {\r\n super(depth, parentSelectionKey, parentSelectionKey);\r\n this._category = { name: category.name, label: category.label, expand: category.expand };\r\n\r\n if (parentSelectionKey !== undefined)\r\n this._selectionKey = `${parentSelectionKey}_${category.name}`;\r\n else\r\n this._selectionKey = category.name;\r\n\r\n this._isExpanded = category.expand;\r\n\r\n // Even though categories are nested and have their own depth, categorized properties depth is counted starting with the parent category.\r\n const categoryRecords = recordsDict[category.name] ?? [];\r\n this._children = categoryRecords.map((value) => gridItemFactory.createCategorizedProperty(value, this.selectionKey, this.selectionKey, 0));\r\n\r\n const childCategories = category.childCategories ?? [];\r\n const child = childCategories.map((childCategory) => gridItemFactory.createGridCategory(childCategory, recordsDict, this.selectionKey, this.depth + 1));\r\n\r\n this._children.push(...child);\r\n\r\n // Assign lastInNumberOfCategories and isLastInRootCategory for entire children hierarchy\r\n this.lastInNumberOfCategories = 0;\r\n this.isLastInRootCategory = this.isRootCategory;\r\n }\r\n\r\n /**\r\n * Category is considered to be root category if its depth is 0\r\n */\r\n public get isRootCategory() {\r\n return this.depth === 0;\r\n }\r\n\r\n public get selectionKey() {\r\n return this._selectionKey;\r\n }\r\n\r\n public get type(): FlatGridItemType.Category {\r\n return FlatGridItemType.Category;\r\n }\r\n\r\n public get name() {\r\n return this._category.name;\r\n }\r\n\r\n public get label() {\r\n return this._category.label;\r\n }\r\n\r\n public get derivedCategory(): PropertyCategory {\r\n return { ...this._category, expand: this.isExpanded };\r\n }\r\n\r\n public getSelf() {\r\n return this;\r\n }\r\n\r\n public getChildren(): IMutableFlatGridItem[] {\r\n return this._children;\r\n }\r\n\r\n /**\r\n * Gets and Sets lastInNumberOfCategories.\r\n * Setter increments set value by one to account self as category.\r\n * New value is sent down to this items last child\r\n * @internal\r\n */\r\n public override get lastInNumberOfCategories(): number {\r\n if (this.isExpanded && this.getChildren().length > 0)\r\n return 0;\r\n\r\n return this._lastInNumberOfCategories - 1;\r\n }\r\n\r\n public override set lastInNumberOfCategories(value: number) {\r\n super.lastInNumberOfCategories = value + 1;\r\n }\r\n}\r\n"]}
@@ -61,7 +61,7 @@ class FlatNonPrimitivePropertyRenderer extends React.Component {
61
61
  /** @internal */
62
62
  render() {
63
63
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
64
- const { children, indentation, ...props } = this.props;
64
+ const { indentation, ...props } = this.props;
65
65
  return (React.createElement(PropertyView_1.PropertyView, { labelElement: this.getLabel(this.props), ...props }));
66
66
  }
67
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FlatNonPrimitivePropertyRenderer.js","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F;;GAEG;AACH,2EAAyE;AAEzE,6CAA+B;AAC/B,0DAA4D;AAC5D,iGAA8F;AAE9F,6HAA0H;AAC1H,6EAA0E;AAU1E;;GAEG;AACH,MAAa,gCAAiC,SAAQ,KAAK,CAAC,SAAgD;IAC1G,YAAY,KAA4C;QACtD,KAAK,CAAC,KAAK,CAAC,CAAC;QAGP,gBAAW,GAAG,GAAG,EAAE;YACzB,0BAA0B;YAC1B,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU;gBACxB,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;QACjC,CAAC,CAAC;QAEM,iBAAY,GAAG,GAAG,EAAE;YAC1B,0BAA0B;YAC1B,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU;gBACvB,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;QACjC,CAAC,CAAC;IAZF,CAAC;IAcO,QAAQ,CAAC,KAA4C;QAC3D,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;QAC3E,MAAM,MAAM,GAAG,+CAAsB,CAAC,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,aAAa,CAAC,CAAC;QAE9H,IAAI,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,YAAY,CAAC;QAC9D,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,WAAW,KAAK,oCAAmB,CAAC,KAAK;YACtE,YAAY,GAAG,GAAG,YAAY,KAAK,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;QAEhF,OAAO,CACL,oBAAC,qEAAiC,IAChC,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,QAAQ,EAAE,IAAI,CAAC,WAAW,EAC1B,UAAU,EAAE,IAAI,CAAC,YAAY,EAC7B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,KAAK,IAEjB,YAAY,CACqB,CACrC,CAAC;IACJ,CAAC;IAED,gBAAgB;IACA,MAAM;QACpB,6DAA6D;QAC7D,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACvD,OAAO,CACL,oBAAC,2BAAY,IACX,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KACnC,KAAK,GACT,CACH,CAAC;IACJ,CAAC;CACF;AAjDD,4EAiDC","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 PropertyGrid\r\n */\r\nimport \"../../../properties/renderers/NonPrimitivePropertyRenderer.scss\";\r\nimport _ from \"lodash\";\r\nimport * as React from \"react\";\r\nimport { PropertyValueFormat } from \"@itwin/appui-abstract\";\r\nimport { CommonPropertyRenderer } from \"../../../properties/renderers/CommonPropertyRenderer\";\r\nimport { PrimitiveRendererProps } from \"../../../properties/renderers/PrimitivePropertyRenderer\";\r\nimport { NonPrimitivePropertyLabelRenderer } from \"../../../properties/renderers/label/NonPrimitivePropertyLabelRenderer\";\r\nimport { PropertyView } from \"../../../properties/renderers/PropertyView\";\r\n\r\n/** Properties of [[FlatNonPrimitivePropertyRenderer]] React component\r\n * @internal\r\n */\r\nexport interface FlatNonPrimitivePropertyRendererProps extends PrimitiveRendererProps {\r\n isExpanded: boolean;\r\n onExpandToggled: () => void;\r\n}\r\n\r\n/** React Component that renders flat struct and array properties\r\n * @internal\r\n */\r\nexport class FlatNonPrimitivePropertyRenderer extends React.Component<FlatNonPrimitivePropertyRendererProps> {\r\n constructor(props: FlatNonPrimitivePropertyRendererProps) {\r\n super(props);\r\n }\r\n\r\n private _onExpanded = () => {\r\n /* istanbul ignore else */\r\n if (!this.props.isExpanded)\r\n this.props.onExpandToggled();\r\n };\r\n\r\n private _onCollapsed = () => {\r\n /* istanbul ignore else */\r\n if (this.props.isExpanded)\r\n this.props.onExpandToggled();\r\n };\r\n\r\n private getLabel(props: FlatNonPrimitivePropertyRendererProps): React.ReactNode {\r\n const { orientation, indentation, width, columnRatio, columnInfo } = props;\r\n const offset = CommonPropertyRenderer.getLabelOffset(indentation, orientation, width, columnRatio, columnInfo?.minLabelWidth);\r\n\r\n let displayLabel = props.propertyRecord.property.displayLabel;\r\n if (props.propertyRecord.value.valueFormat === PropertyValueFormat.Array)\r\n displayLabel = `${displayLabel} (${props.propertyRecord.value.items.length})`;\r\n\r\n return (\r\n <NonPrimitivePropertyLabelRenderer\r\n isExpanded={props.isExpanded}\r\n onExpand={this._onExpanded}\r\n onCollapse={this._onCollapsed}\r\n offset={offset}\r\n renderColon={false}\r\n >\r\n {displayLabel}\r\n </NonPrimitivePropertyLabelRenderer>\r\n );\r\n }\r\n\r\n /** @internal */\r\n public override render() {\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n const { children, indentation, ...props } = this.props;\r\n return (\r\n <PropertyView\r\n labelElement={this.getLabel(this.props)}\r\n {...props}\r\n />\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"FlatNonPrimitivePropertyRenderer.js","sourceRoot":"","sources":["../../../../../../src/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F;;GAEG;AACH,2EAAyE;AAEzE,6CAA+B;AAC/B,0DAA4D;AAC5D,iGAA8F;AAE9F,6HAA0H;AAC1H,6EAA0E;AAU1E;;GAEG;AACH,MAAa,gCAAiC,SAAQ,KAAK,CAAC,SAAgD;IAC1G,YAAY,KAA4C;QACtD,KAAK,CAAC,KAAK,CAAC,CAAC;QAGP,gBAAW,GAAG,GAAG,EAAE;YACzB,0BAA0B;YAC1B,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU;gBACxB,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;QACjC,CAAC,CAAC;QAEM,iBAAY,GAAG,GAAG,EAAE;YAC1B,0BAA0B;YAC1B,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU;gBACvB,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;QACjC,CAAC,CAAC;IAZF,CAAC;IAcO,QAAQ,CAAC,KAA4C;QAC3D,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;QAC3E,MAAM,MAAM,GAAG,+CAAsB,CAAC,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,aAAa,CAAC,CAAC;QAE9H,IAAI,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,YAAY,CAAC;QAC9D,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,WAAW,KAAK,oCAAmB,CAAC,KAAK;YACtE,YAAY,GAAG,GAAG,YAAY,KAAK,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;QAEhF,OAAO,CACL,oBAAC,qEAAiC,IAChC,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,QAAQ,EAAE,IAAI,CAAC,WAAW,EAC1B,UAAU,EAAE,IAAI,CAAC,YAAY,EAC7B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,KAAK,IAEjB,YAAY,CACqB,CACrC,CAAC;IACJ,CAAC;IAED,gBAAgB;IACA,MAAM;QACpB,6DAA6D;QAC7D,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAC7C,OAAO,CACL,oBAAC,2BAAY,IACX,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KACnC,KAAK,GACT,CACH,CAAC;IACJ,CAAC;CACF;AAjDD,4EAiDC","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 PropertyGrid\r\n */\r\nimport \"../../../properties/renderers/NonPrimitivePropertyRenderer.scss\";\r\nimport _ from \"lodash\";\r\nimport * as React from \"react\";\r\nimport { PropertyValueFormat } from \"@itwin/appui-abstract\";\r\nimport { CommonPropertyRenderer } from \"../../../properties/renderers/CommonPropertyRenderer\";\r\nimport { PrimitiveRendererProps } from \"../../../properties/renderers/PrimitivePropertyRenderer\";\r\nimport { NonPrimitivePropertyLabelRenderer } from \"../../../properties/renderers/label/NonPrimitivePropertyLabelRenderer\";\r\nimport { PropertyView } from \"../../../properties/renderers/PropertyView\";\r\n\r\n/** Properties of [[FlatNonPrimitivePropertyRenderer]] React component\r\n * @internal\r\n */\r\nexport interface FlatNonPrimitivePropertyRendererProps extends PrimitiveRendererProps {\r\n isExpanded: boolean;\r\n onExpandToggled: () => void;\r\n}\r\n\r\n/** React Component that renders flat struct and array properties\r\n * @internal\r\n */\r\nexport class FlatNonPrimitivePropertyRenderer extends React.Component<FlatNonPrimitivePropertyRendererProps> {\r\n constructor(props: FlatNonPrimitivePropertyRendererProps) {\r\n super(props);\r\n }\r\n\r\n private _onExpanded = () => {\r\n /* istanbul ignore else */\r\n if (!this.props.isExpanded)\r\n this.props.onExpandToggled();\r\n };\r\n\r\n private _onCollapsed = () => {\r\n /* istanbul ignore else */\r\n if (this.props.isExpanded)\r\n this.props.onExpandToggled();\r\n };\r\n\r\n private getLabel(props: FlatNonPrimitivePropertyRendererProps): React.ReactNode {\r\n const { orientation, indentation, width, columnRatio, columnInfo } = props;\r\n const offset = CommonPropertyRenderer.getLabelOffset(indentation, orientation, width, columnRatio, columnInfo?.minLabelWidth);\r\n\r\n let displayLabel = props.propertyRecord.property.displayLabel;\r\n if (props.propertyRecord.value.valueFormat === PropertyValueFormat.Array)\r\n displayLabel = `${displayLabel} (${props.propertyRecord.value.items.length})`;\r\n\r\n return (\r\n <NonPrimitivePropertyLabelRenderer\r\n isExpanded={props.isExpanded}\r\n onExpand={this._onExpanded}\r\n onCollapse={this._onCollapsed}\r\n offset={offset}\r\n renderColon={false}\r\n >\r\n {displayLabel}\r\n </NonPrimitivePropertyLabelRenderer>\r\n );\r\n }\r\n\r\n /** @internal */\r\n public override render() {\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n const { indentation, ...props } = this.props;\r\n return (\r\n <PropertyView\r\n labelElement={this.getLabel(this.props)}\r\n {...props}\r\n />\r\n );\r\n }\r\n}\r\n"]}
@@ -2,7 +2,6 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/core-react/lib/cjs/core-react/select/select";
6
5
 
7
6
  .components-selectable-content {
8
7
  display: flex;
@@ -2,165 +2,9 @@
2
2
  * @module Table
3
3
  */
4
4
  import { BeEvent } from "@itwin/core-bentley";
5
- import { PropertyDescription, PropertyRecord } from "@itwin/appui-abstract";
6
- import { HorizontalAlignment, SortDirection } from "@itwin/core-react";
7
- import { ItemColorOverrides, ItemStyle } from "../properties/ItemStyle";
8
- import { CompositeFilterDescriptorCollection, DistinctValueCollection } from "./columnfiltering/ColumnFiltering";
9
- /** Filter Renderer for a Table column
10
- * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
11
- * @public
12
- */
13
- export declare enum FilterRenderer {
14
- Numeric = 1,
15
- MultiSelect = 2,
16
- SingleSelect = 3,
17
- Text = 4,
18
- MultiValue = 5
19
- }
20
- /**
21
- * Column definition provided to Table.
22
- * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
23
- * @public
24
- */
25
- export interface ColumnDescription {
26
- /** A unique key for this column. */
27
- key: string;
28
- /** Column header label */
29
- label: string;
30
- /** Property description for all cells in the column */
31
- propertyDescription?: PropertyDescription;
32
- /** Preferred initial width of the column */
33
- width?: number;
34
- /** Indicates whether the cells in the column are editable. Defaults to false. */
35
- editable?: boolean;
36
- /** Indicates whether the column is resizable. Defaults to false. */
37
- resizable?: boolean;
38
- /** Indicates whether the display value for the cell is treated as an icon spec. Defaults to false. */
39
- icon?: boolean;
40
- /** Indicates whether the column is sortable. Defaults to false. */
41
- sortable?: boolean;
42
- /** Specifies a secondary sort column to use when cell values are the same. */
43
- secondarySortColumn?: number;
44
- /** Indicates whether the column sorting ignores case. Defaults to false. */
45
- sortIgnoreCase?: boolean;
46
- /** Indicates whether the column is filterable. Defaults to false. */
47
- filterable?: boolean;
48
- /** Specifies the filter renderer for the column. */
49
- filterRenderer?: FilterRenderer;
50
- /** Show field filters in Multi-Value column filtering popup. Defaults to true. */
51
- showFieldFilters?: boolean;
52
- /** Show distinct value checkboxes in Multi-Value column filtering popup. Defaults to true. */
53
- showDistinctValueFilters?: boolean;
54
- /** Filtering is case-sensitive in Multi-Value column filtering popup. Defaults to false. */
55
- filterCaseSensitive?: boolean;
56
- /** Sort type for react-table */
57
- sortType?: string;
58
- }
59
- /**
60
- * Cell definition provided to Table.
61
- * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
62
- * @public
63
- */
64
- export interface CellItem {
65
- /** Key for the column containing the cell */
66
- key: string;
67
- /** Property record for the cell */
68
- record?: PropertyRecord;
69
- /** Indicates whether the cell is disabled */
70
- isDisabled?: boolean;
71
- /** Specifies the horizontal alignment of the contents of the cell */
72
- alignment?: HorizontalAlignment;
73
- /** Style properties for the contents of the cell */
74
- style?: ItemStyle;
75
- /**
76
- * Property to specify how many cells were merged to create this cell.
77
- * Default value is 1.
78
- * @alpha
79
- */
80
- mergedCellsCount?: number;
81
- }
82
- /**
83
- * Row definition provided to Table.
84
- * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
85
- * @public
86
- */
87
- export interface RowItem {
88
- /** A unique key for this row */
89
- key: string;
90
- /** Array of cells in the row */
91
- cells: CellItem[];
92
- /** Indicates whether the row is disabled */
93
- isDisabled?: boolean;
94
- /** Color overrides for all cells in the row */
95
- colorOverrides?: ItemColorOverrides;
96
- /**
97
- * A key-value pairs data structure that can be used by data provider
98
- * to store some custom data for this node item.
99
- */
100
- extendedData?: {
101
- [key: string]: any;
102
- };
103
- /**
104
- * Get the value from the cell for filtering purposes.
105
- * If not specified and the value is a primitive, the recordValue.value is returned.
106
- */
107
- getValueFromCell?: (columnKey: string) => any;
108
- }
109
- /** An interface table data change listeners
110
- * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this type.
111
- * @public
112
- */
113
- export declare type TableDataChangesListener = () => void;
114
5
  /** An event broadcasted on table data changes
115
- * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this class.
116
- * @public
117
- */
118
- export declare class TableDataChangeEvent extends BeEvent<TableDataChangesListener> {
119
- }
120
- /**
121
- * TableDataProvider provides data to the Table.
122
- * It also provides support for data Sorting & Filtering.
123
- * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
124
- * @public
125
- */
126
- export interface TableDataProvider {
127
- /** Event emitted by the data provider when column data changes */
128
- onColumnsChanged: TableDataChangeEvent;
129
- /** Event emitted by the data provider when row data changes */
130
- onRowsChanged: TableDataChangeEvent;
131
- /** Retrieves the column descriptions */
132
- getColumns(): Promise<ColumnDescription[]>;
133
- /** Retrieves the row count */
134
- getRowsCount(): Promise<number>;
135
- /** Retrieves a specific row by index */
136
- getRow(rowIndex: number, unfiltered?: boolean): Promise<RowItem>;
137
- /** Sorts the rows based on the value in a specific column */
138
- sort(columnIndex: number, sortDirection: SortDirection): Promise<void>;
139
- /** Apply a filter descriptor collection
140
- */
141
- applyFilterDescriptors?: (filterDescriptors: CompositeFilterDescriptorCollection) => Promise<void>;
142
- /** Gets distinct values in a column
143
- */
144
- getDistinctValues?: (columnKey: string, maximumValueCount?: number) => Promise<DistinctValueCollection>;
145
- /** Gets property display value expression
146
- * @alpha
147
- */
148
- getPropertyDisplayValueExpression?: (property: string) => string;
149
- }
150
- /**
151
- * MutableTableDataProvider provides mutation methods for data in the Table.
152
- * Useful for Drag & Drop processing.
153
- * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
154
- * @public
6
+ * @public @deprecated
155
7
  */
156
- export interface MutableTableDataProvider extends TableDataProvider {
157
- /** Adds a row to the end */
158
- addRow(rowItem: RowItem): number;
159
- /** Inserts a row at a given row index */
160
- insertRow(rowItem: RowItem, index: number): number;
161
- /** Deletes a row */
162
- deleteRow(rowItem: RowItem): void;
163
- /** Moves a row to a new row index */
164
- moveRow(rowItem: RowItem, newIndex: number): number;
8
+ export declare class TableDataChangeEvent extends BeEvent<() => void> {
165
9
  }
166
10
  //# sourceMappingURL=TableDataProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableDataProvider.d.ts","sourceRoot":"","sources":["../../../../src/components-react/table/TableDataProvider.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,mCAAmC,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAKjH;;;GAGG;AACH,oBAAY,cAAc;IACxB,OAAO,IAAI;IACX,WAAW,IAAA;IACX,YAAY,IAAA;IACZ,IAAI,IAAA;IACJ,UAAU,IAAA;CACX;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAC;IAEZ,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAE1C,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,iFAAiF;IACjF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oEAAoE;IACpE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sGAAsG;IACtG,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,mEAAmE;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8EAA8E;IAC9E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,4EAA4E;IAC5E,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,qEAAqE;IACrE,UAAU,CAA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DataProvider.d.ts","sourceRoot":"","sources":["../../../../src/components-react/table/TableDataProvider.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,OAAO,CAAC,MAAM,IAAI,CAAC;CAAI"}
@@ -7,25 +7,10 @@
7
7
  * @module Table
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.TableDataChangeEvent = exports.FilterRenderer = void 0;
10
+ exports.TableDataChangeEvent = void 0;
11
11
  const core_bentley_1 = require("@itwin/core-bentley");
12
- /* eslint-disable deprecation/deprecation */
13
- // cSpell:ignore columnfiltering
14
- /** Filter Renderer for a Table column
15
- * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.
16
- * @public
17
- */
18
- var FilterRenderer;
19
- (function (FilterRenderer) {
20
- FilterRenderer[FilterRenderer["Numeric"] = 1] = "Numeric";
21
- FilterRenderer[FilterRenderer["MultiSelect"] = 2] = "MultiSelect";
22
- FilterRenderer[FilterRenderer["SingleSelect"] = 3] = "SingleSelect";
23
- FilterRenderer[FilterRenderer["Text"] = 4] = "Text";
24
- FilterRenderer[FilterRenderer["MultiValue"] = 5] = "MultiValue";
25
- })(FilterRenderer = exports.FilterRenderer || (exports.FilterRenderer = {}));
26
12
  /** An event broadcasted on table data changes
27
- * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this class.
28
- * @public
13
+ * @public @deprecated
29
14
  */
30
15
  class TableDataChangeEvent extends core_bentley_1.BeEvent {
31
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TableDataProvider.js","sourceRoot":"","sources":["../../../../src/components-react/table/TableDataProvider.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA8C;AAM9C,4CAA4C;AAC5C,gCAAgC;AAEhC;;;GAGG;AACH,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,yDAAW,CAAA;IACX,iEAAW,CAAA;IACX,mEAAY,CAAA;IACZ,mDAAI,CAAA;IACJ,+DAAU,CAAA;AACZ,CAAC,EANW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAMzB;AA8GD;;;GAGG;AACH,MAAa,oBAAqB,SAAQ,sBAAiC;CAAI;AAA/E,oDAA+E","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 Table\r\n */\r\n\r\nimport { BeEvent } from \"@itwin/core-bentley\";\r\nimport { PropertyDescription, PropertyRecord } from \"@itwin/appui-abstract\";\r\nimport { HorizontalAlignment, SortDirection } from \"@itwin/core-react\";\r\nimport { ItemColorOverrides, ItemStyle } from \"../properties/ItemStyle\";\r\nimport { CompositeFilterDescriptorCollection, DistinctValueCollection } from \"./columnfiltering/ColumnFiltering\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n// cSpell:ignore columnfiltering\r\n\r\n/** Filter Renderer for a Table column\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport enum FilterRenderer {\r\n Numeric = 1,\r\n MultiSelect,\r\n SingleSelect,\r\n Text,\r\n MultiValue,\r\n}\r\n\r\n/**\r\n * Column definition provided to Table.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface ColumnDescription {\r\n /** A unique key for this column. */\r\n key: string;\r\n\r\n /** Column header label */\r\n label: string;\r\n /** Property description for all cells in the column */\r\n propertyDescription?: PropertyDescription;\r\n\r\n /** Preferred initial width of the column */\r\n width?: number;\r\n\r\n /** Indicates whether the cells in the column are editable. Defaults to false. */\r\n editable?: boolean;\r\n /** Indicates whether the column is resizable. Defaults to false. */\r\n resizable?: boolean;\r\n /** Indicates whether the display value for the cell is treated as an icon spec. Defaults to false. */\r\n icon?: boolean;\r\n\r\n /** Indicates whether the column is sortable. Defaults to false. */\r\n sortable?: boolean;\r\n /** Specifies a secondary sort column to use when cell values are the same. */\r\n secondarySortColumn?: number;\r\n /** Indicates whether the column sorting ignores case. Defaults to false. */\r\n sortIgnoreCase?: boolean;\r\n\r\n /** Indicates whether the column is filterable. Defaults to false. */\r\n filterable?: boolean;\r\n /** Specifies the filter renderer for the column. */\r\n filterRenderer?: FilterRenderer;\r\n\r\n /** Show field filters in Multi-Value column filtering popup. Defaults to true. */\r\n showFieldFilters?: boolean;\r\n /** Show distinct value checkboxes in Multi-Value column filtering popup. Defaults to true. */\r\n showDistinctValueFilters?: boolean;\r\n /** Filtering is case-sensitive in Multi-Value column filtering popup. Defaults to false. */\r\n filterCaseSensitive?: boolean;\r\n\r\n /** Sort type for react-table */\r\n sortType?: string;\r\n}\r\n\r\n/**\r\n * Cell definition provided to Table.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface CellItem {\r\n /** Key for the column containing the cell */\r\n key: string;\r\n /** Property record for the cell */\r\n record?: PropertyRecord;\r\n\r\n /** Indicates whether the cell is disabled */\r\n isDisabled?: boolean;\r\n /** Specifies the horizontal alignment of the contents of the cell */\r\n alignment?: HorizontalAlignment;\r\n\r\n /** Style properties for the contents of the cell */\r\n style?: ItemStyle;\r\n\r\n /**\r\n * Property to specify how many cells were merged to create this cell.\r\n * Default value is 1.\r\n * @alpha\r\n */\r\n mergedCellsCount?: number;\r\n}\r\n\r\n/**\r\n * Row definition provided to Table.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface RowItem {\r\n /** A unique key for this row */\r\n key: string;\r\n /** Array of cells in the row */\r\n cells: CellItem[];\r\n /** Indicates whether the row is disabled */\r\n isDisabled?: boolean;\r\n /** Color overrides for all cells in the row */\r\n colorOverrides?: ItemColorOverrides;\r\n\r\n /**\r\n * A key-value pairs data structure that can be used by data provider\r\n * to store some custom data for this node item.\r\n */\r\n extendedData?: { [key: string]: any };\r\n\r\n /**\r\n * Get the value from the cell for filtering purposes.\r\n * If not specified and the value is a primitive, the recordValue.value is returned.\r\n */\r\n getValueFromCell?: (columnKey: string) => any;\r\n}\r\n\r\n/** An interface table data change listeners\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this type.\r\n * @public\r\n */\r\nexport declare type TableDataChangesListener = () => void;\r\n\r\n/** An event broadcasted on table data changes\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this class.\r\n * @public\r\n */\r\nexport class TableDataChangeEvent extends BeEvent<TableDataChangesListener> { }\r\n\r\n/**\r\n * TableDataProvider provides data to the Table.\r\n * It also provides support for data Sorting & Filtering.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface TableDataProvider {\r\n /** Event emitted by the data provider when column data changes */\r\n onColumnsChanged: TableDataChangeEvent;\r\n /** Event emitted by the data provider when row data changes */\r\n onRowsChanged: TableDataChangeEvent;\r\n\r\n /** Retrieves the column descriptions */\r\n getColumns(): Promise<ColumnDescription[]>;\r\n /** Retrieves the row count */\r\n getRowsCount(): Promise<number>;\r\n /** Retrieves a specific row by index */\r\n getRow(rowIndex: number, unfiltered?: boolean): Promise<RowItem>;\r\n\r\n /** Sorts the rows based on the value in a specific column */\r\n sort(columnIndex: number, sortDirection: SortDirection): Promise<void>;\r\n\r\n // Column Filtering methods\r\n\r\n /** Apply a filter descriptor collection\r\n */\r\n applyFilterDescriptors?: (filterDescriptors: CompositeFilterDescriptorCollection) => Promise<void>;\r\n\r\n /** Gets distinct values in a column\r\n */\r\n getDistinctValues?: (columnKey: string, maximumValueCount?: number) => Promise<DistinctValueCollection>;\r\n\r\n /** Gets property display value expression\r\n * @alpha\r\n */\r\n getPropertyDisplayValueExpression?: (property: string) => string;\r\n}\r\n\r\n/**\r\n * MutableTableDataProvider provides mutation methods for data in the Table.\r\n * Useful for Drag & Drop processing.\r\n * @deprecated in 3.5. Use the Table component in @itwin/itwinui-react instead, which does not use this interface.\r\n * @public\r\n */\r\nexport interface MutableTableDataProvider extends TableDataProvider {\r\n /** Adds a row to the end */\r\n addRow(rowItem: RowItem): number;\r\n /** Inserts a row at a given row index */\r\n insertRow(rowItem: RowItem, index: number): number;\r\n /** Deletes a row */\r\n deleteRow(rowItem: RowItem): void;\r\n /** Moves a row to a new row index */\r\n moveRow(rowItem: RowItem, newIndex: number): number;\r\n}\r\n"]}
1
+ {"version":3,"file":"TableDataProvider.js","sourceRoot":"","sources":["../../../../src/components-react/table/TableDataProvider.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA8C;AAE9C;;GAEG;AACH,MAAa,oBAAqB,SAAQ,sBAAmB;CAAI;AAAjE,oDAAiE","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 Table\r\n */\r\n\r\nimport { BeEvent } from \"@itwin/core-bentley\";\r\n\r\n/** An event broadcasted on table data changes\r\n * @public @deprecated\r\n */\r\nexport class TableDataChangeEvent extends BeEvent<() => void> { }\r\n"]}