@elliemae/ds-datagrids 1.61.0 → 2.0.0-alpha.12

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 (785) hide show
  1. package/cjs/DSDataGrid.js +142 -424
  2. package/cjs/DataGridImpl.js +107 -202
  3. package/cjs/PaginatedDataGrid.js +46 -155
  4. package/cjs/blockNames.js +3 -4
  5. package/cjs/columns/IconColumn.js +40 -47
  6. package/cjs/columns/NumberColumn.js +0 -3
  7. package/cjs/components/BodyCell.js +65 -82
  8. package/cjs/components/BodyList.js +37 -25
  9. package/cjs/components/ColumnVisibilityMenuOption.js +27 -32
  10. package/cjs/components/ColumnsOptionsMenuSection.js +30 -30
  11. package/cjs/components/EmptyState.js +22 -39
  12. package/cjs/components/HeaderCell.js +49 -50
  13. package/cjs/components/List.js +20 -10
  14. package/cjs/components/ListItem.js +32 -19
  15. package/cjs/components/NoResults.js +34 -23
  16. package/cjs/components/RowsLoader.js +8 -9
  17. package/cjs/components/Table.js +71 -67
  18. package/cjs/components/TableBody.js +40 -34
  19. package/cjs/components/TableHeader.js +20 -14
  20. package/cjs/components/footer/addOptionalFooterComponents.js +36 -34
  21. package/cjs/components/header/PrimaryControls.js +17 -16
  22. package/cjs/components/header/addOptionalHeaderComponents.js +36 -34
  23. package/cjs/components/index.js +10 -21
  24. package/cjs/components/renderers/defaultClassedRenderers.js +24 -17
  25. package/cjs/components/renderers/index.js +17 -12
  26. package/cjs/components/renderers/renderRowsLoader.js +6 -9
  27. package/cjs/components/tableContext.js +1 -2
  28. package/cjs/defaultPlugins.js +5 -38
  29. package/cjs/index.js +54 -181
  30. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +116 -116
  31. package/cjs/plugins/body-header-scroll-sync/index.js +2 -10
  32. package/cjs/plugins/column-dnd/DndColumnsPlugin.js +59 -63
  33. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +12 -12
  34. package/cjs/plugins/column-dnd/index.js +2 -11
  35. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +46 -53
  36. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +53 -43
  37. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +4 -7
  38. package/cjs/plugins/column-sizing/ext-points/getTableProps.js +25 -23
  39. package/cjs/plugins/column-sizing/getColumnNameFromProperty.js +2 -1
  40. package/cjs/plugins/column-sizing/index.js +2 -17
  41. package/cjs/plugins/column-sizing/useColumnSizeService.js +69 -83
  42. package/cjs/plugins/column-sizing/useStylesheetHelpers.js +145 -145
  43. package/cjs/plugins/column-sizing/utils.js +16 -16
  44. package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +4 -24
  45. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +46 -58
  46. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +41 -34
  47. package/cjs/plugins/custom-cell-renderer/index.js +2 -22
  48. package/cjs/plugins/editable/EditableComponents/ComboBox.js +51 -74
  49. package/cjs/plugins/editable/EditableComponents/TextBox.js +85 -100
  50. package/cjs/plugins/editable/EditableComponents/index.js +4 -14
  51. package/cjs/plugins/editable/EditablePlugin.js +66 -78
  52. package/cjs/plugins/editable/decorateEditable.js +64 -66
  53. package/cjs/plugins/editable/getEditorComponent.js +36 -36
  54. package/cjs/plugins/editable/index.js +6 -26
  55. package/cjs/plugins/expandable-grid/ExpandableColumn.js +100 -89
  56. package/cjs/plugins/expandable-grid/ExpandablePlugin.js +142 -162
  57. package/cjs/plugins/expandable-grid/ExpandedRow.js +110 -126
  58. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +38 -29
  59. package/cjs/plugins/expandable-grid/index.js +4 -57
  60. package/cjs/plugins/expandable-grid/useExpandGridState.js +38 -48
  61. package/cjs/plugins/export-data/ExportDataPlugin.js +88 -91
  62. package/cjs/plugins/export-data/index.js +5 -10
  63. package/cjs/plugins/filterable/FilterablePlugin.js +51 -78
  64. package/cjs/plugins/filterable/addFilterToColumn.js +11 -35
  65. package/cjs/plugins/filterable/components/FilterableHeader.js +81 -114
  66. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +60 -103
  67. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +39 -75
  68. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +68 -113
  69. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +68 -118
  70. package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +1 -2
  71. package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +9 -31
  72. package/cjs/plugins/filterable/filterableFormatter.js +36 -56
  73. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +32 -33
  74. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +13 -18
  75. package/cjs/plugins/filterable/helper.js +48 -53
  76. package/cjs/plugins/filterable/index.js +2 -42
  77. package/cjs/plugins/filterable/useFilterableState.js +44 -53
  78. package/cjs/plugins/grouping-by/GroupingByPlugin.js +21 -19
  79. package/cjs/plugins/grouping-grid/GroupingPlugin.js +83 -87
  80. package/cjs/plugins/grouping-grid/walkStrategy.js +19 -30
  81. package/cjs/plugins/index.js +41 -151
  82. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +53 -72
  83. package/cjs/plugins/infinite-scrolling/index.js +2 -10
  84. package/cjs/plugins/pagination/PaginationPlugin.js +70 -69
  85. package/cjs/plugins/pagination/components/Pagination.js +21 -27
  86. package/cjs/plugins/pagination/components/Paginator.js +33 -34
  87. package/cjs/plugins/pagination/components/PerPageDropdown.js +44 -31
  88. package/cjs/plugins/pagination/helper.js +15 -15
  89. package/cjs/plugins/pagination/index.js +2 -16
  90. package/cjs/plugins/pagination/usePaginationState.js +35 -44
  91. package/cjs/plugins/resizable/ResizablePlugin.js +45 -59
  92. package/cjs/plugins/resizable/decorateResizable.js +43 -36
  93. package/cjs/plugins/resizable/index.js +2 -10
  94. package/cjs/plugins/resizable/useResizeHandle.js +24 -22
  95. package/cjs/plugins/resizable/utils.js +12 -20
  96. package/cjs/plugins/row-dnd/DndRowsPlugin.js +51 -52
  97. package/cjs/plugins/row-dnd/index.js +2 -11
  98. package/cjs/plugins/selectable/SelectablePlugin.js +129 -120
  99. package/cjs/plugins/selectable/addSelectableColumn.js +47 -39
  100. package/cjs/plugins/selectable/helper.js +18 -28
  101. package/cjs/plugins/selectable/index.js +2 -17
  102. package/cjs/plugins/selectable/selectableFormatter.js +64 -53
  103. package/cjs/plugins/selectable/useSelectableState.js +66 -68
  104. package/cjs/plugins/sortable/SortablePlugin.js +50 -56
  105. package/cjs/plugins/sortable/checkIfSortable.js +4 -5
  106. package/cjs/plugins/sortable/index.js +2 -19
  107. package/cjs/plugins/sortable/sortHeaderFormatter.js +41 -36
  108. package/cjs/plugins/sortable/sortTree.js +16 -16
  109. package/cjs/plugins/sortable/sorter.js +82 -95
  110. package/cjs/plugins/sortable/useSortableState.js +40 -41
  111. package/cjs/plugins/toolbar/RowRenderer.js +43 -60
  112. package/cjs/plugins/toolbar/ToolbarPlugin.js +18 -29
  113. package/cjs/plugins/toolbar/ToolbarTrigger.js +39 -50
  114. package/cjs/plugins/toolbar/index.js +2 -19
  115. package/cjs/plugins/virtualization/AutoHeightList.js +31 -23
  116. package/cjs/plugins/virtualization/VirtualizationPlugin.js +80 -83
  117. package/cjs/plugins/virtualization/VirtualizedBody.js +136 -195
  118. package/cjs/plugins/virtualization/VirtualizedBodyRow.js +18 -13
  119. package/cjs/plugins/virtualization/helper.js +1 -2
  120. package/cjs/plugins/virtualization/index.js +2 -20
  121. package/cjs/renders/CellWithAddons.js +29 -75
  122. package/cjs/renders/index.js +4 -11
  123. package/cjs/renders/styled.js +7 -24
  124. package/cjs/rowSizes.js +3 -4
  125. package/cjs/utilities/getPluginsFromProps.js +33 -139
  126. package/cjs/utilities/getScrollbarSize.js +4 -5
  127. package/cjs/utilities/normalizeData.js +22 -22
  128. package/esm/DSDataGrid.js +140 -422
  129. package/esm/DataGridImpl.js +93 -186
  130. package/esm/PaginatedDataGrid.js +36 -145
  131. package/esm/blockNames.js +3 -4
  132. package/esm/columns/IconColumn.js +38 -45
  133. package/esm/columns/NumberColumn.js +0 -3
  134. package/esm/components/BodyCell.js +61 -75
  135. package/esm/components/BodyList.js +32 -21
  136. package/esm/components/ColumnVisibilityMenuOption.js +27 -28
  137. package/esm/components/ColumnsOptionsMenuSection.js +29 -28
  138. package/esm/components/EmptyState.js +21 -38
  139. package/esm/components/HeaderCell.js +47 -47
  140. package/esm/components/List.js +19 -9
  141. package/esm/components/ListItem.js +30 -16
  142. package/esm/components/NoResults.js +31 -19
  143. package/esm/components/RowsLoader.js +6 -7
  144. package/esm/components/Table.js +63 -58
  145. package/esm/components/TableBody.js +35 -28
  146. package/esm/components/TableHeader.js +19 -12
  147. package/esm/components/footer/addOptionalFooterComponents.js +34 -32
  148. package/esm/components/header/PrimaryControls.js +16 -15
  149. package/esm/components/header/addOptionalHeaderComponents.js +35 -32
  150. package/esm/components/index.js +0 -11
  151. package/esm/components/renderers/defaultClassedRenderers.js +24 -17
  152. package/esm/components/renderers/index.js +17 -8
  153. package/esm/components/renderers/renderRowsLoader.js +4 -7
  154. package/esm/components/tableContext.js +1 -2
  155. package/esm/defaultPlugins.js +1 -34
  156. package/esm/index.js +0 -127
  157. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +111 -111
  158. package/esm/plugins/body-header-scroll-sync/index.js +0 -8
  159. package/esm/plugins/column-dnd/DndColumnsPlugin.js +56 -59
  160. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +11 -11
  161. package/esm/plugins/column-dnd/index.js +0 -9
  162. package/esm/plugins/column-sizing/ColumnSizingPlugin.js +40 -47
  163. package/esm/plugins/column-sizing/columnMeasurerTransformer.js +52 -42
  164. package/esm/plugins/column-sizing/ext-points/decorateColumn.js +2 -5
  165. package/esm/plugins/column-sizing/ext-points/getTableProps.js +22 -19
  166. package/esm/plugins/column-sizing/getColumnNameFromProperty.js +2 -1
  167. package/esm/plugins/column-sizing/index.js +0 -15
  168. package/esm/plugins/column-sizing/useColumnSizeService.js +66 -79
  169. package/esm/plugins/column-sizing/useStylesheetHelpers.js +141 -136
  170. package/esm/plugins/column-sizing/utils.js +16 -16
  171. package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +3 -23
  172. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +46 -58
  173. package/esm/plugins/custom-cell-renderer/getRendererComponent.js +42 -34
  174. package/esm/plugins/custom-cell-renderer/index.js +0 -20
  175. package/esm/plugins/editable/EditableComponents/ComboBox.js +51 -67
  176. package/esm/plugins/editable/EditableComponents/TextBox.js +84 -93
  177. package/esm/plugins/editable/EditableComponents/index.js +0 -10
  178. package/esm/plugins/editable/EditablePlugin.js +64 -75
  179. package/esm/plugins/editable/decorateEditable.js +56 -56
  180. package/esm/plugins/editable/getEditorComponent.js +30 -29
  181. package/esm/plugins/editable/index.js +0 -20
  182. package/esm/plugins/expandable-grid/ExpandableColumn.js +99 -88
  183. package/esm/plugins/expandable-grid/ExpandablePlugin.js +137 -156
  184. package/esm/plugins/expandable-grid/ExpandedRow.js +101 -117
  185. package/esm/plugins/expandable-grid/ExpandedRowExtra.js +36 -27
  186. package/esm/plugins/expandable-grid/index.js +0 -53
  187. package/esm/plugins/expandable-grid/useExpandGridState.js +38 -44
  188. package/esm/plugins/export-data/ExportDataPlugin.js +87 -89
  189. package/esm/plugins/export-data/index.js +0 -5
  190. package/esm/plugins/filterable/FilterablePlugin.js +46 -73
  191. package/esm/plugins/filterable/addFilterToColumn.js +8 -32
  192. package/esm/plugins/filterable/components/FilterableHeader.js +79 -110
  193. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +59 -100
  194. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +37 -71
  195. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +67 -110
  196. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +66 -113
  197. package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +1 -2
  198. package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +1 -23
  199. package/esm/plugins/filterable/filterableFormatter.js +33 -53
  200. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +29 -30
  201. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +13 -18
  202. package/esm/plugins/filterable/helper.js +47 -51
  203. package/esm/plugins/filterable/index.js +0 -40
  204. package/esm/plugins/filterable/useFilterableState.js +41 -49
  205. package/esm/plugins/grouping-by/GroupingByPlugin.js +21 -19
  206. package/esm/plugins/grouping-grid/GroupingPlugin.js +80 -84
  207. package/esm/plugins/grouping-grid/walkStrategy.js +19 -26
  208. package/esm/plugins/index.js +0 -110
  209. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +53 -69
  210. package/esm/plugins/infinite-scrolling/index.js +0 -8
  211. package/esm/plugins/pagination/PaginationPlugin.js +60 -59
  212. package/esm/plugins/pagination/components/Pagination.js +18 -24
  213. package/esm/plugins/pagination/components/Paginator.js +30 -31
  214. package/esm/plugins/pagination/components/PerPageDropdown.js +41 -29
  215. package/esm/plugins/pagination/helper.js +14 -14
  216. package/esm/plugins/pagination/index.js +0 -14
  217. package/esm/plugins/pagination/usePaginationState.js +33 -41
  218. package/esm/plugins/resizable/ResizablePlugin.js +43 -57
  219. package/esm/plugins/resizable/decorateResizable.js +37 -31
  220. package/esm/plugins/resizable/index.js +0 -8
  221. package/esm/plugins/resizable/useResizeHandle.js +26 -24
  222. package/esm/plugins/resizable/utils.js +11 -19
  223. package/esm/plugins/row-dnd/DndRowsPlugin.js +50 -50
  224. package/esm/plugins/row-dnd/index.js +0 -9
  225. package/esm/plugins/selectable/SelectablePlugin.js +123 -111
  226. package/esm/plugins/selectable/addSelectableColumn.js +43 -35
  227. package/esm/plugins/selectable/helper.js +17 -27
  228. package/esm/plugins/selectable/index.js +0 -15
  229. package/esm/plugins/selectable/selectableFormatter.js +62 -52
  230. package/esm/plugins/selectable/useSelectableState.js +60 -61
  231. package/esm/plugins/sortable/SortablePlugin.js +42 -46
  232. package/esm/plugins/sortable/checkIfSortable.js +3 -4
  233. package/esm/plugins/sortable/index.js +0 -17
  234. package/esm/plugins/sortable/sortHeaderFormatter.js +40 -36
  235. package/esm/plugins/sortable/sortTree.js +13 -11
  236. package/esm/plugins/sortable/sorter.js +79 -91
  237. package/esm/plugins/sortable/useSortableState.js +34 -33
  238. package/esm/plugins/toolbar/RowRenderer.js +41 -55
  239. package/esm/plugins/toolbar/ToolbarPlugin.js +15 -25
  240. package/esm/plugins/toolbar/ToolbarTrigger.js +37 -47
  241. package/esm/plugins/toolbar/index.js +0 -17
  242. package/esm/plugins/virtualization/AutoHeightList.js +27 -18
  243. package/esm/plugins/virtualization/VirtualizationPlugin.js +78 -80
  244. package/esm/plugins/virtualization/VirtualizedBody.js +131 -187
  245. package/esm/plugins/virtualization/VirtualizedBodyRow.js +18 -13
  246. package/esm/plugins/virtualization/helper.js +1 -2
  247. package/esm/plugins/virtualization/index.js +0 -18
  248. package/esm/renders/CellWithAddons.js +27 -72
  249. package/esm/renders/index.js +0 -7
  250. package/esm/renders/styled.js +7 -24
  251. package/esm/rowSizes.js +3 -4
  252. package/esm/utilities/getPluginsFromProps.js +7 -113
  253. package/esm/utilities/getScrollbarSize.js +4 -5
  254. package/esm/utilities/normalizeData.js +21 -21
  255. package/package.json +555 -26
  256. package/types/DSDataGrid.d.ts +977 -0
  257. package/types/DataGridImpl.d.ts +12 -0
  258. package/types/PaginatedDataGrid.d.ts +16 -0
  259. package/types/blockNames.d.ts +4 -0
  260. package/types/columns/IconColumn.d.ts +35 -0
  261. package/types/columns/NumberColumn.d.ts +4 -0
  262. package/types/components/BodyCell.d.ts +33 -0
  263. package/types/components/BodyList.d.ts +12 -0
  264. package/types/components/ColumnVisibilityMenuOption.d.ts +15 -0
  265. package/types/components/ColumnsOptionsMenuSection.d.ts +8 -0
  266. package/types/components/EmptyState.d.ts +7 -0
  267. package/types/components/HeaderCell.d.ts +19 -0
  268. package/types/components/List.d.ts +3 -0
  269. package/types/components/ListItem.d.ts +3 -0
  270. package/types/components/NoResults.d.ts +8 -0
  271. package/types/components/RowsLoader.d.ts +5 -0
  272. package/types/components/Table.d.ts +13 -0
  273. package/types/components/TableBody.d.ts +9 -0
  274. package/types/components/TableHeader.d.ts +3 -0
  275. package/types/components/footer/addOptionalFooterComponents.d.ts +6 -0
  276. package/types/components/header/PrimaryControls.d.ts +5 -0
  277. package/types/components/header/addOptionalHeaderComponents.d.ts +11 -0
  278. package/types/components/index.d.ts +5 -0
  279. package/types/components/renderers/defaultClassedRenderers.d.ts +11 -0
  280. package/types/components/renderers/index.d.ts +15 -0
  281. package/types/components/renderers/renderRowsLoader.d.ts +2 -0
  282. package/types/components/tableContext.d.ts +2 -0
  283. package/types/components/tests/ColumnVisibilityMenu.test.d.ts +1 -0
  284. package/types/defaultPlugins.d.ts +1 -0
  285. package/types/index.d.ts +10 -0
  286. package/types/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +1 -0
  287. package/types/plugins/body-header-scroll-sync/index.d.ts +1 -0
  288. package/types/plugins/column-dnd/DndColumnsPlugin.d.ts +1 -0
  289. package/types/plugins/column-dnd/decorateGridWithDndColumns.d.ts +2 -0
  290. package/types/plugins/column-dnd/index.d.ts +1 -0
  291. package/types/plugins/column-sizing/ColumnSizingPlugin.d.ts +1 -0
  292. package/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +6 -0
  293. package/types/plugins/column-sizing/ext-points/decorateColumn.d.ts +1 -0
  294. package/types/plugins/column-sizing/ext-points/getTableProps.d.ts +10 -0
  295. package/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +1 -0
  296. package/types/plugins/column-sizing/index.d.ts +1 -0
  297. package/types/plugins/column-sizing/useColumnSizeService.d.ts +17 -0
  298. package/types/plugins/column-sizing/useStylesheetHelpers.d.ts +22 -0
  299. package/types/plugins/column-sizing/utils.d.ts +5 -0
  300. package/types/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +1 -0
  301. package/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +3 -0
  302. package/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +11 -0
  303. package/types/plugins/custom-cell-renderer/index.d.ts +1 -0
  304. package/types/plugins/editable/EditableComponents/ComboBox.d.ts +10 -0
  305. package/types/plugins/editable/EditableComponents/TextBox.d.ts +22 -0
  306. package/types/plugins/editable/EditableComponents/index.d.ts +2 -0
  307. package/types/plugins/editable/EditablePlugin.d.ts +1 -0
  308. package/types/plugins/editable/decorateEditable.d.ts +7 -0
  309. package/types/plugins/editable/getEditorComponent.d.ts +6 -0
  310. package/types/plugins/editable/index.d.ts +2 -0
  311. package/types/plugins/expandable-grid/ExpandableColumn.d.ts +28 -0
  312. package/types/plugins/expandable-grid/ExpandablePlugin.d.ts +1 -0
  313. package/types/plugins/expandable-grid/ExpandedRow.d.ts +11 -0
  314. package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +9 -0
  315. package/types/plugins/expandable-grid/index.d.ts +2 -0
  316. package/types/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +1 -0
  317. package/types/plugins/expandable-grid/useExpandGridState.d.ts +14 -0
  318. package/types/plugins/export-data/ExportDataPlugin.d.ts +4 -0
  319. package/types/plugins/export-data/index.d.ts +1 -0
  320. package/types/plugins/filterable/FilterablePlugin.d.ts +1 -0
  321. package/types/plugins/filterable/addFilterToColumn.d.ts +1 -0
  322. package/types/plugins/filterable/components/FilterableHeader.d.ts +29 -0
  323. package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +30 -0
  324. package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +27 -0
  325. package/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +30 -0
  326. package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +35 -0
  327. package/types/plugins/filterable/components/filterable-menus/defaultDateFormat.d.ts +1 -0
  328. package/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +1 -0
  329. package/types/plugins/filterable/filterableFormatter.d.ts +11 -0
  330. package/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +2 -0
  331. package/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +2 -0
  332. package/types/plugins/filterable/helper.d.ts +22 -0
  333. package/types/plugins/filterable/index.d.ts +1 -0
  334. package/types/plugins/filterable/useFilterableState.d.ts +18 -0
  335. package/types/plugins/grouping-by/GroupingByPlugin.d.ts +1 -0
  336. package/types/plugins/grouping-grid/GroupingPlugin.d.ts +1 -0
  337. package/types/plugins/grouping-grid/walkStrategy.d.ts +9 -0
  338. package/types/plugins/index.d.ts +16 -0
  339. package/types/plugins/infinite-scrolling/InfiniteScrollPlugin.d.ts +1 -0
  340. package/types/plugins/infinite-scrolling/index.d.ts +1 -0
  341. package/types/plugins/pagination/PaginationPlugin.d.ts +1 -0
  342. package/types/plugins/pagination/components/Pagination.d.ts +11 -0
  343. package/types/plugins/pagination/components/Paginator.d.ts +9 -0
  344. package/types/plugins/pagination/components/PerPageDropdown.d.ts +9 -0
  345. package/types/plugins/pagination/helper.d.ts +17 -0
  346. package/types/plugins/pagination/index.d.ts +1 -0
  347. package/types/plugins/pagination/usePaginationState.d.ts +9 -0
  348. package/types/plugins/resizable/ResizablePlugin.d.ts +1 -0
  349. package/types/plugins/resizable/decorateResizable.d.ts +4 -0
  350. package/types/plugins/resizable/index.d.ts +1 -0
  351. package/types/plugins/resizable/useResizeHandle.d.ts +13 -0
  352. package/types/plugins/resizable/utils.d.ts +3 -0
  353. package/types/plugins/row-dnd/DndRowsPlugin.d.ts +1 -0
  354. package/types/plugins/row-dnd/index.d.ts +1 -0
  355. package/types/plugins/selectable/SelectablePlugin.d.ts +1 -0
  356. package/types/plugins/selectable/addSelectableColumn.d.ts +30 -0
  357. package/types/plugins/selectable/helper.d.ts +5 -0
  358. package/types/plugins/selectable/index.d.ts +1 -0
  359. package/types/plugins/selectable/selectableFormatter.d.ts +9 -0
  360. package/types/plugins/selectable/useSelectableState.d.ts +9 -0
  361. package/types/plugins/sortable/SortablePlugin.d.ts +1 -0
  362. package/types/plugins/sortable/checkIfSortable.d.ts +2 -0
  363. package/types/plugins/sortable/index.d.ts +1 -0
  364. package/types/plugins/sortable/sortHeaderFormatter.d.ts +6 -0
  365. package/types/plugins/sortable/sortTree.d.ts +2 -0
  366. package/types/plugins/sortable/sorter.d.ts +12 -0
  367. package/types/plugins/sortable/useSortableState.d.ts +8 -0
  368. package/types/plugins/toolbar/RowRenderer.d.ts +11 -0
  369. package/types/plugins/toolbar/ToolbarPlugin.d.ts +1 -0
  370. package/types/plugins/toolbar/ToolbarTrigger.d.ts +8 -0
  371. package/types/plugins/toolbar/index.d.ts +1 -0
  372. package/types/plugins/virtualization/AutoHeightList.d.ts +3 -0
  373. package/types/plugins/virtualization/VirtualizationPlugin.d.ts +1 -0
  374. package/types/plugins/virtualization/VirtualizedBody.d.ts +32 -0
  375. package/types/plugins/virtualization/VirtualizedBodyRow.d.ts +8 -0
  376. package/types/plugins/virtualization/helper.d.ts +1 -0
  377. package/types/plugins/virtualization/index.d.ts +1 -0
  378. package/types/renders/CellWithAddons.d.ts +52 -0
  379. package/types/renders/index.d.ts +2 -0
  380. package/types/renders/styled.d.ts +3 -0
  381. package/types/rowSizes.d.ts +11 -0
  382. package/types/stories/datagrids-export.stories.d.ts +1 -0
  383. package/types/stories/datagrids-selectable-multi.stories.d.ts +1 -0
  384. package/types/tests/DataGrid-Columns.test.d.ts +1 -0
  385. package/types/tests/DataGrid-Editable.test.d.ts +1 -0
  386. package/types/tests/DataGrid-Export.test.d.ts +1 -0
  387. package/types/tests/DataGrid-Filter-helper.test.d.ts +1 -0
  388. package/types/tests/DataGrid-Filterable-Dates.test.d.ts +1 -0
  389. package/types/tests/DataGrid-Filterable-State.test.d.ts +1 -0
  390. package/types/tests/DataGrid-RowDnd.test.d.ts +1 -0
  391. package/types/tests/DataGrid-Selectable.test.d.ts +1 -0
  392. package/types/tests/DataGrid-Sortable.test.d.ts +1 -0
  393. package/types/tests/DataGrid-Toolbar.test.d.ts +1 -0
  394. package/types/tests/DataGrid-Virtualization.test.d.ts +1 -0
  395. package/types/tests/DataGrids-ColumnSizing.test.d.ts +1 -0
  396. package/types/tests/DataGrids-ConditionalPagination.test.d.ts +1 -0
  397. package/types/tests/DataGrids-Rows.test.d.ts +1 -0
  398. package/types/tests/DataGrids.test.d.ts +1 -0
  399. package/types/utilities/getPluginsFromProps.d.ts +1 -0
  400. package/types/utilities/getScrollbarSize.d.ts +1 -0
  401. package/types/utilities/normalizeData.d.ts +3 -0
  402. package/DSDataGrid/package.json +0 -10
  403. package/DataGridImpl/package.json +0 -10
  404. package/PaginatedDataGrid/package.json +0 -10
  405. package/blockNames/package.json +0 -10
  406. package/cjs/DSDataGrid.js.map +0 -1
  407. package/cjs/DataGridImpl.js.map +0 -1
  408. package/cjs/PaginatedDataGrid.js.map +0 -1
  409. package/cjs/blockNames.js.map +0 -1
  410. package/cjs/columns/IconColumn.js.map +0 -1
  411. package/cjs/columns/NumberColumn.js.map +0 -1
  412. package/cjs/components/BodyCell.js.map +0 -1
  413. package/cjs/components/BodyList.js.map +0 -1
  414. package/cjs/components/ColumnVisibilityMenuOption.js.map +0 -1
  415. package/cjs/components/ColumnsOptionsMenuSection.js.map +0 -1
  416. package/cjs/components/EmptyState.js.map +0 -1
  417. package/cjs/components/HeaderCell.js.map +0 -1
  418. package/cjs/components/List.js.map +0 -1
  419. package/cjs/components/ListItem.js.map +0 -1
  420. package/cjs/components/NoResults.js.map +0 -1
  421. package/cjs/components/RowsLoader.js.map +0 -1
  422. package/cjs/components/Table.js.map +0 -1
  423. package/cjs/components/TableBody.js.map +0 -1
  424. package/cjs/components/TableHeader.js.map +0 -1
  425. package/cjs/components/footer/addOptionalFooterComponents.js.map +0 -1
  426. package/cjs/components/header/PrimaryControls.js.map +0 -1
  427. package/cjs/components/header/addOptionalHeaderComponents.js.map +0 -1
  428. package/cjs/components/index.js.map +0 -1
  429. package/cjs/components/renderers/defaultClassedRenderers.js.map +0 -1
  430. package/cjs/components/renderers/index.js.map +0 -1
  431. package/cjs/components/renderers/renderRowsLoader.js.map +0 -1
  432. package/cjs/components/tableContext.js.map +0 -1
  433. package/cjs/defaultPlugins.js.map +0 -1
  434. package/cjs/index-0be12eb8.js +0 -28
  435. package/cjs/index-0be12eb8.js.map +0 -1
  436. package/cjs/index.js.map +0 -1
  437. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -1
  438. package/cjs/plugins/body-header-scroll-sync/index.js.map +0 -1
  439. package/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +0 -1
  440. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -1
  441. package/cjs/plugins/column-dnd/index.js.map +0 -1
  442. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -1
  443. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -1
  444. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -1
  445. package/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +0 -1
  446. package/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -1
  447. package/cjs/plugins/column-sizing/index.js.map +0 -1
  448. package/cjs/plugins/column-sizing/useColumnSizeService.js.map +0 -1
  449. package/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +0 -1
  450. package/cjs/plugins/column-sizing/utils.js.map +0 -1
  451. package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -1
  452. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -1
  453. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -1
  454. package/cjs/plugins/custom-cell-renderer/index.js.map +0 -1
  455. package/cjs/plugins/editable/EditableComponents/ComboBox.js.map +0 -1
  456. package/cjs/plugins/editable/EditableComponents/TextBox.js.map +0 -1
  457. package/cjs/plugins/editable/EditableComponents/index.js.map +0 -1
  458. package/cjs/plugins/editable/EditablePlugin.js.map +0 -1
  459. package/cjs/plugins/editable/decorateEditable.js.map +0 -1
  460. package/cjs/plugins/editable/getEditorComponent.js.map +0 -1
  461. package/cjs/plugins/editable/index.js.map +0 -1
  462. package/cjs/plugins/expandable-grid/ExpandableColumn.js.map +0 -1
  463. package/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +0 -1
  464. package/cjs/plugins/expandable-grid/ExpandedRow.js.map +0 -1
  465. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -1
  466. package/cjs/plugins/expandable-grid/index.js.map +0 -1
  467. package/cjs/plugins/expandable-grid/useExpandGridState.js.map +0 -1
  468. package/cjs/plugins/export-data/ExportDataPlugin.js.map +0 -1
  469. package/cjs/plugins/export-data/index.js.map +0 -1
  470. package/cjs/plugins/filterable/FilterablePlugin.js.map +0 -1
  471. package/cjs/plugins/filterable/addFilterToColumn.js.map +0 -1
  472. package/cjs/plugins/filterable/components/FilterableHeader.js.map +0 -1
  473. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -1
  474. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -1
  475. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -1
  476. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -1
  477. package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -1
  478. package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -1
  479. package/cjs/plugins/filterable/filterableFormatter.js.map +0 -1
  480. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -1
  481. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -1
  482. package/cjs/plugins/filterable/helper.js.map +0 -1
  483. package/cjs/plugins/filterable/index.js.map +0 -1
  484. package/cjs/plugins/filterable/useFilterableState.js.map +0 -1
  485. package/cjs/plugins/grouping-by/GroupingByPlugin.js.map +0 -1
  486. package/cjs/plugins/grouping-grid/GroupingPlugin.js.map +0 -1
  487. package/cjs/plugins/grouping-grid/walkStrategy.js.map +0 -1
  488. package/cjs/plugins/index.js.map +0 -1
  489. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -1
  490. package/cjs/plugins/infinite-scrolling/index.js.map +0 -1
  491. package/cjs/plugins/pagination/PaginationPlugin.js.map +0 -1
  492. package/cjs/plugins/pagination/components/Pagination.js.map +0 -1
  493. package/cjs/plugins/pagination/components/Paginator.js.map +0 -1
  494. package/cjs/plugins/pagination/components/PerPageDropdown.js.map +0 -1
  495. package/cjs/plugins/pagination/helper.js.map +0 -1
  496. package/cjs/plugins/pagination/index.js.map +0 -1
  497. package/cjs/plugins/pagination/usePaginationState.js.map +0 -1
  498. package/cjs/plugins/resizable/ResizablePlugin.js.map +0 -1
  499. package/cjs/plugins/resizable/decorateResizable.js.map +0 -1
  500. package/cjs/plugins/resizable/index.js.map +0 -1
  501. package/cjs/plugins/resizable/useResizeHandle.js.map +0 -1
  502. package/cjs/plugins/resizable/utils.js.map +0 -1
  503. package/cjs/plugins/row-dnd/DndRowsPlugin.js.map +0 -1
  504. package/cjs/plugins/row-dnd/index.js.map +0 -1
  505. package/cjs/plugins/selectable/SelectablePlugin.js.map +0 -1
  506. package/cjs/plugins/selectable/addSelectableColumn.js.map +0 -1
  507. package/cjs/plugins/selectable/helper.js.map +0 -1
  508. package/cjs/plugins/selectable/index.js.map +0 -1
  509. package/cjs/plugins/selectable/selectableFormatter.js.map +0 -1
  510. package/cjs/plugins/selectable/useSelectableState.js.map +0 -1
  511. package/cjs/plugins/sortable/SortablePlugin.js.map +0 -1
  512. package/cjs/plugins/sortable/checkIfSortable.js.map +0 -1
  513. package/cjs/plugins/sortable/index.js.map +0 -1
  514. package/cjs/plugins/sortable/sortHeaderFormatter.js.map +0 -1
  515. package/cjs/plugins/sortable/sortTree.js.map +0 -1
  516. package/cjs/plugins/sortable/sorter.js.map +0 -1
  517. package/cjs/plugins/sortable/useSortableState.js.map +0 -1
  518. package/cjs/plugins/toolbar/RowRenderer.js.map +0 -1
  519. package/cjs/plugins/toolbar/ToolbarPlugin.js.map +0 -1
  520. package/cjs/plugins/toolbar/ToolbarTrigger.js.map +0 -1
  521. package/cjs/plugins/toolbar/index.js.map +0 -1
  522. package/cjs/plugins/virtualization/AutoHeightList.js.map +0 -1
  523. package/cjs/plugins/virtualization/VirtualizationPlugin.js.map +0 -1
  524. package/cjs/plugins/virtualization/VirtualizedBody.js.map +0 -1
  525. package/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +0 -1
  526. package/cjs/plugins/virtualization/helper.js.map +0 -1
  527. package/cjs/plugins/virtualization/index.js.map +0 -1
  528. package/cjs/renders/CellWithAddons.js.map +0 -1
  529. package/cjs/renders/index.js.map +0 -1
  530. package/cjs/renders/styled.js.map +0 -1
  531. package/cjs/rowSizes.js.map +0 -1
  532. package/cjs/utilities/getPluginsFromProps.js.map +0 -1
  533. package/cjs/utilities/getScrollbarSize.js.map +0 -1
  534. package/cjs/utilities/normalizeData.js.map +0 -1
  535. package/columns/IconColumn/package.json +0 -10
  536. package/columns/NumberColumn/package.json +0 -10
  537. package/components/BodyCell/package.json +0 -10
  538. package/components/BodyList/package.json +0 -10
  539. package/components/ColumnVisibilityMenuOption/package.json +0 -10
  540. package/components/ColumnsOptionsMenuSection/package.json +0 -10
  541. package/components/EmptyState/package.json +0 -10
  542. package/components/HeaderCell/package.json +0 -10
  543. package/components/List/package.json +0 -10
  544. package/components/ListItem/package.json +0 -10
  545. package/components/NoResults/package.json +0 -10
  546. package/components/RowsLoader/package.json +0 -10
  547. package/components/Table/package.json +0 -10
  548. package/components/TableBody/package.json +0 -10
  549. package/components/TableHeader/package.json +0 -10
  550. package/components/footer/addOptionalFooterComponents/package.json +0 -10
  551. package/components/header/PrimaryControls/package.json +0 -10
  552. package/components/header/addOptionalHeaderComponents/package.json +0 -10
  553. package/components/package.json +0 -10
  554. package/components/renderers/defaultClassedRenderers/package.json +0 -10
  555. package/components/renderers/package.json +0 -10
  556. package/components/renderers/renderRowsLoader/package.json +0 -10
  557. package/components/tableContext/package.json +0 -10
  558. package/defaultPlugins/package.json +0 -10
  559. package/esm/DSDataGrid.js.map +0 -1
  560. package/esm/DataGridImpl.js.map +0 -1
  561. package/esm/PaginatedDataGrid.js.map +0 -1
  562. package/esm/blockNames.js.map +0 -1
  563. package/esm/columns/IconColumn.js.map +0 -1
  564. package/esm/columns/NumberColumn.js.map +0 -1
  565. package/esm/components/BodyCell.js.map +0 -1
  566. package/esm/components/BodyList.js.map +0 -1
  567. package/esm/components/ColumnVisibilityMenuOption.js.map +0 -1
  568. package/esm/components/ColumnsOptionsMenuSection.js.map +0 -1
  569. package/esm/components/EmptyState.js.map +0 -1
  570. package/esm/components/HeaderCell.js.map +0 -1
  571. package/esm/components/List.js.map +0 -1
  572. package/esm/components/ListItem.js.map +0 -1
  573. package/esm/components/NoResults.js.map +0 -1
  574. package/esm/components/RowsLoader.js.map +0 -1
  575. package/esm/components/Table.js.map +0 -1
  576. package/esm/components/TableBody.js.map +0 -1
  577. package/esm/components/TableHeader.js.map +0 -1
  578. package/esm/components/footer/addOptionalFooterComponents.js.map +0 -1
  579. package/esm/components/header/PrimaryControls.js.map +0 -1
  580. package/esm/components/header/addOptionalHeaderComponents.js.map +0 -1
  581. package/esm/components/index.js.map +0 -1
  582. package/esm/components/renderers/defaultClassedRenderers.js.map +0 -1
  583. package/esm/components/renderers/index.js.map +0 -1
  584. package/esm/components/renderers/renderRowsLoader.js.map +0 -1
  585. package/esm/components/tableContext.js.map +0 -1
  586. package/esm/defaultPlugins.js.map +0 -1
  587. package/esm/index-afbbe9c8.js +0 -25
  588. package/esm/index-afbbe9c8.js.map +0 -1
  589. package/esm/index.js.map +0 -1
  590. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -1
  591. package/esm/plugins/body-header-scroll-sync/index.js.map +0 -1
  592. package/esm/plugins/column-dnd/DndColumnsPlugin.js.map +0 -1
  593. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -1
  594. package/esm/plugins/column-dnd/index.js.map +0 -1
  595. package/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -1
  596. package/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -1
  597. package/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -1
  598. package/esm/plugins/column-sizing/ext-points/getTableProps.js.map +0 -1
  599. package/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -1
  600. package/esm/plugins/column-sizing/index.js.map +0 -1
  601. package/esm/plugins/column-sizing/useColumnSizeService.js.map +0 -1
  602. package/esm/plugins/column-sizing/useStylesheetHelpers.js.map +0 -1
  603. package/esm/plugins/column-sizing/utils.js.map +0 -1
  604. package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -1
  605. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -1
  606. package/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -1
  607. package/esm/plugins/custom-cell-renderer/index.js.map +0 -1
  608. package/esm/plugins/editable/EditableComponents/ComboBox.js.map +0 -1
  609. package/esm/plugins/editable/EditableComponents/TextBox.js.map +0 -1
  610. package/esm/plugins/editable/EditableComponents/index.js.map +0 -1
  611. package/esm/plugins/editable/EditablePlugin.js.map +0 -1
  612. package/esm/plugins/editable/decorateEditable.js.map +0 -1
  613. package/esm/plugins/editable/getEditorComponent.js.map +0 -1
  614. package/esm/plugins/editable/index.js.map +0 -1
  615. package/esm/plugins/expandable-grid/ExpandableColumn.js.map +0 -1
  616. package/esm/plugins/expandable-grid/ExpandablePlugin.js.map +0 -1
  617. package/esm/plugins/expandable-grid/ExpandedRow.js.map +0 -1
  618. package/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -1
  619. package/esm/plugins/expandable-grid/index.js.map +0 -1
  620. package/esm/plugins/expandable-grid/useExpandGridState.js.map +0 -1
  621. package/esm/plugins/export-data/ExportDataPlugin.js.map +0 -1
  622. package/esm/plugins/export-data/index.js.map +0 -1
  623. package/esm/plugins/filterable/FilterablePlugin.js.map +0 -1
  624. package/esm/plugins/filterable/addFilterToColumn.js.map +0 -1
  625. package/esm/plugins/filterable/components/FilterableHeader.js.map +0 -1
  626. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -1
  627. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -1
  628. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -1
  629. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -1
  630. package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -1
  631. package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -1
  632. package/esm/plugins/filterable/filterableFormatter.js.map +0 -1
  633. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -1
  634. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -1
  635. package/esm/plugins/filterable/helper.js.map +0 -1
  636. package/esm/plugins/filterable/index.js.map +0 -1
  637. package/esm/plugins/filterable/useFilterableState.js.map +0 -1
  638. package/esm/plugins/grouping-by/GroupingByPlugin.js.map +0 -1
  639. package/esm/plugins/grouping-grid/GroupingPlugin.js.map +0 -1
  640. package/esm/plugins/grouping-grid/walkStrategy.js.map +0 -1
  641. package/esm/plugins/index.js.map +0 -1
  642. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -1
  643. package/esm/plugins/infinite-scrolling/index.js.map +0 -1
  644. package/esm/plugins/pagination/PaginationPlugin.js.map +0 -1
  645. package/esm/plugins/pagination/components/Pagination.js.map +0 -1
  646. package/esm/plugins/pagination/components/Paginator.js.map +0 -1
  647. package/esm/plugins/pagination/components/PerPageDropdown.js.map +0 -1
  648. package/esm/plugins/pagination/helper.js.map +0 -1
  649. package/esm/plugins/pagination/index.js.map +0 -1
  650. package/esm/plugins/pagination/usePaginationState.js.map +0 -1
  651. package/esm/plugins/resizable/ResizablePlugin.js.map +0 -1
  652. package/esm/plugins/resizable/decorateResizable.js.map +0 -1
  653. package/esm/plugins/resizable/index.js.map +0 -1
  654. package/esm/plugins/resizable/useResizeHandle.js.map +0 -1
  655. package/esm/plugins/resizable/utils.js.map +0 -1
  656. package/esm/plugins/row-dnd/DndRowsPlugin.js.map +0 -1
  657. package/esm/plugins/row-dnd/index.js.map +0 -1
  658. package/esm/plugins/selectable/SelectablePlugin.js.map +0 -1
  659. package/esm/plugins/selectable/addSelectableColumn.js.map +0 -1
  660. package/esm/plugins/selectable/helper.js.map +0 -1
  661. package/esm/plugins/selectable/index.js.map +0 -1
  662. package/esm/plugins/selectable/selectableFormatter.js.map +0 -1
  663. package/esm/plugins/selectable/useSelectableState.js.map +0 -1
  664. package/esm/plugins/sortable/SortablePlugin.js.map +0 -1
  665. package/esm/plugins/sortable/checkIfSortable.js.map +0 -1
  666. package/esm/plugins/sortable/index.js.map +0 -1
  667. package/esm/plugins/sortable/sortHeaderFormatter.js.map +0 -1
  668. package/esm/plugins/sortable/sortTree.js.map +0 -1
  669. package/esm/plugins/sortable/sorter.js.map +0 -1
  670. package/esm/plugins/sortable/useSortableState.js.map +0 -1
  671. package/esm/plugins/toolbar/RowRenderer.js.map +0 -1
  672. package/esm/plugins/toolbar/ToolbarPlugin.js.map +0 -1
  673. package/esm/plugins/toolbar/ToolbarTrigger.js.map +0 -1
  674. package/esm/plugins/toolbar/index.js.map +0 -1
  675. package/esm/plugins/virtualization/AutoHeightList.js.map +0 -1
  676. package/esm/plugins/virtualization/VirtualizationPlugin.js.map +0 -1
  677. package/esm/plugins/virtualization/VirtualizedBody.js.map +0 -1
  678. package/esm/plugins/virtualization/VirtualizedBodyRow.js.map +0 -1
  679. package/esm/plugins/virtualization/helper.js.map +0 -1
  680. package/esm/plugins/virtualization/index.js.map +0 -1
  681. package/esm/renders/CellWithAddons.js.map +0 -1
  682. package/esm/renders/index.js.map +0 -1
  683. package/esm/renders/styled.js.map +0 -1
  684. package/esm/rowSizes.js.map +0 -1
  685. package/esm/utilities/getPluginsFromProps.js.map +0 -1
  686. package/esm/utilities/getScrollbarSize.js.map +0 -1
  687. package/esm/utilities/normalizeData.js.map +0 -1
  688. package/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin/package.json +0 -10
  689. package/plugins/body-header-scroll-sync/package.json +0 -10
  690. package/plugins/column-dnd/DndColumnsPlugin/package.json +0 -10
  691. package/plugins/column-dnd/decorateGridWithDndColumns/package.json +0 -10
  692. package/plugins/column-dnd/package.json +0 -10
  693. package/plugins/column-sizing/ColumnSizingPlugin/package.json +0 -10
  694. package/plugins/column-sizing/columnMeasurerTransformer/package.json +0 -10
  695. package/plugins/column-sizing/ext-points/decorateColumn/package.json +0 -10
  696. package/plugins/column-sizing/ext-points/getTableProps/package.json +0 -10
  697. package/plugins/column-sizing/getColumnNameFromProperty/package.json +0 -10
  698. package/plugins/column-sizing/package.json +0 -10
  699. package/plugins/column-sizing/useColumnSizeService/package.json +0 -10
  700. package/plugins/column-sizing/useStylesheetHelpers/package.json +0 -10
  701. package/plugins/column-sizing/utils/package.json +0 -10
  702. package/plugins/custom-cell-renderer/CustomRendererPlugin/package.json +0 -10
  703. package/plugins/custom-cell-renderer/addCustomRendererToCell/package.json +0 -10
  704. package/plugins/custom-cell-renderer/getRendererComponent/package.json +0 -10
  705. package/plugins/custom-cell-renderer/package.json +0 -10
  706. package/plugins/editable/EditableComponents/ComboBox/package.json +0 -10
  707. package/plugins/editable/EditableComponents/TextBox/package.json +0 -10
  708. package/plugins/editable/EditableComponents/package.json +0 -10
  709. package/plugins/editable/EditablePlugin/package.json +0 -10
  710. package/plugins/editable/decorateEditable/package.json +0 -10
  711. package/plugins/editable/getEditorComponent/package.json +0 -10
  712. package/plugins/editable/package.json +0 -10
  713. package/plugins/expandable-grid/ExpandableColumn/package.json +0 -10
  714. package/plugins/expandable-grid/ExpandablePlugin/package.json +0 -10
  715. package/plugins/expandable-grid/ExpandedRow/package.json +0 -10
  716. package/plugins/expandable-grid/ExpandedRowExtra/package.json +0 -10
  717. package/plugins/expandable-grid/package.json +0 -10
  718. package/plugins/expandable-grid/useExpandGridState/package.json +0 -10
  719. package/plugins/export-data/ExportDataPlugin/package.json +0 -10
  720. package/plugins/export-data/package.json +0 -10
  721. package/plugins/filterable/FilterablePlugin/package.json +0 -10
  722. package/plugins/filterable/addFilterToColumn/package.json +0 -10
  723. package/plugins/filterable/components/FilterableHeader/package.json +0 -10
  724. package/plugins/filterable/components/filterable-menus/DateRangeFilterMenu/package.json +0 -10
  725. package/plugins/filterable/components/filterable-menus/SingleDateFilterMenu/package.json +0 -10
  726. package/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu/package.json +0 -10
  727. package/plugins/filterable/components/filterable-menus/TextFilterMenu/package.json +0 -10
  728. package/plugins/filterable/components/filterable-menus/defaultDateFormat/package.json +0 -10
  729. package/plugins/filterable/components/filterable-menus/getFilterMenuByType/package.json +0 -10
  730. package/plugins/filterable/filterableFormatter/package.json +0 -10
  731. package/plugins/filterable/filtering-helper/filterRowsByQuery/package.json +0 -10
  732. package/plugins/filterable/filtering-helper/strategiesOperators/package.json +0 -10
  733. package/plugins/filterable/helper/package.json +0 -10
  734. package/plugins/filterable/package.json +0 -10
  735. package/plugins/filterable/useFilterableState/package.json +0 -10
  736. package/plugins/grouping-by/GroupingByPlugin/package.json +0 -10
  737. package/plugins/grouping-grid/GroupingPlugin/package.json +0 -10
  738. package/plugins/grouping-grid/walkStrategy/package.json +0 -10
  739. package/plugins/infinite-scrolling/InfiniteScrollPlugin/package.json +0 -10
  740. package/plugins/infinite-scrolling/package.json +0 -10
  741. package/plugins/package.json +0 -10
  742. package/plugins/pagination/PaginationPlugin/package.json +0 -10
  743. package/plugins/pagination/components/Pagination/package.json +0 -10
  744. package/plugins/pagination/components/Paginator/package.json +0 -10
  745. package/plugins/pagination/components/PerPageDropdown/package.json +0 -10
  746. package/plugins/pagination/helper/package.json +0 -10
  747. package/plugins/pagination/package.json +0 -10
  748. package/plugins/pagination/usePaginationState/package.json +0 -10
  749. package/plugins/resizable/ResizablePlugin/package.json +0 -10
  750. package/plugins/resizable/decorateResizable/package.json +0 -10
  751. package/plugins/resizable/package.json +0 -10
  752. package/plugins/resizable/useResizeHandle/package.json +0 -10
  753. package/plugins/resizable/utils/package.json +0 -10
  754. package/plugins/row-dnd/DndRowsPlugin/package.json +0 -10
  755. package/plugins/row-dnd/package.json +0 -10
  756. package/plugins/selectable/SelectablePlugin/package.json +0 -10
  757. package/plugins/selectable/addSelectableColumn/package.json +0 -10
  758. package/plugins/selectable/helper/package.json +0 -10
  759. package/plugins/selectable/package.json +0 -10
  760. package/plugins/selectable/selectableFormatter/package.json +0 -10
  761. package/plugins/selectable/useSelectableState/package.json +0 -10
  762. package/plugins/sortable/SortablePlugin/package.json +0 -10
  763. package/plugins/sortable/checkIfSortable/package.json +0 -10
  764. package/plugins/sortable/package.json +0 -10
  765. package/plugins/sortable/sortHeaderFormatter/package.json +0 -10
  766. package/plugins/sortable/sortTree/package.json +0 -10
  767. package/plugins/sortable/sorter/package.json +0 -10
  768. package/plugins/sortable/useSortableState/package.json +0 -10
  769. package/plugins/toolbar/RowRenderer/package.json +0 -10
  770. package/plugins/toolbar/ToolbarPlugin/package.json +0 -10
  771. package/plugins/toolbar/ToolbarTrigger/package.json +0 -10
  772. package/plugins/toolbar/package.json +0 -10
  773. package/plugins/virtualization/AutoHeightList/package.json +0 -10
  774. package/plugins/virtualization/VirtualizationPlugin/package.json +0 -10
  775. package/plugins/virtualization/VirtualizedBody/package.json +0 -10
  776. package/plugins/virtualization/VirtualizedBodyRow/package.json +0 -10
  777. package/plugins/virtualization/helper/package.json +0 -10
  778. package/plugins/virtualization/package.json +0 -10
  779. package/renders/CellWithAddons/package.json +0 -10
  780. package/renders/package.json +0 -10
  781. package/renders/styled/package.json +0 -10
  782. package/rowSizes/package.json +0 -10
  783. package/utilities/getPluginsFromProps/package.json +0 -10
  784. package/utilities/getScrollbarSize/package.json +0 -10
  785. package/utilities/normalizeData/package.json +0 -10
@@ -1,48 +1,56 @@
1
- import _extends from '@babel/runtime/helpers/esm/extends';
1
+ import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
- import React from 'react';
3
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
4
+ import 'core-js/modules/esnext.iterator.constructor.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
6
+ import 'core-js/modules/esnext.async-iterator.filter.js';
7
+ import 'core-js/modules/esnext.iterator.filter.js';
8
+ import 'react';
4
9
  import DSButton from '@elliemae/ds-button';
5
10
  import { DSCheckbox, DSComboBox, DSRadio, DSTextBox, DSToggle } from '@elliemae/ds-form';
6
11
  import DSDropdownMenu from '@elliemae/ds-dropdownmenu';
7
- import { r as renderers } from '../../index-afbbe9c8.js';
8
- import '../../components/renderers/defaultClassedRenderers.js';
9
- import '@elliemae/ds-classnames';
10
- import '../../blockNames.js';
11
- import '../../components/renderers/renderRowsLoader.js';
12
- import '../../components/RowsLoader.js';
13
- import '@elliemae/ds-spinner';
12
+ import * as index from '../../components/renderers/index.js';
13
+ import { jsx } from 'react/jsx-runtime';
14
14
 
15
- var _excluded = ["type", "handlers"];
16
- var components = {
17
- DSButton: DSButton,
18
- DSCheckbox: DSCheckbox,
19
- DSComboBox: DSComboBox,
20
- DSRadio: DSRadio,
21
- DSTextBox: DSTextBox,
22
- DSToggle: DSToggle,
23
- DSDropdownMenu: DSDropdownMenu
15
+ const _excluded = ["type", "handlers"];
16
+
17
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
18
+
19
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
20
+ const components = {
21
+ DSButton,
22
+ DSCheckbox,
23
+ DSComboBox,
24
+ DSRadio,
25
+ DSTextBox,
26
+ DSToggle,
27
+ DSDropdownMenu
24
28
  };
25
29
 
26
- var getRendererComponent = function getRendererComponent(_ref2, _ref, _ref3) {
27
- var props = _ref2.props;
28
- var rowData = _ref3.rowData;
30
+ const getRendererComponent = (_ref2, _ref, _ref3) => {
31
+ let {
32
+ props
33
+ } = _ref2;
34
+ let {
35
+ rowData
36
+ } = _ref3;
29
37
 
30
- var _ref$type = _ref.type,
31
- type = _ref$type === void 0 ? 'DSTextBox' : _ref$type,
32
- handlers = _ref.handlers,
38
+ let {
39
+ type = 'DSTextBox',
40
+ handlers
41
+ } = _ref,
33
42
  rest = _objectWithoutProperties(_ref, _excluded);
34
43
 
35
- var Component = components[type] || renderers[type];
36
- var customHandlers = props.customHandlers,
37
- rowKey = props.rowKey;
38
- var mappedHandlers = {};
39
- Object.keys(handlers).forEach(function (key) {
40
- mappedHandlers[handlers[key]] = function () {
41
- return typeof customHandlers[key] === 'function' ? customHandlers[key](rowData, rowData[rowKey]) : null;
42
- };
44
+ const Component = components[type] || index[type];
45
+ const {
46
+ customHandlers,
47
+ rowKey
48
+ } = props;
49
+ const mappedHandlers = {};
50
+ Object.keys(handlers).forEach(key => {
51
+ mappedHandlers[handlers[key]] = () => typeof customHandlers[key] === 'function' ? customHandlers[key](rowData, rowData[rowKey]) : null;
43
52
  });
44
- return /*#__PURE__*/React.createElement(Component, _extends({}, rowData, mappedHandlers, rest));
53
+ return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread(_objectSpread({}, rowData), mappedHandlers), rest));
45
54
  };
46
55
 
47
56
  export { getRendererComponent as default };
48
- //# sourceMappingURL=getRendererComponent.js.map
@@ -1,21 +1 @@
1
1
  export { CustomRendererPlugin } from './CustomRendererPlugin.js';
2
- import '@elliemae/ds-shared/createDataInstance/createInstancePlugin';
3
- import './addCustomRendererToCell.js';
4
- import '@babel/runtime/helpers/esm/defineProperty';
5
- import '@elliemae/ds-utilities';
6
- import '@elliemae/ds-shared/useDataGrid/initColumnDefinition';
7
- import './getRendererComponent.js';
8
- import '@babel/runtime/helpers/esm/extends';
9
- import '@babel/runtime/helpers/esm/objectWithoutProperties';
10
- import 'react';
11
- import '@elliemae/ds-button';
12
- import '@elliemae/ds-form';
13
- import '@elliemae/ds-dropdownmenu';
14
- import '../../index-afbbe9c8.js';
15
- import '../../components/renderers/defaultClassedRenderers.js';
16
- import '@elliemae/ds-classnames';
17
- import '../../blockNames.js';
18
- import '../../components/renderers/renderRowsLoader.js';
19
- import '../../components/RowsLoader.js';
20
- import '@elliemae/ds-spinner';
21
- //# sourceMappingURL=index.js.map
@@ -1,81 +1,65 @@
1
- import _extends from '@babel/runtime/helpers/esm/extends';
2
- import _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';
3
- import _createClass from '@babel/runtime/helpers/esm/createClass';
4
- import _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';
5
- import _inherits from '@babel/runtime/helpers/esm/inherits';
6
- import _possibleConstructorReturn from '@babel/runtime/helpers/esm/possibleConstructorReturn';
7
- import _getPrototypeOf from '@babel/runtime/helpers/esm/getPrototypeOf';
8
- import React, { Component } from 'react';
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 _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
7
+ import { Component } from 'react';
9
8
  import { DSComboBox } from '@elliemae/ds-form';
9
+ import { jsx } from 'react/jsx-runtime';
10
10
 
11
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
12
12
 
13
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
14
-
15
- var ComboBox = /*#__PURE__*/function (_Component) {
16
- _inherits(ComboBox, _Component);
17
-
18
- var _super = _createSuper(ComboBox);
19
-
20
- function ComboBox(props) {
21
- var _this;
22
-
23
- _classCallCheck(this, ComboBox);
24
-
25
- _this = _super.call(this, props);
26
- _this.state = {
13
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
14
+ class ComboBox extends Component {
15
+ constructor(props) {
16
+ super(props);
17
+ this.state = {
27
18
  value: props.value
28
19
  };
29
- _this.handleBlur = _this.handleBlur.bind(_assertThisInitialized(_this));
30
- _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
31
- return _this;
20
+ this.handleBlur = this.handleBlur.bind(this);
21
+ this.handleChange = this.handleChange.bind(this);
32
22
  }
33
23
 
34
- _createClass(ComboBox, [{
35
- key: "handleChange",
36
- value: function handleChange(value) {
37
- var onValue = this.props.onValue; // some how this is executed before handleBlur, and handleBlur before the value is set
38
- // causing the value to be the same as the prevProp
39
- // todo: find a better solution to this
24
+ handleChange(value) {
25
+ const {
26
+ onValue
27
+ } = this.props; // some how this is executed before handleBlur, and handleBlur before the value is set
28
+ // causing the value to be the same as the prevProp
29
+ // todo: find a better solution to this
40
30
 
41
- setTimeout(function () {
42
- return onValue(value);
43
- }, 1);
44
- this.setState({
45
- value: value
46
- });
47
- }
48
- }, {
49
- key: "handleBlur",
50
- value: function handleBlur() {
51
- var onValue = this.props.onValue;
52
- var value = this.state.value;
53
- onValue(value);
54
- }
55
- }, {
56
- key: "render",
57
- value: function render() {
58
- var value = this.state.value;
59
- return /*#__PURE__*/React.createElement(DSComboBox, _extends({}, this.props, {
60
- menuIsOpen: true,
61
- onBlur: this.handleBlur,
62
- onChange: this.handleChange,
63
- onClick: function onClick(e) {
64
- return e.stopPropagation();
65
- },
66
- value: value
67
- }));
68
- }
69
- }]);
31
+ setTimeout(() => onValue(value), 1);
32
+ this.setState({
33
+ value
34
+ });
35
+ }
70
36
 
71
- return ComboBox;
72
- }(Component);
37
+ handleBlur() {
38
+ const {
39
+ onValue
40
+ } = this.props;
41
+ const {
42
+ value
43
+ } = this.state;
44
+ onValue(value);
45
+ }
73
46
 
74
- ComboBox.defaultProps = {
75
- onValue: function onValue() {
76
- return null;
47
+ render() {
48
+ const {
49
+ value
50
+ } = this.state;
51
+ return /*#__PURE__*/jsx(DSComboBox, _objectSpread(_objectSpread({}, this.props), {}, {
52
+ menuIsOpen: true,
53
+ onBlur: this.handleBlur,
54
+ onChange: this.handleChange,
55
+ onClick: e => e.stopPropagation(),
56
+ value: value
57
+ }));
77
58
  }
59
+
60
+ }
61
+ ComboBox.defaultProps = {
62
+ onValue: () => null
78
63
  };
79
64
 
80
65
  export { ComboBox as default };
81
- //# sourceMappingURL=ComboBox.js.map
@@ -1,112 +1,103 @@
1
- import _extends from '@babel/runtime/helpers/esm/extends';
2
- import _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';
3
- import _createClass from '@babel/runtime/helpers/esm/createClass';
4
- import _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';
5
- import _inherits from '@babel/runtime/helpers/esm/inherits';
6
- import _possibleConstructorReturn from '@babel/runtime/helpers/esm/possibleConstructorReturn';
7
- import _getPrototypeOf from '@babel/runtime/helpers/esm/getPrototypeOf';
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 _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
8
7
  import React, { Component } from 'react';
9
8
  import { DSTextBox } from '@elliemae/ds-form';
9
+ import { jsx } from 'react/jsx-runtime';
10
10
 
11
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
12
12
 
13
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
14
-
15
- var TextBox = /*#__PURE__*/function (_Component) {
16
- _inherits(TextBox, _Component);
17
-
18
- var _super = _createSuper(TextBox);
19
-
20
- function TextBox(props) {
21
- var _this;
22
-
23
- _classCallCheck(this, TextBox);
24
-
25
- _this = _super.call(this, props);
26
- _this.inputRef = /*#__PURE__*/React.createRef();
27
- _this.state = {
13
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
14
+ class TextBox extends Component {
15
+ constructor(props) {
16
+ super(props);
17
+ this.inputRef = /*#__PURE__*/React.createRef();
18
+ this.state = {
28
19
  value: props.value
29
20
  };
30
- _this.handleBlur = _this.handleBlur.bind(_assertThisInitialized(_this));
31
- _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
32
- _this.handleKeyUp = _this.handleKeyUp.bind(_assertThisInitialized(_this));
33
- _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_this));
34
- return _this;
21
+ this.handleBlur = this.handleBlur.bind(this);
22
+ this.handleChange = this.handleChange.bind(this);
23
+ this.handleKeyUp = this.handleKeyUp.bind(this);
24
+ this.handleKeyDown = this.handleKeyDown.bind(this);
35
25
  }
36
26
 
37
- _createClass(TextBox, [{
38
- key: "componentDidMount",
39
- value: function componentDidMount() {
40
- var _this2 = this;
41
-
42
- setTimeout(function () {
43
- if (_this2.inputRef && _this2.inputRef.current) {
44
- _this2.inputRef.current.focus();
45
- }
46
- }, 50);
47
- }
48
- }, {
49
- key: "handleKeyUp",
50
- value: function handleKeyUp(_ref) {
51
- var key = _ref.key,
52
- value = _ref.target.value;
53
- var onValue = this.props.onValue;
54
-
55
- if (key === 'Enter') {
56
- onValue(value);
27
+ componentDidMount() {
28
+ setTimeout(() => {
29
+ if (this.inputRef && this.inputRef.current) {
30
+ this.inputRef.current.focus();
57
31
  }
58
- }
59
- }, {
60
- key: "handleKeyDown",
61
- value: function handleKeyDown(e) {
62
- // PUI-2553 prevent form submit on `Enter` keypress
63
- if (e.key === 'Enter') {
64
- e.preventDefault();
32
+ }, 50);
33
+ }
34
+
35
+ handleKeyUp(_ref) {
36
+ let {
37
+ key,
38
+ target: {
39
+ value
65
40
  }
66
- }
67
- }, {
68
- key: "handleBlur",
69
- value: function handleBlur(e) {
70
- var onValue = this.props.onValue;
71
- var value = e.target.value;
41
+ } = _ref;
42
+ const {
43
+ onValue
44
+ } = this.props;
45
+
46
+ if (key === 'Enter') {
72
47
  onValue(value);
73
48
  }
74
- }, {
75
- key: "handleChange",
76
- value: function handleChange(_ref2) {
77
- var value = _ref2.target.value;
78
- this.setState({
79
- value: value
80
- });
81
- }
82
- }, {
83
- key: "render",
84
- value: function render() {
85
- var value = this.state.value;
86
- return /*#__PURE__*/React.createElement(DSTextBox, _extends({
87
- "data-testid": "ds-datagrids-editable-text-box"
88
- }, this.props, {
89
- innerRef: this.inputRef,
90
- onBlur: this.handleBlur,
91
- onChange: this.handleChange,
92
- onClick: function onClick(e) {
93
- return e.stopPropagation();
94
- },
95
- onKeyUp: this.handleKeyUp,
96
- onKeyDown: this.handleKeyDown,
97
- value: value
98
- }));
49
+ }
50
+
51
+ handleKeyDown(e) {
52
+ // PUI-2553 prevent form submit on `Enter` keypress
53
+ if (e.key === 'Enter') {
54
+ e.preventDefault();
99
55
  }
100
- }]);
56
+ }
57
+
58
+ handleBlur(e) {
59
+ const {
60
+ onValue
61
+ } = this.props;
62
+ const {
63
+ target: {
64
+ value
65
+ }
66
+ } = e;
67
+ onValue(value);
68
+ }
69
+
70
+ handleChange(_ref2) {
71
+ let {
72
+ target: {
73
+ value
74
+ }
75
+ } = _ref2;
76
+ this.setState({
77
+ value
78
+ });
79
+ }
101
80
 
102
- return TextBox;
103
- }(Component);
81
+ render() {
82
+ const {
83
+ value
84
+ } = this.state;
85
+ return /*#__PURE__*/jsx(DSTextBox, _objectSpread(_objectSpread({
86
+ "data-testid": "ds-datagrids-editable-text-box"
87
+ }, this.props), {}, {
88
+ innerRef: this.inputRef,
89
+ onBlur: this.handleBlur,
90
+ onChange: this.handleChange,
91
+ onClick: e => e.stopPropagation(),
92
+ onKeyUp: this.handleKeyUp,
93
+ onKeyDown: this.handleKeyDown,
94
+ value: value
95
+ }));
96
+ }
104
97
 
98
+ }
105
99
  TextBox.defaultProps = {
106
- onValue: function onValue() {
107
- return null;
108
- }
100
+ onValue: () => null
109
101
  };
110
102
 
111
103
  export { TextBox as default };
112
- //# sourceMappingURL=TextBox.js.map
@@ -1,12 +1,2 @@
1
1
  export { default as ComboBox } from './ComboBox.js';
2
2
  export { default as TextBox } from './TextBox.js';
3
- import '@babel/runtime/helpers/esm/extends';
4
- import '@babel/runtime/helpers/esm/classCallCheck';
5
- import '@babel/runtime/helpers/esm/createClass';
6
- import '@babel/runtime/helpers/esm/assertThisInitialized';
7
- import '@babel/runtime/helpers/esm/inherits';
8
- import '@babel/runtime/helpers/esm/possibleConstructorReturn';
9
- import '@babel/runtime/helpers/esm/getPrototypeOf';
10
- import 'react';
11
- import '@elliemae/ds-form';
12
- //# sourceMappingURL=index.js.map
@@ -1,113 +1,102 @@
1
- import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
2
  import { useDerivedStateFromProps, toggleInObject } from '@elliemae/ds-utilities';
3
3
  import createInstancePlugin from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';
4
4
  import { makeEditableConfig, addEditableToCell } from './decorateEditable.js';
5
- import '@babel/runtime/helpers/esm/defineProperty';
6
- import '@babel/runtime/helpers/esm/objectWithoutProperties';
7
- import 'react';
8
- import 'react-edit';
9
- import '@elliemae/ds-icons';
10
- import '@elliemae/ds-shared/useDataGrid/initColumnDefinition';
11
- import './getEditorComponent.js';
12
- import '@babel/runtime/helpers/esm/extends';
13
- import './EditableComponents/ComboBox.js';
14
- import '@babel/runtime/helpers/esm/classCallCheck';
15
- import '@babel/runtime/helpers/esm/createClass';
16
- import '@babel/runtime/helpers/esm/assertThisInitialized';
17
- import '@babel/runtime/helpers/esm/inherits';
18
- import '@babel/runtime/helpers/esm/possibleConstructorReturn';
19
- import '@babel/runtime/helpers/esm/getPrototypeOf';
20
- import '@elliemae/ds-form';
21
- import './EditableComponents/TextBox.js';
22
5
 
23
- var registerStateHook = function registerStateHook(grid) {
24
- var _grid$props = grid.props,
25
- _grid$props$rowKey = _grid$props.rowKey,
26
- rowKey = _grid$props$rowKey === void 0 ? 'id' : _grid$props$rowKey,
27
- editingRowsProp = _grid$props.editingRows,
28
- onColumnRowEdited = _grid$props.onColumnRowEdited,
29
- onColumnRowEdit = _grid$props.onColumnRowEdit;
6
+ const registerStateHook = grid => {
7
+ const {
8
+ rowKey = 'id',
9
+ editingRows: editingRowsProp,
10
+ onColumnRowEdited,
11
+ onColumnRowEdit
12
+ } = grid.props;
13
+ const [editingRows, setEditingRows] = useDerivedStateFromProps(editingRowsProp || {});
30
14
 
31
- var _useDerivedStateFromP = useDerivedStateFromProps(editingRowsProp || {}),
32
- _useDerivedStateFromP2 = _slicedToArray(_useDerivedStateFromP, 2),
33
- editingRows = _useDerivedStateFromP2[0],
34
- setEditingRows = _useDerivedStateFromP2[1];
35
-
36
- var activateEdit = function activateEdit(editParams) {
37
- var _grid$getInstance = grid.getInstance(),
38
- shouldRefocus = _grid$getInstance.shouldRefocus;
39
-
40
- var rowData = editParams.rowData,
41
- columnIndex = editParams.columnIndex;
15
+ const activateEdit = editParams => {
16
+ const {
17
+ shouldRefocus
18
+ } = grid.getInstance();
19
+ const {
20
+ rowData,
21
+ columnIndex
22
+ } = editParams;
42
23
  shouldRefocus.current = {
43
24
  forced: true,
44
25
  value: false
45
26
  };
46
- setEditingRows(function (prevEditingRows) {
27
+ setEditingRows(prevEditingRows => {
47
28
  onColumnRowEdit(editParams);
48
29
  return toggleInObject(prevEditingRows, rowData[rowKey], columnIndex);
49
30
  });
50
31
  };
51
32
 
52
- var editValue = function editValue(_ref) {
53
- var value = _ref.value,
54
- rowData = _ref.rowData,
55
- property = _ref.property,
56
- rowIndex = _ref.rowIndex;
33
+ const editValue = _ref => {
34
+ let {
35
+ value,
36
+ rowData,
37
+ property,
38
+ rowIndex
39
+ } = _ref;
57
40
  setEditingRows({});
58
41
  onColumnRowEdited({
59
- value: value,
60
- rowData: rowData,
61
- property: property,
62
- rowIndex: rowIndex
42
+ value,
43
+ rowData,
44
+ property,
45
+ rowIndex
63
46
  });
64
47
  };
65
48
 
66
49
  return {
67
50
  state: {
68
- editingRows: editingRows
51
+ editingRows
69
52
  },
70
53
  actions: {
71
- activateEdit: activateEdit,
72
- editValue: editValue
54
+ activateEdit,
55
+ editValue
73
56
  }
74
57
  };
75
58
  };
76
59
 
77
- var decorateColumn = function decorateColumn(column, grid) {
78
- var _grid$props2 = grid.props,
79
- _grid$props2$isColumn = _grid$props2.isColumnEditable,
80
- isColumnEditable = _grid$props2$isColumn === void 0 ? function (col) {
81
- return col.editable;
82
- } : _grid$props2$isColumn,
83
- customHandlers = _grid$props2.customHandlers;
84
- var editableConfig = makeEditableConfig(grid);
60
+ const decorateColumn = (column, grid) => {
61
+ const {
62
+ props: {
63
+ isColumnEditable = col => col.editable,
64
+ customHandlers
65
+ }
66
+ } = grid;
67
+ const editableConfig = makeEditableConfig(grid);
85
68
  return isColumnEditable(column) ? addEditableToCell({
86
- column: column,
69
+ column,
87
70
  config: editableConfig,
88
71
  handlers: customHandlers
89
72
  }, grid) : column;
90
73
  };
91
74
 
92
- var EditablePlugin = createInstancePlugin('editable', {
93
- registerStateHook: registerStateHook,
94
- decorateColumn: decorateColumn,
95
- registerHotKeys: function registerHotKeys(grid) {
75
+ const EditablePlugin = createInstancePlugin('editable', {
76
+ registerStateHook,
77
+ decorateColumn,
78
+
79
+ registerHotKeys(grid) {
96
80
  return {
97
81
  key: 'enter',
98
- handler: function handler(_ref2) {
99
- var rowIndex = _ref2.rowIndex,
100
- cellIndex = _ref2.cellIndex;
101
-
102
- var _grid$getInstance2 = grid.getInstance(),
103
- composedRows = _grid$getInstance2.composedRows,
104
- decoratedColumns = _grid$getInstance2.decoratedColumns,
105
- activateEdit = _grid$getInstance2.actions.activateEdit,
106
- isColumnEditable = _grid$getInstance2.props.isColumnEditable;
107
-
82
+ handler: _ref2 => {
83
+ let {
84
+ rowIndex,
85
+ cellIndex
86
+ } = _ref2;
87
+ const {
88
+ composedRows,
89
+ decoratedColumns,
90
+ actions: {
91
+ activateEdit
92
+ },
93
+ props: {
94
+ isColumnEditable
95
+ }
96
+ } = grid.getInstance();
108
97
  if (!isColumnEditable(decoratedColumns[cellIndex])) return;
109
- var rows = composedRows.rows || composedRows;
110
- var row = rows[rowIndex];
98
+ const rows = composedRows.rows || composedRows;
99
+ const row = rows[rowIndex];
111
100
  if (!row) return;
112
101
  activateEdit({
113
102
  rowData: row,
@@ -120,7 +109,7 @@ var EditablePlugin = createInstancePlugin('editable', {
120
109
  }
121
110
  };
122
111
  }
112
+
123
113
  });
124
114
 
125
115
  export { EditablePlugin };
126
- //# sourceMappingURL=EditablePlugin.js.map