@elliemae/ds-datagrids 3.16.0-next.2 → 3.16.0-next.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (468) hide show
  1. package/dist/cjs/DSDataGrid.js +392 -241
  2. package/dist/cjs/DSDataGrid.js.map +2 -2
  3. package/dist/cjs/DataGridImpl.js +15 -11
  4. package/dist/cjs/DataGridImpl.js.map +2 -2
  5. package/dist/cjs/PaginatedDataGrid.js +13 -9
  6. package/dist/cjs/PaginatedDataGrid.js.map +2 -2
  7. package/dist/cjs/blockNames.js +4 -0
  8. package/dist/cjs/blockNames.js.map +1 -1
  9. package/dist/cjs/columns/IconColumn.js +4 -0
  10. package/dist/cjs/columns/IconColumn.js.map +1 -1
  11. package/dist/cjs/columns/NumberColumn.js +4 -0
  12. package/dist/cjs/columns/NumberColumn.js.map +1 -1
  13. package/dist/cjs/components/BodyCell.js +6 -0
  14. package/dist/cjs/components/BodyCell.js.map +1 -1
  15. package/dist/cjs/components/BodyList.js +7 -5
  16. package/dist/cjs/components/BodyList.js.map +2 -2
  17. package/dist/cjs/components/ColumnVisibilityMenuOption.js +5 -6
  18. package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +2 -2
  19. package/dist/cjs/components/ColumnsOptionsMenuSection.js +7 -11
  20. package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +2 -2
  21. package/dist/cjs/components/EmptyState.js +9 -6
  22. package/dist/cjs/components/EmptyState.js.map +3 -3
  23. package/dist/cjs/components/HeaderCell.js +4 -0
  24. package/dist/cjs/components/HeaderCell.js.map +1 -1
  25. package/dist/cjs/components/List.js +6 -2
  26. package/dist/cjs/components/List.js.map +2 -2
  27. package/dist/cjs/components/ListItem.js +7 -6
  28. package/dist/cjs/components/ListItem.js.map +2 -2
  29. package/dist/cjs/components/NoResults.js +8 -10
  30. package/dist/cjs/components/NoResults.js.map +2 -2
  31. package/dist/cjs/components/RowsLoader.js +5 -1
  32. package/dist/cjs/components/RowsLoader.js.map +2 -2
  33. package/dist/cjs/components/Table.js +9 -5
  34. package/dist/cjs/components/Table.js.map +2 -2
  35. package/dist/cjs/components/TableBody.js +6 -7
  36. package/dist/cjs/components/TableBody.js.map +2 -2
  37. package/dist/cjs/components/TableHeader.js +5 -1
  38. package/dist/cjs/components/TableHeader.js.map +2 -2
  39. package/dist/cjs/components/footer/addOptionalFooterComponents.js +5 -1
  40. package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +2 -2
  41. package/dist/cjs/components/header/PrimaryControls.js +4 -0
  42. package/dist/cjs/components/header/PrimaryControls.js.map +1 -1
  43. package/dist/cjs/components/header/addOptionalHeaderComponents.js +4 -0
  44. package/dist/cjs/components/header/addOptionalHeaderComponents.js.map +1 -1
  45. package/dist/cjs/components/index.js +9 -5
  46. package/dist/cjs/components/index.js.map +2 -2
  47. package/dist/cjs/components/renderers/defaultClassedRenderers.js +20 -36
  48. package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +2 -2
  49. package/dist/cjs/components/renderers/index.js +6 -2
  50. package/dist/cjs/components/renderers/index.js.map +2 -2
  51. package/dist/cjs/components/renderers/renderRowsLoader.js +6 -4
  52. package/dist/cjs/components/renderers/renderRowsLoader.js.map +2 -2
  53. package/dist/cjs/components/tableContext.js +4 -0
  54. package/dist/cjs/components/tableContext.js.map +1 -1
  55. package/dist/cjs/defaultPlugins.js +9 -10
  56. package/dist/cjs/defaultPlugins.js.map +2 -2
  57. package/dist/cjs/index.js +13 -9
  58. package/dist/cjs/index.js.map +2 -2
  59. package/dist/cjs/package.json +7 -0
  60. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +26 -18
  61. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +2 -2
  62. package/dist/cjs/plugins/body-header-scroll-sync/index.js +5 -1
  63. package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +2 -2
  64. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +5 -1
  65. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +2 -2
  66. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +4 -0
  67. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +1 -1
  68. package/dist/cjs/plugins/column-dnd/index.js +5 -1
  69. package/dist/cjs/plugins/column-dnd/index.js.map +2 -2
  70. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +8 -4
  71. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +2 -2
  72. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js +4 -0
  73. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +1 -1
  74. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +5 -1
  75. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +2 -2
  76. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +5 -1
  77. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +2 -2
  78. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js +4 -0
  79. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +1 -1
  80. package/dist/cjs/plugins/column-sizing/index.js +5 -1
  81. package/dist/cjs/plugins/column-sizing/index.js.map +2 -2
  82. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +11 -26
  83. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +2 -2
  84. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +7 -2
  85. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +2 -2
  86. package/dist/cjs/plugins/column-sizing/utils.js +4 -0
  87. package/dist/cjs/plugins/column-sizing/utils.js.map +1 -1
  88. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +5 -1
  89. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +2 -2
  90. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +6 -1
  91. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +2 -2
  92. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +5 -1
  93. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +2 -2
  94. package/dist/cjs/plugins/custom-cell-renderer/index.js +5 -1
  95. package/dist/cjs/plugins/custom-cell-renderer/index.js.map +2 -2
  96. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +4 -0
  97. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +2 -2
  98. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +4 -0
  99. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +2 -2
  100. package/dist/cjs/plugins/editable/EditableComponents/index.js +6 -2
  101. package/dist/cjs/plugins/editable/EditableComponents/index.js.map +2 -2
  102. package/dist/cjs/plugins/editable/EditablePlugin.js +5 -1
  103. package/dist/cjs/plugins/editable/EditablePlugin.js.map +2 -2
  104. package/dist/cjs/plugins/editable/decorateEditable.js +5 -1
  105. package/dist/cjs/plugins/editable/decorateEditable.js.map +2 -2
  106. package/dist/cjs/plugins/editable/getEditorComponent.js +7 -16
  107. package/dist/cjs/plugins/editable/getEditorComponent.js.map +2 -2
  108. package/dist/cjs/plugins/editable/index.js +6 -2
  109. package/dist/cjs/plugins/editable/index.js.map +2 -2
  110. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +27 -25
  111. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +2 -2
  112. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +9 -5
  113. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +2 -2
  114. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +10 -6
  115. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +2 -2
  116. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +16 -8
  117. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +2 -2
  118. package/dist/cjs/plugins/expandable-grid/index.js +6 -2
  119. package/dist/cjs/plugins/expandable-grid/index.js.map +2 -2
  120. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +4 -0
  121. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +2 -2
  122. package/dist/cjs/plugins/export-data/ExportDataPlugin.js +4 -0
  123. package/dist/cjs/plugins/export-data/ExportDataPlugin.js.map +1 -1
  124. package/dist/cjs/plugins/export-data/index.js +5 -1
  125. package/dist/cjs/plugins/export-data/index.js.map +2 -2
  126. package/dist/cjs/plugins/filterable/FilterablePlugin.js +7 -3
  127. package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +2 -2
  128. package/dist/cjs/plugins/filterable/addFilterToColumn.js +5 -1
  129. package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +2 -2
  130. package/dist/cjs/plugins/filterable/components/FilterableHeader.js +5 -1
  131. package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +2 -2
  132. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +50 -47
  133. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +2 -2
  134. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +50 -48
  135. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +2 -2
  136. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +48 -45
  137. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +2 -2
  138. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +7 -3
  139. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +2 -2
  140. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +4 -0
  141. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +1 -1
  142. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +9 -7
  143. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +2 -2
  144. package/dist/cjs/plugins/filterable/filterableFormatter.js +33 -37
  145. package/dist/cjs/plugins/filterable/filterableFormatter.js.map +2 -2
  146. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +6 -4
  147. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +2 -2
  148. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +4 -0
  149. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +2 -2
  150. package/dist/cjs/plugins/filterable/helper.js +4 -0
  151. package/dist/cjs/plugins/filterable/helper.js.map +2 -2
  152. package/dist/cjs/plugins/filterable/index.js +5 -1
  153. package/dist/cjs/plugins/filterable/index.js.map +2 -2
  154. package/dist/cjs/plugins/filterable/useFilterableState.js +7 -7
  155. package/dist/cjs/plugins/filterable/useFilterableState.js.map +2 -2
  156. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js +4 -0
  157. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js.map +1 -1
  158. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +19 -11
  159. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +2 -2
  160. package/dist/cjs/plugins/grouping-grid/walkStrategy.js +4 -0
  161. package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +2 -2
  162. package/dist/cjs/plugins/index.js +20 -16
  163. package/dist/cjs/plugins/index.js.map +2 -2
  164. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +4 -0
  165. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +1 -1
  166. package/dist/cjs/plugins/infinite-scrolling/index.js +5 -1
  167. package/dist/cjs/plugins/infinite-scrolling/index.js.map +2 -2
  168. package/dist/cjs/plugins/pagination/PaginationPlugin.js +9 -4
  169. package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +2 -2
  170. package/dist/cjs/plugins/pagination/components/Pagination.js +9 -24
  171. package/dist/cjs/plugins/pagination/components/Pagination.js.map +2 -2
  172. package/dist/cjs/plugins/pagination/components/Paginator.js +15 -10
  173. package/dist/cjs/plugins/pagination/components/Paginator.js.map +2 -2
  174. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +6 -2
  175. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +2 -2
  176. package/dist/cjs/plugins/pagination/helper.js +4 -0
  177. package/dist/cjs/plugins/pagination/helper.js.map +2 -2
  178. package/dist/cjs/plugins/pagination/index.js +5 -1
  179. package/dist/cjs/plugins/pagination/index.js.map +2 -2
  180. package/dist/cjs/plugins/pagination/usePaginationState.js +5 -1
  181. package/dist/cjs/plugins/pagination/usePaginationState.js.map +2 -2
  182. package/dist/cjs/plugins/resizable/ResizablePlugin.js +5 -1
  183. package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +2 -2
  184. package/dist/cjs/plugins/resizable/decorateResizable.js +8 -2
  185. package/dist/cjs/plugins/resizable/decorateResizable.js.map +2 -2
  186. package/dist/cjs/plugins/resizable/index.js +5 -1
  187. package/dist/cjs/plugins/resizable/index.js.map +2 -2
  188. package/dist/cjs/plugins/resizable/useResizeHandle.js +10 -13
  189. package/dist/cjs/plugins/resizable/useResizeHandle.js.map +2 -2
  190. package/dist/cjs/plugins/resizable/utils.js +4 -0
  191. package/dist/cjs/plugins/resizable/utils.js.map +1 -1
  192. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js +5 -0
  193. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js.map +1 -1
  194. package/dist/cjs/plugins/row-dnd/index.js +5 -1
  195. package/dist/cjs/plugins/row-dnd/index.js.map +2 -2
  196. package/dist/cjs/plugins/selectable/SelectablePlugin.js +7 -3
  197. package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +2 -2
  198. package/dist/cjs/plugins/selectable/addSelectableColumn.js +7 -1
  199. package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +2 -2
  200. package/dist/cjs/plugins/selectable/helper.js +4 -0
  201. package/dist/cjs/plugins/selectable/helper.js.map +1 -1
  202. package/dist/cjs/plugins/selectable/index.js +5 -1
  203. package/dist/cjs/plugins/selectable/index.js.map +2 -2
  204. package/dist/cjs/plugins/selectable/selectableFormatter.js +5 -1
  205. package/dist/cjs/plugins/selectable/selectableFormatter.js.map +2 -2
  206. package/dist/cjs/plugins/selectable/useSelectableState.js +7 -1
  207. package/dist/cjs/plugins/selectable/useSelectableState.js.map +2 -2
  208. package/dist/cjs/plugins/sortable/SortablePlugin.js +7 -3
  209. package/dist/cjs/plugins/sortable/SortablePlugin.js.map +2 -2
  210. package/dist/cjs/plugins/sortable/checkIfSortable.js +4 -0
  211. package/dist/cjs/plugins/sortable/checkIfSortable.js.map +1 -1
  212. package/dist/cjs/plugins/sortable/index.js +5 -1
  213. package/dist/cjs/plugins/sortable/index.js.map +2 -2
  214. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js +4 -0
  215. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js.map +1 -1
  216. package/dist/cjs/plugins/sortable/sortTree.js +4 -0
  217. package/dist/cjs/plugins/sortable/sortTree.js.map +2 -2
  218. package/dist/cjs/plugins/sortable/sorter.js +5 -0
  219. package/dist/cjs/plugins/sortable/sorter.js.map +1 -1
  220. package/dist/cjs/plugins/sortable/useSortableState.js +6 -4
  221. package/dist/cjs/plugins/sortable/useSortableState.js.map +2 -2
  222. package/dist/cjs/plugins/toolbar/RowRenderer.js +7 -2
  223. package/dist/cjs/plugins/toolbar/RowRenderer.js.map +2 -2
  224. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +5 -1
  225. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +2 -2
  226. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js +5 -0
  227. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js.map +1 -1
  228. package/dist/cjs/plugins/toolbar/index.js +5 -1
  229. package/dist/cjs/plugins/toolbar/index.js.map +2 -2
  230. package/dist/cjs/plugins/virtualization/AutoHeightList.js +4 -0
  231. package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +2 -2
  232. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +8 -2
  233. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +2 -2
  234. package/dist/cjs/plugins/virtualization/VirtualizedBody.js +9 -4
  235. package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +2 -2
  236. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js +5 -0
  237. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +1 -1
  238. package/dist/cjs/plugins/virtualization/helper.js +4 -0
  239. package/dist/cjs/plugins/virtualization/helper.js.map +1 -1
  240. package/dist/cjs/plugins/virtualization/index.js +5 -1
  241. package/dist/cjs/plugins/virtualization/index.js.map +2 -2
  242. package/dist/cjs/renders/CellWithAddons.js +15 -1
  243. package/dist/cjs/renders/CellWithAddons.js.map +2 -2
  244. package/dist/cjs/renders/index.js +6 -2
  245. package/dist/cjs/renders/index.js.map +2 -2
  246. package/dist/cjs/renders/styled.js +4 -0
  247. package/dist/cjs/renders/styled.js.map +1 -1
  248. package/dist/cjs/rowSizes.js +5 -5
  249. package/dist/cjs/rowSizes.js.map +2 -2
  250. package/dist/cjs/utilities/getPluginsFromProps.js +17 -13
  251. package/dist/cjs/utilities/getPluginsFromProps.js.map +2 -2
  252. package/dist/cjs/utilities/getScrollbarSize.js +4 -0
  253. package/dist/cjs/utilities/getScrollbarSize.js.map +1 -1
  254. package/dist/cjs/utilities/normalizeData.js +4 -0
  255. package/dist/cjs/utilities/normalizeData.js.map +2 -2
  256. package/dist/esm/DSDataGrid.js +264 -117
  257. package/dist/esm/DSDataGrid.js.map +2 -2
  258. package/dist/esm/DataGridImpl.js +11 -11
  259. package/dist/esm/DataGridImpl.js.map +2 -2
  260. package/dist/esm/PaginatedDataGrid.js +9 -9
  261. package/dist/esm/PaginatedDataGrid.js.map +2 -2
  262. package/dist/esm/columns/IconColumn.js.map +1 -1
  263. package/dist/esm/components/BodyCell.js +2 -0
  264. package/dist/esm/components/BodyCell.js.map +1 -1
  265. package/dist/esm/components/BodyList.js +3 -5
  266. package/dist/esm/components/BodyList.js.map +2 -2
  267. package/dist/esm/components/ColumnVisibilityMenuOption.js +1 -6
  268. package/dist/esm/components/ColumnVisibilityMenuOption.js.map +2 -2
  269. package/dist/esm/components/ColumnsOptionsMenuSection.js +3 -11
  270. package/dist/esm/components/ColumnsOptionsMenuSection.js.map +2 -2
  271. package/dist/esm/components/EmptyState.js +1 -2
  272. package/dist/esm/components/EmptyState.js.map +2 -2
  273. package/dist/esm/components/List.js +2 -2
  274. package/dist/esm/components/List.js.map +2 -2
  275. package/dist/esm/components/ListItem.js +3 -6
  276. package/dist/esm/components/ListItem.js.map +2 -2
  277. package/dist/esm/components/NoResults.js +4 -10
  278. package/dist/esm/components/NoResults.js.map +2 -2
  279. package/dist/esm/components/RowsLoader.js +1 -1
  280. package/dist/esm/components/RowsLoader.js.map +1 -1
  281. package/dist/esm/components/Table.js +5 -5
  282. package/dist/esm/components/Table.js.map +2 -2
  283. package/dist/esm/components/TableBody.js +2 -7
  284. package/dist/esm/components/TableBody.js.map +2 -2
  285. package/dist/esm/components/TableHeader.js +1 -1
  286. package/dist/esm/components/TableHeader.js.map +2 -2
  287. package/dist/esm/components/footer/addOptionalFooterComponents.js +1 -1
  288. package/dist/esm/components/footer/addOptionalFooterComponents.js.map +1 -1
  289. package/dist/esm/components/index.js +5 -5
  290. package/dist/esm/components/index.js.map +1 -1
  291. package/dist/esm/components/renderers/defaultClassedRenderers.js +16 -40
  292. package/dist/esm/components/renderers/defaultClassedRenderers.js.map +2 -2
  293. package/dist/esm/components/renderers/index.js +2 -2
  294. package/dist/esm/components/renderers/index.js.map +1 -1
  295. package/dist/esm/components/renderers/renderRowsLoader.js +2 -4
  296. package/dist/esm/components/renderers/renderRowsLoader.js.map +2 -2
  297. package/dist/esm/defaultPlugins.js +5 -10
  298. package/dist/esm/defaultPlugins.js.map +2 -2
  299. package/dist/esm/index.js +9 -9
  300. package/dist/esm/index.js.map +1 -1
  301. package/dist/esm/package.json +7 -0
  302. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +22 -18
  303. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +2 -2
  304. package/dist/esm/plugins/body-header-scroll-sync/index.js +1 -1
  305. package/dist/esm/plugins/body-header-scroll-sync/index.js.map +1 -1
  306. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +1 -1
  307. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +2 -2
  308. package/dist/esm/plugins/column-dnd/index.js +1 -1
  309. package/dist/esm/plugins/column-dnd/index.js.map +1 -1
  310. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +4 -4
  311. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +1 -1
  312. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +1 -1
  313. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +1 -1
  314. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +1 -1
  315. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +1 -1
  316. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +1 -1
  317. package/dist/esm/plugins/column-sizing/index.js +1 -1
  318. package/dist/esm/plugins/column-sizing/index.js.map +1 -1
  319. package/dist/esm/plugins/column-sizing/useColumnSizeService.js +7 -26
  320. package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +2 -2
  321. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +3 -2
  322. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +2 -2
  323. package/dist/esm/plugins/column-sizing/utils.js.map +1 -1
  324. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +1 -1
  325. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +1 -1
  326. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +2 -1
  327. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +2 -2
  328. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +1 -1
  329. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +2 -2
  330. package/dist/esm/plugins/custom-cell-renderer/index.js +1 -1
  331. package/dist/esm/plugins/custom-cell-renderer/index.js.map +1 -1
  332. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +1 -1
  333. package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +1 -1
  334. package/dist/esm/plugins/editable/EditableComponents/index.js +2 -2
  335. package/dist/esm/plugins/editable/EditableComponents/index.js.map +1 -1
  336. package/dist/esm/plugins/editable/EditablePlugin.js +1 -1
  337. package/dist/esm/plugins/editable/EditablePlugin.js.map +2 -2
  338. package/dist/esm/plugins/editable/decorateEditable.js +1 -1
  339. package/dist/esm/plugins/editable/decorateEditable.js.map +2 -2
  340. package/dist/esm/plugins/editable/getEditorComponent.js +3 -16
  341. package/dist/esm/plugins/editable/getEditorComponent.js.map +2 -2
  342. package/dist/esm/plugins/editable/index.js +2 -2
  343. package/dist/esm/plugins/editable/index.js.map +1 -1
  344. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +23 -25
  345. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +2 -2
  346. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +5 -5
  347. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +2 -2
  348. package/dist/esm/plugins/expandable-grid/ExpandedRow.js +6 -6
  349. package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +2 -2
  350. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +12 -8
  351. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +2 -2
  352. package/dist/esm/plugins/expandable-grid/index.js +2 -2
  353. package/dist/esm/plugins/expandable-grid/index.js.map +1 -1
  354. package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +2 -2
  355. package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +1 -1
  356. package/dist/esm/plugins/export-data/index.js +1 -1
  357. package/dist/esm/plugins/export-data/index.js.map +1 -1
  358. package/dist/esm/plugins/filterable/FilterablePlugin.js +3 -3
  359. package/dist/esm/plugins/filterable/FilterablePlugin.js.map +2 -2
  360. package/dist/esm/plugins/filterable/addFilterToColumn.js +1 -1
  361. package/dist/esm/plugins/filterable/addFilterToColumn.js.map +1 -1
  362. package/dist/esm/plugins/filterable/components/FilterableHeader.js +1 -1
  363. package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +2 -2
  364. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +46 -47
  365. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +2 -2
  366. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +46 -48
  367. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +2 -2
  368. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +44 -45
  369. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +2 -2
  370. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +3 -3
  371. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +2 -2
  372. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +5 -7
  373. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +2 -2
  374. package/dist/esm/plugins/filterable/filterableFormatter.js +29 -37
  375. package/dist/esm/plugins/filterable/filterableFormatter.js.map +2 -2
  376. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +2 -4
  377. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +2 -2
  378. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +2 -2
  379. package/dist/esm/plugins/filterable/helper.js +1 -7
  380. package/dist/esm/plugins/filterable/helper.js.map +2 -2
  381. package/dist/esm/plugins/filterable/index.js +1 -1
  382. package/dist/esm/plugins/filterable/index.js.map +1 -1
  383. package/dist/esm/plugins/filterable/useFilterableState.js +3 -11
  384. package/dist/esm/plugins/filterable/useFilterableState.js.map +2 -2
  385. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +1 -1
  386. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +15 -11
  387. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +2 -2
  388. package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +2 -2
  389. package/dist/esm/plugins/index.js +16 -16
  390. package/dist/esm/plugins/index.js.map +1 -1
  391. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +1 -1
  392. package/dist/esm/plugins/infinite-scrolling/index.js +1 -1
  393. package/dist/esm/plugins/infinite-scrolling/index.js.map +1 -1
  394. package/dist/esm/plugins/pagination/PaginationPlugin.js +5 -4
  395. package/dist/esm/plugins/pagination/PaginationPlugin.js.map +2 -2
  396. package/dist/esm/plugins/pagination/components/Pagination.js +5 -24
  397. package/dist/esm/plugins/pagination/components/Pagination.js.map +2 -2
  398. package/dist/esm/plugins/pagination/components/Paginator.js +12 -11
  399. package/dist/esm/plugins/pagination/components/Paginator.js.map +2 -2
  400. package/dist/esm/plugins/pagination/components/PerPageDropdown.js +2 -2
  401. package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +2 -2
  402. package/dist/esm/plugins/pagination/helper.js.map +2 -2
  403. package/dist/esm/plugins/pagination/index.js +1 -1
  404. package/dist/esm/plugins/pagination/index.js.map +1 -1
  405. package/dist/esm/plugins/pagination/usePaginationState.js +1 -1
  406. package/dist/esm/plugins/pagination/usePaginationState.js.map +1 -1
  407. package/dist/esm/plugins/resizable/ResizablePlugin.js +1 -1
  408. package/dist/esm/plugins/resizable/ResizablePlugin.js.map +2 -2
  409. package/dist/esm/plugins/resizable/decorateResizable.js +4 -2
  410. package/dist/esm/plugins/resizable/decorateResizable.js.map +2 -2
  411. package/dist/esm/plugins/resizable/index.js +1 -1
  412. package/dist/esm/plugins/resizable/index.js.map +1 -1
  413. package/dist/esm/plugins/resizable/useResizeHandle.js +6 -13
  414. package/dist/esm/plugins/resizable/useResizeHandle.js.map +2 -2
  415. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js +1 -0
  416. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js.map +1 -1
  417. package/dist/esm/plugins/row-dnd/index.js +1 -1
  418. package/dist/esm/plugins/row-dnd/index.js.map +1 -1
  419. package/dist/esm/plugins/selectable/SelectablePlugin.js +3 -3
  420. package/dist/esm/plugins/selectable/SelectablePlugin.js.map +2 -2
  421. package/dist/esm/plugins/selectable/addSelectableColumn.js +3 -1
  422. package/dist/esm/plugins/selectable/addSelectableColumn.js.map +2 -2
  423. package/dist/esm/plugins/selectable/helper.js.map +1 -1
  424. package/dist/esm/plugins/selectable/index.js +1 -1
  425. package/dist/esm/plugins/selectable/index.js.map +1 -1
  426. package/dist/esm/plugins/selectable/selectableFormatter.js +1 -1
  427. package/dist/esm/plugins/selectable/selectableFormatter.js.map +2 -2
  428. package/dist/esm/plugins/selectable/useSelectableState.js +3 -5
  429. package/dist/esm/plugins/selectable/useSelectableState.js.map +2 -2
  430. package/dist/esm/plugins/sortable/SortablePlugin.js +3 -3
  431. package/dist/esm/plugins/sortable/SortablePlugin.js.map +2 -2
  432. package/dist/esm/plugins/sortable/checkIfSortable.js.map +1 -1
  433. package/dist/esm/plugins/sortable/index.js +1 -1
  434. package/dist/esm/plugins/sortable/index.js.map +1 -1
  435. package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +1 -1
  436. package/dist/esm/plugins/sortable/sortTree.js.map +2 -2
  437. package/dist/esm/plugins/sortable/sorter.js +1 -0
  438. package/dist/esm/plugins/sortable/sorter.js.map +1 -1
  439. package/dist/esm/plugins/sortable/useSortableState.js +2 -4
  440. package/dist/esm/plugins/sortable/useSortableState.js.map +2 -2
  441. package/dist/esm/plugins/toolbar/RowRenderer.js +3 -2
  442. package/dist/esm/plugins/toolbar/RowRenderer.js.map +2 -2
  443. package/dist/esm/plugins/toolbar/ToolbarPlugin.js +1 -1
  444. package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +2 -2
  445. package/dist/esm/plugins/toolbar/ToolbarTrigger.js +1 -0
  446. package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +1 -1
  447. package/dist/esm/plugins/toolbar/index.js +1 -1
  448. package/dist/esm/plugins/toolbar/index.js.map +1 -1
  449. package/dist/esm/plugins/virtualization/AutoHeightList.js.map +2 -2
  450. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +4 -2
  451. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +2 -2
  452. package/dist/esm/plugins/virtualization/VirtualizedBody.js +5 -4
  453. package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +2 -2
  454. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +1 -0
  455. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +1 -1
  456. package/dist/esm/plugins/virtualization/index.js +1 -1
  457. package/dist/esm/plugins/virtualization/index.js.map +1 -1
  458. package/dist/esm/renders/CellWithAddons.js +11 -1
  459. package/dist/esm/renders/CellWithAddons.js.map +2 -2
  460. package/dist/esm/renders/index.js +2 -2
  461. package/dist/esm/renders/index.js.map +1 -1
  462. package/dist/esm/renders/styled.js.map +1 -1
  463. package/dist/esm/rowSizes.js +1 -5
  464. package/dist/esm/rowSizes.js.map +2 -2
  465. package/dist/esm/utilities/getPluginsFromProps.js +13 -13
  466. package/dist/esm/utilities/getPluginsFromProps.js.map +2 -2
  467. package/dist/esm/utilities/normalizeData.js.map +2 -2
  468. package/package.json +26 -25
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -33,16 +37,19 @@ module.exports = __toCommonJS(DSDataGrid_exports);
33
37
  var React = __toESM(require("react"));
34
38
  var import_jsx_runtime = require("react/jsx-runtime");
35
39
  var import_ds_utilities = require("@elliemae/ds-utilities");
40
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
41
  var import_ds_truncated_tooltip_text = require("@elliemae/ds-truncated-tooltip-text");
37
- var import_DataGridImpl = require("./DataGridImpl");
38
- var import_rowSizes = require("./rowSizes");
42
+ var import_DataGridImpl = require("./DataGridImpl.js");
43
+ var import_rowSizes = require("./rowSizes.js");
39
44
  const DSDataGrids = ({
40
45
  containerProps = {},
41
46
  instanceRef,
42
47
  className = "",
48
+ // data
43
49
  columns = [],
44
50
  rows = [],
45
51
  rowKey = "id",
52
+ // features
46
53
  infiniteScrolling = false,
47
54
  editable = false,
48
55
  sortable = false,
@@ -55,8 +62,11 @@ const DSDataGrids = ({
55
62
  dragAndDropColumns = false,
56
63
  useTreeData = false,
57
64
  autoScrollToId,
65
+ // virtualization props
58
66
  overscanCount = 10,
67
+ // feature state
59
68
  selectAll = false,
69
+ // todo: change to isAllSelected
60
70
  selectedRows = [],
61
71
  filters = void 0,
62
72
  onAddFilter = () => null,
@@ -72,6 +82,7 @@ const DSDataGrids = ({
72
82
  aggregations = {},
73
83
  groupingColumn = void 0,
74
84
  sortingColumns = {},
85
+ // pagination
75
86
  minPerPage = 0,
76
87
  maxPerPage = 50,
77
88
  onPerPageChange = () => null,
@@ -81,6 +92,7 @@ const DSDataGrids = ({
81
92
  page: 1,
82
93
  perPage: 10
83
94
  },
95
+ // visual
84
96
  showHeader = true,
85
97
  fixedHeader = true,
86
98
  wrapText = false,
@@ -88,21 +100,26 @@ const DSDataGrids = ({
88
100
  minColumnWidth = 100,
89
101
  showRowsLoader = false,
90
102
  visibleColumns = void 0,
103
+ // this enforces visibility of columns
91
104
  showSelectHighlight = false,
92
105
  showSelectColumn = true,
93
106
  selectColumnSortable = true,
94
107
  selectColumnFilterable = false,
95
108
  selectionColumnDefinition = {},
96
109
  filterBarOptions = void 0,
110
+ // searchGrid = false,
97
111
  renderToolbar = void 0,
98
112
  toolbarDelayClose = 400,
99
113
  renderFilterToolbar = void 0,
100
114
  multiSelectComponent = void 0,
115
+ // todo: deprecate this
101
116
  noResultsRender,
102
117
  noResultsPlaceholder,
103
118
  fluidHeight = false,
104
119
  customHandlers = {},
120
+ // grouping feature
105
121
  groupedBy = void 0,
122
+ // callbacks
106
123
  onDefaultFiltersLoad = () => null,
107
124
  onReorder = () => null,
108
125
  onMoveRowEnd = () => null,
@@ -124,14 +141,17 @@ const DSDataGrids = ({
124
141
  onFilterMenuClose = () => null,
125
142
  onFilterMenuOpen = () => null,
126
143
  getData = void 0,
144
+ // todo: change to onGetMoreData
127
145
  serverSideData = false,
128
146
  isDataSorted = false,
129
147
  isDataFiltered = false,
130
148
  virtualized = true,
131
149
  numRowsVisible = void 0,
132
150
  isColumnEditable = (column) => column.editable,
151
+ // grouped props
133
152
  groupedRows = false,
134
153
  groupedRowsRenderHeader = void 0,
154
+ // expandable props
135
155
  renderExpandedDetails = () => null,
136
156
  detailColumns,
137
157
  expandable = false,
@@ -150,289 +170,420 @@ const DSDataGrids = ({
150
170
  noColumnsPlaceholder,
151
171
  plugins = [],
152
172
  normalizeDataKeys = false
153
- }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.TooltipTextProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
154
- import_DataGridImpl.DataGridImpl,
155
- {
156
- aggregations,
157
- autoHeight: autoHeight && !fluidHeight,
158
- autoScrollToId,
159
- bindColumnsSizeTo,
160
- bindRowSizeTo,
161
- className,
162
- columns,
163
- containerProps,
164
- customHandlers,
165
- detailColumns,
166
- dragAndDropColumns,
167
- dragAndDropRows,
168
- editable,
169
- expandable,
170
- expandableSubrowsVisible,
171
- expandedRows,
172
- filterBarOptions,
173
- filters,
174
- fixedHeader,
175
- fluidHeight,
176
- getChildrenRows,
177
- getData,
178
- getExpandedRowMinSize,
179
- getExpandedRowSize,
180
- groupedBy,
181
- groupedRows,
182
- groupedRowsRenderHeader,
183
- groupingColumn,
184
- height,
185
- infiniteScrolling,
186
- instanceRef,
187
- isColumnEditable,
188
- isDataFiltered,
189
- isDataSorted,
190
- maxPerPage,
191
- minColumnWidth,
192
- minPerPage,
193
- multiSelectComponent,
194
- multiSelectFilterLabel,
195
- multiSelectFilterLabels,
196
- multiSelectFilterOptions,
197
- noColumnsPlaceholder,
198
- noResultsPlaceholder,
199
- noResultsRender,
200
- normalizeDataKeys,
201
- numRowsVisible,
202
- onAddFilter,
203
- onColumnResize,
204
- onColumnRowEdit,
205
- onColumnRowEdited,
206
- onExpandRow,
207
- onExpandChange,
208
- onFilter,
209
- onFiltersChange,
210
- onFilterMenuClose,
211
- onFilterMenuOpen,
212
- onDefaultFiltersLoad,
213
- onInfiniteScrolling,
214
- onMoveColumnEnd,
215
- onMoveColumnOver,
216
- onMoveColumnStart,
217
- onMoveRowEnd,
218
- onMoveRowStart,
219
- onPageChange,
220
- onPerPageChange,
221
- onRemoveFilter,
222
- onReorder,
223
- onSelectAll,
224
- onSelectRow,
225
- onSort,
226
- onToggleExpand,
227
- onToggleShowAllRows,
228
- overscanCount,
229
- paginated,
230
- pagination,
231
- paginationStep,
232
- plugins,
233
- renderExpandedDetails,
234
- renderFilterToolbar,
235
- renderRowDetails,
236
- renderToolbar,
237
- resizeableColumns,
238
- rowKey,
239
- rows,
240
- rowSize,
241
- searchFilters,
242
- selectable,
243
- selectAll,
244
- selectColumnFilterable,
245
- selectColumnSortable,
246
- selectedRows,
247
- selectionColumnDefinition,
248
- serverSideData,
249
- showFilterBar,
250
- showHeader,
251
- showRowsLoader,
252
- showSelectColumn,
253
- showSelectHighlight,
254
- sortable,
255
- sortEmptyLast,
256
- sortingColumns,
257
- subrowSize: subRowSize,
258
- toolbarDelayClose,
259
- useTreeData,
260
- virtualized,
261
- visibleColumns,
262
- wrapText
263
- }
264
- ) });
173
+ }) => {
174
+ (0, import_ds_utilities.useDeprecateComponent)({ componentName: "ds-datagrids", version: "3.x Date: 2023 Q1" });
175
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.TooltipTextProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
176
+ import_DataGridImpl.DataGridImpl,
177
+ {
178
+ aggregations,
179
+ autoHeight: autoHeight && !fluidHeight,
180
+ autoScrollToId,
181
+ bindColumnsSizeTo,
182
+ bindRowSizeTo,
183
+ className,
184
+ columns,
185
+ containerProps,
186
+ customHandlers,
187
+ detailColumns,
188
+ dragAndDropColumns,
189
+ dragAndDropRows,
190
+ editable,
191
+ expandable,
192
+ expandableSubrowsVisible,
193
+ expandedRows,
194
+ filterBarOptions,
195
+ filters,
196
+ fixedHeader,
197
+ fluidHeight,
198
+ getChildrenRows,
199
+ getData,
200
+ getExpandedRowMinSize,
201
+ getExpandedRowSize,
202
+ groupedBy,
203
+ groupedRows,
204
+ groupedRowsRenderHeader,
205
+ groupingColumn,
206
+ height,
207
+ infiniteScrolling,
208
+ instanceRef,
209
+ isColumnEditable,
210
+ isDataFiltered,
211
+ isDataSorted,
212
+ maxPerPage,
213
+ minColumnWidth,
214
+ minPerPage,
215
+ multiSelectComponent,
216
+ multiSelectFilterLabel,
217
+ multiSelectFilterLabels,
218
+ multiSelectFilterOptions,
219
+ noColumnsPlaceholder,
220
+ noResultsPlaceholder,
221
+ noResultsRender,
222
+ normalizeDataKeys,
223
+ numRowsVisible,
224
+ onAddFilter,
225
+ onColumnResize,
226
+ onColumnRowEdit,
227
+ onColumnRowEdited,
228
+ onExpandRow,
229
+ onExpandChange,
230
+ onFilter,
231
+ onFiltersChange,
232
+ onFilterMenuClose,
233
+ onFilterMenuOpen,
234
+ onDefaultFiltersLoad,
235
+ onInfiniteScrolling,
236
+ onMoveColumnEnd,
237
+ onMoveColumnOver,
238
+ onMoveColumnStart,
239
+ onMoveRowEnd,
240
+ onMoveRowStart,
241
+ onPageChange,
242
+ onPerPageChange,
243
+ onRemoveFilter,
244
+ onReorder,
245
+ onSelectAll,
246
+ onSelectRow,
247
+ onSort,
248
+ onToggleExpand,
249
+ onToggleShowAllRows,
250
+ overscanCount,
251
+ paginated,
252
+ pagination,
253
+ paginationStep,
254
+ plugins,
255
+ renderExpandedDetails,
256
+ renderFilterToolbar,
257
+ renderRowDetails,
258
+ renderToolbar,
259
+ resizeableColumns,
260
+ rowKey,
261
+ rows,
262
+ rowSize,
263
+ searchFilters,
264
+ selectable,
265
+ selectAll,
266
+ selectColumnFilterable,
267
+ selectColumnSortable,
268
+ selectedRows,
269
+ selectionColumnDefinition,
270
+ serverSideData,
271
+ showFilterBar,
272
+ showHeader,
273
+ showRowsLoader,
274
+ showSelectColumn,
275
+ showSelectHighlight,
276
+ sortable,
277
+ sortEmptyLast,
278
+ sortingColumns,
279
+ subrowSize: subRowSize,
280
+ toolbarDelayClose,
281
+ useTreeData,
282
+ virtualized,
283
+ visibleColumns,
284
+ wrapText
285
+ }
286
+ ) });
287
+ };
265
288
  const props = {
266
- instanceRef: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.func, import_ds_utilities.PropTypes.shape({ current: import_ds_utilities.PropTypes.any })]).description(
289
+ /** ref to the instance of the datagrid, handle it imperatively */
290
+ instanceRef: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.func, import_ds_props_helpers.PropTypes.shape({ current: import_ds_props_helpers.PropTypes.any })]).description(
267
291
  "ref to the instance of the datagrid, handle it imperatively"
268
292
  ),
269
- className: import_ds_utilities.PropTypes.string.description("class for data grid wrapper"),
270
- containerProps: import_ds_utilities.PropTypes.object.description("inject props to datagrid wrapper"),
271
- filterBarOptions: import_ds_utilities.PropTypes.shape({
272
- minWidth: import_ds_utilities.PropTypes.number,
273
- maxWidth: import_ds_utilities.PropTypes.number
293
+ /** class for data grid wrapper */
294
+ className: import_ds_props_helpers.PropTypes.string.description("class for data grid wrapper"),
295
+ /** inject props to datagrid wrapper */
296
+ containerProps: import_ds_props_helpers.PropTypes.object.description("inject props to datagrid wrapper"),
297
+ /** FilterBar props passed down to FilterBar */
298
+ filterBarOptions: import_ds_props_helpers.PropTypes.shape({
299
+ minWidth: import_ds_props_helpers.PropTypes.number,
300
+ maxWidth: import_ds_props_helpers.PropTypes.number
274
301
  }).description("FilterBar props passed down to FilterBar"),
275
- columns: import_ds_utilities.PropTypes.arrayOf(
276
- import_ds_utilities.PropTypes.shape({
277
- property: import_ds_utilities.PropTypes.string.isRequired,
278
- label: import_ds_utilities.PropTypes.string,
279
- width: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.number, import_ds_utilities.PropTypes.string]),
280
- minWidth: import_ds_utilities.PropTypes.number,
281
- customEditor: import_ds_utilities.PropTypes.func,
282
- customRenderer: import_ds_utilities.PropTypes.func,
283
- searchable: import_ds_utilities.PropTypes.bool,
284
- sortable: import_ds_utilities.PropTypes.bool,
285
- resizable: import_ds_utilities.PropTypes.bool,
286
- editable: import_ds_utilities.PropTypes.bool,
287
- visible: import_ds_utilities.PropTypes.bool
302
+ /** datagrid columns */
303
+ columns: import_ds_props_helpers.PropTypes.arrayOf(
304
+ import_ds_props_helpers.PropTypes.shape({
305
+ /** Column property as an identifier */
306
+ property: import_ds_props_helpers.PropTypes.string.isRequired,
307
+ /** Label in the header */
308
+ label: import_ds_props_helpers.PropTypes.string,
309
+ /** Defines the width of the column, can be a string with percentages ("50%"), if not defined the width is flexible */
310
+ width: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.number, import_ds_props_helpers.PropTypes.string]),
311
+ /** Min width for this column. NOTE: Has prevalence over the general minColumnWidth */
312
+ minWidth: import_ds_props_helpers.PropTypes.number,
313
+ /** Function returning a custom editor for that cell ({ value, onValue, rowData }) => Element */
314
+ customEditor: import_ds_props_helpers.PropTypes.func,
315
+ /** Function returning an element to render in the cell ({ value, customHandlers, metaData: { rowData } }) => Element */
316
+ customRenderer: import_ds_props_helpers.PropTypes.func,
317
+ /** Activates 'searchable' feature for this column */
318
+ searchable: import_ds_props_helpers.PropTypes.bool,
319
+ /** Activates 'sortable' feature for this column */
320
+ sortable: import_ds_props_helpers.PropTypes.bool,
321
+ /** Activates 'resizable' feature for this column */
322
+ resizable: import_ds_props_helpers.PropTypes.bool,
323
+ /** Activates 'editable' feature for this column */
324
+ editable: import_ds_props_helpers.PropTypes.bool,
325
+ /** Whether this column is visible or not */
326
+ visible: import_ds_props_helpers.PropTypes.bool
288
327
  })
289
328
  ).description("datagrid columns"),
290
- rows: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.object).description("datagrid rows"),
291
- rowKey: import_ds_utilities.PropTypes.string.description("key for each row"),
292
- infiniteScrolling: import_ds_utilities.PropTypes.bool.description("toggle infinite scroll loading behavior"),
293
- overscanCount: import_ds_utilities.PropTypes.number.description(
329
+ /** datagrid rows */
330
+ rows: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.object).description("datagrid rows"),
331
+ /** key for each row */
332
+ rowKey: import_ds_props_helpers.PropTypes.string.description("key for each row"),
333
+ /** toggle infinite scroll loading behavior */
334
+ infiniteScrolling: import_ds_props_helpers.PropTypes.bool.description("toggle infinite scroll loading behavior"),
335
+ /** Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well */
336
+ overscanCount: import_ds_props_helpers.PropTypes.number.description(
294
337
  "Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well"
295
338
  ),
296
- editable: import_ds_utilities.PropTypes.bool.description("turn datagrid to editable mode"),
297
- sortable: import_ds_utilities.PropTypes.bool.description(
339
+ /** turn datagrid to editable mode */
340
+ editable: import_ds_props_helpers.PropTypes.bool.description("turn datagrid to editable mode"),
341
+ /** Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well */
342
+ sortable: import_ds_props_helpers.PropTypes.bool.description(
298
343
  "Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well"
299
344
  ),
300
- sortEmptyLast: import_ds_utilities.PropTypes.bool.description("Put empty values always last on the column after sorting"),
301
- paginated: import_ds_utilities.PropTypes.bool.description(
345
+ /** Put empty values always last on the column after sorting */
346
+ sortEmptyLast: import_ds_props_helpers.PropTypes.bool.description("Put empty values always last on the column after sorting"),
347
+ /** Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well */
348
+ paginated: import_ds_props_helpers.PropTypes.bool.description(
302
349
  "Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well"
303
350
  ),
304
- paginationStep: import_ds_utilities.PropTypes.number.description("Pagination step for clicking the next pages"),
305
- dragAndDropRows: import_ds_utilities.PropTypes.bool.description(
351
+ /** Pagination step for clicking the next pages */
352
+ paginationStep: import_ds_props_helpers.PropTypes.number.description("Pagination step for clicking the next pages"),
353
+ /** Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well */
354
+ dragAndDropRows: import_ds_props_helpers.PropTypes.bool.description(
306
355
  "Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well"
307
356
  ),
308
- selectable: import_ds_utilities.PropTypes.bool.description(
357
+ /** Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well */
358
+ selectable: import_ds_props_helpers.PropTypes.bool.description(
309
359
  "Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well"
310
360
  ),
311
- resizeableColumns: import_ds_utilities.PropTypes.bool.description(
361
+ /** Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well */
362
+ resizeableColumns: import_ds_props_helpers.PropTypes.bool.description(
312
363
  "Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well"
313
364
  ),
314
- noResultsPlaceholder: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.element]).description(
365
+ /** Placeholder rendered when no rows are visible */
366
+ noResultsPlaceholder: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.element]).description(
315
367
  "Placeholder rendered when no rows are visible"
316
368
  ),
317
- searchFilters: import_ds_utilities.PropTypes.bool.description(
369
+ /** Activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well */
370
+ searchFilters: import_ds_props_helpers.PropTypes.bool.description(
318
371
  "activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well"
319
372
  ),
320
- dragAndDropColumns: import_ds_utilities.PropTypes.bool.description(
373
+ /** Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well */
374
+ dragAndDropColumns: import_ds_props_helpers.PropTypes.bool.description(
321
375
  "Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well"
322
376
  ),
323
- useTreeData: import_ds_utilities.PropTypes.bool.description(
377
+ /** Activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well */
378
+ useTreeData: import_ds_props_helpers.PropTypes.bool.description(
324
379
  "activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well"
325
380
  ),
326
- autoScrollToId: import_ds_utilities.PropTypes.any.description("AutoScroll to row ID"),
327
- selectAll: import_ds_utilities.PropTypes.bool.description("Whether all rows are selected or not"),
328
- selectedRows: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.object).description(" Defines the selected rows"),
329
- filters: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.object).description("Filters to be applied to the grid"),
330
- onExpandRow: import_ds_utilities.PropTypes.func.description("Handler when user expands a row"),
331
- onExpandChange: import_ds_utilities.PropTypes.func.description("Handler when user expands a row with full expand state"),
332
- onToggleExpand: import_ds_utilities.PropTypes.func.description("Handler when user expands a row (old API)"),
333
- onAddFilter: import_ds_utilities.PropTypes.func.description("Handler when user adds a filter"),
334
- onRemoveFilter: import_ds_utilities.PropTypes.func.description("Handler when user removes a filter"),
335
- onFiltersChange: import_ds_utilities.PropTypes.func.description("Handler when the filters state has changed "),
336
- onDefaultFiltersLoad: import_ds_utilities.PropTypes.func.description("Handler when the default filters load. Returns the rows rendered"),
337
- onMoveColumnOver: import_ds_utilities.PropTypes.func.description("Handler when column move is over another column"),
338
- onMoveColumnStart: import_ds_utilities.PropTypes.func.description(" Handler when column move starts"),
339
- onMoveColumnEnd: import_ds_utilities.PropTypes.func.description("Handler when column move ends"),
340
- showFilterBar: import_ds_utilities.PropTypes.bool.description("Whether to show the filter bar or not"),
341
- multiSelectFilterOptions: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.object).description(
381
+ /** AutoScroll to row ID */
382
+ autoScrollToId: import_ds_props_helpers.PropTypes.any.description("AutoScroll to row ID"),
383
+ /** Whether all rows are selected or not */
384
+ selectAll: import_ds_props_helpers.PropTypes.bool.description("Whether all rows are selected or not"),
385
+ /** Defines the selected rows */
386
+ selectedRows: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.object).description(" Defines the selected rows"),
387
+ /** Filters to be applied to the grid */
388
+ filters: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.object).description("Filters to be applied to the grid"),
389
+ // todo: define params for handlers
390
+ /** Handler when user expands a row */
391
+ onExpandRow: import_ds_props_helpers.PropTypes.func.description("Handler when user expands a row"),
392
+ /** Handler when user expands a row with full expand state */
393
+ onExpandChange: import_ds_props_helpers.PropTypes.func.description("Handler when user expands a row with full expand state"),
394
+ /** Handler when user expands a row (old API) */
395
+ onToggleExpand: import_ds_props_helpers.PropTypes.func.description("Handler when user expands a row (old API)"),
396
+ /** Handler when user adds a filter */
397
+ onAddFilter: import_ds_props_helpers.PropTypes.func.description("Handler when user adds a filter"),
398
+ /** Handler when user removes a filter */
399
+ onRemoveFilter: import_ds_props_helpers.PropTypes.func.description("Handler when user removes a filter"),
400
+ /** Handler when the filters state has changed */
401
+ onFiltersChange: import_ds_props_helpers.PropTypes.func.description("Handler when the filters state has changed "),
402
+ /** Handler when the default filters load. Returns the rows rendered */
403
+ onDefaultFiltersLoad: import_ds_props_helpers.PropTypes.func.description("Handler when the default filters load. Returns the rows rendered"),
404
+ /** Handler when column move is over another column */
405
+ onMoveColumnOver: import_ds_props_helpers.PropTypes.func.description("Handler when column move is over another column"),
406
+ /** Handler when column move starts */
407
+ onMoveColumnStart: import_ds_props_helpers.PropTypes.func.description(" Handler when column move starts"),
408
+ /** Handler when column move ends */
409
+ onMoveColumnEnd: import_ds_props_helpers.PropTypes.func.description("Handler when column move ends"),
410
+ /** Whether to show the filter bar or not */
411
+ showFilterBar: import_ds_props_helpers.PropTypes.bool.description("Whether to show the filter bar or not"),
412
+ /** Custom option for the header with multi select */
413
+ multiSelectFilterOptions: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.object).description(
342
414
  "Custom option for the header with multi select"
343
415
  ),
344
- multiSelectFilterLabel: import_ds_utilities.PropTypes.string.description("Label to the header column for multi select"),
345
- multiSelectFilterLabels: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.string).description("Labels for multi selects"),
346
- aggregations: import_ds_utilities.PropTypes.object.description("").deprecated(""),
347
- groupingColumn: import_ds_utilities.PropTypes.string.description("Column which rows would be grouped by").deprecated(""),
348
- groupedBy: import_ds_utilities.PropTypes.string.description("group by"),
349
- sortingColumns: import_ds_utilities.PropTypes.objectOf(
350
- import_ds_utilities.PropTypes.shape({
351
- direction: import_ds_utilities.PropTypes.oneOf(["asc", "desc"]),
352
- position: import_ds_utilities.PropTypes.number
416
+ /** Label to the header column for multi select */
417
+ multiSelectFilterLabel: import_ds_props_helpers.PropTypes.string.description("Label to the header column for multi select"),
418
+ /** Labels for multi selects */
419
+ multiSelectFilterLabels: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.string).description("Labels for multi selects"),
420
+ /** unstable */
421
+ aggregations: import_ds_props_helpers.PropTypes.object.description("").deprecated(""),
422
+ /** unstable */
423
+ /** Column which rows would be grouped by */
424
+ groupingColumn: import_ds_props_helpers.PropTypes.string.description("Column which rows would be grouped by").deprecated(""),
425
+ /** group by */
426
+ groupedBy: import_ds_props_helpers.PropTypes.string.description("group by"),
427
+ /** Defines the sorting state */
428
+ sortingColumns: import_ds_props_helpers.PropTypes.objectOf(
429
+ import_ds_props_helpers.PropTypes.shape({
430
+ // eslint-disable-next-line react/no-unused-prop-types
431
+ direction: import_ds_props_helpers.PropTypes.oneOf(["asc", "desc"]),
432
+ // eslint-disable-next-line react/no-unused-prop-types
433
+ position: import_ds_props_helpers.PropTypes.number
353
434
  })
354
435
  ).description("Defines the sorting state"),
355
- visibleColumns: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.string).description("Visible columns property"),
356
- minPerPage: import_ds_utilities.PropTypes.string.description("Pagination: Minimum number of rows per page"),
357
- maxPerPage: import_ds_utilities.PropTypes.string.description("Pagination: Maximum number of rows per page"),
358
- onPerPageChange: import_ds_utilities.PropTypes.string.description("Pagination: Handler when user changes the amount of rows per page"),
359
- onPageChange: import_ds_utilities.PropTypes.string.description("Pagination: Handler when user changes the page"),
360
- pagination: import_ds_utilities.PropTypes.shape({
361
- page: import_ds_utilities.PropTypes.number,
362
- perPage: import_ds_utilities.PropTypes.number
436
+ /** Visible columns property */
437
+ visibleColumns: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.string).description("Visible columns property"),
438
+ /** Pagination: Minimum number of rows per page */
439
+ minPerPage: import_ds_props_helpers.PropTypes.string.description("Pagination: Minimum number of rows per page"),
440
+ /** Pagination: Maximum number of rows per page */
441
+ maxPerPage: import_ds_props_helpers.PropTypes.string.description("Pagination: Maximum number of rows per page"),
442
+ /** Pagination: Handler when user changes the amount of rows per page */
443
+ onPerPageChange: import_ds_props_helpers.PropTypes.string.description("Pagination: Handler when user changes the amount of rows per page"),
444
+ /** Pagination: Handler when user changes the page */
445
+ onPageChange: import_ds_props_helpers.PropTypes.string.description("Pagination: Handler when user changes the page"),
446
+ /** Pagination state */
447
+ pagination: import_ds_props_helpers.PropTypes.shape({
448
+ // eslint-disable-next-line react/no-unused-prop-types
449
+ page: import_ds_props_helpers.PropTypes.number,
450
+ // eslint-disable-next-line react/no-unused-prop-types
451
+ perPage: import_ds_props_helpers.PropTypes.number
363
452
  }).description("pagination state"),
364
- showHeader: import_ds_utilities.PropTypes.bool.description("Whether to show the header or not"),
365
- fixedHeader: import_ds_utilities.PropTypes.bool.description("Whether to header is fixed or not"),
366
- height: import_ds_utilities.PropTypes.number.description("Defines the height of the DataGrid"),
367
- minColumnWidth: import_ds_utilities.PropTypes.number.description("General min column width for all the columns "),
368
- showRowsLoader: import_ds_utilities.PropTypes.bool.description("Whether to show a loader instead of the rows or not"),
369
- showSelectHighlight: import_ds_utilities.PropTypes.bool.description("When a user selects a row, that row get highlighted"),
370
- showSelectColumn: import_ds_utilities.PropTypes.bool.description(
453
+ /** Whether to show the header or not */
454
+ showHeader: import_ds_props_helpers.PropTypes.bool.description("Whether to show the header or not"),
455
+ /** Whether to header is fixed or not */
456
+ fixedHeader: import_ds_props_helpers.PropTypes.bool.description("Whether to header is fixed or not"),
457
+ /** Defines the height of the DataGrid */
458
+ height: import_ds_props_helpers.PropTypes.number.description("Defines the height of the DataGrid"),
459
+ /** General min column width for all the columns */
460
+ minColumnWidth: import_ds_props_helpers.PropTypes.number.description("General min column width for all the columns "),
461
+ /** Whether to show a loader instead of the rows or not */
462
+ showRowsLoader: import_ds_props_helpers.PropTypes.bool.description("Whether to show a loader instead of the rows or not"),
463
+ /** When a user selects a row, that row get highlighted */
464
+ showSelectHighlight: import_ds_props_helpers.PropTypes.bool.description("When a user selects a row, that row get highlighted"),
465
+ /** Whether to show the select column when the selection feature is active */
466
+ showSelectColumn: import_ds_props_helpers.PropTypes.bool.description(
371
467
  "Whether to show the select column when the selection feature is active"
372
468
  ),
373
- selectColumnSortable: import_ds_utilities.PropTypes.bool.description("activates sortable feature to selection column"),
374
- selectColumnFilterable: import_ds_utilities.PropTypes.bool.description("Activates filterable feature to selection column"),
375
- selectionColumnDefinition: import_ds_utilities.PropTypes.object.description("Define the definition for the selection column"),
376
- renderToolbar: import_ds_utilities.PropTypes.func.description("Function that returns a toolbar to show when the user hovers the row"),
377
- toolbarDelayClose: import_ds_utilities.PropTypes.number.description(" Timeout to close the toolbar"),
378
- renderFilterToolbar: import_ds_utilities.PropTypes.func.description("Function that returns a toolbar in the FilterBar component"),
379
- multiSelectComponent: import_ds_utilities.PropTypes.element.description("Custom component for the selection"),
380
- normalizeDataKeys: import_ds_utilities.PropTypes.bool.description("Normalize the keys of the data received and the columns"),
381
- noResultsRender: import_ds_utilities.PropTypes.func.description("Function that returns an Element when there are no rows"),
382
- fluidHeight: import_ds_utilities.PropTypes.bool.description("The height of the DataGrid will expand to its container"),
383
- customHandlers: import_ds_utilities.PropTypes.object.description("").deprecated(""),
384
- onFilterMenuClose: import_ds_utilities.PropTypes.func.description("Handler when user closes the filter menu"),
385
- onFilterMenuOpen: import_ds_utilities.PropTypes.func.description("Handler when user opens the filter menu"),
386
- onReorder: import_ds_utilities.PropTypes.func.description("handler when user drags a row "),
387
- onMoveRowEnd: import_ds_utilities.PropTypes.func.description("Handler when user stops dragging a row "),
388
- onMoveRowStart: import_ds_utilities.PropTypes.func.description("Handler when user starts dragging a row"),
389
- onColumnResize: import_ds_utilities.PropTypes.func.description("Handler when user has resized a column"),
390
- onFilter: import_ds_utilities.PropTypes.func.description("Handler when user filters by a column"),
391
- onSort: import_ds_utilities.PropTypes.func.description("Handler when user sorts by a column "),
392
- onColumnRowEdited: import_ds_utilities.PropTypes.func.description("Handler when user has edited a cell row"),
393
- onColumnRowEdit: import_ds_utilities.PropTypes.func.description(" Handler when user activates the cell row editing functionality"),
394
- onSelectRow: import_ds_utilities.PropTypes.func.description("Handler when user selects a row"),
395
- onSelectAll: import_ds_utilities.PropTypes.func.description("Handler when user checks the selection header controller"),
396
- getData: import_ds_utilities.PropTypes.func.description("Handler to get more data when infinite scroll is activated"),
397
- onInfiniteScrolling: import_ds_utilities.PropTypes.func.description(
469
+ /** Activates sortable feature to selection column */
470
+ selectColumnSortable: import_ds_props_helpers.PropTypes.bool.description("activates sortable feature to selection column"),
471
+ /** Activates filterable feature to selection column */
472
+ selectColumnFilterable: import_ds_props_helpers.PropTypes.bool.description("Activates filterable feature to selection column"),
473
+ /** Define the definition for the selection column */
474
+ selectionColumnDefinition: import_ds_props_helpers.PropTypes.object.description("Define the definition for the selection column"),
475
+ /** Function that returns a toolbar to show when the user hovers the row */
476
+ renderToolbar: import_ds_props_helpers.PropTypes.func.description("Function that returns a toolbar to show when the user hovers the row"),
477
+ /** Timeout to close the toolbar */
478
+ toolbarDelayClose: import_ds_props_helpers.PropTypes.number.description(" Timeout to close the toolbar"),
479
+ /** Function that returns a toolbar in the FilterBar component */
480
+ renderFilterToolbar: import_ds_props_helpers.PropTypes.func.description("Function that returns a toolbar in the FilterBar component"),
481
+ /** Custom component for the selection */
482
+ multiSelectComponent: import_ds_props_helpers.PropTypes.element.description("Custom component for the selection"),
483
+ /** Normalize the keys of the data received and the columns */
484
+ normalizeDataKeys: import_ds_props_helpers.PropTypes.bool.description("Normalize the keys of the data received and the columns"),
485
+ /** Function that returns an Element when there are no rows */
486
+ noResultsRender: import_ds_props_helpers.PropTypes.func.description("Function that returns an Element when there are no rows"),
487
+ /** The height of the DataGrid will expand to its container */
488
+ fluidHeight: import_ds_props_helpers.PropTypes.bool.description("The height of the DataGrid will expand to its container"),
489
+ /** @deprecated */
490
+ customHandlers: import_ds_props_helpers.PropTypes.object.description("").deprecated(""),
491
+ /** Handler when user closes the filter menu */
492
+ onFilterMenuClose: import_ds_props_helpers.PropTypes.func.description("Handler when user closes the filter menu"),
493
+ /** Handler when user opens the filter menu */
494
+ onFilterMenuOpen: import_ds_props_helpers.PropTypes.func.description("Handler when user opens the filter menu"),
495
+ /** Handler when user drags a row */
496
+ onReorder: import_ds_props_helpers.PropTypes.func.description("handler when user drags a row "),
497
+ /** Handler when user stops dragging a row */
498
+ onMoveRowEnd: import_ds_props_helpers.PropTypes.func.description("Handler when user stops dragging a row "),
499
+ /** Handler when user starts dragging a row */
500
+ onMoveRowStart: import_ds_props_helpers.PropTypes.func.description("Handler when user starts dragging a row"),
501
+ /** Handler when user has resized a column */
502
+ onColumnResize: import_ds_props_helpers.PropTypes.func.description("Handler when user has resized a column"),
503
+ /** Handler when user filters by a column */
504
+ onFilter: import_ds_props_helpers.PropTypes.func.description("Handler when user filters by a column"),
505
+ /** Handler when user sorts by a column */
506
+ onSort: import_ds_props_helpers.PropTypes.func.description("Handler when user sorts by a column "),
507
+ /** Handler when user has edited a cell row */
508
+ onColumnRowEdited: import_ds_props_helpers.PropTypes.func.description("Handler when user has edited a cell row"),
509
+ /** Handler when user activates the cell row editing functionality */
510
+ onColumnRowEdit: import_ds_props_helpers.PropTypes.func.description(" Handler when user activates the cell row editing functionality"),
511
+ /** Handler when user selects a row */
512
+ onSelectRow: import_ds_props_helpers.PropTypes.func.description("Handler when user selects a row"),
513
+ /** Handler when user checks the selection header controller */
514
+ onSelectAll: import_ds_props_helpers.PropTypes.func.description("Handler when user checks the selection header controller"),
515
+ /** Handler to get more data when infinite scroll is activated */
516
+ getData: import_ds_props_helpers.PropTypes.func.description("Handler to get more data when infinite scroll is activated"),
517
+ /** Handler to get more data when infinite scroll is activated without side-effect */
518
+ onInfiniteScrolling: import_ds_props_helpers.PropTypes.func.description(
398
519
  "Handler to get more data when infinite scroll is activated without side-effect"
399
520
  ),
400
- serverSideData: import_ds_utilities.PropTypes.bool.description("Flag to override empty sort when data is from server"),
401
- virtualized: import_ds_utilities.PropTypes.bool.description("Flag to force virtualization. Not used"),
402
- numRowsVisible: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.number, import_ds_utilities.PropTypes.oneOf(["all"])]).description("Number of rows visible. Not used"),
403
- isColumnEditable: import_ds_utilities.PropTypes.func.description("Callback to check if column is editable"),
404
- groupedRows: import_ds_utilities.PropTypes.bool.description("Flag for groupedRows"),
405
- groupedRowsRenderHeader: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.func, import_ds_utilities.PropTypes.element]).description("Header for grouped rows"),
406
- isDataSorted: import_ds_utilities.PropTypes.bool.description("Once activated will disable the internal logic for sorting"),
407
- isDataFiltered: import_ds_utilities.PropTypes.bool.description("Once activated will disable the internal logic for filtering"),
408
- rowSize: import_ds_utilities.PropTypes.oneOf(import_rowSizes.RowSizesOptionsArr).description("Change row size"),
409
- wrapText: import_ds_utilities.PropTypes.bool.description("Whether to wrap the text of the data grid or not"),
410
- renderExpandedDetails: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.func, import_ds_utilities.PropTypes.element]).description(
521
+ /** Flag to override empty sort when data is from server */
522
+ serverSideData: import_ds_props_helpers.PropTypes.bool.description("Flag to override empty sort when data is from server"),
523
+ /** Flag to force virtualization. Not used */
524
+ virtualized: import_ds_props_helpers.PropTypes.bool.description("Flag to force virtualization. Not used"),
525
+ /** Number of rows visible. Not used */
526
+ numRowsVisible: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.number, import_ds_props_helpers.PropTypes.oneOf(["all"])]).description(
527
+ "Number of rows visible. Not used"
528
+ ),
529
+ /** Callback to check if column is editable */
530
+ isColumnEditable: import_ds_props_helpers.PropTypes.func.description("Callback to check if column is editable"),
531
+ /** Flag for groupedRows */
532
+ groupedRows: import_ds_props_helpers.PropTypes.bool.description("Flag for groupedRows"),
533
+ /** Header for grouped rows */
534
+ groupedRowsRenderHeader: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.func, import_ds_props_helpers.PropTypes.element]).description(
535
+ "Header for grouped rows"
536
+ ),
537
+ /** Once activated will disable the internal logic for sorting */
538
+ isDataSorted: import_ds_props_helpers.PropTypes.bool.description("Once activated will disable the internal logic for sorting"),
539
+ /** Once activated will disable the internal logic for filtering */
540
+ isDataFiltered: import_ds_props_helpers.PropTypes.bool.description("Once activated will disable the internal logic for filtering"),
541
+ /** Change row size */
542
+ rowSize: import_ds_props_helpers.PropTypes.oneOf(import_rowSizes.RowSizesOptionsArr).description("Change row size"),
543
+ /** Whether to wrap the text of the data grid or not */
544
+ wrapText: import_ds_props_helpers.PropTypes.bool.description("Whether to wrap the text of the data grid or not"),
545
+ /** Element to render expanded details */
546
+ renderExpandedDetails: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.func, import_ds_props_helpers.PropTypes.element]).description(
411
547
  "Element to render expanded details"
412
548
  ),
413
- detailColumns: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.object).description("Columns to render on the details of an expanded row"),
414
- expandable: import_ds_utilities.PropTypes.bool.description("Flag to enable the expandable feature "),
415
- getChildrenRows: import_ds_utilities.PropTypes.func.description("Callback to get the row children"),
416
- expandableSubrowsVisible: import_ds_utilities.PropTypes.number.description("Number of rows visible on the details of an expanded row"),
417
- renderRowDetails: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.func, import_ds_utilities.PropTypes.element]).description(
549
+ /** Columns to render on the details of an expanded row */
550
+ detailColumns: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.object).description("Columns to render on the details of an expanded row"),
551
+ /** Flag to enable the expandable feature */
552
+ expandable: import_ds_props_helpers.PropTypes.bool.description("Flag to enable the expandable feature "),
553
+ /** Callback to get the row children */
554
+ getChildrenRows: import_ds_props_helpers.PropTypes.func.description("Callback to get the row children"),
555
+ /** Number of rows visible on the details of an expanded row */
556
+ expandableSubrowsVisible: import_ds_props_helpers.PropTypes.number.description("Number of rows visible on the details of an expanded row"),
557
+ /** Element to render inside expanded row */
558
+ renderRowDetails: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.func, import_ds_props_helpers.PropTypes.element]).description(
418
559
  "Element to render inside expanded row"
419
560
  ),
420
- getExpandedRowSize: import_ds_utilities.PropTypes.func.description("Callback to get the expanded row size"),
421
- getExpandedRowMinSize: import_ds_utilities.PropTypes.func.description("Callback to get the expanded row minimum size"),
422
- subRowSize: import_ds_utilities.PropTypes.oneOf(import_rowSizes.RowSizesOptionsArr).description("Change expanded/details rows size"),
423
- bindColumnsSizeTo: import_ds_utilities.PropTypes.string.description("Bind the column size to another grid instance"),
424
- bindRowSizeTo: import_ds_utilities.PropTypes.string.description("Bind the row size to another grid instance"),
425
- onToggleShowAllRows: import_ds_utilities.PropTypes.func.description("Handler when toggle show all is clicked"),
426
- expandedRows: import_ds_utilities.PropTypes.object.description("Expanded row state"),
427
- autoHeight: import_ds_utilities.PropTypes.bool.description("Flag to enable autoheight"),
428
- noColumnsPlaceholder: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.element]).description(
561
+ /** Callback to get the expanded row size */
562
+ getExpandedRowSize: import_ds_props_helpers.PropTypes.func.description("Callback to get the expanded row size"),
563
+ /** Callback to get the expanded row minimum size */
564
+ getExpandedRowMinSize: import_ds_props_helpers.PropTypes.func.description("Callback to get the expanded row minimum size"),
565
+ /** Change expanded/details rows size */
566
+ subRowSize: import_ds_props_helpers.PropTypes.oneOf(import_rowSizes.RowSizesOptionsArr).description("Change expanded/details rows size"),
567
+ /** Bind the column size to another grid instance */
568
+ bindColumnsSizeTo: import_ds_props_helpers.PropTypes.string.description("Bind the column size to another grid instance"),
569
+ /** Bind the row size to another grid instance */
570
+ bindRowSizeTo: import_ds_props_helpers.PropTypes.string.description("Bind the row size to another grid instance"),
571
+ /** Handler when toggle show all is clicked */
572
+ onToggleShowAllRows: import_ds_props_helpers.PropTypes.func.description("Handler when toggle show all is clicked"),
573
+ /** Expanded row state */
574
+ expandedRows: import_ds_props_helpers.PropTypes.object.description("Expanded row state"),
575
+ /** Flag to enable autoheight */
576
+ autoHeight: import_ds_props_helpers.PropTypes.bool.description("Flag to enable autoheight"),
577
+ /** Placeholder rendered when no columns are visible */
578
+ noColumnsPlaceholder: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.element]).description(
429
579
  "Placeholder rendered when no columns are visible"
430
580
  ),
431
- plugins: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.any).description("Plugin additional array")
581
+ /** Plugin additional array */
582
+ plugins: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.any).description("Plugin additional array")
432
583
  };
433
584
  DSDataGrids.propTypes = props;
434
585
  DSDataGrids.displayName = "DSDataGrids";
435
- const DSDataGridsWithSchema = (0, import_ds_utilities.describe)(DSDataGrids);
586
+ const DSDataGridsWithSchema = (0, import_ds_props_helpers.describe)(DSDataGrids);
436
587
  DSDataGridsWithSchema.propTypes = props;
437
588
  var DSDataGrid_default = DSDataGrids;
438
589
  //# sourceMappingURL=DSDataGrid.js.map