@elliemae/ds-datagrids 3.27.0-next.1 → 3.27.0-next.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (655) hide show
  1. package/dist/cjs/index.js +4 -39
  2. package/dist/cjs/index.js.map +3 -3
  3. package/dist/esm/index.js +3 -59
  4. package/dist/esm/index.js.map +3 -3
  5. package/dist/types/index.d.ts +2 -9
  6. package/package.json +6 -540
  7. package/dist/cjs/DSDataGrid.js +0 -589
  8. package/dist/cjs/DSDataGrid.js.map +0 -7
  9. package/dist/cjs/DataGridImpl.js +0 -156
  10. package/dist/cjs/DataGridImpl.js.map +0 -7
  11. package/dist/cjs/PaginatedDataGrid.js +0 -84
  12. package/dist/cjs/PaginatedDataGrid.js.map +0 -7
  13. package/dist/cjs/blockNames.js +0 -40
  14. package/dist/cjs/blockNames.js.map +0 -7
  15. package/dist/cjs/columns/IconColumn.js +0 -109
  16. package/dist/cjs/columns/IconColumn.js.map +0 -7
  17. package/dist/cjs/columns/NumberColumn.js +0 -37
  18. package/dist/cjs/columns/NumberColumn.js.map +0 -7
  19. package/dist/cjs/components/BodyCell.js +0 -114
  20. package/dist/cjs/components/BodyCell.js.map +0 -7
  21. package/dist/cjs/components/BodyList.js +0 -48
  22. package/dist/cjs/components/BodyList.js.map +0 -7
  23. package/dist/cjs/components/ColumnVisibilityMenuOption.js +0 -65
  24. package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +0 -7
  25. package/dist/cjs/components/ColumnsOptionsMenuSection.js +0 -63
  26. package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +0 -7
  27. package/dist/cjs/components/EmptyState.js +0 -81
  28. package/dist/cjs/components/EmptyState.js.map +0 -7
  29. package/dist/cjs/components/HeaderCell.js +0 -79
  30. package/dist/cjs/components/HeaderCell.js.map +0 -7
  31. package/dist/cjs/components/List.js +0 -43
  32. package/dist/cjs/components/List.js.map +0 -7
  33. package/dist/cjs/components/ListItem.js +0 -49
  34. package/dist/cjs/components/ListItem.js.map +0 -7
  35. package/dist/cjs/components/NoResults.js +0 -53
  36. package/dist/cjs/components/NoResults.js.map +0 -7
  37. package/dist/cjs/components/RowsLoader.js +0 -41
  38. package/dist/cjs/components/RowsLoader.js.map +0 -7
  39. package/dist/cjs/components/Table.js +0 -125
  40. package/dist/cjs/components/Table.js.map +0 -7
  41. package/dist/cjs/components/TableBody.js +0 -71
  42. package/dist/cjs/components/TableBody.js.map +0 -7
  43. package/dist/cjs/components/TableHeader.js +0 -60
  44. package/dist/cjs/components/TableHeader.js.map +0 -7
  45. package/dist/cjs/components/footer/addOptionalFooterComponents.js +0 -60
  46. package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +0 -7
  47. package/dist/cjs/components/header/PrimaryControls.js +0 -54
  48. package/dist/cjs/components/header/PrimaryControls.js.map +0 -7
  49. package/dist/cjs/components/header/addOptionalHeaderComponents.js +0 -62
  50. package/dist/cjs/components/header/addOptionalHeaderComponents.js.map +0 -7
  51. package/dist/cjs/components/index.js +0 -44
  52. package/dist/cjs/components/index.js.map +0 -7
  53. package/dist/cjs/components/renderers/defaultClassedRenderers.js +0 -67
  54. package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +0 -7
  55. package/dist/cjs/components/renderers/index.js +0 -51
  56. package/dist/cjs/components/renderers/index.js.map +0 -7
  57. package/dist/cjs/components/renderers/renderRowsLoader.js +0 -38
  58. package/dist/cjs/components/renderers/renderRowsLoader.js.map +0 -7
  59. package/dist/cjs/components/tableContext.js +0 -37
  60. package/dist/cjs/components/tableContext.js.map +0 -7
  61. package/dist/cjs/defaultPlugins.js +0 -40
  62. package/dist/cjs/defaultPlugins.js.map +0 -7
  63. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -145
  64. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -7
  65. package/dist/cjs/plugins/body-header-scroll-sync/index.js +0 -36
  66. package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +0 -7
  67. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +0 -159
  68. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +0 -7
  69. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +0 -48
  70. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -7
  71. package/dist/cjs/plugins/column-dnd/index.js +0 -36
  72. package/dist/cjs/plugins/column-dnd/index.js.map +0 -7
  73. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +0 -93
  74. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -7
  75. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js +0 -70
  76. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -7
  77. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +0 -45
  78. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -7
  79. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +0 -65
  80. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +0 -7
  81. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js +0 -38
  82. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -7
  83. package/dist/cjs/plugins/column-sizing/index.js +0 -36
  84. package/dist/cjs/plugins/column-sizing/index.js.map +0 -7
  85. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +0 -148
  86. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +0 -7
  87. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +0 -181
  88. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +0 -7
  89. package/dist/cjs/plugins/column-sizing/utils.js +0 -69
  90. package/dist/cjs/plugins/column-sizing/utils.js.map +0 -7
  91. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -41
  92. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -7
  93. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -79
  94. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -7
  95. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +0 -60
  96. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -7
  97. package/dist/cjs/plugins/custom-cell-renderer/index.js +0 -36
  98. package/dist/cjs/plugins/custom-cell-renderer/index.js.map +0 -7
  99. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +0 -73
  100. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +0 -7
  101. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +0 -95
  102. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +0 -7
  103. package/dist/cjs/plugins/editable/EditableComponents/index.js +0 -38
  104. package/dist/cjs/plugins/editable/EditableComponents/index.js.map +0 -7
  105. package/dist/cjs/plugins/editable/EditablePlugin.js +0 -112
  106. package/dist/cjs/plugins/editable/EditablePlugin.js.map +0 -7
  107. package/dist/cjs/plugins/editable/decorateEditable.js +0 -96
  108. package/dist/cjs/plugins/editable/decorateEditable.js.map +0 -7
  109. package/dist/cjs/plugins/editable/getEditorComponent.js +0 -60
  110. package/dist/cjs/plugins/editable/getEditorComponent.js.map +0 -7
  111. package/dist/cjs/plugins/editable/index.js +0 -39
  112. package/dist/cjs/plugins/editable/index.js.map +0 -7
  113. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +0 -131
  114. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +0 -7
  115. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +0 -197
  116. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +0 -7
  117. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +0 -147
  118. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +0 -7
  119. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +0 -57
  120. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -7
  121. package/dist/cjs/plugins/expandable-grid/index.js +0 -38
  122. package/dist/cjs/plugins/expandable-grid/index.js.map +0 -7
  123. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +0 -94
  124. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +0 -7
  125. package/dist/cjs/plugins/export-data/ExportDataPlugin.js +0 -135
  126. package/dist/cjs/plugins/export-data/ExportDataPlugin.js.map +0 -7
  127. package/dist/cjs/plugins/export-data/index.js +0 -36
  128. package/dist/cjs/plugins/export-data/index.js.map +0 -7
  129. package/dist/cjs/plugins/filterable/FilterablePlugin.js +0 -84
  130. package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +0 -7
  131. package/dist/cjs/plugins/filterable/addFilterToColumn.js +0 -44
  132. package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +0 -7
  133. package/dist/cjs/plugins/filterable/components/FilterableHeader.js +0 -133
  134. package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +0 -7
  135. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -179
  136. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -7
  137. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -133
  138. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -7
  139. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -231
  140. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -7
  141. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -183
  142. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -7
  143. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -36
  144. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -7
  145. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -48
  146. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -7
  147. package/dist/cjs/plugins/filterable/filterableFormatter.js +0 -69
  148. package/dist/cjs/plugins/filterable/filterableFormatter.js.map +0 -7
  149. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -83
  150. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -7
  151. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +0 -45
  152. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -7
  153. package/dist/cjs/plugins/filterable/helper.js +0 -113
  154. package/dist/cjs/plugins/filterable/helper.js.map +0 -7
  155. package/dist/cjs/plugins/filterable/index.js +0 -36
  156. package/dist/cjs/plugins/filterable/index.js.map +0 -7
  157. package/dist/cjs/plugins/filterable/useFilterableState.js +0 -112
  158. package/dist/cjs/plugins/filterable/useFilterableState.js.map +0 -7
  159. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js +0 -58
  160. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js.map +0 -7
  161. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +0 -134
  162. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +0 -7
  163. package/dist/cjs/plugins/grouping-grid/walkStrategy.js +0 -77
  164. package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +0 -7
  165. package/dist/cjs/plugins/index.js +0 -69
  166. package/dist/cjs/plugins/index.js.map +0 -7
  167. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -101
  168. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -7
  169. package/dist/cjs/plugins/infinite-scrolling/index.js +0 -36
  170. package/dist/cjs/plugins/infinite-scrolling/index.js.map +0 -7
  171. package/dist/cjs/plugins/pagination/PaginationPlugin.js +0 -90
  172. package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +0 -7
  173. package/dist/cjs/plugins/pagination/components/Pagination.js +0 -57
  174. package/dist/cjs/plugins/pagination/components/Pagination.js.map +0 -7
  175. package/dist/cjs/plugins/pagination/components/Paginator.js +0 -73
  176. package/dist/cjs/plugins/pagination/components/Paginator.js.map +0 -7
  177. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +0 -74
  178. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +0 -7
  179. package/dist/cjs/plugins/pagination/helper.js +0 -63
  180. package/dist/cjs/plugins/pagination/helper.js.map +0 -7
  181. package/dist/cjs/plugins/pagination/index.js +0 -36
  182. package/dist/cjs/plugins/pagination/index.js.map +0 -7
  183. package/dist/cjs/plugins/pagination/usePaginationState.js +0 -83
  184. package/dist/cjs/plugins/pagination/usePaginationState.js.map +0 -7
  185. package/dist/cjs/plugins/resizable/ResizablePlugin.js +0 -116
  186. package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +0 -7
  187. package/dist/cjs/plugins/resizable/decorateResizable.js +0 -57
  188. package/dist/cjs/plugins/resizable/decorateResizable.js.map +0 -7
  189. package/dist/cjs/plugins/resizable/index.js +0 -36
  190. package/dist/cjs/plugins/resizable/index.js.map +0 -7
  191. package/dist/cjs/plugins/resizable/useResizeHandle.js +0 -75
  192. package/dist/cjs/plugins/resizable/useResizeHandle.js.map +0 -7
  193. package/dist/cjs/plugins/resizable/utils.js +0 -55
  194. package/dist/cjs/plugins/resizable/utils.js.map +0 -7
  195. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js +0 -140
  196. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js.map +0 -7
  197. package/dist/cjs/plugins/row-dnd/index.js +0 -36
  198. package/dist/cjs/plugins/row-dnd/index.js.map +0 -7
  199. package/dist/cjs/plugins/selectable/SelectablePlugin.js +0 -170
  200. package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +0 -7
  201. package/dist/cjs/plugins/selectable/addSelectableColumn.js +0 -105
  202. package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +0 -7
  203. package/dist/cjs/plugins/selectable/helper.js +0 -55
  204. package/dist/cjs/plugins/selectable/helper.js.map +0 -7
  205. package/dist/cjs/plugins/selectable/index.js +0 -36
  206. package/dist/cjs/plugins/selectable/index.js.map +0 -7
  207. package/dist/cjs/plugins/selectable/selectableFormatter.js +0 -99
  208. package/dist/cjs/plugins/selectable/selectableFormatter.js.map +0 -7
  209. package/dist/cjs/plugins/selectable/useSelectableState.js +0 -128
  210. package/dist/cjs/plugins/selectable/useSelectableState.js.map +0 -7
  211. package/dist/cjs/plugins/sortable/SortablePlugin.js +0 -98
  212. package/dist/cjs/plugins/sortable/SortablePlugin.js.map +0 -7
  213. package/dist/cjs/plugins/sortable/checkIfSortable.js +0 -46
  214. package/dist/cjs/plugins/sortable/checkIfSortable.js.map +0 -7
  215. package/dist/cjs/plugins/sortable/index.js +0 -36
  216. package/dist/cjs/plugins/sortable/index.js.map +0 -7
  217. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js +0 -66
  218. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js.map +0 -7
  219. package/dist/cjs/plugins/sortable/sortTree.js +0 -49
  220. package/dist/cjs/plugins/sortable/sortTree.js.map +0 -7
  221. package/dist/cjs/plugins/sortable/sorter.js +0 -154
  222. package/dist/cjs/plugins/sortable/sorter.js.map +0 -7
  223. package/dist/cjs/plugins/sortable/useSortableState.js +0 -74
  224. package/dist/cjs/plugins/sortable/useSortableState.js.map +0 -7
  225. package/dist/cjs/plugins/toolbar/RowRenderer.js +0 -109
  226. package/dist/cjs/plugins/toolbar/RowRenderer.js.map +0 -7
  227. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +0 -63
  228. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +0 -7
  229. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js +0 -115
  230. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js.map +0 -7
  231. package/dist/cjs/plugins/toolbar/index.js +0 -36
  232. package/dist/cjs/plugins/toolbar/index.js.map +0 -7
  233. package/dist/cjs/plugins/virtualization/AutoHeightList.js +0 -78
  234. package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +0 -7
  235. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +0 -109
  236. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +0 -7
  237. package/dist/cjs/plugins/virtualization/VirtualizedBody.js +0 -275
  238. package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +0 -7
  239. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js +0 -58
  240. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +0 -7
  241. package/dist/cjs/plugins/virtualization/helper.js +0 -36
  242. package/dist/cjs/plugins/virtualization/helper.js.map +0 -7
  243. package/dist/cjs/plugins/virtualization/index.js +0 -36
  244. package/dist/cjs/plugins/virtualization/index.js.map +0 -7
  245. package/dist/cjs/renders/CellWithAddons.js +0 -113
  246. package/dist/cjs/renders/CellWithAddons.js.map +0 -7
  247. package/dist/cjs/renders/index.js +0 -38
  248. package/dist/cjs/renders/index.js.map +0 -7
  249. package/dist/cjs/renders/styled.js +0 -79
  250. package/dist/cjs/renders/styled.js.map +0 -7
  251. package/dist/cjs/rowSizes.js +0 -48
  252. package/dist/cjs/rowSizes.js.map +0 -7
  253. package/dist/cjs/utilities/DataGridUtilities.json +0 -1315
  254. package/dist/cjs/utilities/getPluginsFromProps.js +0 -73
  255. package/dist/cjs/utilities/getPluginsFromProps.js.map +0 -7
  256. package/dist/cjs/utilities/getScrollbarSize.js +0 -47
  257. package/dist/cjs/utilities/getScrollbarSize.js.map +0 -7
  258. package/dist/cjs/utilities/normalizeData.js +0 -50
  259. package/dist/cjs/utilities/normalizeData.js.map +0 -7
  260. package/dist/esm/DSDataGrid.js +0 -559
  261. package/dist/esm/DSDataGrid.js.map +0 -7
  262. package/dist/esm/DataGridImpl.js +0 -126
  263. package/dist/esm/DataGridImpl.js.map +0 -7
  264. package/dist/esm/PaginatedDataGrid.js +0 -54
  265. package/dist/esm/PaginatedDataGrid.js.map +0 -7
  266. package/dist/esm/blockNames.js +0 -10
  267. package/dist/esm/blockNames.js.map +0 -7
  268. package/dist/esm/columns/IconColumn.js +0 -79
  269. package/dist/esm/columns/IconColumn.js.map +0 -7
  270. package/dist/esm/columns/NumberColumn.js +0 -7
  271. package/dist/esm/columns/NumberColumn.js.map +0 -7
  272. package/dist/esm/components/BodyCell.js +0 -84
  273. package/dist/esm/components/BodyCell.js.map +0 -7
  274. package/dist/esm/components/BodyList.js +0 -18
  275. package/dist/esm/components/BodyList.js.map +0 -7
  276. package/dist/esm/components/ColumnVisibilityMenuOption.js +0 -35
  277. package/dist/esm/components/ColumnVisibilityMenuOption.js.map +0 -7
  278. package/dist/esm/components/ColumnsOptionsMenuSection.js +0 -33
  279. package/dist/esm/components/ColumnsOptionsMenuSection.js.map +0 -7
  280. package/dist/esm/components/EmptyState.js +0 -51
  281. package/dist/esm/components/EmptyState.js.map +0 -7
  282. package/dist/esm/components/HeaderCell.js +0 -49
  283. package/dist/esm/components/HeaderCell.js.map +0 -7
  284. package/dist/esm/components/List.js +0 -13
  285. package/dist/esm/components/List.js.map +0 -7
  286. package/dist/esm/components/ListItem.js +0 -19
  287. package/dist/esm/components/ListItem.js.map +0 -7
  288. package/dist/esm/components/NoResults.js +0 -23
  289. package/dist/esm/components/NoResults.js.map +0 -7
  290. package/dist/esm/components/RowsLoader.js +0 -11
  291. package/dist/esm/components/RowsLoader.js.map +0 -7
  292. package/dist/esm/components/Table.js +0 -95
  293. package/dist/esm/components/Table.js.map +0 -7
  294. package/dist/esm/components/TableBody.js +0 -41
  295. package/dist/esm/components/TableBody.js.map +0 -7
  296. package/dist/esm/components/TableHeader.js +0 -30
  297. package/dist/esm/components/TableHeader.js.map +0 -7
  298. package/dist/esm/components/footer/addOptionalFooterComponents.js +0 -30
  299. package/dist/esm/components/footer/addOptionalFooterComponents.js.map +0 -7
  300. package/dist/esm/components/header/PrimaryControls.js +0 -24
  301. package/dist/esm/components/header/PrimaryControls.js.map +0 -7
  302. package/dist/esm/components/header/addOptionalHeaderComponents.js +0 -32
  303. package/dist/esm/components/header/addOptionalHeaderComponents.js.map +0 -7
  304. package/dist/esm/components/index.js +0 -14
  305. package/dist/esm/components/index.js.map +0 -7
  306. package/dist/esm/components/renderers/defaultClassedRenderers.js +0 -37
  307. package/dist/esm/components/renderers/defaultClassedRenderers.js.map +0 -7
  308. package/dist/esm/components/renderers/index.js +0 -29
  309. package/dist/esm/components/renderers/index.js.map +0 -7
  310. package/dist/esm/components/renderers/renderRowsLoader.js +0 -8
  311. package/dist/esm/components/renderers/renderRowsLoader.js.map +0 -7
  312. package/dist/esm/components/tableContext.js +0 -7
  313. package/dist/esm/components/tableContext.js.map +0 -7
  314. package/dist/esm/defaultPlugins.js +0 -10
  315. package/dist/esm/defaultPlugins.js.map +0 -7
  316. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -115
  317. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -7
  318. package/dist/esm/plugins/body-header-scroll-sync/index.js +0 -6
  319. package/dist/esm/plugins/body-header-scroll-sync/index.js.map +0 -7
  320. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +0 -129
  321. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +0 -7
  322. package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js +0 -18
  323. package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -7
  324. package/dist/esm/plugins/column-dnd/index.js +0 -6
  325. package/dist/esm/plugins/column-dnd/index.js.map +0 -7
  326. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +0 -63
  327. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -7
  328. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js +0 -40
  329. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -7
  330. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +0 -15
  331. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -7
  332. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +0 -35
  333. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +0 -7
  334. package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js +0 -8
  335. package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -7
  336. package/dist/esm/plugins/column-sizing/index.js +0 -6
  337. package/dist/esm/plugins/column-sizing/index.js.map +0 -7
  338. package/dist/esm/plugins/column-sizing/useColumnSizeService.js +0 -118
  339. package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +0 -7
  340. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +0 -151
  341. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +0 -7
  342. package/dist/esm/plugins/column-sizing/utils.js +0 -39
  343. package/dist/esm/plugins/column-sizing/utils.js.map +0 -7
  344. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -11
  345. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -7
  346. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -49
  347. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -7
  348. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +0 -30
  349. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -7
  350. package/dist/esm/plugins/custom-cell-renderer/index.js +0 -6
  351. package/dist/esm/plugins/custom-cell-renderer/index.js.map +0 -7
  352. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js +0 -43
  353. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +0 -7
  354. package/dist/esm/plugins/editable/EditableComponents/TextBox.js +0 -65
  355. package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +0 -7
  356. package/dist/esm/plugins/editable/EditableComponents/index.js +0 -8
  357. package/dist/esm/plugins/editable/EditableComponents/index.js.map +0 -7
  358. package/dist/esm/plugins/editable/EditablePlugin.js +0 -82
  359. package/dist/esm/plugins/editable/EditablePlugin.js.map +0 -7
  360. package/dist/esm/plugins/editable/decorateEditable.js +0 -66
  361. package/dist/esm/plugins/editable/decorateEditable.js.map +0 -7
  362. package/dist/esm/plugins/editable/getEditorComponent.js +0 -30
  363. package/dist/esm/plugins/editable/getEditorComponent.js.map +0 -7
  364. package/dist/esm/plugins/editable/index.js +0 -9
  365. package/dist/esm/plugins/editable/index.js.map +0 -7
  366. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +0 -101
  367. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +0 -7
  368. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +0 -167
  369. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +0 -7
  370. package/dist/esm/plugins/expandable-grid/ExpandedRow.js +0 -117
  371. package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +0 -7
  372. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +0 -27
  373. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -7
  374. package/dist/esm/plugins/expandable-grid/index.js +0 -8
  375. package/dist/esm/plugins/expandable-grid/index.js.map +0 -7
  376. package/dist/esm/plugins/expandable-grid/useExpandGridState.js +0 -64
  377. package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +0 -7
  378. package/dist/esm/plugins/export-data/ExportDataPlugin.js +0 -105
  379. package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +0 -7
  380. package/dist/esm/plugins/export-data/index.js +0 -6
  381. package/dist/esm/plugins/export-data/index.js.map +0 -7
  382. package/dist/esm/plugins/filterable/FilterablePlugin.js +0 -54
  383. package/dist/esm/plugins/filterable/FilterablePlugin.js.map +0 -7
  384. package/dist/esm/plugins/filterable/addFilterToColumn.js +0 -14
  385. package/dist/esm/plugins/filterable/addFilterToColumn.js.map +0 -7
  386. package/dist/esm/plugins/filterable/components/FilterableHeader.js +0 -103
  387. package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +0 -7
  388. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -149
  389. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -7
  390. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -103
  391. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -7
  392. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -205
  393. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -7
  394. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -153
  395. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -7
  396. package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -6
  397. package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -7
  398. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -18
  399. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -7
  400. package/dist/esm/plugins/filterable/filterableFormatter.js +0 -39
  401. package/dist/esm/plugins/filterable/filterableFormatter.js.map +0 -7
  402. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -53
  403. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -7
  404. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js +0 -15
  405. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -7
  406. package/dist/esm/plugins/filterable/helper.js +0 -83
  407. package/dist/esm/plugins/filterable/helper.js.map +0 -7
  408. package/dist/esm/plugins/filterable/index.js +0 -6
  409. package/dist/esm/plugins/filterable/index.js.map +0 -7
  410. package/dist/esm/plugins/filterable/useFilterableState.js +0 -82
  411. package/dist/esm/plugins/filterable/useFilterableState.js.map +0 -7
  412. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js +0 -28
  413. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +0 -7
  414. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +0 -104
  415. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +0 -7
  416. package/dist/esm/plugins/grouping-grid/walkStrategy.js +0 -47
  417. package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +0 -7
  418. package/dist/esm/plugins/index.js +0 -39
  419. package/dist/esm/plugins/index.js.map +0 -7
  420. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -71
  421. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -7
  422. package/dist/esm/plugins/infinite-scrolling/index.js +0 -6
  423. package/dist/esm/plugins/infinite-scrolling/index.js.map +0 -7
  424. package/dist/esm/plugins/pagination/PaginationPlugin.js +0 -60
  425. package/dist/esm/plugins/pagination/PaginationPlugin.js.map +0 -7
  426. package/dist/esm/plugins/pagination/components/Pagination.js +0 -27
  427. package/dist/esm/plugins/pagination/components/Pagination.js.map +0 -7
  428. package/dist/esm/plugins/pagination/components/Paginator.js +0 -43
  429. package/dist/esm/plugins/pagination/components/Paginator.js.map +0 -7
  430. package/dist/esm/plugins/pagination/components/PerPageDropdown.js +0 -44
  431. package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +0 -7
  432. package/dist/esm/plugins/pagination/helper.js +0 -33
  433. package/dist/esm/plugins/pagination/helper.js.map +0 -7
  434. package/dist/esm/plugins/pagination/index.js +0 -6
  435. package/dist/esm/plugins/pagination/index.js.map +0 -7
  436. package/dist/esm/plugins/pagination/usePaginationState.js +0 -53
  437. package/dist/esm/plugins/pagination/usePaginationState.js.map +0 -7
  438. package/dist/esm/plugins/resizable/ResizablePlugin.js +0 -86
  439. package/dist/esm/plugins/resizable/ResizablePlugin.js.map +0 -7
  440. package/dist/esm/plugins/resizable/decorateResizable.js +0 -27
  441. package/dist/esm/plugins/resizable/decorateResizable.js.map +0 -7
  442. package/dist/esm/plugins/resizable/index.js +0 -6
  443. package/dist/esm/plugins/resizable/index.js.map +0 -7
  444. package/dist/esm/plugins/resizable/useResizeHandle.js +0 -45
  445. package/dist/esm/plugins/resizable/useResizeHandle.js.map +0 -7
  446. package/dist/esm/plugins/resizable/utils.js +0 -25
  447. package/dist/esm/plugins/resizable/utils.js.map +0 -7
  448. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js +0 -110
  449. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js.map +0 -7
  450. package/dist/esm/plugins/row-dnd/index.js +0 -6
  451. package/dist/esm/plugins/row-dnd/index.js.map +0 -7
  452. package/dist/esm/plugins/selectable/SelectablePlugin.js +0 -140
  453. package/dist/esm/plugins/selectable/SelectablePlugin.js.map +0 -7
  454. package/dist/esm/plugins/selectable/addSelectableColumn.js +0 -75
  455. package/dist/esm/plugins/selectable/addSelectableColumn.js.map +0 -7
  456. package/dist/esm/plugins/selectable/helper.js +0 -25
  457. package/dist/esm/plugins/selectable/helper.js.map +0 -7
  458. package/dist/esm/plugins/selectable/index.js +0 -6
  459. package/dist/esm/plugins/selectable/index.js.map +0 -7
  460. package/dist/esm/plugins/selectable/selectableFormatter.js +0 -69
  461. package/dist/esm/plugins/selectable/selectableFormatter.js.map +0 -7
  462. package/dist/esm/plugins/selectable/useSelectableState.js +0 -98
  463. package/dist/esm/plugins/selectable/useSelectableState.js.map +0 -7
  464. package/dist/esm/plugins/sortable/SortablePlugin.js +0 -68
  465. package/dist/esm/plugins/sortable/SortablePlugin.js.map +0 -7
  466. package/dist/esm/plugins/sortable/checkIfSortable.js +0 -16
  467. package/dist/esm/plugins/sortable/checkIfSortable.js.map +0 -7
  468. package/dist/esm/plugins/sortable/index.js +0 -6
  469. package/dist/esm/plugins/sortable/index.js.map +0 -7
  470. package/dist/esm/plugins/sortable/sortHeaderFormatter.js +0 -36
  471. package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +0 -7
  472. package/dist/esm/plugins/sortable/sortTree.js +0 -19
  473. package/dist/esm/plugins/sortable/sortTree.js.map +0 -7
  474. package/dist/esm/plugins/sortable/sorter.js +0 -124
  475. package/dist/esm/plugins/sortable/sorter.js.map +0 -7
  476. package/dist/esm/plugins/sortable/useSortableState.js +0 -44
  477. package/dist/esm/plugins/sortable/useSortableState.js.map +0 -7
  478. package/dist/esm/plugins/toolbar/RowRenderer.js +0 -79
  479. package/dist/esm/plugins/toolbar/RowRenderer.js.map +0 -7
  480. package/dist/esm/plugins/toolbar/ToolbarPlugin.js +0 -33
  481. package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +0 -7
  482. package/dist/esm/plugins/toolbar/ToolbarTrigger.js +0 -85
  483. package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +0 -7
  484. package/dist/esm/plugins/toolbar/index.js +0 -6
  485. package/dist/esm/plugins/toolbar/index.js.map +0 -7
  486. package/dist/esm/plugins/virtualization/AutoHeightList.js +0 -48
  487. package/dist/esm/plugins/virtualization/AutoHeightList.js.map +0 -7
  488. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +0 -79
  489. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +0 -7
  490. package/dist/esm/plugins/virtualization/VirtualizedBody.js +0 -245
  491. package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +0 -7
  492. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +0 -28
  493. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +0 -7
  494. package/dist/esm/plugins/virtualization/helper.js +0 -6
  495. package/dist/esm/plugins/virtualization/helper.js.map +0 -7
  496. package/dist/esm/plugins/virtualization/index.js +0 -6
  497. package/dist/esm/plugins/virtualization/index.js.map +0 -7
  498. package/dist/esm/renders/CellWithAddons.js +0 -83
  499. package/dist/esm/renders/CellWithAddons.js.map +0 -7
  500. package/dist/esm/renders/index.js +0 -8
  501. package/dist/esm/renders/index.js.map +0 -7
  502. package/dist/esm/renders/styled.js +0 -49
  503. package/dist/esm/renders/styled.js.map +0 -7
  504. package/dist/esm/rowSizes.js +0 -18
  505. package/dist/esm/rowSizes.js.map +0 -7
  506. package/dist/esm/utilities/DataGridUtilities.json +0 -1315
  507. package/dist/esm/utilities/getPluginsFromProps.js +0 -43
  508. package/dist/esm/utilities/getPluginsFromProps.js.map +0 -7
  509. package/dist/esm/utilities/getScrollbarSize.js +0 -17
  510. package/dist/esm/utilities/getScrollbarSize.js.map +0 -7
  511. package/dist/esm/utilities/normalizeData.js +0 -20
  512. package/dist/esm/utilities/normalizeData.js.map +0 -7
  513. package/dist/types/DSDataGrid.d.ts +0 -452
  514. package/dist/types/DataGridImpl.d.ts +0 -12
  515. package/dist/types/PaginatedDataGrid.d.ts +0 -14
  516. package/dist/types/blockNames.d.ts +0 -4
  517. package/dist/types/columns/IconColumn.d.ts +0 -35
  518. package/dist/types/columns/NumberColumn.d.ts +0 -4
  519. package/dist/types/components/BodyCell.d.ts +0 -33
  520. package/dist/types/components/BodyList.d.ts +0 -11
  521. package/dist/types/components/ColumnVisibilityMenuOption.d.ts +0 -15
  522. package/dist/types/components/ColumnsOptionsMenuSection.d.ts +0 -8
  523. package/dist/types/components/EmptyState.d.ts +0 -6
  524. package/dist/types/components/HeaderCell.d.ts +0 -18
  525. package/dist/types/components/List.d.ts +0 -2
  526. package/dist/types/components/ListItem.d.ts +0 -2
  527. package/dist/types/components/NoResults.d.ts +0 -7
  528. package/dist/types/components/RowsLoader.d.ts +0 -4
  529. package/dist/types/components/Table.d.ts +0 -8
  530. package/dist/types/components/TableBody.d.ts +0 -4
  531. package/dist/types/components/TableHeader.d.ts +0 -3
  532. package/dist/types/components/footer/addOptionalFooterComponents.d.ts +0 -6
  533. package/dist/types/components/header/PrimaryControls.d.ts +0 -5
  534. package/dist/types/components/header/addOptionalHeaderComponents.d.ts +0 -10
  535. package/dist/types/components/index.d.ts +0 -5
  536. package/dist/types/components/renderers/defaultClassedRenderers.d.ts +0 -11
  537. package/dist/types/components/renderers/index.d.ts +0 -15
  538. package/dist/types/components/renderers/renderRowsLoader.d.ts +0 -1
  539. package/dist/types/components/tableContext.d.ts +0 -2
  540. package/dist/types/components/tests/ColumnVisibilityMenu.test.d.ts +0 -1
  541. package/dist/types/defaultPlugins.d.ts +0 -1
  542. package/dist/types/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +0 -1
  543. package/dist/types/plugins/body-header-scroll-sync/index.d.ts +0 -1
  544. package/dist/types/plugins/column-dnd/DndColumnsPlugin.d.ts +0 -1
  545. package/dist/types/plugins/column-dnd/decorateGridWithDndColumns.d.ts +0 -2
  546. package/dist/types/plugins/column-dnd/index.d.ts +0 -1
  547. package/dist/types/plugins/column-sizing/ColumnSizingPlugin.d.ts +0 -1
  548. package/dist/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +0 -6
  549. package/dist/types/plugins/column-sizing/ext-points/decorateColumn.d.ts +0 -1
  550. package/dist/types/plugins/column-sizing/ext-points/getTableProps.d.ts +0 -10
  551. package/dist/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +0 -2
  552. package/dist/types/plugins/column-sizing/index.d.ts +0 -1
  553. package/dist/types/plugins/column-sizing/useColumnSizeService.d.ts +0 -18
  554. package/dist/types/plugins/column-sizing/useStylesheetHelpers.d.ts +0 -22
  555. package/dist/types/plugins/column-sizing/utils.d.ts +0 -5
  556. package/dist/types/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +0 -1
  557. package/dist/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +0 -4
  558. package/dist/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +0 -11
  559. package/dist/types/plugins/custom-cell-renderer/index.d.ts +0 -1
  560. package/dist/types/plugins/editable/EditableComponents/ComboBox.d.ts +0 -12
  561. package/dist/types/plugins/editable/EditableComponents/TextBox.d.ts +0 -24
  562. package/dist/types/plugins/editable/EditableComponents/index.d.ts +0 -2
  563. package/dist/types/plugins/editable/EditablePlugin.d.ts +0 -1
  564. package/dist/types/plugins/editable/decorateEditable.d.ts +0 -7
  565. package/dist/types/plugins/editable/getEditorComponent.d.ts +0 -7
  566. package/dist/types/plugins/editable/index.d.ts +0 -2
  567. package/dist/types/plugins/expandable-grid/ExpandableColumn.d.ts +0 -28
  568. package/dist/types/plugins/expandable-grid/ExpandablePlugin.d.ts +0 -1
  569. package/dist/types/plugins/expandable-grid/ExpandedRow.d.ts +0 -11
  570. package/dist/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +0 -9
  571. package/dist/types/plugins/expandable-grid/index.d.ts +0 -2
  572. package/dist/types/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +0 -1
  573. package/dist/types/plugins/expandable-grid/useExpandGridState.d.ts +0 -16
  574. package/dist/types/plugins/export-data/ExportDataPlugin.d.ts +0 -4
  575. package/dist/types/plugins/export-data/index.d.ts +0 -1
  576. package/dist/types/plugins/filterable/FilterablePlugin.d.ts +0 -1
  577. package/dist/types/plugins/filterable/addFilterToColumn.d.ts +0 -1
  578. package/dist/types/plugins/filterable/components/FilterableHeader.d.ts +0 -28
  579. package/dist/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +0 -30
  580. package/dist/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +0 -27
  581. package/dist/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +0 -31
  582. package/dist/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +0 -35
  583. package/dist/types/plugins/filterable/components/filterable-menus/defaultDateFormat.d.ts +0 -1
  584. package/dist/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +0 -2
  585. package/dist/types/plugins/filterable/filterableFormatter.d.ts +0 -11
  586. package/dist/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +0 -3
  587. package/dist/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +0 -2
  588. package/dist/types/plugins/filterable/helper.d.ts +0 -22
  589. package/dist/types/plugins/filterable/index.d.ts +0 -1
  590. package/dist/types/plugins/filterable/useFilterableState.d.ts +0 -18
  591. package/dist/types/plugins/grouping-by/GroupingByPlugin.d.ts +0 -1
  592. package/dist/types/plugins/grouping-grid/GroupingPlugin.d.ts +0 -1
  593. package/dist/types/plugins/grouping-grid/walkStrategy.d.ts +0 -9
  594. package/dist/types/plugins/index.d.ts +0 -16
  595. package/dist/types/plugins/infinite-scrolling/InfiniteScrollPlugin.d.ts +0 -1
  596. package/dist/types/plugins/infinite-scrolling/index.d.ts +0 -1
  597. package/dist/types/plugins/pagination/PaginationPlugin.d.ts +0 -1
  598. package/dist/types/plugins/pagination/components/Pagination.d.ts +0 -10
  599. package/dist/types/plugins/pagination/components/Paginator.d.ts +0 -9
  600. package/dist/types/plugins/pagination/components/PerPageDropdown.d.ts +0 -9
  601. package/dist/types/plugins/pagination/helper.d.ts +0 -18
  602. package/dist/types/plugins/pagination/index.d.ts +0 -1
  603. package/dist/types/plugins/pagination/usePaginationState.d.ts +0 -9
  604. package/dist/types/plugins/resizable/ResizablePlugin.d.ts +0 -1
  605. package/dist/types/plugins/resizable/decorateResizable.d.ts +0 -3
  606. package/dist/types/plugins/resizable/index.d.ts +0 -1
  607. package/dist/types/plugins/resizable/useResizeHandle.d.ts +0 -13
  608. package/dist/types/plugins/resizable/utils.d.ts +0 -3
  609. package/dist/types/plugins/row-dnd/DndRowsPlugin.d.ts +0 -1
  610. package/dist/types/plugins/row-dnd/index.d.ts +0 -1
  611. package/dist/types/plugins/selectable/SelectablePlugin.d.ts +0 -1
  612. package/dist/types/plugins/selectable/addSelectableColumn.d.ts +0 -30
  613. package/dist/types/plugins/selectable/helper.d.ts +0 -6
  614. package/dist/types/plugins/selectable/index.d.ts +0 -1
  615. package/dist/types/plugins/selectable/selectableFormatter.d.ts +0 -9
  616. package/dist/types/plugins/selectable/useSelectableState.d.ts +0 -12
  617. package/dist/types/plugins/sortable/SortablePlugin.d.ts +0 -1
  618. package/dist/types/plugins/sortable/checkIfSortable.d.ts +0 -2
  619. package/dist/types/plugins/sortable/index.d.ts +0 -1
  620. package/dist/types/plugins/sortable/sortHeaderFormatter.d.ts +0 -6
  621. package/dist/types/plugins/sortable/sortTree.d.ts +0 -3
  622. package/dist/types/plugins/sortable/sorter.d.ts +0 -12
  623. package/dist/types/plugins/sortable/useSortableState.d.ts +0 -8
  624. package/dist/types/plugins/toolbar/RowRenderer.d.ts +0 -10
  625. package/dist/types/plugins/toolbar/ToolbarPlugin.d.ts +0 -1
  626. package/dist/types/plugins/toolbar/ToolbarTrigger.d.ts +0 -7
  627. package/dist/types/plugins/toolbar/index.d.ts +0 -1
  628. package/dist/types/plugins/virtualization/AutoHeightList.d.ts +0 -3
  629. package/dist/types/plugins/virtualization/VirtualizationPlugin.d.ts +0 -1
  630. package/dist/types/plugins/virtualization/VirtualizedBody.d.ts +0 -32
  631. package/dist/types/plugins/virtualization/VirtualizedBodyRow.d.ts +0 -8
  632. package/dist/types/plugins/virtualization/helper.d.ts +0 -1
  633. package/dist/types/plugins/virtualization/index.d.ts +0 -1
  634. package/dist/types/renders/CellWithAddons.d.ts +0 -51
  635. package/dist/types/renders/index.d.ts +0 -2
  636. package/dist/types/renders/styled.d.ts +0 -4
  637. package/dist/types/rowSizes.d.ts +0 -11
  638. package/dist/types/tests/DataGrid-Columns.test.d.ts +0 -1
  639. package/dist/types/tests/DataGrid-Editable.test.d.ts +0 -1
  640. package/dist/types/tests/DataGrid-Export.test.d.ts +0 -1
  641. package/dist/types/tests/DataGrid-Filter-helper.test.d.ts +0 -1
  642. package/dist/types/tests/DataGrid-Filterable-Dates.test.d.ts +0 -1
  643. package/dist/types/tests/DataGrid-Filterable-State.test.d.ts +0 -1
  644. package/dist/types/tests/DataGrid-RowDnd.test.d.ts +0 -1
  645. package/dist/types/tests/DataGrid-Selectable.test.d.ts +0 -1
  646. package/dist/types/tests/DataGrid-Sortable.test.d.ts +0 -1
  647. package/dist/types/tests/DataGrid-Toolbar.test.d.ts +0 -1
  648. package/dist/types/tests/DataGrid-Virtualization.test.d.ts +0 -1
  649. package/dist/types/tests/DataGrids-ColumnSizing.test.d.ts +0 -1
  650. package/dist/types/tests/DataGrids-ConditionalPagination.test.d.ts +0 -1
  651. package/dist/types/tests/DataGrids-Rows.test.d.ts +0 -1
  652. package/dist/types/tests/DataGrids.test.d.ts +0 -1
  653. package/dist/types/utilities/getPluginsFromProps.d.ts +0 -2
  654. package/dist/types/utilities/getScrollbarSize.d.ts +0 -1
  655. package/dist/types/utilities/normalizeData.d.ts +0 -3
@@ -1,124 +0,0 @@
1
- import * as React from "react";
2
- import { get } from "@elliemae/ds-utilities";
3
- import moment from "moment";
4
- const sorter = ({ columns, sortingColumns, sort, emptyLast } = {}) => (data) => {
5
- if (!columns) {
6
- throw new Error('sort.sorter - Missing "columns" argument!');
7
- }
8
- if (!sort) {
9
- throw new Error('sort.sorter - Missing "sort" argument!');
10
- }
11
- if (!sortingColumns) {
12
- return data;
13
- }
14
- const columnIndexList = new Array(sortingColumns.length);
15
- const orderList = new Array(sortingColumns.length);
16
- let actualSortFunction = sort;
17
- if (emptyLast) {
18
- actualSortFunction = (innerData, innerColumnIndexList, innerOrderList) => {
19
- const sortedData = sort(innerData, innerColumnIndexList, innerOrderList);
20
- const keys = Object.keys(sortingColumns);
21
- const withData = sortedData.filter((r) => keys.some((key) => !!r[key]));
22
- const withoutData = sortedData.filter((r) => keys.some((key) => !r[key]));
23
- return [...withData, ...withoutData];
24
- };
25
- }
26
- Object.keys(sortingColumns).forEach((sortingColumnKey) => {
27
- const realColumn = columns.find((column) => column.property === sortingColumnKey);
28
- if (!realColumn)
29
- return;
30
- const columnSorter = realColumn.sort || function resolveValue(row) {
31
- const { property, sortBy } = realColumn;
32
- const value = row[sortBy || property];
33
- const resolvedValue = get(row, `_${property}`, value);
34
- if (realColumn.type === "DateTime") {
35
- return moment(resolvedValue);
36
- }
37
- return typeof resolvedValue === "string" ? resolvedValue.toLowerCase() : resolvedValue;
38
- };
39
- const sortingColumn = sortingColumns[sortingColumnKey];
40
- columnIndexList[sortingColumn.position] = columnSorter;
41
- orderList[sortingColumn.position] = sortingColumn.direction;
42
- });
43
- return actualSortFunction(data, columnIndexList, orderList);
44
- };
45
- const sorterGroups = ({ columns, sortingColumns, sort, emptyLast } = {}) => (data, rowsData) => {
46
- if (!columns) {
47
- throw new Error('sort.sorter - Missing "columns" argument!');
48
- }
49
- if (!sort) {
50
- throw new Error('sort.sorter - Missing "sort" argument!');
51
- }
52
- if (!sortingColumns) {
53
- return data;
54
- }
55
- const columnIndexList = new Array(sortingColumns.length);
56
- const orderList = new Array(sortingColumns.length);
57
- let actualSortFunction = sort;
58
- if (emptyLast) {
59
- actualSortFunction = (innerData, innerColumnIndexList, innerOrderList) => {
60
- const sortedData = sort(innerData, innerColumnIndexList, innerOrderList);
61
- const keys = Object.keys(sortingColumns);
62
- const withData = sortedData.filter((r) => keys.some((key) => !!r[key]));
63
- const withoutData = sortedData.filter((r) => keys.some((key) => !r[key]));
64
- return [...withData, ...withoutData];
65
- };
66
- }
67
- Object.keys(sortingColumns).forEach((sortingColumnKey) => {
68
- const realColumn = columns.find((column) => column.property === sortingColumnKey);
69
- if (!realColumn)
70
- return;
71
- const columnSorter = realColumn.sort || function resolveValue(row) {
72
- const { property, sortBy } = realColumn;
73
- const value = row[sortBy || property];
74
- const resolvedValue = get(row, `_${property}`, value);
75
- if (realColumn.type === "DateTime") {
76
- return moment(resolvedValue);
77
- }
78
- return typeof resolvedValue === "string" ? resolvedValue.toLowerCase() : resolvedValue;
79
- };
80
- const sortingColumn = sortingColumns[sortingColumnKey];
81
- columnIndexList[sortingColumn.position] = columnSorter;
82
- orderList[sortingColumn.position] = sortingColumn.direction;
83
- });
84
- const groups = {};
85
- const preserveData = {};
86
- data.forEach((c) => {
87
- preserveData[c.id] = { ...c };
88
- });
89
- rowsData.forEach((group) => {
90
- groups[group.id] = {
91
- children: actualSortFunction(
92
- group.children.map((c) => ({
93
- parentNode: preserveData[c.id].parentNode,
94
- data: c,
95
- ...c
96
- })),
97
- columnIndexList,
98
- orderList
99
- )
100
- // sort internally
101
- };
102
- });
103
- const sorted = actualSortFunction(
104
- data.map((r) => ({
105
- ...r.data,
106
- ...r
107
- })),
108
- columnIndexList,
109
- orderList
110
- );
111
- let ssortGlobal = [];
112
- sorted.filter((s) => !s.isGroup).forEach((sr) => {
113
- if (groups[sr.parentNode.id]) {
114
- ssortGlobal = [...ssortGlobal, preserveData[sr.parentNode.id], ...groups[sr.parentNode.id].children];
115
- delete groups[sr.parentNode.id];
116
- }
117
- });
118
- return ssortGlobal;
119
- };
120
- export {
121
- sorter,
122
- sorterGroups
123
- };
124
- //# sourceMappingURL=sorter.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/sortable/sorter.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable max-statements */\nimport { get } from '@elliemae/ds-utilities';\nimport moment from 'moment';\n\nexport const sorter =\n ({ columns, sortingColumns, sort, emptyLast } = {}) =>\n (data) => {\n if (!columns) {\n throw new Error('sort.sorter - Missing \"columns\" argument!');\n }\n\n if (!sort) {\n throw new Error('sort.sorter - Missing \"sort\" argument!');\n }\n\n if (!sortingColumns) {\n return data;\n }\n const columnIndexList = new Array(sortingColumns.length);\n const orderList = new Array(sortingColumns.length);\n\n let actualSortFunction = sort;\n if (emptyLast) {\n actualSortFunction = (innerData, innerColumnIndexList, innerOrderList) => {\n const sortedData = sort(innerData, innerColumnIndexList, innerOrderList);\n\n const keys = Object.keys(sortingColumns);\n\n const withData = sortedData.filter((r) => keys.some((key) => !!r[key]));\n const withoutData = sortedData.filter((r) => keys.some((key) => !r[key]));\n\n return [...withData, ...withoutData];\n };\n }\n\n Object.keys(sortingColumns).forEach((sortingColumnKey) => {\n const realColumn = columns.find((column) => column.property === sortingColumnKey);\n if (!realColumn) return;\n const columnSorter =\n realColumn.sort ||\n function resolveValue(row) {\n const { property, sortBy } = realColumn;\n const value = row[sortBy || property];\n // Pick resolved value by convention\n const resolvedValue = get(row, `_${property}`, value);\n\n if (realColumn.type === 'DateTime') {\n return moment(resolvedValue);\n }\n\n return typeof resolvedValue === 'string' ? resolvedValue.toLowerCase() : resolvedValue;\n };\n\n const sortingColumn = sortingColumns[sortingColumnKey];\n\n columnIndexList[sortingColumn.position] = columnSorter;\n\n orderList[sortingColumn.position] = sortingColumn.direction;\n });\n return actualSortFunction(data, columnIndexList, orderList);\n };\n\nexport const sorterGroups =\n ({ columns, sortingColumns, sort, emptyLast } = {}) =>\n (data, rowsData) => {\n if (!columns) {\n throw new Error('sort.sorter - Missing \"columns\" argument!');\n }\n\n if (!sort) {\n throw new Error('sort.sorter - Missing \"sort\" argument!');\n }\n\n if (!sortingColumns) {\n return data;\n }\n\n const columnIndexList = new Array(sortingColumns.length);\n const orderList = new Array(sortingColumns.length);\n\n let actualSortFunction = sort;\n if (emptyLast) {\n actualSortFunction = (innerData, innerColumnIndexList, innerOrderList) => {\n const sortedData = sort(innerData, innerColumnIndexList, innerOrderList);\n\n const keys = Object.keys(sortingColumns);\n\n const withData = sortedData.filter((r) => keys.some((key) => !!r[key]));\n const withoutData = sortedData.filter((r) => keys.some((key) => !r[key]));\n\n return [...withData, ...withoutData];\n };\n }\n\n Object.keys(sortingColumns).forEach((sortingColumnKey) => {\n const realColumn = columns.find((column) => column.property === sortingColumnKey);\n if (!realColumn) return;\n const columnSorter =\n realColumn.sort ||\n function resolveValue(row) {\n const { property, sortBy } = realColumn;\n const value = row[sortBy || property];\n // Pick resolved value by convention\n const resolvedValue = get(row, `_${property}`, value);\n\n if (realColumn.type === 'DateTime') {\n return moment(resolvedValue);\n }\n\n return typeof resolvedValue === 'string' ? resolvedValue.toLowerCase() : resolvedValue;\n };\n\n const sortingColumn = sortingColumns[sortingColumnKey];\n\n columnIndexList[sortingColumn.position] = columnSorter;\n\n orderList[sortingColumn.position] = sortingColumn.direction;\n });\n\n const groups = {};\n const preserveData = {};\n data.forEach((c) => {\n preserveData[c.id] = { ...c };\n });\n\n rowsData.forEach((group) => {\n groups[group.id] = {\n children: actualSortFunction(\n group.children.map((c) => ({\n parentNode: preserveData[c.id].parentNode,\n data: c,\n ...c,\n })),\n columnIndexList,\n orderList,\n ), // sort internally\n };\n });\n\n const sorted = actualSortFunction(\n data.map((r) => ({\n ...r.data,\n ...r,\n })),\n columnIndexList,\n orderList,\n ); // sort global\n let ssortGlobal = [];\n sorted\n .filter((s) => !s.isGroup)\n .forEach((sr) => {\n if (groups[sr.parentNode.id]) {\n ssortGlobal = [...ssortGlobal, preserveData[sr.parentNode.id], ...groups[sr.parentNode.id].children];\n delete groups[sr.parentNode.id];\n }\n });\n return ssortGlobal;\n };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW;AACpB,OAAO,YAAY;AAEZ,MAAM,SACX,CAAC,EAAE,SAAS,gBAAgB,MAAM,UAAU,IAAI,CAAC,MACjD,CAAC,SAAS;AACR,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,2CAA2C;AAAA,EAC7D;AAEA,MAAI,CAAC,MAAM;AACT,UAAM,IAAI,MAAM,wCAAwC;AAAA,EAC1D;AAEA,MAAI,CAAC,gBAAgB;AACnB,WAAO;AAAA,EACT;AACA,QAAM,kBAAkB,IAAI,MAAM,eAAe,MAAM;AACvD,QAAM,YAAY,IAAI,MAAM,eAAe,MAAM;AAEjD,MAAI,qBAAqB;AACzB,MAAI,WAAW;AACb,yBAAqB,CAAC,WAAW,sBAAsB,mBAAmB;AACxE,YAAM,aAAa,KAAK,WAAW,sBAAsB,cAAc;AAEvE,YAAM,OAAO,OAAO,KAAK,cAAc;AAEvC,YAAM,WAAW,WAAW,OAAO,CAAC,MAAM,KAAK,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AACtE,YAAM,cAAc,WAAW,OAAO,CAAC,MAAM,KAAK,KAAK,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,CAAC;AAExE,aAAO,CAAC,GAAG,UAAU,GAAG,WAAW;AAAA,IACrC;AAAA,EACF;AAEA,SAAO,KAAK,cAAc,EAAE,QAAQ,CAAC,qBAAqB;AACxD,UAAM,aAAa,QAAQ,KAAK,CAAC,WAAW,OAAO,aAAa,gBAAgB;AAChF,QAAI,CAAC;AAAY;AACjB,UAAM,eACJ,WAAW,QACX,SAAS,aAAa,KAAK;AACzB,YAAM,EAAE,UAAU,OAAO,IAAI;AAC7B,YAAM,QAAQ,IAAI,UAAU,QAAQ;AAEpC,YAAM,gBAAgB,IAAI,KAAK,IAAI,YAAY,KAAK;AAEpD,UAAI,WAAW,SAAS,YAAY;AAClC,eAAO,OAAO,aAAa;AAAA,MAC7B;AAEA,aAAO,OAAO,kBAAkB,WAAW,cAAc,YAAY,IAAI;AAAA,IAC3E;AAEF,UAAM,gBAAgB,eAAe,gBAAgB;AAErD,oBAAgB,cAAc,QAAQ,IAAI;AAE1C,cAAU,cAAc,QAAQ,IAAI,cAAc;AAAA,EACpD,CAAC;AACD,SAAO,mBAAmB,MAAM,iBAAiB,SAAS;AAC5D;AAEK,MAAM,eACX,CAAC,EAAE,SAAS,gBAAgB,MAAM,UAAU,IAAI,CAAC,MACjD,CAAC,MAAM,aAAa;AAClB,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,2CAA2C;AAAA,EAC7D;AAEA,MAAI,CAAC,MAAM;AACT,UAAM,IAAI,MAAM,wCAAwC;AAAA,EAC1D;AAEA,MAAI,CAAC,gBAAgB;AACnB,WAAO;AAAA,EACT;AAEA,QAAM,kBAAkB,IAAI,MAAM,eAAe,MAAM;AACvD,QAAM,YAAY,IAAI,MAAM,eAAe,MAAM;AAEjD,MAAI,qBAAqB;AACzB,MAAI,WAAW;AACb,yBAAqB,CAAC,WAAW,sBAAsB,mBAAmB;AACxE,YAAM,aAAa,KAAK,WAAW,sBAAsB,cAAc;AAEvE,YAAM,OAAO,OAAO,KAAK,cAAc;AAEvC,YAAM,WAAW,WAAW,OAAO,CAAC,MAAM,KAAK,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AACtE,YAAM,cAAc,WAAW,OAAO,CAAC,MAAM,KAAK,KAAK,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,CAAC;AAExE,aAAO,CAAC,GAAG,UAAU,GAAG,WAAW;AAAA,IACrC;AAAA,EACF;AAEA,SAAO,KAAK,cAAc,EAAE,QAAQ,CAAC,qBAAqB;AACxD,UAAM,aAAa,QAAQ,KAAK,CAAC,WAAW,OAAO,aAAa,gBAAgB;AAChF,QAAI,CAAC;AAAY;AACjB,UAAM,eACJ,WAAW,QACX,SAAS,aAAa,KAAK;AACzB,YAAM,EAAE,UAAU,OAAO,IAAI;AAC7B,YAAM,QAAQ,IAAI,UAAU,QAAQ;AAEpC,YAAM,gBAAgB,IAAI,KAAK,IAAI,YAAY,KAAK;AAEpD,UAAI,WAAW,SAAS,YAAY;AAClC,eAAO,OAAO,aAAa;AAAA,MAC7B;AAEA,aAAO,OAAO,kBAAkB,WAAW,cAAc,YAAY,IAAI;AAAA,IAC3E;AAEF,UAAM,gBAAgB,eAAe,gBAAgB;AAErD,oBAAgB,cAAc,QAAQ,IAAI;AAE1C,cAAU,cAAc,QAAQ,IAAI,cAAc;AAAA,EACpD,CAAC;AAED,QAAM,SAAS,CAAC;AAChB,QAAM,eAAe,CAAC;AACtB,OAAK,QAAQ,CAAC,MAAM;AAClB,iBAAa,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;AAAA,EAC9B,CAAC;AAED,WAAS,QAAQ,CAAC,UAAU;AAC1B,WAAO,MAAM,EAAE,IAAI;AAAA,MACjB,UAAU;AAAA,QACR,MAAM,SAAS,IAAI,CAAC,OAAO;AAAA,UACzB,YAAY,aAAa,EAAE,EAAE,EAAE;AAAA,UAC/B,MAAM;AAAA,UACN,GAAG;AAAA,QACL,EAAE;AAAA,QACF;AAAA,QACA;AAAA,MACF;AAAA;AAAA,IACF;AAAA,EACF,CAAC;AAED,QAAM,SAAS;AAAA,IACb,KAAK,IAAI,CAAC,OAAO;AAAA,MACf,GAAG,EAAE;AAAA,MACL,GAAG;AAAA,IACL,EAAE;AAAA,IACF;AAAA,IACA;AAAA,EACF;AACA,MAAI,cAAc,CAAC;AACnB,SACG,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,EACxB,QAAQ,CAAC,OAAO;AACf,QAAI,OAAO,GAAG,WAAW,EAAE,GAAG;AAC5B,oBAAc,CAAC,GAAG,aAAa,aAAa,GAAG,WAAW,EAAE,GAAG,GAAG,OAAO,GAAG,WAAW,EAAE,EAAE,QAAQ;AACnG,aAAO,OAAO,GAAG,WAAW,EAAE;AAAA,IAChC;AAAA,EACF,CAAC;AACH,SAAO;AACT;",
6
- "names": []
7
- }
@@ -1,44 +0,0 @@
1
- import * as React from "react";
2
- import * as sortabular from "sortabular/dist/index.js";
3
- import { useDerivedStateFromProps } from "@elliemae/ds-utilities";
4
- import { checkIfSortable } from "./checkIfSortable.js";
5
- function useSortableState(grid) {
6
- const { onSort, sortingColumns: sortingColumnsProp, pagination } = grid.props;
7
- const [sortingColumns, setSortingColumns] = useDerivedStateFromProps(sortingColumnsProp);
8
- const handleSort = (selectedColumn) => {
9
- const { composedRows = {}, props } = grid.getInstance();
10
- const { allRows, rows } = composedRows;
11
- const serverSidePagination = pagination && composedRows.amount !== (composedRows.rows && composedRows.rows.length);
12
- if (props.serverSideData || serverSidePagination || checkIfSortable(selectedColumn, allRows || rows || composedRows)) {
13
- setSortingColumns((prevSortingColumns) => {
14
- const nextSortingColumns = sortabular.byColumn({
15
- sortingColumns: prevSortingColumns,
16
- sortingOrder: {
17
- FIRST: "asc",
18
- asc: "desc",
19
- desc: "asc"
20
- },
21
- selectedColumn
22
- });
23
- const { columns } = grid.getInstance();
24
- let columnSorted = columns.find((col) => col.property === selectedColumn);
25
- columnSorted = {
26
- ...columnSorted,
27
- originalProperty: columnSorted.property
28
- };
29
- onSort(nextSortingColumns, selectedColumn, columnSorted);
30
- return nextSortingColumns;
31
- });
32
- }
33
- };
34
- return {
35
- state: { sortingColumns },
36
- actions: {
37
- sort: handleSort
38
- }
39
- };
40
- }
41
- export {
42
- useSortableState
43
- };
44
- //# sourceMappingURL=useSortableState.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/sortable/useSortableState.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import * as sortabular from 'sortabular/dist/index.js';\nimport { useDerivedStateFromProps } from '@elliemae/ds-utilities';\nimport { checkIfSortable } from './checkIfSortable.js';\n\nexport function useSortableState(grid) {\n const { onSort, sortingColumns: sortingColumnsProp, pagination } = grid.props;\n\n const [sortingColumns, setSortingColumns] = useDerivedStateFromProps(sortingColumnsProp);\n\n const handleSort = (selectedColumn) => {\n // support for pagination\n const { composedRows = {}, props } = grid.getInstance();\n const { allRows, rows } = composedRows;\n const serverSidePagination = pagination && composedRows.amount !== (composedRows.rows && composedRows.rows.length);\n if (\n props.serverSideData ||\n serverSidePagination ||\n checkIfSortable(selectedColumn, allRows || rows || composedRows)\n ) {\n setSortingColumns((prevSortingColumns) => {\n const nextSortingColumns = sortabular.byColumn({\n sortingColumns: prevSortingColumns,\n sortingOrder: {\n FIRST: 'asc',\n asc: 'desc',\n desc: 'asc',\n },\n selectedColumn,\n });\n const { columns } = grid.getInstance();\n let columnSorted = columns.find((col) => col.property === selectedColumn);\n columnSorted = {\n ...columnSorted,\n originalProperty: columnSorted.property,\n };\n onSort(nextSortingColumns, selectedColumn, columnSorted);\n return nextSortingColumns;\n });\n }\n };\n\n return {\n state: { sortingColumns },\n actions: {\n sort: handleSort,\n },\n };\n}\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,YAAY,gBAAgB;AAC5B,SAAS,gCAAgC;AACzC,SAAS,uBAAuB;AAEzB,SAAS,iBAAiB,MAAM;AACrC,QAAM,EAAE,QAAQ,gBAAgB,oBAAoB,WAAW,IAAI,KAAK;AAExE,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,yBAAyB,kBAAkB;AAEvF,QAAM,aAAa,CAAC,mBAAmB;AAErC,UAAM,EAAE,eAAe,CAAC,GAAG,MAAM,IAAI,KAAK,YAAY;AACtD,UAAM,EAAE,SAAS,KAAK,IAAI;AAC1B,UAAM,uBAAuB,cAAc,aAAa,YAAY,aAAa,QAAQ,aAAa,KAAK;AAC3G,QACE,MAAM,kBACN,wBACA,gBAAgB,gBAAgB,WAAW,QAAQ,YAAY,GAC/D;AACA,wBAAkB,CAAC,uBAAuB;AACxC,cAAM,qBAAqB,WAAW,SAAS;AAAA,UAC7C,gBAAgB;AAAA,UAChB,cAAc;AAAA,YACZ,OAAO;AAAA,YACP,KAAK;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA;AAAA,QACF,CAAC;AACD,cAAM,EAAE,QAAQ,IAAI,KAAK,YAAY;AACrC,YAAI,eAAe,QAAQ,KAAK,CAAC,QAAQ,IAAI,aAAa,cAAc;AACxE,uBAAe;AAAA,UACb,GAAG;AAAA,UACH,kBAAkB,aAAa;AAAA,QACjC;AACA,eAAO,oBAAoB,gBAAgB,YAAY;AACvD,eAAO;AAAA,MACT,CAAC;AAAA,IACH;AAAA,EACF;AAEA,SAAO;AAAA,IACL,OAAO,EAAE,eAAe;AAAA,IACxB,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,EACF;AACF;",
6
- "names": []
7
- }
@@ -1,79 +0,0 @@
1
- import * as React from "react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { useEffect, useRef, useState } from "react";
4
- import PropTypes from "prop-types";
5
- import { isEmpty } from "lodash";
6
- import { omit } from "@elliemae/ds-utilities";
7
- import { ToolbarTrigger } from "./ToolbarTrigger.js";
8
- import { RowSizes } from "../../rowSizes.js";
9
- const RowRenderer = (Row, grid) => {
10
- const Wrapped = (props) => {
11
- const ref = useRef();
12
- const { rowData = {}, index, rowIndex, style } = props;
13
- const {
14
- props: { wrapText }
15
- } = grid.getInstance();
16
- const [popStyle, setPopStyle] = useState({});
17
- const [rowStyle, setRowStyle] = useState(style);
18
- const gridInstance = grid.getInstance();
19
- const { refs, isRowDragging } = gridInstance;
20
- const [hasVerticalScrollBar, setHasVerticalScrollBar] = useState(
21
- refs.body.current && refs.body.current.offsetWidth > refs.body.current.clientWidth
22
- );
23
- useEffect(() => {
24
- const shouldOmit = isRowDragging ? ["top"] : [];
25
- setPopStyle({
26
- ...popStyle,
27
- ...{ top: style && !isRowDragging ? style.top : "0" }
28
- });
29
- if (style) {
30
- setHasVerticalScrollBar(true);
31
- } else {
32
- setHasVerticalScrollBar(false);
33
- }
34
- setRowStyle(
35
- omit(
36
- style || {
37
- height: !wrapText ? RowSizes[gridInstance.props.rowSize] : "auto",
38
- position: "relative"
39
- },
40
- [shouldOmit]
41
- )
42
- );
43
- }, [style, isRowDragging]);
44
- return /* @__PURE__ */ jsxs(
45
- "div",
46
- {
47
- className: "row-renderer-fixed-height",
48
- style: {
49
- height: !wrapText ? RowSizes[gridInstance.props.rowSize] : "auto",
50
- position: style ? "auto" : "relative"
51
- // top: isDragging ? rowStyle.top - RowSizes[gridInstance.props.rowSize] : 'auto',
52
- },
53
- children: [
54
- /* @__PURE__ */ jsx(Row, { ref, ...props, style: rowStyle }),
55
- isEmpty(rowData) && !rowData.index && !rowData.rowIndex ? null : /* @__PURE__ */ jsx("div", { className: `toolbar-trigger-container ${style ? "move" : "stay"}`, style: { ...popStyle }, children: /* @__PURE__ */ jsx(
56
- ToolbarTrigger,
57
- {
58
- grid,
59
- rowData: { rowData, index, rowIndex },
60
- hasScrollBar: hasVerticalScrollBar,
61
- rowRef: ref
62
- }
63
- ) })
64
- ]
65
- }
66
- );
67
- };
68
- Wrapped.propTypes = {
69
- rowData: PropTypes.any,
70
- index: PropTypes.number,
71
- rowIndex: PropTypes.number,
72
- style: PropTypes.any
73
- };
74
- return Wrapped;
75
- };
76
- export {
77
- RowRenderer
78
- };
79
- //# sourceMappingURL=RowRenderer.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/toolbar/RowRenderer.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react-hooks/rules-of-hooks */\n/* eslint-disable max-statements */\n/* eslint-disable react/prop-types */\nimport React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { isEmpty } from 'lodash';\nimport { omit } from '@elliemae/ds-utilities';\nimport { ToolbarTrigger } from './ToolbarTrigger.js';\nimport { RowSizes } from '../../rowSizes.js';\n\nexport const RowRenderer = (Row, grid) => {\n const Wrapped = (props) => {\n const ref = useRef();\n const { rowData = {}, index, rowIndex, style } = props;\n const {\n props: { wrapText },\n } = grid.getInstance();\n const [popStyle, setPopStyle] = useState({});\n const [rowStyle, setRowStyle] = useState(style);\n const gridInstance = grid.getInstance();\n const { refs, isRowDragging } = gridInstance;\n const [hasVerticalScrollBar, setHasVerticalScrollBar] = useState(\n refs.body.current && refs.body.current.offsetWidth > refs.body.current.clientWidth,\n );\n\n useEffect(() => {\n const shouldOmit = isRowDragging ? ['top'] : [];\n setPopStyle({\n ...popStyle,\n ...{ top: style && !isRowDragging ? style.top : '0' },\n });\n if (style) {\n // style defined means it has virtualization\n setHasVerticalScrollBar(true);\n } else {\n setHasVerticalScrollBar(false);\n }\n setRowStyle(\n omit(\n style || {\n height: !wrapText ? RowSizes[gridInstance.props.rowSize] : 'auto',\n position: 'relative',\n },\n [shouldOmit],\n ),\n );\n }, [style, isRowDragging]);\n return (\n <div\n className=\"row-renderer-fixed-height\"\n style={{\n height: !wrapText ? RowSizes[gridInstance.props.rowSize] : 'auto',\n position: style ? 'auto' : 'relative',\n // top: isDragging ? rowStyle.top - RowSizes[gridInstance.props.rowSize] : 'auto',\n }}\n >\n <Row ref={ref} {...props} style={rowStyle} />\n {isEmpty(rowData) && !rowData.index && !rowData.rowIndex ? null : (\n <div className={`toolbar-trigger-container ${style ? 'move' : 'stay'}`} style={{ ...popStyle }}>\n <ToolbarTrigger\n grid={grid}\n rowData={{ rowData, index, rowIndex }}\n hasScrollBar={hasVerticalScrollBar}\n rowRef={ref}\n />\n </div>\n )}\n </div>\n );\n };\n\n Wrapped.propTypes = {\n rowData: PropTypes.any,\n index: PropTypes.number,\n rowIndex: PropTypes.number,\n style: PropTypes.any,\n };\n\n return Wrapped;\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACgDjB,SAQE,KARF;AA7CN,SAAgB,WAAW,QAAQ,gBAAgB;AACnD,OAAO,eAAe;AACtB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,sBAAsB;AAC/B,SAAS,gBAAgB;AAElB,MAAM,cAAc,CAAC,KAAK,SAAS;AACxC,QAAM,UAAU,CAAC,UAAU;AACzB,UAAM,MAAM,OAAO;AACnB,UAAM,EAAE,UAAU,CAAC,GAAG,OAAO,UAAU,MAAM,IAAI;AACjD,UAAM;AAAA,MACJ,OAAO,EAAE,SAAS;AAAA,IACpB,IAAI,KAAK,YAAY;AACrB,UAAM,CAAC,UAAU,WAAW,IAAI,SAAS,CAAC,CAAC;AAC3C,UAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,UAAM,eAAe,KAAK,YAAY;AACtC,UAAM,EAAE,MAAM,cAAc,IAAI;AAChC,UAAM,CAAC,sBAAsB,uBAAuB,IAAI;AAAA,MACtD,KAAK,KAAK,WAAW,KAAK,KAAK,QAAQ,cAAc,KAAK,KAAK,QAAQ;AAAA,IACzE;AAEA,cAAU,MAAM;AACd,YAAM,aAAa,gBAAgB,CAAC,KAAK,IAAI,CAAC;AAC9C,kBAAY;AAAA,QACV,GAAG;AAAA,QACH,GAAG,EAAE,KAAK,SAAS,CAAC,gBAAgB,MAAM,MAAM,IAAI;AAAA,MACtD,CAAC;AACD,UAAI,OAAO;AAET,gCAAwB,IAAI;AAAA,MAC9B,OAAO;AACL,gCAAwB,KAAK;AAAA,MAC/B;AACA;AAAA,QACE;AAAA,UACE,SAAS;AAAA,YACP,QAAQ,CAAC,WAAW,SAAS,aAAa,MAAM,OAAO,IAAI;AAAA,YAC3D,UAAU;AAAA,UACZ;AAAA,UACA,CAAC,UAAU;AAAA,QACb;AAAA,MACF;AAAA,IACF,GAAG,CAAC,OAAO,aAAa,CAAC;AACzB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAU;AAAA,QACV,OAAO;AAAA,UACL,QAAQ,CAAC,WAAW,SAAS,aAAa,MAAM,OAAO,IAAI;AAAA,UAC3D,UAAU,QAAQ,SAAS;AAAA;AAAA,QAE7B;AAAA,QAEA;AAAA,8BAAC,OAAI,KAAW,GAAG,OAAO,OAAO,UAAU;AAAA,UAC1C,QAAQ,OAAO,KAAK,CAAC,QAAQ,SAAS,CAAC,QAAQ,WAAW,OACzD,oBAAC,SAAI,WAAW,6BAA6B,QAAQ,SAAS,UAAU,OAAO,EAAE,GAAG,SAAS,GAC3F;AAAA,YAAC;AAAA;AAAA,cACC;AAAA,cACA,SAAS,EAAE,SAAS,OAAO,SAAS;AAAA,cACpC,cAAc;AAAA,cACd,QAAQ;AAAA;AAAA,UACV,GACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AAEA,UAAQ,YAAY;AAAA,IAClB,SAAS,UAAU;AAAA,IACnB,OAAO,UAAU;AAAA,IACjB,UAAU,UAAU;AAAA,IACpB,OAAO,UAAU;AAAA,EACnB;AAEA,SAAO;AACT;",
6
- "names": []
7
- }
@@ -1,33 +0,0 @@
1
- import * as React from "react";
2
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
- import { createInstancePlugin, appendCellFormatter } from "@elliemae/ds-shared";
4
- import { RowRenderer } from "./RowRenderer.js";
5
- const decorateColumns = (columns) => {
6
- const lastColumn = columns[columns.length - 1];
7
- return [
8
- ...columns.slice(0, -1),
9
- appendCellFormatter(
10
- [
11
- (value) => /* @__PURE__ */ jsxs(Fragment, { children: [
12
- value,
13
- /* @__PURE__ */ jsx("div", { style: { width: 34, maxWidth: 34, overflow: "hidden" } })
14
- ] })
15
- ],
16
- lastColumn,
17
- "fixedFormatters"
18
- )
19
- ];
20
- };
21
- const decorateRenderers = (renderers, grid) => {
22
- const Row = renderers.body.row;
23
- renderers.body.row = RowRenderer(Row, grid);
24
- return renderers;
25
- };
26
- const ToolbarPlugin = createInstancePlugin("toolbar", {
27
- decorateRenderers,
28
- decorateColumns
29
- });
30
- export {
31
- ToolbarPlugin
32
- };
33
- //# sourceMappingURL=ToolbarPlugin.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/toolbar/ToolbarPlugin.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { createInstancePlugin, appendCellFormatter } from '@elliemae/ds-shared';\nimport { RowRenderer } from './RowRenderer.js';\n\nconst decorateColumns = (columns) => {\n const lastColumn = columns[columns.length - 1];\n return [\n ...columns.slice(0, -1),\n appendCellFormatter(\n [\n (value) => (\n <>\n {value}\n <div style={{ width: 34, maxWidth: 34, overflow: 'hidden' }} />\n </>\n ),\n ],\n lastColumn,\n 'fixedFormatters',\n ),\n ];\n};\n\nconst decorateRenderers = (renderers, grid) => {\n const Row = renderers.body.row;\n renderers.body.row = RowRenderer(Row, grid);\n return renderers;\n};\n\nexport const ToolbarPlugin = createInstancePlugin('toolbar', {\n decorateRenderers,\n decorateColumns,\n});\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACWb,mBAEE,KAFF;AAVV,SAAS,sBAAsB,2BAA2B;AAC1D,SAAS,mBAAmB;AAE5B,MAAM,kBAAkB,CAAC,YAAY;AACnC,QAAM,aAAa,QAAQ,QAAQ,SAAS,CAAC;AAC7C,SAAO;AAAA,IACL,GAAG,QAAQ,MAAM,GAAG,EAAE;AAAA,IACtB;AAAA,MACE;AAAA,QACE,CAAC,UACC,iCACG;AAAA;AAAA,UACD,oBAAC,SAAI,OAAO,EAAE,OAAO,IAAI,UAAU,IAAI,UAAU,SAAS,GAAG;AAAA,WAC/D;AAAA,MAEJ;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;AAEA,MAAM,oBAAoB,CAAC,WAAW,SAAS;AAC7C,QAAM,MAAM,UAAU,KAAK;AAC3B,YAAU,KAAK,MAAM,YAAY,KAAK,IAAI;AAC1C,SAAO;AACT;AAEO,MAAM,gBAAgB,qBAAqB,WAAW;AAAA,EAC3D;AAAA,EACA;AACF,CAAC;",
6
- "names": []
7
- }
@@ -1,85 +0,0 @@
1
- import * as React from "react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { useState } from "react";
4
- import { styled } from "@elliemae/ds-system";
5
- import { DSButton } from "@elliemae/ds-button";
6
- import { MoreOptionsVert } from "@elliemae/ds-icons";
7
- const ToolbarBtns = styled.div`
8
- & > .em-ds-toolbar {
9
- box-shadow: none;
10
- }
11
- `;
12
- const ToolbarWrapper = styled.div`
13
- display: flex;
14
- align-items: center;
15
- height: ${(props) => props.rowSize === "normal" ? "36px" : "28px"};
16
- margin-left: -4px;
17
- margin-right: ${(props) => props.hasScrollBar ? "0" : "-10px"};
18
- padding-right: 4px;
19
- pointer-events: all;
20
- background: white;
21
- ${(props) => props.showShadow ? `box-shadow: -1px 0px 1px 0px rgba(0, 0, 0, 0.2),
22
- 1px 0px 2px 0px rgba(0, 0, 0, 0.2);` : ""}
23
- &:hover {
24
- box-shadow: -1px 0px 1px 0px rgba(0, 0, 0, 0.2), 1px 0px 2px 0px rgba(0, 0, 0, 0.2);
25
- & > .toolbar-trigger {
26
- border: none;
27
- }
28
- }
29
- `;
30
- const ToolbarPosition = styled.div`
31
- position: absolute;
32
- z-index: 10;
33
- display: flex;
34
- justify-content: flex-end;
35
- align-items: center;
36
- width: 0;
37
- pointer-events: none;
38
- top: 0;
39
- height: ${(props) => props.rowRef.current ? `${props.rowRef.current.offsetHeight}px` : "36px"};
40
- margin-top: ${(props) => props.rowSize === "normal" ? "0" : "0"};
41
- `;
42
- const ToolbarTrigger = ({ grid, rowData, hasScrollBar, rowRef }) => {
43
- const {
44
- props: { renderToolbar, rowSize }
45
- // eslint-disable-next-line react/prop-types
46
- } = grid.getInstance();
47
- const [show, setShow] = useState(false);
48
- const toolbar = show ? renderToolbar({
49
- ...rowData,
50
- size: rowSize,
51
- isToolbarShown: show,
52
- setToolbarShow: setShow
53
- }) : null;
54
- return /* @__PURE__ */ jsx(ToolbarPosition, { rowSize, rowRef, children: /* @__PURE__ */ jsxs(
55
- ToolbarWrapper,
56
- {
57
- onMouseEnter: () => setShow(true),
58
- onMouseLeave: () => setShow(false),
59
- showShadow: show,
60
- rowSize,
61
- hasScrollBar,
62
- children: [
63
- show && /* @__PURE__ */ jsx(ToolbarBtns, { children: toolbar }),
64
- /* @__PURE__ */ jsx(
65
- DSButton,
66
- {
67
- buttonType: "text",
68
- className: "toolbar-trigger",
69
- "data-testid": "toolbar-trigger",
70
- icon: /* @__PURE__ */ jsx(MoreOptionsVert, {}),
71
- index: rowData.index,
72
- onClick: () => setShow(true),
73
- tabIndex: -1
74
- }
75
- )
76
- ]
77
- }
78
- ) });
79
- };
80
- var ToolbarTrigger_default = ToolbarTrigger;
81
- export {
82
- ToolbarTrigger,
83
- ToolbarTrigger_default as default
84
- };
85
- //# sourceMappingURL=ToolbarTrigger.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/toolbar/ToolbarTrigger.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useState } from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { DSButton } from '@elliemae/ds-button';\nimport { MoreOptionsVert } from '@elliemae/ds-icons';\n\nconst ToolbarBtns = styled.div`\n & > .em-ds-toolbar {\n box-shadow: none;\n }\n`;\n\nconst ToolbarWrapper = styled.div`\n display: flex;\n align-items: center;\n height: ${(props) => (props.rowSize === 'normal' ? '36px' : '28px')};\n margin-left: -4px;\n margin-right: ${(props) => (props.hasScrollBar ? '0' : '-10px')};\n padding-right: 4px;\n pointer-events: all;\n background: white;\n ${(props) =>\n props.showShadow\n ? `box-shadow: -1px 0px 1px 0px rgba(0, 0, 0, 0.2),\n 1px 0px 2px 0px rgba(0, 0, 0, 0.2);`\n : ''}\n &:hover {\n box-shadow: -1px 0px 1px 0px rgba(0, 0, 0, 0.2), 1px 0px 2px 0px rgba(0, 0, 0, 0.2);\n & > .toolbar-trigger {\n border: none;\n }\n }\n`;\n\nconst ToolbarPosition = styled.div`\n position: absolute;\n z-index: 10;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n width: 0;\n pointer-events: none;\n top: 0;\n height: ${(props) => (props.rowRef.current ? `${props.rowRef.current.offsetHeight}px` : '36px')};\n margin-top: ${(props) => (props.rowSize === 'normal' ? '0' : '0')};\n`;\n\n// eslint-disable-next-line react/prop-types\nexport const ToolbarTrigger = ({ grid, rowData, hasScrollBar, rowRef }) => {\n const {\n props: { renderToolbar, rowSize },\n // eslint-disable-next-line react/prop-types\n } = grid.getInstance();\n const [show, setShow] = useState(false);\n /* eslint-disable indent */\n const toolbar = show\n ? renderToolbar({\n ...rowData,\n size: rowSize,\n isToolbarShown: show,\n setToolbarShow: setShow,\n })\n : null;\n /* eslint-enable indent */\n return (\n <ToolbarPosition rowSize={rowSize} rowRef={rowRef}>\n <ToolbarWrapper\n onMouseEnter={() => setShow(true)}\n onMouseLeave={() => setShow(false)}\n showShadow={show}\n rowSize={rowSize}\n hasScrollBar={hasScrollBar}\n >\n {show && <ToolbarBtns>{toolbar}</ToolbarBtns>}\n <DSButton\n buttonType=\"text\"\n className=\"toolbar-trigger\"\n data-testid=\"toolbar-trigger\"\n icon={<MoreOptionsVert />}\n // eslint-disable-next-line react/prop-types\n index={rowData.index}\n onClick={() => setShow(true)}\n tabIndex={-1}\n />\n </ToolbarWrapper>\n </ToolbarPosition>\n );\n};\n\nexport default ToolbarTrigger;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACiEjB,SAOW,KAPX;AAjEN,SAAgB,gBAAgB;AAChC,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,uBAAuB;AAEhC,MAAM,cAAc,OAAO;AAAA;AAAA;AAAA;AAAA;AAM3B,MAAM,iBAAiB,OAAO;AAAA;AAAA;AAAA,YAGlB,CAAC,UAAW,MAAM,YAAY,WAAW,SAAS;AAAA;AAAA,kBAE5C,CAAC,UAAW,MAAM,eAAe,MAAM;AAAA;AAAA;AAAA;AAAA,IAIrD,CAAC,UACD,MAAM,aACF;AAAA,yCAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASR,MAAM,kBAAkB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YASnB,CAAC,UAAW,MAAM,OAAO,UAAU,GAAG,MAAM,OAAO,QAAQ,mBAAmB;AAAA,gBAC1E,CAAC,UAAW,MAAM,YAAY,WAAW,MAAM;AAAA;AAIxD,MAAM,iBAAiB,CAAC,EAAE,MAAM,SAAS,cAAc,OAAO,MAAM;AACzE,QAAM;AAAA,IACJ,OAAO,EAAE,eAAe,QAAQ;AAAA;AAAA,EAElC,IAAI,KAAK,YAAY;AACrB,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AAEtC,QAAM,UAAU,OACZ,cAAc;AAAA,IACZ,GAAG;AAAA,IACH,MAAM;AAAA,IACN,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAClB,CAAC,IACD;AAEJ,SACE,oBAAC,mBAAgB,SAAkB,QACjC;AAAA,IAAC;AAAA;AAAA,MACC,cAAc,MAAM,QAAQ,IAAI;AAAA,MAChC,cAAc,MAAM,QAAQ,KAAK;AAAA,MACjC,YAAY;AAAA,MACZ;AAAA,MACA;AAAA,MAEC;AAAA,gBAAQ,oBAAC,eAAa,mBAAQ;AAAA,QAC/B;AAAA,UAAC;AAAA;AAAA,YACC,YAAW;AAAA,YACX,WAAU;AAAA,YACV,eAAY;AAAA,YACZ,MAAM,oBAAC,mBAAgB;AAAA,YAEvB,OAAO,QAAQ;AAAA,YACf,SAAS,MAAM,QAAQ,IAAI;AAAA,YAC3B,UAAU;AAAA;AAAA,QACZ;AAAA;AAAA;AAAA,EACF,GACF;AAEJ;AAEA,IAAO,yBAAQ;",
6
- "names": []
7
- }
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import { ToolbarPlugin } from "./ToolbarPlugin.js";
3
- export {
4
- ToolbarPlugin
5
- };
6
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/toolbar/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { ToolbarPlugin } from './ToolbarPlugin.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,qBAAqB;",
6
- "names": []
7
- }
@@ -1,48 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { forwardRef, useRef } from "react";
4
- import { FixedSizeList as List } from "react-window";
5
- import { mergeRefs, useWindowScrollerList, cx } from "@elliemae/ds-utilities";
6
- const AutoHeightList = forwardRef(
7
- ({
8
- itemCount,
9
- className,
10
- innerRef,
11
- itemData,
12
- itemKey,
13
- itemSize,
14
- outerRef,
15
- component: ListComponent = List,
16
- ...otherProps
17
- }, ref) => {
18
- const listRef = useRef();
19
- const outerListRef = useRef();
20
- useWindowScrollerList({
21
- listInstance: listRef,
22
- outerListRef
23
- });
24
- return /* @__PURE__ */ jsx(
25
- ListComponent,
26
- {
27
- ...otherProps,
28
- ref: mergeRefs(ref, listRef),
29
- className: cx(className, "window-scroller-override"),
30
- height: window.innerHeight,
31
- innerRef,
32
- itemCount,
33
- itemData,
34
- itemKey,
35
- itemSize,
36
- outerRef: mergeRefs(outerListRef, outerRef),
37
- overscanCount: 10,
38
- useIsScrolling: true
39
- }
40
- );
41
- }
42
- );
43
- var AutoHeightList_default = AutoHeightList;
44
- export {
45
- AutoHeightList,
46
- AutoHeightList_default as default
47
- };
48
- //# sourceMappingURL=AutoHeightList.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/AutoHeightList.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { forwardRef, useRef } from 'react';\nimport { FixedSizeList as List } from 'react-window';\nimport { mergeRefs, useWindowScrollerList, cx } from '@elliemae/ds-utilities';\n\n// eslint-disable-next-line react/display-name\nexport const AutoHeightList = forwardRef(\n (\n {\n itemCount,\n className,\n innerRef,\n itemData,\n itemKey,\n itemSize,\n outerRef,\n component: ListComponent = List,\n ...otherProps\n },\n ref,\n ) => {\n const listRef = useRef();\n const outerListRef = useRef();\n\n useWindowScrollerList({\n listInstance: listRef,\n outerListRef,\n });\n return (\n <ListComponent\n {...otherProps}\n ref={mergeRefs(ref, listRef)}\n className={cx(className, 'window-scroller-override')}\n height={window.innerHeight}\n innerRef={innerRef}\n itemCount={itemCount}\n itemData={itemData}\n itemKey={itemKey}\n itemSize={itemSize}\n outerRef={mergeRefs(outerListRef, outerRef)}\n overscanCount={10}\n useIsScrolling\n />\n );\n },\n);\n\nexport default AutoHeightList;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;AC4BjB;AA5BN,SAAgB,YAAY,cAAc;AAC1C,SAAS,iBAAiB,YAAY;AACtC,SAAS,WAAW,uBAAuB,UAAU;AAG9C,MAAM,iBAAiB;AAAA,EAC5B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW,gBAAgB;AAAA,IAC3B,GAAG;AAAA,EACL,GACA,QACG;AACH,UAAM,UAAU,OAAO;AACvB,UAAM,eAAe,OAAO;AAE5B,0BAAsB;AAAA,MACpB,cAAc;AAAA,MACd;AAAA,IACF,CAAC;AACD,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,KAAK,UAAU,KAAK,OAAO;AAAA,QAC3B,WAAW,GAAG,WAAW,0BAA0B;AAAA,QACnD,QAAQ,OAAO;AAAA,QACf;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,UAAU,UAAU,cAAc,QAAQ;AAAA,QAC1C,eAAe;AAAA,QACf,gBAAc;AAAA;AAAA,IAChB;AAAA,EAEJ;AACF;AAEA,IAAO,yBAAQ;",
6
- "names": []
7
- }
@@ -1,79 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { useMemo, useRef } from "react";
4
- import { get } from "lodash";
5
- import { runAll, mergeRefs } from "@elliemae/ds-utilities";
6
- import { createInstancePlugin, FocusGrid } from "@elliemae/ds-shared";
7
- import { VirtualizedBody } from "./VirtualizedBody.js";
8
- const VirtualizationPlugin = createInstancePlugin("virtualization", {
9
- decorateRenderers(renderers, grid) {
10
- const BodyWrapper = renderers.body.wrapper;
11
- renderers.body.wrapper = useMemo(
12
- () => function(props) {
13
- const { listProps = {}, rows } = props;
14
- const {
15
- hotKeys,
16
- props: { autoHeight, autoScrollToId, expandable, overscanCount, rowSize },
17
- refs: { innerBody },
18
- setHasScroll,
19
- state: { filters }
20
- } = grid.getInstance();
21
- const listRef = useRef();
22
- const nextListProps = {
23
- ...listProps,
24
- ref: mergeRefs(listRef, listProps.ref)
25
- };
26
- return /* @__PURE__ */ jsx(
27
- FocusGrid,
28
- {
29
- hotKeys,
30
- keyBindings: ({ defaultBindings }) => ({
31
- ...defaultBindings,
32
- // todo: this is kind of hacky, since it's virtualized and there's
33
- // the possibility that the firsts or lasts rows aren't rendered
34
- Home: runAll((e) => {
35
- if (e.ctrlKey) {
36
- listRef.current.scrollToItem(0);
37
- setTimeout(() => defaultBindings.Home(e), 10);
38
- } else {
39
- defaultBindings.Home(e);
40
- }
41
- }),
42
- End: runAll((e) => {
43
- if (e.ctrlKey) {
44
- listRef.current.scrollToItem(rows.length - 1);
45
- setTimeout(() => defaultBindings.End(e), 10);
46
- } else {
47
- defaultBindings.End(e);
48
- }
49
- })
50
- }),
51
- shouldRefocus: false,
52
- children: /* @__PURE__ */ jsx(
53
- VirtualizedBody,
54
- {
55
- ...props,
56
- autoScrollToId,
57
- autoHeight,
58
- component: BodyWrapper,
59
- expandable,
60
- innerBody,
61
- listProps: nextListProps,
62
- overscanCount,
63
- rowSize,
64
- setHasScroll,
65
- filters
66
- }
67
- )
68
- }
69
- );
70
- },
71
- [get(grid.getInstance(), "rows.length")]
72
- );
73
- return renderers;
74
- }
75
- });
76
- export {
77
- VirtualizationPlugin
78
- };
79
- //# sourceMappingURL=VirtualizationPlugin.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/VirtualizationPlugin.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-param-reassign */\n/* eslint-disable react/prop-types */\n/* eslint-disable react-hooks/rules-of-hooks */\nimport React, { useMemo, useRef } from 'react';\nimport { get } from 'lodash';\nimport { runAll, mergeRefs } from '@elliemae/ds-utilities';\nimport { createInstancePlugin, FocusGrid } from '@elliemae/ds-shared';\nimport { VirtualizedBody } from './VirtualizedBody.js';\n\nexport const VirtualizationPlugin = createInstancePlugin('virtualization', {\n decorateRenderers(renderers, grid) {\n const BodyWrapper = renderers.body.wrapper;\n // eslint-disable-next-line react/display-name\n renderers.body.wrapper = useMemo(\n () =>\n function (props) {\n const { listProps = {}, rows } = props;\n const {\n hotKeys,\n props: { autoHeight, autoScrollToId, expandable, overscanCount, rowSize },\n refs: { innerBody },\n setHasScroll,\n state: { filters },\n } = grid.getInstance();\n\n const listRef = useRef();\n const nextListProps = {\n ...listProps,\n ref: mergeRefs(listRef, listProps.ref),\n };\n return (\n <FocusGrid\n hotKeys={hotKeys}\n keyBindings={({ defaultBindings }) => ({\n ...defaultBindings,\n // todo: this is kind of hacky, since it's virtualized and there's\n // the possibility that the firsts or lasts rows aren't rendered\n Home: runAll((e) => {\n if (e.ctrlKey) {\n listRef.current.scrollToItem(0);\n setTimeout(() => defaultBindings.Home(e), 10);\n } else {\n defaultBindings.Home(e);\n }\n }),\n End: runAll((e) => {\n if (e.ctrlKey) {\n listRef.current.scrollToItem(rows.length - 1);\n setTimeout(() => defaultBindings.End(e), 10);\n } else {\n defaultBindings.End(e);\n }\n }),\n })}\n shouldRefocus={false}\n >\n <VirtualizedBody\n {...props}\n autoScrollToId={autoScrollToId}\n autoHeight={autoHeight}\n component={BodyWrapper}\n expandable={expandable}\n innerBody={innerBody}\n listProps={nextListProps}\n overscanCount={overscanCount}\n rowSize={rowSize}\n setHasScroll={setHasScroll}\n filters={filters}\n />\n </FocusGrid>\n );\n },\n [get(grid.getInstance(), 'rows.length')],\n );\n return renderers;\n },\n});\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACwDT;AArDd,SAAgB,SAAS,cAAc;AACvC,SAAS,WAAW;AACpB,SAAS,QAAQ,iBAAiB;AAClC,SAAS,sBAAsB,iBAAiB;AAChD,SAAS,uBAAuB;AAEzB,MAAM,uBAAuB,qBAAqB,kBAAkB;AAAA,EACzE,kBAAkB,WAAW,MAAM;AACjC,UAAM,cAAc,UAAU,KAAK;AAEnC,cAAU,KAAK,UAAU;AAAA,MACvB,MACE,SAAU,OAAO;AACf,cAAM,EAAE,YAAY,CAAC,GAAG,KAAK,IAAI;AACjC,cAAM;AAAA,UACJ;AAAA,UACA,OAAO,EAAE,YAAY,gBAAgB,YAAY,eAAe,QAAQ;AAAA,UACxE,MAAM,EAAE,UAAU;AAAA,UAClB;AAAA,UACA,OAAO,EAAE,QAAQ;AAAA,QACnB,IAAI,KAAK,YAAY;AAErB,cAAM,UAAU,OAAO;AACvB,cAAM,gBAAgB;AAAA,UACpB,GAAG;AAAA,UACH,KAAK,UAAU,SAAS,UAAU,GAAG;AAAA,QACvC;AACA,eACE;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,aAAa,CAAC,EAAE,gBAAgB,OAAO;AAAA,cACrC,GAAG;AAAA;AAAA;AAAA,cAGH,MAAM,OAAO,CAAC,MAAM;AAClB,oBAAI,EAAE,SAAS;AACb,0BAAQ,QAAQ,aAAa,CAAC;AAC9B,6BAAW,MAAM,gBAAgB,KAAK,CAAC,GAAG,EAAE;AAAA,gBAC9C,OAAO;AACL,kCAAgB,KAAK,CAAC;AAAA,gBACxB;AAAA,cACF,CAAC;AAAA,cACD,KAAK,OAAO,CAAC,MAAM;AACjB,oBAAI,EAAE,SAAS;AACb,0BAAQ,QAAQ,aAAa,KAAK,SAAS,CAAC;AAC5C,6BAAW,MAAM,gBAAgB,IAAI,CAAC,GAAG,EAAE;AAAA,gBAC7C,OAAO;AACL,kCAAgB,IAAI,CAAC;AAAA,gBACvB;AAAA,cACF,CAAC;AAAA,YACH;AAAA,YACA,eAAe;AAAA,YAEf;AAAA,cAAC;AAAA;AAAA,gBACE,GAAG;AAAA,gBACJ;AAAA,gBACA;AAAA,gBACA,WAAW;AAAA,gBACX;AAAA,gBACA;AAAA,gBACA,WAAW;AAAA,gBACX;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA;AAAA,YACF;AAAA;AAAA,QACF;AAAA,MAEJ;AAAA,MACF,CAAC,IAAI,KAAK,YAAY,GAAG,aAAa,CAAC;AAAA,IACzC;AACA,WAAO;AAAA,EACT;AACF,CAAC;",
6
- "names": []
7
- }