@elliemae/ds-datagrids 3.26.1-rc.1 → 3.27.0-next.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (655) hide show
  1. package/dist/cjs/index.js +4 -39
  2. package/dist/cjs/index.js.map +3 -3
  3. package/dist/esm/index.js +3 -59
  4. package/dist/esm/index.js.map +3 -3
  5. package/dist/types/index.d.ts +2 -9
  6. package/package.json +6 -540
  7. package/dist/cjs/DSDataGrid.js +0 -589
  8. package/dist/cjs/DSDataGrid.js.map +0 -7
  9. package/dist/cjs/DataGridImpl.js +0 -156
  10. package/dist/cjs/DataGridImpl.js.map +0 -7
  11. package/dist/cjs/PaginatedDataGrid.js +0 -84
  12. package/dist/cjs/PaginatedDataGrid.js.map +0 -7
  13. package/dist/cjs/blockNames.js +0 -40
  14. package/dist/cjs/blockNames.js.map +0 -7
  15. package/dist/cjs/columns/IconColumn.js +0 -109
  16. package/dist/cjs/columns/IconColumn.js.map +0 -7
  17. package/dist/cjs/columns/NumberColumn.js +0 -37
  18. package/dist/cjs/columns/NumberColumn.js.map +0 -7
  19. package/dist/cjs/components/BodyCell.js +0 -114
  20. package/dist/cjs/components/BodyCell.js.map +0 -7
  21. package/dist/cjs/components/BodyList.js +0 -48
  22. package/dist/cjs/components/BodyList.js.map +0 -7
  23. package/dist/cjs/components/ColumnVisibilityMenuOption.js +0 -65
  24. package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +0 -7
  25. package/dist/cjs/components/ColumnsOptionsMenuSection.js +0 -63
  26. package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +0 -7
  27. package/dist/cjs/components/EmptyState.js +0 -81
  28. package/dist/cjs/components/EmptyState.js.map +0 -7
  29. package/dist/cjs/components/HeaderCell.js +0 -79
  30. package/dist/cjs/components/HeaderCell.js.map +0 -7
  31. package/dist/cjs/components/List.js +0 -43
  32. package/dist/cjs/components/List.js.map +0 -7
  33. package/dist/cjs/components/ListItem.js +0 -49
  34. package/dist/cjs/components/ListItem.js.map +0 -7
  35. package/dist/cjs/components/NoResults.js +0 -53
  36. package/dist/cjs/components/NoResults.js.map +0 -7
  37. package/dist/cjs/components/RowsLoader.js +0 -41
  38. package/dist/cjs/components/RowsLoader.js.map +0 -7
  39. package/dist/cjs/components/Table.js +0 -125
  40. package/dist/cjs/components/Table.js.map +0 -7
  41. package/dist/cjs/components/TableBody.js +0 -71
  42. package/dist/cjs/components/TableBody.js.map +0 -7
  43. package/dist/cjs/components/TableHeader.js +0 -60
  44. package/dist/cjs/components/TableHeader.js.map +0 -7
  45. package/dist/cjs/components/footer/addOptionalFooterComponents.js +0 -60
  46. package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +0 -7
  47. package/dist/cjs/components/header/PrimaryControls.js +0 -54
  48. package/dist/cjs/components/header/PrimaryControls.js.map +0 -7
  49. package/dist/cjs/components/header/addOptionalHeaderComponents.js +0 -62
  50. package/dist/cjs/components/header/addOptionalHeaderComponents.js.map +0 -7
  51. package/dist/cjs/components/index.js +0 -44
  52. package/dist/cjs/components/index.js.map +0 -7
  53. package/dist/cjs/components/renderers/defaultClassedRenderers.js +0 -67
  54. package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +0 -7
  55. package/dist/cjs/components/renderers/index.js +0 -51
  56. package/dist/cjs/components/renderers/index.js.map +0 -7
  57. package/dist/cjs/components/renderers/renderRowsLoader.js +0 -38
  58. package/dist/cjs/components/renderers/renderRowsLoader.js.map +0 -7
  59. package/dist/cjs/components/tableContext.js +0 -37
  60. package/dist/cjs/components/tableContext.js.map +0 -7
  61. package/dist/cjs/defaultPlugins.js +0 -40
  62. package/dist/cjs/defaultPlugins.js.map +0 -7
  63. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -145
  64. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -7
  65. package/dist/cjs/plugins/body-header-scroll-sync/index.js +0 -36
  66. package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +0 -7
  67. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +0 -159
  68. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +0 -7
  69. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +0 -48
  70. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -7
  71. package/dist/cjs/plugins/column-dnd/index.js +0 -36
  72. package/dist/cjs/plugins/column-dnd/index.js.map +0 -7
  73. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +0 -93
  74. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -7
  75. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js +0 -70
  76. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -7
  77. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +0 -45
  78. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -7
  79. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +0 -65
  80. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +0 -7
  81. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js +0 -38
  82. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -7
  83. package/dist/cjs/plugins/column-sizing/index.js +0 -36
  84. package/dist/cjs/plugins/column-sizing/index.js.map +0 -7
  85. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +0 -148
  86. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +0 -7
  87. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +0 -181
  88. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +0 -7
  89. package/dist/cjs/plugins/column-sizing/utils.js +0 -69
  90. package/dist/cjs/plugins/column-sizing/utils.js.map +0 -7
  91. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -41
  92. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -7
  93. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -79
  94. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -7
  95. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +0 -60
  96. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -7
  97. package/dist/cjs/plugins/custom-cell-renderer/index.js +0 -36
  98. package/dist/cjs/plugins/custom-cell-renderer/index.js.map +0 -7
  99. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +0 -73
  100. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +0 -7
  101. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +0 -95
  102. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +0 -7
  103. package/dist/cjs/plugins/editable/EditableComponents/index.js +0 -38
  104. package/dist/cjs/plugins/editable/EditableComponents/index.js.map +0 -7
  105. package/dist/cjs/plugins/editable/EditablePlugin.js +0 -112
  106. package/dist/cjs/plugins/editable/EditablePlugin.js.map +0 -7
  107. package/dist/cjs/plugins/editable/decorateEditable.js +0 -96
  108. package/dist/cjs/plugins/editable/decorateEditable.js.map +0 -7
  109. package/dist/cjs/plugins/editable/getEditorComponent.js +0 -60
  110. package/dist/cjs/plugins/editable/getEditorComponent.js.map +0 -7
  111. package/dist/cjs/plugins/editable/index.js +0 -39
  112. package/dist/cjs/plugins/editable/index.js.map +0 -7
  113. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +0 -131
  114. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +0 -7
  115. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +0 -197
  116. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +0 -7
  117. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +0 -147
  118. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +0 -7
  119. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +0 -57
  120. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -7
  121. package/dist/cjs/plugins/expandable-grid/index.js +0 -38
  122. package/dist/cjs/plugins/expandable-grid/index.js.map +0 -7
  123. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +0 -94
  124. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +0 -7
  125. package/dist/cjs/plugins/export-data/ExportDataPlugin.js +0 -135
  126. package/dist/cjs/plugins/export-data/ExportDataPlugin.js.map +0 -7
  127. package/dist/cjs/plugins/export-data/index.js +0 -36
  128. package/dist/cjs/plugins/export-data/index.js.map +0 -7
  129. package/dist/cjs/plugins/filterable/FilterablePlugin.js +0 -84
  130. package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +0 -7
  131. package/dist/cjs/plugins/filterable/addFilterToColumn.js +0 -44
  132. package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +0 -7
  133. package/dist/cjs/plugins/filterable/components/FilterableHeader.js +0 -133
  134. package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +0 -7
  135. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -179
  136. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -7
  137. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -133
  138. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -7
  139. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -231
  140. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -7
  141. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -183
  142. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -7
  143. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -36
  144. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -7
  145. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -48
  146. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -7
  147. package/dist/cjs/plugins/filterable/filterableFormatter.js +0 -69
  148. package/dist/cjs/plugins/filterable/filterableFormatter.js.map +0 -7
  149. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -83
  150. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -7
  151. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +0 -45
  152. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -7
  153. package/dist/cjs/plugins/filterable/helper.js +0 -113
  154. package/dist/cjs/plugins/filterable/helper.js.map +0 -7
  155. package/dist/cjs/plugins/filterable/index.js +0 -36
  156. package/dist/cjs/plugins/filterable/index.js.map +0 -7
  157. package/dist/cjs/plugins/filterable/useFilterableState.js +0 -112
  158. package/dist/cjs/plugins/filterable/useFilterableState.js.map +0 -7
  159. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js +0 -58
  160. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js.map +0 -7
  161. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +0 -134
  162. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +0 -7
  163. package/dist/cjs/plugins/grouping-grid/walkStrategy.js +0 -77
  164. package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +0 -7
  165. package/dist/cjs/plugins/index.js +0 -69
  166. package/dist/cjs/plugins/index.js.map +0 -7
  167. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -101
  168. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -7
  169. package/dist/cjs/plugins/infinite-scrolling/index.js +0 -36
  170. package/dist/cjs/plugins/infinite-scrolling/index.js.map +0 -7
  171. package/dist/cjs/plugins/pagination/PaginationPlugin.js +0 -90
  172. package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +0 -7
  173. package/dist/cjs/plugins/pagination/components/Pagination.js +0 -57
  174. package/dist/cjs/plugins/pagination/components/Pagination.js.map +0 -7
  175. package/dist/cjs/plugins/pagination/components/Paginator.js +0 -73
  176. package/dist/cjs/plugins/pagination/components/Paginator.js.map +0 -7
  177. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +0 -74
  178. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +0 -7
  179. package/dist/cjs/plugins/pagination/helper.js +0 -63
  180. package/dist/cjs/plugins/pagination/helper.js.map +0 -7
  181. package/dist/cjs/plugins/pagination/index.js +0 -36
  182. package/dist/cjs/plugins/pagination/index.js.map +0 -7
  183. package/dist/cjs/plugins/pagination/usePaginationState.js +0 -83
  184. package/dist/cjs/plugins/pagination/usePaginationState.js.map +0 -7
  185. package/dist/cjs/plugins/resizable/ResizablePlugin.js +0 -116
  186. package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +0 -7
  187. package/dist/cjs/plugins/resizable/decorateResizable.js +0 -57
  188. package/dist/cjs/plugins/resizable/decorateResizable.js.map +0 -7
  189. package/dist/cjs/plugins/resizable/index.js +0 -36
  190. package/dist/cjs/plugins/resizable/index.js.map +0 -7
  191. package/dist/cjs/plugins/resizable/useResizeHandle.js +0 -75
  192. package/dist/cjs/plugins/resizable/useResizeHandle.js.map +0 -7
  193. package/dist/cjs/plugins/resizable/utils.js +0 -55
  194. package/dist/cjs/plugins/resizable/utils.js.map +0 -7
  195. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js +0 -140
  196. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js.map +0 -7
  197. package/dist/cjs/plugins/row-dnd/index.js +0 -36
  198. package/dist/cjs/plugins/row-dnd/index.js.map +0 -7
  199. package/dist/cjs/plugins/selectable/SelectablePlugin.js +0 -170
  200. package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +0 -7
  201. package/dist/cjs/plugins/selectable/addSelectableColumn.js +0 -105
  202. package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +0 -7
  203. package/dist/cjs/plugins/selectable/helper.js +0 -55
  204. package/dist/cjs/plugins/selectable/helper.js.map +0 -7
  205. package/dist/cjs/plugins/selectable/index.js +0 -36
  206. package/dist/cjs/plugins/selectable/index.js.map +0 -7
  207. package/dist/cjs/plugins/selectable/selectableFormatter.js +0 -99
  208. package/dist/cjs/plugins/selectable/selectableFormatter.js.map +0 -7
  209. package/dist/cjs/plugins/selectable/useSelectableState.js +0 -128
  210. package/dist/cjs/plugins/selectable/useSelectableState.js.map +0 -7
  211. package/dist/cjs/plugins/sortable/SortablePlugin.js +0 -98
  212. package/dist/cjs/plugins/sortable/SortablePlugin.js.map +0 -7
  213. package/dist/cjs/plugins/sortable/checkIfSortable.js +0 -46
  214. package/dist/cjs/plugins/sortable/checkIfSortable.js.map +0 -7
  215. package/dist/cjs/plugins/sortable/index.js +0 -36
  216. package/dist/cjs/plugins/sortable/index.js.map +0 -7
  217. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js +0 -66
  218. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js.map +0 -7
  219. package/dist/cjs/plugins/sortable/sortTree.js +0 -49
  220. package/dist/cjs/plugins/sortable/sortTree.js.map +0 -7
  221. package/dist/cjs/plugins/sortable/sorter.js +0 -154
  222. package/dist/cjs/plugins/sortable/sorter.js.map +0 -7
  223. package/dist/cjs/plugins/sortable/useSortableState.js +0 -74
  224. package/dist/cjs/plugins/sortable/useSortableState.js.map +0 -7
  225. package/dist/cjs/plugins/toolbar/RowRenderer.js +0 -109
  226. package/dist/cjs/plugins/toolbar/RowRenderer.js.map +0 -7
  227. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +0 -63
  228. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +0 -7
  229. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js +0 -115
  230. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js.map +0 -7
  231. package/dist/cjs/plugins/toolbar/index.js +0 -36
  232. package/dist/cjs/plugins/toolbar/index.js.map +0 -7
  233. package/dist/cjs/plugins/virtualization/AutoHeightList.js +0 -78
  234. package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +0 -7
  235. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +0 -109
  236. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +0 -7
  237. package/dist/cjs/plugins/virtualization/VirtualizedBody.js +0 -275
  238. package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +0 -7
  239. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js +0 -58
  240. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +0 -7
  241. package/dist/cjs/plugins/virtualization/helper.js +0 -36
  242. package/dist/cjs/plugins/virtualization/helper.js.map +0 -7
  243. package/dist/cjs/plugins/virtualization/index.js +0 -36
  244. package/dist/cjs/plugins/virtualization/index.js.map +0 -7
  245. package/dist/cjs/renders/CellWithAddons.js +0 -113
  246. package/dist/cjs/renders/CellWithAddons.js.map +0 -7
  247. package/dist/cjs/renders/index.js +0 -38
  248. package/dist/cjs/renders/index.js.map +0 -7
  249. package/dist/cjs/renders/styled.js +0 -79
  250. package/dist/cjs/renders/styled.js.map +0 -7
  251. package/dist/cjs/rowSizes.js +0 -48
  252. package/dist/cjs/rowSizes.js.map +0 -7
  253. package/dist/cjs/utilities/DataGridUtilities.json +0 -1315
  254. package/dist/cjs/utilities/getPluginsFromProps.js +0 -73
  255. package/dist/cjs/utilities/getPluginsFromProps.js.map +0 -7
  256. package/dist/cjs/utilities/getScrollbarSize.js +0 -47
  257. package/dist/cjs/utilities/getScrollbarSize.js.map +0 -7
  258. package/dist/cjs/utilities/normalizeData.js +0 -50
  259. package/dist/cjs/utilities/normalizeData.js.map +0 -7
  260. package/dist/esm/DSDataGrid.js +0 -559
  261. package/dist/esm/DSDataGrid.js.map +0 -7
  262. package/dist/esm/DataGridImpl.js +0 -126
  263. package/dist/esm/DataGridImpl.js.map +0 -7
  264. package/dist/esm/PaginatedDataGrid.js +0 -54
  265. package/dist/esm/PaginatedDataGrid.js.map +0 -7
  266. package/dist/esm/blockNames.js +0 -10
  267. package/dist/esm/blockNames.js.map +0 -7
  268. package/dist/esm/columns/IconColumn.js +0 -79
  269. package/dist/esm/columns/IconColumn.js.map +0 -7
  270. package/dist/esm/columns/NumberColumn.js +0 -7
  271. package/dist/esm/columns/NumberColumn.js.map +0 -7
  272. package/dist/esm/components/BodyCell.js +0 -84
  273. package/dist/esm/components/BodyCell.js.map +0 -7
  274. package/dist/esm/components/BodyList.js +0 -18
  275. package/dist/esm/components/BodyList.js.map +0 -7
  276. package/dist/esm/components/ColumnVisibilityMenuOption.js +0 -35
  277. package/dist/esm/components/ColumnVisibilityMenuOption.js.map +0 -7
  278. package/dist/esm/components/ColumnsOptionsMenuSection.js +0 -33
  279. package/dist/esm/components/ColumnsOptionsMenuSection.js.map +0 -7
  280. package/dist/esm/components/EmptyState.js +0 -51
  281. package/dist/esm/components/EmptyState.js.map +0 -7
  282. package/dist/esm/components/HeaderCell.js +0 -49
  283. package/dist/esm/components/HeaderCell.js.map +0 -7
  284. package/dist/esm/components/List.js +0 -13
  285. package/dist/esm/components/List.js.map +0 -7
  286. package/dist/esm/components/ListItem.js +0 -19
  287. package/dist/esm/components/ListItem.js.map +0 -7
  288. package/dist/esm/components/NoResults.js +0 -23
  289. package/dist/esm/components/NoResults.js.map +0 -7
  290. package/dist/esm/components/RowsLoader.js +0 -11
  291. package/dist/esm/components/RowsLoader.js.map +0 -7
  292. package/dist/esm/components/Table.js +0 -95
  293. package/dist/esm/components/Table.js.map +0 -7
  294. package/dist/esm/components/TableBody.js +0 -41
  295. package/dist/esm/components/TableBody.js.map +0 -7
  296. package/dist/esm/components/TableHeader.js +0 -30
  297. package/dist/esm/components/TableHeader.js.map +0 -7
  298. package/dist/esm/components/footer/addOptionalFooterComponents.js +0 -30
  299. package/dist/esm/components/footer/addOptionalFooterComponents.js.map +0 -7
  300. package/dist/esm/components/header/PrimaryControls.js +0 -24
  301. package/dist/esm/components/header/PrimaryControls.js.map +0 -7
  302. package/dist/esm/components/header/addOptionalHeaderComponents.js +0 -32
  303. package/dist/esm/components/header/addOptionalHeaderComponents.js.map +0 -7
  304. package/dist/esm/components/index.js +0 -14
  305. package/dist/esm/components/index.js.map +0 -7
  306. package/dist/esm/components/renderers/defaultClassedRenderers.js +0 -37
  307. package/dist/esm/components/renderers/defaultClassedRenderers.js.map +0 -7
  308. package/dist/esm/components/renderers/index.js +0 -29
  309. package/dist/esm/components/renderers/index.js.map +0 -7
  310. package/dist/esm/components/renderers/renderRowsLoader.js +0 -8
  311. package/dist/esm/components/renderers/renderRowsLoader.js.map +0 -7
  312. package/dist/esm/components/tableContext.js +0 -7
  313. package/dist/esm/components/tableContext.js.map +0 -7
  314. package/dist/esm/defaultPlugins.js +0 -10
  315. package/dist/esm/defaultPlugins.js.map +0 -7
  316. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -115
  317. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -7
  318. package/dist/esm/plugins/body-header-scroll-sync/index.js +0 -6
  319. package/dist/esm/plugins/body-header-scroll-sync/index.js.map +0 -7
  320. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +0 -129
  321. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +0 -7
  322. package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js +0 -18
  323. package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -7
  324. package/dist/esm/plugins/column-dnd/index.js +0 -6
  325. package/dist/esm/plugins/column-dnd/index.js.map +0 -7
  326. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +0 -63
  327. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -7
  328. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js +0 -40
  329. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -7
  330. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +0 -15
  331. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -7
  332. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +0 -35
  333. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +0 -7
  334. package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js +0 -8
  335. package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -7
  336. package/dist/esm/plugins/column-sizing/index.js +0 -6
  337. package/dist/esm/plugins/column-sizing/index.js.map +0 -7
  338. package/dist/esm/plugins/column-sizing/useColumnSizeService.js +0 -118
  339. package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +0 -7
  340. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +0 -151
  341. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +0 -7
  342. package/dist/esm/plugins/column-sizing/utils.js +0 -39
  343. package/dist/esm/plugins/column-sizing/utils.js.map +0 -7
  344. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -11
  345. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -7
  346. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -49
  347. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -7
  348. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +0 -30
  349. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -7
  350. package/dist/esm/plugins/custom-cell-renderer/index.js +0 -6
  351. package/dist/esm/plugins/custom-cell-renderer/index.js.map +0 -7
  352. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js +0 -43
  353. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +0 -7
  354. package/dist/esm/plugins/editable/EditableComponents/TextBox.js +0 -65
  355. package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +0 -7
  356. package/dist/esm/plugins/editable/EditableComponents/index.js +0 -8
  357. package/dist/esm/plugins/editable/EditableComponents/index.js.map +0 -7
  358. package/dist/esm/plugins/editable/EditablePlugin.js +0 -82
  359. package/dist/esm/plugins/editable/EditablePlugin.js.map +0 -7
  360. package/dist/esm/plugins/editable/decorateEditable.js +0 -66
  361. package/dist/esm/plugins/editable/decorateEditable.js.map +0 -7
  362. package/dist/esm/plugins/editable/getEditorComponent.js +0 -30
  363. package/dist/esm/plugins/editable/getEditorComponent.js.map +0 -7
  364. package/dist/esm/plugins/editable/index.js +0 -9
  365. package/dist/esm/plugins/editable/index.js.map +0 -7
  366. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +0 -101
  367. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +0 -7
  368. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +0 -167
  369. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +0 -7
  370. package/dist/esm/plugins/expandable-grid/ExpandedRow.js +0 -117
  371. package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +0 -7
  372. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +0 -27
  373. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -7
  374. package/dist/esm/plugins/expandable-grid/index.js +0 -8
  375. package/dist/esm/plugins/expandable-grid/index.js.map +0 -7
  376. package/dist/esm/plugins/expandable-grid/useExpandGridState.js +0 -64
  377. package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +0 -7
  378. package/dist/esm/plugins/export-data/ExportDataPlugin.js +0 -105
  379. package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +0 -7
  380. package/dist/esm/plugins/export-data/index.js +0 -6
  381. package/dist/esm/plugins/export-data/index.js.map +0 -7
  382. package/dist/esm/plugins/filterable/FilterablePlugin.js +0 -54
  383. package/dist/esm/plugins/filterable/FilterablePlugin.js.map +0 -7
  384. package/dist/esm/plugins/filterable/addFilterToColumn.js +0 -14
  385. package/dist/esm/plugins/filterable/addFilterToColumn.js.map +0 -7
  386. package/dist/esm/plugins/filterable/components/FilterableHeader.js +0 -103
  387. package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +0 -7
  388. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -149
  389. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -7
  390. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -103
  391. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -7
  392. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -205
  393. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -7
  394. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -153
  395. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -7
  396. package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -6
  397. package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -7
  398. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -18
  399. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -7
  400. package/dist/esm/plugins/filterable/filterableFormatter.js +0 -39
  401. package/dist/esm/plugins/filterable/filterableFormatter.js.map +0 -7
  402. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -53
  403. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -7
  404. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js +0 -15
  405. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -7
  406. package/dist/esm/plugins/filterable/helper.js +0 -83
  407. package/dist/esm/plugins/filterable/helper.js.map +0 -7
  408. package/dist/esm/plugins/filterable/index.js +0 -6
  409. package/dist/esm/plugins/filterable/index.js.map +0 -7
  410. package/dist/esm/plugins/filterable/useFilterableState.js +0 -82
  411. package/dist/esm/plugins/filterable/useFilterableState.js.map +0 -7
  412. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js +0 -28
  413. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +0 -7
  414. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +0 -104
  415. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +0 -7
  416. package/dist/esm/plugins/grouping-grid/walkStrategy.js +0 -47
  417. package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +0 -7
  418. package/dist/esm/plugins/index.js +0 -39
  419. package/dist/esm/plugins/index.js.map +0 -7
  420. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -71
  421. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -7
  422. package/dist/esm/plugins/infinite-scrolling/index.js +0 -6
  423. package/dist/esm/plugins/infinite-scrolling/index.js.map +0 -7
  424. package/dist/esm/plugins/pagination/PaginationPlugin.js +0 -60
  425. package/dist/esm/plugins/pagination/PaginationPlugin.js.map +0 -7
  426. package/dist/esm/plugins/pagination/components/Pagination.js +0 -27
  427. package/dist/esm/plugins/pagination/components/Pagination.js.map +0 -7
  428. package/dist/esm/plugins/pagination/components/Paginator.js +0 -43
  429. package/dist/esm/plugins/pagination/components/Paginator.js.map +0 -7
  430. package/dist/esm/plugins/pagination/components/PerPageDropdown.js +0 -44
  431. package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +0 -7
  432. package/dist/esm/plugins/pagination/helper.js +0 -33
  433. package/dist/esm/plugins/pagination/helper.js.map +0 -7
  434. package/dist/esm/plugins/pagination/index.js +0 -6
  435. package/dist/esm/plugins/pagination/index.js.map +0 -7
  436. package/dist/esm/plugins/pagination/usePaginationState.js +0 -53
  437. package/dist/esm/plugins/pagination/usePaginationState.js.map +0 -7
  438. package/dist/esm/plugins/resizable/ResizablePlugin.js +0 -86
  439. package/dist/esm/plugins/resizable/ResizablePlugin.js.map +0 -7
  440. package/dist/esm/plugins/resizable/decorateResizable.js +0 -27
  441. package/dist/esm/plugins/resizable/decorateResizable.js.map +0 -7
  442. package/dist/esm/plugins/resizable/index.js +0 -6
  443. package/dist/esm/plugins/resizable/index.js.map +0 -7
  444. package/dist/esm/plugins/resizable/useResizeHandle.js +0 -45
  445. package/dist/esm/plugins/resizable/useResizeHandle.js.map +0 -7
  446. package/dist/esm/plugins/resizable/utils.js +0 -25
  447. package/dist/esm/plugins/resizable/utils.js.map +0 -7
  448. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js +0 -110
  449. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js.map +0 -7
  450. package/dist/esm/plugins/row-dnd/index.js +0 -6
  451. package/dist/esm/plugins/row-dnd/index.js.map +0 -7
  452. package/dist/esm/plugins/selectable/SelectablePlugin.js +0 -140
  453. package/dist/esm/plugins/selectable/SelectablePlugin.js.map +0 -7
  454. package/dist/esm/plugins/selectable/addSelectableColumn.js +0 -75
  455. package/dist/esm/plugins/selectable/addSelectableColumn.js.map +0 -7
  456. package/dist/esm/plugins/selectable/helper.js +0 -25
  457. package/dist/esm/plugins/selectable/helper.js.map +0 -7
  458. package/dist/esm/plugins/selectable/index.js +0 -6
  459. package/dist/esm/plugins/selectable/index.js.map +0 -7
  460. package/dist/esm/plugins/selectable/selectableFormatter.js +0 -69
  461. package/dist/esm/plugins/selectable/selectableFormatter.js.map +0 -7
  462. package/dist/esm/plugins/selectable/useSelectableState.js +0 -98
  463. package/dist/esm/plugins/selectable/useSelectableState.js.map +0 -7
  464. package/dist/esm/plugins/sortable/SortablePlugin.js +0 -68
  465. package/dist/esm/plugins/sortable/SortablePlugin.js.map +0 -7
  466. package/dist/esm/plugins/sortable/checkIfSortable.js +0 -16
  467. package/dist/esm/plugins/sortable/checkIfSortable.js.map +0 -7
  468. package/dist/esm/plugins/sortable/index.js +0 -6
  469. package/dist/esm/plugins/sortable/index.js.map +0 -7
  470. package/dist/esm/plugins/sortable/sortHeaderFormatter.js +0 -36
  471. package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +0 -7
  472. package/dist/esm/plugins/sortable/sortTree.js +0 -19
  473. package/dist/esm/plugins/sortable/sortTree.js.map +0 -7
  474. package/dist/esm/plugins/sortable/sorter.js +0 -124
  475. package/dist/esm/plugins/sortable/sorter.js.map +0 -7
  476. package/dist/esm/plugins/sortable/useSortableState.js +0 -44
  477. package/dist/esm/plugins/sortable/useSortableState.js.map +0 -7
  478. package/dist/esm/plugins/toolbar/RowRenderer.js +0 -79
  479. package/dist/esm/plugins/toolbar/RowRenderer.js.map +0 -7
  480. package/dist/esm/plugins/toolbar/ToolbarPlugin.js +0 -33
  481. package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +0 -7
  482. package/dist/esm/plugins/toolbar/ToolbarTrigger.js +0 -85
  483. package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +0 -7
  484. package/dist/esm/plugins/toolbar/index.js +0 -6
  485. package/dist/esm/plugins/toolbar/index.js.map +0 -7
  486. package/dist/esm/plugins/virtualization/AutoHeightList.js +0 -48
  487. package/dist/esm/plugins/virtualization/AutoHeightList.js.map +0 -7
  488. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +0 -79
  489. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +0 -7
  490. package/dist/esm/plugins/virtualization/VirtualizedBody.js +0 -245
  491. package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +0 -7
  492. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +0 -28
  493. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +0 -7
  494. package/dist/esm/plugins/virtualization/helper.js +0 -6
  495. package/dist/esm/plugins/virtualization/helper.js.map +0 -7
  496. package/dist/esm/plugins/virtualization/index.js +0 -6
  497. package/dist/esm/plugins/virtualization/index.js.map +0 -7
  498. package/dist/esm/renders/CellWithAddons.js +0 -83
  499. package/dist/esm/renders/CellWithAddons.js.map +0 -7
  500. package/dist/esm/renders/index.js +0 -8
  501. package/dist/esm/renders/index.js.map +0 -7
  502. package/dist/esm/renders/styled.js +0 -49
  503. package/dist/esm/renders/styled.js.map +0 -7
  504. package/dist/esm/rowSizes.js +0 -18
  505. package/dist/esm/rowSizes.js.map +0 -7
  506. package/dist/esm/utilities/DataGridUtilities.json +0 -1315
  507. package/dist/esm/utilities/getPluginsFromProps.js +0 -43
  508. package/dist/esm/utilities/getPluginsFromProps.js.map +0 -7
  509. package/dist/esm/utilities/getScrollbarSize.js +0 -17
  510. package/dist/esm/utilities/getScrollbarSize.js.map +0 -7
  511. package/dist/esm/utilities/normalizeData.js +0 -20
  512. package/dist/esm/utilities/normalizeData.js.map +0 -7
  513. package/dist/types/DSDataGrid.d.ts +0 -452
  514. package/dist/types/DataGridImpl.d.ts +0 -12
  515. package/dist/types/PaginatedDataGrid.d.ts +0 -14
  516. package/dist/types/blockNames.d.ts +0 -4
  517. package/dist/types/columns/IconColumn.d.ts +0 -35
  518. package/dist/types/columns/NumberColumn.d.ts +0 -4
  519. package/dist/types/components/BodyCell.d.ts +0 -33
  520. package/dist/types/components/BodyList.d.ts +0 -11
  521. package/dist/types/components/ColumnVisibilityMenuOption.d.ts +0 -15
  522. package/dist/types/components/ColumnsOptionsMenuSection.d.ts +0 -8
  523. package/dist/types/components/EmptyState.d.ts +0 -6
  524. package/dist/types/components/HeaderCell.d.ts +0 -18
  525. package/dist/types/components/List.d.ts +0 -2
  526. package/dist/types/components/ListItem.d.ts +0 -2
  527. package/dist/types/components/NoResults.d.ts +0 -7
  528. package/dist/types/components/RowsLoader.d.ts +0 -4
  529. package/dist/types/components/Table.d.ts +0 -8
  530. package/dist/types/components/TableBody.d.ts +0 -4
  531. package/dist/types/components/TableHeader.d.ts +0 -3
  532. package/dist/types/components/footer/addOptionalFooterComponents.d.ts +0 -6
  533. package/dist/types/components/header/PrimaryControls.d.ts +0 -5
  534. package/dist/types/components/header/addOptionalHeaderComponents.d.ts +0 -10
  535. package/dist/types/components/index.d.ts +0 -5
  536. package/dist/types/components/renderers/defaultClassedRenderers.d.ts +0 -11
  537. package/dist/types/components/renderers/index.d.ts +0 -15
  538. package/dist/types/components/renderers/renderRowsLoader.d.ts +0 -1
  539. package/dist/types/components/tableContext.d.ts +0 -2
  540. package/dist/types/components/tests/ColumnVisibilityMenu.test.d.ts +0 -1
  541. package/dist/types/defaultPlugins.d.ts +0 -1
  542. package/dist/types/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +0 -1
  543. package/dist/types/plugins/body-header-scroll-sync/index.d.ts +0 -1
  544. package/dist/types/plugins/column-dnd/DndColumnsPlugin.d.ts +0 -1
  545. package/dist/types/plugins/column-dnd/decorateGridWithDndColumns.d.ts +0 -2
  546. package/dist/types/plugins/column-dnd/index.d.ts +0 -1
  547. package/dist/types/plugins/column-sizing/ColumnSizingPlugin.d.ts +0 -1
  548. package/dist/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +0 -6
  549. package/dist/types/plugins/column-sizing/ext-points/decorateColumn.d.ts +0 -1
  550. package/dist/types/plugins/column-sizing/ext-points/getTableProps.d.ts +0 -10
  551. package/dist/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +0 -2
  552. package/dist/types/plugins/column-sizing/index.d.ts +0 -1
  553. package/dist/types/plugins/column-sizing/useColumnSizeService.d.ts +0 -18
  554. package/dist/types/plugins/column-sizing/useStylesheetHelpers.d.ts +0 -22
  555. package/dist/types/plugins/column-sizing/utils.d.ts +0 -5
  556. package/dist/types/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +0 -1
  557. package/dist/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +0 -4
  558. package/dist/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +0 -11
  559. package/dist/types/plugins/custom-cell-renderer/index.d.ts +0 -1
  560. package/dist/types/plugins/editable/EditableComponents/ComboBox.d.ts +0 -12
  561. package/dist/types/plugins/editable/EditableComponents/TextBox.d.ts +0 -24
  562. package/dist/types/plugins/editable/EditableComponents/index.d.ts +0 -2
  563. package/dist/types/plugins/editable/EditablePlugin.d.ts +0 -1
  564. package/dist/types/plugins/editable/decorateEditable.d.ts +0 -7
  565. package/dist/types/plugins/editable/getEditorComponent.d.ts +0 -7
  566. package/dist/types/plugins/editable/index.d.ts +0 -2
  567. package/dist/types/plugins/expandable-grid/ExpandableColumn.d.ts +0 -28
  568. package/dist/types/plugins/expandable-grid/ExpandablePlugin.d.ts +0 -1
  569. package/dist/types/plugins/expandable-grid/ExpandedRow.d.ts +0 -11
  570. package/dist/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +0 -9
  571. package/dist/types/plugins/expandable-grid/index.d.ts +0 -2
  572. package/dist/types/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +0 -1
  573. package/dist/types/plugins/expandable-grid/useExpandGridState.d.ts +0 -16
  574. package/dist/types/plugins/export-data/ExportDataPlugin.d.ts +0 -4
  575. package/dist/types/plugins/export-data/index.d.ts +0 -1
  576. package/dist/types/plugins/filterable/FilterablePlugin.d.ts +0 -1
  577. package/dist/types/plugins/filterable/addFilterToColumn.d.ts +0 -1
  578. package/dist/types/plugins/filterable/components/FilterableHeader.d.ts +0 -28
  579. package/dist/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +0 -30
  580. package/dist/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +0 -27
  581. package/dist/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +0 -30
  582. package/dist/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +0 -35
  583. package/dist/types/plugins/filterable/components/filterable-menus/defaultDateFormat.d.ts +0 -1
  584. package/dist/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +0 -2
  585. package/dist/types/plugins/filterable/filterableFormatter.d.ts +0 -11
  586. package/dist/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +0 -3
  587. package/dist/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +0 -2
  588. package/dist/types/plugins/filterable/helper.d.ts +0 -22
  589. package/dist/types/plugins/filterable/index.d.ts +0 -1
  590. package/dist/types/plugins/filterable/useFilterableState.d.ts +0 -18
  591. package/dist/types/plugins/grouping-by/GroupingByPlugin.d.ts +0 -1
  592. package/dist/types/plugins/grouping-grid/GroupingPlugin.d.ts +0 -1
  593. package/dist/types/plugins/grouping-grid/walkStrategy.d.ts +0 -9
  594. package/dist/types/plugins/index.d.ts +0 -16
  595. package/dist/types/plugins/infinite-scrolling/InfiniteScrollPlugin.d.ts +0 -1
  596. package/dist/types/plugins/infinite-scrolling/index.d.ts +0 -1
  597. package/dist/types/plugins/pagination/PaginationPlugin.d.ts +0 -1
  598. package/dist/types/plugins/pagination/components/Pagination.d.ts +0 -10
  599. package/dist/types/plugins/pagination/components/Paginator.d.ts +0 -9
  600. package/dist/types/plugins/pagination/components/PerPageDropdown.d.ts +0 -9
  601. package/dist/types/plugins/pagination/helper.d.ts +0 -18
  602. package/dist/types/plugins/pagination/index.d.ts +0 -1
  603. package/dist/types/plugins/pagination/usePaginationState.d.ts +0 -9
  604. package/dist/types/plugins/resizable/ResizablePlugin.d.ts +0 -1
  605. package/dist/types/plugins/resizable/decorateResizable.d.ts +0 -3
  606. package/dist/types/plugins/resizable/index.d.ts +0 -1
  607. package/dist/types/plugins/resizable/useResizeHandle.d.ts +0 -13
  608. package/dist/types/plugins/resizable/utils.d.ts +0 -3
  609. package/dist/types/plugins/row-dnd/DndRowsPlugin.d.ts +0 -1
  610. package/dist/types/plugins/row-dnd/index.d.ts +0 -1
  611. package/dist/types/plugins/selectable/SelectablePlugin.d.ts +0 -1
  612. package/dist/types/plugins/selectable/addSelectableColumn.d.ts +0 -30
  613. package/dist/types/plugins/selectable/helper.d.ts +0 -6
  614. package/dist/types/plugins/selectable/index.d.ts +0 -1
  615. package/dist/types/plugins/selectable/selectableFormatter.d.ts +0 -9
  616. package/dist/types/plugins/selectable/useSelectableState.d.ts +0 -12
  617. package/dist/types/plugins/sortable/SortablePlugin.d.ts +0 -1
  618. package/dist/types/plugins/sortable/checkIfSortable.d.ts +0 -2
  619. package/dist/types/plugins/sortable/index.d.ts +0 -1
  620. package/dist/types/plugins/sortable/sortHeaderFormatter.d.ts +0 -6
  621. package/dist/types/plugins/sortable/sortTree.d.ts +0 -3
  622. package/dist/types/plugins/sortable/sorter.d.ts +0 -12
  623. package/dist/types/plugins/sortable/useSortableState.d.ts +0 -8
  624. package/dist/types/plugins/toolbar/RowRenderer.d.ts +0 -10
  625. package/dist/types/plugins/toolbar/ToolbarPlugin.d.ts +0 -1
  626. package/dist/types/plugins/toolbar/ToolbarTrigger.d.ts +0 -7
  627. package/dist/types/plugins/toolbar/index.d.ts +0 -1
  628. package/dist/types/plugins/virtualization/AutoHeightList.d.ts +0 -3
  629. package/dist/types/plugins/virtualization/VirtualizationPlugin.d.ts +0 -1
  630. package/dist/types/plugins/virtualization/VirtualizedBody.d.ts +0 -32
  631. package/dist/types/plugins/virtualization/VirtualizedBodyRow.d.ts +0 -8
  632. package/dist/types/plugins/virtualization/helper.d.ts +0 -1
  633. package/dist/types/plugins/virtualization/index.d.ts +0 -1
  634. package/dist/types/renders/CellWithAddons.d.ts +0 -51
  635. package/dist/types/renders/index.d.ts +0 -2
  636. package/dist/types/renders/styled.d.ts +0 -4
  637. package/dist/types/rowSizes.d.ts +0 -11
  638. package/dist/types/tests/DataGrid-Columns.test.d.ts +0 -1
  639. package/dist/types/tests/DataGrid-Editable.test.d.ts +0 -1
  640. package/dist/types/tests/DataGrid-Export.test.d.ts +0 -1
  641. package/dist/types/tests/DataGrid-Filter-helper.test.d.ts +0 -1
  642. package/dist/types/tests/DataGrid-Filterable-Dates.test.d.ts +0 -1
  643. package/dist/types/tests/DataGrid-Filterable-State.test.d.ts +0 -1
  644. package/dist/types/tests/DataGrid-RowDnd.test.d.ts +0 -1
  645. package/dist/types/tests/DataGrid-Selectable.test.d.ts +0 -1
  646. package/dist/types/tests/DataGrid-Sortable.test.d.ts +0 -1
  647. package/dist/types/tests/DataGrid-Toolbar.test.d.ts +0 -1
  648. package/dist/types/tests/DataGrid-Virtualization.test.d.ts +0 -1
  649. package/dist/types/tests/DataGrids-ColumnSizing.test.d.ts +0 -1
  650. package/dist/types/tests/DataGrids-ConditionalPagination.test.d.ts +0 -1
  651. package/dist/types/tests/DataGrids-Rows.test.d.ts +0 -1
  652. package/dist/types/tests/DataGrids.test.d.ts +0 -1
  653. package/dist/types/utilities/getPluginsFromProps.d.ts +0 -2
  654. package/dist/types/utilities/getScrollbarSize.d.ts +0 -1
  655. package/dist/types/utilities/normalizeData.d.ts +0 -3
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import React2 from "react";
3
- const TableContext = React2.createContext();
4
- export {
5
- TableContext
6
- };
7
- //# sourceMappingURL=tableContext.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/tableContext.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\n\nexport const TableContext = React.createContext();\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAEX,MAAM,eAAeA,OAAM,cAAc;",
6
- "names": ["React"]
7
- }
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- import { BodyHeaderScrollSyncPlugin } from "./plugins/body-header-scroll-sync/index.js";
3
- import { ResizablePlugin } from "./plugins/resizable/index.js";
4
- import { CustomRendererPlugin } from "./plugins/custom-cell-renderer/index.js";
5
- import { ColumnSizingPlugin } from "./plugins/column-sizing/index.js";
6
- const defaultPlugins = [BodyHeaderScrollSyncPlugin, ResizablePlugin, CustomRendererPlugin, ColumnSizingPlugin];
7
- export {
8
- defaultPlugins
9
- };
10
- //# sourceMappingURL=defaultPlugins.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/defaultPlugins.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { BodyHeaderScrollSyncPlugin } from './plugins/body-header-scroll-sync/index.js';\nimport { ResizablePlugin } from './plugins/resizable/index.js';\nimport { CustomRendererPlugin } from './plugins/custom-cell-renderer/index.js';\nimport { ColumnSizingPlugin } from './plugins/column-sizing/index.js';\n\nexport const defaultPlugins = [BodyHeaderScrollSyncPlugin, ResizablePlugin, CustomRendererPlugin, ColumnSizingPlugin];\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,kCAAkC;AAC3C,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,0BAA0B;AAE5B,MAAM,iBAAiB,CAAC,4BAA4B,iBAAiB,sBAAsB,kBAAkB;",
6
- "names": []
7
- }
@@ -1,115 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { useMemo, useRef, useEffect } from "react";
4
- import { mergeRefs } from "@elliemae/ds-utilities";
5
- import { ScrollSync, ScrollSyncPane, createInstancePlugin } from "@elliemae/ds-shared";
6
- import { getScrollbarWidth } from "../../utilities/getScrollbarSize.js";
7
- const SCROLLBAR_WIDTH = getScrollbarWidth(2);
8
- const HeaderSyncHoc = (Component) => function(props) {
9
- return /* @__PURE__ */ jsx(ScrollSyncPane, { children: ({ registerPane }) => /* @__PURE__ */ jsx(Component, { ...props, innerRef: mergeRefs(props.innerRef, registerPane) }) });
10
- };
11
- const BodySyncHoc = (Component, notPaginated, grid) => function({
12
- children,
13
- classProps,
14
- columns,
15
- getContainer,
16
- helperClass,
17
- innerBodyRef,
18
- innerRef,
19
- isPlaceholderActive,
20
- listProps,
21
- lockAxis,
22
- noResultsPlaceholder,
23
- numRowsVisible,
24
- onSortEnd,
25
- onSortOver,
26
- onSortStart,
27
- rowKey,
28
- rowRenderer,
29
- rows,
30
- useDragHandle,
31
- className,
32
- listComponent,
33
- ...rest
34
- }) {
35
- const t = useRef();
36
- const repositionToolbarBasedOnBodyScrollPosition = (SCROLLBAR_WIDTH2) => () => {
37
- grid.refs.body.current.style.setProperty(
38
- "--toolbar-scroll",
39
- `${grid.refs.body.current.offsetWidth + grid.refs.body.current.scrollLeft - 15}px`
40
- );
41
- grid.refs.body.current.style.setProperty(
42
- "--toolbar-scroll-paginated",
43
- `${grid.refs.body.current.offsetWidth + grid.refs.body.current.scrollLeft - 19}px`
44
- );
45
- };
46
- useEffect(() => {
47
- setTimeout(repositionToolbarBasedOnBodyScrollPosition(-SCROLLBAR_WIDTH), 300);
48
- }, []);
49
- useEffect(() => {
50
- window.addEventListener("resize", repositionToolbarBasedOnBodyScrollPosition(-SCROLLBAR_WIDTH));
51
- return () => {
52
- window.removeEventListener("resize", repositionToolbarBasedOnBodyScrollPosition(-SCROLLBAR_WIDTH));
53
- };
54
- });
55
- return /* @__PURE__ */ jsx(ScrollSyncPane, { notPaginated, children: ({ registerPane }) => /* @__PURE__ */ jsx(
56
- Component,
57
- {
58
- ref: t,
59
- classProps,
60
- className,
61
- listComponent,
62
- columns,
63
- getContainer,
64
- helperClass,
65
- innerBodyRef,
66
- isPlaceholderActive,
67
- listProps,
68
- lockAxis,
69
- noResultsPlaceholder,
70
- numRowsVisible,
71
- onSortEnd,
72
- onSortOver,
73
- onSortStart,
74
- rowKey,
75
- rowRenderer,
76
- rows,
77
- useDragHandle,
78
- innerRef: mergeRefs(innerRef, registerPane, t),
79
- ...rest
80
- }
81
- ) });
82
- };
83
- const TableSyncHoc = (Component) => function(props) {
84
- return /* @__PURE__ */ jsx(
85
- ScrollSync,
86
- {
87
- proportional: false,
88
- onScroll: (e) => {
89
- e.target.style.setProperty("--toolbar-scroll", `${e.target.offsetWidth + e.target.scrollLeft - 15}px`);
90
- e.target.style.setProperty(
91
- "--toolbar-scroll-paginated",
92
- `${e.target.offsetWidth + e.target.scrollLeft - 19}px`
93
- );
94
- },
95
- children: /* @__PURE__ */ jsx(Component, { ...props })
96
- }
97
- );
98
- };
99
- const decorateRenderers = (renderers, grid) => {
100
- const HeaderWrapper = renderers.header.wrapper;
101
- const BodyWrapper = renderers.body.wrapper;
102
- const Table = renderers.table;
103
- const { paginated } = grid.props;
104
- renderers.table = useMemo(() => TableSyncHoc(Table), []);
105
- renderers.header.wrapper = useMemo(() => HeaderSyncHoc(HeaderWrapper), []);
106
- renderers.body.wrapper = useMemo(() => BodySyncHoc(BodyWrapper, !paginated, grid), []);
107
- return renderers;
108
- };
109
- const BodyHeaderScrollSyncPlugin = createInstancePlugin("body-header-scroll-sync", {
110
- decorateRenderers
111
- });
112
- export {
113
- BodyHeaderScrollSyncPlugin
114
- };
115
- //# sourceMappingURL=BodyHeaderScrollSyncPlugin.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-shadow */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable no-unused-vars */\n/* eslint-disable react/prop-types */\n/* eslint-disable max-lines */\n/* eslint-disable react-hooks/rules-of-hooks */\n/* eslint-disable no-param-reassign */\n/* eslint-disable react/display-name */\nimport React, { useMemo, useRef, useEffect } from 'react';\nimport { mergeRefs } from '@elliemae/ds-utilities';\nimport { ScrollSync, ScrollSyncPane, createInstancePlugin } from '@elliemae/ds-shared';\nimport { getScrollbarWidth } from '../../utilities/getScrollbarSize.js';\n\nconst SCROLLBAR_WIDTH = getScrollbarWidth(2);\n\nconst HeaderSyncHoc = (Component) =>\n function (props) {\n return (\n <ScrollSyncPane>\n {({ registerPane }) => <Component {...props} innerRef={mergeRefs(props.innerRef, registerPane)} />}\n </ScrollSyncPane>\n );\n };\nconst BodySyncHoc = (Component, notPaginated, grid) =>\n function ({\n children,\n classProps,\n columns,\n getContainer,\n helperClass,\n innerBodyRef,\n innerRef,\n isPlaceholderActive,\n listProps,\n lockAxis,\n noResultsPlaceholder,\n numRowsVisible,\n onSortEnd,\n onSortOver,\n onSortStart,\n rowKey,\n rowRenderer,\n rows,\n useDragHandle,\n className,\n listComponent,\n ...rest\n }) {\n const t = useRef();\n const repositionToolbarBasedOnBodyScrollPosition = (SCROLLBAR_WIDTH) => () => {\n grid.refs.body.current.style.setProperty(\n '--toolbar-scroll',\n `${grid.refs.body.current.offsetWidth + grid.refs.body.current.scrollLeft - 15}px`,\n );\n grid.refs.body.current.style.setProperty(\n '--toolbar-scroll-paginated',\n `${grid.refs.body.current.offsetWidth + grid.refs.body.current.scrollLeft - 19}px`,\n );\n };\n useEffect(() => {\n setTimeout(repositionToolbarBasedOnBodyScrollPosition(-SCROLLBAR_WIDTH), 300);\n }, []);\n useEffect(() => {\n window.addEventListener('resize', repositionToolbarBasedOnBodyScrollPosition(-SCROLLBAR_WIDTH));\n return () => {\n window.removeEventListener('resize', repositionToolbarBasedOnBodyScrollPosition(-SCROLLBAR_WIDTH));\n };\n });\n return (\n <ScrollSyncPane notPaginated={notPaginated}>\n {({ registerPane }) => (\n <Component\n ref={t}\n classProps={classProps}\n className={className}\n listComponent={listComponent}\n columns={columns}\n getContainer={getContainer}\n helperClass={helperClass}\n innerBodyRef={innerBodyRef}\n // innerRef={innerRef}\n isPlaceholderActive={isPlaceholderActive}\n listProps={listProps}\n lockAxis={lockAxis}\n noResultsPlaceholder={noResultsPlaceholder}\n numRowsVisible={numRowsVisible}\n onSortEnd={onSortEnd}\n onSortOver={onSortOver}\n onSortStart={onSortStart}\n rowKey={rowKey}\n rowRenderer={rowRenderer}\n rows={rows}\n useDragHandle={useDragHandle}\n innerRef={mergeRefs(innerRef, registerPane, t)}\n {...rest}\n />\n )}\n </ScrollSyncPane>\n );\n };\n\nconst TableSyncHoc = (Component) =>\n function (props) {\n return (\n <ScrollSync\n proportional={false}\n onScroll={(e) => {\n e.target.style.setProperty('--toolbar-scroll', `${e.target.offsetWidth + e.target.scrollLeft - 15}px`);\n e.target.style.setProperty(\n '--toolbar-scroll-paginated',\n `${e.target.offsetWidth + e.target.scrollLeft - 19}px`,\n );\n }}\n >\n <Component {...props} />\n </ScrollSync>\n );\n };\n\nconst decorateRenderers = (renderers, grid) => {\n const HeaderWrapper = renderers.header.wrapper;\n const BodyWrapper = renderers.body.wrapper;\n const Table = renderers.table;\n const { paginated } = grid.props;\n\n renderers.table = useMemo(() => TableSyncHoc(Table), []);\n renderers.header.wrapper = useMemo(() => HeaderSyncHoc(HeaderWrapper), []);\n renderers.body.wrapper = useMemo(() => BodySyncHoc(BodyWrapper, !paginated, grid), []);\n\n return renderers;\n};\n\nexport const BodyHeaderScrollSyncPlugin = createInstancePlugin('body-header-scroll-sync', {\n decorateRenderers,\n});\n"],
5
- "mappings": "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",
6
- "names": ["SCROLLBAR_WIDTH"]
7
- }
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import { BodyHeaderScrollSyncPlugin } from "./BodyHeaderScrollSyncPlugin.js";
3
- export {
4
- BodyHeaderScrollSyncPlugin
5
- };
6
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/body-header-scroll-sync/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { BodyHeaderScrollSyncPlugin } from './BodyHeaderScrollSyncPlugin.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,kCAAkC;",
6
- "names": []
7
- }
@@ -1,129 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { useEffect, useMemo, useRef } from "react";
4
- import { SortableContainer, SortableElement } from "react-sortable-hoc";
5
- import { arrayMove, omit, mergeRefs } from "@elliemae/ds-utilities";
6
- import { createInstancePlugin } from "@elliemae/ds-shared";
7
- import { addDragAndDropToColumn } from "./decorateGridWithDndColumns.js";
8
- const keysToOmit = [
9
- "axis",
10
- "contentWindow",
11
- "disableAutoscroll",
12
- "distance",
13
- "getContainer",
14
- "getHelperDimensions",
15
- "helperClass",
16
- "helperContainer",
17
- "hideSortableGhost",
18
- "keyboardSortingTransitionDuration",
19
- "lockAxis",
20
- "lockOffset",
21
- "lockToContainerEdges",
22
- "onSortEnd",
23
- "onSortMove",
24
- "onSortOver",
25
- "onSortStart",
26
- "pressDelay",
27
- "pressThreshold",
28
- "shouldCancelStart",
29
- "transitionDuration",
30
- "updateBeforeSortStart",
31
- "useDragHandle",
32
- "useWindowAsScrollContainer"
33
- ];
34
- const decorateColumn = (column, grid) => column.isUserColumn ? addDragAndDropToColumn(grid, column) : column;
35
- const getHeaderRowProps = (props, grid) => {
36
- const { onMoveColumnStart, onMoveColumnEnd, onMoveColumnOver } = grid.props;
37
- const headerRowRef = useRef();
38
- const columnDraggingOffset = useRef(0);
39
- const sortedColumns = useRef(grid.getInstance().decoratedColumns);
40
- const nodeRef = useRef();
41
- useEffect(() => {
42
- sortedColumns.current = grid.getInstance().decoratedColumns;
43
- });
44
- const onSortOver = (params) => {
45
- const { index, newIndex, oldIndex } = params;
46
- const oldColumn = sortedColumns.current[oldIndex];
47
- const newColumn = sortedColumns.current[newIndex];
48
- if (!newColumn.isUserColumn || !oldColumn.isUserColumn)
49
- return;
50
- const columnWidth = nodeRef.current.offsetWidth;
51
- const newColumnWidth = headerRowRef.current.childNodes.item(newColumn.index).offsetWidth;
52
- const forward = newIndex > oldIndex;
53
- const columnTranslate = forward ? newIndex > index ? columnWidth * -1 : 0 : newIndex < index ? columnWidth : 0;
54
- columnDraggingOffset.current += forward ? newColumnWidth : newColumnWidth * -1;
55
- newColumn.updateStyle({
56
- transitionDuration: "300ms",
57
- transform: `translate3d(${columnTranslate}px, 0, 0)`
58
- });
59
- oldColumn.updateStyle({
60
- transitionDuration: "300ms",
61
- transform: `translate3d(${columnDraggingOffset.current}px, 0, 0)`
62
- });
63
- sortedColumns.current = arrayMove(sortedColumns.current, oldIndex, newIndex);
64
- onMoveColumnOver(params);
65
- };
66
- const onSortStart = (params) => {
67
- const { node } = params;
68
- grid.disableEvents();
69
- nodeRef.current = node;
70
- onMoveColumnStart(params);
71
- };
72
- const onSortEnd = (params) => {
73
- const { oldIndex, newIndex } = params;
74
- grid.enableEvents();
75
- columnDraggingOffset.current = 0;
76
- sortedColumns.current = grid.decoratedColumns;
77
- grid.decoratedColumns.forEach((column) => {
78
- if (!column.updateStyle)
79
- return;
80
- column.updateStyle({
81
- transitionDuration: null,
82
- transform: null
83
- });
84
- });
85
- const originalOldColumnIndex = grid.columns.findIndex(
86
- (column) => column.property === grid.decoratedColumns[oldIndex].property
87
- );
88
- const originalNewColumnIndex = grid.columns.findIndex(
89
- (column) => column.property === grid.decoratedColumns[newIndex].property
90
- );
91
- onMoveColumnEnd({
92
- newIndex: originalNewColumnIndex,
93
- oldIndex: originalOldColumnIndex
94
- });
95
- };
96
- return {
97
- axis: "x",
98
- helperClass: "header-dnd-column",
99
- innerRef: mergeRefs(props.innerRef, headerRowRef),
100
- lockAxis: "x",
101
- onSortEnd,
102
- onSortOver,
103
- onSortStart,
104
- useDragHandle: true
105
- };
106
- };
107
- const decorateRenderers = (renderers) => {
108
- const RowComponent = renderers.header.row;
109
- const CellComponent = renderers.header.cell;
110
- const Row = useMemo(() => SortableContainer((props) => /* @__PURE__ */ jsx(RowComponent, { ...omit(props, keysToOmit) })), []);
111
- const Cell = useMemo(() => SortableElement(CellComponent), []);
112
- return {
113
- ...renderers,
114
- header: {
115
- ...renderers.header,
116
- row: Row,
117
- cell: Cell
118
- }
119
- };
120
- };
121
- const DndColumnsPlugin = createInstancePlugin("dnd-columns", {
122
- getHeaderRowProps,
123
- decorateColumn,
124
- decorateRenderers
125
- });
126
- export {
127
- DndColumnsPlugin
128
- };
129
- //# sourceMappingURL=DndColumnsPlugin.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/column-dnd/DndColumnsPlugin.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/display-name */\nimport React, { useEffect, useMemo, useRef } from 'react';\nimport { SortableContainer, SortableElement } from 'react-sortable-hoc';\nimport { arrayMove, omit, mergeRefs } from '@elliemae/ds-utilities';\nimport { createInstancePlugin } from '@elliemae/ds-shared';\nimport { addDragAndDropToColumn } from './decorateGridWithDndColumns.js';\n\n// todo: remove once it's fixed in react-sortable-hoc library\nconst keysToOmit = [\n 'axis',\n 'contentWindow',\n 'disableAutoscroll',\n 'distance',\n 'getContainer',\n 'getHelperDimensions',\n 'helperClass',\n 'helperContainer',\n 'hideSortableGhost',\n 'keyboardSortingTransitionDuration',\n 'lockAxis',\n 'lockOffset',\n 'lockToContainerEdges',\n 'onSortEnd',\n 'onSortMove',\n 'onSortOver',\n 'onSortStart',\n 'pressDelay',\n 'pressThreshold',\n 'shouldCancelStart',\n 'transitionDuration',\n 'updateBeforeSortStart',\n 'useDragHandle',\n 'useWindowAsScrollContainer',\n];\n\nconst decorateColumn = (column, grid) => (column.isUserColumn ? addDragAndDropToColumn(grid, column) : column);\n\nconst getHeaderRowProps = (props, grid) => {\n const { onMoveColumnStart, onMoveColumnEnd, onMoveColumnOver } = grid.props;\n\n const headerRowRef = useRef();\n const columnDraggingOffset = useRef(0);\n const sortedColumns = useRef(grid.getInstance().decoratedColumns);\n const nodeRef = useRef();\n\n useEffect(() => {\n sortedColumns.current = grid.getInstance().decoratedColumns;\n });\n\n const onSortOver = (params) => {\n const { index, newIndex, oldIndex } = params;\n const oldColumn = sortedColumns.current[oldIndex];\n const newColumn = sortedColumns.current[newIndex];\n\n if (!newColumn.isUserColumn || !oldColumn.isUserColumn) return;\n\n const columnWidth = nodeRef.current.offsetWidth;\n const newColumnWidth = headerRowRef.current.childNodes.item(newColumn.index).offsetWidth;\n\n const forward = newIndex > oldIndex;\n\n // eslint-disable-next-line no-nested-ternary\n const columnTranslate = forward ? (newIndex > index ? columnWidth * -1 : 0) : newIndex < index ? columnWidth : 0;\n\n columnDraggingOffset.current += forward ? newColumnWidth : newColumnWidth * -1;\n\n newColumn.updateStyle({\n transitionDuration: '300ms',\n transform: `translate3d(${columnTranslate}px, 0, 0)`,\n });\n oldColumn.updateStyle({\n transitionDuration: '300ms',\n transform: `translate3d(${columnDraggingOffset.current}px, 0, 0)`,\n });\n\n sortedColumns.current = arrayMove(sortedColumns.current, oldIndex, newIndex);\n onMoveColumnOver(params);\n };\n\n const onSortStart = (params) => {\n const { node } = params;\n grid.disableEvents();\n nodeRef.current = node;\n onMoveColumnStart(params);\n };\n\n const onSortEnd = (params) => {\n const { oldIndex, newIndex } = params;\n grid.enableEvents();\n columnDraggingOffset.current = 0;\n sortedColumns.current = grid.decoratedColumns;\n grid.decoratedColumns.forEach((column) => {\n if (!column.updateStyle) return;\n column.updateStyle({\n transitionDuration: null,\n transform: null,\n });\n });\n\n const originalOldColumnIndex = grid.columns.findIndex(\n (column) => column.property === grid.decoratedColumns[oldIndex].property,\n );\n const originalNewColumnIndex = grid.columns.findIndex(\n (column) => column.property === grid.decoratedColumns[newIndex].property,\n );\n\n onMoveColumnEnd({\n newIndex: originalNewColumnIndex,\n oldIndex: originalOldColumnIndex,\n });\n };\n\n return {\n axis: 'x',\n helperClass: 'header-dnd-column',\n innerRef: mergeRefs(props.innerRef, headerRowRef),\n lockAxis: 'x',\n onSortEnd,\n onSortOver,\n onSortStart,\n useDragHandle: true,\n };\n};\n\nconst decorateRenderers = (renderers) => {\n const RowComponent = renderers.header.row;\n const CellComponent = renderers.header.cell;\n\n const Row = useMemo(() => SortableContainer((props) => <RowComponent {...omit(props, keysToOmit)} />), []);\n\n const Cell = useMemo(() => SortableElement(CellComponent), []);\n\n return {\n ...renderers,\n header: {\n ...renderers.header,\n row: Row,\n cell: Cell,\n },\n };\n};\n\nexport const DndColumnsPlugin = createInstancePlugin('dnd-columns', {\n getHeaderRowProps,\n decorateColumn,\n decorateRenderers,\n});\n"],
5
- "mappings": "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",
6
- "names": []
7
- }
@@ -1,18 +0,0 @@
1
- import * as React from "react";
2
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
- import { SortableHandle } from "react-sortable-hoc";
4
- import { GripperVertical } from "@elliemae/ds-icons";
5
- import { appendHeaderFormatter, mergeClassNameToColumnHeader } from "@elliemae/ds-shared";
6
- const DragHandle = SortableHandle(() => /* @__PURE__ */ jsx(GripperVertical, { className: "drag-handle" }));
7
- const DndHeaderFormatter = (value) => /* @__PURE__ */ jsxs(Fragment, { children: [
8
- /* @__PURE__ */ jsx(DragHandle, {}),
9
- value
10
- ] });
11
- const addDragAndDropToColumn = (grid, column) => {
12
- column = appendHeaderFormatter(DndHeaderFormatter, column);
13
- return mergeClassNameToColumnHeader("with-dnd-column", column);
14
- };
15
- export {
16
- addDragAndDropToColumn
17
- };
18
- //# sourceMappingURL=decorateGridWithDndColumns.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/column-dnd/decorateGridWithDndColumns.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { SortableHandle } from 'react-sortable-hoc';\nimport { GripperVertical } from '@elliemae/ds-icons';\nimport { appendHeaderFormatter, mergeClassNameToColumnHeader } from '@elliemae/ds-shared';\n\nconst DragHandle = SortableHandle(() => <GripperVertical className=\"drag-handle\" />);\n\nconst DndHeaderFormatter = (value) => (\n <>\n <DragHandle />\n {value}\n </>\n);\n\nconst addDragAndDropToColumn = (grid, column) => {\n column = appendHeaderFormatter(DndHeaderFormatter, column);\n return mergeClassNameToColumnHeader('with-dnd-column', column);\n};\n\nexport { addDragAndDropToColumn };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACKiB,SAGtC,UAHsC,KAGtC,YAHsC;AAJxC,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,uBAAuB,oCAAoC;AAEpE,MAAM,aAAa,eAAe,MAAM,oBAAC,mBAAgB,WAAU,eAAc,CAAE;AAEnF,MAAM,qBAAqB,CAAC,UAC1B,iCACE;AAAA,sBAAC,cAAW;AAAA,EACX;AAAA,GACH;AAGF,MAAM,yBAAyB,CAAC,MAAM,WAAW;AAC/C,WAAS,sBAAsB,oBAAoB,MAAM;AACzD,SAAO,6BAA6B,mBAAmB,MAAM;AAC/D;",
6
- "names": []
7
- }
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import { DndColumnsPlugin } from "./DndColumnsPlugin.js";
3
- export {
4
- DndColumnsPlugin
5
- };
6
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/column-dnd/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DndColumnsPlugin } from './DndColumnsPlugin.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,wBAAwB;",
6
- "names": []
7
- }
@@ -1,63 +0,0 @@
1
- import * as React from "react";
2
- import { useRef } from "react";
3
- import { cx } from "@elliemae/ds-utilities";
4
- import { createInstancePlugin } from "@elliemae/ds-shared";
5
- import { useStylesheetHelpers } from "./useStylesheetHelpers.js";
6
- import { useColumnSizeService } from "./useColumnSizeService.js";
7
- import { getTableProps } from "./ext-points/getTableProps.js";
8
- import { decorateColumn } from "./ext-points/decorateColumn.js";
9
- const getHeaderRowProps = (rowProps, { rowsStylesheet }) => {
10
- rowProps.className = `${rowsStylesheet.getRowClassName()}-header`;
11
- return rowProps;
12
- };
13
- const getRowProps = (rowProps, { rowsStylesheet }) => {
14
- rowProps.className = cx(rowProps.className, rowsStylesheet.getRowClassName());
15
- return rowProps;
16
- };
17
- const decorateColumns = (columns, grid) => grid.columnsStylesheet.decorateColumns(columns, grid);
18
- const decorateGrid = (grid) => {
19
- const isDragging = useRef(false);
20
- const tableRef = useRef();
21
- const resizedColumns = useRef({});
22
- const scrollbarWidth = useRef();
23
- const bodyWidth = useRef();
24
- const allColumnsHaveBeenFixed = useRef(false);
25
- const columnSizeService = useColumnSizeService(grid);
26
- const { columnsStylesheet, rowsStylesheet } = useStylesheetHelpers(grid);
27
- const updateRowWidth = (width) => {
28
- const gridWidth = width || tableRef.current.offsetWidth;
29
- const columnsTotalSize = columnSizeService.computeColumnsTotalSize();
30
- if (columnsTotalSize > gridWidth + 5) {
31
- if (!allColumnsHaveBeenFixed.current && isDragging.current) {
32
- columnSizeService.setActualColumnsSizesFixed();
33
- allColumnsHaveBeenFixed.current = true;
34
- }
35
- rowsStylesheet.update(columnsTotalSize);
36
- } else {
37
- rowsStylesheet.update(void 0);
38
- }
39
- };
40
- return {
41
- isDragging,
42
- tableRef,
43
- bodyWidth,
44
- scrollbarWidth,
45
- columnSizeService,
46
- rowsStylesheet,
47
- columnsStylesheet,
48
- resizedColumns,
49
- updateRowWidth
50
- };
51
- };
52
- const ColumnSizingPlugin = createInstancePlugin("column-sizing", {
53
- decorateGrid,
54
- decorateColumn,
55
- getRowProps,
56
- getHeaderRowProps,
57
- getTableProps,
58
- decorateColumns
59
- });
60
- export {
61
- ColumnSizingPlugin
62
- };
63
- //# sourceMappingURL=ColumnSizingPlugin.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/column-sizing/ColumnSizingPlugin.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-param-reassign */\n/* eslint-disable react-hooks/rules-of-hooks */\nimport { useRef } from 'react';\nimport { cx } from '@elliemae/ds-utilities';\nimport { createInstancePlugin } from '@elliemae/ds-shared';\nimport { useStylesheetHelpers } from './useStylesheetHelpers.js';\nimport { useColumnSizeService } from './useColumnSizeService.js';\nimport { getTableProps } from './ext-points/getTableProps.js';\nimport { decorateColumn } from './ext-points/decorateColumn.js';\n\nconst getHeaderRowProps = (rowProps, { rowsStylesheet }) => {\n rowProps.className = `${rowsStylesheet.getRowClassName()}-header`;\n return rowProps;\n};\n\nconst getRowProps = (rowProps, { rowsStylesheet }) => {\n rowProps.className = cx(rowProps.className, rowsStylesheet.getRowClassName());\n return rowProps;\n};\n\nconst decorateColumns = (columns, grid) => grid.columnsStylesheet.decorateColumns(columns, grid);\n\nconst decorateGrid = (grid) => {\n const isDragging = useRef(false);\n const tableRef = useRef();\n const resizedColumns = useRef({});\n const scrollbarWidth = useRef();\n const bodyWidth = useRef();\n const allColumnsHaveBeenFixed = useRef(false);\n const columnSizeService = useColumnSizeService(grid);\n const { columnsStylesheet, rowsStylesheet } = useStylesheetHelpers(grid);\n\n // row size side-effect\n const updateRowWidth = (width) => {\n const gridWidth = width || tableRef.current.offsetWidth;\n const columnsTotalSize = columnSizeService.computeColumnsTotalSize();\n\n if (columnsTotalSize > gridWidth + 5) {\n if (!allColumnsHaveBeenFixed.current && isDragging.current) {\n columnSizeService.setActualColumnsSizesFixed();\n allColumnsHaveBeenFixed.current = true;\n }\n rowsStylesheet.update(columnsTotalSize);\n } else {\n rowsStylesheet.update(undefined);\n }\n };\n\n return {\n isDragging,\n tableRef,\n bodyWidth,\n scrollbarWidth,\n columnSizeService,\n rowsStylesheet,\n columnsStylesheet,\n resizedColumns,\n updateRowWidth,\n };\n};\n\nexport const ColumnSizingPlugin = createInstancePlugin('column-sizing', {\n decorateGrid: decorateGrid,\n decorateColumn: decorateColumn,\n getRowProps: getRowProps,\n getHeaderRowProps: getHeaderRowProps,\n getTableProps: getTableProps,\n decorateColumns: decorateColumns,\n});\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,cAAc;AACvB,SAAS,UAAU;AACnB,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAE/B,MAAM,oBAAoB,CAAC,UAAU,EAAE,eAAe,MAAM;AAC1D,WAAS,YAAY,GAAG,eAAe,gBAAgB;AACvD,SAAO;AACT;AAEA,MAAM,cAAc,CAAC,UAAU,EAAE,eAAe,MAAM;AACpD,WAAS,YAAY,GAAG,SAAS,WAAW,eAAe,gBAAgB,CAAC;AAC5E,SAAO;AACT;AAEA,MAAM,kBAAkB,CAAC,SAAS,SAAS,KAAK,kBAAkB,gBAAgB,SAAS,IAAI;AAE/F,MAAM,eAAe,CAAC,SAAS;AAC7B,QAAM,aAAa,OAAO,KAAK;AAC/B,QAAM,WAAW,OAAO;AACxB,QAAM,iBAAiB,OAAO,CAAC,CAAC;AAChC,QAAM,iBAAiB,OAAO;AAC9B,QAAM,YAAY,OAAO;AACzB,QAAM,0BAA0B,OAAO,KAAK;AAC5C,QAAM,oBAAoB,qBAAqB,IAAI;AACnD,QAAM,EAAE,mBAAmB,eAAe,IAAI,qBAAqB,IAAI;AAGvE,QAAM,iBAAiB,CAAC,UAAU;AAChC,UAAM,YAAY,SAAS,SAAS,QAAQ;AAC5C,UAAM,mBAAmB,kBAAkB,wBAAwB;AAEnE,QAAI,mBAAmB,YAAY,GAAG;AACpC,UAAI,CAAC,wBAAwB,WAAW,WAAW,SAAS;AAC1D,0BAAkB,2BAA2B;AAC7C,gCAAwB,UAAU;AAAA,MACpC;AACA,qBAAe,OAAO,gBAAgB;AAAA,IACxC,OAAO;AACL,qBAAe,OAAO,MAAS;AAAA,IACjC;AAAA,EACF;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEO,MAAM,qBAAqB,qBAAqB,iBAAiB;AAAA,EACtE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;",
6
- "names": []
7
- }
@@ -1,40 +0,0 @@
1
- import * as React from "react";
2
- import { useLayoutEffect, useRef } from "react";
3
- import { mergeRefs } from "@elliemae/ds-utilities";
4
- const columnMeasurerTransformer = (columnSizeService) => (value, { column, grid }, props = {}) => {
5
- const { registerColumn } = columnSizeService;
6
- const cellRef = useRef();
7
- useLayoutEffect(() => {
8
- const { columns, expandedToContentColumns } = columnSizeService;
9
- const {
10
- props: { minColumnWidth },
11
- resizedColumns
12
- } = grid.getInstance();
13
- if (cellRef.current) {
14
- if (column.expandWidthToContent && !expandedToContentColumns[column.uuid]) {
15
- const originalWidth = cellRef.current.offsetWidth;
16
- cellRef.current.style.flex = "initial";
17
- cellRef.current.style.minWidth = "initial";
18
- const calcWidth = cellRef.current.offsetWidth + 20;
19
- if (originalWidth + 20 <= calcWidth) {
20
- resizedColumns.current[column.uuid] = calcWidth;
21
- columns[column.uuid].minWidth = calcWidth;
22
- } else {
23
- columns[column.uuid].minWidth = originalWidth;
24
- }
25
- expandedToContentColumns[column.uuid] = true;
26
- cellRef.current.style.minWidth = null;
27
- cellRef.current.style.flex = 1;
28
- column.node = cellRef.current;
29
- }
30
- }
31
- });
32
- return {
33
- ...props,
34
- innerRef: mergeRefs(cellRef, props.innerRef, registerColumn(column))
35
- };
36
- };
37
- export {
38
- columnMeasurerTransformer
39
- };
40
- //# sourceMappingURL=columnMeasurerTransformer.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/column-sizing/columnMeasurerTransformer.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useLayoutEffect, useRef } from 'react';\nimport { mergeRefs } from '@elliemae/ds-utilities';\n\nexport const columnMeasurerTransformer =\n (columnSizeService) =>\n (value, { column, grid }, props = {}) => {\n const { registerColumn } = columnSizeService;\n const cellRef = useRef();\n\n useLayoutEffect(() => {\n const { columns, expandedToContentColumns } = columnSizeService;\n const {\n props: { minColumnWidth },\n resizedColumns,\n } = grid.getInstance();\n if (cellRef.current) {\n // FIX: merge\n // if (column.width && column.width !== 'string' && !initialUsedSpace[column.property]) {\n // increaseUsedSpace(getColumnWidthSize(column.width, minColumnWidth, column), column.property)\n // }\n if (column.expandWidthToContent && !expandedToContentColumns[column.uuid]) {\n // measure the content and reset to flex\n const originalWidth = cellRef.current.offsetWidth;\n cellRef.current.style.flex = 'initial';\n cellRef.current.style.minWidth = 'initial';\n const calcWidth = cellRef.current.offsetWidth + 20;\n if (originalWidth + 20 <= calcWidth) {\n resizedColumns.current[column.uuid] = calcWidth;\n columns[column.uuid].minWidth = calcWidth;\n } else {\n columns[column.uuid].minWidth = originalWidth;\n }\n expandedToContentColumns[column.uuid] = true;\n cellRef.current.style.minWidth = null;\n cellRef.current.style.flex = 1;\n column.node = cellRef.current;\n }\n }\n });\n\n return {\n ...props,\n innerRef: mergeRefs(cellRef, props.innerRef, registerColumn(column)),\n };\n };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB,cAAc;AACxC,SAAS,iBAAiB;AAEnB,MAAM,4BACX,CAAC,sBACD,CAAC,OAAO,EAAE,QAAQ,KAAK,GAAG,QAAQ,CAAC,MAAM;AACvC,QAAM,EAAE,eAAe,IAAI;AAC3B,QAAM,UAAU,OAAO;AAEvB,kBAAgB,MAAM;AACpB,UAAM,EAAE,SAAS,yBAAyB,IAAI;AAC9C,UAAM;AAAA,MACJ,OAAO,EAAE,eAAe;AAAA,MACxB;AAAA,IACF,IAAI,KAAK,YAAY;AACrB,QAAI,QAAQ,SAAS;AAKnB,UAAI,OAAO,wBAAwB,CAAC,yBAAyB,OAAO,IAAI,GAAG;AAEzE,cAAM,gBAAgB,QAAQ,QAAQ;AACtC,gBAAQ,QAAQ,MAAM,OAAO;AAC7B,gBAAQ,QAAQ,MAAM,WAAW;AACjC,cAAM,YAAY,QAAQ,QAAQ,cAAc;AAChD,YAAI,gBAAgB,MAAM,WAAW;AACnC,yBAAe,QAAQ,OAAO,IAAI,IAAI;AACtC,kBAAQ,OAAO,IAAI,EAAE,WAAW;AAAA,QAClC,OAAO;AACL,kBAAQ,OAAO,IAAI,EAAE,WAAW;AAAA,QAClC;AACA,iCAAyB,OAAO,IAAI,IAAI;AACxC,gBAAQ,QAAQ,MAAM,WAAW;AACjC,gBAAQ,QAAQ,MAAM,OAAO;AAC7B,eAAO,OAAO,QAAQ;AAAA,MACxB;AAAA,IACF;AAAA,EACF,CAAC;AAED,SAAO;AAAA,IACL,GAAG;AAAA,IACH,UAAU,UAAU,SAAS,MAAM,UAAU,eAAe,MAAM,CAAC;AAAA,EACrE;AACF;",
6
- "names": []
7
- }
@@ -1,15 +0,0 @@
1
- import * as React from "react";
2
- import { get, set } from "@elliemae/ds-utilities";
3
- import { columnMeasurerTransformer } from "../columnMeasurerTransformer.js";
4
- function decorateColumn(column, grid, index) {
5
- const transformsPath = ["header", "transforms"];
6
- const transforms = get(column, transformsPath, []);
7
- transforms.push(columnMeasurerTransformer(grid.columnSizeService, grid));
8
- column.index = index;
9
- set(column, transformsPath, transforms);
10
- return column;
11
- }
12
- export {
13
- decorateColumn
14
- };
15
- //# sourceMappingURL=decorateColumn.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/plugins/column-sizing/ext-points/decorateColumn.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { get, set } from '@elliemae/ds-utilities';\nimport { columnMeasurerTransformer } from '../columnMeasurerTransformer.js';\n\nexport function decorateColumn(column, grid, index) {\n const transformsPath = ['header', 'transforms'];\n const transforms = get(column, transformsPath, []);\n transforms.push(columnMeasurerTransformer(grid.columnSizeService, grid));\n column.index = index;\n set(column, transformsPath, transforms);\n\n return column;\n}\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,KAAK,WAAW;AACzB,SAAS,iCAAiC;AAEnC,SAAS,eAAe,QAAQ,MAAM,OAAO;AAClD,QAAM,iBAAiB,CAAC,UAAU,YAAY;AAC9C,QAAM,aAAa,IAAI,QAAQ,gBAAgB,CAAC,CAAC;AACjD,aAAW,KAAK,0BAA0B,KAAK,mBAAmB,IAAI,CAAC;AACvE,SAAO,QAAQ;AACf,MAAI,QAAQ,gBAAgB,UAAU;AAEtC,SAAO;AACT;",
6
- "names": []
7
- }
@@ -1,35 +0,0 @@
1
- import * as React from "react";
2
- import { useEffect, useState } from "react";
3
- import { useResizeObserver, mergeRefs } from "@elliemae/ds-utilities";
4
- import { getScrollbarSizeFromHeaderAndBody } from "../utils.js";
5
- function getTableProps(tableProps, { refs, tableRef, bodyWidth, scrollbarWidth, isDragging, columnSizeService, updateRowWidth, columns }) {
6
- const [tableNode, tableRefCallback] = useState();
7
- useResizeObserver(({ width }) => {
8
- if (!refs.header.current)
9
- return;
10
- if (typeof scrollbarWidth.current !== "number")
11
- scrollbarWidth.current = getScrollbarSizeFromHeaderAndBody(refs, width);
12
- if (typeof bodyWidth.current !== "number")
13
- bodyWidth.current = refs.body.offsetWidth;
14
- if (isDragging.current)
15
- return;
16
- columnSizeService.updateMissingWidths(width);
17
- updateRowWidth(width);
18
- }, tableNode);
19
- useEffect(() => {
20
- if (tableNode) {
21
- columnSizeService.updateMissingWidths(tableNode.clientWidth);
22
- updateRowWidth(tableNode.clientWidth);
23
- }
24
- if (typeof bodyWidth.current !== "number")
25
- bodyWidth.current = refs.body.clientWidth;
26
- }, [columns, tableNode]);
27
- return {
28
- ...tableProps,
29
- innerRef: mergeRefs(tableRefCallback, tableProps.innerRef, tableRef)
30
- };
31
- }
32
- export {
33
- getTableProps
34
- };
35
- //# sourceMappingURL=getTableProps.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/plugins/column-sizing/ext-points/getTableProps.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useEffect, useState } from 'react';\nimport { useResizeObserver, mergeRefs } from '@elliemae/ds-utilities';\nimport { getScrollbarSizeFromHeaderAndBody } from '../utils.js';\n\nexport function getTableProps(\n tableProps,\n { refs, tableRef, bodyWidth, scrollbarWidth, isDragging, columnSizeService, updateRowWidth, columns },\n) {\n const [tableNode, tableRefCallback] = useState();\n\n useResizeObserver(({ width }) => {\n if (!refs.header.current) return;\n if (typeof scrollbarWidth.current !== 'number')\n scrollbarWidth.current = getScrollbarSizeFromHeaderAndBody(refs, width);\n if (typeof bodyWidth.current !== 'number') bodyWidth.current = refs.body.offsetWidth;\n // DataGrid: header with width 0 after redirect from details page (https://jira.elliemae.io/browse/PUI-2162)\n // if (scrollbarWidth.current !== 0 && width - scrollbarWidth.current > 0) {\n // refs.header.current.style.width = `${width - scrollbarWidth.current}px`\n // }\n\n if (isDragging.current) return;\n columnSizeService.updateMissingWidths(width);\n updateRowWidth(width);\n }, tableNode);\n\n useEffect(() => {\n if (tableNode) {\n columnSizeService.updateMissingWidths(tableNode.clientWidth);\n updateRowWidth(tableNode.clientWidth);\n }\n if (typeof bodyWidth.current !== 'number') bodyWidth.current = refs.body.clientWidth;\n }, [columns, tableNode]);\n\n return {\n ...tableProps,\n innerRef: mergeRefs(tableRefCallback, tableProps.innerRef, tableRef),\n };\n}\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW,gBAAgB;AACpC,SAAS,mBAAmB,iBAAiB;AAC7C,SAAS,yCAAyC;AAE3C,SAAS,cACd,YACA,EAAE,MAAM,UAAU,WAAW,gBAAgB,YAAY,mBAAmB,gBAAgB,QAAQ,GACpG;AACA,QAAM,CAAC,WAAW,gBAAgB,IAAI,SAAS;AAE/C,oBAAkB,CAAC,EAAE,MAAM,MAAM;AAC/B,QAAI,CAAC,KAAK,OAAO;AAAS;AAC1B,QAAI,OAAO,eAAe,YAAY;AACpC,qBAAe,UAAU,kCAAkC,MAAM,KAAK;AACxE,QAAI,OAAO,UAAU,YAAY;AAAU,gBAAU,UAAU,KAAK,KAAK;AAMzE,QAAI,WAAW;AAAS;AACxB,sBAAkB,oBAAoB,KAAK;AAC3C,mBAAe,KAAK;AAAA,EACtB,GAAG,SAAS;AAEZ,YAAU,MAAM;AACd,QAAI,WAAW;AACb,wBAAkB,oBAAoB,UAAU,WAAW;AAC3D,qBAAe,UAAU,WAAW;AAAA,IACtC;AACA,QAAI,OAAO,UAAU,YAAY;AAAU,gBAAU,UAAU,KAAK,KAAK;AAAA,EAC3E,GAAG,CAAC,SAAS,SAAS,CAAC;AAEvB,SAAO;AAAA,IACL,GAAG;AAAA,IACH,UAAU,UAAU,kBAAkB,WAAW,UAAU,QAAQ;AAAA,EACrE;AACF;",
6
- "names": []
7
- }
@@ -1,8 +0,0 @@
1
- import * as React from "react";
2
- const getColumnNameFromProperty = (property) => property && property.replace(/\./g, "-");
3
- var getColumnNameFromProperty_default = getColumnNameFromProperty;
4
- export {
5
- getColumnNameFromProperty_default as default,
6
- getColumnNameFromProperty
7
- };
8
- //# sourceMappingURL=getColumnNameFromProperty.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/column-sizing/getColumnNameFromProperty.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const getColumnNameFromProperty = (property) => property && property.replace(/\\./g, '-');\n\nexport default getColumnNameFromProperty;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,4BAA4B,CAAC,aAAa,YAAY,SAAS,QAAQ,OAAO,GAAG;AAE9F,IAAO,oCAAQ;",
6
- "names": []
7
- }
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import { ColumnSizingPlugin } from "./ColumnSizingPlugin.js";
3
- export {
4
- ColumnSizingPlugin
5
- };
6
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/column-sizing/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { ColumnSizingPlugin } from './ColumnSizingPlugin.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,0BAA0B;",
6
- "names": []
7
- }