@elliemae/ds-datagrids 2.3.0-next.3 → 3.0.0-alpha.0

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 (978) hide show
  1. package/dist/cjs/DSDataGrid.js +399 -0
  2. package/dist/cjs/DSDataGrid.js.map +7 -0
  3. package/dist/cjs/DataGridImpl.js +144 -0
  4. package/dist/cjs/DataGridImpl.js.map +7 -0
  5. package/dist/cjs/PaginatedDataGrid.js +77 -0
  6. package/dist/cjs/PaginatedDataGrid.js.map +7 -0
  7. package/dist/cjs/blockNames.js +39 -0
  8. package/dist/cjs/blockNames.js.map +7 -0
  9. package/dist/cjs/columns/IconColumn.js +111 -0
  10. package/dist/cjs/columns/IconColumn.js.map +7 -0
  11. package/dist/cjs/columns/NumberColumn.js +36 -0
  12. package/dist/cjs/columns/NumberColumn.js.map +7 -0
  13. package/dist/cjs/components/BodyCell.js +104 -0
  14. package/dist/cjs/components/BodyCell.js.map +7 -0
  15. package/dist/cjs/components/BodyList.js +54 -0
  16. package/dist/cjs/components/BodyList.js.map +7 -0
  17. package/dist/cjs/components/ColumnVisibilityMenuOption.js +66 -0
  18. package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +7 -0
  19. package/dist/cjs/components/ColumnsOptionsMenuSection.js +64 -0
  20. package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +7 -0
  21. package/dist/cjs/components/EmptyState.js +82 -0
  22. package/dist/cjs/components/EmptyState.js.map +7 -0
  23. package/dist/cjs/components/HeaderCell.js +76 -0
  24. package/dist/cjs/components/HeaderCell.js.map +7 -0
  25. package/dist/cjs/components/List.js +44 -0
  26. package/dist/cjs/components/List.js.map +7 -0
  27. package/dist/cjs/components/ListItem.js +51 -0
  28. package/dist/cjs/components/ListItem.js.map +7 -0
  29. package/dist/cjs/components/NoResults.js +55 -0
  30. package/dist/cjs/components/NoResults.js.map +7 -0
  31. package/dist/cjs/components/RowsLoader.js +42 -0
  32. package/dist/cjs/components/RowsLoader.js.map +7 -0
  33. package/dist/cjs/components/Table.js +113 -0
  34. package/dist/cjs/components/Table.js.map +7 -0
  35. package/dist/cjs/components/TableBody.js +70 -0
  36. package/dist/cjs/components/TableBody.js.map +7 -0
  37. package/dist/cjs/components/TableHeader.js +54 -0
  38. package/dist/cjs/components/TableHeader.js.map +7 -0
  39. package/dist/cjs/components/footer/addOptionalFooterComponents.js +56 -0
  40. package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +7 -0
  41. package/dist/cjs/components/header/PrimaryControls.js +50 -0
  42. package/dist/cjs/components/header/PrimaryControls.js.map +7 -0
  43. package/dist/cjs/components/header/addOptionalHeaderComponents.js +58 -0
  44. package/dist/cjs/components/header/addOptionalHeaderComponents.js.map +7 -0
  45. package/dist/cjs/components/index.js +43 -0
  46. package/dist/cjs/components/index.js.map +7 -0
  47. package/dist/cjs/components/renderers/defaultClassedRenderers.js +66 -0
  48. package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +7 -0
  49. package/dist/cjs/components/renderers/index.js +50 -0
  50. package/dist/cjs/components/renderers/index.js.map +7 -0
  51. package/dist/cjs/components/renderers/renderRowsLoader.js +39 -0
  52. package/dist/cjs/components/renderers/renderRowsLoader.js.map +7 -0
  53. package/dist/cjs/components/tableContext.js +36 -0
  54. package/dist/cjs/components/tableContext.js.map +7 -0
  55. package/dist/cjs/defaultPlugins.js +44 -0
  56. package/dist/cjs/defaultPlugins.js.map +7 -0
  57. package/dist/cjs/index.js +72 -0
  58. package/dist/cjs/index.js.map +7 -0
  59. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +131 -0
  60. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
  61. package/dist/cjs/plugins/body-header-scroll-sync/index.js +35 -0
  62. package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +7 -0
  63. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +155 -0
  64. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
  65. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +46 -0
  66. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
  67. package/dist/cjs/plugins/column-dnd/index.js +35 -0
  68. package/dist/cjs/plugins/column-dnd/index.js.map +7 -0
  69. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +92 -0
  70. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
  71. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js +69 -0
  72. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
  73. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +44 -0
  74. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
  75. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +64 -0
  76. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
  77. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js +37 -0
  78. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
  79. package/dist/cjs/plugins/column-sizing/index.js +35 -0
  80. package/dist/cjs/plugins/column-sizing/index.js.map +7 -0
  81. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +148 -0
  82. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +7 -0
  83. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +167 -0
  84. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
  85. package/dist/cjs/plugins/column-sizing/utils.js +68 -0
  86. package/dist/cjs/plugins/column-sizing/utils.js.map +7 -0
  87. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +40 -0
  88. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
  89. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +77 -0
  90. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
  91. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +63 -0
  92. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
  93. package/dist/cjs/plugins/custom-cell-renderer/index.js +35 -0
  94. package/dist/cjs/plugins/custom-cell-renderer/index.js.map +7 -0
  95. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +68 -0
  96. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
  97. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +90 -0
  98. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +7 -0
  99. package/dist/cjs/plugins/editable/EditableComponents/index.js +37 -0
  100. package/dist/cjs/plugins/editable/EditableComponents/index.js.map +7 -0
  101. package/dist/cjs/plugins/editable/EditablePlugin.js +108 -0
  102. package/dist/cjs/plugins/editable/EditablePlugin.js.map +7 -0
  103. package/dist/cjs/plugins/editable/decorateEditable.js +85 -0
  104. package/dist/cjs/plugins/editable/decorateEditable.js.map +7 -0
  105. package/dist/cjs/plugins/editable/getEditorComponent.js +76 -0
  106. package/dist/cjs/plugins/editable/getEditorComponent.js.map +7 -0
  107. package/dist/cjs/plugins/editable/index.js +38 -0
  108. package/dist/cjs/plugins/editable/index.js.map +7 -0
  109. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +124 -0
  110. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
  111. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +181 -0
  112. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
  113. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +134 -0
  114. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +7 -0
  115. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +56 -0
  116. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
  117. package/dist/cjs/plugins/expandable-grid/index.js +37 -0
  118. package/dist/cjs/plugins/expandable-grid/index.js.map +7 -0
  119. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +93 -0
  120. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +7 -0
  121. package/dist/cjs/plugins/export-data/ExportDataPlugin.js +134 -0
  122. package/dist/cjs/plugins/export-data/ExportDataPlugin.js.map +7 -0
  123. package/dist/cjs/plugins/export-data/index.js +35 -0
  124. package/dist/cjs/plugins/export-data/index.js.map +7 -0
  125. package/dist/cjs/plugins/filterable/FilterablePlugin.js +80 -0
  126. package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +7 -0
  127. package/dist/cjs/plugins/filterable/addFilterToColumn.js +43 -0
  128. package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +7 -0
  129. package/dist/cjs/plugins/filterable/components/FilterableHeader.js +132 -0
  130. package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +7 -0
  131. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +157 -0
  132. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
  133. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +131 -0
  134. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
  135. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +201 -0
  136. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
  137. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +170 -0
  138. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
  139. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +35 -0
  140. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
  141. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +49 -0
  142. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
  143. package/dist/cjs/plugins/filterable/filterableFormatter.js +73 -0
  144. package/dist/cjs/plugins/filterable/filterableFormatter.js.map +7 -0
  145. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +79 -0
  146. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
  147. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +44 -0
  148. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
  149. package/dist/cjs/plugins/filterable/helper.js +109 -0
  150. package/dist/cjs/plugins/filterable/helper.js.map +7 -0
  151. package/dist/cjs/plugins/filterable/index.js +35 -0
  152. package/dist/cjs/plugins/filterable/index.js.map +7 -0
  153. package/dist/cjs/plugins/filterable/useFilterableState.js +113 -0
  154. package/dist/cjs/plugins/filterable/useFilterableState.js.map +7 -0
  155. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js +57 -0
  156. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
  157. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +126 -0
  158. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
  159. package/dist/cjs/plugins/grouping-grid/walkStrategy.js +76 -0
  160. package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +7 -0
  161. package/dist/cjs/plugins/index.js +68 -0
  162. package/dist/cjs/plugins/index.js.map +7 -0
  163. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +100 -0
  164. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
  165. package/dist/cjs/plugins/infinite-scrolling/index.js +35 -0
  166. package/dist/cjs/plugins/infinite-scrolling/index.js.map +7 -0
  167. package/dist/cjs/plugins/pagination/PaginationPlugin.js +92 -0
  168. package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +7 -0
  169. package/dist/cjs/plugins/pagination/components/Pagination.js +63 -0
  170. package/dist/cjs/plugins/pagination/components/Pagination.js.map +7 -0
  171. package/dist/cjs/plugins/pagination/components/Paginator.js +82 -0
  172. package/dist/cjs/plugins/pagination/components/Paginator.js.map +7 -0
  173. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +68 -0
  174. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +7 -0
  175. package/dist/cjs/plugins/pagination/helper.js +62 -0
  176. package/dist/cjs/plugins/pagination/helper.js.map +7 -0
  177. package/dist/cjs/plugins/pagination/index.js +35 -0
  178. package/dist/cjs/plugins/pagination/index.js.map +7 -0
  179. package/dist/cjs/plugins/pagination/usePaginationState.js +82 -0
  180. package/dist/cjs/plugins/pagination/usePaginationState.js.map +7 -0
  181. package/dist/cjs/plugins/resizable/ResizablePlugin.js +109 -0
  182. package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +7 -0
  183. package/dist/cjs/plugins/resizable/decorateResizable.js +56 -0
  184. package/dist/cjs/plugins/resizable/decorateResizable.js.map +7 -0
  185. package/dist/cjs/plugins/resizable/index.js +35 -0
  186. package/dist/cjs/plugins/resizable/index.js.map +7 -0
  187. package/dist/cjs/plugins/resizable/useResizeHandle.js +79 -0
  188. package/dist/cjs/plugins/resizable/useResizeHandle.js.map +7 -0
  189. package/dist/cjs/plugins/resizable/utils.js +54 -0
  190. package/dist/cjs/plugins/resizable/utils.js.map +7 -0
  191. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js +136 -0
  192. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
  193. package/dist/cjs/plugins/row-dnd/index.js +35 -0
  194. package/dist/cjs/plugins/row-dnd/index.js.map +7 -0
  195. package/dist/cjs/plugins/selectable/SelectablePlugin.js +166 -0
  196. package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +7 -0
  197. package/dist/cjs/plugins/selectable/addSelectableColumn.js +92 -0
  198. package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +7 -0
  199. package/dist/cjs/plugins/selectable/helper.js +54 -0
  200. package/dist/cjs/plugins/selectable/helper.js.map +7 -0
  201. package/dist/cjs/plugins/selectable/index.js +35 -0
  202. package/dist/cjs/plugins/selectable/index.js.map +7 -0
  203. package/dist/cjs/plugins/selectable/selectableFormatter.js +93 -0
  204. package/dist/cjs/plugins/selectable/selectableFormatter.js.map +7 -0
  205. package/dist/cjs/plugins/selectable/useSelectableState.js +116 -0
  206. package/dist/cjs/plugins/selectable/useSelectableState.js.map +7 -0
  207. package/dist/cjs/plugins/sortable/SortablePlugin.js +95 -0
  208. package/dist/cjs/plugins/sortable/SortablePlugin.js.map +7 -0
  209. package/dist/cjs/plugins/sortable/checkIfSortable.js +45 -0
  210. package/dist/cjs/plugins/sortable/checkIfSortable.js.map +7 -0
  211. package/dist/cjs/plugins/sortable/index.js +35 -0
  212. package/dist/cjs/plugins/sortable/index.js.map +7 -0
  213. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js +66 -0
  214. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js.map +7 -0
  215. package/dist/cjs/plugins/sortable/sortTree.js +44 -0
  216. package/dist/cjs/plugins/sortable/sortTree.js.map +7 -0
  217. package/dist/cjs/plugins/sortable/sorter.js +144 -0
  218. package/dist/cjs/plugins/sortable/sorter.js.map +7 -0
  219. package/dist/cjs/plugins/sortable/useSortableState.js +73 -0
  220. package/dist/cjs/plugins/sortable/useSortableState.js.map +7 -0
  221. package/dist/cjs/plugins/toolbar/RowRenderer.js +96 -0
  222. package/dist/cjs/plugins/toolbar/RowRenderer.js.map +7 -0
  223. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +58 -0
  224. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +7 -0
  225. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js +105 -0
  226. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js.map +7 -0
  227. package/dist/cjs/plugins/toolbar/index.js +35 -0
  228. package/dist/cjs/plugins/toolbar/index.js.map +7 -0
  229. package/dist/cjs/plugins/virtualization/AutoHeightList.js +71 -0
  230. package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +7 -0
  231. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +97 -0
  232. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
  233. package/dist/cjs/plugins/virtualization/VirtualizedBody.js +259 -0
  234. package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +7 -0
  235. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js +52 -0
  236. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
  237. package/dist/cjs/plugins/virtualization/helper.js +35 -0
  238. package/dist/cjs/plugins/virtualization/helper.js.map +7 -0
  239. package/dist/cjs/plugins/virtualization/index.js +35 -0
  240. package/dist/cjs/plugins/virtualization/index.js.map +7 -0
  241. package/dist/cjs/renders/CellWithAddons.js +111 -0
  242. package/dist/cjs/renders/CellWithAddons.js.map +7 -0
  243. package/dist/cjs/renders/index.js +37 -0
  244. package/dist/cjs/renders/index.js.map +7 -0
  245. package/dist/cjs/renders/styled.js +78 -0
  246. package/dist/cjs/renders/styled.js.map +7 -0
  247. package/dist/cjs/rowSizes.js +51 -0
  248. package/dist/cjs/rowSizes.js.map +7 -0
  249. package/dist/cjs/utilities/DataGridUtilities.json +1315 -0
  250. package/dist/cjs/utilities/getPluginsFromProps.js +72 -0
  251. package/dist/cjs/utilities/getPluginsFromProps.js.map +7 -0
  252. package/dist/cjs/utilities/getScrollbarSize.js +46 -0
  253. package/dist/cjs/utilities/getScrollbarSize.js.map +7 -0
  254. package/dist/cjs/utilities/normalizeData.js +49 -0
  255. package/dist/cjs/utilities/normalizeData.js.map +7 -0
  256. package/dist/esm/DSDataGrid.js +370 -0
  257. package/dist/esm/DSDataGrid.js.map +7 -0
  258. package/dist/esm/DataGridImpl.js +115 -0
  259. package/dist/esm/DataGridImpl.js.map +7 -0
  260. package/dist/esm/PaginatedDataGrid.js +48 -0
  261. package/dist/esm/PaginatedDataGrid.js.map +7 -0
  262. package/dist/esm/blockNames.js +10 -0
  263. package/dist/esm/blockNames.js.map +7 -0
  264. package/dist/esm/columns/IconColumn.js +82 -0
  265. package/dist/esm/columns/IconColumn.js.map +7 -0
  266. package/dist/esm/columns/NumberColumn.js +7 -0
  267. package/dist/esm/columns/NumberColumn.js.map +7 -0
  268. package/dist/esm/components/BodyCell.js +75 -0
  269. package/dist/esm/components/BodyCell.js.map +7 -0
  270. package/dist/esm/components/BodyList.js +25 -0
  271. package/dist/esm/components/BodyList.js.map +7 -0
  272. package/dist/esm/components/ColumnVisibilityMenuOption.js +37 -0
  273. package/dist/esm/components/ColumnVisibilityMenuOption.js.map +7 -0
  274. package/dist/esm/components/ColumnsOptionsMenuSection.js +35 -0
  275. package/dist/esm/components/ColumnsOptionsMenuSection.js.map +7 -0
  276. package/dist/esm/components/EmptyState.js +53 -0
  277. package/dist/esm/components/EmptyState.js.map +7 -0
  278. package/dist/esm/components/HeaderCell.js +47 -0
  279. package/dist/esm/components/HeaderCell.js.map +7 -0
  280. package/dist/esm/components/List.js +15 -0
  281. package/dist/esm/components/List.js.map +7 -0
  282. package/dist/esm/components/ListItem.js +22 -0
  283. package/dist/esm/components/ListItem.js.map +7 -0
  284. package/dist/esm/components/NoResults.js +26 -0
  285. package/dist/esm/components/NoResults.js.map +7 -0
  286. package/dist/esm/components/RowsLoader.js +13 -0
  287. package/dist/esm/components/RowsLoader.js.map +7 -0
  288. package/dist/esm/components/Table.js +84 -0
  289. package/dist/esm/components/Table.js.map +7 -0
  290. package/dist/esm/components/TableBody.js +41 -0
  291. package/dist/esm/components/TableBody.js.map +7 -0
  292. package/dist/esm/components/TableHeader.js +25 -0
  293. package/dist/esm/components/TableHeader.js.map +7 -0
  294. package/dist/esm/components/footer/addOptionalFooterComponents.js +27 -0
  295. package/dist/esm/components/footer/addOptionalFooterComponents.js.map +7 -0
  296. package/dist/esm/components/header/PrimaryControls.js +21 -0
  297. package/dist/esm/components/header/PrimaryControls.js.map +7 -0
  298. package/dist/esm/components/header/addOptionalHeaderComponents.js +29 -0
  299. package/dist/esm/components/header/addOptionalHeaderComponents.js.map +7 -0
  300. package/dist/esm/components/index.js +14 -0
  301. package/dist/esm/components/index.js.map +7 -0
  302. package/dist/esm/components/renderers/defaultClassedRenderers.js +41 -0
  303. package/dist/esm/components/renderers/defaultClassedRenderers.js.map +7 -0
  304. package/dist/esm/components/renderers/index.js +29 -0
  305. package/dist/esm/components/renderers/index.js.map +7 -0
  306. package/dist/esm/components/renderers/renderRowsLoader.js +10 -0
  307. package/dist/esm/components/renderers/renderRowsLoader.js.map +7 -0
  308. package/dist/esm/components/tableContext.js +7 -0
  309. package/dist/esm/components/tableContext.js.map +7 -0
  310. package/dist/esm/defaultPlugins.js +15 -0
  311. package/dist/esm/defaultPlugins.js.map +7 -0
  312. package/dist/esm/index.js +63 -0
  313. package/dist/esm/index.js.map +7 -0
  314. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +102 -0
  315. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
  316. package/dist/esm/plugins/body-header-scroll-sync/index.js +6 -0
  317. package/dist/esm/plugins/body-header-scroll-sync/index.js.map +7 -0
  318. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +126 -0
  319. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
  320. package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js +20 -0
  321. package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
  322. package/dist/esm/plugins/column-dnd/index.js +6 -0
  323. package/dist/esm/plugins/column-dnd/index.js.map +7 -0
  324. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +63 -0
  325. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
  326. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js +40 -0
  327. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
  328. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +15 -0
  329. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
  330. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +35 -0
  331. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
  332. package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js +8 -0
  333. package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
  334. package/dist/esm/plugins/column-sizing/index.js +6 -0
  335. package/dist/esm/plugins/column-sizing/index.js.map +7 -0
  336. package/dist/esm/plugins/column-sizing/useColumnSizeService.js +119 -0
  337. package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +7 -0
  338. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +138 -0
  339. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
  340. package/dist/esm/plugins/column-sizing/utils.js +39 -0
  341. package/dist/esm/plugins/column-sizing/utils.js.map +7 -0
  342. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +11 -0
  343. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
  344. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +48 -0
  345. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
  346. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +34 -0
  347. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
  348. package/dist/esm/plugins/custom-cell-renderer/index.js +6 -0
  349. package/dist/esm/plugins/custom-cell-renderer/index.js.map +7 -0
  350. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js +39 -0
  351. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
  352. package/dist/esm/plugins/editable/EditableComponents/TextBox.js +61 -0
  353. package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +7 -0
  354. package/dist/esm/plugins/editable/EditableComponents/index.js +8 -0
  355. package/dist/esm/plugins/editable/EditableComponents/index.js.map +7 -0
  356. package/dist/esm/plugins/editable/EditablePlugin.js +79 -0
  357. package/dist/esm/plugins/editable/EditablePlugin.js.map +7 -0
  358. package/dist/esm/plugins/editable/decorateEditable.js +56 -0
  359. package/dist/esm/plugins/editable/decorateEditable.js.map +7 -0
  360. package/dist/esm/plugins/editable/getEditorComponent.js +47 -0
  361. package/dist/esm/plugins/editable/getEditorComponent.js.map +7 -0
  362. package/dist/esm/plugins/editable/index.js +9 -0
  363. package/dist/esm/plugins/editable/index.js.map +7 -0
  364. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +95 -0
  365. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
  366. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +152 -0
  367. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
  368. package/dist/esm/plugins/expandable-grid/ExpandedRow.js +105 -0
  369. package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +7 -0
  370. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +27 -0
  371. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
  372. package/dist/esm/plugins/expandable-grid/index.js +8 -0
  373. package/dist/esm/plugins/expandable-grid/index.js.map +7 -0
  374. package/dist/esm/plugins/expandable-grid/useExpandGridState.js +64 -0
  375. package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +7 -0
  376. package/dist/esm/plugins/export-data/ExportDataPlugin.js +105 -0
  377. package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +7 -0
  378. package/dist/esm/plugins/export-data/index.js +6 -0
  379. package/dist/esm/plugins/export-data/index.js.map +7 -0
  380. package/dist/esm/plugins/filterable/FilterablePlugin.js +51 -0
  381. package/dist/esm/plugins/filterable/FilterablePlugin.js.map +7 -0
  382. package/dist/esm/plugins/filterable/addFilterToColumn.js +14 -0
  383. package/dist/esm/plugins/filterable/addFilterToColumn.js.map +7 -0
  384. package/dist/esm/plugins/filterable/components/FilterableHeader.js +103 -0
  385. package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +7 -0
  386. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +128 -0
  387. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
  388. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +102 -0
  389. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
  390. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +176 -0
  391. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
  392. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +141 -0
  393. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
  394. package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +6 -0
  395. package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
  396. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +20 -0
  397. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
  398. package/dist/esm/plugins/filterable/filterableFormatter.js +44 -0
  399. package/dist/esm/plugins/filterable/filterableFormatter.js.map +7 -0
  400. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +50 -0
  401. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
  402. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js +15 -0
  403. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
  404. package/dist/esm/plugins/filterable/helper.js +86 -0
  405. package/dist/esm/plugins/filterable/helper.js.map +7 -0
  406. package/dist/esm/plugins/filterable/index.js +6 -0
  407. package/dist/esm/plugins/filterable/index.js.map +7 -0
  408. package/dist/esm/plugins/filterable/useFilterableState.js +88 -0
  409. package/dist/esm/plugins/filterable/useFilterableState.js.map +7 -0
  410. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js +28 -0
  411. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
  412. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +97 -0
  413. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
  414. package/dist/esm/plugins/grouping-grid/walkStrategy.js +47 -0
  415. package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +7 -0
  416. package/dist/esm/plugins/index.js +39 -0
  417. package/dist/esm/plugins/index.js.map +7 -0
  418. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +71 -0
  419. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
  420. package/dist/esm/plugins/infinite-scrolling/index.js +6 -0
  421. package/dist/esm/plugins/infinite-scrolling/index.js.map +7 -0
  422. package/dist/esm/plugins/pagination/PaginationPlugin.js +63 -0
  423. package/dist/esm/plugins/pagination/PaginationPlugin.js.map +7 -0
  424. package/dist/esm/plugins/pagination/components/Pagination.js +34 -0
  425. package/dist/esm/plugins/pagination/components/Pagination.js.map +7 -0
  426. package/dist/esm/plugins/pagination/components/Paginator.js +53 -0
  427. package/dist/esm/plugins/pagination/components/Paginator.js.map +7 -0
  428. package/dist/esm/plugins/pagination/components/PerPageDropdown.js +39 -0
  429. package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +7 -0
  430. package/dist/esm/plugins/pagination/helper.js +33 -0
  431. package/dist/esm/plugins/pagination/helper.js.map +7 -0
  432. package/dist/esm/plugins/pagination/index.js +6 -0
  433. package/dist/esm/plugins/pagination/index.js.map +7 -0
  434. package/dist/esm/plugins/pagination/usePaginationState.js +53 -0
  435. package/dist/esm/plugins/pagination/usePaginationState.js.map +7 -0
  436. package/dist/esm/plugins/resizable/ResizablePlugin.js +80 -0
  437. package/dist/esm/plugins/resizable/ResizablePlugin.js.map +7 -0
  438. package/dist/esm/plugins/resizable/decorateResizable.js +27 -0
  439. package/dist/esm/plugins/resizable/decorateResizable.js.map +7 -0
  440. package/dist/esm/plugins/resizable/index.js +6 -0
  441. package/dist/esm/plugins/resizable/index.js.map +7 -0
  442. package/dist/esm/plugins/resizable/useResizeHandle.js +50 -0
  443. package/dist/esm/plugins/resizable/useResizeHandle.js.map +7 -0
  444. package/dist/esm/plugins/resizable/utils.js +25 -0
  445. package/dist/esm/plugins/resizable/utils.js.map +7 -0
  446. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js +107 -0
  447. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
  448. package/dist/esm/plugins/row-dnd/index.js +6 -0
  449. package/dist/esm/plugins/row-dnd/index.js.map +7 -0
  450. package/dist/esm/plugins/selectable/SelectablePlugin.js +137 -0
  451. package/dist/esm/plugins/selectable/SelectablePlugin.js.map +7 -0
  452. package/dist/esm/plugins/selectable/addSelectableColumn.js +66 -0
  453. package/dist/esm/plugins/selectable/addSelectableColumn.js.map +7 -0
  454. package/dist/esm/plugins/selectable/helper.js +25 -0
  455. package/dist/esm/plugins/selectable/helper.js.map +7 -0
  456. package/dist/esm/plugins/selectable/index.js +6 -0
  457. package/dist/esm/plugins/selectable/index.js.map +7 -0
  458. package/dist/esm/plugins/selectable/selectableFormatter.js +64 -0
  459. package/dist/esm/plugins/selectable/selectableFormatter.js.map +7 -0
  460. package/dist/esm/plugins/selectable/useSelectableState.js +91 -0
  461. package/dist/esm/plugins/selectable/useSelectableState.js.map +7 -0
  462. package/dist/esm/plugins/sortable/SortablePlugin.js +69 -0
  463. package/dist/esm/plugins/sortable/SortablePlugin.js.map +7 -0
  464. package/dist/esm/plugins/sortable/checkIfSortable.js +16 -0
  465. package/dist/esm/plugins/sortable/checkIfSortable.js.map +7 -0
  466. package/dist/esm/plugins/sortable/index.js +6 -0
  467. package/dist/esm/plugins/sortable/index.js.map +7 -0
  468. package/dist/esm/plugins/sortable/sortHeaderFormatter.js +37 -0
  469. package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +7 -0
  470. package/dist/esm/plugins/sortable/sortTree.js +15 -0
  471. package/dist/esm/plugins/sortable/sortTree.js.map +7 -0
  472. package/dist/esm/plugins/sortable/sorter.js +115 -0
  473. package/dist/esm/plugins/sortable/sorter.js.map +7 -0
  474. package/dist/esm/plugins/sortable/useSortableState.js +44 -0
  475. package/dist/esm/plugins/sortable/useSortableState.js.map +7 -0
  476. package/dist/esm/plugins/toolbar/RowRenderer.js +67 -0
  477. package/dist/esm/plugins/toolbar/RowRenderer.js.map +7 -0
  478. package/dist/esm/plugins/toolbar/ToolbarPlugin.js +29 -0
  479. package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +7 -0
  480. package/dist/esm/plugins/toolbar/ToolbarTrigger.js +76 -0
  481. package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +7 -0
  482. package/dist/esm/plugins/toolbar/index.js +6 -0
  483. package/dist/esm/plugins/toolbar/index.js.map +7 -0
  484. package/dist/esm/plugins/virtualization/AutoHeightList.js +42 -0
  485. package/dist/esm/plugins/virtualization/AutoHeightList.js.map +7 -0
  486. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +68 -0
  487. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
  488. package/dist/esm/plugins/virtualization/VirtualizedBody.js +230 -0
  489. package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +7 -0
  490. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +23 -0
  491. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
  492. package/dist/esm/plugins/virtualization/helper.js +6 -0
  493. package/dist/esm/plugins/virtualization/helper.js.map +7 -0
  494. package/dist/esm/plugins/virtualization/index.js +6 -0
  495. package/dist/esm/plugins/virtualization/index.js.map +7 -0
  496. package/dist/esm/renders/CellWithAddons.js +82 -0
  497. package/dist/esm/renders/CellWithAddons.js.map +7 -0
  498. package/dist/esm/renders/index.js +8 -0
  499. package/dist/esm/renders/index.js.map +7 -0
  500. package/dist/esm/renders/styled.js +49 -0
  501. package/dist/esm/renders/styled.js.map +7 -0
  502. package/dist/esm/rowSizes.js +22 -0
  503. package/dist/esm/rowSizes.js.map +7 -0
  504. package/dist/esm/utilities/DataGridUtilities.json +1315 -0
  505. package/dist/esm/utilities/getPluginsFromProps.js +43 -0
  506. package/dist/esm/utilities/getPluginsFromProps.js.map +7 -0
  507. package/dist/esm/utilities/getScrollbarSize.js +17 -0
  508. package/dist/esm/utilities/getScrollbarSize.js.map +7 -0
  509. package/dist/esm/utilities/normalizeData.js +20 -0
  510. package/dist/esm/utilities/normalizeData.js.map +7 -0
  511. package/dist/types/DSDataGrid.d.ts +863 -0
  512. package/dist/types/DataGridImpl.d.ts +13 -0
  513. package/dist/types/PaginatedDataGrid.d.ts +15 -0
  514. package/{types → dist/types}/blockNames.d.ts +0 -0
  515. package/dist/types/columns/IconColumn.d.ts +36 -0
  516. package/{types → dist/types}/columns/NumberColumn.d.ts +0 -0
  517. package/dist/types/components/BodyCell.d.ts +34 -0
  518. package/{types → dist/types}/components/BodyList.d.ts +0 -0
  519. package/dist/types/components/ColumnVisibilityMenuOption.d.ts +15 -0
  520. package/dist/types/components/ColumnsOptionsMenuSection.d.ts +9 -0
  521. package/{types → dist/types}/components/EmptyState.d.ts +0 -0
  522. package/dist/types/components/HeaderCell.d.ts +19 -0
  523. package/{types → dist/types}/components/List.d.ts +0 -0
  524. package/{types → dist/types}/components/ListItem.d.ts +0 -0
  525. package/dist/types/components/NoResults.d.ts +8 -0
  526. package/dist/types/components/RowsLoader.d.ts +5 -0
  527. package/dist/types/components/Table.d.ts +8 -0
  528. package/dist/types/components/TableBody.d.ts +4 -0
  529. package/dist/types/components/TableHeader.d.ts +4 -0
  530. package/dist/types/components/footer/addOptionalFooterComponents.d.ts +7 -0
  531. package/dist/types/components/header/PrimaryControls.d.ts +6 -0
  532. package/dist/types/components/header/addOptionalHeaderComponents.d.ts +11 -0
  533. package/{types → dist/types}/components/index.d.ts +0 -0
  534. package/{types → dist/types}/components/renderers/defaultClassedRenderers.d.ts +0 -0
  535. package/dist/types/components/renderers/index.d.ts +15 -0
  536. package/dist/types/components/renderers/renderRowsLoader.d.ts +2 -0
  537. package/{types → dist/types}/components/tableContext.d.ts +0 -0
  538. package/{types → dist/types}/components/tests/ColumnVisibilityMenu.test.d.ts +0 -0
  539. package/{types → dist/types}/defaultPlugins.d.ts +0 -0
  540. package/dist/types/index.d.ts +9 -0
  541. package/{types → dist/types}/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +0 -0
  542. package/dist/types/plugins/body-header-scroll-sync/index.d.ts +1 -0
  543. package/{types → dist/types}/plugins/column-dnd/DndColumnsPlugin.d.ts +0 -0
  544. package/{types → dist/types}/plugins/column-dnd/decorateGridWithDndColumns.d.ts +0 -0
  545. package/dist/types/plugins/column-dnd/index.d.ts +1 -0
  546. package/{types → dist/types}/plugins/column-sizing/ColumnSizingPlugin.d.ts +0 -0
  547. package/{types → dist/types}/plugins/column-sizing/columnMeasurerTransformer.d.ts +0 -0
  548. package/{types → dist/types}/plugins/column-sizing/ext-points/decorateColumn.d.ts +0 -0
  549. package/{types → dist/types}/plugins/column-sizing/ext-points/getTableProps.d.ts +0 -0
  550. package/dist/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +2 -0
  551. package/dist/types/plugins/column-sizing/index.d.ts +1 -0
  552. package/dist/types/plugins/column-sizing/useColumnSizeService.d.ts +18 -0
  553. package/{types → dist/types}/plugins/column-sizing/useStylesheetHelpers.d.ts +0 -0
  554. package/{types → dist/types}/plugins/column-sizing/utils.d.ts +0 -0
  555. package/{types → dist/types}/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +0 -0
  556. package/dist/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +4 -0
  557. package/dist/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +12 -0
  558. package/dist/types/plugins/custom-cell-renderer/index.d.ts +1 -0
  559. package/dist/types/plugins/editable/EditableComponents/ComboBox.d.ts +12 -0
  560. package/dist/types/plugins/editable/EditableComponents/TextBox.d.ts +24 -0
  561. package/{types → dist/types}/plugins/editable/EditableComponents/index.d.ts +0 -0
  562. package/{types → dist/types}/plugins/editable/EditablePlugin.d.ts +0 -0
  563. package/{types → dist/types}/plugins/editable/decorateEditable.d.ts +0 -0
  564. package/dist/types/plugins/editable/getEditorComponent.d.ts +7 -0
  565. package/dist/types/plugins/editable/index.d.ts +2 -0
  566. package/dist/types/plugins/expandable-grid/ExpandableColumn.d.ts +29 -0
  567. package/{types → dist/types}/plugins/expandable-grid/ExpandablePlugin.d.ts +0 -0
  568. package/dist/types/plugins/expandable-grid/ExpandedRow.d.ts +12 -0
  569. package/dist/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +10 -0
  570. package/dist/types/plugins/expandable-grid/index.d.ts +2 -0
  571. package/{types → dist/types}/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +0 -0
  572. package/{types → dist/types}/plugins/expandable-grid/useExpandGridState.d.ts +0 -0
  573. package/{types → dist/types}/plugins/export-data/ExportDataPlugin.d.ts +0 -0
  574. package/dist/types/plugins/export-data/index.d.ts +1 -0
  575. package/{types → dist/types}/plugins/filterable/FilterablePlugin.d.ts +0 -0
  576. package/{types → dist/types}/plugins/filterable/addFilterToColumn.d.ts +0 -0
  577. package/dist/types/plugins/filterable/components/FilterableHeader.d.ts +29 -0
  578. package/dist/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +31 -0
  579. package/dist/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +28 -0
  580. package/dist/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +31 -0
  581. package/dist/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +36 -0
  582. package/{types → dist/types}/plugins/filterable/components/filterable-menus/defaultDateFormat.d.ts +0 -0
  583. package/dist/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +2 -0
  584. package/dist/types/plugins/filterable/filterableFormatter.d.ts +12 -0
  585. package/dist/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +3 -0
  586. package/dist/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +2 -0
  587. package/{types → dist/types}/plugins/filterable/helper.d.ts +0 -0
  588. package/dist/types/plugins/filterable/index.d.ts +1 -0
  589. package/{types → dist/types}/plugins/filterable/useFilterableState.d.ts +0 -0
  590. package/{types → dist/types}/plugins/grouping-by/GroupingByPlugin.d.ts +0 -0
  591. package/{types → dist/types}/plugins/grouping-grid/GroupingPlugin.d.ts +0 -0
  592. package/{types → dist/types}/plugins/grouping-grid/walkStrategy.d.ts +0 -0
  593. package/dist/types/plugins/index.d.ts +16 -0
  594. package/{types → dist/types}/plugins/infinite-scrolling/InfiniteScrollPlugin.d.ts +0 -0
  595. package/dist/types/plugins/infinite-scrolling/index.d.ts +1 -0
  596. package/{types → dist/types}/plugins/pagination/PaginationPlugin.d.ts +0 -0
  597. package/{types → dist/types}/plugins/pagination/components/Pagination.d.ts +0 -0
  598. package/dist/types/plugins/pagination/components/Paginator.d.ts +10 -0
  599. package/dist/types/plugins/pagination/components/PerPageDropdown.d.ts +10 -0
  600. package/dist/types/plugins/pagination/helper.d.ts +18 -0
  601. package/dist/types/plugins/pagination/index.d.ts +1 -0
  602. package/{types → dist/types}/plugins/pagination/usePaginationState.d.ts +0 -0
  603. package/{types → dist/types}/plugins/resizable/ResizablePlugin.d.ts +0 -0
  604. package/{types → dist/types}/plugins/resizable/decorateResizable.d.ts +0 -0
  605. package/dist/types/plugins/resizable/index.d.ts +1 -0
  606. package/{types → dist/types}/plugins/resizable/useResizeHandle.d.ts +0 -0
  607. package/{types → dist/types}/plugins/resizable/utils.d.ts +0 -0
  608. package/{types → dist/types}/plugins/row-dnd/DndRowsPlugin.d.ts +0 -0
  609. package/dist/types/plugins/row-dnd/index.d.ts +1 -0
  610. package/{types → dist/types}/plugins/selectable/SelectablePlugin.d.ts +0 -0
  611. package/{types → dist/types}/plugins/selectable/addSelectableColumn.d.ts +0 -0
  612. package/{types → dist/types}/plugins/selectable/helper.d.ts +0 -0
  613. package/dist/types/plugins/selectable/index.d.ts +1 -0
  614. package/dist/types/plugins/selectable/selectableFormatter.d.ts +10 -0
  615. package/{types → dist/types}/plugins/selectable/useSelectableState.d.ts +0 -0
  616. package/{types → dist/types}/plugins/sortable/SortablePlugin.d.ts +0 -0
  617. package/{types → dist/types}/plugins/sortable/checkIfSortable.d.ts +0 -0
  618. package/dist/types/plugins/sortable/index.d.ts +1 -0
  619. package/dist/types/plugins/sortable/sortHeaderFormatter.d.ts +7 -0
  620. package/dist/types/plugins/sortable/sortTree.d.ts +3 -0
  621. package/dist/types/plugins/sortable/sorter.d.ts +12 -0
  622. package/{types → dist/types}/plugins/sortable/useSortableState.d.ts +0 -0
  623. package/{types → dist/types}/plugins/toolbar/RowRenderer.d.ts +0 -0
  624. package/{types → dist/types}/plugins/toolbar/ToolbarPlugin.d.ts +0 -0
  625. package/{types → dist/types}/plugins/toolbar/ToolbarTrigger.d.ts +0 -0
  626. package/dist/types/plugins/toolbar/index.d.ts +1 -0
  627. package/dist/types/plugins/virtualization/AutoHeightList.d.ts +3 -0
  628. package/{types → dist/types}/plugins/virtualization/VirtualizationPlugin.d.ts +0 -0
  629. package/dist/types/plugins/virtualization/VirtualizedBody.d.ts +33 -0
  630. package/dist/types/plugins/virtualization/VirtualizedBodyRow.d.ts +8 -0
  631. package/{types → dist/types}/plugins/virtualization/helper.d.ts +0 -0
  632. package/dist/types/plugins/virtualization/index.d.ts +1 -0
  633. package/{types → dist/types}/renders/CellWithAddons.d.ts +0 -0
  634. package/{types → dist/types}/renders/index.d.ts +0 -0
  635. package/dist/types/renders/styled.d.ts +4 -0
  636. package/{types → dist/types}/rowSizes.d.ts +0 -0
  637. package/{types → dist/types}/stories/datagrids-export.stories.d.ts +0 -0
  638. package/{types → dist/types}/stories/datagrids-selectable-multi.stories.d.ts +0 -0
  639. package/{types → dist/types}/tests/DataGrid-Columns.test.d.ts +0 -0
  640. package/{types → dist/types}/tests/DataGrid-Editable.test.d.ts +0 -0
  641. package/{types → dist/types}/tests/DataGrid-Export.test.d.ts +0 -0
  642. package/{types → dist/types}/tests/DataGrid-Filter-helper.test.d.ts +0 -0
  643. package/{types → dist/types}/tests/DataGrid-Filterable-Dates.test.d.ts +0 -0
  644. package/{types → dist/types}/tests/DataGrid-Filterable-State.test.d.ts +0 -0
  645. package/{types → dist/types}/tests/DataGrid-RowDnd.test.d.ts +0 -0
  646. package/{types → dist/types}/tests/DataGrid-Selectable.test.d.ts +0 -0
  647. package/{types → dist/types}/tests/DataGrid-Sortable.test.d.ts +0 -0
  648. package/{types → dist/types}/tests/DataGrid-Toolbar.test.d.ts +0 -0
  649. package/{types → dist/types}/tests/DataGrid-Virtualization.test.d.ts +0 -0
  650. package/{types → dist/types}/tests/DataGrids-ColumnSizing.test.d.ts +0 -0
  651. package/{types → dist/types}/tests/DataGrids-ConditionalPagination.test.d.ts +0 -0
  652. package/{types → dist/types}/tests/DataGrids-Rows.test.d.ts +0 -0
  653. package/{types → dist/types}/tests/DataGrids.test.d.ts +0 -0
  654. package/dist/types/utilities/getPluginsFromProps.d.ts +2 -0
  655. package/{types → dist/types}/utilities/getScrollbarSize.d.ts +0 -0
  656. package/{types → dist/types}/utilities/normalizeData.d.ts +0 -0
  657. package/package.json +294 -287
  658. package/cjs/DSDataGrid.js +0 -639
  659. package/cjs/DataGridImpl.js +0 -169
  660. package/cjs/PaginatedDataGrid.js +0 -77
  661. package/cjs/blockNames.js +0 -11
  662. package/cjs/columns/IconColumn.js +0 -95
  663. package/cjs/columns/NumberColumn.js +0 -6
  664. package/cjs/components/BodyCell.js +0 -101
  665. package/cjs/components/BodyList.js +0 -54
  666. package/cjs/components/ColumnVisibilityMenuOption.js +0 -44
  667. package/cjs/components/ColumnsOptionsMenuSection.js +0 -49
  668. package/cjs/components/EmptyState.js +0 -51
  669. package/cjs/components/HeaderCell.js +0 -70
  670. package/cjs/components/List.js +0 -32
  671. package/cjs/components/ListItem.js +0 -44
  672. package/cjs/components/NoResults.js +0 -51
  673. package/cjs/components/RowsLoader.js +0 -22
  674. package/cjs/components/Table.js +0 -122
  675. package/cjs/components/TableBody.js +0 -69
  676. package/cjs/components/TableHeader.js +0 -37
  677. package/cjs/components/footer/addOptionalFooterComponents.js +0 -46
  678. package/cjs/components/header/PrimaryControls.js +0 -36
  679. package/cjs/components/header/addOptionalHeaderComponents.js +0 -47
  680. package/cjs/components/index.js +0 -17
  681. package/cjs/components/renderers/defaultClassedRenderers.js +0 -59
  682. package/cjs/components/renderers/index.js +0 -23
  683. package/cjs/components/renderers/renderRowsLoader.js +0 -18
  684. package/cjs/components/tableContext.js +0 -13
  685. package/cjs/defaultPlugins.js +0 -12
  686. package/cjs/index.js +0 -67
  687. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -143
  688. package/cjs/plugins/body-header-scroll-sync/index.js +0 -9
  689. package/cjs/plugins/column-dnd/DndColumnsPlugin.js +0 -134
  690. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +0 -30
  691. package/cjs/plugins/column-dnd/index.js +0 -9
  692. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +0 -88
  693. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +0 -74
  694. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +0 -17
  695. package/cjs/plugins/column-sizing/ext-points/getTableProps.js +0 -63
  696. package/cjs/plugins/column-sizing/getColumnNameFromProperty.js +0 -9
  697. package/cjs/plugins/column-sizing/index.js +0 -9
  698. package/cjs/plugins/column-sizing/useColumnSizeService.js +0 -162
  699. package/cjs/plugins/column-sizing/useStylesheetHelpers.js +0 -270
  700. package/cjs/plugins/column-sizing/utils.js +0 -45
  701. package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -18
  702. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -72
  703. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +0 -65
  704. package/cjs/plugins/custom-cell-renderer/index.js +0 -9
  705. package/cjs/plugins/editable/EditableComponents/ComboBox.js +0 -71
  706. package/cjs/plugins/editable/EditableComponents/TextBox.js +0 -110
  707. package/cjs/plugins/editable/EditableComponents/index.js +0 -11
  708. package/cjs/plugins/editable/EditablePlugin.js +0 -123
  709. package/cjs/plugins/editable/decorateEditable.js +0 -122
  710. package/cjs/plugins/editable/getEditorComponent.js +0 -82
  711. package/cjs/plugins/editable/index.js +0 -13
  712. package/cjs/plugins/expandable-grid/ExpandableColumn.js +0 -156
  713. package/cjs/plugins/expandable-grid/ExpandablePlugin.js +0 -243
  714. package/cjs/plugins/expandable-grid/ExpandedRow.js +0 -156
  715. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +0 -54
  716. package/cjs/plugins/expandable-grid/index.js +0 -11
  717. package/cjs/plugins/expandable-grid/useExpandGridState.js +0 -79
  718. package/cjs/plugins/export-data/ExportDataPlugin.js +0 -168
  719. package/cjs/plugins/export-data/index.js +0 -12
  720. package/cjs/plugins/filterable/FilterablePlugin.js +0 -81
  721. package/cjs/plugins/filterable/addFilterToColumn.js +0 -31
  722. package/cjs/plugins/filterable/components/FilterableHeader.js +0 -120
  723. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -157
  724. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -107
  725. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -195
  726. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -174
  727. package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -7
  728. package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -18
  729. package/cjs/plugins/filterable/filterableFormatter.js +0 -63
  730. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -74
  731. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +0 -23
  732. package/cjs/plugins/filterable/helper.js +0 -120
  733. package/cjs/plugins/filterable/index.js +0 -9
  734. package/cjs/plugins/filterable/useFilterableState.js +0 -117
  735. package/cjs/plugins/grouping-by/GroupingByPlugin.js +0 -40
  736. package/cjs/plugins/grouping-grid/GroupingPlugin.js +0 -149
  737. package/cjs/plugins/grouping-grid/walkStrategy.js +0 -56
  738. package/cjs/plugins/index.js +0 -48
  739. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -124
  740. package/cjs/plugins/infinite-scrolling/index.js +0 -9
  741. package/cjs/plugins/pagination/PaginationPlugin.js +0 -109
  742. package/cjs/plugins/pagination/components/Pagination.js +0 -44
  743. package/cjs/plugins/pagination/components/Paginator.js +0 -67
  744. package/cjs/plugins/pagination/components/PerPageDropdown.js +0 -80
  745. package/cjs/plugins/pagination/helper.js +0 -41
  746. package/cjs/plugins/pagination/index.js +0 -9
  747. package/cjs/plugins/pagination/usePaginationState.js +0 -74
  748. package/cjs/plugins/resizable/ResizablePlugin.js +0 -113
  749. package/cjs/plugins/resizable/decorateResizable.js +0 -60
  750. package/cjs/plugins/resizable/index.js +0 -9
  751. package/cjs/plugins/resizable/useResizeHandle.js +0 -73
  752. package/cjs/plugins/resizable/utils.js +0 -33
  753. package/cjs/plugins/row-dnd/DndRowsPlugin.js +0 -115
  754. package/cjs/plugins/row-dnd/index.js +0 -9
  755. package/cjs/plugins/selectable/SelectablePlugin.js +0 -199
  756. package/cjs/plugins/selectable/addSelectableColumn.js +0 -93
  757. package/cjs/plugins/selectable/helper.js +0 -43
  758. package/cjs/plugins/selectable/index.js +0 -9
  759. package/cjs/plugins/selectable/selectableFormatter.js +0 -115
  760. package/cjs/plugins/selectable/useSelectableState.js +0 -143
  761. package/cjs/plugins/sortable/SortablePlugin.js +0 -109
  762. package/cjs/plugins/sortable/checkIfSortable.js +0 -22
  763. package/cjs/plugins/sortable/index.js +0 -9
  764. package/cjs/plugins/sortable/sortHeaderFormatter.js +0 -60
  765. package/cjs/plugins/sortable/sortTree.js +0 -51
  766. package/cjs/plugins/sortable/sorter.js +0 -176
  767. package/cjs/plugins/sortable/useSortableState.js +0 -99
  768. package/cjs/plugins/toolbar/RowRenderer.js +0 -97
  769. package/cjs/plugins/toolbar/ToolbarPlugin.js +0 -42
  770. package/cjs/plugins/toolbar/ToolbarTrigger.js +0 -86
  771. package/cjs/plugins/toolbar/index.js +0 -9
  772. package/cjs/plugins/virtualization/AutoHeightList.js +0 -59
  773. package/cjs/plugins/virtualization/VirtualizationPlugin.js +0 -108
  774. package/cjs/plugins/virtualization/VirtualizedBody.js +0 -275
  775. package/cjs/plugins/virtualization/VirtualizedBodyRow.js +0 -30
  776. package/cjs/plugins/virtualization/helper.js +0 -7
  777. package/cjs/plugins/virtualization/index.js +0 -9
  778. package/cjs/renders/CellWithAddons.js +0 -63
  779. package/cjs/renders/index.js +0 -11
  780. package/cjs/renders/styled.js +0 -27
  781. package/cjs/rowSizes.js +0 -19
  782. package/cjs/utilities/getPluginsFromProps.js +0 -44
  783. package/cjs/utilities/getScrollbarSize.js +0 -27
  784. package/cjs/utilities/normalizeData.js +0 -39
  785. package/esm/DSDataGrid.js +0 -630
  786. package/esm/DataGridImpl.js +0 -160
  787. package/esm/PaginatedDataGrid.js +0 -68
  788. package/esm/blockNames.js +0 -5
  789. package/esm/columns/IconColumn.js +0 -87
  790. package/esm/columns/NumberColumn.js +0 -4
  791. package/esm/components/BodyCell.js +0 -92
  792. package/esm/components/BodyList.js +0 -45
  793. package/esm/components/ColumnVisibilityMenuOption.js +0 -40
  794. package/esm/components/ColumnsOptionsMenuSection.js +0 -43
  795. package/esm/components/EmptyState.js +0 -41
  796. package/esm/components/HeaderCell.js +0 -62
  797. package/esm/components/List.js +0 -26
  798. package/esm/components/ListItem.js +0 -38
  799. package/esm/components/NoResults.js +0 -43
  800. package/esm/components/RowsLoader.js +0 -15
  801. package/esm/components/Table.js +0 -115
  802. package/esm/components/TableBody.js +0 -61
  803. package/esm/components/TableHeader.js +0 -31
  804. package/esm/components/footer/addOptionalFooterComponents.js +0 -40
  805. package/esm/components/header/PrimaryControls.js +0 -30
  806. package/esm/components/header/addOptionalHeaderComponents.js +0 -40
  807. package/esm/components/index.js +0 -5
  808. package/esm/components/renderers/defaultClassedRenderers.js +0 -46
  809. package/esm/components/renderers/index.js +0 -18
  810. package/esm/components/renderers/renderRowsLoader.js +0 -10
  811. package/esm/components/tableContext.js +0 -5
  812. package/esm/defaultPlugins.js +0 -8
  813. package/esm/index.js +0 -27
  814. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -132
  815. package/esm/plugins/body-header-scroll-sync/index.js +0 -1
  816. package/esm/plugins/column-dnd/DndColumnsPlugin.js +0 -125
  817. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +0 -22
  818. package/esm/plugins/column-dnd/index.js +0 -1
  819. package/esm/plugins/column-sizing/ColumnSizingPlugin.js +0 -80
  820. package/esm/plugins/column-sizing/columnMeasurerTransformer.js +0 -66
  821. package/esm/plugins/column-sizing/ext-points/decorateColumn.js +0 -13
  822. package/esm/plugins/column-sizing/ext-points/getTableProps.js +0 -55
  823. package/esm/plugins/column-sizing/getColumnNameFromProperty.js +0 -7
  824. package/esm/plugins/column-sizing/index.js +0 -1
  825. package/esm/plugins/column-sizing/useColumnSizeService.js +0 -156
  826. package/esm/plugins/column-sizing/useStylesheetHelpers.js +0 -245
  827. package/esm/plugins/column-sizing/utils.js +0 -37
  828. package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -10
  829. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -63
  830. package/esm/plugins/custom-cell-renderer/getRendererComponent.js +0 -56
  831. package/esm/plugins/custom-cell-renderer/index.js +0 -1
  832. package/esm/plugins/editable/EditableComponents/ComboBox.js +0 -65
  833. package/esm/plugins/editable/EditableComponents/TextBox.js +0 -103
  834. package/esm/plugins/editable/EditableComponents/index.js +0 -2
  835. package/esm/plugins/editable/EditablePlugin.js +0 -115
  836. package/esm/plugins/editable/decorateEditable.js +0 -92
  837. package/esm/plugins/editable/getEditorComponent.js +0 -74
  838. package/esm/plugins/editable/index.js +0 -3
  839. package/esm/plugins/expandable-grid/ExpandableColumn.js +0 -146
  840. package/esm/plugins/expandable-grid/ExpandablePlugin.js +0 -231
  841. package/esm/plugins/expandable-grid/ExpandedRow.js +0 -143
  842. package/esm/plugins/expandable-grid/ExpandedRowExtra.js +0 -46
  843. package/esm/plugins/expandable-grid/index.js +0 -2
  844. package/esm/plugins/expandable-grid/useExpandGridState.js +0 -75
  845. package/esm/plugins/export-data/ExportDataPlugin.js +0 -156
  846. package/esm/plugins/export-data/index.js +0 -1
  847. package/esm/plugins/filterable/FilterablePlugin.js +0 -73
  848. package/esm/plugins/filterable/addFilterToColumn.js +0 -23
  849. package/esm/plugins/filterable/components/FilterableHeader.js +0 -113
  850. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -148
  851. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -97
  852. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -184
  853. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -163
  854. package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -3
  855. package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -16
  856. package/esm/plugins/filterable/filterableFormatter.js +0 -57
  857. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -65
  858. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +0 -17
  859. package/esm/plugins/filterable/helper.js +0 -106
  860. package/esm/plugins/filterable/index.js +0 -1
  861. package/esm/plugins/filterable/useFilterableState.js +0 -109
  862. package/esm/plugins/grouping-by/GroupingByPlugin.js +0 -32
  863. package/esm/plugins/grouping-grid/GroupingPlugin.js +0 -138
  864. package/esm/plugins/grouping-grid/walkStrategy.js +0 -52
  865. package/esm/plugins/index.js +0 -19
  866. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -114
  867. package/esm/plugins/infinite-scrolling/index.js +0 -1
  868. package/esm/plugins/pagination/PaginationPlugin.js +0 -96
  869. package/esm/plugins/pagination/components/Pagination.js +0 -36
  870. package/esm/plugins/pagination/components/Paginator.js +0 -59
  871. package/esm/plugins/pagination/components/PerPageDropdown.js +0 -71
  872. package/esm/plugins/pagination/helper.js +0 -36
  873. package/esm/plugins/pagination/index.js +0 -1
  874. package/esm/plugins/pagination/usePaginationState.js +0 -66
  875. package/esm/plugins/resizable/ResizablePlugin.js +0 -105
  876. package/esm/plugins/resizable/decorateResizable.js +0 -49
  877. package/esm/plugins/resizable/index.js +0 -1
  878. package/esm/plugins/resizable/useResizeHandle.js +0 -65
  879. package/esm/plugins/resizable/utils.js +0 -23
  880. package/esm/plugins/row-dnd/DndRowsPlugin.js +0 -105
  881. package/esm/plugins/row-dnd/index.js +0 -1
  882. package/esm/plugins/selectable/SelectablePlugin.js +0 -190
  883. package/esm/plugins/selectable/addSelectableColumn.js +0 -84
  884. package/esm/plugins/selectable/helper.js +0 -31
  885. package/esm/plugins/selectable/index.js +0 -1
  886. package/esm/plugins/selectable/selectableFormatter.js +0 -107
  887. package/esm/plugins/selectable/useSelectableState.js +0 -135
  888. package/esm/plugins/sortable/SortablePlugin.js +0 -82
  889. package/esm/plugins/sortable/checkIfSortable.js +0 -17
  890. package/esm/plugins/sortable/index.js +0 -1
  891. package/esm/plugins/sortable/sortHeaderFormatter.js +0 -53
  892. package/esm/plugins/sortable/sortTree.js +0 -26
  893. package/esm/plugins/sortable/sorter.js +0 -166
  894. package/esm/plugins/sortable/useSortableState.js +0 -71
  895. package/esm/plugins/toolbar/RowRenderer.js +0 -88
  896. package/esm/plugins/toolbar/ToolbarPlugin.js +0 -33
  897. package/esm/plugins/toolbar/ToolbarTrigger.js +0 -74
  898. package/esm/plugins/toolbar/index.js +0 -1
  899. package/esm/plugins/virtualization/AutoHeightList.js +0 -52
  900. package/esm/plugins/virtualization/VirtualizationPlugin.js +0 -97
  901. package/esm/plugins/virtualization/VirtualizedBody.js +0 -268
  902. package/esm/plugins/virtualization/VirtualizedBodyRow.js +0 -28
  903. package/esm/plugins/virtualization/helper.js +0 -3
  904. package/esm/plugins/virtualization/index.js +0 -1
  905. package/esm/renders/CellWithAddons.js +0 -53
  906. package/esm/renders/index.js +0 -2
  907. package/esm/renders/styled.js +0 -16
  908. package/esm/rowSizes.js +0 -13
  909. package/esm/utilities/getPluginsFromProps.js +0 -42
  910. package/esm/utilities/getScrollbarSize.js +0 -23
  911. package/esm/utilities/normalizeData.js +0 -29
  912. package/types/DSDataGrid.d.ts +0 -863
  913. package/types/DataGridImpl.d.ts +0 -12
  914. package/types/PaginatedDataGrid.d.ts +0 -16
  915. package/types/columns/IconColumn.d.ts +0 -35
  916. package/types/components/BodyCell.d.ts +0 -33
  917. package/types/components/ColumnVisibilityMenuOption.d.ts +0 -15
  918. package/types/components/ColumnsOptionsMenuSection.d.ts +0 -8
  919. package/types/components/HeaderCell.d.ts +0 -19
  920. package/types/components/NoResults.d.ts +0 -8
  921. package/types/components/RowsLoader.d.ts +0 -5
  922. package/types/components/Table.d.ts +0 -13
  923. package/types/components/TableBody.d.ts +0 -9
  924. package/types/components/TableHeader.d.ts +0 -3
  925. package/types/components/footer/addOptionalFooterComponents.d.ts +0 -6
  926. package/types/components/header/PrimaryControls.d.ts +0 -5
  927. package/types/components/header/addOptionalHeaderComponents.d.ts +0 -11
  928. package/types/components/renderers/index.d.ts +0 -15
  929. package/types/components/renderers/renderRowsLoader.d.ts +0 -2
  930. package/types/index.d.ts +0 -10
  931. package/types/plugins/body-header-scroll-sync/index.d.ts +0 -1
  932. package/types/plugins/column-dnd/index.d.ts +0 -1
  933. package/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +0 -1
  934. package/types/plugins/column-sizing/index.d.ts +0 -1
  935. package/types/plugins/column-sizing/useColumnSizeService.d.ts +0 -17
  936. package/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +0 -3
  937. package/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +0 -11
  938. package/types/plugins/custom-cell-renderer/index.d.ts +0 -1
  939. package/types/plugins/editable/EditableComponents/ComboBox.d.ts +0 -10
  940. package/types/plugins/editable/EditableComponents/TextBox.d.ts +0 -22
  941. package/types/plugins/editable/getEditorComponent.d.ts +0 -6
  942. package/types/plugins/editable/index.d.ts +0 -2
  943. package/types/plugins/expandable-grid/ExpandableColumn.d.ts +0 -28
  944. package/types/plugins/expandable-grid/ExpandedRow.d.ts +0 -11
  945. package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +0 -9
  946. package/types/plugins/expandable-grid/index.d.ts +0 -2
  947. package/types/plugins/export-data/index.d.ts +0 -1
  948. package/types/plugins/filterable/components/FilterableHeader.d.ts +0 -29
  949. package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +0 -30
  950. package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +0 -27
  951. package/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +0 -30
  952. package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +0 -35
  953. package/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +0 -1
  954. package/types/plugins/filterable/filterableFormatter.d.ts +0 -11
  955. package/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +0 -2
  956. package/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +0 -2
  957. package/types/plugins/filterable/index.d.ts +0 -1
  958. package/types/plugins/index.d.ts +0 -16
  959. package/types/plugins/infinite-scrolling/index.d.ts +0 -1
  960. package/types/plugins/pagination/components/Paginator.d.ts +0 -9
  961. package/types/plugins/pagination/components/PerPageDropdown.d.ts +0 -9
  962. package/types/plugins/pagination/helper.d.ts +0 -17
  963. package/types/plugins/pagination/index.d.ts +0 -1
  964. package/types/plugins/resizable/index.d.ts +0 -1
  965. package/types/plugins/row-dnd/index.d.ts +0 -1
  966. package/types/plugins/selectable/index.d.ts +0 -1
  967. package/types/plugins/selectable/selectableFormatter.d.ts +0 -9
  968. package/types/plugins/sortable/index.d.ts +0 -1
  969. package/types/plugins/sortable/sortHeaderFormatter.d.ts +0 -6
  970. package/types/plugins/sortable/sortTree.d.ts +0 -2
  971. package/types/plugins/sortable/sorter.d.ts +0 -12
  972. package/types/plugins/toolbar/index.d.ts +0 -1
  973. package/types/plugins/virtualization/AutoHeightList.d.ts +0 -3
  974. package/types/plugins/virtualization/VirtualizedBody.d.ts +0 -32
  975. package/types/plugins/virtualization/VirtualizedBodyRow.d.ts +0 -8
  976. package/types/plugins/virtualization/index.d.ts +0 -1
  977. package/types/renders/styled.d.ts +0 -3
  978. package/types/utilities/getPluginsFromProps.d.ts +0 -1
@@ -0,0 +1,57 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var GroupingByPlugin_exports = {};
29
+ __export(GroupingByPlugin_exports, {
30
+ GroupingByPlugin: () => GroupingByPlugin
31
+ });
32
+ var React = __toESM(require("react"));
33
+ var import_createInstancePlugin = require("@elliemae/ds-shared/createDataInstance/createInstancePlugin");
34
+ var import_lodash = require("lodash");
35
+ const groupedByData = (groupedBy, composedRows) => {
36
+ const grouped = (0, import_lodash.groupBy)(composedRows, groupedBy);
37
+ return Object.keys(grouped).map((c, key) => ({
38
+ id: `grouped-by-${groupedBy}-${key}`,
39
+ key: groupedBy,
40
+ value: c,
41
+ children: grouped[c],
42
+ _isGroup: true,
43
+ isGroup: true
44
+ }));
45
+ };
46
+ const GroupingByPlugin = (0, import_createInstancePlugin.createInstancePlugin)("groupedByRows", {
47
+ decorateGrid(grid) {
48
+ const {
49
+ composedRows,
50
+ props: { groupedBy }
51
+ } = grid.getInstance();
52
+ grid.composedRows = groupedBy ? groupedByData(groupedBy, composedRows) : composedRows;
53
+ return grid;
54
+ }
55
+ });
56
+ module.exports = __toCommonJS(GroupingByPlugin_exports);
57
+ //# sourceMappingURL=GroupingByPlugin.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/plugins/grouping-by/GroupingByPlugin.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { createInstancePlugin } from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';\nimport { groupBy } from 'lodash';\n\nconst groupedByData = (groupedBy, composedRows) => {\n const grouped = groupBy(composedRows, groupedBy);\n return Object.keys(grouped).map((c, key) => ({\n id: `grouped-by-${groupedBy}-${key}`,\n key: groupedBy,\n value: c,\n children: grouped[c],\n _isGroup: true,\n isGroup: true,\n }));\n};\n\nexport const GroupingByPlugin = createInstancePlugin('groupedByRows', {\n decorateGrid(grid) {\n const {\n composedRows,\n props: { groupedBy },\n } = grid.getInstance();\n grid.composedRows = groupedBy\n ? groupedByData(groupedBy, composedRows)\n : composedRows;\n return grid;\n },\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,kCAAqC;AACrC,oBAAwB;AAExB,MAAM,gBAAgB,CAAC,WAAW,iBAAiB;AACjD,QAAM,UAAU,2BAAQ,cAAc;AACtC,SAAO,OAAO,KAAK,SAAS,IAAI,CAAC,GAAG,QAAS;AAAA,IAC3C,IAAI,cAAc,aAAa;AAAA,IAC/B,KAAK;AAAA,IACL,OAAO;AAAA,IACP,UAAU,QAAQ;AAAA,IAClB,UAAU;AAAA,IACV,SAAS;AAAA;AAAA;AAIN,MAAM,mBAAmB,sDAAqB,iBAAiB;AAAA,EACpE,aAAa,MAAM;AACjB,UAAM;AAAA,MACJ;AAAA,MACA,OAAO,EAAE;AAAA,QACP,KAAK;AACT,SAAK,eAAe,YAChB,cAAc,WAAW,gBACzB;AACJ,WAAO;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,126 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var GroupingPlugin_exports = {};
29
+ __export(GroupingPlugin_exports, {
30
+ GroupingPlugin: () => GroupingPlugin
31
+ });
32
+ var React = __toESM(require("react"));
33
+ var import_react = __toESM(require("react"));
34
+ var import_createInstancePlugin = require("@elliemae/ds-shared/createDataInstance/createInstancePlugin");
35
+ var import_ds_classnames = require("@elliemae/ds-classnames");
36
+ var import_react_window = require("react-window");
37
+ var import_walkStrategy = require("./walkStrategy");
38
+ var import_rowSizes = require("../../rowSizes");
39
+ var import_blockNames = require("../../blockNames");
40
+ const blockName = `${import_blockNames.dataGridBlockName}-group-row-header`;
41
+ const GroupRowHeaderWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(blockName);
42
+ const GroupRowHeaderTitle = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "title");
43
+ const GroupingPlugin = (0, import_createInstancePlugin.createInstancePlugin)("groupedRows", {
44
+ decorateGrid(grid) {
45
+ const { columns, composedRows } = grid.getInstance();
46
+ const detailColumns = (0, import_react.useMemo)(() => columns.map((column) => ({
47
+ ...column,
48
+ customRenderer: column.detailCustomRenderer
49
+ })).filter((col) => !col.expandableColumn), [columns]);
50
+ const flatRows = [];
51
+ (0, import_walkStrategy.walkTreeStrategy)({
52
+ data: composedRows,
53
+ cb: (n) => flatRows.push(n)
54
+ });
55
+ return {
56
+ detailColumns,
57
+ composedRows: flatRows
58
+ };
59
+ },
60
+ getBodyProps(bodyProps, grid) {
61
+ const { composedRows: rows } = grid.getInstance();
62
+ const getItemSize = (index) => {
63
+ const rowData = rows[index];
64
+ if (!rowData)
65
+ return import_rowSizes.RowSizes.normal;
66
+ return rowData._isGroup || rowData.isGroup ? import_rowSizes.RowSizes.compact : import_rowSizes.RowSizes.normal;
67
+ };
68
+ const getListHeight = () => {
69
+ const size = rows.reduce((h, r) => {
70
+ const rowHeight = r._isGroup || r.isGroup ? import_rowSizes.RowSizes.compact : import_rowSizes.RowSizes.normal;
71
+ return h + rowHeight;
72
+ }, 0);
73
+ return size;
74
+ };
75
+ return {
76
+ ...bodyProps,
77
+ getListHeight,
78
+ listComponent: import_react_window.VariableSizeList,
79
+ listProps: { itemSize: getItemSize }
80
+ };
81
+ },
82
+ composeRows: (rows, grid) => {
83
+ const {
84
+ composedRows,
85
+ props: { rowKey }
86
+ } = grid.getInstance();
87
+ if (Array.isArray(rows)) {
88
+ const filterIds = rows.map((r) => r.data[rowKey]);
89
+ return composedRows.filter((c) => filterIds.includes(c.data[rowKey])).map((r) => ({
90
+ ...r.data,
91
+ children: Array.isArray(r.data.children) ? r.data.children.filter((c) => filterIds.includes(c[rowKey])) : r.data.children,
92
+ _isGroup: r.isGroup
93
+ })).filter((g) => g.children === void 0 || g.children.length > 0);
94
+ }
95
+ return {
96
+ ...rows,
97
+ allRows: rows.allRows.map((r) => ({
98
+ ...r.data,
99
+ _isGroup: r.isGroup
100
+ })),
101
+ rows: rows.rows.map((r) => ({
102
+ ...r.data,
103
+ _isGroup: r.isGroup
104
+ }))
105
+ };
106
+ },
107
+ decorateRenderers(renderers, grid) {
108
+ const Row = renderers.body.row;
109
+ renderers.body.row = (0, import_react.useMemo)(() => ({ isExpanded, ...rowProps }) => {
110
+ const { composedRows } = grid.getInstance();
111
+ const node = composedRows[rowProps.index] ? composedRows[rowProps.index] : rowProps.rowData;
112
+ const { groupedRowsRenderHeader } = grid.props;
113
+ if (node && node._isGroup) {
114
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(GroupRowHeaderWrapper, {
115
+ ...rowProps
116
+ }, /* @__PURE__ */ import_react.default.createElement(GroupRowHeaderTitle, null, groupedRowsRenderHeader ? groupedRowsRenderHeader(node) : "Group")));
117
+ }
118
+ return /* @__PURE__ */ import_react.default.createElement(Row, {
119
+ ...rowProps
120
+ });
121
+ }, []);
122
+ return renderers;
123
+ }
124
+ });
125
+ module.exports = __toCommonJS(GroupingPlugin_exports);
126
+ //# sourceMappingURL=GroupingPlugin.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/plugins/grouping-grid/GroupingPlugin.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable max-lines */\n/* eslint-disable no-underscore-dangle */\nimport React, { useMemo } from 'react';\nimport { createInstancePlugin } from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { VariableSizeList } from 'react-window';\nimport { walkTreeStrategy } from './walkStrategy';\nimport { RowSizes } from '../../rowSizes';\nimport { dataGridBlockName } from '../../blockNames';\n\nconst blockName = `${dataGridBlockName}-group-row-header`;\nconst GroupRowHeaderWrapper = aggregatedClasses('div')(blockName);\nconst GroupRowHeaderTitle = aggregatedClasses('div')(blockName, 'title');\n\nexport const GroupingPlugin = createInstancePlugin('groupedRows', {\n decorateGrid(grid) {\n const { columns, composedRows } = grid.getInstance();\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const detailColumns = useMemo(\n () =>\n columns\n .map((column) => ({\n ...column,\n customRenderer: column.detailCustomRenderer,\n }))\n .filter((col) => !col.expandableColumn),\n [columns],\n );\n const flatRows = [];\n walkTreeStrategy({\n data: composedRows,\n cb: (n) => flatRows.push(n),\n });\n return {\n detailColumns,\n composedRows: flatRows,\n };\n },\n getBodyProps(bodyProps, grid) {\n const { composedRows: rows } = grid.getInstance();\n // implementation of expandable row single column with aggregation\n const getItemSize = (index) => {\n const rowData = rows[index];\n if (!rowData) return RowSizes.normal;\n return rowData._isGroup || rowData.isGroup\n ? RowSizes.compact\n : RowSizes.normal;\n };\n // eslint-disable-next-line no-unused-vars\n const getListHeight = () => {\n const size = rows.reduce((h, r) => {\n const rowHeight =\n r._isGroup || r.isGroup ? RowSizes.compact : RowSizes.normal;\n return h + rowHeight;\n }, 0);\n return size;\n };\n return {\n ...bodyProps,\n getListHeight,\n listComponent: VariableSizeList,\n listProps: { itemSize: getItemSize },\n };\n },\n composeRows: (rows, grid) => {\n const {\n composedRows,\n props: { rowKey },\n } = grid.getInstance();\n\n if (Array.isArray(rows)) {\n const filterIds = rows.map((r) => r.data[rowKey]);\n return composedRows\n .filter((c) => filterIds.includes(c.data[rowKey]))\n .map((r) => ({\n ...r.data,\n children: Array.isArray(r.data.children)\n ? r.data.children.filter((c) => filterIds.includes(c[rowKey]))\n : r.data.children,\n _isGroup: r.isGroup,\n }))\n .filter((g) => g.children === undefined || g.children.length > 0);\n }\n return {\n ...rows,\n allRows: rows.allRows.map((r) => ({\n ...r.data,\n _isGroup: r.isGroup,\n })),\n rows: rows.rows.map((r) => ({\n ...r.data,\n _isGroup: r.isGroup,\n })),\n };\n },\n decorateRenderers(renderers, grid) {\n const Row = renderers.body.row;\n // eslint-disable-next-line react-hooks/rules-of-hooks\n renderers.body.row = useMemo(\n () =>\n // eslint-disable-next-line react/display-name\n // eslint-disable-next-line react/prop-types\n ({ isExpanded, ...rowProps }) => {\n const { composedRows } = grid.getInstance();\n // // https://jira.elliemae.io/browse/PUI-1667\n const node = composedRows[rowProps.index]\n ? composedRows[rowProps.index]\n : rowProps.rowData;\n const { groupedRowsRenderHeader } = grid.props;\n // eslint-disable-next-line no-underscore-dangle\n if (node && node._isGroup) {\n return (\n <>\n <GroupRowHeaderWrapper {...rowProps}>\n <GroupRowHeaderTitle>\n {groupedRowsRenderHeader\n ? groupedRowsRenderHeader(node)\n : 'Group'}\n </GroupRowHeaderTitle>\n </GroupRowHeaderWrapper>\n </>\n );\n }\n return <Row {...rowProps} />;\n },\n [],\n );\n\n return renderers;\n },\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,mBAA+B;AAC/B,kCAAqC;AACrC,2BAAkC;AAClC,0BAAiC;AACjC,0BAAiC;AACjC,sBAAyB;AACzB,wBAAkC;AAElC,MAAM,YAAY,GAAG;AACrB,MAAM,wBAAwB,4CAAkB,OAAO;AACvD,MAAM,sBAAsB,4CAAkB,OAAO,WAAW;AAEzD,MAAM,iBAAiB,sDAAqB,eAAe;AAAA,EAChE,aAAa,MAAM;AACjB,UAAM,EAAE,SAAS,iBAAiB,KAAK;AAEvC,UAAM,gBAAgB,0BACpB,MACE,QACG,IAAI,CAAC,WAAY;AAAA,SACb;AAAA,MACH,gBAAgB,OAAO;AAAA,QAExB,OAAO,CAAC,QAAQ,CAAC,IAAI,mBAC1B,CAAC;AAEH,UAAM,WAAW;AACjB,8CAAiB;AAAA,MACf,MAAM;AAAA,MACN,IAAI,CAAC,MAAM,SAAS,KAAK;AAAA;AAE3B,WAAO;AAAA,MACL;AAAA,MACA,cAAc;AAAA;AAAA;AAAA,EAGlB,aAAa,WAAW,MAAM;AAC5B,UAAM,EAAE,cAAc,SAAS,KAAK;AAEpC,UAAM,cAAc,CAAC,UAAU;AAC7B,YAAM,UAAU,KAAK;AACrB,UAAI,CAAC;AAAS,eAAO,yBAAS;AAC9B,aAAO,QAAQ,YAAY,QAAQ,UAC/B,yBAAS,UACT,yBAAS;AAAA;AAGf,UAAM,gBAAgB,MAAM;AAC1B,YAAM,OAAO,KAAK,OAAO,CAAC,GAAG,MAAM;AACjC,cAAM,YACJ,EAAE,YAAY,EAAE,UAAU,yBAAS,UAAU,yBAAS;AACxD,eAAO,IAAI;AAAA,SACV;AACH,aAAO;AAAA;AAET,WAAO;AAAA,SACF;AAAA,MACH;AAAA,MACA,eAAe;AAAA,MACf,WAAW,EAAE,UAAU;AAAA;AAAA;AAAA,EAG3B,aAAa,CAAC,MAAM,SAAS;AAC3B,UAAM;AAAA,MACJ;AAAA,MACA,OAAO,EAAE;AAAA,QACP,KAAK;AAET,QAAI,MAAM,QAAQ,OAAO;AACvB,YAAM,YAAY,KAAK,IAAI,CAAC,MAAM,EAAE,KAAK;AACzC,aAAO,aACJ,OAAO,CAAC,MAAM,UAAU,SAAS,EAAE,KAAK,UACxC,IAAI,CAAC,MAAO;AAAA,WACR,EAAE;AAAA,QACL,UAAU,MAAM,QAAQ,EAAE,KAAK,YAC3B,EAAE,KAAK,SAAS,OAAO,CAAC,MAAM,UAAU,SAAS,EAAE,YACnD,EAAE,KAAK;AAAA,QACX,UAAU,EAAE;AAAA,UAEb,OAAO,CAAC,MAAM,EAAE,aAAa,UAAa,EAAE,SAAS,SAAS;AAAA;AAEnE,WAAO;AAAA,SACF;AAAA,MACH,SAAS,KAAK,QAAQ,IAAI,CAAC,MAAO;AAAA,WAC7B,EAAE;AAAA,QACL,UAAU,EAAE;AAAA;AAAA,MAEd,MAAM,KAAK,KAAK,IAAI,CAAC,MAAO;AAAA,WACvB,EAAE;AAAA,QACL,UAAU,EAAE;AAAA;AAAA;AAAA;AAAA,EAIlB,kBAAkB,WAAW,MAAM;AACjC,UAAM,MAAM,UAAU,KAAK;AAE3B,cAAU,KAAK,MAAM,0BACnB,MAGE,CAAC,EAAE,eAAe,eAAe;AAC/B,YAAM,EAAE,iBAAiB,KAAK;AAE9B,YAAM,OAAO,aAAa,SAAS,SAC/B,aAAa,SAAS,SACtB,SAAS;AACb,YAAM,EAAE,4BAA4B,KAAK;AAEzC,UAAI,QAAQ,KAAK,UAAU;AACzB,eACE,wFACE,mDAAC,uBAAD;AAAA,aAA2B;AAAA,WACzB,mDAAC,qBAAD,MACG,0BACG,wBAAwB,QACxB;AAAA;AAMd,aAAO,mDAAC,KAAD;AAAA,WAAS;AAAA;AAAA,OAEpB;AAGF,WAAO;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,76 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var walkStrategy_exports = {};
29
+ __export(walkStrategy_exports, {
30
+ walkTreeStrategy: () => walkTreeStrategy
31
+ });
32
+ var React = __toESM(require("react"));
33
+ function getPath(parentNode, index, childrenKey) {
34
+ if (!parentNode)
35
+ return [index];
36
+ return [...parentNode.path, childrenKey, index];
37
+ }
38
+ function walkTreeStrategy({
39
+ data,
40
+ childrenKey = "children",
41
+ level = 0,
42
+ getId = (item) => item.id,
43
+ parentNode,
44
+ shouldWalkChildren = () => true,
45
+ cb
46
+ }) {
47
+ for (let i = 0; i < data.length; i++) {
48
+ const currLevel = level + 1;
49
+ const children = data[i][childrenKey];
50
+ const isGroup = children && !!children.length;
51
+ const node = {
52
+ index: i,
53
+ id: getId(data[i]),
54
+ data: data[i],
55
+ path: getPath(parentNode, i, childrenKey),
56
+ isGroup,
57
+ nestingLevel: currLevel,
58
+ parentNode: parentNode || {
59
+ isGroup: true,
60
+ data: { children: data }
61
+ }
62
+ };
63
+ cb(node);
64
+ if (shouldWalkChildren(node) && children && children.length) {
65
+ walkTreeStrategy({
66
+ data: children,
67
+ level: currLevel,
68
+ parentNode: node,
69
+ shouldWalkChildren,
70
+ cb
71
+ });
72
+ }
73
+ }
74
+ }
75
+ module.exports = __toCommonJS(walkStrategy_exports);
76
+ //# sourceMappingURL=walkStrategy.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/plugins/grouping-grid/walkStrategy.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["function getPath(parentNode, index, childrenKey) {\n if (!parentNode) return [index];\n return [...parentNode.path, childrenKey, index];\n}\n\nexport function walkTreeStrategy({\n data,\n childrenKey = 'children',\n level = 0,\n getId = item => item.id,\n parentNode,\n shouldWalkChildren = () => true,\n cb,\n}) {\n // eslint-disable-next-line no-loops/no-loops,no-plusplus\n for (let i = 0; i < data.length; i++) {\n const currLevel = level + 1;\n const children = data[i][childrenKey];\n const isGroup = children && !!children.length;\n const node = {\n index: i,\n id: getId(data[i]),\n data: data[i],\n path: getPath(parentNode, i, childrenKey),\n isGroup,\n nestingLevel: currLevel,\n parentNode: parentNode || {\n isGroup: true,\n data: { children: data },\n },\n };\n cb(node);\n if (shouldWalkChildren(node) && children && children.length) {\n walkTreeStrategy({\n data: children,\n level: currLevel,\n parentNode: node,\n shouldWalkChildren,\n cb,\n });\n }\n }\n}\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,iBAAiB,YAAY,OAAO,aAAa;AAC/C,MAAI,CAAC;AAAY,WAAO,CAAC;AACzB,SAAO,CAAC,GAAG,WAAW,MAAM,aAAa;AAAA;AAGpC,0BAA0B;AAAA,EAC/B;AAAA,EACA,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ,UAAQ,KAAK;AAAA,EACrB;AAAA,EACA,qBAAqB,MAAM;AAAA,EAC3B;AAAA,GACC;AAED,WAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;AACpC,UAAM,YAAY,QAAQ;AAC1B,UAAM,WAAW,KAAK,GAAG;AACzB,UAAM,UAAU,YAAY,CAAC,CAAC,SAAS;AACvC,UAAM,OAAO;AAAA,MACX,OAAO;AAAA,MACP,IAAI,MAAM,KAAK;AAAA,MACf,MAAM,KAAK;AAAA,MACX,MAAM,QAAQ,YAAY,GAAG;AAAA,MAC7B;AAAA,MACA,cAAc;AAAA,MACd,YAAY,cAAc;AAAA,QACxB,SAAS;AAAA,QACT,MAAM,EAAE,UAAU;AAAA;AAAA;AAGtB,OAAG;AACH,QAAI,mBAAmB,SAAS,YAAY,SAAS,QAAQ;AAC3D,uBAAiB;AAAA,QACf,MAAM;AAAA,QACN,OAAO;AAAA,QACP,YAAY;AAAA,QACZ;AAAA,QACA;AAAA;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,68 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var plugins_exports = {};
29
+ __export(plugins_exports, {
30
+ BodyHeaderScrollSyncPlugin: () => import_body_header_scroll_sync.BodyHeaderScrollSyncPlugin,
31
+ ColumnSizingPlugin: () => import_column_sizing.ColumnSizingPlugin,
32
+ ComboBox: () => import_editable.ComboBox,
33
+ CustomRendererPlugin: () => import_custom_cell_renderer.CustomRendererPlugin,
34
+ DndColumnsPlugin: () => import_column_dnd.DndColumnsPlugin,
35
+ DndRowsPlugin: () => import_row_dnd.DndRowsPlugin,
36
+ EditablePlugin: () => import_editable.EditablePlugin,
37
+ ExpandableColumn: () => import_expandable_grid.ExpandableColumn,
38
+ ExpandablePlugin: () => import_expandable_grid.ExpandablePlugin,
39
+ ExportDataPlugin: () => import_export_data.ExportDataPlugin,
40
+ FilterablePlugin: () => import_filterable.FilterablePlugin,
41
+ InfiniteScrollPlugin: () => import_infinite_scrolling.InfiniteScrollPlugin,
42
+ PaginationPlugin: () => import_pagination.PaginationPlugin,
43
+ ResizablePlugin: () => import_resizable.ResizablePlugin,
44
+ SelectablePlugin: () => import_selectable.SelectablePlugin,
45
+ SortablePlugin: () => import_sortable.SortablePlugin,
46
+ TextBox: () => import_editable.TextBox,
47
+ ToolbarPlugin: () => import_toolbar.ToolbarPlugin,
48
+ VirtualizationPlugin: () => import_virtualization.VirtualizationPlugin
49
+ });
50
+ var React = __toESM(require("react"));
51
+ var import_body_header_scroll_sync = require("./body-header-scroll-sync");
52
+ var import_column_dnd = require("./column-dnd");
53
+ var import_column_sizing = require("./column-sizing");
54
+ var import_custom_cell_renderer = require("./custom-cell-renderer");
55
+ var import_editable = require("./editable");
56
+ var import_expandable_grid = require("./expandable-grid");
57
+ var import_filterable = require("./filterable");
58
+ var import_infinite_scrolling = require("./infinite-scrolling");
59
+ var import_pagination = require("./pagination");
60
+ var import_resizable = require("./resizable");
61
+ var import_row_dnd = require("./row-dnd");
62
+ var import_selectable = require("./selectable");
63
+ var import_sortable = require("./sortable");
64
+ var import_toolbar = require("./toolbar");
65
+ var import_export_data = require("./export-data");
66
+ var import_virtualization = require("./virtualization");
67
+ module.exports = __toCommonJS(plugins_exports);
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/plugins/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export { BodyHeaderScrollSyncPlugin } from './body-header-scroll-sync';\nexport { DndColumnsPlugin } from './column-dnd';\nexport { ColumnSizingPlugin } from './column-sizing';\nexport { CustomRendererPlugin } from './custom-cell-renderer';\nexport { EditablePlugin, ComboBox, TextBox } from './editable';\nexport { ExpandableColumn, ExpandablePlugin } from './expandable-grid';\nexport { FilterablePlugin } from './filterable';\nexport { InfiniteScrollPlugin } from './infinite-scrolling';\nexport { PaginationPlugin } from './pagination';\nexport { ResizablePlugin } from './resizable';\nexport { DndRowsPlugin } from './row-dnd';\nexport { SelectablePlugin } from './selectable';\nexport { SortablePlugin } from './sortable';\nexport { ToolbarPlugin } from './toolbar';\nexport { ExportDataPlugin } from './export-data';\nexport { VirtualizationPlugin } from './virtualization';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qCAA2C;AAC3C,wBAAiC;AACjC,2BAAmC;AACnC,kCAAqC;AACrC,sBAAkD;AAClD,6BAAmD;AACnD,wBAAiC;AACjC,gCAAqC;AACrC,wBAAiC;AACjC,uBAAgC;AAChC,qBAA8B;AAC9B,wBAAiC;AACjC,sBAA+B;AAC/B,qBAA8B;AAC9B,yBAAiC;AACjC,4BAAqC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,100 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var InfiniteScrollPlugin_exports = {};
29
+ __export(InfiniteScrollPlugin_exports, {
30
+ InfiniteScrollPlugin: () => InfiniteScrollPlugin
31
+ });
32
+ var React = __toESM(require("react"));
33
+ var import_react = require("react");
34
+ var import_createInstancePlugin = require("@elliemae/ds-shared/createDataInstance/createInstancePlugin");
35
+ const registerStateHook = (grid) => {
36
+ const {
37
+ props: { getData, onInfiniteScrolling = () => null },
38
+ actions: { updateRows }
39
+ } = grid;
40
+ const loading = (0, import_react.useRef)(false);
41
+ const addMoreData = (data = []) => {
42
+ loading.current = false;
43
+ updateRows((prevRows) => prevRows.concat(data || []));
44
+ };
45
+ const doLoadData = async (currentRows) => {
46
+ loading.current = true;
47
+ return Promise.resolve(getData(currentRows)).then(addMoreData);
48
+ };
49
+ const loadMoreData = (currentRows) => {
50
+ onInfiniteScrolling(currentRows);
51
+ if (loading.current || !getData)
52
+ return;
53
+ doLoadData(currentRows);
54
+ };
55
+ return {
56
+ actions: {
57
+ loadMoreData
58
+ }
59
+ };
60
+ };
61
+ const getBodyProps = ({ children, ...props }, grid) => {
62
+ const { loadMoreData } = grid.getInstance().actions;
63
+ const [bodyNode, setBodyRef] = (0, import_react.useState)();
64
+ const prevScroll = (0, import_react.useRef)();
65
+ prevScroll.current = 0;
66
+ const handleBodyScroll = (event, s) => {
67
+ const { target } = event;
68
+ const { scrollHeight, scrollTop, offsetHeight, scrollLeft } = target;
69
+ const { composedRows } = grid.getInstance();
70
+ if (prevScroll.current !== scrollLeft) {
71
+ prevScroll.current = scrollLeft;
72
+ return;
73
+ }
74
+ if (bodyNode !== target)
75
+ return;
76
+ if (scrollTop + offsetHeight >= scrollHeight - 1) {
77
+ loadMoreData(composedRows);
78
+ }
79
+ };
80
+ (0, import_react.useEffect)(() => {
81
+ if (bodyNode) {
82
+ bodyNode.addEventListener("scroll", handleBodyScroll);
83
+ }
84
+ return () => {
85
+ if (bodyNode) {
86
+ bodyNode.removeEventListener("scroll", handleBodyScroll);
87
+ }
88
+ };
89
+ }, [bodyNode]);
90
+ return {
91
+ ...props,
92
+ listProps: { outerRef: setBodyRef }
93
+ };
94
+ };
95
+ const InfiniteScrollPlugin = (0, import_createInstancePlugin.createInstancePlugin)("infinite-scroll", {
96
+ registerStateHook,
97
+ getBodyProps
98
+ });
99
+ module.exports = __toCommonJS(InfiniteScrollPlugin_exports);
100
+ //# sourceMappingURL=InfiniteScrollPlugin.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/plugins/infinite-scrolling/InfiniteScrollPlugin.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { useRef, useEffect, useState } from 'react';\nimport { createInstancePlugin } from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';\n\n// TODO: EXPORT A SEPARATED INFINITE LOADER GRID\n\nconst registerStateHook = (grid) => {\n const {\n props: { getData, onInfiniteScrolling = () => null },\n actions: { updateRows },\n } = grid;\n\n const loading = useRef(false);\n\n const addMoreData = (data = []) => {\n loading.current = false;\n updateRows((prevRows) => prevRows.concat(data || []));\n };\n\n const doLoadData = async (currentRows) => {\n loading.current = true;\n return Promise.resolve(getData(currentRows)).then(addMoreData);\n };\n\n const loadMoreData = (currentRows) => {\n onInfiniteScrolling(currentRows);\n if (loading.current || !getData) return;\n doLoadData(currentRows);\n };\n\n return {\n actions: {\n loadMoreData,\n },\n };\n};\n\nconst getBodyProps = ({ children, ...props }, grid) => {\n const { loadMoreData } = grid.getInstance().actions;\n\n const [bodyNode, setBodyRef] = useState();\n const prevScroll = useRef();\n prevScroll.current = 0;\n\n const handleBodyScroll = (event, s) => {\n const { target } = event;\n const { scrollHeight, scrollTop, offsetHeight, scrollLeft } = target;\n const { composedRows } = grid.getInstance();\n // prevent horizontal scroll triggering infinite scrolling callbacks\n if (prevScroll.current !== scrollLeft) {\n prevScroll.current = scrollLeft;\n return;\n }\n // todo: clean this. Better approach using another component for the infinite scroll\n if (bodyNode !== target) return;\n if (scrollTop + offsetHeight >= scrollHeight - 1) {\n loadMoreData(composedRows);\n }\n };\n\n useEffect(() => {\n if (bodyNode) {\n bodyNode.addEventListener('scroll', handleBodyScroll);\n }\n return () => {\n if (bodyNode) {\n bodyNode.removeEventListener('scroll', handleBodyScroll);\n }\n };\n }, [bodyNode]);\n\n return {\n ...props,\n listProps: { outerRef: setBodyRef },\n };\n};\n\nexport const InfiniteScrollPlugin = createInstancePlugin('infinite-scroll', {\n registerStateHook,\n getBodyProps,\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAA4C;AAC5C,kCAAqC;AAIrC,MAAM,oBAAoB,CAAC,SAAS;AAClC,QAAM;AAAA,IACJ,OAAO,EAAE,SAAS,sBAAsB,MAAM;AAAA,IAC9C,SAAS,EAAE;AAAA,MACT;AAEJ,QAAM,UAAU,yBAAO;AAEvB,QAAM,cAAc,CAAC,OAAO,OAAO;AACjC,YAAQ,UAAU;AAClB,eAAW,CAAC,aAAa,SAAS,OAAO,QAAQ;AAAA;AAGnD,QAAM,aAAa,OAAO,gBAAgB;AACxC,YAAQ,UAAU;AAClB,WAAO,QAAQ,QAAQ,QAAQ,cAAc,KAAK;AAAA;AAGpD,QAAM,eAAe,CAAC,gBAAgB;AACpC,wBAAoB;AACpB,QAAI,QAAQ,WAAW,CAAC;AAAS;AACjC,eAAW;AAAA;AAGb,SAAO;AAAA,IACL,SAAS;AAAA,MACP;AAAA;AAAA;AAAA;AAKN,MAAM,eAAe,CAAC,EAAE,aAAa,SAAS,SAAS;AACrD,QAAM,EAAE,iBAAiB,KAAK,cAAc;AAE5C,QAAM,CAAC,UAAU,cAAc;AAC/B,QAAM,aAAa;AACnB,aAAW,UAAU;AAErB,QAAM,mBAAmB,CAAC,OAAO,MAAM;AACrC,UAAM,EAAE,WAAW;AACnB,UAAM,EAAE,cAAc,WAAW,cAAc,eAAe;AAC9D,UAAM,EAAE,iBAAiB,KAAK;AAE9B,QAAI,WAAW,YAAY,YAAY;AACrC,iBAAW,UAAU;AACrB;AAAA;AAGF,QAAI,aAAa;AAAQ;AACzB,QAAI,YAAY,gBAAgB,eAAe,GAAG;AAChD,mBAAa;AAAA;AAAA;AAIjB,8BAAU,MAAM;AACd,QAAI,UAAU;AACZ,eAAS,iBAAiB,UAAU;AAAA;AAEtC,WAAO,MAAM;AACX,UAAI,UAAU;AACZ,iBAAS,oBAAoB,UAAU;AAAA;AAAA;AAAA,KAG1C,CAAC;AAEJ,SAAO;AAAA,OACF;AAAA,IACH,WAAW,EAAE,UAAU;AAAA;AAAA;AAIpB,MAAM,uBAAuB,sDAAqB,mBAAmB;AAAA,EAC1E;AAAA,EACA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,35 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var infinite_scrolling_exports = {};
29
+ __export(infinite_scrolling_exports, {
30
+ InfiniteScrollPlugin: () => import_InfiniteScrollPlugin.InfiniteScrollPlugin
31
+ });
32
+ var React = __toESM(require("react"));
33
+ var import_InfiniteScrollPlugin = require("./InfiniteScrollPlugin");
34
+ module.exports = __toCommonJS(infinite_scrolling_exports);
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/plugins/infinite-scrolling/index.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export { InfiniteScrollPlugin } from './InfiniteScrollPlugin';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,kCAAqC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,92 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var PaginationPlugin_exports = {};
29
+ __export(PaginationPlugin_exports, {
30
+ PaginationPlugin: () => PaginationPlugin
31
+ });
32
+ var React = __toESM(require("react"));
33
+ var import_react = __toESM(require("react"));
34
+ var import_ds_utilities = require("@elliemae/ds-utilities");
35
+ var import_FocusGrid = require("@elliemae/ds-shared/FocusGroup/FocusGrid");
36
+ var import_createInstancePlugin = require("@elliemae/ds-shared/createDataInstance/createInstancePlugin");
37
+ var import_helper = require("./helper");
38
+ var import_usePaginationState = require("./usePaginationState");
39
+ var import_NoResults = require("../../components/NoResults");
40
+ const composeRows = (rows, grid) => {
41
+ const {
42
+ state: { pagination },
43
+ props: { groupedRows }
44
+ } = grid.getInstance();
45
+ if (groupedRows)
46
+ return rows;
47
+ if (groupedRows) {
48
+ const filterIds = rows.map((r) => r.id);
49
+ return (0, import_helper.paginate)(rows.filter((c) => filterIds.includes(c.id)).map((r) => ({
50
+ ...r,
51
+ _isGroup: r.isGroup
52
+ })), pagination);
53
+ }
54
+ return (0, import_helper.paginate)(rows, pagination);
55
+ };
56
+ const Body = import_react.default.memo(({
57
+ component: Component,
58
+ rows,
59
+ rowRenderer,
60
+ noResultsPlaceholder,
61
+ innerRef,
62
+ innerBodyRef,
63
+ isPlaceholderActive = false,
64
+ ...otherBodyProps
65
+ }) => /* @__PURE__ */ import_react.default.createElement(Component, {
66
+ ...otherBodyProps,
67
+ innerRef: (0, import_ds_utilities.mergeRefs)(innerRef)
68
+ }, !isPlaceholderActive ? rows.map((row, index) => rowRenderer(row, { index, rowIndex: index }, {})) : /* @__PURE__ */ import_react.default.createElement(import_NoResults.NoResults, {
69
+ innerRef,
70
+ rowRenderer
71
+ }, noResultsPlaceholder)));
72
+ const decorateRenderers = (renderers, grid) => {
73
+ const BodyWrapper = renderers.body.wrapper;
74
+ renderers.body.wrapper = (0, import_react.useMemo)(() => (props) => {
75
+ const { hotKeys, shouldRefocus, state } = grid.getInstance();
76
+ return /* @__PURE__ */ import_react.default.createElement(import_FocusGrid.FocusGrid, {
77
+ hotKeys,
78
+ shouldRefocus: false
79
+ }, /* @__PURE__ */ import_react.default.createElement(Body, {
80
+ ...props,
81
+ component: BodyWrapper
82
+ }));
83
+ }, []);
84
+ return renderers;
85
+ };
86
+ const PaginationPlugin = (0, import_createInstancePlugin.createInstancePlugin)("pagination", {
87
+ registerStateHook: import_usePaginationState.usePaginationState,
88
+ decorateRenderers,
89
+ composeRows
90
+ });
91
+ module.exports = __toCommonJS(PaginationPlugin_exports);
92
+ //# sourceMappingURL=PaginationPlugin.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/plugins/pagination/PaginationPlugin.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable react/display-name */\nimport React, { useMemo } from 'react';\nimport { mergeRefs } from '@elliemae/ds-utilities';\nimport { FocusGrid } from '@elliemae/ds-shared/FocusGroup/FocusGrid';\nimport { createInstancePlugin } from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';\nimport { paginate } from './helper';\nimport { usePaginationState } from './usePaginationState';\nimport { NoResults } from '../../components/NoResults';\n\nconst composeRows = (rows, grid) => {\n const {\n state: { pagination },\n props: { groupedRows },\n } = grid.getInstance();\n if (groupedRows) return rows; // disable pagination with grouping\n if (groupedRows) {\n const filterIds = rows.map((r) => r.id);\n return paginate(\n rows\n .filter((c) => filterIds.includes(c.id))\n .map((r) => ({\n ...r,\n _isGroup: r.isGroup,\n })),\n pagination,\n );\n }\n\n return paginate(rows, pagination);\n};\n\nconst Body = React.memo(\n ({\n component: Component,\n rows,\n rowRenderer,\n noResultsPlaceholder,\n innerRef,\n innerBodyRef, // depends on body-header-scroll-sync\n isPlaceholderActive = false,\n ...otherBodyProps\n }) => (\n <Component {...otherBodyProps} innerRef={mergeRefs(innerRef)}>\n {!isPlaceholderActive ? (\n rows.map((row, index) => rowRenderer(row, { index, rowIndex: index }, {}))\n ) : (\n <NoResults innerRef={innerRef} rowRenderer={rowRenderer}>\n {noResultsPlaceholder}\n </NoResults>\n )}\n </Component>\n ),\n);\n\nconst decorateRenderers = (renderers, grid) => {\n const BodyWrapper = renderers.body.wrapper;\n renderers.body.wrapper = useMemo(\n () => (props) => {\n const { hotKeys, shouldRefocus, state } = grid.getInstance();\n return (\n <FocusGrid hotKeys={hotKeys} shouldRefocus={false}>\n <Body {...props} component={BodyWrapper} />\n </FocusGrid>\n );\n },\n [],\n );\n return renderers;\n};\n\nexport const PaginationPlugin = createInstancePlugin('pagination', {\n registerStateHook: usePaginationState,\n decorateRenderers,\n composeRows,\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAA+B;AAC/B,0BAA0B;AAC1B,uBAA0B;AAC1B,kCAAqC;AACrC,oBAAyB;AACzB,gCAAmC;AACnC,uBAA0B;AAE1B,MAAM,cAAc,CAAC,MAAM,SAAS;AAClC,QAAM;AAAA,IACJ,OAAO,EAAE;AAAA,IACT,OAAO,EAAE;AAAA,MACP,KAAK;AACT,MAAI;AAAa,WAAO;AACxB,MAAI,aAAa;AACf,UAAM,YAAY,KAAK,IAAI,CAAC,MAAM,EAAE;AACpC,WAAO,4BACL,KACG,OAAO,CAAC,MAAM,UAAU,SAAS,EAAE,KACnC,IAAI,CAAC,MAAO;AAAA,SACR;AAAA,MACH,UAAU,EAAE;AAAA,SAEhB;AAAA;AAIJ,SAAO,4BAAS,MAAM;AAAA;AAGxB,MAAM,OAAO,qBAAM,KACjB,CAAC;AAAA,EACC,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,sBAAsB;AAAA,KACnB;AAAA,MAEH,mDAAC,WAAD;AAAA,KAAe;AAAA,EAAgB,UAAU,mCAAU;AAAA,GAChD,CAAC,sBACA,KAAK,IAAI,CAAC,KAAK,UAAU,YAAY,KAAK,EAAE,OAAO,UAAU,SAAS,OAEtE,mDAAC,4BAAD;AAAA,EAAW;AAAA,EAAoB;AAAA,GAC5B;AAOX,MAAM,oBAAoB,CAAC,WAAW,SAAS;AAC7C,QAAM,cAAc,UAAU,KAAK;AACnC,YAAU,KAAK,UAAU,0BACvB,MAAM,CAAC,UAAU;AACf,UAAM,EAAE,SAAS,eAAe,UAAU,KAAK;AAC/C,WACE,mDAAC,4BAAD;AAAA,MAAW;AAAA,MAAkB,eAAe;AAAA,OAC1C,mDAAC,MAAD;AAAA,SAAU;AAAA,MAAO,WAAW;AAAA;AAAA,KAIlC;AAEF,SAAO;AAAA;AAGF,MAAM,mBAAmB,sDAAqB,cAAc;AAAA,EACjE,mBAAmB;AAAA,EACnB;AAAA,EACA;AAAA;",
6
+ "names": []
7
+ }