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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (655) hide show
  1. package/dist/cjs/index.js +4 -39
  2. package/dist/cjs/index.js.map +3 -3
  3. package/dist/esm/index.js +3 -59
  4. package/dist/esm/index.js.map +3 -3
  5. package/dist/types/index.d.ts +2 -9
  6. package/package.json +6 -540
  7. package/dist/cjs/DSDataGrid.js +0 -589
  8. package/dist/cjs/DSDataGrid.js.map +0 -7
  9. package/dist/cjs/DataGridImpl.js +0 -156
  10. package/dist/cjs/DataGridImpl.js.map +0 -7
  11. package/dist/cjs/PaginatedDataGrid.js +0 -84
  12. package/dist/cjs/PaginatedDataGrid.js.map +0 -7
  13. package/dist/cjs/blockNames.js +0 -40
  14. package/dist/cjs/blockNames.js.map +0 -7
  15. package/dist/cjs/columns/IconColumn.js +0 -109
  16. package/dist/cjs/columns/IconColumn.js.map +0 -7
  17. package/dist/cjs/columns/NumberColumn.js +0 -37
  18. package/dist/cjs/columns/NumberColumn.js.map +0 -7
  19. package/dist/cjs/components/BodyCell.js +0 -114
  20. package/dist/cjs/components/BodyCell.js.map +0 -7
  21. package/dist/cjs/components/BodyList.js +0 -48
  22. package/dist/cjs/components/BodyList.js.map +0 -7
  23. package/dist/cjs/components/ColumnVisibilityMenuOption.js +0 -65
  24. package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +0 -7
  25. package/dist/cjs/components/ColumnsOptionsMenuSection.js +0 -63
  26. package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +0 -7
  27. package/dist/cjs/components/EmptyState.js +0 -81
  28. package/dist/cjs/components/EmptyState.js.map +0 -7
  29. package/dist/cjs/components/HeaderCell.js +0 -79
  30. package/dist/cjs/components/HeaderCell.js.map +0 -7
  31. package/dist/cjs/components/List.js +0 -43
  32. package/dist/cjs/components/List.js.map +0 -7
  33. package/dist/cjs/components/ListItem.js +0 -49
  34. package/dist/cjs/components/ListItem.js.map +0 -7
  35. package/dist/cjs/components/NoResults.js +0 -53
  36. package/dist/cjs/components/NoResults.js.map +0 -7
  37. package/dist/cjs/components/RowsLoader.js +0 -41
  38. package/dist/cjs/components/RowsLoader.js.map +0 -7
  39. package/dist/cjs/components/Table.js +0 -125
  40. package/dist/cjs/components/Table.js.map +0 -7
  41. package/dist/cjs/components/TableBody.js +0 -71
  42. package/dist/cjs/components/TableBody.js.map +0 -7
  43. package/dist/cjs/components/TableHeader.js +0 -60
  44. package/dist/cjs/components/TableHeader.js.map +0 -7
  45. package/dist/cjs/components/footer/addOptionalFooterComponents.js +0 -60
  46. package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +0 -7
  47. package/dist/cjs/components/header/PrimaryControls.js +0 -54
  48. package/dist/cjs/components/header/PrimaryControls.js.map +0 -7
  49. package/dist/cjs/components/header/addOptionalHeaderComponents.js +0 -62
  50. package/dist/cjs/components/header/addOptionalHeaderComponents.js.map +0 -7
  51. package/dist/cjs/components/index.js +0 -44
  52. package/dist/cjs/components/index.js.map +0 -7
  53. package/dist/cjs/components/renderers/defaultClassedRenderers.js +0 -67
  54. package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +0 -7
  55. package/dist/cjs/components/renderers/index.js +0 -51
  56. package/dist/cjs/components/renderers/index.js.map +0 -7
  57. package/dist/cjs/components/renderers/renderRowsLoader.js +0 -38
  58. package/dist/cjs/components/renderers/renderRowsLoader.js.map +0 -7
  59. package/dist/cjs/components/tableContext.js +0 -37
  60. package/dist/cjs/components/tableContext.js.map +0 -7
  61. package/dist/cjs/defaultPlugins.js +0 -40
  62. package/dist/cjs/defaultPlugins.js.map +0 -7
  63. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -145
  64. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -7
  65. package/dist/cjs/plugins/body-header-scroll-sync/index.js +0 -36
  66. package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +0 -7
  67. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +0 -159
  68. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +0 -7
  69. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +0 -48
  70. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -7
  71. package/dist/cjs/plugins/column-dnd/index.js +0 -36
  72. package/dist/cjs/plugins/column-dnd/index.js.map +0 -7
  73. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +0 -93
  74. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -7
  75. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js +0 -70
  76. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -7
  77. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +0 -45
  78. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -7
  79. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +0 -65
  80. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +0 -7
  81. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js +0 -38
  82. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -7
  83. package/dist/cjs/plugins/column-sizing/index.js +0 -36
  84. package/dist/cjs/plugins/column-sizing/index.js.map +0 -7
  85. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +0 -148
  86. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +0 -7
  87. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +0 -181
  88. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +0 -7
  89. package/dist/cjs/plugins/column-sizing/utils.js +0 -69
  90. package/dist/cjs/plugins/column-sizing/utils.js.map +0 -7
  91. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -41
  92. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -7
  93. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -79
  94. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -7
  95. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +0 -60
  96. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -7
  97. package/dist/cjs/plugins/custom-cell-renderer/index.js +0 -36
  98. package/dist/cjs/plugins/custom-cell-renderer/index.js.map +0 -7
  99. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +0 -73
  100. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +0 -7
  101. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +0 -95
  102. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +0 -7
  103. package/dist/cjs/plugins/editable/EditableComponents/index.js +0 -38
  104. package/dist/cjs/plugins/editable/EditableComponents/index.js.map +0 -7
  105. package/dist/cjs/plugins/editable/EditablePlugin.js +0 -112
  106. package/dist/cjs/plugins/editable/EditablePlugin.js.map +0 -7
  107. package/dist/cjs/plugins/editable/decorateEditable.js +0 -96
  108. package/dist/cjs/plugins/editable/decorateEditable.js.map +0 -7
  109. package/dist/cjs/plugins/editable/getEditorComponent.js +0 -60
  110. package/dist/cjs/plugins/editable/getEditorComponent.js.map +0 -7
  111. package/dist/cjs/plugins/editable/index.js +0 -39
  112. package/dist/cjs/plugins/editable/index.js.map +0 -7
  113. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +0 -131
  114. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +0 -7
  115. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +0 -197
  116. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +0 -7
  117. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +0 -147
  118. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +0 -7
  119. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +0 -57
  120. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -7
  121. package/dist/cjs/plugins/expandable-grid/index.js +0 -38
  122. package/dist/cjs/plugins/expandable-grid/index.js.map +0 -7
  123. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +0 -94
  124. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +0 -7
  125. package/dist/cjs/plugins/export-data/ExportDataPlugin.js +0 -135
  126. package/dist/cjs/plugins/export-data/ExportDataPlugin.js.map +0 -7
  127. package/dist/cjs/plugins/export-data/index.js +0 -36
  128. package/dist/cjs/plugins/export-data/index.js.map +0 -7
  129. package/dist/cjs/plugins/filterable/FilterablePlugin.js +0 -84
  130. package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +0 -7
  131. package/dist/cjs/plugins/filterable/addFilterToColumn.js +0 -44
  132. package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +0 -7
  133. package/dist/cjs/plugins/filterable/components/FilterableHeader.js +0 -133
  134. package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +0 -7
  135. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -179
  136. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -7
  137. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -133
  138. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -7
  139. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -231
  140. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -7
  141. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -183
  142. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -7
  143. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -36
  144. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -7
  145. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -48
  146. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -7
  147. package/dist/cjs/plugins/filterable/filterableFormatter.js +0 -69
  148. package/dist/cjs/plugins/filterable/filterableFormatter.js.map +0 -7
  149. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -83
  150. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -7
  151. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +0 -45
  152. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -7
  153. package/dist/cjs/plugins/filterable/helper.js +0 -113
  154. package/dist/cjs/plugins/filterable/helper.js.map +0 -7
  155. package/dist/cjs/plugins/filterable/index.js +0 -36
  156. package/dist/cjs/plugins/filterable/index.js.map +0 -7
  157. package/dist/cjs/plugins/filterable/useFilterableState.js +0 -112
  158. package/dist/cjs/plugins/filterable/useFilterableState.js.map +0 -7
  159. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js +0 -58
  160. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js.map +0 -7
  161. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +0 -134
  162. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +0 -7
  163. package/dist/cjs/plugins/grouping-grid/walkStrategy.js +0 -77
  164. package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +0 -7
  165. package/dist/cjs/plugins/index.js +0 -69
  166. package/dist/cjs/plugins/index.js.map +0 -7
  167. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -101
  168. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -7
  169. package/dist/cjs/plugins/infinite-scrolling/index.js +0 -36
  170. package/dist/cjs/plugins/infinite-scrolling/index.js.map +0 -7
  171. package/dist/cjs/plugins/pagination/PaginationPlugin.js +0 -90
  172. package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +0 -7
  173. package/dist/cjs/plugins/pagination/components/Pagination.js +0 -57
  174. package/dist/cjs/plugins/pagination/components/Pagination.js.map +0 -7
  175. package/dist/cjs/plugins/pagination/components/Paginator.js +0 -73
  176. package/dist/cjs/plugins/pagination/components/Paginator.js.map +0 -7
  177. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +0 -74
  178. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +0 -7
  179. package/dist/cjs/plugins/pagination/helper.js +0 -63
  180. package/dist/cjs/plugins/pagination/helper.js.map +0 -7
  181. package/dist/cjs/plugins/pagination/index.js +0 -36
  182. package/dist/cjs/plugins/pagination/index.js.map +0 -7
  183. package/dist/cjs/plugins/pagination/usePaginationState.js +0 -83
  184. package/dist/cjs/plugins/pagination/usePaginationState.js.map +0 -7
  185. package/dist/cjs/plugins/resizable/ResizablePlugin.js +0 -116
  186. package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +0 -7
  187. package/dist/cjs/plugins/resizable/decorateResizable.js +0 -57
  188. package/dist/cjs/plugins/resizable/decorateResizable.js.map +0 -7
  189. package/dist/cjs/plugins/resizable/index.js +0 -36
  190. package/dist/cjs/plugins/resizable/index.js.map +0 -7
  191. package/dist/cjs/plugins/resizable/useResizeHandle.js +0 -75
  192. package/dist/cjs/plugins/resizable/useResizeHandle.js.map +0 -7
  193. package/dist/cjs/plugins/resizable/utils.js +0 -55
  194. package/dist/cjs/plugins/resizable/utils.js.map +0 -7
  195. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js +0 -140
  196. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js.map +0 -7
  197. package/dist/cjs/plugins/row-dnd/index.js +0 -36
  198. package/dist/cjs/plugins/row-dnd/index.js.map +0 -7
  199. package/dist/cjs/plugins/selectable/SelectablePlugin.js +0 -170
  200. package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +0 -7
  201. package/dist/cjs/plugins/selectable/addSelectableColumn.js +0 -105
  202. package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +0 -7
  203. package/dist/cjs/plugins/selectable/helper.js +0 -55
  204. package/dist/cjs/plugins/selectable/helper.js.map +0 -7
  205. package/dist/cjs/plugins/selectable/index.js +0 -36
  206. package/dist/cjs/plugins/selectable/index.js.map +0 -7
  207. package/dist/cjs/plugins/selectable/selectableFormatter.js +0 -99
  208. package/dist/cjs/plugins/selectable/selectableFormatter.js.map +0 -7
  209. package/dist/cjs/plugins/selectable/useSelectableState.js +0 -128
  210. package/dist/cjs/plugins/selectable/useSelectableState.js.map +0 -7
  211. package/dist/cjs/plugins/sortable/SortablePlugin.js +0 -98
  212. package/dist/cjs/plugins/sortable/SortablePlugin.js.map +0 -7
  213. package/dist/cjs/plugins/sortable/checkIfSortable.js +0 -46
  214. package/dist/cjs/plugins/sortable/checkIfSortable.js.map +0 -7
  215. package/dist/cjs/plugins/sortable/index.js +0 -36
  216. package/dist/cjs/plugins/sortable/index.js.map +0 -7
  217. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js +0 -66
  218. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js.map +0 -7
  219. package/dist/cjs/plugins/sortable/sortTree.js +0 -49
  220. package/dist/cjs/plugins/sortable/sortTree.js.map +0 -7
  221. package/dist/cjs/plugins/sortable/sorter.js +0 -154
  222. package/dist/cjs/plugins/sortable/sorter.js.map +0 -7
  223. package/dist/cjs/plugins/sortable/useSortableState.js +0 -74
  224. package/dist/cjs/plugins/sortable/useSortableState.js.map +0 -7
  225. package/dist/cjs/plugins/toolbar/RowRenderer.js +0 -109
  226. package/dist/cjs/plugins/toolbar/RowRenderer.js.map +0 -7
  227. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +0 -63
  228. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +0 -7
  229. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js +0 -115
  230. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js.map +0 -7
  231. package/dist/cjs/plugins/toolbar/index.js +0 -36
  232. package/dist/cjs/plugins/toolbar/index.js.map +0 -7
  233. package/dist/cjs/plugins/virtualization/AutoHeightList.js +0 -78
  234. package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +0 -7
  235. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +0 -109
  236. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +0 -7
  237. package/dist/cjs/plugins/virtualization/VirtualizedBody.js +0 -275
  238. package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +0 -7
  239. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js +0 -58
  240. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +0 -7
  241. package/dist/cjs/plugins/virtualization/helper.js +0 -36
  242. package/dist/cjs/plugins/virtualization/helper.js.map +0 -7
  243. package/dist/cjs/plugins/virtualization/index.js +0 -36
  244. package/dist/cjs/plugins/virtualization/index.js.map +0 -7
  245. package/dist/cjs/renders/CellWithAddons.js +0 -113
  246. package/dist/cjs/renders/CellWithAddons.js.map +0 -7
  247. package/dist/cjs/renders/index.js +0 -38
  248. package/dist/cjs/renders/index.js.map +0 -7
  249. package/dist/cjs/renders/styled.js +0 -79
  250. package/dist/cjs/renders/styled.js.map +0 -7
  251. package/dist/cjs/rowSizes.js +0 -48
  252. package/dist/cjs/rowSizes.js.map +0 -7
  253. package/dist/cjs/utilities/DataGridUtilities.json +0 -1315
  254. package/dist/cjs/utilities/getPluginsFromProps.js +0 -73
  255. package/dist/cjs/utilities/getPluginsFromProps.js.map +0 -7
  256. package/dist/cjs/utilities/getScrollbarSize.js +0 -47
  257. package/dist/cjs/utilities/getScrollbarSize.js.map +0 -7
  258. package/dist/cjs/utilities/normalizeData.js +0 -50
  259. package/dist/cjs/utilities/normalizeData.js.map +0 -7
  260. package/dist/esm/DSDataGrid.js +0 -559
  261. package/dist/esm/DSDataGrid.js.map +0 -7
  262. package/dist/esm/DataGridImpl.js +0 -126
  263. package/dist/esm/DataGridImpl.js.map +0 -7
  264. package/dist/esm/PaginatedDataGrid.js +0 -54
  265. package/dist/esm/PaginatedDataGrid.js.map +0 -7
  266. package/dist/esm/blockNames.js +0 -10
  267. package/dist/esm/blockNames.js.map +0 -7
  268. package/dist/esm/columns/IconColumn.js +0 -79
  269. package/dist/esm/columns/IconColumn.js.map +0 -7
  270. package/dist/esm/columns/NumberColumn.js +0 -7
  271. package/dist/esm/columns/NumberColumn.js.map +0 -7
  272. package/dist/esm/components/BodyCell.js +0 -84
  273. package/dist/esm/components/BodyCell.js.map +0 -7
  274. package/dist/esm/components/BodyList.js +0 -18
  275. package/dist/esm/components/BodyList.js.map +0 -7
  276. package/dist/esm/components/ColumnVisibilityMenuOption.js +0 -35
  277. package/dist/esm/components/ColumnVisibilityMenuOption.js.map +0 -7
  278. package/dist/esm/components/ColumnsOptionsMenuSection.js +0 -33
  279. package/dist/esm/components/ColumnsOptionsMenuSection.js.map +0 -7
  280. package/dist/esm/components/EmptyState.js +0 -51
  281. package/dist/esm/components/EmptyState.js.map +0 -7
  282. package/dist/esm/components/HeaderCell.js +0 -49
  283. package/dist/esm/components/HeaderCell.js.map +0 -7
  284. package/dist/esm/components/List.js +0 -13
  285. package/dist/esm/components/List.js.map +0 -7
  286. package/dist/esm/components/ListItem.js +0 -19
  287. package/dist/esm/components/ListItem.js.map +0 -7
  288. package/dist/esm/components/NoResults.js +0 -23
  289. package/dist/esm/components/NoResults.js.map +0 -7
  290. package/dist/esm/components/RowsLoader.js +0 -11
  291. package/dist/esm/components/RowsLoader.js.map +0 -7
  292. package/dist/esm/components/Table.js +0 -95
  293. package/dist/esm/components/Table.js.map +0 -7
  294. package/dist/esm/components/TableBody.js +0 -41
  295. package/dist/esm/components/TableBody.js.map +0 -7
  296. package/dist/esm/components/TableHeader.js +0 -30
  297. package/dist/esm/components/TableHeader.js.map +0 -7
  298. package/dist/esm/components/footer/addOptionalFooterComponents.js +0 -30
  299. package/dist/esm/components/footer/addOptionalFooterComponents.js.map +0 -7
  300. package/dist/esm/components/header/PrimaryControls.js +0 -24
  301. package/dist/esm/components/header/PrimaryControls.js.map +0 -7
  302. package/dist/esm/components/header/addOptionalHeaderComponents.js +0 -32
  303. package/dist/esm/components/header/addOptionalHeaderComponents.js.map +0 -7
  304. package/dist/esm/components/index.js +0 -14
  305. package/dist/esm/components/index.js.map +0 -7
  306. package/dist/esm/components/renderers/defaultClassedRenderers.js +0 -37
  307. package/dist/esm/components/renderers/defaultClassedRenderers.js.map +0 -7
  308. package/dist/esm/components/renderers/index.js +0 -29
  309. package/dist/esm/components/renderers/index.js.map +0 -7
  310. package/dist/esm/components/renderers/renderRowsLoader.js +0 -8
  311. package/dist/esm/components/renderers/renderRowsLoader.js.map +0 -7
  312. package/dist/esm/components/tableContext.js +0 -7
  313. package/dist/esm/components/tableContext.js.map +0 -7
  314. package/dist/esm/defaultPlugins.js +0 -10
  315. package/dist/esm/defaultPlugins.js.map +0 -7
  316. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -115
  317. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -7
  318. package/dist/esm/plugins/body-header-scroll-sync/index.js +0 -6
  319. package/dist/esm/plugins/body-header-scroll-sync/index.js.map +0 -7
  320. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +0 -129
  321. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +0 -7
  322. package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js +0 -18
  323. package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -7
  324. package/dist/esm/plugins/column-dnd/index.js +0 -6
  325. package/dist/esm/plugins/column-dnd/index.js.map +0 -7
  326. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +0 -63
  327. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -7
  328. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js +0 -40
  329. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -7
  330. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +0 -15
  331. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -7
  332. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +0 -35
  333. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +0 -7
  334. package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js +0 -8
  335. package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -7
  336. package/dist/esm/plugins/column-sizing/index.js +0 -6
  337. package/dist/esm/plugins/column-sizing/index.js.map +0 -7
  338. package/dist/esm/plugins/column-sizing/useColumnSizeService.js +0 -118
  339. package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +0 -7
  340. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +0 -151
  341. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +0 -7
  342. package/dist/esm/plugins/column-sizing/utils.js +0 -39
  343. package/dist/esm/plugins/column-sizing/utils.js.map +0 -7
  344. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -11
  345. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -7
  346. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -49
  347. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -7
  348. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +0 -30
  349. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -7
  350. package/dist/esm/plugins/custom-cell-renderer/index.js +0 -6
  351. package/dist/esm/plugins/custom-cell-renderer/index.js.map +0 -7
  352. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js +0 -43
  353. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +0 -7
  354. package/dist/esm/plugins/editable/EditableComponents/TextBox.js +0 -65
  355. package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +0 -7
  356. package/dist/esm/plugins/editable/EditableComponents/index.js +0 -8
  357. package/dist/esm/plugins/editable/EditableComponents/index.js.map +0 -7
  358. package/dist/esm/plugins/editable/EditablePlugin.js +0 -82
  359. package/dist/esm/plugins/editable/EditablePlugin.js.map +0 -7
  360. package/dist/esm/plugins/editable/decorateEditable.js +0 -66
  361. package/dist/esm/plugins/editable/decorateEditable.js.map +0 -7
  362. package/dist/esm/plugins/editable/getEditorComponent.js +0 -30
  363. package/dist/esm/plugins/editable/getEditorComponent.js.map +0 -7
  364. package/dist/esm/plugins/editable/index.js +0 -9
  365. package/dist/esm/plugins/editable/index.js.map +0 -7
  366. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +0 -101
  367. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +0 -7
  368. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +0 -167
  369. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +0 -7
  370. package/dist/esm/plugins/expandable-grid/ExpandedRow.js +0 -117
  371. package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +0 -7
  372. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +0 -27
  373. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -7
  374. package/dist/esm/plugins/expandable-grid/index.js +0 -8
  375. package/dist/esm/plugins/expandable-grid/index.js.map +0 -7
  376. package/dist/esm/plugins/expandable-grid/useExpandGridState.js +0 -64
  377. package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +0 -7
  378. package/dist/esm/plugins/export-data/ExportDataPlugin.js +0 -105
  379. package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +0 -7
  380. package/dist/esm/plugins/export-data/index.js +0 -6
  381. package/dist/esm/plugins/export-data/index.js.map +0 -7
  382. package/dist/esm/plugins/filterable/FilterablePlugin.js +0 -54
  383. package/dist/esm/plugins/filterable/FilterablePlugin.js.map +0 -7
  384. package/dist/esm/plugins/filterable/addFilterToColumn.js +0 -14
  385. package/dist/esm/plugins/filterable/addFilterToColumn.js.map +0 -7
  386. package/dist/esm/plugins/filterable/components/FilterableHeader.js +0 -103
  387. package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +0 -7
  388. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -149
  389. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -7
  390. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -103
  391. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -7
  392. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -205
  393. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -7
  394. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -153
  395. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -7
  396. package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -6
  397. package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -7
  398. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -18
  399. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -7
  400. package/dist/esm/plugins/filterable/filterableFormatter.js +0 -39
  401. package/dist/esm/plugins/filterable/filterableFormatter.js.map +0 -7
  402. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -53
  403. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -7
  404. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js +0 -15
  405. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -7
  406. package/dist/esm/plugins/filterable/helper.js +0 -83
  407. package/dist/esm/plugins/filterable/helper.js.map +0 -7
  408. package/dist/esm/plugins/filterable/index.js +0 -6
  409. package/dist/esm/plugins/filterable/index.js.map +0 -7
  410. package/dist/esm/plugins/filterable/useFilterableState.js +0 -82
  411. package/dist/esm/plugins/filterable/useFilterableState.js.map +0 -7
  412. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js +0 -28
  413. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +0 -7
  414. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +0 -104
  415. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +0 -7
  416. package/dist/esm/plugins/grouping-grid/walkStrategy.js +0 -47
  417. package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +0 -7
  418. package/dist/esm/plugins/index.js +0 -39
  419. package/dist/esm/plugins/index.js.map +0 -7
  420. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -71
  421. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -7
  422. package/dist/esm/plugins/infinite-scrolling/index.js +0 -6
  423. package/dist/esm/plugins/infinite-scrolling/index.js.map +0 -7
  424. package/dist/esm/plugins/pagination/PaginationPlugin.js +0 -60
  425. package/dist/esm/plugins/pagination/PaginationPlugin.js.map +0 -7
  426. package/dist/esm/plugins/pagination/components/Pagination.js +0 -27
  427. package/dist/esm/plugins/pagination/components/Pagination.js.map +0 -7
  428. package/dist/esm/plugins/pagination/components/Paginator.js +0 -43
  429. package/dist/esm/plugins/pagination/components/Paginator.js.map +0 -7
  430. package/dist/esm/plugins/pagination/components/PerPageDropdown.js +0 -44
  431. package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +0 -7
  432. package/dist/esm/plugins/pagination/helper.js +0 -33
  433. package/dist/esm/plugins/pagination/helper.js.map +0 -7
  434. package/dist/esm/plugins/pagination/index.js +0 -6
  435. package/dist/esm/plugins/pagination/index.js.map +0 -7
  436. package/dist/esm/plugins/pagination/usePaginationState.js +0 -53
  437. package/dist/esm/plugins/pagination/usePaginationState.js.map +0 -7
  438. package/dist/esm/plugins/resizable/ResizablePlugin.js +0 -86
  439. package/dist/esm/plugins/resizable/ResizablePlugin.js.map +0 -7
  440. package/dist/esm/plugins/resizable/decorateResizable.js +0 -27
  441. package/dist/esm/plugins/resizable/decorateResizable.js.map +0 -7
  442. package/dist/esm/plugins/resizable/index.js +0 -6
  443. package/dist/esm/plugins/resizable/index.js.map +0 -7
  444. package/dist/esm/plugins/resizable/useResizeHandle.js +0 -45
  445. package/dist/esm/plugins/resizable/useResizeHandle.js.map +0 -7
  446. package/dist/esm/plugins/resizable/utils.js +0 -25
  447. package/dist/esm/plugins/resizable/utils.js.map +0 -7
  448. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js +0 -110
  449. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js.map +0 -7
  450. package/dist/esm/plugins/row-dnd/index.js +0 -6
  451. package/dist/esm/plugins/row-dnd/index.js.map +0 -7
  452. package/dist/esm/plugins/selectable/SelectablePlugin.js +0 -140
  453. package/dist/esm/plugins/selectable/SelectablePlugin.js.map +0 -7
  454. package/dist/esm/plugins/selectable/addSelectableColumn.js +0 -75
  455. package/dist/esm/plugins/selectable/addSelectableColumn.js.map +0 -7
  456. package/dist/esm/plugins/selectable/helper.js +0 -25
  457. package/dist/esm/plugins/selectable/helper.js.map +0 -7
  458. package/dist/esm/plugins/selectable/index.js +0 -6
  459. package/dist/esm/plugins/selectable/index.js.map +0 -7
  460. package/dist/esm/plugins/selectable/selectableFormatter.js +0 -69
  461. package/dist/esm/plugins/selectable/selectableFormatter.js.map +0 -7
  462. package/dist/esm/plugins/selectable/useSelectableState.js +0 -98
  463. package/dist/esm/plugins/selectable/useSelectableState.js.map +0 -7
  464. package/dist/esm/plugins/sortable/SortablePlugin.js +0 -68
  465. package/dist/esm/plugins/sortable/SortablePlugin.js.map +0 -7
  466. package/dist/esm/plugins/sortable/checkIfSortable.js +0 -16
  467. package/dist/esm/plugins/sortable/checkIfSortable.js.map +0 -7
  468. package/dist/esm/plugins/sortable/index.js +0 -6
  469. package/dist/esm/plugins/sortable/index.js.map +0 -7
  470. package/dist/esm/plugins/sortable/sortHeaderFormatter.js +0 -36
  471. package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +0 -7
  472. package/dist/esm/plugins/sortable/sortTree.js +0 -19
  473. package/dist/esm/plugins/sortable/sortTree.js.map +0 -7
  474. package/dist/esm/plugins/sortable/sorter.js +0 -124
  475. package/dist/esm/plugins/sortable/sorter.js.map +0 -7
  476. package/dist/esm/plugins/sortable/useSortableState.js +0 -44
  477. package/dist/esm/plugins/sortable/useSortableState.js.map +0 -7
  478. package/dist/esm/plugins/toolbar/RowRenderer.js +0 -79
  479. package/dist/esm/plugins/toolbar/RowRenderer.js.map +0 -7
  480. package/dist/esm/plugins/toolbar/ToolbarPlugin.js +0 -33
  481. package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +0 -7
  482. package/dist/esm/plugins/toolbar/ToolbarTrigger.js +0 -85
  483. package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +0 -7
  484. package/dist/esm/plugins/toolbar/index.js +0 -6
  485. package/dist/esm/plugins/toolbar/index.js.map +0 -7
  486. package/dist/esm/plugins/virtualization/AutoHeightList.js +0 -48
  487. package/dist/esm/plugins/virtualization/AutoHeightList.js.map +0 -7
  488. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +0 -79
  489. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +0 -7
  490. package/dist/esm/plugins/virtualization/VirtualizedBody.js +0 -245
  491. package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +0 -7
  492. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +0 -28
  493. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +0 -7
  494. package/dist/esm/plugins/virtualization/helper.js +0 -6
  495. package/dist/esm/plugins/virtualization/helper.js.map +0 -7
  496. package/dist/esm/plugins/virtualization/index.js +0 -6
  497. package/dist/esm/plugins/virtualization/index.js.map +0 -7
  498. package/dist/esm/renders/CellWithAddons.js +0 -83
  499. package/dist/esm/renders/CellWithAddons.js.map +0 -7
  500. package/dist/esm/renders/index.js +0 -8
  501. package/dist/esm/renders/index.js.map +0 -7
  502. package/dist/esm/renders/styled.js +0 -49
  503. package/dist/esm/renders/styled.js.map +0 -7
  504. package/dist/esm/rowSizes.js +0 -18
  505. package/dist/esm/rowSizes.js.map +0 -7
  506. package/dist/esm/utilities/DataGridUtilities.json +0 -1315
  507. package/dist/esm/utilities/getPluginsFromProps.js +0 -43
  508. package/dist/esm/utilities/getPluginsFromProps.js.map +0 -7
  509. package/dist/esm/utilities/getScrollbarSize.js +0 -17
  510. package/dist/esm/utilities/getScrollbarSize.js.map +0 -7
  511. package/dist/esm/utilities/normalizeData.js +0 -20
  512. package/dist/esm/utilities/normalizeData.js.map +0 -7
  513. package/dist/types/DSDataGrid.d.ts +0 -452
  514. package/dist/types/DataGridImpl.d.ts +0 -12
  515. package/dist/types/PaginatedDataGrid.d.ts +0 -14
  516. package/dist/types/blockNames.d.ts +0 -4
  517. package/dist/types/columns/IconColumn.d.ts +0 -35
  518. package/dist/types/columns/NumberColumn.d.ts +0 -4
  519. package/dist/types/components/BodyCell.d.ts +0 -33
  520. package/dist/types/components/BodyList.d.ts +0 -11
  521. package/dist/types/components/ColumnVisibilityMenuOption.d.ts +0 -15
  522. package/dist/types/components/ColumnsOptionsMenuSection.d.ts +0 -8
  523. package/dist/types/components/EmptyState.d.ts +0 -6
  524. package/dist/types/components/HeaderCell.d.ts +0 -18
  525. package/dist/types/components/List.d.ts +0 -2
  526. package/dist/types/components/ListItem.d.ts +0 -2
  527. package/dist/types/components/NoResults.d.ts +0 -7
  528. package/dist/types/components/RowsLoader.d.ts +0 -4
  529. package/dist/types/components/Table.d.ts +0 -8
  530. package/dist/types/components/TableBody.d.ts +0 -4
  531. package/dist/types/components/TableHeader.d.ts +0 -3
  532. package/dist/types/components/footer/addOptionalFooterComponents.d.ts +0 -6
  533. package/dist/types/components/header/PrimaryControls.d.ts +0 -5
  534. package/dist/types/components/header/addOptionalHeaderComponents.d.ts +0 -10
  535. package/dist/types/components/index.d.ts +0 -5
  536. package/dist/types/components/renderers/defaultClassedRenderers.d.ts +0 -11
  537. package/dist/types/components/renderers/index.d.ts +0 -15
  538. package/dist/types/components/renderers/renderRowsLoader.d.ts +0 -1
  539. package/dist/types/components/tableContext.d.ts +0 -2
  540. package/dist/types/components/tests/ColumnVisibilityMenu.test.d.ts +0 -1
  541. package/dist/types/defaultPlugins.d.ts +0 -1
  542. package/dist/types/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +0 -1
  543. package/dist/types/plugins/body-header-scroll-sync/index.d.ts +0 -1
  544. package/dist/types/plugins/column-dnd/DndColumnsPlugin.d.ts +0 -1
  545. package/dist/types/plugins/column-dnd/decorateGridWithDndColumns.d.ts +0 -2
  546. package/dist/types/plugins/column-dnd/index.d.ts +0 -1
  547. package/dist/types/plugins/column-sizing/ColumnSizingPlugin.d.ts +0 -1
  548. package/dist/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +0 -6
  549. package/dist/types/plugins/column-sizing/ext-points/decorateColumn.d.ts +0 -1
  550. package/dist/types/plugins/column-sizing/ext-points/getTableProps.d.ts +0 -10
  551. package/dist/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +0 -2
  552. package/dist/types/plugins/column-sizing/index.d.ts +0 -1
  553. package/dist/types/plugins/column-sizing/useColumnSizeService.d.ts +0 -18
  554. package/dist/types/plugins/column-sizing/useStylesheetHelpers.d.ts +0 -22
  555. package/dist/types/plugins/column-sizing/utils.d.ts +0 -5
  556. package/dist/types/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +0 -1
  557. package/dist/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +0 -4
  558. package/dist/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +0 -11
  559. package/dist/types/plugins/custom-cell-renderer/index.d.ts +0 -1
  560. package/dist/types/plugins/editable/EditableComponents/ComboBox.d.ts +0 -12
  561. package/dist/types/plugins/editable/EditableComponents/TextBox.d.ts +0 -24
  562. package/dist/types/plugins/editable/EditableComponents/index.d.ts +0 -2
  563. package/dist/types/plugins/editable/EditablePlugin.d.ts +0 -1
  564. package/dist/types/plugins/editable/decorateEditable.d.ts +0 -7
  565. package/dist/types/plugins/editable/getEditorComponent.d.ts +0 -7
  566. package/dist/types/plugins/editable/index.d.ts +0 -2
  567. package/dist/types/plugins/expandable-grid/ExpandableColumn.d.ts +0 -28
  568. package/dist/types/plugins/expandable-grid/ExpandablePlugin.d.ts +0 -1
  569. package/dist/types/plugins/expandable-grid/ExpandedRow.d.ts +0 -11
  570. package/dist/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +0 -9
  571. package/dist/types/plugins/expandable-grid/index.d.ts +0 -2
  572. package/dist/types/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +0 -1
  573. package/dist/types/plugins/expandable-grid/useExpandGridState.d.ts +0 -16
  574. package/dist/types/plugins/export-data/ExportDataPlugin.d.ts +0 -4
  575. package/dist/types/plugins/export-data/index.d.ts +0 -1
  576. package/dist/types/plugins/filterable/FilterablePlugin.d.ts +0 -1
  577. package/dist/types/plugins/filterable/addFilterToColumn.d.ts +0 -1
  578. package/dist/types/plugins/filterable/components/FilterableHeader.d.ts +0 -28
  579. package/dist/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +0 -30
  580. package/dist/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +0 -27
  581. package/dist/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +0 -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,118 +0,0 @@
1
- import * as React from "react";
2
- import { useRef, useState, useLayoutEffect } from "react";
3
- import { getColumnWidthSize, getPercentageValue } from "./utils.js";
4
- const useColumnSizeService = (instance) => {
5
- const columns = useRef({});
6
- const [expandableGridDetailWidth, setExpandableGridDetailWidth] = useState(0);
7
- const [expandableColumnWidth, setExpandableColumnWidth] = useState(0);
8
- const expandedToContentColumns = useRef({});
9
- const previousTotalWidth = useRef(0);
10
- const initialUsedSpace = useRef({
11
- space: 0,
12
- amount: 0,
13
- percentage: 0
14
- });
15
- const increaseUsedSpace = (space, columnUuid) => {
16
- if (typeof space === "number") {
17
- initialUsedSpace.current.space += space;
18
- } else if (space && space.endsWith("%")) {
19
- initialUsedSpace.current.percentage += Number(space.slice(0, -1));
20
- }
21
- initialUsedSpace.current.amount += 1;
22
- initialUsedSpace.current[columnUuid] = true;
23
- };
24
- const registerColumn = (column) => (node) => columns.current[column.uuid] = { ...column, node };
25
- const unregisterColumn = (column) => {
26
- delete columns.current[column.property];
27
- };
28
- const setActualColumnsSizesFixed = () => {
29
- const columnsArray = Object.values(columns.current);
30
- columnsArray.forEach((column) => {
31
- const columnOffsetWidth = column.node.offsetWidth;
32
- column.updateBodyHeaderWidth(`${columnOffsetWidth}px`, `${columnOffsetWidth}px`);
33
- });
34
- };
35
- const updateMissingWidths = (totalWidth) => {
36
- if (totalWidth) {
37
- previousTotalWidth.current = totalWidth;
38
- }
39
- const gridWidth = previousTotalWidth.current - 4;
40
- const {
41
- props: { minColumnWidth, expandable },
42
- resizedColumns,
43
- decoratedColumns: columnDefinitions
44
- } = instance.getInstance();
45
- if (!initialUsedSpace.current)
46
- return;
47
- const columnUuids = columnDefinitions.map((c) => c.uuid);
48
- const columnsArray = Object.values(columns.current).filter((c) => columnUuids.includes(c.uuid));
49
- initialUsedSpace.current = { space: 0, amount: 0, percentage: 0 };
50
- columnsArray.forEach((column) => {
51
- if (column.width && column.width !== "string" && !initialUsedSpace[column.uuid]) {
52
- increaseUsedSpace(getColumnWidthSize(column.width, minColumnWidth, column), column.uuid);
53
- }
54
- });
55
- const nextColumnDict = {};
56
- columnsArray.forEach((column) => {
57
- if (typeof column.width === "number") {
58
- nextColumnDict[column.uuid] = column;
59
- return;
60
- }
61
- if (resizedColumns.current[column.uuid]) {
62
- nextColumnDict[column.uuid] = column;
63
- return;
64
- }
65
- const { space: usedSpace, amount: usedAmount, percentage: usedPercentage } = initialUsedSpace.current;
66
- const percentValue = getPercentageValue(column.width);
67
- if (percentValue) {
68
- const pxs = gridWidth * percentValue / 100;
69
- const pxWidths = `${getColumnWidthSize(pxs, minColumnWidth, column)}px`;
70
- column.updateBodyHeaderWidth(pxWidths, pxWidths);
71
- columns.current[column.uuid].computedWidth = pxs;
72
- if (expandable && column.expandableColumn) {
73
- setExpandableColumnWidth(pxs);
74
- }
75
- } else {
76
- const columnFixWidth = (gridWidth * (1 - usedPercentage / 100) - usedSpace) / (columnsArray.length - usedAmount);
77
- const percentWidth = columnFixWidth / gridWidth * 100;
78
- const pxs = gridWidth * percentWidth / 100;
79
- const actualWidthAfterChecks = getColumnWidthSize(pxs, minColumnWidth, column);
80
- column.updateBodyHeaderWidth(
81
- `${actualWidthAfterChecks}px`,
82
- column.minWidth || minColumnWidth ? `${column.minWidth || minColumnWidth}px` : `${pxs}px`
83
- );
84
- resizedColumns.current[column.uuid] = actualWidthAfterChecks;
85
- columns.current[column.uuid].computedWidth = actualWidthAfterChecks;
86
- }
87
- nextColumnDict[column.uuid] = column;
88
- });
89
- columns.current = nextColumnDict;
90
- };
91
- useLayoutEffect(() => {
92
- const totalWidth = computeColumnsTotalSize();
93
- setExpandableGridDetailWidth(totalWidth - expandableColumnWidth);
94
- }, [expandableColumnWidth]);
95
- const computeColumnsTotalSize = () => {
96
- const columnsArray = Object.values(columns.current);
97
- return columnsArray.reduce((totalSize, column) => totalSize + column.node.offsetWidth, 0);
98
- };
99
- return {
100
- columns: columns.current,
101
- expandedToContentColumns: expandedToContentColumns.current,
102
- initialUsedSpace: initialUsedSpace.current,
103
- increaseUsedSpace,
104
- registerColumn,
105
- unregisterColumn,
106
- updateMissingWidths,
107
- computeColumnsTotalSize,
108
- setActualColumnsSizesFixed,
109
- expandableGridDetailWidth,
110
- expandableColumnWidth
111
- };
112
- };
113
- var useColumnSizeService_default = useColumnSizeService;
114
- export {
115
- useColumnSizeService_default as default,
116
- useColumnSizeService
117
- };
118
- //# sourceMappingURL=useColumnSizeService.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/column-sizing/useColumnSizeService.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport { useRef, useState, useLayoutEffect } from 'react';\nimport { getColumnWidthSize, getPercentageValue } from './utils.js';\n\nexport const useColumnSizeService = (instance) => {\n const columns = useRef({});\n const [expandableGridDetailWidth, setExpandableGridDetailWidth] = useState(0);\n const [expandableColumnWidth, setExpandableColumnWidth] = useState(0);\n const expandedToContentColumns = useRef({});\n const previousTotalWidth = useRef(0);\n const initialUsedSpace = useRef({\n space: 0,\n amount: 0,\n percentage: 0,\n });\n\n const increaseUsedSpace = (space, columnUuid) => {\n if (typeof space === 'number') {\n initialUsedSpace.current.space += space;\n } else if (space && space.endsWith('%')) {\n initialUsedSpace.current.percentage += Number(space.slice(0, -1));\n }\n initialUsedSpace.current.amount += 1;\n initialUsedSpace.current[columnUuid] = true;\n };\n\n // eslint-disable-next-line no-return-assign\n const registerColumn = (column) => (node) => (columns.current[column.uuid] = { ...column, node });\n\n const unregisterColumn = (column) => {\n delete columns.current[column.property];\n };\n\n const setActualColumnsSizesFixed = () => {\n const columnsArray = Object.values(columns.current);\n\n columnsArray.forEach((column) => {\n const columnOffsetWidth = column.node.offsetWidth;\n column.updateBodyHeaderWidth(`${columnOffsetWidth}px`, `${columnOffsetWidth}px`);\n });\n };\n\n const updateMissingWidths = (totalWidth) => {\n if (totalWidth) {\n previousTotalWidth.current = totalWidth;\n }\n const gridWidth = previousTotalWidth.current - 4;\n const {\n props: { minColumnWidth, expandable },\n resizedColumns,\n decoratedColumns: columnDefinitions,\n } = instance.getInstance();\n if (!initialUsedSpace.current) return;\n const columnUuids = columnDefinitions.map((c) => c.uuid);\n const columnsArray = Object.values(columns.current).filter((c) => columnUuids.includes(c.uuid));\n // reset the initial space to the last columns\n initialUsedSpace.current = { space: 0, amount: 0, percentage: 0 };\n columnsArray.forEach((column) => {\n if (column.width && column.width !== 'string' && !initialUsedSpace[column.uuid]) {\n increaseUsedSpace(getColumnWidthSize(column.width, minColumnWidth, column), column.uuid);\n }\n });\n\n const nextColumnDict = {};\n // eslint-disable-next-line max-statements\n columnsArray.forEach((column) => {\n if (typeof column.width === 'number') {\n nextColumnDict[column.uuid] = column;\n return;\n }\n if (resizedColumns.current[column.uuid]) {\n nextColumnDict[column.uuid] = column;\n return;\n }\n const { space: usedSpace, amount: usedAmount, percentage: usedPercentage } = initialUsedSpace.current;\n\n const percentValue = getPercentageValue(column.width);\n // check if is percentage value\n if (percentValue) {\n const pxs = (gridWidth * percentValue) / 100;\n const pxWidths = `${getColumnWidthSize(pxs, minColumnWidth, column)}px`;\n column.updateBodyHeaderWidth(pxWidths, pxWidths);\n columns.current[column.uuid].computedWidth = pxs;\n if (expandable && column.expandableColumn) {\n setExpandableColumnWidth(pxs);\n }\n } else {\n // otherwise the values are auto calculated from the total size\n const columnFixWidth =\n (gridWidth * (1 - usedPercentage / 100) - usedSpace) / (columnsArray.length - usedAmount);\n const percentWidth = (columnFixWidth / gridWidth) * 100;\n const pxs = (gridWidth * percentWidth) / 100;\n const actualWidthAfterChecks = getColumnWidthSize(pxs, minColumnWidth, column);\n column.updateBodyHeaderWidth(\n `${actualWidthAfterChecks}px`,\n column.minWidth || minColumnWidth ? `${column.minWidth || minColumnWidth}px` : `${pxs}px`,\n );\n resizedColumns.current[column.uuid] = actualWidthAfterChecks;\n columns.current[column.uuid].computedWidth = actualWidthAfterChecks;\n }\n nextColumnDict[column.uuid] = column;\n });\n columns.current = nextColumnDict;\n };\n\n useLayoutEffect(() => {\n const totalWidth = computeColumnsTotalSize();\n setExpandableGridDetailWidth(totalWidth - expandableColumnWidth);\n }, [expandableColumnWidth]);\n\n // todo: make this incremental\n const computeColumnsTotalSize = () => {\n const columnsArray = Object.values(columns.current);\n return columnsArray.reduce((totalSize, column) => totalSize + column.node.offsetWidth, 0);\n };\n\n return {\n columns: columns.current,\n expandedToContentColumns: expandedToContentColumns.current,\n initialUsedSpace: initialUsedSpace.current,\n increaseUsedSpace,\n registerColumn,\n unregisterColumn,\n updateMissingWidths,\n computeColumnsTotalSize,\n setActualColumnsSizesFixed,\n expandableGridDetailWidth,\n expandableColumnWidth,\n };\n};\n\nexport default useColumnSizeService;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,QAAQ,UAAU,uBAAuB;AAClD,SAAS,oBAAoB,0BAA0B;AAEhD,MAAM,uBAAuB,CAAC,aAAa;AAChD,QAAM,UAAU,OAAO,CAAC,CAAC;AACzB,QAAM,CAAC,2BAA2B,4BAA4B,IAAI,SAAS,CAAC;AAC5E,QAAM,CAAC,uBAAuB,wBAAwB,IAAI,SAAS,CAAC;AACpE,QAAM,2BAA2B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AI;AACtC,gBAAQ,QAAQ,OAAO,IAAI,EAAE,gBAAgB;AAAA,MAC/C;AACA,qBAAe,OAAO,IAAI,IAAI;AAAA,IAChC,CAAC;AACD,YAAQ,UAAU;AAAA,EACpB;AAEA,kBAAgB,MAAM;AACpB,UAAM,aAAa,wBAAwB;AAC3C,iCAA6B,aAAa,qBAAqB;AAAA,EACjE,GAAG,CAAC,qBAAqB,CAAC;AAG1B,QAAM,0BAA0B,MAAM;AACpC,UAAM,eAAe,OAAO,OAAO,QAAQ,OAAO;AAClD,WAAO,aAAa,OAAO,CAAC,WAAW,WAAW,YAAY,OAAO,KAAK,aAAa,CAAC;AAAA,EAC1F;AAEA,SAAO;AAAA,IACL,SAAS,QAAQ;AAAA,IACjB,0BAA0B,yBAAyB;AAAA,IACnD,kBAAkB,iBAAiB;AAAA,IACnC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,+BAAQ;",
6
- "names": []
7
- }
@@ -1,151 +0,0 @@
1
- import * as React from "react";
2
- import * as stylesheet from "stylesheet-helpers";
3
- import { useState, useEffect } from "react";
4
- import { set } from "@elliemae/ds-utilities";
5
- import { getColumnNameFromProperty } from "./getColumnNameFromProperty.js";
6
- import { getScrollbarWidth } from "../../utilities/getScrollbarSize.js";
7
- const SCROLLBAR_WIDTH = getScrollbarWidth();
8
- const RowStylesheetHelper = ({ grid, className }) => {
9
- const { styleSheet, styleSheetElement } = stylesheet.create();
10
- const update = (width) => {
11
- const widths = typeof width === "string" ? width : `${width}px`;
12
- stylesheet.updateProperties(
13
- window,
14
- styleSheet,
15
- className,
16
- width ? { width: widths, minWidth: widths, maxWidth: widths } : { width: null, minWidth: null, maxWidth: null }
17
- );
18
- const { hasScroll } = grid.getState();
19
- const headerWidth = `${width + (hasScroll ? SCROLLBAR_WIDTH : 0)}px`;
20
- stylesheet.updateProperties(
21
- window,
22
- styleSheet,
23
- `${className}-header`,
24
- width ? { width: headerWidth, minWidth: headerWidth, maxWidth: headerWidth } : { width: null, minWidth: null, maxWidth: null }
25
- );
26
- };
27
- const remove = () => styleSheetElement.remove();
28
- const getRowClassName = () => className;
29
- return {
30
- update,
31
- remove,
32
- getRowClassName
33
- };
34
- };
35
- const getColumnClassName = ({ globalId, column, isHeader = false, getId }) => `column-${globalId}-${getId(column)}${isHeader ? "-header" : ""}`;
36
- function setWidth({ styleSheet, className, width, minWidth }) {
37
- let widths;
38
- if (typeof width === "string")
39
- widths = width;
40
- if (typeof width === "number")
41
- widths = `${width}px`;
42
- let minWidths;
43
- if (typeof minWidth === "string")
44
- minWidths = minWidth;
45
- if (typeof minWidth === "number")
46
- minWidths = `${minWidth}px`;
47
- stylesheet.updateProperties(window, styleSheet, className, {
48
- width: `${widths || minWidths}`,
49
- minWidth: `${widths || minWidths}`,
50
- // minWidth: `${minWidths || widths}`,
51
- maxWidth: `${widths || minWidths}`
52
- });
53
- }
54
- function updateStyle({ styleSheet, className, style }) {
55
- stylesheet.updateProperties(window, styleSheet, className, style);
56
- }
57
- function columnSizesHelperImpl({ globalId, getId = ({ property }) => getColumnNameFromProperty(property) }) {
58
- const { styleSheetElement, styleSheet } = stylesheet.create();
59
- const updateBodyHeaderWidth = ({ className, headerClassName, width, minWidth }) => {
60
- setWidth({
61
- styleSheet,
62
- className,
63
- width,
64
- minWidth
65
- });
66
- setWidth({
67
- styleSheet,
68
- className: headerClassName,
69
- width,
70
- minWidth,
71
- isHeader: true
72
- });
73
- };
74
- return {
75
- decorateColumns: (columns, grid) => {
76
- const {
77
- props: { minColumnWidth }
78
- } = grid.getInstance();
79
- return columns.map((column) => {
80
- const cellClassName = getColumnClassName({ globalId, getId, column });
81
- const headerClassName = `${cellClassName}-header`;
82
- set(column, "header.props.className", headerClassName);
83
- set(column, "cell.props.className", cellClassName);
84
- column.updateBodyHeaderWidth = (width, minWidth) => {
85
- updateBodyHeaderWidth({
86
- className: cellClassName,
87
- headerClassName,
88
- width,
89
- minWidth
90
- });
91
- };
92
- column.updateWidth = (width, minWidth) => {
93
- setWidth({
94
- styleSheet,
95
- className: cellClassName,
96
- width,
97
- minWidth
98
- });
99
- };
100
- column.updateStyle = (style) => updateStyle({
101
- styleSheet,
102
- className: cellClassName,
103
- style
104
- });
105
- column.headerHookEffects = [
106
- () => {
107
- useEffect(() => {
108
- const { resizedColumns } = grid.getInstance();
109
- const resizedWidth = resizedColumns.current[column.uuid];
110
- updateBodyHeaderWidth({
111
- className: cellClassName,
112
- headerClassName,
113
- width: resizedWidth || column.width || minColumnWidth,
114
- minWidth: resizedWidth || column.minWidth || minColumnWidth || column.width
115
- });
116
- }, [column.uuid]);
117
- }
118
- ];
119
- return column;
120
- });
121
- },
122
- getColumnCellClassName(column) {
123
- return getColumnClassName({ globalId, getId, column });
124
- },
125
- getColumnHeaderClassName(column) {
126
- return `${getColumnClassName({ globalId, getId, column })}-header`;
127
- },
128
- cleanup() {
129
- styleSheetElement.remove();
130
- }
131
- };
132
- }
133
- function useStylesheetHelpers(grid) {
134
- const {
135
- props: { bindColumnsSizeTo, bindRowSizeTo }
136
- } = grid;
137
- const [columnsStylesheet] = useState(
138
- () => columnSizesHelperImpl({
139
- globalId: bindColumnsSizeTo || grid.uuid,
140
- getId: ({ uuid }) => getColumnNameFromProperty(uuid)
141
- })
142
- );
143
- const rowClassName = `row-${bindRowSizeTo || grid.uuid}`;
144
- const [rowsStylesheet] = useState(() => RowStylesheetHelper({ grid, className: rowClassName }));
145
- return { columnsStylesheet, rowsStylesheet, rowClassName };
146
- }
147
- export {
148
- RowStylesheetHelper,
149
- useStylesheetHelpers
150
- };
151
- //# sourceMappingURL=useStylesheetHelpers.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/column-sizing/useStylesheetHelpers.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-param-reassign */\n/* eslint-disable max-lines */\nimport * as stylesheet from 'stylesheet-helpers';\nimport { useState, useEffect } from 'react';\nimport { set } from '@elliemae/ds-utilities';\nimport { getColumnNameFromProperty } from './getColumnNameFromProperty.js';\nimport { getScrollbarWidth } from '../../utilities/getScrollbarSize.js';\n\nconst SCROLLBAR_WIDTH = getScrollbarWidth();\n\nexport const RowStylesheetHelper = ({ grid, className }) => {\n const { styleSheet, styleSheetElement } = stylesheet.create();\n const update = (width) => {\n const widths = typeof width === 'string' ? width : `${width}px`;\n stylesheet.updateProperties(\n window,\n styleSheet,\n className,\n width ? { width: widths, minWidth: widths, maxWidth: widths } : { width: null, minWidth: null, maxWidth: null },\n );\n const { hasScroll } = grid.getState();\n const headerWidth = `${width + (hasScroll ? SCROLLBAR_WIDTH : 0)}px`;\n stylesheet.updateProperties(\n window,\n styleSheet,\n `${className}-header`,\n width\n ? { width: headerWidth, minWidth: headerWidth, maxWidth: headerWidth }\n : { width: null, minWidth: null, maxWidth: null },\n );\n };\n const remove = () => styleSheetElement.remove();\n const getRowClassName = () => className;\n return {\n update,\n remove,\n getRowClassName,\n };\n};\n\nconst getColumnClassName = ({ globalId, column, isHeader = false, getId }) =>\n `column-${globalId}-${getId(column)}${isHeader ? '-header' : ''}`;\n\nfunction setWidth({ styleSheet, className, width, minWidth }) {\n let widths;\n if (typeof width === 'string') widths = width;\n if (typeof width === 'number') widths = `${width}px`;\n\n let minWidths;\n if (typeof minWidth === 'string') minWidths = minWidth;\n if (typeof minWidth === 'number') minWidths = `${minWidth}px`;\n\n stylesheet.updateProperties(window, styleSheet, className, {\n width: `${widths || minWidths}`,\n minWidth: `${widths || minWidths}`,\n // minWidth: `${minWidths || widths}`,\n maxWidth: `${widths || minWidths}`,\n });\n}\n\nfunction updateStyle({ styleSheet, className, style }) {\n stylesheet.updateProperties(window, styleSheet, className, style);\n}\n\nfunction columnSizesHelperImpl({ globalId, getId = ({ property }) => getColumnNameFromProperty(property) }) {\n const { styleSheetElement, styleSheet } = stylesheet.create();\n\n const updateBodyHeaderWidth = ({ className, headerClassName, width, minWidth }) => {\n setWidth({\n styleSheet,\n className,\n width,\n minWidth,\n });\n setWidth({\n styleSheet,\n className: headerClassName,\n width,\n minWidth,\n isHeader: true,\n });\n };\n\n return {\n decorateColumns: (columns, grid) => {\n const {\n props: { minColumnWidth },\n } = grid.getInstance();\n return columns.map((column) => {\n const cellClassName = getColumnClassName({ globalId, getId, column });\n const headerClassName = `${cellClassName}-header`;\n\n set(column, 'header.props.className', headerClassName);\n set(column, 'cell.props.className', cellClassName);\n\n column.updateBodyHeaderWidth = (width, minWidth) => {\n updateBodyHeaderWidth({\n className: cellClassName,\n headerClassName,\n width,\n minWidth,\n });\n };\n column.updateWidth = (width, minWidth) => {\n setWidth({\n styleSheet,\n className: cellClassName,\n width,\n minWidth,\n });\n };\n column.updateStyle = (style) =>\n updateStyle({\n styleSheet,\n className: cellClassName,\n style,\n });\n\n column.headerHookEffects = [\n () => {\n useEffect(() => {\n const { resizedColumns } = grid.getInstance();\n const resizedWidth = resizedColumns.current[column.uuid];\n updateBodyHeaderWidth({\n className: cellClassName,\n headerClassName,\n width: resizedWidth || column.width || minColumnWidth,\n minWidth: resizedWidth || column.minWidth || minColumnWidth || column.width,\n });\n }, [column.uuid]);\n },\n ];\n\n return column;\n });\n },\n getColumnCellClassName(column) {\n return getColumnClassName({ globalId, getId, column });\n },\n getColumnHeaderClassName(column) {\n return `${getColumnClassName({ globalId, getId, column })}-header`;\n },\n cleanup() {\n styleSheetElement.remove();\n },\n };\n}\n\nexport function useStylesheetHelpers(grid) {\n const {\n props: { bindColumnsSizeTo, bindRowSizeTo },\n } = grid;\n\n const [columnsStylesheet] = useState(() =>\n columnSizesHelperImpl({\n globalId: bindColumnsSizeTo || grid.uuid,\n getId: ({ uuid }) => getColumnNameFromProperty(uuid),\n }),\n );\n const rowClassName = `row-${bindRowSizeTo || grid.uuid}`;\n const [rowsStylesheet] = useState(() => RowStylesheetHelper({ grid, className: rowClassName }));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,mBAAmB,gBAAgB,aAAa;AAC3D;",
6
- "names": []
7
- }
@@ -1,39 +0,0 @@
1
- import * as React from "react";
2
- import { get } from "@elliemae/ds-utilities";
3
- function getScrollbarSizeFromHeaderAndBody(refs) {
4
- const innerBodyOffsetWidth = get(refs, ["innerBody", "current", "offsetWidth"]);
5
- const headerOffsetWidth = get(refs, ["header", "current", "offsetWidth"]);
6
- return headerOffsetWidth - innerBodyOffsetWidth;
7
- }
8
- const isScrollbarVisible = (element) => element.scrollHeight > element.clientHeight;
9
- const getPercentageValue = (percentString) => {
10
- if (typeof percentString !== "string")
11
- return null;
12
- const result = percentString.match(/(\d+|\d*[.,]\d{1,2})/);
13
- return result && Number(result[0]);
14
- };
15
- const getColumnWidthSize = (width, minWidth, column) => {
16
- if (column.special) {
17
- return column.width;
18
- }
19
- if (minWidth && minWidth > width)
20
- return minWidth;
21
- return width;
22
- };
23
- const calculateMinWidthForWrappedText = (columns) => {
24
- let longestWord = 0;
25
- columns.forEach(({ label }) => {
26
- const localLongestWord = label.split(" ").sort((a, b) => b.length - a.length)[0].length;
27
- if (localLongestWord > longestWord)
28
- longestWord = localLongestWord;
29
- });
30
- return longestWord * 8.5;
31
- };
32
- export {
33
- calculateMinWidthForWrappedText,
34
- getColumnWidthSize,
35
- getPercentageValue,
36
- getScrollbarSizeFromHeaderAndBody,
37
- isScrollbarVisible
38
- };
39
- //# sourceMappingURL=utils.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/column-sizing/utils.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { get } from '@elliemae/ds-utilities';\n\nexport function getScrollbarSizeFromHeaderAndBody(refs) {\n const innerBodyOffsetWidth = get(refs, ['innerBody', 'current', 'offsetWidth']);\n const headerOffsetWidth = get(refs, ['header', 'current', 'offsetWidth']);\n\n return headerOffsetWidth - innerBodyOffsetWidth;\n}\n\nexport const isScrollbarVisible = (element) => element.scrollHeight > element.clientHeight;\n\nexport const getPercentageValue = (percentString) => {\n if (typeof percentString !== 'string') return null;\n const result = percentString.match(/(\\d+|\\d*[.,]\\d{1,2})/);\n\n return result && Number(result[0]);\n};\n\nexport const getColumnWidthSize = (width, minWidth, column) => {\n if (column.special) {\n return column.width;\n }\n if (minWidth && minWidth > width) return minWidth;\n return width;\n};\n\nexport const calculateMinWidthForWrappedText = (columns) => {\n let longestWord = 0;\n\n columns.forEach(({ label }) => {\n const localLongestWord = label.split(' ').sort((a, b) => b.length - a.length)[0].length;\n if (localLongestWord > longestWord) longestWord = localLongestWord;\n });\n\n return longestWord * 8.5;\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AAEb,SAAS,kCAAkC,MAAM;AACtD,QAAM,uBAAuB,IAAI,MAAM,CAAC,aAAa,WAAW,aAAa,CAAC;AAC9E,QAAM,oBAAoB,IAAI,MAAM,CAAC,UAAU,WAAW,aAAa,CAAC;AAExE,SAAO,oBAAoB;AAC7B;AAEO,MAAM,qBAAqB,CAAC,YAAY,QAAQ,eAAe,QAAQ;AAEvE,MAAM,qBAAqB,CAAC,kBAAkB;AACnD,MAAI,OAAO,kBAAkB;AAAU,WAAO;AAC9C,QAAM,SAAS,cAAc,MAAM,sBAAsB;AAEzD,SAAO,UAAU,OAAO,OAAO,CAAC,CAAC;AACnC;AAEO,MAAM,qBAAqB,CAAC,OAAO,UAAU,WAAW;AAC7D,MAAI,OAAO,SAAS;AAClB,WAAO,OAAO;AAAA,EAChB;AACA,MAAI,YAAY,WAAW;AAAO,WAAO;AACzC,SAAO;AACT;AAEO,MAAM,kCAAkC,CAAC,YAAY;AAC1D,MAAI,cAAc;AAElB,UAAQ,QAAQ,CAAC,EAAE,MAAM,MAAM;AAC7B,UAAM,mBAAmB,MAAM,MAAM,GAAG,EAAE,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE;AACjF,QAAI,mBAAmB;AAAa,oBAAc;AAAA,EACpD,CAAC;AAED,SAAO,cAAc;AACvB;",
6
- "names": []
7
- }
@@ -1,11 +0,0 @@
1
- import * as React from "react";
2
- import { createInstancePlugin } from "@elliemae/ds-shared";
3
- import { addCustomRendererToCell } from "./addCustomRendererToCell.js";
4
- const decorateColumn = (column, grid) => addCustomRendererToCell(grid)(column);
5
- const CustomRendererPlugin = createInstancePlugin("custom-renderer", {
6
- decorateColumn
7
- });
8
- export {
9
- CustomRendererPlugin
10
- };
11
- //# sourceMappingURL=CustomRendererPlugin.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/custom-cell-renderer/CustomRendererPlugin.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { createInstancePlugin } from '@elliemae/ds-shared';\nimport { addCustomRendererToCell } from './addCustomRendererToCell.js';\n\n// todo: this probably needs to go to the core\n\nconst decorateColumn = (column, grid) => addCustomRendererToCell(grid)(column);\n\nexport const CustomRendererPlugin = createInstancePlugin('custom-renderer', {\n decorateColumn,\n});\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,4BAA4B;AACrC,SAAS,+BAA+B;AAIxC,MAAM,iBAAiB,CAAC,QAAQ,SAAS,wBAAwB,IAAI,EAAE,MAAM;AAEtE,MAAM,uBAAuB,qBAAqB,mBAAmB;AAAA,EAC1E;AACF,CAAC;",
6
- "names": []
7
- }
@@ -1,49 +0,0 @@
1
- import * as React from "react";
2
- import { isFunction, get } from "@elliemae/ds-utilities";
3
- import { appendCellFormatter } from "@elliemae/ds-shared";
4
- import { getRendererComponent } from "./getRendererComponent.js";
5
- const getRenderer = (renderer, grid, column) => (value, metaData) => {
6
- const {
7
- props: { customHandlers, parentRowData }
8
- } = grid.getInstance();
9
- if (column && column.formatExpandable && value && value.props && value.props.children && value.props.children.length === 2) {
10
- return [
11
- value.props.children[0],
12
- renderer({
13
- value: value.props.children[1],
14
- // apply custom render only to the original value not the arrow
15
- metaData: { ...metaData, parentRowData },
16
- customHandlers
17
- })
18
- ];
19
- }
20
- return renderer({
21
- value,
22
- metaData: { ...metaData, parentRowData },
23
- customHandlers
24
- });
25
- };
26
- const addCustomRendererToCell = (grid) => (column) => {
27
- const { customRenderer } = column;
28
- const customHeaderRenderer = get(column, ["header", "customRenderer"]);
29
- if (!customRenderer && !customHeaderRenderer)
30
- return column;
31
- if (isFunction(customHeaderRenderer)) {
32
- column.header.formatters.push(getRenderer(customHeaderRenderer, grid));
33
- }
34
- if (isFunction(customRenderer)) {
35
- column = appendCellFormatter(getRenderer(customRenderer, grid, column), column);
36
- } else {
37
- if (!customRenderer)
38
- return column;
39
- column.cell.formatters.push((value, columnData) => getRendererComponent(grid, customRenderer, columnData));
40
- }
41
- return column;
42
- };
43
- var addCustomRendererToCell_default = addCustomRendererToCell;
44
- export {
45
- addCustomRendererToCell,
46
- addCustomRendererToCell_default as default,
47
- getRenderer
48
- };
49
- //# sourceMappingURL=addCustomRendererToCell.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/custom-cell-renderer/addCustomRendererToCell.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-statements */\nimport { isFunction, get } from '@elliemae/ds-utilities';\nimport { appendCellFormatter } from '@elliemae/ds-shared';\nimport { getRendererComponent } from './getRendererComponent.js';\n\nexport const getRenderer = (renderer, grid, column) => (value, metaData) => {\n const {\n props: { customHandlers, parentRowData },\n } = grid.getInstance();\n if (\n column &&\n column.formatExpandable &&\n value &&\n value.props &&\n value.props.children &&\n value.props.children.length === 2\n ) {\n return [\n value.props.children[0],\n renderer({\n value: value.props.children[1], // apply custom render only to the original value not the arrow\n metaData: { ...metaData, parentRowData },\n customHandlers,\n }),\n ];\n }\n return renderer({\n value,\n metaData: { ...metaData, parentRowData },\n customHandlers,\n });\n};\n\nconst addCustomRendererToCell = (grid) => (column) => {\n const { customRenderer } = column;\n const customHeaderRenderer = get(column, ['header', 'customRenderer']);\n if (!customRenderer && !customHeaderRenderer) return column;\n\n if (isFunction(customHeaderRenderer)) {\n column.header.formatters.push(getRenderer(customHeaderRenderer, grid));\n }\n\n if (isFunction(customRenderer)) {\n column = appendCellFormatter(getRenderer(customRenderer, grid, column), column);\n } else {\n if (!customRenderer) return column;\n column.cell.formatters.push((value, columnData) => getRendererComponent(grid, customRenderer, columnData));\n }\n\n return column;\n};\n\nexport { addCustomRendererToCell };\nexport default addCustomRendererToCell;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,YAAY,WAAW;AAChC,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AAE9B,MAAM,cAAc,CAAC,UAAU,MAAM,WAAW,CAAC,OAAO,aAAa;AAC1E,QAAM;AAAA,IACJ,OAAO,EAAE,gBAAgB,cAAc;AAAA,EACzC,IAAI,KAAK,YAAY;AACrB,MACE,UACA,OAAO,oBACP,SACA,MAAM,SACN,MAAM,MAAM,YACZ,MAAM,MAAM,SAAS,WAAW,GAChC;AACA,WAAO;AAAA,MACL,MAAM,MAAM,SAAS,CAAC;AAAA,MACtB,SAAS;AAAA,QACP,OAAO,MAAM,MAAM,SAAS,CAAC;AAAA;AAAA,QAC7B,UAAU,EAAE,GAAG,UAAU,cAAc;AAAA,QACvC;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF;AACA,SAAO,SAAS;AAAA,IACd;AAAA,IACA,UAAU,EAAE,GAAG,UAAU,cAAc;AAAA,IACvC;AAAA,EACF,CAAC;AACH;AAEA,MAAM,0BAA0B,CAAC,SAAS,CAAC,WAAW;AACpD,QAAM,EAAE,eAAe,IAAI;AAC3B,QAAM,uBAAuB,IAAI,QAAQ,CAAC,UAAU,gBAAgB,CAAC;AACrE,MAAI,CAAC,kBAAkB,CAAC;AAAsB,WAAO;AAErD,MAAI,WAAW,oBAAoB,GAAG;AACpC,WAAO,OAAO,WAAW,KAAK,YAAY,sBAAsB,IAAI,CAAC;AAAA,EACvE;AAEA,MAAI,WAAW,cAAc,GAAG;AAC9B,aAAS,oBAAoB,YAAY,gBAAgB,MAAM,MAAM,GAAG,MAAM;AAAA,EAChF,OAAO;AACL,QAAI,CAAC;AAAgB,aAAO;AAC5B,WAAO,KAAK,WAAW,KAAK,CAAC,OAAO,eAAe,qBAAqB,MAAM,gBAAgB,UAAU,CAAC;AAAA,EAC3G;AAEA,SAAO;AACT;AAGA,IAAO,kCAAQ;",
6
- "names": []
7
- }
@@ -1,30 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { DSButton } from "@elliemae/ds-button";
4
- import { DSCheckbox, DSComboBox, DSRadio, DSTextBox, DSToggle } from "@elliemae/ds-form";
5
- import { DSDropdownMenu } from "@elliemae/ds-dropdownmenu";
6
- import * as renderers from "../../components/renderers/index.js";
7
- const components = {
8
- DSButton,
9
- DSCheckbox,
10
- DSComboBox,
11
- DSRadio,
12
- DSTextBox,
13
- DSToggle,
14
- DSDropdownMenu
15
- };
16
- const getRendererComponent = ({ props }, { type = "DSTextBox", handlers, ...rest }, { rowData }) => {
17
- const Component = components[type] || renderers[type];
18
- const { customHandlers, rowKey } = props;
19
- const mappedHandlers = {};
20
- Object.keys(handlers).forEach((key) => {
21
- mappedHandlers[handlers[key]] = () => typeof customHandlers[key] === "function" ? customHandlers[key](rowData, rowData[rowKey]) : null;
22
- });
23
- return /* @__PURE__ */ jsx(Component, { ...rowData, ...mappedHandlers, ...rest });
24
- };
25
- var getRendererComponent_default = getRendererComponent;
26
- export {
27
- getRendererComponent_default as default,
28
- getRendererComponent
29
- };
30
- //# sourceMappingURL=getRendererComponent.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/custom-cell-renderer/getRendererComponent.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { DSButton } from '@elliemae/ds-button';\nimport { DSCheckbox, DSComboBox, DSRadio, DSTextBox, DSToggle } from '@elliemae/ds-form';\nimport { DSDropdownMenu } from '@elliemae/ds-dropdownmenu';\nimport * as renderers from '../../components/renderers/index.js';\n\nconst components = {\n DSButton: DSButton,\n DSCheckbox: DSCheckbox,\n DSComboBox: DSComboBox,\n DSRadio: DSRadio,\n DSTextBox: DSTextBox,\n DSToggle: DSToggle,\n DSDropdownMenu: DSDropdownMenu,\n};\n\nconst getRendererComponent = ({ props }, { type = 'DSTextBox', handlers, ...rest }, { rowData }) => {\n const Component = components[type] || renderers[type];\n const { customHandlers, rowKey } = props;\n const mappedHandlers = {};\n\n Object.keys(handlers).forEach((key) => {\n mappedHandlers[handlers[key]] = () =>\n typeof customHandlers[key] === 'function' ? customHandlers[key](rowData, rowData[rowKey]) : null;\n });\n return <Component {...rowData} {...mappedHandlers} {...rest} />;\n};\n\nexport { getRendererComponent };\nexport default getRendererComponent;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACyBd;AAxBT,SAAS,gBAAgB;AACzB,SAAS,YAAY,YAAY,SAAS,WAAW,gBAAgB;AACrE,SAAS,sBAAsB;AAC/B,YAAY,eAAe;AAE3B,MAAM,aAAa;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,uBAAuB,CAAC,EAAE,MAAM,GAAG,EAAE,OAAO,aAAa,UAAU,GAAG,KAAK,GAAG,EAAE,QAAQ,MAAM;AAClG,QAAM,YAAY,WAAW,IAAI,KAAK,UAAU,IAAI;AACpD,QAAM,EAAE,gBAAgB,OAAO,IAAI;AACnC,QAAM,iBAAiB,CAAC;AAExB,SAAO,KAAK,QAAQ,EAAE,QAAQ,CAAC,QAAQ;AACrC,mBAAe,SAAS,GAAG,CAAC,IAAI,MAC9B,OAAO,eAAe,GAAG,MAAM,aAAa,eAAe,GAAG,EAAE,SAAS,QAAQ,MAAM,CAAC,IAAI;AAAA,EAChG,CAAC;AACD,SAAO,oBAAC,aAAW,GAAG,SAAU,GAAG,gBAAiB,GAAG,MAAM;AAC/D;AAGA,IAAO,+BAAQ;",
6
- "names": []
7
- }
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import { CustomRendererPlugin } from "./CustomRendererPlugin.js";
3
- export {
4
- CustomRendererPlugin
5
- };
6
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/custom-cell-renderer/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { CustomRendererPlugin } from './CustomRendererPlugin.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,4BAA4B;",
6
- "names": []
7
- }
@@ -1,43 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { Component } from "react";
4
- import { DSComboBox } from "@elliemae/ds-form";
5
- class ComboBox extends Component {
6
- constructor(props) {
7
- super(props);
8
- this.handleChange = (value) => {
9
- const { onValue } = this.props;
10
- setTimeout(() => onValue(value), 1);
11
- this.setState({ value });
12
- };
13
- this.handleBlur = () => {
14
- const { onValue } = this.props;
15
- const { value } = this.state;
16
- onValue(value);
17
- };
18
- this.state = { value: props.value };
19
- }
20
- render() {
21
- const { value } = this.state;
22
- return /* @__PURE__ */ jsx(
23
- DSComboBox,
24
- {
25
- ...this.props,
26
- menuIsOpen: true,
27
- onBlur: this.handleBlur,
28
- onChange: this.handleChange,
29
- onClick: (e) => e.stopPropagation(),
30
- value
31
- }
32
- );
33
- }
34
- }
35
- ComboBox.defaultProps = {
36
- onValue: () => null
37
- };
38
- var ComboBox_default = ComboBox;
39
- export {
40
- ComboBox,
41
- ComboBox_default as default
42
- };
43
- //# sourceMappingURL=ComboBox.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/plugins/editable/EditableComponents/ComboBox.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { Component } from 'react';\nimport { DSComboBox } from '@elliemae/ds-form';\n\nclass ComboBox extends Component {\n static defaultProps = {\n onValue: () => null,\n };\n\n constructor(props) {\n super(props);\n this.state = { value: props.value };\n }\n\n handleChange = (value) => {\n const { onValue } = this.props;\n\n // some how this is executed before handleBlur, and handleBlur before the value is set\n // causing the value to be the same as the prevProp\n // todo: find a better solution to this\n setTimeout(() => onValue(value), 1);\n this.setState({ value });\n };\n\n handleBlur = () => {\n const { onValue } = this.props;\n const { value } = this.state;\n onValue(value);\n };\n\n render() {\n const { value } = this.state;\n return (\n <DSComboBox\n {...this.props}\n menuIsOpen\n onBlur={this.handleBlur}\n onChange={this.handleChange}\n onClick={(e) => e.stopPropagation()}\n value={value}\n />\n );\n }\n}\n\nexport { ComboBox };\nexport default ComboBox;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACgCjB;AAhCN,SAAgB,iBAAiB;AACjC,SAAS,kBAAkB;AAE3B,MAAM,iBAAiB,UAAU;AAAA,EAK/B,YAAY,OAAO;AACjB,UAAM,KAAK;AAIb,wBAAe,CAAC,UAAU;AACxB,YAAM,EAAE,QAAQ,IAAI,KAAK;AAKzB,iBAAW,MAAM,QAAQ,KAAK,GAAG,CAAC;AAClC,WAAK,SAAS,EAAE,MAAM,CAAC;AAAA,IACzB;AAEA,sBAAa,MAAM;AACjB,YAAM,EAAE,QAAQ,IAAI,KAAK;AACzB,YAAM,EAAE,MAAM,IAAI,KAAK;AACvB,cAAQ,KAAK;AAAA,IACf;AAjBE,SAAK,QAAQ,EAAE,OAAO,MAAM,MAAM;AAAA,EACpC;AAAA,EAkBA,SAAS;AACP,UAAM,EAAE,MAAM,IAAI,KAAK;AACvB,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG,KAAK;AAAA,QACT,YAAU;AAAA,QACV,QAAQ,KAAK;AAAA,QACb,UAAU,KAAK;AAAA,QACf,SAAS,CAAC,MAAM,EAAE,gBAAgB;AAAA,QAClC;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAvCM,SACG,eAAe;AAAA,EACpB,SAAS,MAAM;AACjB;AAuCF,IAAO,mBAAQ;",
6
- "names": []
7
- }
@@ -1,65 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import React2, { Component } from "react";
4
- import { DSTextBox } from "@elliemae/ds-form";
5
- class TextBox extends Component {
6
- constructor(props) {
7
- super(props);
8
- this.handleKeyUp = ({ key, target: { value } }) => {
9
- const { onValue } = this.props;
10
- if (key === "Enter") {
11
- onValue(value);
12
- }
13
- };
14
- this.handleKeyDown = (e) => {
15
- if (e.key === "Enter") {
16
- e.preventDefault();
17
- }
18
- };
19
- this.handleBlur = (e) => {
20
- const { onValue } = this.props;
21
- const {
22
- target: { value }
23
- } = e;
24
- onValue(value);
25
- };
26
- this.handleChange = ({ target: { value } }) => {
27
- this.setState({ value });
28
- };
29
- this.inputRef = React2.createRef();
30
- this.state = { value: props.value };
31
- }
32
- componentDidMount() {
33
- setTimeout(() => {
34
- if (this.inputRef && this.inputRef.current) {
35
- this.inputRef.current.focus();
36
- }
37
- }, 50);
38
- }
39
- render() {
40
- const { value } = this.state;
41
- return /* @__PURE__ */ jsx(
42
- DSTextBox,
43
- {
44
- "data-testid": "ds-datagrids-editable-text-box",
45
- ...this.props,
46
- innerRef: this.inputRef,
47
- onBlur: this.handleBlur,
48
- onChange: this.handleChange,
49
- onClick: (e) => e.stopPropagation(),
50
- onKeyUp: this.handleKeyUp,
51
- onKeyDown: this.handleKeyDown,
52
- value
53
- }
54
- );
55
- }
56
- }
57
- TextBox.defaultProps = {
58
- onValue: () => null
59
- };
60
- var TextBox_default = TextBox;
61
- export {
62
- TextBox,
63
- TextBox_default as default
64
- };
65
- //# sourceMappingURL=TextBox.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/plugins/editable/EditableComponents/TextBox.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/prop-types */\n/* eslint-disable react/static-property-placement */\nimport React, { Component } from 'react';\nimport { DSTextBox } from '@elliemae/ds-form';\n\n// todo: redo with hooks\nclass TextBox extends Component {\n static defaultProps = {\n onValue: () => null,\n };\n\n constructor(props) {\n super(props);\n this.inputRef = React.createRef();\n this.state = { value: props.value };\n }\n\n componentDidMount() {\n setTimeout(() => {\n if (this.inputRef && this.inputRef.current) {\n this.inputRef.current.focus();\n }\n }, 50);\n }\n\n handleKeyUp = ({ key, target: { value } }) => {\n const { onValue } = this.props;\n if (key === 'Enter') {\n onValue(value);\n }\n };\n\n handleKeyDown = (e) => {\n // PUI-2553 prevent form submit on `Enter` keypress\n if (e.key === 'Enter') {\n e.preventDefault();\n }\n };\n\n handleBlur = (e) => {\n const { onValue } = this.props;\n const {\n target: { value },\n } = e;\n onValue(value);\n };\n\n handleChange = ({ target: { value } }) => {\n this.setState({ value });\n };\n\n render() {\n const { value } = this.state;\n return (\n <DSTextBox\n data-testid=\"ds-datagrids-editable-text-box\"\n {...this.props}\n innerRef={this.inputRef}\n onBlur={this.handleBlur}\n onChange={this.handleChange}\n onClick={(e) => e.stopPropagation()}\n onKeyUp={this.handleKeyUp}\n onKeyDown={this.handleKeyDown}\n value={value}\n />\n );\n }\n}\n\nexport { TextBox };\nexport default TextBox;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACsDjB;AApDN,OAAOA,UAAS,iBAAiB;AACjC,SAAS,iBAAiB;AAG1B,MAAM,gBAAgB,UAAU;AAAA,EAK9B,YAAY,OAAO;AACjB,UAAM,KAAK;AAab,uBAAc,CAAC,EAAE,KAAK,QAAQ,EAAE,MAAM,EAAE,MAAM;AAC5C,YAAM,EAAE,QAAQ,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