@elliemae/ds-datagrids 2.2.0-next.6 → 2.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (577) hide show
  1. package/cjs/DSDataGrid.js +395 -635
  2. package/cjs/DSDataGrid.js.map +7 -0
  3. package/cjs/DataGridImpl.js +103 -128
  4. package/cjs/DataGridImpl.js.map +7 -0
  5. package/cjs/PaginatedDataGrid.js +68 -68
  6. package/cjs/PaginatedDataGrid.js.map +7 -0
  7. package/cjs/blockNames.js +39 -11
  8. package/cjs/blockNames.js.map +7 -0
  9. package/cjs/columns/IconColumn.js +78 -62
  10. package/cjs/columns/IconColumn.js.map +7 -0
  11. package/cjs/columns/NumberColumn.js +35 -5
  12. package/cjs/columns/NumberColumn.js.map +7 -0
  13. package/cjs/components/BodyCell.js +83 -80
  14. package/cjs/components/BodyCell.js.map +7 -0
  15. package/cjs/components/BodyList.js +52 -52
  16. package/cjs/components/BodyList.js.map +7 -0
  17. package/cjs/components/ColumnVisibilityMenuOption.js +53 -31
  18. package/cjs/components/ColumnVisibilityMenuOption.js.map +7 -0
  19. package/cjs/components/ColumnsOptionsMenuSection.js +59 -44
  20. package/cjs/components/ColumnsOptionsMenuSection.js.map +7 -0
  21. package/cjs/components/EmptyState.js +81 -50
  22. package/cjs/components/EmptyState.js.map +7 -0
  23. package/cjs/components/HeaderCell.js +64 -58
  24. package/cjs/components/HeaderCell.js.map +7 -0
  25. package/cjs/components/List.js +41 -29
  26. package/cjs/components/List.js.map +7 -0
  27. package/cjs/components/ListItem.js +43 -36
  28. package/cjs/components/ListItem.js.map +7 -0
  29. package/cjs/components/NoResults.js +55 -51
  30. package/cjs/components/NoResults.js.map +7 -0
  31. package/cjs/components/RowsLoader.js +42 -22
  32. package/cjs/components/RowsLoader.js.map +7 -0
  33. package/cjs/components/Table.js +78 -87
  34. package/cjs/components/Table.js.map +7 -0
  35. package/cjs/components/TableBody.js +61 -60
  36. package/cjs/components/TableBody.js.map +7 -0
  37. package/cjs/components/TableHeader.js +47 -30
  38. package/cjs/components/TableHeader.js.map +7 -0
  39. package/cjs/components/footer/addOptionalFooterComponents.js +53 -43
  40. package/cjs/components/footer/addOptionalFooterComponents.js.map +7 -0
  41. package/cjs/components/header/PrimaryControls.js +49 -35
  42. package/cjs/components/header/PrimaryControls.js.map +7 -0
  43. package/cjs/components/header/addOptionalHeaderComponents.js +54 -43
  44. package/cjs/components/header/addOptionalHeaderComponents.js.map +7 -0
  45. package/cjs/components/index.js +43 -17
  46. package/cjs/components/index.js.map +7 -0
  47. package/cjs/components/renderers/defaultClassedRenderers.js +64 -57
  48. package/cjs/components/renderers/defaultClassedRenderers.js.map +7 -0
  49. package/cjs/components/renderers/index.js +44 -17
  50. package/cjs/components/renderers/index.js.map +7 -0
  51. package/cjs/components/renderers/renderRowsLoader.js +39 -18
  52. package/cjs/components/renderers/renderRowsLoader.js.map +7 -0
  53. package/cjs/components/tableContext.js +36 -13
  54. package/cjs/components/tableContext.js.map +7 -0
  55. package/cjs/defaultPlugins.js +44 -12
  56. package/cjs/defaultPlugins.js.map +7 -0
  57. package/cjs/index.js +72 -67
  58. package/cjs/index.js.map +7 -0
  59. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +102 -114
  60. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
  61. package/cjs/plugins/body-header-scroll-sync/index.js +35 -9
  62. package/cjs/plugins/body-header-scroll-sync/index.js.map +7 -0
  63. package/cjs/plugins/column-dnd/DndColumnsPlugin.js +107 -86
  64. package/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
  65. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +43 -27
  66. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
  67. package/cjs/plugins/column-dnd/index.js +35 -9
  68. package/cjs/plugins/column-dnd/index.js.map +7 -0
  69. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +59 -55
  70. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
  71. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +48 -53
  72. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
  73. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +40 -13
  74. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
  75. package/cjs/plugins/column-sizing/ext-points/getTableProps.js +55 -54
  76. package/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
  77. package/cjs/plugins/column-sizing/getColumnNameFromProperty.js +37 -9
  78. package/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
  79. package/cjs/plugins/column-sizing/index.js +35 -9
  80. package/cjs/plugins/column-sizing/index.js.map +7 -0
  81. package/cjs/plugins/column-sizing/useColumnSizeService.js +72 -86
  82. package/cjs/plugins/column-sizing/useColumnSizeService.js.map +7 -0
  83. package/cjs/plugins/column-sizing/useStylesheetHelpers.js +96 -199
  84. package/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
  85. package/cjs/plugins/column-sizing/utils.js +52 -29
  86. package/cjs/plugins/column-sizing/utils.js.map +7 -0
  87. package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +38 -16
  88. package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
  89. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +61 -56
  90. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
  91. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +58 -60
  92. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
  93. package/cjs/plugins/custom-cell-renderer/index.js +35 -9
  94. package/cjs/plugins/custom-cell-renderer/index.js.map +7 -0
  95. package/cjs/plugins/editable/EditableComponents/ComboBox.js +50 -53
  96. package/cjs/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
  97. package/cjs/plugins/editable/EditableComponents/TextBox.js +56 -76
  98. package/cjs/plugins/editable/EditableComponents/TextBox.js.map +7 -0
  99. package/cjs/plugins/editable/EditableComponents/index.js +37 -11
  100. package/cjs/plugins/editable/EditableComponents/index.js.map +7 -0
  101. package/cjs/plugins/editable/EditablePlugin.js +60 -75
  102. package/cjs/plugins/editable/EditablePlugin.js.map +7 -0
  103. package/cjs/plugins/editable/decorateEditable.js +61 -98
  104. package/cjs/plugins/editable/decorateEditable.js.map +7 -0
  105. package/cjs/plugins/editable/getEditorComponent.js +70 -76
  106. package/cjs/plugins/editable/getEditorComponent.js.map +7 -0
  107. package/cjs/plugins/editable/index.js +38 -13
  108. package/cjs/plugins/editable/index.js.map +7 -0
  109. package/cjs/plugins/expandable-grid/ExpandableColumn.js +112 -144
  110. package/cjs/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
  111. package/cjs/plugins/expandable-grid/ExpandablePlugin.js +118 -180
  112. package/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
  113. package/cjs/plugins/expandable-grid/ExpandedRow.js +117 -139
  114. package/cjs/plugins/expandable-grid/ExpandedRow.js.map +7 -0
  115. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +54 -52
  116. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
  117. package/cjs/plugins/expandable-grid/index.js +37 -11
  118. package/cjs/plugins/expandable-grid/index.js.map +7 -0
  119. package/cjs/plugins/expandable-grid/useExpandGridState.js +45 -31
  120. package/cjs/plugins/expandable-grid/useExpandGridState.js.map +7 -0
  121. package/cjs/plugins/export-data/ExportDataPlugin.js +82 -116
  122. package/cjs/plugins/export-data/ExportDataPlugin.js.map +7 -0
  123. package/cjs/plugins/export-data/index.js +35 -12
  124. package/cjs/plugins/export-data/index.js.map +7 -0
  125. package/cjs/plugins/filterable/FilterablePlugin.js +54 -55
  126. package/cjs/plugins/filterable/FilterablePlugin.js.map +7 -0
  127. package/cjs/plugins/filterable/addFilterToColumn.js +40 -28
  128. package/cjs/plugins/filterable/addFilterToColumn.js.map +7 -0
  129. package/cjs/plugins/filterable/components/FilterableHeader.js +119 -107
  130. package/cjs/plugins/filterable/components/FilterableHeader.js.map +7 -0
  131. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +116 -116
  132. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
  133. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +97 -73
  134. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
  135. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +138 -132
  136. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
  137. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +115 -119
  138. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
  139. package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +35 -7
  140. package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
  141. package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +46 -15
  142. package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
  143. package/cjs/plugins/filterable/filterableFormatter.js +61 -51
  144. package/cjs/plugins/filterable/filterableFormatter.js.map +7 -0
  145. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +60 -55
  146. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
  147. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +43 -22
  148. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
  149. package/cjs/plugins/filterable/helper.js +68 -79
  150. package/cjs/plugins/filterable/helper.js.map +7 -0
  151. package/cjs/plugins/filterable/index.js +35 -9
  152. package/cjs/plugins/filterable/index.js.map +7 -0
  153. package/cjs/plugins/filterable/useFilterableState.js +62 -66
  154. package/cjs/plugins/filterable/useFilterableState.js.map +7 -0
  155. package/cjs/plugins/grouping-by/GroupingByPlugin.js +40 -23
  156. package/cjs/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
  157. package/cjs/plugins/grouping-grid/GroupingPlugin.js +86 -109
  158. package/cjs/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
  159. package/cjs/plugins/grouping-grid/walkStrategy.js +46 -26
  160. package/cjs/plugins/grouping-grid/walkStrategy.js.map +7 -0
  161. package/cjs/plugins/index.js +68 -48
  162. package/cjs/plugins/index.js.map +7 -0
  163. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +64 -88
  164. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
  165. package/cjs/plugins/infinite-scrolling/index.js +35 -9
  166. package/cjs/plugins/infinite-scrolling/index.js.map +7 -0
  167. package/cjs/plugins/pagination/PaginationPlugin.js +73 -90
  168. package/cjs/plugins/pagination/PaginationPlugin.js.map +7 -0
  169. package/cjs/plugins/pagination/components/Pagination.js +54 -35
  170. package/cjs/plugins/pagination/components/Pagination.js.map +7 -0
  171. package/cjs/plugins/pagination/components/Paginator.js +59 -44
  172. package/cjs/plugins/pagination/components/Paginator.js.map +7 -0
  173. package/cjs/plugins/pagination/components/PerPageDropdown.js +51 -63
  174. package/cjs/plugins/pagination/components/PerPageDropdown.js.map +7 -0
  175. package/cjs/plugins/pagination/helper.js +45 -24
  176. package/cjs/plugins/pagination/helper.js.map +7 -0
  177. package/cjs/plugins/pagination/index.js +35 -9
  178. package/cjs/plugins/pagination/index.js.map +7 -0
  179. package/cjs/plugins/pagination/usePaginationState.js +46 -38
  180. package/cjs/plugins/pagination/usePaginationState.js.map +7 -0
  181. package/cjs/plugins/resizable/ResizablePlugin.js +51 -55
  182. package/cjs/plugins/resizable/ResizablePlugin.js.map +7 -0
  183. package/cjs/plugins/resizable/decorateResizable.js +49 -53
  184. package/cjs/plugins/resizable/decorateResizable.js.map +7 -0
  185. package/cjs/plugins/resizable/index.js +35 -9
  186. package/cjs/plugins/resizable/index.js.map +7 -0
  187. package/cjs/plugins/resizable/useResizeHandle.js +56 -50
  188. package/cjs/plugins/resizable/useResizeHandle.js.map +7 -0
  189. package/cjs/plugins/resizable/utils.js +49 -28
  190. package/cjs/plugins/resizable/utils.js.map +7 -0
  191. package/cjs/plugins/row-dnd/DndRowsPlugin.js +103 -82
  192. package/cjs/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
  193. package/cjs/plugins/row-dnd/index.js +35 -9
  194. package/cjs/plugins/row-dnd/index.js.map +7 -0
  195. package/cjs/plugins/selectable/SelectablePlugin.js +101 -134
  196. package/cjs/plugins/selectable/SelectablePlugin.js.map +7 -0
  197. package/cjs/plugins/selectable/addSelectableColumn.js +67 -68
  198. package/cjs/plugins/selectable/addSelectableColumn.js.map +7 -0
  199. package/cjs/plugins/selectable/helper.js +50 -39
  200. package/cjs/plugins/selectable/helper.js.map +7 -0
  201. package/cjs/plugins/selectable/index.js +35 -9
  202. package/cjs/plugins/selectable/index.js.map +7 -0
  203. package/cjs/plugins/selectable/selectableFormatter.js +83 -105
  204. package/cjs/plugins/selectable/selectableFormatter.js.map +7 -0
  205. package/cjs/plugins/selectable/useSelectableState.js +67 -94
  206. package/cjs/plugins/selectable/useSelectableState.js.map +7 -0
  207. package/cjs/plugins/sortable/SortablePlugin.js +62 -76
  208. package/cjs/plugins/sortable/SortablePlugin.js.map +7 -0
  209. package/cjs/plugins/sortable/checkIfSortable.js +37 -14
  210. package/cjs/plugins/sortable/checkIfSortable.js.map +7 -0
  211. package/cjs/plugins/sortable/index.js +35 -9
  212. package/cjs/plugins/sortable/index.js.map +7 -0
  213. package/cjs/plugins/sortable/sortHeaderFormatter.js +56 -50
  214. package/cjs/plugins/sortable/sortHeaderFormatter.js.map +7 -0
  215. package/cjs/plugins/sortable/sortTree.js +40 -47
  216. package/cjs/plugins/sortable/sortTree.js.map +7 -0
  217. package/cjs/plugins/sortable/sorter.js +140 -172
  218. package/cjs/plugins/sortable/sorter.js.map +7 -0
  219. package/cjs/plugins/sortable/useSortableState.js +53 -79
  220. package/cjs/plugins/sortable/useSortableState.js.map +7 -0
  221. package/cjs/plugins/toolbar/RowRenderer.js +75 -76
  222. package/cjs/plugins/toolbar/RowRenderer.js.map +7 -0
  223. package/cjs/plugins/toolbar/ToolbarPlugin.js +49 -33
  224. package/cjs/plugins/toolbar/ToolbarPlugin.js.map +7 -0
  225. package/cjs/plugins/toolbar/ToolbarTrigger.js +89 -70
  226. package/cjs/plugins/toolbar/ToolbarTrigger.js.map +7 -0
  227. package/cjs/plugins/toolbar/index.js +35 -9
  228. package/cjs/plugins/toolbar/index.js.map +7 -0
  229. package/cjs/plugins/virtualization/AutoHeightList.js +64 -52
  230. package/cjs/plugins/virtualization/AutoHeightList.js.map +7 -0
  231. package/cjs/plugins/virtualization/VirtualizationPlugin.js +86 -97
  232. package/cjs/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
  233. package/cjs/plugins/virtualization/VirtualizedBody.js +139 -155
  234. package/cjs/plugins/virtualization/VirtualizedBody.js.map +7 -0
  235. package/cjs/plugins/virtualization/VirtualizedBodyRow.js +39 -17
  236. package/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
  237. package/cjs/plugins/virtualization/helper.js +35 -7
  238. package/cjs/plugins/virtualization/helper.js.map +7 -0
  239. package/cjs/plugins/virtualization/index.js +35 -9
  240. package/cjs/plugins/virtualization/index.js.map +7 -0
  241. package/cjs/renders/CellWithAddons.js +98 -50
  242. package/cjs/renders/CellWithAddons.js.map +7 -0
  243. package/cjs/renders/index.js +37 -11
  244. package/cjs/renders/index.js.map +7 -0
  245. package/cjs/renders/styled.js +78 -27
  246. package/cjs/renders/styled.js.map +7 -0
  247. package/cjs/rowSizes.js +44 -12
  248. package/cjs/rowSizes.js.map +7 -0
  249. package/cjs/utilities/DataGridUtilities.json +1315 -0
  250. package/cjs/utilities/getPluginsFromProps.js +67 -39
  251. package/cjs/utilities/getPluginsFromProps.js.map +7 -0
  252. package/cjs/utilities/getScrollbarSize.js +44 -25
  253. package/cjs/utilities/getScrollbarSize.js.map +7 -0
  254. package/cjs/utilities/normalizeData.js +44 -34
  255. package/cjs/utilities/normalizeData.js.map +7 -0
  256. package/esm/DSDataGrid.js +337 -597
  257. package/esm/DSDataGrid.js.map +7 -0
  258. package/esm/DataGridImpl.js +68 -113
  259. package/esm/DataGridImpl.js.map +7 -0
  260. package/esm/PaginatedDataGrid.js +39 -59
  261. package/esm/PaginatedDataGrid.js.map +7 -0
  262. package/esm/blockNames.js +10 -5
  263. package/esm/blockNames.js.map +7 -0
  264. package/esm/columns/IconColumn.js +49 -54
  265. package/esm/columns/IconColumn.js.map +7 -0
  266. package/esm/columns/NumberColumn.js +6 -3
  267. package/esm/columns/NumberColumn.js.map +7 -0
  268. package/esm/components/BodyCell.js +51 -68
  269. package/esm/components/BodyCell.js.map +7 -0
  270. package/esm/components/BodyList.js +23 -43
  271. package/esm/components/BodyList.js.map +7 -0
  272. package/esm/components/ColumnVisibilityMenuOption.js +24 -27
  273. package/esm/components/ColumnVisibilityMenuOption.js.map +7 -0
  274. package/esm/components/ColumnsOptionsMenuSection.js +30 -38
  275. package/esm/components/ColumnsOptionsMenuSection.js.map +7 -0
  276. package/esm/components/EmptyState.js +52 -40
  277. package/esm/components/EmptyState.js.map +7 -0
  278. package/esm/components/HeaderCell.js +33 -48
  279. package/esm/components/HeaderCell.js.map +7 -0
  280. package/esm/components/List.js +12 -23
  281. package/esm/components/List.js.map +7 -0
  282. package/esm/components/ListItem.js +14 -30
  283. package/esm/components/ListItem.js.map +7 -0
  284. package/esm/components/NoResults.js +26 -43
  285. package/esm/components/NoResults.js.map +7 -0
  286. package/esm/components/RowsLoader.js +13 -15
  287. package/esm/components/RowsLoader.js.map +7 -0
  288. package/esm/components/Table.js +45 -76
  289. package/esm/components/Table.js.map +7 -0
  290. package/esm/components/TableBody.js +32 -52
  291. package/esm/components/TableBody.js.map +7 -0
  292. package/esm/components/TableHeader.js +17 -23
  293. package/esm/components/TableHeader.js.map +7 -0
  294. package/esm/components/footer/addOptionalFooterComponents.js +24 -37
  295. package/esm/components/footer/addOptionalFooterComponents.js.map +7 -0
  296. package/esm/components/header/PrimaryControls.js +20 -29
  297. package/esm/components/header/PrimaryControls.js.map +7 -0
  298. package/esm/components/header/addOptionalHeaderComponents.js +25 -36
  299. package/esm/components/header/addOptionalHeaderComponents.js.map +7 -0
  300. package/esm/components/index.js +14 -5
  301. package/esm/components/index.js.map +7 -0
  302. package/esm/components/renderers/defaultClassedRenderers.js +41 -46
  303. package/esm/components/renderers/defaultClassedRenderers.js.map +7 -0
  304. package/esm/components/renderers/index.js +16 -5
  305. package/esm/components/renderers/index.js.map +7 -0
  306. package/esm/components/renderers/renderRowsLoader.js +10 -10
  307. package/esm/components/renderers/renderRowsLoader.js.map +7 -0
  308. package/esm/components/tableContext.js +7 -5
  309. package/esm/components/tableContext.js.map +7 -0
  310. package/esm/defaultPlugins.js +15 -8
  311. package/esm/defaultPlugins.js.map +7 -0
  312. package/esm/index.js +63 -27
  313. package/esm/index.js.map +7 -0
  314. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +71 -101
  315. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
  316. package/esm/plugins/body-header-scroll-sync/index.js +6 -1
  317. package/esm/plugins/body-header-scroll-sync/index.js.map +7 -0
  318. package/esm/plugins/column-dnd/DndColumnsPlugin.js +69 -68
  319. package/esm/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
  320. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +16 -18
  321. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
  322. package/esm/plugins/column-dnd/index.js +6 -1
  323. package/esm/plugins/column-dnd/index.js.map +7 -0
  324. package/esm/plugins/column-sizing/ColumnSizingPlugin.js +20 -37
  325. package/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
  326. package/esm/plugins/column-sizing/columnMeasurerTransformer.js +16 -42
  327. package/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
  328. package/esm/plugins/column-sizing/ext-points/decorateColumn.js +9 -7
  329. package/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
  330. package/esm/plugins/column-sizing/ext-points/getTableProps.js +23 -43
  331. package/esm/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
  332. package/esm/plugins/column-sizing/getColumnNameFromProperty.js +8 -7
  333. package/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
  334. package/esm/plugins/column-sizing/index.js +6 -1
  335. package/esm/plugins/column-sizing/index.js.map +7 -0
  336. package/esm/plugins/column-sizing/useColumnSizeService.js +34 -71
  337. package/esm/plugins/column-sizing/useColumnSizeService.js.map +7 -0
  338. package/esm/plugins/column-sizing/useStylesheetHelpers.js +64 -171
  339. package/esm/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
  340. package/esm/plugins/column-sizing/utils.js +23 -21
  341. package/esm/plugins/column-sizing/utils.js.map +7 -0
  342. package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +8 -7
  343. package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
  344. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +28 -43
  345. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
  346. package/esm/plugins/custom-cell-renderer/getRendererComponent.js +22 -44
  347. package/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
  348. package/esm/plugins/custom-cell-renderer/index.js +6 -1
  349. package/esm/plugins/custom-cell-renderer/index.js.map +7 -0
  350. package/esm/plugins/editable/EditableComponents/ComboBox.js +20 -46
  351. package/esm/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
  352. package/esm/plugins/editable/EditableComponents/TextBox.js +26 -68
  353. package/esm/plugins/editable/EditableComponents/TextBox.js.map +7 -0
  354. package/esm/plugins/editable/EditableComponents/index.js +8 -2
  355. package/esm/plugins/editable/EditableComponents/index.js.map +7 -0
  356. package/esm/plugins/editable/EditablePlugin.js +27 -63
  357. package/esm/plugins/editable/EditablePlugin.js.map +7 -0
  358. package/esm/plugins/editable/decorateEditable.js +32 -68
  359. package/esm/plugins/editable/decorateEditable.js.map +7 -0
  360. package/esm/plugins/editable/getEditorComponent.js +39 -66
  361. package/esm/plugins/editable/getEditorComponent.js.map +7 -0
  362. package/esm/plugins/editable/index.js +9 -3
  363. package/esm/plugins/editable/index.js.map +7 -0
  364. package/esm/plugins/expandable-grid/ExpandableColumn.js +82 -133
  365. package/esm/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
  366. package/esm/plugins/expandable-grid/ExpandablePlugin.js +81 -160
  367. package/esm/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
  368. package/esm/plugins/expandable-grid/ExpandedRow.js +86 -124
  369. package/esm/plugins/expandable-grid/ExpandedRow.js.map +7 -0
  370. package/esm/plugins/expandable-grid/ExpandedRowExtra.js +25 -44
  371. package/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
  372. package/esm/plugins/expandable-grid/index.js +8 -2
  373. package/esm/plugins/expandable-grid/index.js.map +7 -0
  374. package/esm/plugins/expandable-grid/useExpandGridState.js +14 -25
  375. package/esm/plugins/expandable-grid/useExpandGridState.js.map +7 -0
  376. package/esm/plugins/export-data/ExportDataPlugin.js +52 -103
  377. package/esm/plugins/export-data/ExportDataPlugin.js.map +7 -0
  378. package/esm/plugins/export-data/index.js +6 -1
  379. package/esm/plugins/export-data/index.js.map +7 -0
  380. package/esm/plugins/filterable/FilterablePlugin.js +22 -44
  381. package/esm/plugins/filterable/FilterablePlugin.js.map +7 -0
  382. package/esm/plugins/filterable/addFilterToColumn.js +11 -20
  383. package/esm/plugins/filterable/addFilterToColumn.js.map +7 -0
  384. package/esm/plugins/filterable/components/FilterableHeader.js +85 -95
  385. package/esm/plugins/filterable/components/FilterableHeader.js.map +7 -0
  386. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +83 -103
  387. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
  388. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +68 -63
  389. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
  390. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +108 -116
  391. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
  392. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +84 -106
  393. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
  394. package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +6 -3
  395. package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
  396. package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +16 -12
  397. package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
  398. package/esm/plugins/filterable/filterableFormatter.js +32 -45
  399. package/esm/plugins/filterable/filterableFormatter.js.map +7 -0
  400. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +29 -44
  401. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
  402. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +11 -13
  403. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
  404. package/esm/plugins/filterable/helper.js +42 -62
  405. package/esm/plugins/filterable/helper.js.map +7 -0
  406. package/esm/plugins/filterable/index.js +6 -1
  407. package/esm/plugins/filterable/index.js.map +7 -0
  408. package/esm/plugins/filterable/useFilterableState.js +33 -54
  409. package/esm/plugins/filterable/useFilterableState.js.map +7 -0
  410. package/esm/plugins/grouping-by/GroupingByPlugin.js +10 -14
  411. package/esm/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
  412. package/esm/plugins/grouping-grid/GroupingPlugin.js +53 -94
  413. package/esm/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
  414. package/esm/plugins/grouping-grid/walkStrategy.js +17 -22
  415. package/esm/plugins/grouping-grid/walkStrategy.js.map +7 -0
  416. package/esm/plugins/index.js +39 -19
  417. package/esm/plugins/index.js.map +7 -0
  418. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +31 -74
  419. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
  420. package/esm/plugins/infinite-scrolling/index.js +6 -1
  421. package/esm/plugins/infinite-scrolling/index.js.map +7 -0
  422. package/esm/plugins/pagination/PaginationPlugin.js +42 -75
  423. package/esm/plugins/pagination/PaginationPlugin.js.map +7 -0
  424. package/esm/plugins/pagination/components/Pagination.js +25 -27
  425. package/esm/plugins/pagination/components/Pagination.js.map +7 -0
  426. package/esm/plugins/pagination/components/Paginator.js +29 -35
  427. package/esm/plugins/pagination/components/Paginator.js.map +7 -0
  428. package/esm/plugins/pagination/components/PerPageDropdown.js +22 -54
  429. package/esm/plugins/pagination/components/PerPageDropdown.js.map +7 -0
  430. package/esm/plugins/pagination/helper.js +16 -19
  431. package/esm/plugins/pagination/helper.js.map +7 -0
  432. package/esm/plugins/pagination/index.js +6 -1
  433. package/esm/plugins/pagination/index.js.map +7 -0
  434. package/esm/plugins/pagination/usePaginationState.js +15 -28
  435. package/esm/plugins/pagination/usePaginationState.js.map +7 -0
  436. package/esm/plugins/resizable/ResizablePlugin.js +20 -45
  437. package/esm/plugins/resizable/ResizablePlugin.js.map +7 -0
  438. package/esm/plugins/resizable/decorateResizable.js +19 -41
  439. package/esm/plugins/resizable/decorateResizable.js.map +7 -0
  440. package/esm/plugins/resizable/index.js +6 -1
  441. package/esm/plugins/resizable/index.js.map +7 -0
  442. package/esm/plugins/resizable/useResizeHandle.js +24 -39
  443. package/esm/plugins/resizable/useResizeHandle.js.map +7 -0
  444. package/esm/plugins/resizable/utils.js +20 -18
  445. package/esm/plugins/resizable/utils.js.map +7 -0
  446. package/esm/plugins/row-dnd/DndRowsPlugin.js +73 -71
  447. package/esm/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
  448. package/esm/plugins/row-dnd/index.js +6 -1
  449. package/esm/plugins/row-dnd/index.js.map +7 -0
  450. package/esm/plugins/selectable/SelectablePlugin.js +64 -117
  451. package/esm/plugins/selectable/SelectablePlugin.js.map +7 -0
  452. package/esm/plugins/selectable/addSelectableColumn.js +39 -57
  453. package/esm/plugins/selectable/addSelectableColumn.js.map +7 -0
  454. package/esm/plugins/selectable/helper.js +19 -25
  455. package/esm/plugins/selectable/helper.js.map +7 -0
  456. package/esm/plugins/selectable/index.js +6 -1
  457. package/esm/plugins/selectable/index.js.map +7 -0
  458. package/esm/plugins/selectable/selectableFormatter.js +54 -97
  459. package/esm/plugins/selectable/selectableFormatter.js.map +7 -0
  460. package/esm/plugins/selectable/useSelectableState.js +34 -78
  461. package/esm/plugins/selectable/useSelectableState.js.map +7 -0
  462. package/esm/plugins/sortable/SortablePlugin.js +30 -43
  463. package/esm/plugins/sortable/SortablePlugin.js.map +7 -0
  464. package/esm/plugins/sortable/checkIfSortable.js +8 -9
  465. package/esm/plugins/sortable/checkIfSortable.js.map +7 -0
  466. package/esm/plugins/sortable/index.js +6 -1
  467. package/esm/plugins/sortable/index.js.map +7 -0
  468. package/esm/plugins/sortable/sortHeaderFormatter.js +27 -43
  469. package/esm/plugins/sortable/sortHeaderFormatter.js.map +7 -0
  470. package/esm/plugins/sortable/sortTree.js +13 -24
  471. package/esm/plugins/sortable/sortTree.js.map +7 -0
  472. package/esm/plugins/sortable/sorter.js +112 -163
  473. package/esm/plugins/sortable/sorter.js.map +7 -0
  474. package/esm/plugins/sortable/useSortableState.js +22 -49
  475. package/esm/plugins/sortable/useSortableState.js.map +7 -0
  476. package/esm/plugins/toolbar/RowRenderer.js +40 -61
  477. package/esm/plugins/toolbar/RowRenderer.js.map +7 -0
  478. package/esm/plugins/toolbar/ToolbarPlugin.js +19 -23
  479. package/esm/plugins/toolbar/ToolbarPlugin.js.map +7 -0
  480. package/esm/plugins/toolbar/ToolbarTrigger.js +59 -57
  481. package/esm/plugins/toolbar/ToolbarTrigger.js.map +7 -0
  482. package/esm/plugins/toolbar/index.js +6 -1
  483. package/esm/plugins/toolbar/index.js.map +7 -0
  484. package/esm/plugins/virtualization/AutoHeightList.js +30 -40
  485. package/esm/plugins/virtualization/AutoHeightList.js.map +7 -0
  486. package/esm/plugins/virtualization/VirtualizationPlugin.js +55 -84
  487. package/esm/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
  488. package/esm/plugins/virtualization/VirtualizedBody.js +94 -132
  489. package/esm/plugins/virtualization/VirtualizedBody.js.map +7 -0
  490. package/esm/plugins/virtualization/VirtualizedBodyRow.js +10 -15
  491. package/esm/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
  492. package/esm/plugins/virtualization/helper.js +6 -3
  493. package/esm/plugins/virtualization/helper.js.map +7 -0
  494. package/esm/plugins/virtualization/index.js +6 -1
  495. package/esm/plugins/virtualization/index.js.map +7 -0
  496. package/esm/renders/CellWithAddons.js +69 -40
  497. package/esm/renders/CellWithAddons.js.map +7 -0
  498. package/esm/renders/index.js +8 -2
  499. package/esm/renders/index.js.map +7 -0
  500. package/esm/renders/styled.js +49 -16
  501. package/esm/renders/styled.js.map +7 -0
  502. package/esm/rowSizes.js +15 -6
  503. package/esm/rowSizes.js.map +7 -0
  504. package/esm/utilities/DataGridUtilities.json +1315 -0
  505. package/esm/utilities/getPluginsFromProps.js +25 -24
  506. package/esm/utilities/getPluginsFromProps.js.map +7 -0
  507. package/esm/utilities/getScrollbarSize.js +15 -21
  508. package/esm/utilities/getScrollbarSize.js.map +7 -0
  509. package/esm/utilities/normalizeData.js +15 -24
  510. package/esm/utilities/normalizeData.js.map +7 -0
  511. package/package.json +20 -20
  512. package/types/DSDataGrid.d.ts +2 -116
  513. package/types/DataGridImpl.d.ts +3 -2
  514. package/types/PaginatedDataGrid.d.ts +1 -2
  515. package/types/columns/IconColumn.d.ts +3 -2
  516. package/types/components/BodyCell.d.ts +13 -12
  517. package/types/components/ColumnVisibilityMenuOption.d.ts +2 -2
  518. package/types/components/ColumnsOptionsMenuSection.d.ts +1 -0
  519. package/types/components/HeaderCell.d.ts +10 -10
  520. package/types/components/NoResults.d.ts +2 -2
  521. package/types/components/RowsLoader.d.ts +2 -2
  522. package/types/components/Table.d.ts +6 -11
  523. package/types/components/TableBody.d.ts +3 -8
  524. package/types/components/TableHeader.d.ts +2 -1
  525. package/types/components/footer/addOptionalFooterComponents.d.ts +1 -0
  526. package/types/components/header/PrimaryControls.d.ts +1 -0
  527. package/types/components/header/addOptionalHeaderComponents.d.ts +1 -1
  528. package/types/components/renderers/index.d.ts +1 -1
  529. package/types/components/renderers/renderRowsLoader.d.ts +1 -1
  530. package/types/index.d.ts +7 -8
  531. package/types/plugins/body-header-scroll-sync/index.d.ts +1 -1
  532. package/types/plugins/column-dnd/index.d.ts +1 -1
  533. package/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +2 -1
  534. package/types/plugins/column-sizing/index.d.ts +1 -1
  535. package/types/plugins/column-sizing/useColumnSizeService.d.ts +2 -1
  536. package/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +1 -0
  537. package/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +1 -0
  538. package/types/plugins/custom-cell-renderer/index.d.ts +1 -1
  539. package/types/plugins/editable/EditableComponents/ComboBox.d.ts +3 -1
  540. package/types/plugins/editable/EditableComponents/TextBox.d.ts +3 -1
  541. package/types/plugins/editable/getEditorComponent.d.ts +1 -0
  542. package/types/plugins/editable/index.d.ts +2 -2
  543. package/types/plugins/expandable-grid/ExpandableColumn.d.ts +3 -2
  544. package/types/plugins/expandable-grid/ExpandedRow.d.ts +1 -0
  545. package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +1 -0
  546. package/types/plugins/expandable-grid/index.d.ts +2 -2
  547. package/types/plugins/export-data/index.d.ts +1 -1
  548. package/types/plugins/filterable/components/FilterableHeader.d.ts +15 -15
  549. package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +1 -0
  550. package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +1 -0
  551. package/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +2 -1
  552. package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +1 -0
  553. package/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +2 -1
  554. package/types/plugins/filterable/filterableFormatter.d.ts +3 -2
  555. package/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +2 -1
  556. package/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +2 -2
  557. package/types/plugins/filterable/index.d.ts +1 -1
  558. package/types/plugins/index.d.ts +16 -16
  559. package/types/plugins/infinite-scrolling/index.d.ts +1 -1
  560. package/types/plugins/pagination/components/Paginator.d.ts +1 -0
  561. package/types/plugins/pagination/components/PerPageDropdown.d.ts +1 -0
  562. package/types/plugins/pagination/helper.d.ts +3 -2
  563. package/types/plugins/pagination/index.d.ts +1 -1
  564. package/types/plugins/resizable/index.d.ts +1 -1
  565. package/types/plugins/row-dnd/index.d.ts +1 -1
  566. package/types/plugins/selectable/index.d.ts +1 -1
  567. package/types/plugins/selectable/selectableFormatter.d.ts +1 -0
  568. package/types/plugins/sortable/index.d.ts +1 -1
  569. package/types/plugins/sortable/sortHeaderFormatter.d.ts +1 -0
  570. package/types/plugins/sortable/sortTree.d.ts +1 -0
  571. package/types/plugins/sortable/sorter.d.ts +1 -1
  572. package/types/plugins/toolbar/index.d.ts +1 -1
  573. package/types/plugins/virtualization/AutoHeightList.d.ts +1 -1
  574. package/types/plugins/virtualization/VirtualizedBody.d.ts +1 -0
  575. package/types/plugins/virtualization/VirtualizedBodyRow.d.ts +2 -2
  576. package/types/plugins/virtualization/index.d.ts +1 -1
  577. package/types/utilities/getPluginsFromProps.d.ts +2 -1
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSDataGrid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport { DataGridImpl } from './DataGridImpl';\nimport { RowSizesOptions, RowSizesOptionsArr } from './rowSizes';\n\nconst DSDataGrids = ({\n containerProps = {},\n instanceRef,\n className = '',\n\n // data\n columns = [],\n rows = [],\n rowKey = 'id',\n\n // features\n infiniteScrolling = false,\n editable = false,\n sortable = false,\n sortEmptyLast = false,\n paginated = false,\n dragAndDropRows = false,\n selectable = false,\n resizeableColumns = false,\n searchFilters = false,\n dragAndDropColumns = false,\n useTreeData = false,\n autoScrollToId,\n\n // virtualization props\n overscanCount = 10,\n\n // feature state\n selectAll = false, // todo: change to isAllSelected\n selectedRows = [],\n filters = undefined,\n onAddFilter = () => null,\n onRemoveFilter = () => null,\n onFiltersChange = () => null,\n showFilterBar = true,\n multiSelectFilterOptions = [\n { id: 'true', label: 'Selected' },\n { id: 'false', label: 'Not selected' },\n ],\n multiSelectFilterLabels = undefined,\n multiSelectFilterLabel = 'Selection',\n\n aggregations = {},\n groupingColumn = undefined,\n\n sortingColumns = {},\n\n // pagination\n minPerPage = 0,\n maxPerPage = 50,\n onPerPageChange = () => null,\n onPageChange = () => null,\n paginationStep = 2,\n pagination = {\n page: 1,\n perPage: 10,\n },\n // visual\n showHeader = true,\n fixedHeader = true,\n wrapText = false,\n height = undefined,\n minColumnWidth = 100,\n showRowsLoader = false,\n visibleColumns = undefined, // this enforces visibility of columns\n showSelectHighlight = false,\n showSelectColumn = true,\n selectColumnSortable = true,\n selectColumnFilterable = false,\n selectionColumnDefinition = {},\n filterBarOptions = undefined,\n // searchGrid = false,\n renderToolbar = undefined,\n toolbarDelayClose = 400,\n renderFilterToolbar = undefined,\n multiSelectComponent = undefined,\n // todo: deprecate this\n noResultsRender,\n noResultsPlaceholder,\n fluidHeight = false,\n\n customHandlers = {},\n\n // grouping feature\n groupedBy = undefined,\n\n // callbacks\n onDefaultFiltersLoad = () => null,\n onReorder = () => null,\n onMoveRowEnd = () => null,\n onMoveRowStart = () => null,\n onMoveColumnOver = () => null,\n onMoveColumnStart = () => null,\n onMoveColumnEnd = () => null,\n onColumnResize = () => null,\n onExpandChange = () => null,\n onToggleExpand = () => null,\n onExpandRow = () => null,\n onFilter = () => null,\n onSort = () => null,\n onColumnRowEdited = () => null,\n onColumnRowEdit = () => null,\n onSelectRow = () => null,\n onSelectAll = () => null,\n onInfiniteScrolling = () => null,\n onFilterMenuClose = () => null,\n onFilterMenuOpen = () => null,\n getData = undefined, // todo: change to onGetMoreData\n serverSideData = false,\n isDataSorted = false,\n isDataFiltered = false,\n virtualized = true,\n numRowsVisible = undefined,\n isColumnEditable = (column) => column.editable,\n\n // grouped props\n groupedRows = false,\n groupedRowsRenderHeader = undefined,\n // expandable props\n renderExpandedDetails = () => null,\n detailColumns,\n expandable = false,\n getChildrenRows = (row) => row.children,\n expandableSubrowsVisible = 7,\n renderRowDetails = () => null,\n getExpandedRowSize = undefined,\n getExpandedRowMinSize,\n rowSize = RowSizesOptions.normal,\n subRowSize = RowSizesOptions.normal,\n bindColumnsSizeTo = undefined,\n bindRowSizeTo = undefined,\n onToggleShowAllRows,\n expandedRows,\n autoHeight = false,\n noColumnsPlaceholder,\n plugins = [],\n normalizeDataKeys = false,\n}) => (\n <TooltipTextProvider>\n <DataGridImpl\n aggregations={aggregations}\n autoHeight={autoHeight && !fluidHeight}\n autoScrollToId={autoScrollToId}\n bindColumnsSizeTo={bindColumnsSizeTo}\n bindRowSizeTo={bindRowSizeTo}\n className={className}\n columns={columns}\n containerProps={containerProps}\n customHandlers={customHandlers}\n detailColumns={detailColumns}\n dragAndDropColumns={dragAndDropColumns}\n dragAndDropRows={dragAndDropRows}\n editable={editable}\n expandable={expandable}\n expandableSubrowsVisible={expandableSubrowsVisible}\n expandedRows={expandedRows}\n filterBarOptions={filterBarOptions}\n filters={filters}\n fixedHeader={fixedHeader}\n fluidHeight={fluidHeight}\n getChildrenRows={getChildrenRows}\n getData={getData}\n getExpandedRowMinSize={getExpandedRowMinSize}\n getExpandedRowSize={getExpandedRowSize}\n groupedBy={groupedBy}\n groupedRows={groupedRows}\n groupedRowsRenderHeader={groupedRowsRenderHeader}\n groupingColumn={groupingColumn}\n height={height}\n infiniteScrolling={infiniteScrolling}\n instanceRef={instanceRef}\n isColumnEditable={isColumnEditable}\n isDataFiltered={isDataFiltered}\n isDataSorted={isDataSorted}\n maxPerPage={maxPerPage}\n minColumnWidth={minColumnWidth}\n minPerPage={minPerPage}\n multiSelectComponent={multiSelectComponent}\n multiSelectFilterLabel={multiSelectFilterLabel}\n multiSelectFilterLabels={multiSelectFilterLabels}\n multiSelectFilterOptions={multiSelectFilterOptions}\n noColumnsPlaceholder={noColumnsPlaceholder}\n noResultsPlaceholder={noResultsPlaceholder}\n noResultsRender={noResultsRender}\n normalizeDataKeys={normalizeDataKeys}\n numRowsVisible={numRowsVisible} // if defined, fluidHeight is disabled\n onAddFilter={onAddFilter}\n onColumnResize={onColumnResize}\n onColumnRowEdit={onColumnRowEdit}\n onColumnRowEdited={onColumnRowEdited}\n onExpandRow={onExpandRow}\n onExpandChange={onExpandChange}\n onFilter={onFilter}\n onFiltersChange={onFiltersChange}\n onFilterMenuClose={onFilterMenuClose}\n onFilterMenuOpen={onFilterMenuOpen}\n onDefaultFiltersLoad={onDefaultFiltersLoad}\n onInfiniteScrolling={onInfiniteScrolling}\n onMoveColumnEnd={onMoveColumnEnd}\n onMoveColumnOver={onMoveColumnOver}\n onMoveColumnStart={onMoveColumnStart}\n onMoveRowEnd={onMoveRowEnd}\n onMoveRowStart={onMoveRowStart}\n onPageChange={onPageChange}\n onPerPageChange={onPerPageChange}\n onRemoveFilter={onRemoveFilter}\n onReorder={onReorder}\n onSelectAll={onSelectAll}\n onSelectRow={onSelectRow}\n onSort={onSort}\n onToggleExpand={onToggleExpand}\n onToggleShowAllRows={onToggleShowAllRows}\n overscanCount={overscanCount}\n paginated={paginated}\n pagination={pagination}\n paginationStep={paginationStep}\n plugins={plugins}\n renderExpandedDetails={renderExpandedDetails}\n renderFilterToolbar={renderFilterToolbar}\n renderRowDetails={renderRowDetails}\n renderToolbar={renderToolbar}\n resizeableColumns={resizeableColumns}\n rowKey={rowKey}\n rows={rows}\n rowSize={rowSize}\n searchFilters={searchFilters}\n selectable={selectable}\n selectAll={selectAll}\n selectColumnFilterable={selectColumnFilterable}\n selectColumnSortable={selectColumnSortable}\n selectedRows={selectedRows}\n selectionColumnDefinition={selectionColumnDefinition}\n serverSideData={serverSideData}\n showFilterBar={showFilterBar}\n showHeader={showHeader}\n showRowsLoader={showRowsLoader}\n showSelectColumn={showSelectColumn}\n showSelectHighlight={showSelectHighlight}\n sortable={sortable}\n sortEmptyLast={sortEmptyLast}\n sortingColumns={sortingColumns}\n subrowSize={subRowSize}\n toolbarDelayClose={toolbarDelayClose}\n useTreeData={useTreeData}\n virtualized={virtualized}\n visibleColumns={visibleColumns}\n wrapText={wrapText}\n />\n </TooltipTextProvider>\n);\n\nconst props = {\n /** ref to the instance of the datagrid, handle it imperatively */\n instanceRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]).description(\n 'ref to the instance of the datagrid, handle it imperatively',\n ),\n /** class for data grid wrapper */\n className: PropTypes.string.description('class for data grid wrapper'),\n /** inject props to datagrid wrapper */\n containerProps: PropTypes.object.description('inject props to datagrid wrapper'),\n /** FilterBar props passed down to FilterBar */\n filterBarOptions: PropTypes.shape({\n minWidth: PropTypes.number,\n maxWidth: PropTypes.number,\n }).description('FilterBar props passed down to FilterBar'),\n /** datagrid columns */\n columns: PropTypes.arrayOf(\n PropTypes.shape({\n /** Column property as an identifier */\n property: PropTypes.string.isRequired,\n /** Label in the header */\n label: PropTypes.string,\n /** Defines the width of the column, can be a string with percentages (\"50%\"), if not defined the width is flexible */\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /** Min width for this column. NOTE: Has prevalence over the general minColumnWidth */\n minWidth: PropTypes.number,\n /** Function returning a custom editor for that cell ({ value, onValue, rowData }) => Element */\n customEditor: PropTypes.func,\n /** Function returning an element to render in the cell ({ value, customHandlers, metaData: { rowData } }) => Element */\n customRenderer: PropTypes.func,\n /** Activates 'searchable' feature for this column */\n searchable: PropTypes.bool,\n /** Activates 'sortable' feature for this column */\n sortable: PropTypes.bool,\n /** Activates 'resizable' feature for this column */\n resizable: PropTypes.bool,\n /** Activates 'editable' feature for this column */\n editable: PropTypes.bool,\n /** Whether this column is visible or not */\n visible: PropTypes.bool,\n }),\n ).description('datagrid columns'),\n /** datagrid rows */\n rows: PropTypes.arrayOf(PropTypes.object).description('datagrid rows'),\n /** key for each row */\n rowKey: PropTypes.string.description('key for each row'),\n /** toggle infinite scroll loading behavior */\n infiniteScrolling: PropTypes.bool.description('toggle infinite scroll loading behavior'),\n /** Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well */\n overscanCount: PropTypes.number.description(\n \"Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** turn datagrid to editable mode */\n editable: PropTypes.bool.description('turn datagrid to editable mode'),\n /** Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well */\n sortable: PropTypes.bool.description(\n \"Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Put empty values always last on the column after sorting */\n sortEmptyLast: PropTypes.bool.description('Put empty values always last on the column after sorting'),\n /** Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n paginated: PropTypes.bool.description(\n \"Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Pagination step for clicking the next pages */\n paginationStep: PropTypes.number.description('Pagination step for clicking the next pages'),\n /** Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n dragAndDropRows: PropTypes.bool.description(\n \"Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n selectable: PropTypes.bool.description(\n \"Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n resizeableColumns: PropTypes.bool.description(\n \"Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Placeholder rendered when no rows are visible */\n noResultsPlaceholder: PropTypes.oneOf([PropTypes.string, PropTypes.element]).description(\n 'Placeholder rendered when no rows are visible',\n ),\n /** Activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n searchFilters: PropTypes.bool.description(\n \"activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n dragAndDropColumns: PropTypes.bool.description(\n \"Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n useTreeData: PropTypes.bool.description(\n \"activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** AutoScroll to row ID */\n autoScrollToId: PropTypes.any.description('AutoScroll to row ID'),\n /** Whether all rows are selected or not */\n selectAll: PropTypes.bool.description('Whether all rows are selected or not'),\n /** Defines the selected rows */\n selectedRows: PropTypes.arrayOf(PropTypes.object).description(' Defines the selected rows'),\n /** Filters to be applied to the grid */\n filters: PropTypes.arrayOf(PropTypes.object).description('Filters to be applied to the grid'),\n // todo: define params for handlers\n /** Handler when user expands a row */\n onExpandRow: PropTypes.func.description('Handler when user expands a row'),\n /** Handler when user expands a row with full expand state */\n onExpandChange: PropTypes.func.description('Handler when user expands a row with full expand state'),\n /** Handler when user expands a row (old API) */\n onToggleExpand: PropTypes.func.description('Handler when user expands a row (old API)'),\n /** Handler when user adds a filter */\n onAddFilter: PropTypes.func.description('Handler when user adds a filter'),\n /** Handler when user removes a filter */\n onRemoveFilter: PropTypes.func.description('Handler when user removes a filter'),\n /** Handler when the filters state has changed */\n onFiltersChange: PropTypes.func.description('Handler when the filters state has changed '),\n /** Handler when the default filters load. Returns the rows rendered */\n onDefaultFiltersLoad: PropTypes.func.description('Handler when the default filters load. Returns the rows rendered'),\n /** Handler when column move is over another column */\n onMoveColumnOver: PropTypes.func.description('Handler when column move is over another column'),\n /** Handler when column move starts */\n onMoveColumnStart: PropTypes.func.description(' Handler when column move starts'),\n /** Handler when column move ends */\n onMoveColumnEnd: PropTypes.func.description('Handler when column move ends'),\n /** Whether to show the filter bar or not */\n showFilterBar: PropTypes.bool.description('Whether to show the filter bar or not'),\n /** Custom option for the header with multi select */\n multiSelectFilterOptions: PropTypes.arrayOf(PropTypes.object).description(\n 'Custom option for the header with multi select',\n ),\n /** Label to the header column for multi select */\n multiSelectFilterLabel: PropTypes.string.description('Label to the header column for multi select'),\n /** Labels for multi selects */\n multiSelectFilterLabels: PropTypes.arrayOf(PropTypes.string).description('Labels for multi selects'),\n /** unstable */\n aggregations: PropTypes.object.description('').deprecated(''),\n /** unstable */\n /** Column which rows would be grouped by */\n groupingColumn: PropTypes.string.description('Column which rows would be grouped by').deprecated(''),\n /** group by */\n groupedBy: PropTypes.string.description('group by'),\n /** Defines the sorting state */\n sortingColumns: PropTypes.objectOf(\n PropTypes.shape({\n // eslint-disable-next-line react/no-unused-prop-types\n direction: PropTypes.oneOf(['asc', 'desc']),\n // eslint-disable-next-line react/no-unused-prop-types\n position: PropTypes.number,\n }),\n ).description('Defines the sorting state'),\n /** Visible columns property */\n visibleColumns: PropTypes.arrayOf(PropTypes.string).description('Visible columns property'),\n /** Pagination: Minimum number of rows per page */\n minPerPage: PropTypes.string.description('Pagination: Minimum number of rows per page'),\n /** Pagination: Maximum number of rows per page */\n maxPerPage: PropTypes.string.description('Pagination: Maximum number of rows per page'),\n /** Pagination: Handler when user changes the amount of rows per page */\n onPerPageChange: PropTypes.string.description('Pagination: Handler when user changes the amount of rows per page'),\n /** Pagination: Handler when user changes the page */\n onPageChange: PropTypes.string.description('Pagination: Handler when user changes the page'),\n /** Pagination state */\n pagination: PropTypes.shape({\n // eslint-disable-next-line react/no-unused-prop-types\n page: PropTypes.number,\n // eslint-disable-next-line react/no-unused-prop-types\n perPage: PropTypes.number,\n }).description('pagination state'),\n /** Whether to show the header or not */\n showHeader: PropTypes.bool.description('Whether to show the header or not'),\n /** Whether to header is fixed or not */\n fixedHeader: PropTypes.bool.description('Whether to header is fixed or not'),\n /** Defines the height of the DataGrid */\n height: PropTypes.number.description('Defines the height of the DataGrid'),\n /** General min column width for all the columns */\n minColumnWidth: PropTypes.number.description('General min column width for all the columns '),\n /** Whether to show a loader instead of the rows or not */\n showRowsLoader: PropTypes.bool.description('Whether to show a loader instead of the rows or not'),\n /** When a user selects a row, that row get highlighted */\n showSelectHighlight: PropTypes.bool.description('When a user selects a row, that row get highlighted'),\n /** Whether to show the select column when the selection feature is active */\n showSelectColumn: PropTypes.bool.description(\n 'Whether to show the select column when the selection feature is active',\n ),\n /** Activates sortable feature to selection column */\n selectColumnSortable: PropTypes.bool.description('activates sortable feature to selection column'),\n /** Activates filterable feature to selection column */\n selectColumnFilterable: PropTypes.bool.description('Activates filterable feature to selection column'),\n /** Define the definition for the selection column */\n selectionColumnDefinition: PropTypes.object.description('Define the definition for the selection column'),\n /** Function that returns a toolbar to show when the user hovers the row */\n renderToolbar: PropTypes.func.description('Function that returns a toolbar to show when the user hovers the row'),\n /** Timeout to close the toolbar */\n toolbarDelayClose: PropTypes.number.description(' Timeout to close the toolbar'),\n /** Function that returns a toolbar in the FilterBar component */\n renderFilterToolbar: PropTypes.func.description('Function that returns a toolbar in the FilterBar component'),\n /** Custom component for the selection */\n multiSelectComponent: PropTypes.element.description('Custom component for the selection'),\n /** Normalize the keys of the data received and the columns */\n normalizeDataKeys: PropTypes.bool.description('Normalize the keys of the data received and the columns'),\n /** Function that returns an Element when there are no rows */\n noResultsRender: PropTypes.func.description('Function that returns an Element when there are no rows'),\n /** The height of the DataGrid will expand to its container */\n fluidHeight: PropTypes.bool.description('The height of the DataGrid will expand to its container'),\n /** @deprecated */\n customHandlers: PropTypes.object.description('').deprecated(''),\n /** Handler when user closes the filter menu */\n onFilterMenuClose: PropTypes.func.description('Handler when user closes the filter menu'),\n /** Handler when user opens the filter menu */\n onFilterMenuOpen: PropTypes.func.description('Handler when user opens the filter menu'),\n /** Handler when user drags a row */\n onReorder: PropTypes.func.description('handler when user drags a row '),\n /** Handler when user stops dragging a row */\n onMoveRowEnd: PropTypes.func.description('Handler when user stops dragging a row '),\n /** Handler when user starts dragging a row */\n onMoveRowStart: PropTypes.func.description('Handler when user starts dragging a row'),\n /** Handler when user has resized a column */\n onColumnResize: PropTypes.func.description('Handler when user has resized a column'),\n /** Handler when user filters by a column */\n onFilter: PropTypes.func.description('Handler when user filters by a column'),\n /** Handler when user sorts by a column */\n onSort: PropTypes.func.description('Handler when user sorts by a column '),\n /** Handler when user has edited a cell row */\n onColumnRowEdited: PropTypes.func.description('Handler when user has edited a cell row'),\n /** Handler when user activates the cell row editing functionality */\n onColumnRowEdit: PropTypes.func.description(' Handler when user activates the cell row editing functionality'),\n /** Handler when user selects a row */\n onSelectRow: PropTypes.func.description('Handler when user selects a row'),\n /** Handler when user checks the selection header controller */\n onSelectAll: PropTypes.func.description('Handler when user checks the selection header controller'),\n /** Handler to get more data when infinite scroll is activated */\n getData: PropTypes.func.description('Handler to get more data when infinite scroll is activated'),\n /** Handler to get more data when infinite scroll is activated without side-effect */\n onInfiniteScrolling: PropTypes.func.description(\n 'Handler to get more data when infinite scroll is activated without side-effect',\n ),\n /** Flag to override empty sort when data is from server */\n serverSideData: PropTypes.bool.description('Flag to override empty sort when data is from server'),\n /** Flag to force virtualization. Not used */\n virtualized: PropTypes.bool.description('Flag to force virtualization. Not used'),\n /** Number of rows visible. Not used */\n numRowsVisible: PropTypes.oneOf([PropTypes.number, 'all']).description('Number of rows visible. Not used'),\n /** Callback to check if column is editable */\n isColumnEditable: PropTypes.func.description('Callback to check if column is editable'),\n /** Flag for groupedRows */\n groupedRows: PropTypes.bool.description('Flag for groupedRows'),\n /** Header for grouped rows */\n groupedRowsRenderHeader: PropTypes.oneOf([PropTypes.func, PropTypes.element]).description('Header for grouped rows'),\n /** Once activated will disable the internal logic for sorting */\n isDataSorted: PropTypes.bool.description('Once activated will disable the internal logic for sorting'),\n /** Once activated will disable the internal logic for filtering */\n isDataFiltered: PropTypes.bool.description('Once activated will disable the internal logic for filtering'),\n /** Change row size */\n rowSize: PropTypes.oneOf(RowSizesOptionsArr).description('Change row size'),\n /** Whether to wrap the text of the data grid or not */\n wrapText: PropTypes.bool.description('Whether to wrap the text of the data grid or not'),\n /** Element to render expanded details */\n renderExpandedDetails: PropTypes.oneOf([PropTypes.func, PropTypes.element]).description(\n 'Element to render expanded details',\n ),\n /** Columns to render on the details of an expanded row */\n detailColumns: PropTypes.arrayOf(PropTypes.object).description('Columns to render on the details of an expanded row'),\n /** Flag to enable the expandable feature */\n expandable: PropTypes.bool.description('Flag to enable the expandable feature '),\n /** Callback to get the row children */\n getChildrenRows: PropTypes.func.description('Callback to get the row children'),\n /** Number of rows visible on the details of an expanded row */\n expandableSubrowsVisible: PropTypes.number.description('Number of rows visible on the details of an expanded row'),\n /** Element to render inside expanded row */\n renderRowDetails: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description(\n 'Element to render inside expanded row',\n ),\n /** Callback to get the expanded row size */\n getExpandedRowSize: PropTypes.func.description('Callback to get the expanded row size'),\n /** Callback to get the expanded row minimum size */\n getExpandedRowMinSize: PropTypes.func.description('Callback to get the expanded row minimum size'),\n /** Change expanded/details rows size */\n subRowSize: PropTypes.oneOf(RowSizesOptionsArr).description('Change expanded/details rows size'),\n /** Bind the column size to another grid instance */\n bindColumnsSizeTo: PropTypes.string.description('Bind the column size to another grid instance'),\n /** Bind the row size to another grid instance */\n bindRowSizeTo: PropTypes.string.description('Bind the row size to another grid instance'),\n /** Handler when toggle show all is clicked */\n onToggleShowAllRows: PropTypes.func.description('Handler when toggle show all is clicked'),\n /** Expanded row state */\n expandedRows: PropTypes.object.description('Expanded row state'),\n /** Flag to enable autoheight */\n autoHeight: PropTypes.bool.description('Flag to enable autoheight'),\n /** Placeholder rendered when no columns are visible */\n noColumnsPlaceholder: PropTypes.oneOf([PropTypes.string, PropTypes.element]).description(\n 'Placeholder rendered when no columns are visible',\n ),\n /** Plugin additional array */\n plugins: PropTypes.arrayOf(PropTypes.any).description('Plugin additional array'),\n};\n\nDSDataGrids.propTypes = props;\n\nconst DSDataGridsWithSchema = describe(DSDataGrids);\nDSDataGridsWithSchema.propTypes = props;\n\nexport { DSDataGridsWithSchema, DSDataGrids, DSDataGrids as DSDataGrid };\nexport default DSDataGrids;\n"],
5
+ "mappings": "AAAA;ACCA;AACA;AACA;AACA;AACA;AAEA,MAAM,cAAc,CAAC;AAAA,EACnB,iBAAiB;AAAA,EACjB;AAAA,EACA,YAAY;AAAA,EAGZ,UAAU;AAAA,EACV,OAAO;AAAA,EACP,SAAS;AAAA,EAGT,oBAAoB;AAAA,EACpB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,aAAa;AAAA,EACb,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd;AAAA,EAGA,gBAAgB;AAAA,EAGhB,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,UAAU;AAAA,EACV,cAAc,MAAM;AAAA,EACpB,iBAAiB,MAAM;AAAA,EACvB,kBAAkB,MAAM;AAAA,EACxB,gBAAgB;AAAA,EAChB,2BAA2B;AAAA,IACzB,EAAE,IAAI,QAAQ,OAAO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AM,CAAC,UAAU,MAAM,UAAU,UAAU,YAC1E;AAAA,EAGF,eAAe,UAAU,QAAQ,UAAU,QAAQ,YAAY;AAAA,EAE/D,YAAY,UAAU,KAAK,YAAY;AAAA,EAEvC,iBAAiB,UAAU,KAAK,YAAY;AAAA,EAE5C,0BAA0B,UAAU,OAAO,YAAY;AAAA,EAEvD,kBAAkB,UAAU,UAAU,CAAC,UAAU,MAAM,UAAU,UAAU,YACzE;AAAA,EAGF,oBAAoB,UAAU,KAAK,YAAY;AAAA,EAE/C,uBAAuB,UAAU,KAAK,YAAY;AAAA,EAElD,YAAY,UAAU,MAAM,oBAAoB,YAAY;AAAA,EAE5D,mBAAmB,UAAU,OAAO,YAAY;AAAA,EAEhD,eAAe,UAAU,OAAO,YAAY;AAAA,EAE5C,qBAAqB,UAAU,KAAK,YAAY;AAAA,EAEhD,cAAc,UAAU,OAAO,YAAY;AAAA,EAE3C,YAAY,UAAU,KAAK,YAAY;AAAA,EAEvC,sBAAsB,UAAU,MAAM,CAAC,UAAU,QAAQ,UAAU,UAAU,YAC3E;AAAA,EAGF,SAAS,UAAU,QAAQ,UAAU,KAAK,YAAY;AAAA;AAGxD,YAAY,YAAY;AAExB,MAAM,wBAAwB,SAAS;AACvC,sBAAsB,YAAY;AAGlC,IAAO,qBAAQ;",
6
+ "names": []
7
+ }
@@ -1,81 +1,38 @@
1
- import 'core-js/modules/esnext.async-iterator.for-each.js';
2
- import 'core-js/modules/esnext.iterator.for-each.js';
3
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
4
- import _jsx from '@babel/runtime/helpers/esm/jsx';
5
- import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
6
- import 'core-js/modules/esnext.set.add-all.js';
7
- import 'core-js/modules/esnext.set.delete-all.js';
8
- import 'core-js/modules/esnext.set.difference.js';
9
- import 'core-js/modules/esnext.set.every.js';
10
- import 'core-js/modules/esnext.set.filter.js';
11
- import 'core-js/modules/esnext.set.find.js';
12
- import 'core-js/modules/esnext.set.intersection.js';
13
- import 'core-js/modules/esnext.set.is-disjoint-from.js';
14
- import 'core-js/modules/esnext.set.is-subset-of.js';
15
- import 'core-js/modules/esnext.set.is-superset-of.js';
16
- import 'core-js/modules/esnext.set.join.js';
17
- import 'core-js/modules/esnext.set.map.js';
18
- import 'core-js/modules/esnext.set.reduce.js';
19
- import 'core-js/modules/esnext.set.some.js';
20
- import 'core-js/modules/esnext.set.symmetric-difference.js';
21
- import 'core-js/modules/esnext.set.union.js';
22
- import 'core-js/modules/web.dom-collections.iterator.js';
23
- import 'core-js/modules/esnext.async-iterator.map.js';
24
- import 'core-js/modules/esnext.iterator.map.js';
25
- import 'core-js/modules/esnext.async-iterator.filter.js';
26
- import 'core-js/modules/esnext.iterator.constructor.js';
27
- import 'core-js/modules/esnext.iterator.filter.js';
28
- import { useMemo } from 'react';
29
- import { isFunction } from '@elliemae/ds-shared/utils';
30
- import useDataGrid from '@elliemae/ds-shared/useDataGrid';
31
- import Table from './components/Table.js';
32
- import TableBody from './components/TableBody.js';
33
- import TableHeader from './components/TableHeader.js';
34
- import { defaultRenderers } from './components/renderers/index.js';
35
- import { DatagridWrapper } from './components/renderers/defaultClassedRenderers.js';
36
- import addOptionalFooterComponents from './components/footer/addOptionalFooterComponents.js';
37
- import addOptionalHeaderComponents from './components/header/addOptionalHeaderComponents.js';
38
- import { EmptyState } from './components/EmptyState.js';
39
- import getPluginsFromProps from './utilities/getPluginsFromProps.js';
40
- import { defaultPlugins } from './defaultPlugins.js';
41
- import { normalizeRows } from './utilities/normalizeData.js';
42
- import { jsxs } from 'react/jsx-runtime';
43
- import { renderRowsLoader } from './components/renderers/renderRowsLoader.js';
44
-
45
- var _EmptyState, _TableHeader;
46
-
47
- const _excluded = ["className", "renderers", "columns", "rows", "containerProps", "plugins", "normalizeDataKeys"];
48
-
49
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
50
-
51
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
52
-
53
- const isFluid = _ref => {
54
- let {
55
- autoHeight,
56
- paginated,
57
- numRowsVisible
58
- } = _ref;
59
- if (autoHeight) return false;
60
- if (paginated) return false;
1
+ import * as React from "react";
2
+ import React2, { useMemo } from "react";
3
+ import { isFunction } from "@elliemae/ds-shared/utils";
4
+ import { useDataGrid } from "@elliemae/ds-shared/useDataGrid";
5
+ import { Table } from "./components/Table";
6
+ import { TableBody } from "./components/TableBody";
7
+ import { TableHeader } from "./components/TableHeader";
8
+ import { defaultRenderers, renderRowsLoader } from "./components/renderers";
9
+ import { DatagridWrapper } from "./components/renderers/defaultClassedRenderers";
10
+ import { addOptionalFooterComponents } from "./components/footer/addOptionalFooterComponents";
11
+ import { addOptionalHeaderComponents } from "./components/header/addOptionalHeaderComponents";
12
+ import { EmptyState } from "./components/EmptyState";
13
+ import { getPluginsFromProps } from "./utilities/getPluginsFromProps";
14
+ import { defaultPlugins } from "./defaultPlugins";
15
+ import { normalizeRows } from "./utilities/normalizeData";
16
+ const isFluid = ({ autoHeight, paginated, numRowsVisible }) => {
17
+ if (autoHeight)
18
+ return false;
19
+ if (paginated)
20
+ return false;
61
21
  return !numRowsVisible;
62
22
  };
63
-
64
- function DataGridImpl(_ref2) {
65
- let {
66
- className,
67
- renderers,
68
- columns,
69
- rows,
70
- containerProps,
71
- plugins: pluginsProp,
72
- normalizeDataKeys
73
- } = _ref2,
74
- otherProps = _objectWithoutProperties(_ref2, _excluded);
75
-
23
+ const DataGridImpl = ({
24
+ className,
25
+ renderers,
26
+ columns,
27
+ rows,
28
+ containerProps,
29
+ plugins: pluginsProp,
30
+ normalizeDataKeys,
31
+ ...otherProps
32
+ }) => {
76
33
  const {
77
- noResultsPlaceholder = _EmptyState || (_EmptyState = /*#__PURE__*/_jsx(EmptyState, {})),
78
- noColumnsPlaceholder = 'Please select one of more columns in order for data to be displayed.',
34
+ noResultsPlaceholder = /* @__PURE__ */ React2.createElement(EmptyState, null),
35
+ noColumnsPlaceholder = "Please select one of more columns in order for data to be displayed.",
79
36
  noResultsRender,
80
37
  paginated,
81
38
  height,
@@ -89,48 +46,47 @@ function DataGridImpl(_ref2) {
89
46
  onDefaultFiltersLoad,
90
47
  rowKey
91
48
  } = otherProps;
92
- const idKey = rowKey || 'id';
93
- const rowsIdsSet = new Set();
94
- const rowsIds = rows.map(row => {
95
- if (row[idKey] === undefined) throw new Error('Missing id: each row must have an unique id');
49
+ const idKey = rowKey || "id";
50
+ const rowsIdsSet = /* @__PURE__ */ new Set();
51
+ const rowsIds = rows.map((row) => {
52
+ if (row[idKey] === void 0)
53
+ throw new Error("Missing id: each row must have an unique id");
96
54
  rowsIdsSet.add(row[idKey]);
97
55
  return row[idKey];
98
56
  });
99
- if (rowsIds.length !== rowsIdsSet.size) throw new Error('Repeated id: each row must have an unique id');
100
- const plugins = getPluginsFromProps(_objectSpread(_objectSpread({}, otherProps), {}, {
57
+ if (rowsIds.length !== rowsIdsSet.size)
58
+ throw new Error("Repeated id: each row must have an unique id");
59
+ const plugins = getPluginsFromProps({
60
+ ...otherProps,
101
61
  virtualized: (!paginated || groupedRows) && !wrapText,
102
62
  paginated: paginated && !groupedRows || wrapText,
103
63
  sortable: sortable && !groupedRows
104
- }));
105
-
64
+ });
106
65
  if (normalizeDataKeys) {
107
66
  normalizeRows(rows);
108
67
  }
109
-
110
- const grid = useDataGrid(_objectSpread({
68
+ const grid = useDataGrid({
111
69
  columns,
112
70
  rows,
113
71
  renderers: defaultRenderers,
114
- plugins: [...plugins, ...pluginsProp, ...defaultPlugins]
115
- }, otherProps));
72
+ plugins: [...plugins, ...pluginsProp, ...defaultPlugins],
73
+ ...otherProps
74
+ });
116
75
  const noColumnsVisible = useMemo(() => {
117
- const visibleUserColumns = grid.columns.filter(column => column.visible || typeof column.visible === 'undefined');
76
+ const visibleUserColumns = grid.columns.filter((column) => column.visible || typeof column.visible === "undefined");
118
77
  return visibleUserColumns.length === 0;
119
78
  }, [grid.columns]);
120
79
  const bodyPlaceholder = useMemo(() => {
121
80
  if (noColumnsVisible) {
122
81
  return noColumnsPlaceholder;
123
82
  }
124
-
125
83
  return isFunction(noResultsRender) ? noResultsRender() : noResultsPlaceholder;
126
84
  }, [noResultsPlaceholder, noColumnsPlaceholder, noColumnsVisible]);
127
- const {
128
- pagination
129
- } = otherProps;
85
+ const { pagination } = otherProps;
130
86
  const conditionalPagination = pagination && pagination.conditionalPagination === true && rows.length <= otherProps.pagination.perPage;
131
87
  const usePagination = paginated && !conditionalPagination;
132
- return /*#__PURE__*/jsxs(DatagridWrapper, _objectSpread(_objectSpread({
133
- className: "".concat(className, " ds-row-size-").concat(rowSize),
88
+ return /* @__PURE__ */ React2.createElement(DatagridWrapper, {
89
+ className: `${className} ds-row-size-${rowSize}`,
134
90
  classProps: {
135
91
  fluidHeight: isFluid({
136
92
  autoHeight: otherProps.autoHeight,
@@ -138,23 +94,22 @@ function DataGridImpl(_ref2) {
138
94
  paginated: usePagination
139
95
  })
140
96
  },
141
- style: {
142
- height
143
- }
144
- }, containerProps), {}, {
145
- children: [addOptionalHeaderComponents({
146
- grid
147
- }), /*#__PURE__*/jsxs(Table, _objectSpread(_objectSpread({}, grid), {}, {
148
- onDefaultFiltersLoad: onDefaultFiltersLoad,
149
- children: [showHeader && (_TableHeader || (_TableHeader = /*#__PURE__*/_jsx(TableHeader, {}))), showRowsLoader ? rowsLoaderRenderer() : /*#__PURE__*/_jsx(TableBody, {
150
- isPlaceholderActive: noColumnsVisible || grid.composedRows.rows && grid.composedRows.rows.length === 0 || grid.composedRows.length === 0,
151
- noResultsPlaceholder: bodyPlaceholder
152
- })]
153
- })), addOptionalFooterComponents({
154
- grid,
155
- rows: grid.composedRows
156
- })]
97
+ style: { height },
98
+ ...containerProps
99
+ }, addOptionalHeaderComponents({ grid }), /* @__PURE__ */ React2.createElement(Table, {
100
+ ...grid,
101
+ onDefaultFiltersLoad
102
+ }, showHeader && /* @__PURE__ */ React2.createElement(TableHeader, null), showRowsLoader ? rowsLoaderRenderer() : /* @__PURE__ */ React2.createElement(TableBody, {
103
+ isPlaceholderActive: noColumnsVisible || grid.composedRows.rows && grid.composedRows.rows.length === 0 || grid.composedRows.length === 0,
104
+ noResultsPlaceholder: bodyPlaceholder
105
+ })), addOptionalFooterComponents({
106
+ grid,
107
+ rows: grid.composedRows
157
108
  }));
158
- }
159
-
160
- export { DataGridImpl as default };
109
+ };
110
+ var DataGridImpl_default = DataGridImpl;
111
+ export {
112
+ DataGridImpl,
113
+ DataGridImpl_default as default
114
+ };
115
+ //# sourceMappingURL=DataGridImpl.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DataGridImpl.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useMemo } from 'react';\nimport { isFunction } from '@elliemae/ds-shared/utils';\nimport { useDataGrid } from '@elliemae/ds-shared/useDataGrid';\nimport { Table } from './components/Table';\nimport { TableBody } from './components/TableBody';\nimport { TableHeader } from './components/TableHeader';\nimport { defaultRenderers, renderRowsLoader } from './components/renderers';\nimport { DatagridWrapper } from './components/renderers/defaultClassedRenderers';\nimport { addOptionalFooterComponents } from './components/footer/addOptionalFooterComponents';\nimport { addOptionalHeaderComponents } from './components/header/addOptionalHeaderComponents';\nimport { EmptyState } from './components/EmptyState';\nimport { getPluginsFromProps } from './utilities/getPluginsFromProps';\nimport { defaultPlugins } from './defaultPlugins';\nimport { normalizeRows } from './utilities/normalizeData';\n\nconst isFluid = ({ autoHeight, paginated, numRowsVisible }) => {\n if (autoHeight) return false;\n if (paginated) return false;\n return !numRowsVisible;\n};\n\nconst DataGridImpl = ({\n className,\n renderers,\n columns,\n rows,\n containerProps,\n plugins: pluginsProp,\n normalizeDataKeys,\n ...otherProps\n}) => {\n const {\n noResultsPlaceholder = <EmptyState />,\n noColumnsPlaceholder = 'Please select one of more columns in order for data to be displayed.',\n noResultsRender,\n paginated,\n height,\n showHeader,\n showRowsLoader,\n rowsLoaderRenderer = renderRowsLoader,\n groupedRows,\n sortable,\n rowSize,\n wrapText,\n onDefaultFiltersLoad,\n rowKey,\n } = otherProps;\n\n const idKey = rowKey || 'id';\n const rowsIdsSet = new Set();\n const rowsIds = rows.map((row) => {\n if (row[idKey] === undefined)\n throw new Error('Missing id: each row must have an unique id');\n rowsIdsSet.add(row[idKey]);\n return row[idKey];\n });\n if (rowsIds.length !== rowsIdsSet.size)\n throw new Error('Repeated id: each row must have an unique id');\n\n const plugins = getPluginsFromProps({\n ...otherProps,\n virtualized: (!paginated || groupedRows) && !wrapText,\n paginated: (paginated && !groupedRows) || wrapText,\n sortable: sortable && !groupedRows,\n });\n\n if (normalizeDataKeys) {\n normalizeRows(rows);\n }\n\n const grid = useDataGrid({\n columns,\n rows,\n renderers: defaultRenderers,\n plugins: [...plugins, ...pluginsProp, ...defaultPlugins],\n ...otherProps,\n });\n\n const noColumnsVisible = useMemo(() => {\n const visibleUserColumns = grid.columns.filter(\n (column) => column.visible || typeof column.visible === 'undefined',\n );\n return visibleUserColumns.length === 0;\n }, [grid.columns]);\n\n const bodyPlaceholder = useMemo(() => {\n if (noColumnsVisible) {\n return noColumnsPlaceholder;\n }\n return isFunction(noResultsRender)\n ? noResultsRender()\n : noResultsPlaceholder;\n }, [noResultsPlaceholder, noColumnsPlaceholder, noColumnsVisible]);\n\n const { pagination } = otherProps;\n const conditionalPagination =\n pagination &&\n pagination.conditionalPagination === true &&\n rows.length <= otherProps.pagination.perPage;\n const usePagination = paginated && !conditionalPagination;\n return (\n <DatagridWrapper\n className={`${className} ds-row-size-${rowSize}`}\n classProps={{\n fluidHeight: isFluid({\n autoHeight: otherProps.autoHeight,\n numRowsVisible: otherProps.numRowsVisible,\n paginated: usePagination,\n }),\n }}\n style={{ height }}\n {...containerProps}\n >\n {addOptionalHeaderComponents({ grid })}\n <Table {...grid} onDefaultFiltersLoad={onDefaultFiltersLoad}>\n {showHeader && <TableHeader />}\n {showRowsLoader ? (\n rowsLoaderRenderer()\n ) : (\n <TableBody\n isPlaceholderActive={\n noColumnsVisible ||\n (grid.composedRows.rows && grid.composedRows.rows.length === 0) ||\n grid.composedRows.length === 0\n }\n noResultsPlaceholder={bodyPlaceholder}\n />\n )}\n </Table>\n {addOptionalFooterComponents({\n grid,\n rows: grid.composedRows,\n })}\n </DatagridWrapper>\n );\n};\n\nexport { DataGridImpl };\n\nexport default DataGridImpl;\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,UAAU,CAAC,EAAE,YAAY,WAAW,qBAAqB;AAC7D,MAAI;AAAY,WAAO;AACvB,MAAI;AAAW,WAAO;AACtB,SAAO,CAAC;AAAA;AAGV,MAAM,eAAe,CAAC;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AAAA,KACG;AAAA,MACC;AACJ,QAAM;AAAA,IACJ,uBAAuB,qCAAC,YAAD;AAAA,IACvB,uBAAuB;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,qBAAqB;AAAA,IACrB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE;AAEJ,QAAM,QAAQ,UAAU;AACxB,QAAM,aAAa,oBAAI;AACvB,QAAM,UAA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A,KACd,cAAc,qCAAC,aAAD,OACd,iBACC,uBAEA,qCAAC,WAAD;AAAA,IACE,qBACE,oBACC,KAAK,aAAa,QAAQ,KAAK,aAAa,KAAK,WAAW,KAC7D,KAAK,aAAa,WAAW;AAAA,IAE/B,sBAAsB;AAAA,OAI3B,4BAA4B;AAAA,IAC3B;AAAA,IACA,MAAM,KAAK;AAAA;AAAA;AAQnB,IAAO,uBAAQ;",
6
+ "names": []
7
+ }
@@ -1,68 +1,48 @@
1
- import 'core-js/modules/esnext.async-iterator.filter.js';
2
- import 'core-js/modules/esnext.iterator.constructor.js';
3
- import 'core-js/modules/esnext.iterator.filter.js';
4
- import 'core-js/modules/esnext.async-iterator.for-each.js';
5
- import 'core-js/modules/esnext.iterator.for-each.js';
6
- import _jsx from '@babel/runtime/helpers/esm/jsx';
7
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
8
- import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
9
- import 'react';
10
- import useDataGrid from '@elliemae/ds-shared/src/useDataGrid/useDataGrid';
11
- import Table from './components/Table.js';
12
- import { defaultRenderers } from './components/renderers/index.js';
13
- import { DatagridWrapper } from './components/renderers/defaultClassedRenderers.js';
14
- import addOptionalHeaderComponents from './components/header/addOptionalHeaderComponents.js';
15
- import getPluginsFromProps from './utilities/getPluginsFromProps.js';
16
- import { Pagination } from './plugins/pagination/components/Pagination.js';
17
- import { jsxs } from 'react/jsx-runtime';
18
- import { renderRowsLoader } from './components/renderers/renderRowsLoader.js';
19
-
20
- var _Table$Header;
21
-
22
- const _excluded = ["columns", "rows", "showRowsLoader", "noResultsPlaceholder", "rowsLoaderRenderer", "maxPerPage", "minPerPage", "onPageSelect", "onPerPage", "pagination"];
23
-
24
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25
-
26
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27
-
28
- function PaginatedDataGrid(_ref) {
29
- let {
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { useDataGrid } from "@elliemae/ds-shared/src/useDataGrid/useDataGrid";
4
+ import { Table } from "./components/Table";
5
+ import { defaultRenderers, renderRowsLoader } from "./components/renderers";
6
+ import { DatagridWrapper } from "./components/renderers/defaultClassedRenderers";
7
+ import { addOptionalHeaderComponents } from "./components/header/addOptionalHeaderComponents";
8
+ import { getPluginsFromProps } from "./utilities/getPluginsFromProps";
9
+ import { Pagination } from "./plugins/pagination/components/Pagination";
10
+ function PaginatedDataGrid({
11
+ columns,
12
+ rows,
13
+ showRowsLoader,
14
+ noResultsPlaceholder,
15
+ rowsLoaderRenderer = renderRowsLoader,
16
+ maxPerPage,
17
+ minPerPage,
18
+ onPageSelect,
19
+ onPerPage,
20
+ pagination,
21
+ ...otherProps
22
+ }) {
23
+ const plugins = getPluginsFromProps(otherProps, { infiniteScrolling: true });
24
+ const grid = useDataGrid({
25
+ ...otherProps,
30
26
  columns,
31
27
  rows,
32
- showRowsLoader,
33
- noResultsPlaceholder,
34
- rowsLoaderRenderer = renderRowsLoader,
28
+ renderers: defaultRenderers,
29
+ plugins
30
+ });
31
+ return /* @__PURE__ */ React2.createElement(DatagridWrapper, null, addOptionalHeaderComponents({ grid }), /* @__PURE__ */ React2.createElement(Table, {
32
+ ...grid
33
+ }, /* @__PURE__ */ React2.createElement(Table.Header, null), showRowsLoader ? rowsLoaderRenderer() : /* @__PURE__ */ React2.createElement(Table.Body, {
34
+ rows: grid.composedRows.rows || grid.composedRows
35
+ })), /* @__PURE__ */ React2.createElement(Pagination, {
35
36
  maxPerPage,
36
37
  minPerPage,
37
38
  onPageSelect,
38
39
  onPerPage,
39
- pagination
40
- } = _ref,
41
- otherProps = _objectWithoutProperties(_ref, _excluded);
42
-
43
- const plugins = getPluginsFromProps(otherProps, {
44
- infiniteScrolling: true
45
- });
46
- const grid = useDataGrid(_objectSpread(_objectSpread({}, otherProps), {}, {
47
- columns,
48
- rows,
49
- renderers: defaultRenderers,
50
- plugins
51
- }));
52
- return /*#__PURE__*/_jsx(DatagridWrapper, {}, void 0, addOptionalHeaderComponents({
53
- grid
54
- }), /*#__PURE__*/jsxs(Table, _objectSpread(_objectSpread({}, grid), {}, {
55
- children: [_Table$Header || (_Table$Header = /*#__PURE__*/_jsx(Table.Header, {})), showRowsLoader ? rowsLoaderRenderer() : /*#__PURE__*/_jsx(Table.Body, {
56
- rows: grid.composedRows.rows || grid.composedRows
57
- })]
58
- })), /*#__PURE__*/_jsx(Pagination, {
59
- maxPerPage: maxPerPage,
60
- minPerPage: minPerPage,
61
- onPageSelect: onPageSelect,
62
- onPerPage: onPerPage,
63
40
  paginated: rows,
64
- pagination: pagination
41
+ pagination
65
42
  }));
66
43
  }
67
-
68
- export { PaginatedDataGrid as default };
44
+ var PaginatedDataGrid_default = PaginatedDataGrid;
45
+ export {
46
+ PaginatedDataGrid_default as default
47
+ };
48
+ //# sourceMappingURL=PaginatedDataGrid.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/PaginatedDataGrid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { useDataGrid } from '@elliemae/ds-shared/src/useDataGrid/useDataGrid';\nimport { Table } from './components/Table';\nimport { defaultRenderers, renderRowsLoader } from './components/renderers';\nimport { DatagridWrapper } from './components/renderers/defaultClassedRenderers';\nimport { addOptionalHeaderComponents } from './components/header/addOptionalHeaderComponents';\nimport { getPluginsFromProps } from './utilities/getPluginsFromProps';\nimport { Pagination } from './plugins/pagination/components/Pagination';\n\nfunction PaginatedDataGrid({\n columns,\n rows,\n showRowsLoader,\n noResultsPlaceholder,\n rowsLoaderRenderer = renderRowsLoader,\n maxPerPage,\n minPerPage,\n onPageSelect,\n onPerPage,\n pagination,\n ...otherProps\n}) {\n const plugins = getPluginsFromProps(otherProps, { infiniteScrolling: true });\n const grid = useDataGrid({\n ...otherProps,\n columns,\n rows,\n renderers: defaultRenderers,\n plugins,\n });\n\n return (\n <DatagridWrapper>\n {addOptionalHeaderComponents({ grid })}\n <Table {...grid}>\n <Table.Header />\n {showRowsLoader ? (\n rowsLoaderRenderer()\n ) : (\n <Table.Body rows={grid.composedRows.rows || grid.composedRows} />\n )}\n </Table>\n <Pagination\n maxPerPage={maxPerPage}\n minPerPage={minPerPage}\n onPageSelect={onPageSelect}\n onPerPage={onPerPage}\n paginated={rows}\n pagination={pagination}\n />\n </DatagridWrapper>\n );\n}\n\nexport default PaginatedDataGrid;\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,2BAA2B;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,qBAAqB;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,KACG;AAAA,GACF;AACD,QAAM,UAAU,oBAAoB,YAAY,EAAE,mBAAmB;AACrE,QAAM,OAAO,YAAY;AAAA,OACpB;AAAA,IACH;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA;AAGF,SACE,qCAAC,iBAAD,MACG,4BAA4B,EAAE,SAC/B,qCAAC,OAAD;AAAA,OAAW;AAAA,KACT,qCAAC,MAAM,QAAP,OACC,iBACC,uBAEA,qCAAC,MAAM,MAAP;AAAA,IAAY,MAAM,KAAK,aAAa,QAAQ,KAAK;AAAA,OAGrD,qCAAC,YAAD;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA;AAAA;AAMR,IAAO,4BAAQ;",
6
+ "names": []
7
+ }
package/esm/blockNames.js CHANGED
@@ -1,5 +1,10 @@
1
- const dataGridBlockName = 'data-grid';
2
- const headerBlockName = "".concat(dataGridBlockName, "-header");
3
- const bodyBlockName = "".concat(dataGridBlockName, "-body");
4
-
5
- export { bodyBlockName, dataGridBlockName, headerBlockName };
1
+ import * as React from "react";
2
+ const dataGridBlockName = "data-grid";
3
+ const headerBlockName = `${dataGridBlockName}-header`;
4
+ const bodyBlockName = `${dataGridBlockName}-body`;
5
+ export {
6
+ bodyBlockName,
7
+ dataGridBlockName,
8
+ headerBlockName
9
+ };
10
+ //# sourceMappingURL=blockNames.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/blockNames.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "const dataGridBlockName = 'data-grid';\nconst headerBlockName = `${dataGridBlockName}-header`;\nconst bodyBlockName = `${dataGridBlockName}-body`;\n\nexport { dataGridBlockName, headerBlockName, bodyBlockName };\n"],
5
+ "mappings": "AAAA;ACAA,MAAM,oBAAoB;AAC1B,MAAM,kBAAkB,GAAG;AAC3B,MAAM,gBAAgB,GAAG;",
6
+ "names": []
7
+ }
@@ -1,87 +1,82 @@
1
- import _jsx from '@babel/runtime/helpers/esm/jsx';
2
- import React from 'react';
3
- import { cx } from '@elliemae/ds-utilities';
4
- import DSButton from '@elliemae/ds-button';
5
- import { aggregatedClasses } from '@elliemae/ds-classnames';
6
-
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { cx } from "@elliemae/ds-utilities";
4
+ import { DSButton } from "@elliemae/ds-button";
5
+ import { aggregatedClasses } from "@elliemae/ds-classnames";
7
6
  const Intents = {
8
- SUCCESS: 'success',
9
- INFO: 'info',
10
- DANGER: 'danger',
11
- WARNING: 'warning'
7
+ SUCCESS: "success",
8
+ INFO: "info",
9
+ DANGER: "danger",
10
+ WARNING: "warning"
12
11
  };
13
12
  const IntentIconColors = {
14
- [Intents.SUCCESS]: ['success', 900],
15
- [Intents.INFO]: ['brand-primary', 600],
16
- [Intents.DANGER]: ['danger', 900],
17
- [Intents.WARNING]: ['warning', 900]
13
+ [Intents.SUCCESS]: ["success", 900],
14
+ [Intents.INFO]: ["brand-primary", 600],
15
+ [Intents.DANGER]: ["danger", 900],
16
+ [Intents.WARNING]: ["warning", 900]
18
17
  };
19
- const ValueWrapper = aggregatedClasses('span')('icon-column-cell');
20
-
18
+ const ValueWrapper = aggregatedClasses("span")("icon-column-cell");
21
19
  const addColorToIcon = (icon, intentColor) => {
22
20
  if (icon.props.color) {
23
21
  return icon;
24
22
  }
25
-
26
- return /*#__PURE__*/React.cloneElement(icon, {
27
- color: intentColor
28
- });
23
+ return React2.cloneElement(icon, { color: intentColor });
29
24
  };
30
-
31
- function createColumn(_ref) {
32
- let {
33
- property,
34
- label,
35
- headerIcon,
36
- getRowIcon = () => null,
37
- isVisited = () => null,
38
- intent = Intents.SUCCESS,
39
- width = 60,
40
- onClick,
41
- visible,
42
- resizable,
43
- sortable,
44
- searchable
45
- } = _ref;
46
-
25
+ const IconColumn = ({
26
+ property,
27
+ label,
28
+ headerIcon,
29
+ getRowIcon = () => null,
30
+ isVisited = () => null,
31
+ intent = Intents.SUCCESS,
32
+ width = 60,
33
+ onClick,
34
+ visible,
35
+ resizable,
36
+ sortable,
37
+ searchable
38
+ }) => {
47
39
  const formatter = (value, extraParams) => {
48
40
  const icon = getRowIcon(value, extraParams);
49
-
50
- const onClickHandler = e => onClick(e, extraParams);
51
-
52
- return /*#__PURE__*/_jsx(ValueWrapper, {
53
- className: cx("icc-".concat(intent), isVisited(value, extraParams))
54
- }, void 0, icon && addColorToIcon(icon, IntentIconColors[intent]), onClick && typeof value !== 'undefined' ? /*#__PURE__*/_jsx(DSButton, {
41
+ const onClickHandler = (e) => onClick(e, extraParams);
42
+ return /* @__PURE__ */ React2.createElement(ValueWrapper, {
43
+ className: cx(`icc-${intent}`, isVisited(value, extraParams))
44
+ }, icon && addColorToIcon(icon, IntentIconColors[intent]), onClick && typeof value !== "undefined" ? /* @__PURE__ */ React2.createElement(DSButton, {
55
45
  buttonType: "text",
56
- intent: intent,
46
+ intent,
57
47
  labelText: value,
58
48
  onClick: onClickHandler
59
49
  }) : value);
60
50
  };
61
-
62
51
  return {
63
52
  property,
64
53
  label,
65
54
  headerStyle: {
66
- justifyContent: 'center'
55
+ justifyContent: "center"
67
56
  },
68
57
  header: {
69
- formatters: [() => /*#__PURE__*/_jsx("span", {}, void 0, /*#__PURE__*/React.cloneElement(headerIcon, {
70
- color: IntentIconColors[intent]
71
- }))]
58
+ formatters: [
59
+ () => /* @__PURE__ */ React2.createElement("span", null, React2.cloneElement(headerIcon, {
60
+ color: IntentIconColors[intent]
61
+ }))
62
+ ]
72
63
  },
73
64
  cell: {
74
65
  formatters: [formatter]
75
66
  },
76
67
  cellStyle: {
77
- justifyContent: 'center'
68
+ justifyContent: "center"
78
69
  },
79
70
  width,
80
- visible: typeof visible === 'undefined' || visible,
71
+ visible: typeof visible === "undefined" || visible,
81
72
  resizable,
82
73
  sortable,
83
74
  searchable
84
75
  };
85
- }
86
-
87
- export { createColumn as default };
76
+ };
77
+ var IconColumn_default = IconColumn;
78
+ export {
79
+ IconColumn,
80
+ IconColumn_default as default
81
+ };
82
+ //# sourceMappingURL=IconColumn.js.map