@elliemae/ds-datagrids 2.3.1 → 3.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (909) hide show
  1. package/dist/cjs/DSDataGrid.js +399 -0
  2. package/dist/cjs/DSDataGrid.js.map +7 -0
  3. package/dist/cjs/DataGridImpl.js +177 -0
  4. package/dist/cjs/DataGridImpl.js.map +7 -0
  5. package/dist/cjs/PaginatedDataGrid.js +114 -0
  6. package/dist/cjs/PaginatedDataGrid.js.map +7 -0
  7. package/dist/cjs/blockNames.js +39 -0
  8. package/dist/cjs/blockNames.js.map +7 -0
  9. package/dist/cjs/columns/IconColumn.js +111 -0
  10. package/dist/cjs/columns/IconColumn.js.map +7 -0
  11. package/dist/cjs/columns/NumberColumn.js +36 -0
  12. package/dist/cjs/columns/NumberColumn.js.map +7 -0
  13. package/dist/cjs/components/BodyCell.js +126 -0
  14. package/dist/cjs/components/BodyCell.js.map +7 -0
  15. package/dist/cjs/components/BodyList.js +89 -0
  16. package/dist/cjs/components/BodyList.js.map +7 -0
  17. package/dist/cjs/components/ColumnVisibilityMenuOption.js +66 -0
  18. package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +7 -0
  19. package/dist/cjs/components/ColumnsOptionsMenuSection.js +64 -0
  20. package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +7 -0
  21. package/dist/cjs/components/EmptyState.js +82 -0
  22. package/dist/cjs/components/EmptyState.js.map +7 -0
  23. package/dist/cjs/components/HeaderCell.js +87 -0
  24. package/dist/cjs/components/HeaderCell.js.map +7 -0
  25. package/dist/cjs/components/List.js +56 -0
  26. package/dist/cjs/components/List.js.map +7 -0
  27. package/dist/cjs/components/ListItem.js +64 -0
  28. package/dist/cjs/components/ListItem.js.map +7 -0
  29. package/dist/cjs/components/NoResults.js +84 -0
  30. package/dist/cjs/components/NoResults.js.map +7 -0
  31. package/dist/cjs/components/RowsLoader.js +42 -0
  32. package/dist/cjs/components/RowsLoader.js.map +7 -0
  33. package/dist/cjs/components/Table.js +125 -0
  34. package/dist/cjs/components/Table.js.map +7 -0
  35. package/dist/cjs/components/TableBody.js +101 -0
  36. package/dist/cjs/components/TableBody.js.map +7 -0
  37. package/dist/cjs/components/TableHeader.js +68 -0
  38. package/dist/cjs/components/TableHeader.js.map +7 -0
  39. package/dist/cjs/components/footer/addOptionalFooterComponents.js +56 -0
  40. package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +7 -0
  41. package/dist/cjs/components/header/PrimaryControls.js +50 -0
  42. package/dist/cjs/components/header/PrimaryControls.js.map +7 -0
  43. package/dist/cjs/components/header/addOptionalHeaderComponents.js +58 -0
  44. package/dist/cjs/components/header/addOptionalHeaderComponents.js.map +7 -0
  45. package/dist/cjs/components/index.js +43 -0
  46. package/dist/cjs/components/index.js.map +7 -0
  47. package/dist/cjs/components/renderers/defaultClassedRenderers.js +66 -0
  48. package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +7 -0
  49. package/dist/cjs/components/renderers/index.js +50 -0
  50. package/dist/cjs/components/renderers/index.js.map +7 -0
  51. package/dist/cjs/components/renderers/renderRowsLoader.js +39 -0
  52. package/dist/cjs/components/renderers/renderRowsLoader.js.map +7 -0
  53. package/dist/cjs/components/tableContext.js +36 -0
  54. package/dist/cjs/components/tableContext.js.map +7 -0
  55. package/dist/cjs/defaultPlugins.js +44 -0
  56. package/dist/cjs/defaultPlugins.js.map +7 -0
  57. package/dist/cjs/index.js +72 -0
  58. package/dist/cjs/index.js.map +7 -0
  59. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +178 -0
  60. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
  61. package/dist/cjs/plugins/body-header-scroll-sync/index.js +35 -0
  62. package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +7 -0
  63. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +168 -0
  64. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
  65. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +46 -0
  66. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
  67. package/dist/cjs/plugins/column-dnd/index.js +35 -0
  68. package/dist/cjs/plugins/column-dnd/index.js.map +7 -0
  69. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +92 -0
  70. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
  71. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js +85 -0
  72. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
  73. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +44 -0
  74. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
  75. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +80 -0
  76. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
  77. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js +37 -0
  78. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
  79. package/dist/cjs/plugins/column-sizing/index.js +35 -0
  80. package/dist/cjs/plugins/column-sizing/index.js.map +7 -0
  81. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +165 -0
  82. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +7 -0
  83. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +167 -0
  84. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
  85. package/dist/cjs/plugins/column-sizing/utils.js +68 -0
  86. package/dist/cjs/plugins/column-sizing/utils.js.map +7 -0
  87. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +40 -0
  88. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
  89. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +94 -0
  90. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
  91. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +86 -0
  92. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
  93. package/dist/cjs/plugins/custom-cell-renderer/index.js +35 -0
  94. package/dist/cjs/plugins/custom-cell-renderer/index.js.map +7 -0
  95. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +84 -0
  96. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
  97. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +107 -0
  98. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +7 -0
  99. package/dist/cjs/plugins/editable/EditableComponents/index.js +37 -0
  100. package/dist/cjs/plugins/editable/EditableComponents/index.js.map +7 -0
  101. package/dist/cjs/plugins/editable/EditablePlugin.js +108 -0
  102. package/dist/cjs/plugins/editable/EditablePlugin.js.map +7 -0
  103. package/dist/cjs/plugins/editable/decorateEditable.js +111 -0
  104. package/dist/cjs/plugins/editable/decorateEditable.js.map +7 -0
  105. package/dist/cjs/plugins/editable/getEditorComponent.js +99 -0
  106. package/dist/cjs/plugins/editable/getEditorComponent.js.map +7 -0
  107. package/dist/cjs/plugins/editable/index.js +38 -0
  108. package/dist/cjs/plugins/editable/index.js.map +7 -0
  109. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +163 -0
  110. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
  111. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +205 -0
  112. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
  113. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +159 -0
  114. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +7 -0
  115. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +72 -0
  116. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
  117. package/dist/cjs/plugins/expandable-grid/index.js +37 -0
  118. package/dist/cjs/plugins/expandable-grid/index.js.map +7 -0
  119. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +93 -0
  120. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +7 -0
  121. package/dist/cjs/plugins/export-data/ExportDataPlugin.js +145 -0
  122. package/dist/cjs/plugins/export-data/ExportDataPlugin.js.map +7 -0
  123. package/dist/cjs/plugins/export-data/index.js +35 -0
  124. package/dist/cjs/plugins/export-data/index.js.map +7 -0
  125. package/dist/cjs/plugins/filterable/FilterablePlugin.js +80 -0
  126. package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +7 -0
  127. package/dist/cjs/plugins/filterable/addFilterToColumn.js +60 -0
  128. package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +7 -0
  129. package/dist/cjs/plugins/filterable/components/FilterableHeader.js +145 -0
  130. package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +7 -0
  131. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +157 -0
  132. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
  133. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +131 -0
  134. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
  135. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +201 -0
  136. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
  137. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +196 -0
  138. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
  139. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +35 -0
  140. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
  141. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +49 -0
  142. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
  143. package/dist/cjs/plugins/filterable/filterableFormatter.js +73 -0
  144. package/dist/cjs/plugins/filterable/filterableFormatter.js.map +7 -0
  145. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +94 -0
  146. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
  147. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +44 -0
  148. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
  149. package/dist/cjs/plugins/filterable/helper.js +125 -0
  150. package/dist/cjs/plugins/filterable/helper.js.map +7 -0
  151. package/dist/cjs/plugins/filterable/index.js +35 -0
  152. package/dist/cjs/plugins/filterable/index.js.map +7 -0
  153. package/dist/cjs/plugins/filterable/useFilterableState.js +127 -0
  154. package/dist/cjs/plugins/filterable/useFilterableState.js.map +7 -0
  155. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js +57 -0
  156. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
  157. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +146 -0
  158. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
  159. package/dist/cjs/plugins/grouping-grid/walkStrategy.js +76 -0
  160. package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +7 -0
  161. package/dist/cjs/plugins/index.js +68 -0
  162. package/dist/cjs/plugins/index.js.map +7 -0
  163. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +129 -0
  164. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
  165. package/dist/cjs/plugins/infinite-scrolling/index.js +35 -0
  166. package/dist/cjs/plugins/infinite-scrolling/index.js.map +7 -0
  167. package/dist/cjs/plugins/pagination/PaginationPlugin.js +128 -0
  168. package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +7 -0
  169. package/dist/cjs/plugins/pagination/components/Pagination.js +63 -0
  170. package/dist/cjs/plugins/pagination/components/Pagination.js.map +7 -0
  171. package/dist/cjs/plugins/pagination/components/Paginator.js +82 -0
  172. package/dist/cjs/plugins/pagination/components/Paginator.js.map +7 -0
  173. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +95 -0
  174. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +7 -0
  175. package/dist/cjs/plugins/pagination/helper.js +62 -0
  176. package/dist/cjs/plugins/pagination/helper.js.map +7 -0
  177. package/dist/cjs/plugins/pagination/index.js +35 -0
  178. package/dist/cjs/plugins/pagination/index.js.map +7 -0
  179. package/dist/cjs/plugins/pagination/usePaginationState.js +98 -0
  180. package/dist/cjs/plugins/pagination/usePaginationState.js.map +7 -0
  181. package/dist/cjs/plugins/resizable/ResizablePlugin.js +109 -0
  182. package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +7 -0
  183. package/dist/cjs/plugins/resizable/decorateResizable.js +72 -0
  184. package/dist/cjs/plugins/resizable/decorateResizable.js.map +7 -0
  185. package/dist/cjs/plugins/resizable/index.js +35 -0
  186. package/dist/cjs/plugins/resizable/index.js.map +7 -0
  187. package/dist/cjs/plugins/resizable/useResizeHandle.js +79 -0
  188. package/dist/cjs/plugins/resizable/useResizeHandle.js.map +7 -0
  189. package/dist/cjs/plugins/resizable/utils.js +54 -0
  190. package/dist/cjs/plugins/resizable/utils.js.map +7 -0
  191. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js +148 -0
  192. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
  193. package/dist/cjs/plugins/row-dnd/index.js +35 -0
  194. package/dist/cjs/plugins/row-dnd/index.js.map +7 -0
  195. package/dist/cjs/plugins/selectable/SelectablePlugin.js +166 -0
  196. package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +7 -0
  197. package/dist/cjs/plugins/selectable/addSelectableColumn.js +129 -0
  198. package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +7 -0
  199. package/dist/cjs/plugins/selectable/helper.js +70 -0
  200. package/dist/cjs/plugins/selectable/helper.js.map +7 -0
  201. package/dist/cjs/plugins/selectable/index.js +35 -0
  202. package/dist/cjs/plugins/selectable/index.js.map +7 -0
  203. package/dist/cjs/plugins/selectable/selectableFormatter.js +110 -0
  204. package/dist/cjs/plugins/selectable/selectableFormatter.js.map +7 -0
  205. package/dist/cjs/plugins/selectable/useSelectableState.js +130 -0
  206. package/dist/cjs/plugins/selectable/useSelectableState.js.map +7 -0
  207. package/dist/cjs/plugins/sortable/SortablePlugin.js +95 -0
  208. package/dist/cjs/plugins/sortable/SortablePlugin.js.map +7 -0
  209. package/dist/cjs/plugins/sortable/checkIfSortable.js +45 -0
  210. package/dist/cjs/plugins/sortable/checkIfSortable.js.map +7 -0
  211. package/dist/cjs/plugins/sortable/index.js +35 -0
  212. package/dist/cjs/plugins/sortable/index.js.map +7 -0
  213. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js +66 -0
  214. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js.map +7 -0
  215. package/dist/cjs/plugins/sortable/sortTree.js +60 -0
  216. package/dist/cjs/plugins/sortable/sortTree.js.map +7 -0
  217. package/dist/cjs/plugins/sortable/sorter.js +154 -0
  218. package/dist/cjs/plugins/sortable/sorter.js.map +7 -0
  219. package/dist/cjs/plugins/sortable/useSortableState.js +89 -0
  220. package/dist/cjs/plugins/sortable/useSortableState.js.map +7 -0
  221. package/dist/cjs/plugins/toolbar/RowRenderer.js +110 -0
  222. package/dist/cjs/plugins/toolbar/RowRenderer.js.map +7 -0
  223. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +58 -0
  224. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +7 -0
  225. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js +121 -0
  226. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js.map +7 -0
  227. package/dist/cjs/plugins/toolbar/index.js +35 -0
  228. package/dist/cjs/plugins/toolbar/index.js.map +7 -0
  229. package/dist/cjs/plugins/virtualization/AutoHeightList.js +108 -0
  230. package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +7 -0
  231. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +111 -0
  232. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
  233. package/dist/cjs/plugins/virtualization/VirtualizedBody.js +274 -0
  234. package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +7 -0
  235. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js +52 -0
  236. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
  237. package/dist/cjs/plugins/virtualization/helper.js +35 -0
  238. package/dist/cjs/plugins/virtualization/helper.js.map +7 -0
  239. package/dist/cjs/plugins/virtualization/index.js +35 -0
  240. package/dist/cjs/plugins/virtualization/index.js.map +7 -0
  241. package/dist/cjs/renders/CellWithAddons.js +111 -0
  242. package/dist/cjs/renders/CellWithAddons.js.map +7 -0
  243. package/dist/cjs/renders/index.js +37 -0
  244. package/dist/cjs/renders/index.js.map +7 -0
  245. package/dist/cjs/renders/styled.js +78 -0
  246. package/dist/cjs/renders/styled.js.map +7 -0
  247. package/dist/cjs/rowSizes.js +51 -0
  248. package/dist/cjs/rowSizes.js.map +7 -0
  249. package/dist/cjs/utilities/DataGridUtilities.json +1315 -0
  250. package/dist/cjs/utilities/getPluginsFromProps.js +72 -0
  251. package/dist/cjs/utilities/getPluginsFromProps.js.map +7 -0
  252. package/dist/cjs/utilities/getScrollbarSize.js +46 -0
  253. package/dist/cjs/utilities/getScrollbarSize.js.map +7 -0
  254. package/dist/cjs/utilities/normalizeData.js +65 -0
  255. package/dist/cjs/utilities/normalizeData.js.map +7 -0
  256. package/dist/esm/DSDataGrid.js +370 -0
  257. package/dist/esm/DSDataGrid.js.map +7 -0
  258. package/dist/esm/DataGridImpl.js +150 -0
  259. package/dist/esm/DataGridImpl.js.map +7 -0
  260. package/dist/esm/PaginatedDataGrid.js +87 -0
  261. package/dist/esm/PaginatedDataGrid.js.map +7 -0
  262. package/dist/esm/blockNames.js +10 -0
  263. package/dist/esm/blockNames.js.map +7 -0
  264. package/dist/esm/columns/IconColumn.js +82 -0
  265. package/dist/esm/columns/IconColumn.js.map +7 -0
  266. package/dist/esm/columns/NumberColumn.js +7 -0
  267. package/dist/esm/columns/NumberColumn.js.map +7 -0
  268. package/dist/esm/components/BodyCell.js +99 -0
  269. package/dist/esm/components/BodyCell.js.map +7 -0
  270. package/dist/esm/components/BodyList.js +62 -0
  271. package/dist/esm/components/BodyList.js.map +7 -0
  272. package/dist/esm/components/ColumnVisibilityMenuOption.js +37 -0
  273. package/dist/esm/components/ColumnVisibilityMenuOption.js.map +7 -0
  274. package/dist/esm/components/ColumnsOptionsMenuSection.js +35 -0
  275. package/dist/esm/components/ColumnsOptionsMenuSection.js.map +7 -0
  276. package/dist/esm/components/EmptyState.js +53 -0
  277. package/dist/esm/components/EmptyState.js.map +7 -0
  278. package/dist/esm/components/HeaderCell.js +60 -0
  279. package/dist/esm/components/HeaderCell.js.map +7 -0
  280. package/dist/esm/components/List.js +29 -0
  281. package/dist/esm/components/List.js.map +7 -0
  282. package/dist/esm/components/ListItem.js +37 -0
  283. package/dist/esm/components/ListItem.js.map +7 -0
  284. package/dist/esm/components/NoResults.js +57 -0
  285. package/dist/esm/components/NoResults.js.map +7 -0
  286. package/dist/esm/components/RowsLoader.js +13 -0
  287. package/dist/esm/components/RowsLoader.js.map +7 -0
  288. package/dist/esm/components/Table.js +98 -0
  289. package/dist/esm/components/Table.js.map +7 -0
  290. package/dist/esm/components/TableBody.js +74 -0
  291. package/dist/esm/components/TableBody.js.map +7 -0
  292. package/dist/esm/components/TableHeader.js +41 -0
  293. package/dist/esm/components/TableHeader.js.map +7 -0
  294. package/dist/esm/components/footer/addOptionalFooterComponents.js +27 -0
  295. package/dist/esm/components/footer/addOptionalFooterComponents.js.map +7 -0
  296. package/dist/esm/components/header/PrimaryControls.js +21 -0
  297. package/dist/esm/components/header/PrimaryControls.js.map +7 -0
  298. package/dist/esm/components/header/addOptionalHeaderComponents.js +29 -0
  299. package/dist/esm/components/header/addOptionalHeaderComponents.js.map +7 -0
  300. package/dist/esm/components/index.js +14 -0
  301. package/dist/esm/components/index.js.map +7 -0
  302. package/dist/esm/components/renderers/defaultClassedRenderers.js +41 -0
  303. package/dist/esm/components/renderers/defaultClassedRenderers.js.map +7 -0
  304. package/dist/esm/components/renderers/index.js +29 -0
  305. package/dist/esm/components/renderers/index.js.map +7 -0
  306. package/dist/esm/components/renderers/renderRowsLoader.js +10 -0
  307. package/dist/esm/components/renderers/renderRowsLoader.js.map +7 -0
  308. package/dist/esm/components/tableContext.js +7 -0
  309. package/dist/esm/components/tableContext.js.map +7 -0
  310. package/dist/esm/defaultPlugins.js +15 -0
  311. package/dist/esm/defaultPlugins.js.map +7 -0
  312. package/dist/esm/index.js +63 -0
  313. package/dist/esm/index.js.map +7 -0
  314. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +151 -0
  315. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
  316. package/dist/esm/plugins/body-header-scroll-sync/index.js +6 -0
  317. package/dist/esm/plugins/body-header-scroll-sync/index.js.map +7 -0
  318. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +141 -0
  319. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
  320. package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js +20 -0
  321. package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
  322. package/dist/esm/plugins/column-dnd/index.js +6 -0
  323. package/dist/esm/plugins/column-dnd/index.js.map +7 -0
  324. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +63 -0
  325. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
  326. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js +58 -0
  327. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
  328. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +15 -0
  329. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
  330. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +53 -0
  331. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
  332. package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js +8 -0
  333. package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
  334. package/dist/esm/plugins/column-sizing/index.js +6 -0
  335. package/dist/esm/plugins/column-sizing/index.js.map +7 -0
  336. package/dist/esm/plugins/column-sizing/useColumnSizeService.js +138 -0
  337. package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +7 -0
  338. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +138 -0
  339. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
  340. package/dist/esm/plugins/column-sizing/utils.js +39 -0
  341. package/dist/esm/plugins/column-sizing/utils.js.map +7 -0
  342. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +11 -0
  343. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
  344. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +67 -0
  345. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
  346. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +59 -0
  347. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
  348. package/dist/esm/plugins/custom-cell-renderer/index.js +6 -0
  349. package/dist/esm/plugins/custom-cell-renderer/index.js.map +7 -0
  350. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js +57 -0
  351. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
  352. package/dist/esm/plugins/editable/EditableComponents/TextBox.js +80 -0
  353. package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +7 -0
  354. package/dist/esm/plugins/editable/EditableComponents/index.js +8 -0
  355. package/dist/esm/plugins/editable/EditableComponents/index.js.map +7 -0
  356. package/dist/esm/plugins/editable/EditablePlugin.js +79 -0
  357. package/dist/esm/plugins/editable/EditablePlugin.js.map +7 -0
  358. package/dist/esm/plugins/editable/decorateEditable.js +84 -0
  359. package/dist/esm/plugins/editable/decorateEditable.js.map +7 -0
  360. package/dist/esm/plugins/editable/getEditorComponent.js +72 -0
  361. package/dist/esm/plugins/editable/getEditorComponent.js.map +7 -0
  362. package/dist/esm/plugins/editable/index.js +9 -0
  363. package/dist/esm/plugins/editable/index.js.map +7 -0
  364. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +136 -0
  365. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
  366. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +178 -0
  367. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
  368. package/dist/esm/plugins/expandable-grid/ExpandedRow.js +132 -0
  369. package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +7 -0
  370. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +45 -0
  371. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
  372. package/dist/esm/plugins/expandable-grid/index.js +8 -0
  373. package/dist/esm/plugins/expandable-grid/index.js.map +7 -0
  374. package/dist/esm/plugins/expandable-grid/useExpandGridState.js +64 -0
  375. package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +7 -0
  376. package/dist/esm/plugins/export-data/ExportDataPlugin.js +118 -0
  377. package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +7 -0
  378. package/dist/esm/plugins/export-data/index.js +6 -0
  379. package/dist/esm/plugins/export-data/index.js.map +7 -0
  380. package/dist/esm/plugins/filterable/FilterablePlugin.js +51 -0
  381. package/dist/esm/plugins/filterable/FilterablePlugin.js.map +7 -0
  382. package/dist/esm/plugins/filterable/addFilterToColumn.js +33 -0
  383. package/dist/esm/plugins/filterable/addFilterToColumn.js.map +7 -0
  384. package/dist/esm/plugins/filterable/components/FilterableHeader.js +118 -0
  385. package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +7 -0
  386. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +128 -0
  387. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
  388. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +102 -0
  389. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
  390. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +176 -0
  391. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
  392. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +169 -0
  393. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
  394. package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +6 -0
  395. package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
  396. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +20 -0
  397. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
  398. package/dist/esm/plugins/filterable/filterableFormatter.js +44 -0
  399. package/dist/esm/plugins/filterable/filterableFormatter.js.map +7 -0
  400. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +67 -0
  401. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
  402. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js +15 -0
  403. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
  404. package/dist/esm/plugins/filterable/helper.js +104 -0
  405. package/dist/esm/plugins/filterable/helper.js.map +7 -0
  406. package/dist/esm/plugins/filterable/index.js +6 -0
  407. package/dist/esm/plugins/filterable/index.js.map +7 -0
  408. package/dist/esm/plugins/filterable/useFilterableState.js +104 -0
  409. package/dist/esm/plugins/filterable/useFilterableState.js.map +7 -0
  410. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js +28 -0
  411. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
  412. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +119 -0
  413. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
  414. package/dist/esm/plugins/grouping-grid/walkStrategy.js +47 -0
  415. package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +7 -0
  416. package/dist/esm/plugins/index.js +39 -0
  417. package/dist/esm/plugins/index.js.map +7 -0
  418. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +102 -0
  419. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
  420. package/dist/esm/plugins/infinite-scrolling/index.js +6 -0
  421. package/dist/esm/plugins/infinite-scrolling/index.js.map +7 -0
  422. package/dist/esm/plugins/pagination/PaginationPlugin.js +101 -0
  423. package/dist/esm/plugins/pagination/PaginationPlugin.js.map +7 -0
  424. package/dist/esm/plugins/pagination/components/Pagination.js +34 -0
  425. package/dist/esm/plugins/pagination/components/Pagination.js.map +7 -0
  426. package/dist/esm/plugins/pagination/components/Paginator.js +53 -0
  427. package/dist/esm/plugins/pagination/components/Paginator.js.map +7 -0
  428. package/dist/esm/plugins/pagination/components/PerPageDropdown.js +68 -0
  429. package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +7 -0
  430. package/dist/esm/plugins/pagination/helper.js +33 -0
  431. package/dist/esm/plugins/pagination/helper.js.map +7 -0
  432. package/dist/esm/plugins/pagination/index.js +6 -0
  433. package/dist/esm/plugins/pagination/index.js.map +7 -0
  434. package/dist/esm/plugins/pagination/usePaginationState.js +71 -0
  435. package/dist/esm/plugins/pagination/usePaginationState.js.map +7 -0
  436. package/dist/esm/plugins/resizable/ResizablePlugin.js +80 -0
  437. package/dist/esm/plugins/resizable/ResizablePlugin.js.map +7 -0
  438. package/dist/esm/plugins/resizable/decorateResizable.js +45 -0
  439. package/dist/esm/plugins/resizable/decorateResizable.js.map +7 -0
  440. package/dist/esm/plugins/resizable/index.js +6 -0
  441. package/dist/esm/plugins/resizable/index.js.map +7 -0
  442. package/dist/esm/plugins/resizable/useResizeHandle.js +50 -0
  443. package/dist/esm/plugins/resizable/useResizeHandle.js.map +7 -0
  444. package/dist/esm/plugins/resizable/utils.js +25 -0
  445. package/dist/esm/plugins/resizable/utils.js.map +7 -0
  446. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js +121 -0
  447. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
  448. package/dist/esm/plugins/row-dnd/index.js +6 -0
  449. package/dist/esm/plugins/row-dnd/index.js.map +7 -0
  450. package/dist/esm/plugins/selectable/SelectablePlugin.js +137 -0
  451. package/dist/esm/plugins/selectable/SelectablePlugin.js.map +7 -0
  452. package/dist/esm/plugins/selectable/addSelectableColumn.js +105 -0
  453. package/dist/esm/plugins/selectable/addSelectableColumn.js.map +7 -0
  454. package/dist/esm/plugins/selectable/helper.js +43 -0
  455. package/dist/esm/plugins/selectable/helper.js.map +7 -0
  456. package/dist/esm/plugins/selectable/index.js +6 -0
  457. package/dist/esm/plugins/selectable/index.js.map +7 -0
  458. package/dist/esm/plugins/selectable/selectableFormatter.js +83 -0
  459. package/dist/esm/plugins/selectable/selectableFormatter.js.map +7 -0
  460. package/dist/esm/plugins/selectable/useSelectableState.js +107 -0
  461. package/dist/esm/plugins/selectable/useSelectableState.js.map +7 -0
  462. package/dist/esm/plugins/sortable/SortablePlugin.js +69 -0
  463. package/dist/esm/plugins/sortable/SortablePlugin.js.map +7 -0
  464. package/dist/esm/plugins/sortable/checkIfSortable.js +16 -0
  465. package/dist/esm/plugins/sortable/checkIfSortable.js.map +7 -0
  466. package/dist/esm/plugins/sortable/index.js +6 -0
  467. package/dist/esm/plugins/sortable/index.js.map +7 -0
  468. package/dist/esm/plugins/sortable/sortHeaderFormatter.js +37 -0
  469. package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +7 -0
  470. package/dist/esm/plugins/sortable/sortTree.js +33 -0
  471. package/dist/esm/plugins/sortable/sortTree.js.map +7 -0
  472. package/dist/esm/plugins/sortable/sorter.js +127 -0
  473. package/dist/esm/plugins/sortable/sorter.js.map +7 -0
  474. package/dist/esm/plugins/sortable/useSortableState.js +62 -0
  475. package/dist/esm/plugins/sortable/useSortableState.js.map +7 -0
  476. package/dist/esm/plugins/toolbar/RowRenderer.js +83 -0
  477. package/dist/esm/plugins/toolbar/RowRenderer.js.map +7 -0
  478. package/dist/esm/plugins/toolbar/ToolbarPlugin.js +29 -0
  479. package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +7 -0
  480. package/dist/esm/plugins/toolbar/ToolbarTrigger.js +94 -0
  481. package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +7 -0
  482. package/dist/esm/plugins/toolbar/index.js +6 -0
  483. package/dist/esm/plugins/toolbar/index.js.map +7 -0
  484. package/dist/esm/plugins/virtualization/AutoHeightList.js +81 -0
  485. package/dist/esm/plugins/virtualization/AutoHeightList.js.map +7 -0
  486. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +84 -0
  487. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
  488. package/dist/esm/plugins/virtualization/VirtualizedBody.js +247 -0
  489. package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +7 -0
  490. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +23 -0
  491. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
  492. package/dist/esm/plugins/virtualization/helper.js +6 -0
  493. package/dist/esm/plugins/virtualization/helper.js.map +7 -0
  494. package/dist/esm/plugins/virtualization/index.js +6 -0
  495. package/dist/esm/plugins/virtualization/index.js.map +7 -0
  496. package/dist/esm/renders/CellWithAddons.js +82 -0
  497. package/dist/esm/renders/CellWithAddons.js.map +7 -0
  498. package/dist/esm/renders/index.js +8 -0
  499. package/dist/esm/renders/index.js.map +7 -0
  500. package/dist/esm/renders/styled.js +49 -0
  501. package/dist/esm/renders/styled.js.map +7 -0
  502. package/dist/esm/rowSizes.js +22 -0
  503. package/dist/esm/rowSizes.js.map +7 -0
  504. package/dist/esm/utilities/DataGridUtilities.json +1315 -0
  505. package/dist/esm/utilities/getPluginsFromProps.js +43 -0
  506. package/dist/esm/utilities/getPluginsFromProps.js.map +7 -0
  507. package/dist/esm/utilities/getScrollbarSize.js +17 -0
  508. package/dist/esm/utilities/getScrollbarSize.js.map +7 -0
  509. package/dist/esm/utilities/normalizeData.js +38 -0
  510. package/dist/esm/utilities/normalizeData.js.map +7 -0
  511. package/package.json +295 -287
  512. package/cjs/DSDataGrid.js +0 -639
  513. package/cjs/DataGridImpl.js +0 -169
  514. package/cjs/PaginatedDataGrid.js +0 -77
  515. package/cjs/blockNames.js +0 -11
  516. package/cjs/columns/IconColumn.js +0 -95
  517. package/cjs/columns/NumberColumn.js +0 -6
  518. package/cjs/components/BodyCell.js +0 -101
  519. package/cjs/components/BodyList.js +0 -54
  520. package/cjs/components/ColumnVisibilityMenuOption.js +0 -44
  521. package/cjs/components/ColumnsOptionsMenuSection.js +0 -49
  522. package/cjs/components/EmptyState.js +0 -51
  523. package/cjs/components/HeaderCell.js +0 -70
  524. package/cjs/components/List.js +0 -32
  525. package/cjs/components/ListItem.js +0 -44
  526. package/cjs/components/NoResults.js +0 -51
  527. package/cjs/components/RowsLoader.js +0 -22
  528. package/cjs/components/Table.js +0 -122
  529. package/cjs/components/TableBody.js +0 -69
  530. package/cjs/components/TableHeader.js +0 -37
  531. package/cjs/components/footer/addOptionalFooterComponents.js +0 -46
  532. package/cjs/components/header/PrimaryControls.js +0 -36
  533. package/cjs/components/header/addOptionalHeaderComponents.js +0 -47
  534. package/cjs/components/index.js +0 -17
  535. package/cjs/components/renderers/defaultClassedRenderers.js +0 -59
  536. package/cjs/components/renderers/index.js +0 -23
  537. package/cjs/components/renderers/renderRowsLoader.js +0 -18
  538. package/cjs/components/tableContext.js +0 -13
  539. package/cjs/defaultPlugins.js +0 -12
  540. package/cjs/index.js +0 -67
  541. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -143
  542. package/cjs/plugins/body-header-scroll-sync/index.js +0 -9
  543. package/cjs/plugins/column-dnd/DndColumnsPlugin.js +0 -134
  544. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +0 -30
  545. package/cjs/plugins/column-dnd/index.js +0 -9
  546. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +0 -88
  547. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +0 -74
  548. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +0 -17
  549. package/cjs/plugins/column-sizing/ext-points/getTableProps.js +0 -63
  550. package/cjs/plugins/column-sizing/getColumnNameFromProperty.js +0 -9
  551. package/cjs/plugins/column-sizing/index.js +0 -9
  552. package/cjs/plugins/column-sizing/useColumnSizeService.js +0 -162
  553. package/cjs/plugins/column-sizing/useStylesheetHelpers.js +0 -270
  554. package/cjs/plugins/column-sizing/utils.js +0 -45
  555. package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -18
  556. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -72
  557. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +0 -65
  558. package/cjs/plugins/custom-cell-renderer/index.js +0 -9
  559. package/cjs/plugins/editable/EditableComponents/ComboBox.js +0 -71
  560. package/cjs/plugins/editable/EditableComponents/TextBox.js +0 -110
  561. package/cjs/plugins/editable/EditableComponents/index.js +0 -11
  562. package/cjs/plugins/editable/EditablePlugin.js +0 -123
  563. package/cjs/plugins/editable/decorateEditable.js +0 -122
  564. package/cjs/plugins/editable/getEditorComponent.js +0 -82
  565. package/cjs/plugins/editable/index.js +0 -13
  566. package/cjs/plugins/expandable-grid/ExpandableColumn.js +0 -156
  567. package/cjs/plugins/expandable-grid/ExpandablePlugin.js +0 -243
  568. package/cjs/plugins/expandable-grid/ExpandedRow.js +0 -156
  569. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +0 -54
  570. package/cjs/plugins/expandable-grid/index.js +0 -11
  571. package/cjs/plugins/expandable-grid/useExpandGridState.js +0 -79
  572. package/cjs/plugins/export-data/ExportDataPlugin.js +0 -168
  573. package/cjs/plugins/export-data/index.js +0 -12
  574. package/cjs/plugins/filterable/FilterablePlugin.js +0 -81
  575. package/cjs/plugins/filterable/addFilterToColumn.js +0 -31
  576. package/cjs/plugins/filterable/components/FilterableHeader.js +0 -120
  577. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -157
  578. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -107
  579. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -195
  580. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -174
  581. package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -7
  582. package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -18
  583. package/cjs/plugins/filterable/filterableFormatter.js +0 -63
  584. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -74
  585. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +0 -23
  586. package/cjs/plugins/filterable/helper.js +0 -120
  587. package/cjs/plugins/filterable/index.js +0 -9
  588. package/cjs/plugins/filterable/useFilterableState.js +0 -117
  589. package/cjs/plugins/grouping-by/GroupingByPlugin.js +0 -40
  590. package/cjs/plugins/grouping-grid/GroupingPlugin.js +0 -149
  591. package/cjs/plugins/grouping-grid/walkStrategy.js +0 -56
  592. package/cjs/plugins/index.js +0 -48
  593. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -124
  594. package/cjs/plugins/infinite-scrolling/index.js +0 -9
  595. package/cjs/plugins/pagination/PaginationPlugin.js +0 -109
  596. package/cjs/plugins/pagination/components/Pagination.js +0 -44
  597. package/cjs/plugins/pagination/components/Paginator.js +0 -67
  598. package/cjs/plugins/pagination/components/PerPageDropdown.js +0 -80
  599. package/cjs/plugins/pagination/helper.js +0 -41
  600. package/cjs/plugins/pagination/index.js +0 -9
  601. package/cjs/plugins/pagination/usePaginationState.js +0 -74
  602. package/cjs/plugins/resizable/ResizablePlugin.js +0 -113
  603. package/cjs/plugins/resizable/decorateResizable.js +0 -60
  604. package/cjs/plugins/resizable/index.js +0 -9
  605. package/cjs/plugins/resizable/useResizeHandle.js +0 -73
  606. package/cjs/plugins/resizable/utils.js +0 -33
  607. package/cjs/plugins/row-dnd/DndRowsPlugin.js +0 -115
  608. package/cjs/plugins/row-dnd/index.js +0 -9
  609. package/cjs/plugins/selectable/SelectablePlugin.js +0 -199
  610. package/cjs/plugins/selectable/addSelectableColumn.js +0 -93
  611. package/cjs/plugins/selectable/helper.js +0 -43
  612. package/cjs/plugins/selectable/index.js +0 -9
  613. package/cjs/plugins/selectable/selectableFormatter.js +0 -115
  614. package/cjs/plugins/selectable/useSelectableState.js +0 -143
  615. package/cjs/plugins/sortable/SortablePlugin.js +0 -109
  616. package/cjs/plugins/sortable/checkIfSortable.js +0 -22
  617. package/cjs/plugins/sortable/index.js +0 -9
  618. package/cjs/plugins/sortable/sortHeaderFormatter.js +0 -60
  619. package/cjs/plugins/sortable/sortTree.js +0 -51
  620. package/cjs/plugins/sortable/sorter.js +0 -176
  621. package/cjs/plugins/sortable/useSortableState.js +0 -99
  622. package/cjs/plugins/toolbar/RowRenderer.js +0 -97
  623. package/cjs/plugins/toolbar/ToolbarPlugin.js +0 -42
  624. package/cjs/plugins/toolbar/ToolbarTrigger.js +0 -86
  625. package/cjs/plugins/toolbar/index.js +0 -9
  626. package/cjs/plugins/virtualization/AutoHeightList.js +0 -59
  627. package/cjs/plugins/virtualization/VirtualizationPlugin.js +0 -108
  628. package/cjs/plugins/virtualization/VirtualizedBody.js +0 -275
  629. package/cjs/plugins/virtualization/VirtualizedBodyRow.js +0 -30
  630. package/cjs/plugins/virtualization/helper.js +0 -7
  631. package/cjs/plugins/virtualization/index.js +0 -9
  632. package/cjs/renders/CellWithAddons.js +0 -63
  633. package/cjs/renders/index.js +0 -11
  634. package/cjs/renders/styled.js +0 -27
  635. package/cjs/rowSizes.js +0 -19
  636. package/cjs/utilities/getPluginsFromProps.js +0 -44
  637. package/cjs/utilities/getScrollbarSize.js +0 -27
  638. package/cjs/utilities/normalizeData.js +0 -39
  639. package/esm/DSDataGrid.js +0 -630
  640. package/esm/DataGridImpl.js +0 -160
  641. package/esm/PaginatedDataGrid.js +0 -68
  642. package/esm/blockNames.js +0 -5
  643. package/esm/columns/IconColumn.js +0 -87
  644. package/esm/columns/NumberColumn.js +0 -4
  645. package/esm/components/BodyCell.js +0 -92
  646. package/esm/components/BodyList.js +0 -45
  647. package/esm/components/ColumnVisibilityMenuOption.js +0 -40
  648. package/esm/components/ColumnsOptionsMenuSection.js +0 -43
  649. package/esm/components/EmptyState.js +0 -41
  650. package/esm/components/HeaderCell.js +0 -62
  651. package/esm/components/List.js +0 -26
  652. package/esm/components/ListItem.js +0 -38
  653. package/esm/components/NoResults.js +0 -43
  654. package/esm/components/RowsLoader.js +0 -15
  655. package/esm/components/Table.js +0 -115
  656. package/esm/components/TableBody.js +0 -61
  657. package/esm/components/TableHeader.js +0 -31
  658. package/esm/components/footer/addOptionalFooterComponents.js +0 -40
  659. package/esm/components/header/PrimaryControls.js +0 -30
  660. package/esm/components/header/addOptionalHeaderComponents.js +0 -40
  661. package/esm/components/index.js +0 -5
  662. package/esm/components/renderers/defaultClassedRenderers.js +0 -46
  663. package/esm/components/renderers/index.js +0 -18
  664. package/esm/components/renderers/renderRowsLoader.js +0 -10
  665. package/esm/components/tableContext.js +0 -5
  666. package/esm/defaultPlugins.js +0 -8
  667. package/esm/index.js +0 -27
  668. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -132
  669. package/esm/plugins/body-header-scroll-sync/index.js +0 -1
  670. package/esm/plugins/column-dnd/DndColumnsPlugin.js +0 -125
  671. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +0 -22
  672. package/esm/plugins/column-dnd/index.js +0 -1
  673. package/esm/plugins/column-sizing/ColumnSizingPlugin.js +0 -80
  674. package/esm/plugins/column-sizing/columnMeasurerTransformer.js +0 -66
  675. package/esm/plugins/column-sizing/ext-points/decorateColumn.js +0 -13
  676. package/esm/plugins/column-sizing/ext-points/getTableProps.js +0 -55
  677. package/esm/plugins/column-sizing/getColumnNameFromProperty.js +0 -7
  678. package/esm/plugins/column-sizing/index.js +0 -1
  679. package/esm/plugins/column-sizing/useColumnSizeService.js +0 -156
  680. package/esm/plugins/column-sizing/useStylesheetHelpers.js +0 -245
  681. package/esm/plugins/column-sizing/utils.js +0 -37
  682. package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -10
  683. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -63
  684. package/esm/plugins/custom-cell-renderer/getRendererComponent.js +0 -56
  685. package/esm/plugins/custom-cell-renderer/index.js +0 -1
  686. package/esm/plugins/editable/EditableComponents/ComboBox.js +0 -65
  687. package/esm/plugins/editable/EditableComponents/TextBox.js +0 -103
  688. package/esm/plugins/editable/EditableComponents/index.js +0 -2
  689. package/esm/plugins/editable/EditablePlugin.js +0 -115
  690. package/esm/plugins/editable/decorateEditable.js +0 -92
  691. package/esm/plugins/editable/getEditorComponent.js +0 -74
  692. package/esm/plugins/editable/index.js +0 -3
  693. package/esm/plugins/expandable-grid/ExpandableColumn.js +0 -146
  694. package/esm/plugins/expandable-grid/ExpandablePlugin.js +0 -231
  695. package/esm/plugins/expandable-grid/ExpandedRow.js +0 -143
  696. package/esm/plugins/expandable-grid/ExpandedRowExtra.js +0 -46
  697. package/esm/plugins/expandable-grid/index.js +0 -2
  698. package/esm/plugins/expandable-grid/useExpandGridState.js +0 -75
  699. package/esm/plugins/export-data/ExportDataPlugin.js +0 -156
  700. package/esm/plugins/export-data/index.js +0 -1
  701. package/esm/plugins/filterable/FilterablePlugin.js +0 -73
  702. package/esm/plugins/filterable/addFilterToColumn.js +0 -23
  703. package/esm/plugins/filterable/components/FilterableHeader.js +0 -113
  704. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -148
  705. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -97
  706. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -184
  707. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -163
  708. package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -3
  709. package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -16
  710. package/esm/plugins/filterable/filterableFormatter.js +0 -57
  711. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -65
  712. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +0 -17
  713. package/esm/plugins/filterable/helper.js +0 -106
  714. package/esm/plugins/filterable/index.js +0 -1
  715. package/esm/plugins/filterable/useFilterableState.js +0 -109
  716. package/esm/plugins/grouping-by/GroupingByPlugin.js +0 -32
  717. package/esm/plugins/grouping-grid/GroupingPlugin.js +0 -138
  718. package/esm/plugins/grouping-grid/walkStrategy.js +0 -52
  719. package/esm/plugins/index.js +0 -19
  720. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -114
  721. package/esm/plugins/infinite-scrolling/index.js +0 -1
  722. package/esm/plugins/pagination/PaginationPlugin.js +0 -96
  723. package/esm/plugins/pagination/components/Pagination.js +0 -36
  724. package/esm/plugins/pagination/components/Paginator.js +0 -59
  725. package/esm/plugins/pagination/components/PerPageDropdown.js +0 -71
  726. package/esm/plugins/pagination/helper.js +0 -36
  727. package/esm/plugins/pagination/index.js +0 -1
  728. package/esm/plugins/pagination/usePaginationState.js +0 -66
  729. package/esm/plugins/resizable/ResizablePlugin.js +0 -105
  730. package/esm/plugins/resizable/decorateResizable.js +0 -49
  731. package/esm/plugins/resizable/index.js +0 -1
  732. package/esm/plugins/resizable/useResizeHandle.js +0 -65
  733. package/esm/plugins/resizable/utils.js +0 -23
  734. package/esm/plugins/row-dnd/DndRowsPlugin.js +0 -105
  735. package/esm/plugins/row-dnd/index.js +0 -1
  736. package/esm/plugins/selectable/SelectablePlugin.js +0 -190
  737. package/esm/plugins/selectable/addSelectableColumn.js +0 -84
  738. package/esm/plugins/selectable/helper.js +0 -31
  739. package/esm/plugins/selectable/index.js +0 -1
  740. package/esm/plugins/selectable/selectableFormatter.js +0 -107
  741. package/esm/plugins/selectable/useSelectableState.js +0 -135
  742. package/esm/plugins/sortable/SortablePlugin.js +0 -82
  743. package/esm/plugins/sortable/checkIfSortable.js +0 -17
  744. package/esm/plugins/sortable/index.js +0 -1
  745. package/esm/plugins/sortable/sortHeaderFormatter.js +0 -53
  746. package/esm/plugins/sortable/sortTree.js +0 -26
  747. package/esm/plugins/sortable/sorter.js +0 -166
  748. package/esm/plugins/sortable/useSortableState.js +0 -71
  749. package/esm/plugins/toolbar/RowRenderer.js +0 -88
  750. package/esm/plugins/toolbar/ToolbarPlugin.js +0 -33
  751. package/esm/plugins/toolbar/ToolbarTrigger.js +0 -74
  752. package/esm/plugins/toolbar/index.js +0 -1
  753. package/esm/plugins/virtualization/AutoHeightList.js +0 -52
  754. package/esm/plugins/virtualization/VirtualizationPlugin.js +0 -97
  755. package/esm/plugins/virtualization/VirtualizedBody.js +0 -268
  756. package/esm/plugins/virtualization/VirtualizedBodyRow.js +0 -28
  757. package/esm/plugins/virtualization/helper.js +0 -3
  758. package/esm/plugins/virtualization/index.js +0 -1
  759. package/esm/renders/CellWithAddons.js +0 -53
  760. package/esm/renders/index.js +0 -2
  761. package/esm/renders/styled.js +0 -16
  762. package/esm/rowSizes.js +0 -13
  763. package/esm/utilities/getPluginsFromProps.js +0 -42
  764. package/esm/utilities/getScrollbarSize.js +0 -23
  765. package/esm/utilities/normalizeData.js +0 -29
  766. package/types/DSDataGrid.d.ts +0 -863
  767. package/types/DataGridImpl.d.ts +0 -12
  768. package/types/PaginatedDataGrid.d.ts +0 -16
  769. package/types/blockNames.d.ts +0 -4
  770. package/types/columns/IconColumn.d.ts +0 -35
  771. package/types/columns/NumberColumn.d.ts +0 -4
  772. package/types/components/BodyCell.d.ts +0 -33
  773. package/types/components/BodyList.d.ts +0 -12
  774. package/types/components/ColumnVisibilityMenuOption.d.ts +0 -15
  775. package/types/components/ColumnsOptionsMenuSection.d.ts +0 -8
  776. package/types/components/EmptyState.d.ts +0 -7
  777. package/types/components/HeaderCell.d.ts +0 -19
  778. package/types/components/List.d.ts +0 -3
  779. package/types/components/ListItem.d.ts +0 -3
  780. package/types/components/NoResults.d.ts +0 -8
  781. package/types/components/RowsLoader.d.ts +0 -5
  782. package/types/components/Table.d.ts +0 -13
  783. package/types/components/TableBody.d.ts +0 -9
  784. package/types/components/TableHeader.d.ts +0 -3
  785. package/types/components/footer/addOptionalFooterComponents.d.ts +0 -6
  786. package/types/components/header/PrimaryControls.d.ts +0 -5
  787. package/types/components/header/addOptionalHeaderComponents.d.ts +0 -11
  788. package/types/components/index.d.ts +0 -5
  789. package/types/components/renderers/defaultClassedRenderers.d.ts +0 -11
  790. package/types/components/renderers/index.d.ts +0 -15
  791. package/types/components/renderers/renderRowsLoader.d.ts +0 -2
  792. package/types/components/tableContext.d.ts +0 -2
  793. package/types/components/tests/ColumnVisibilityMenu.test.d.ts +0 -1
  794. package/types/defaultPlugins.d.ts +0 -1
  795. package/types/index.d.ts +0 -10
  796. package/types/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +0 -1
  797. package/types/plugins/body-header-scroll-sync/index.d.ts +0 -1
  798. package/types/plugins/column-dnd/DndColumnsPlugin.d.ts +0 -1
  799. package/types/plugins/column-dnd/decorateGridWithDndColumns.d.ts +0 -2
  800. package/types/plugins/column-dnd/index.d.ts +0 -1
  801. package/types/plugins/column-sizing/ColumnSizingPlugin.d.ts +0 -1
  802. package/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +0 -6
  803. package/types/plugins/column-sizing/ext-points/decorateColumn.d.ts +0 -1
  804. package/types/plugins/column-sizing/ext-points/getTableProps.d.ts +0 -10
  805. package/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +0 -1
  806. package/types/plugins/column-sizing/index.d.ts +0 -1
  807. package/types/plugins/column-sizing/useColumnSizeService.d.ts +0 -17
  808. package/types/plugins/column-sizing/useStylesheetHelpers.d.ts +0 -22
  809. package/types/plugins/column-sizing/utils.d.ts +0 -5
  810. package/types/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +0 -1
  811. package/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +0 -3
  812. package/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +0 -11
  813. package/types/plugins/custom-cell-renderer/index.d.ts +0 -1
  814. package/types/plugins/editable/EditableComponents/ComboBox.d.ts +0 -10
  815. package/types/plugins/editable/EditableComponents/TextBox.d.ts +0 -22
  816. package/types/plugins/editable/EditableComponents/index.d.ts +0 -2
  817. package/types/plugins/editable/EditablePlugin.d.ts +0 -1
  818. package/types/plugins/editable/decorateEditable.d.ts +0 -7
  819. package/types/plugins/editable/getEditorComponent.d.ts +0 -6
  820. package/types/plugins/editable/index.d.ts +0 -2
  821. package/types/plugins/expandable-grid/ExpandableColumn.d.ts +0 -28
  822. package/types/plugins/expandable-grid/ExpandablePlugin.d.ts +0 -1
  823. package/types/plugins/expandable-grid/ExpandedRow.d.ts +0 -11
  824. package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +0 -9
  825. package/types/plugins/expandable-grid/index.d.ts +0 -2
  826. package/types/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +0 -1
  827. package/types/plugins/expandable-grid/useExpandGridState.d.ts +0 -14
  828. package/types/plugins/export-data/ExportDataPlugin.d.ts +0 -4
  829. package/types/plugins/export-data/index.d.ts +0 -1
  830. package/types/plugins/filterable/FilterablePlugin.d.ts +0 -1
  831. package/types/plugins/filterable/addFilterToColumn.d.ts +0 -1
  832. package/types/plugins/filterable/components/FilterableHeader.d.ts +0 -29
  833. package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +0 -30
  834. package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +0 -27
  835. package/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +0 -30
  836. package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +0 -35
  837. package/types/plugins/filterable/components/filterable-menus/defaultDateFormat.d.ts +0 -1
  838. package/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +0 -1
  839. package/types/plugins/filterable/filterableFormatter.d.ts +0 -11
  840. package/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +0 -2
  841. package/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +0 -2
  842. package/types/plugins/filterable/helper.d.ts +0 -22
  843. package/types/plugins/filterable/index.d.ts +0 -1
  844. package/types/plugins/filterable/useFilterableState.d.ts +0 -18
  845. package/types/plugins/grouping-by/GroupingByPlugin.d.ts +0 -1
  846. package/types/plugins/grouping-grid/GroupingPlugin.d.ts +0 -1
  847. package/types/plugins/grouping-grid/walkStrategy.d.ts +0 -9
  848. package/types/plugins/index.d.ts +0 -16
  849. package/types/plugins/infinite-scrolling/InfiniteScrollPlugin.d.ts +0 -1
  850. package/types/plugins/infinite-scrolling/index.d.ts +0 -1
  851. package/types/plugins/pagination/PaginationPlugin.d.ts +0 -1
  852. package/types/plugins/pagination/components/Pagination.d.ts +0 -11
  853. package/types/plugins/pagination/components/Paginator.d.ts +0 -9
  854. package/types/plugins/pagination/components/PerPageDropdown.d.ts +0 -9
  855. package/types/plugins/pagination/helper.d.ts +0 -17
  856. package/types/plugins/pagination/index.d.ts +0 -1
  857. package/types/plugins/pagination/usePaginationState.d.ts +0 -9
  858. package/types/plugins/resizable/ResizablePlugin.d.ts +0 -1
  859. package/types/plugins/resizable/decorateResizable.d.ts +0 -4
  860. package/types/plugins/resizable/index.d.ts +0 -1
  861. package/types/plugins/resizable/useResizeHandle.d.ts +0 -13
  862. package/types/plugins/resizable/utils.d.ts +0 -3
  863. package/types/plugins/row-dnd/DndRowsPlugin.d.ts +0 -1
  864. package/types/plugins/row-dnd/index.d.ts +0 -1
  865. package/types/plugins/selectable/SelectablePlugin.d.ts +0 -1
  866. package/types/plugins/selectable/addSelectableColumn.d.ts +0 -30
  867. package/types/plugins/selectable/helper.d.ts +0 -5
  868. package/types/plugins/selectable/index.d.ts +0 -1
  869. package/types/plugins/selectable/selectableFormatter.d.ts +0 -9
  870. package/types/plugins/selectable/useSelectableState.d.ts +0 -9
  871. package/types/plugins/sortable/SortablePlugin.d.ts +0 -1
  872. package/types/plugins/sortable/checkIfSortable.d.ts +0 -2
  873. package/types/plugins/sortable/index.d.ts +0 -1
  874. package/types/plugins/sortable/sortHeaderFormatter.d.ts +0 -6
  875. package/types/plugins/sortable/sortTree.d.ts +0 -2
  876. package/types/plugins/sortable/sorter.d.ts +0 -12
  877. package/types/plugins/sortable/useSortableState.d.ts +0 -8
  878. package/types/plugins/toolbar/RowRenderer.d.ts +0 -11
  879. package/types/plugins/toolbar/ToolbarPlugin.d.ts +0 -1
  880. package/types/plugins/toolbar/ToolbarTrigger.d.ts +0 -8
  881. package/types/plugins/toolbar/index.d.ts +0 -1
  882. package/types/plugins/virtualization/AutoHeightList.d.ts +0 -3
  883. package/types/plugins/virtualization/VirtualizationPlugin.d.ts +0 -1
  884. package/types/plugins/virtualization/VirtualizedBody.d.ts +0 -32
  885. package/types/plugins/virtualization/VirtualizedBodyRow.d.ts +0 -8
  886. package/types/plugins/virtualization/helper.d.ts +0 -1
  887. package/types/plugins/virtualization/index.d.ts +0 -1
  888. package/types/renders/CellWithAddons.d.ts +0 -52
  889. package/types/renders/index.d.ts +0 -2
  890. package/types/renders/styled.d.ts +0 -3
  891. package/types/rowSizes.d.ts +0 -11
  892. package/types/tests/DataGrid-Columns.test.d.ts +0 -1
  893. package/types/tests/DataGrid-Editable.test.d.ts +0 -1
  894. package/types/tests/DataGrid-Export.test.d.ts +0 -1
  895. package/types/tests/DataGrid-Filter-helper.test.d.ts +0 -1
  896. package/types/tests/DataGrid-Filterable-Dates.test.d.ts +0 -1
  897. package/types/tests/DataGrid-Filterable-State.test.d.ts +0 -1
  898. package/types/tests/DataGrid-RowDnd.test.d.ts +0 -1
  899. package/types/tests/DataGrid-Selectable.test.d.ts +0 -1
  900. package/types/tests/DataGrid-Sortable.test.d.ts +0 -1
  901. package/types/tests/DataGrid-Toolbar.test.d.ts +0 -1
  902. package/types/tests/DataGrid-Virtualization.test.d.ts +0 -1
  903. package/types/tests/DataGrids-ColumnSizing.test.d.ts +0 -1
  904. package/types/tests/DataGrids-ConditionalPagination.test.d.ts +0 -1
  905. package/types/tests/DataGrids-Rows.test.d.ts +0 -1
  906. package/types/tests/DataGrids.test.d.ts +0 -1
  907. package/types/utilities/getPluginsFromProps.d.ts +0 -1
  908. package/types/utilities/getScrollbarSize.d.ts +0 -1
  909. package/types/utilities/normalizeData.d.ts +0 -3
@@ -0,0 +1,84 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
25
+ var __export = (target, all) => {
26
+ for (var name in all)
27
+ __defProp(target, name, { get: all[name], enumerable: true });
28
+ };
29
+ var __reExport = (target, module2, copyDefault, desc) => {
30
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
31
+ for (let key of __getOwnPropNames(module2))
32
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
33
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
34
+ }
35
+ return target;
36
+ };
37
+ var __toESM = (module2, isNodeMode) => {
38
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
39
+ };
40
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
41
+ return (module2, temp) => {
42
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
43
+ };
44
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
45
+ var ComboBox_exports = {};
46
+ __export(ComboBox_exports, {
47
+ ComboBox: () => ComboBox,
48
+ default: () => ComboBox_default
49
+ });
50
+ var React = __toESM(require("react"));
51
+ var import_react = __toESM(require("react"));
52
+ var import_ds_form = require("@elliemae/ds-form");
53
+ class ComboBox extends import_react.Component {
54
+ constructor(props) {
55
+ super(props);
56
+ this.state = { value: props.value };
57
+ }
58
+ handleChange(value) {
59
+ const { onValue } = this.props;
60
+ setTimeout(() => onValue(value), 1);
61
+ this.setState({ value });
62
+ }
63
+ handleBlur() {
64
+ const { onValue } = this.props;
65
+ const { value } = this.state;
66
+ onValue(value);
67
+ }
68
+ render() {
69
+ const { value } = this.state;
70
+ return /* @__PURE__ */ import_react.default.createElement(import_ds_form.DSComboBox, __spreadProps(__spreadValues({}, this.props), {
71
+ menuIsOpen: true,
72
+ onBlur: this.handleBlur,
73
+ onChange: this.handleChange,
74
+ onClick: (e) => e.stopPropagation(),
75
+ value
76
+ }));
77
+ }
78
+ }
79
+ ComboBox.defaultProps = {
80
+ onValue: () => null
81
+ };
82
+ var ComboBox_default = ComboBox;
83
+ module.exports = __toCommonJS(ComboBox_exports);
84
+ //# sourceMappingURL=ComboBox.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/plugins/editable/EditableComponents/ComboBox.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["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", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAiC;AACjC,qBAA2B;AAE3B,uBAAuB,uBAAU;AAAA,EAK/B,YAAY,OAAO;AACjB,UAAM;AACN,SAAK,QAAQ,EAAE,OAAO,MAAM;AAAA;AAAA,EAG9B,aAAa,OAAO;AAClB,UAAM,EAAE,YAAY,KAAK;AAKzB,eAAW,MAAM,QAAQ,QAAQ;AACjC,SAAK,SAAS,EAAE;AAAA;AAAA,EAGlB,aAAa;AACX,UAAM,EAAE,YAAY,KAAK;AACzB,UAAM,EAAE,UAAU,KAAK;AACvB,YAAQ;AAAA;AAAA,EAGV,SAAS;AACP,UAAM,EAAE,UAAU,KAAK;AACvB,WACE,mDAAC,2BAAD,iCACM,KAAK,QADX;AAAA,MAEE,YAAU;AAAA,MACV,QAAQ,KAAK;AAAA,MACb,UAAU,KAAK;AAAA,MACf,SAAS,CAAC,MAAM,EAAE;AAAA,MAClB;AAAA;AAAA;AAAA;AAlCC,AADT,SACS,eAAe;AAAA,EACpB,SAAS,MAAM;AAAA;AAwCnB,IAAO,mBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,107 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
25
+ var __export = (target, all) => {
26
+ for (var name in all)
27
+ __defProp(target, name, { get: all[name], enumerable: true });
28
+ };
29
+ var __reExport = (target, module2, copyDefault, desc) => {
30
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
31
+ for (let key of __getOwnPropNames(module2))
32
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
33
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
34
+ }
35
+ return target;
36
+ };
37
+ var __toESM = (module2, isNodeMode) => {
38
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
39
+ };
40
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
41
+ return (module2, temp) => {
42
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
43
+ };
44
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
45
+ var TextBox_exports = {};
46
+ __export(TextBox_exports, {
47
+ TextBox: () => TextBox,
48
+ default: () => TextBox_default
49
+ });
50
+ var React = __toESM(require("react"));
51
+ var import_react = __toESM(require("react"));
52
+ var import_ds_form = require("@elliemae/ds-form");
53
+ class TextBox extends import_react.Component {
54
+ constructor(props) {
55
+ super(props);
56
+ this.inputRef = import_react.default.createRef();
57
+ this.state = { value: props.value };
58
+ }
59
+ componentDidMount() {
60
+ setTimeout(() => {
61
+ if (this.inputRef && this.inputRef.current) {
62
+ this.inputRef.current.focus();
63
+ }
64
+ }, 50);
65
+ }
66
+ handleKeyUp({ key, target: { value } }) {
67
+ const { onValue } = this.props;
68
+ if (key === "Enter") {
69
+ onValue(value);
70
+ }
71
+ }
72
+ handleKeyDown(e) {
73
+ if (e.key === "Enter") {
74
+ e.preventDefault();
75
+ }
76
+ }
77
+ handleBlur(e) {
78
+ const { onValue } = this.props;
79
+ const {
80
+ target: { value }
81
+ } = e;
82
+ onValue(value);
83
+ }
84
+ handleChange({ target: { value } }) {
85
+ this.setState({ value });
86
+ }
87
+ render() {
88
+ const { value } = this.state;
89
+ return /* @__PURE__ */ import_react.default.createElement(import_ds_form.DSTextBox, __spreadProps(__spreadValues({
90
+ "data-testid": "ds-datagrids-editable-text-box"
91
+ }, this.props), {
92
+ innerRef: this.inputRef,
93
+ onBlur: this.handleBlur,
94
+ onChange: this.handleChange,
95
+ onClick: (e) => e.stopPropagation(),
96
+ onKeyUp: this.handleKeyUp,
97
+ onKeyDown: this.handleKeyDown,
98
+ value
99
+ }));
100
+ }
101
+ }
102
+ TextBox.defaultProps = {
103
+ onValue: () => null
104
+ };
105
+ var TextBox_default = TextBox;
106
+ module.exports = __toCommonJS(TextBox_exports);
107
+ //# sourceMappingURL=TextBox.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/plugins/editable/EditableComponents/TextBox.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* 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\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,mBAAiC;AACjC,qBAA0B;AAG1B,sBAAsB,uBAAU;AAAA,EAK9B,YAAY,OAAO;AACjB,UAAM;AACN,SAAK,WAAW,qBAAM;AACtB,SAAK,QAAQ,EAAE,OAAO,MAAM;AAAA;AAAA,EAG9B,oBAAoB;AAClB,eAAW,MAAM;AACf,UAAI,KAAK,YAAY,KAAK,SAAS,SAAS;AAC1C,aAAK,SAAS,QAAQ;AAAA;AAAA,OAEvB;AAAA;AAAA,EAGL,YAAY,EAAE,KAAK,QAAQ,EAAE,WAAW;AACtC,UAAM,EAAE,YAAY,KAAK;AACzB,QAAI,QAAQ,SAAS;AACnB,cAAQ;AAAA;AAAA;AAAA,EAIZ,cAAc,GAAG;AAEf,QAAI,EAAE,QAAQ,SAAS;AACrB,QAAE;AAAA;AAAA;AAAA,EAIN,WAAW,GAAG;AACZ,UAAM,EAAE,YAAY,KAAK;AACzB,UAAM;AAAA,MACJ,QAAQ,EAAE;AAAA,QACR;AACJ,YAAQ;AAAA;AAAA,EAGV,aAAa,EAAE,QAAQ,EAAE,WAAW;AAClC,SAAK,SAAS,EAAE;AAAA;AAAA,EAGlB,SAAS;AACP,UAAM,EAAE,UAAU,KAAK;AACvB,WACE,mDAAC,0BAAD;AAAA,MACE,eAAY;AAAA,OACR,KAAK,QAFX;AAAA,MAGE,UAAU,KAAK;AAAA,MACf,QAAQ,KAAK;AAAA,MACb,UAAU,KAAK;AAAA,MACf,SAAS,CAAC,MAAM,EAAE;AAAA,MAClB,SAAS,KAAK;AAAA,MACd,WAAW,KAAK;AAAA,MAChB;AAAA;AAAA;AAAA;AAxDC,AADT,QACS,eAAe;AAAA,EACpB,SAAS,MAAM;AAAA;AA8DnB,IAAO,kBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,37 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var EditableComponents_exports = {};
29
+ __export(EditableComponents_exports, {
30
+ ComboBox: () => import_ComboBox.default,
31
+ TextBox: () => import_TextBox.default
32
+ });
33
+ var React = __toESM(require("react"));
34
+ var import_ComboBox = __toESM(require("./ComboBox"));
35
+ var import_TextBox = __toESM(require("./TextBox"));
36
+ module.exports = __toCommonJS(EditableComponents_exports);
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/plugins/editable/EditableComponents/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export { default as ComboBox } from './ComboBox';\nexport { default as TextBox } from './TextBox';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,sBAAoC;AACpC,qBAAmC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,108 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var EditablePlugin_exports = {};
29
+ __export(EditablePlugin_exports, {
30
+ EditablePlugin: () => EditablePlugin
31
+ });
32
+ var React = __toESM(require("react"));
33
+ var import_ds_utilities = require("@elliemae/ds-utilities");
34
+ var import_createInstancePlugin = require("@elliemae/ds-shared/createDataInstance/createInstancePlugin");
35
+ var import_decorateEditable = require("./decorateEditable");
36
+ const registerStateHook = (grid) => {
37
+ const { rowKey = "id", editingRows: editingRowsProp, onColumnRowEdited, onColumnRowEdit } = grid.props;
38
+ const [editingRows, setEditingRows] = (0, import_ds_utilities.useDerivedStateFromProps)(editingRowsProp || {});
39
+ const activateEdit = (editParams) => {
40
+ const { shouldRefocus } = grid.getInstance();
41
+ const { rowData, columnIndex } = editParams;
42
+ shouldRefocus.current = { forced: true, value: false };
43
+ setEditingRows((prevEditingRows) => {
44
+ onColumnRowEdit(editParams);
45
+ return (0, import_ds_utilities.toggleInObject)(prevEditingRows, rowData[rowKey], columnIndex);
46
+ });
47
+ };
48
+ const editValue = ({ value, rowData, property, rowIndex }) => {
49
+ setEditingRows({});
50
+ onColumnRowEdited({
51
+ value,
52
+ rowData,
53
+ property,
54
+ rowIndex
55
+ });
56
+ };
57
+ return {
58
+ state: { editingRows },
59
+ actions: {
60
+ activateEdit,
61
+ editValue
62
+ }
63
+ };
64
+ };
65
+ const decorateColumn = (column, grid) => {
66
+ const {
67
+ props: { isColumnEditable = (col) => col.editable, customHandlers }
68
+ } = grid;
69
+ const editableConfig = (0, import_decorateEditable.makeEditableConfig)(grid);
70
+ return isColumnEditable(column) ? (0, import_decorateEditable.addEditableToCell)({
71
+ column,
72
+ config: editableConfig,
73
+ handlers: customHandlers
74
+ }, grid) : column;
75
+ };
76
+ const EditablePlugin = (0, import_createInstancePlugin.createInstancePlugin)("editable", {
77
+ registerStateHook,
78
+ decorateColumn,
79
+ registerHotKeys(grid) {
80
+ return {
81
+ key: "enter",
82
+ handler: ({ rowIndex, cellIndex }) => {
83
+ const {
84
+ composedRows,
85
+ decoratedColumns,
86
+ actions: { activateEdit },
87
+ props: { isColumnEditable }
88
+ } = grid.getInstance();
89
+ if (!isColumnEditable(decoratedColumns[cellIndex]))
90
+ return;
91
+ const rows = composedRows.rows || composedRows;
92
+ const row = rows[rowIndex];
93
+ if (!row)
94
+ return;
95
+ activateEdit({
96
+ rowData: row,
97
+ columnIndex: cellIndex
98
+ });
99
+ },
100
+ options: {
101
+ keydown: false,
102
+ keyup: true
103
+ }
104
+ };
105
+ }
106
+ });
107
+ module.exports = __toCommonJS(EditablePlugin_exports);
108
+ //# sourceMappingURL=EditablePlugin.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/plugins/editable/EditablePlugin.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { useDerivedStateFromProps, toggleInObject } from '@elliemae/ds-utilities';\nimport { createInstancePlugin } from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';\nimport { addEditableToCell, makeEditableConfig } from './decorateEditable';\n\nconst registerStateHook = (grid) => {\n const { rowKey = 'id', editingRows: editingRowsProp, onColumnRowEdited, onColumnRowEdit } = grid.props;\n const [editingRows, setEditingRows] = useDerivedStateFromProps(editingRowsProp || {});\n\n const activateEdit = (editParams) => {\n const { shouldRefocus } = grid.getInstance();\n const { rowData, columnIndex } = editParams;\n shouldRefocus.current = { forced: true, value: false };\n setEditingRows((prevEditingRows) => {\n onColumnRowEdit(editParams);\n return toggleInObject(prevEditingRows, rowData[rowKey], columnIndex);\n });\n };\n\n const editValue = ({ value, rowData, property, rowIndex }) => {\n setEditingRows({});\n onColumnRowEdited({\n value,\n rowData,\n property,\n rowIndex,\n });\n };\n\n return {\n state: { editingRows },\n actions: {\n activateEdit,\n editValue,\n },\n };\n};\n\nconst decorateColumn = (column, grid) => {\n const {\n props: { isColumnEditable = (col) => col.editable, customHandlers },\n } = grid;\n\n const editableConfig = makeEditableConfig(grid);\n\n return isColumnEditable(column)\n ? addEditableToCell(\n {\n column,\n config: editableConfig,\n handlers: customHandlers,\n },\n grid,\n )\n : column;\n};\n\nexport const EditablePlugin = createInstancePlugin('editable', {\n registerStateHook,\n decorateColumn,\n registerHotKeys(grid) {\n return {\n key: 'enter',\n handler: ({ rowIndex, cellIndex }) => {\n const {\n composedRows,\n decoratedColumns,\n actions: { activateEdit },\n props: { isColumnEditable },\n } = grid.getInstance();\n\n if (!isColumnEditable(decoratedColumns[cellIndex])) return;\n\n const rows = composedRows.rows || composedRows;\n const row = rows[rowIndex];\n if (!row) return;\n\n activateEdit({\n rowData: row,\n columnIndex: cellIndex,\n });\n },\n options: {\n keydown: false,\n keyup: true,\n },\n };\n },\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAAyD;AACzD,kCAAqC;AACrC,8BAAsD;AAEtD,MAAM,oBAAoB,CAAC,SAAS;AAClC,QAAM,EAAE,SAAS,MAAM,aAAa,iBAAiB,mBAAmB,oBAAoB,KAAK;AACjG,QAAM,CAAC,aAAa,kBAAkB,kDAAyB,mBAAmB;AAElF,QAAM,eAAe,CAAC,eAAe;AACnC,UAAM,EAAE,kBAAkB,KAAK;AAC/B,UAAM,EAAE,SAAS,gBAAgB;AACjC,kBAAc,UAAU,EAAE,QAAQ,MAAM,OAAO;AAC/C,mBAAe,CAAC,oBAAoB;AAClC,sBAAgB;AAChB,aAAO,wCAAe,iBAAiB,QAAQ,SAAS;AAAA;AAAA;AAI5D,QAAM,YAAY,CAAC,EAAE,OAAO,SAAS,UAAU,eAAe;AAC5D,mBAAe;AACf,sBAAkB;AAAA,MAChB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA;AAIJ,SAAO;AAAA,IACL,OAAO,EAAE;AAAA,IACT,SAAS;AAAA,MACP;AAAA,MACA;AAAA;AAAA;AAAA;AAKN,MAAM,iBAAiB,CAAC,QAAQ,SAAS;AACvC,QAAM;AAAA,IACJ,OAAO,EAAE,mBAAmB,CAAC,QAAQ,IAAI,UAAU;AAAA,MACjD;AAEJ,QAAM,iBAAiB,gDAAmB;AAE1C,SAAO,iBAAiB,UACpB,+CACE;AAAA,IACE;AAAA,IACA,QAAQ;AAAA,IACR,UAAU;AAAA,KAEZ,QAEF;AAAA;AAGC,MAAM,iBAAiB,sDAAqB,YAAY;AAAA,EAC7D;AAAA,EACA;AAAA,EACA,gBAAgB,MAAM;AACpB,WAAO;AAAA,MACL,KAAK;AAAA,MACL,SAAS,CAAC,EAAE,UAAU,gBAAgB;AACpC,cAAM;AAAA,UACJ;AAAA,UACA;AAAA,UACA,SAAS,EAAE;AAAA,UACX,OAAO,EAAE;AAAA,YACP,KAAK;AAET,YAAI,CAAC,iBAAiB,iBAAiB;AAAa;AAEpD,cAAM,OAAO,aAAa,QAAQ;AAClC,cAAM,MAAM,KAAK;AACjB,YAAI,CAAC;AAAK;AAEV,qBAAa;AAAA,UACX,SAAS;AAAA,UACT,aAAa;AAAA;AAAA;AAAA,MAGjB,SAAS;AAAA,QACP,SAAS;AAAA,QACT,OAAO;AAAA;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,111 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
+ var __spreadValues = (a, b) => {
11
+ for (var prop in b || (b = {}))
12
+ if (__hasOwnProp.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ if (__getOwnPropSymbols)
15
+ for (var prop of __getOwnPropSymbols(b)) {
16
+ if (__propIsEnum.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
18
+ }
19
+ return a;
20
+ };
21
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
22
+ var __objRest = (source, exclude) => {
23
+ var target = {};
24
+ for (var prop in source)
25
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
26
+ target[prop] = source[prop];
27
+ if (source != null && __getOwnPropSymbols)
28
+ for (var prop of __getOwnPropSymbols(source)) {
29
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
30
+ target[prop] = source[prop];
31
+ }
32
+ return target;
33
+ };
34
+ var __export = (target, all) => {
35
+ for (var name in all)
36
+ __defProp(target, name, { get: all[name], enumerable: true });
37
+ };
38
+ var __reExport = (target, module2, copyDefault, desc) => {
39
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
40
+ for (let key of __getOwnPropNames(module2))
41
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
42
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
43
+ }
44
+ return target;
45
+ };
46
+ var __toESM = (module2, isNodeMode) => {
47
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
48
+ };
49
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
50
+ return (module2, temp) => {
51
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
52
+ };
53
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
54
+ var decorateEditable_exports = {};
55
+ __export(decorateEditable_exports, {
56
+ addEditableToCell: () => addEditableToCell,
57
+ makeEditableConfig: () => makeEditableConfig
58
+ });
59
+ var React = __toESM(require("react"));
60
+ var import_react = __toESM(require("react"));
61
+ var edit = __toESM(require("react-edit"));
62
+ var import_ds_icons = require("@elliemae/ds-icons");
63
+ var import_ds_utilities = require("@elliemae/ds-utilities");
64
+ var import_initColumnDefinition = require("@elliemae/ds-shared/useDataGrid/initColumnDefinition");
65
+ var import_getEditorComponent = require("./getEditorComponent");
66
+ const makeEditableConfig = (grid) => edit.edit({
67
+ isEditing: (_a) => {
68
+ var _b = _a, { columnIndex, rowData, column = {} } = _b, rest = __objRest(_b, ["columnIndex", "rowData", "column"]);
69
+ const {
70
+ state: { editingRows },
71
+ props: { rowKey }
72
+ } = grid.getInstance();
73
+ let isCustomEditing;
74
+ if (typeof column.isEditing === "function") {
75
+ isCustomEditing = column.isEditing(__spreadValues({
76
+ columnIndex,
77
+ rowData,
78
+ column
79
+ }, rest));
80
+ }
81
+ return editingRows[rowData[rowKey]] === columnIndex || column.alwaysEditing || isCustomEditing;
82
+ },
83
+ onActivate: () => null,
84
+ onValue: (...args) => grid.getInstance().actions.editValue(...args)
85
+ });
86
+ const addEditableToCell = ({ column, config, handlers }, grid) => {
87
+ column.cell.transforms.push(config((0, import_getEditorComponent.getEditorComponent)(column.customEditor, handlers)));
88
+ column.cell.props.className = (0, import_ds_utilities.cx)(column.cell.props.className, `editable${column.customEditor ? " customEditor" : ""}`);
89
+ return (0, import_initColumnDefinition.appendCellFormatter)([
90
+ (value, extraParams) => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", {
91
+ onClick: (e) => {
92
+ e.stopPropagation();
93
+ grid.getInstance().actions.activateEdit(extraParams);
94
+ },
95
+ onKeyUp: (e) => {
96
+ e.stopPropagation();
97
+ if (e.keyCode === 33) {
98
+ grid.getInstance().actions.activateEdit(extraParams);
99
+ }
100
+ },
101
+ role: "gridcell",
102
+ tabIndex: 0
103
+ }, value, /* @__PURE__ */ import_react.default.createElement(import_ds_icons.EditPencil, {
104
+ className: "edit-pencil"
105
+ }), /* @__PURE__ */ import_react.default.createElement("span", {
106
+ className: "edit-separator"
107
+ }, " ")))
108
+ ], column);
109
+ };
110
+ module.exports = __toCommonJS(decorateEditable_exports);
111
+ //# sourceMappingURL=decorateEditable.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/plugins/editable/decorateEditable.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport * as edit from 'react-edit';\nimport { EditPencil } from '@elliemae/ds-icons';\nimport { cx } from '@elliemae/ds-utilities';\nimport { appendCellFormatter } from '@elliemae/ds-shared/useDataGrid/initColumnDefinition';\nimport { getEditorComponent } from './getEditorComponent';\n\nconst makeEditableConfig = (grid) =>\n edit.edit({\n isEditing: ({ columnIndex, rowData, column = {}, ...rest }) => {\n const {\n state: { editingRows },\n props: { rowKey },\n } = grid.getInstance();\n let isCustomEditing;\n\n if (typeof column.isEditing === 'function') {\n isCustomEditing = column.isEditing({\n columnIndex,\n rowData,\n column,\n ...rest,\n });\n }\n return editingRows[rowData[rowKey]] === columnIndex || column.alwaysEditing || isCustomEditing;\n },\n onActivate: () => null,\n onValue: (...args) => grid.getInstance().actions.editValue(...args),\n });\nconst addEditableToCell = ({ column, config, handlers }, grid) => {\n column.cell.transforms.push(config(getEditorComponent(column.customEditor, handlers)));\n column.cell.props.className = cx(\n column.cell.props.className,\n `editable${column.customEditor ? ' customEditor' : ''}`,\n );\n return appendCellFormatter(\n [\n (value, extraParams) => (\n <>\n <div\n onClick={(e) => {\n e.stopPropagation();\n grid.getInstance().actions.activateEdit(extraParams);\n }}\n onKeyUp={(e) => {\n e.stopPropagation();\n if (e.keyCode === 33) {\n grid.getInstance().actions.activateEdit(extraParams);\n }\n }}\n role=\"gridcell\"\n tabIndex={0}\n >\n {value}\n <EditPencil className=\"edit-pencil\" />\n <span className=\"edit-separator\"> </span>\n </div>\n </>\n ),\n ],\n column,\n );\n};\n\nexport { makeEditableConfig, addEditableToCell };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,WAAsB;AACtB,sBAA2B;AAC3B,0BAAmB;AACnB,kCAAoC;AACpC,gCAAmC;AAEnC,MAAM,qBAAqB,CAAC,SAC1B,KAAK,KAAK;AAAA,EACR,WAAW,CAAC,OAAmD;AAAnD,iBAAE,eAAa,SAAS,SAAS,OAAjC,IAAwC,iBAAxC,IAAwC,CAAtC,eAAa,WAAS;AAClC,UAAM;AAAA,MACJ,OAAO,EAAE;AAAA,MACT,OAAO,EAAE;AAAA,QACP,KAAK;AACT,QAAI;AAEJ,QAAI,OAAO,OAAO,cAAc,YAAY;AAC1C,wBAAkB,OAAO,UAAU;AAAA,QACjC;AAAA,QACA;AAAA,QACA;AAAA,SACG;AAAA;AAGP,WAAO,YAAY,QAAQ,aAAa,eAAe,OAAO,iBAAiB;AAAA;AAAA,EAEjF,YAAY,MAAM;AAAA,EAClB,SAAS,IAAI,SAAS,KAAK,cAAc,QAAQ,UAAU,GAAG;AAAA;AAElE,MAAM,oBAAoB,CAAC,EAAE,QAAQ,QAAQ,YAAY,SAAS;AAChE,SAAO,KAAK,WAAW,KAAK,OAAO,kDAAmB,OAAO,cAAc;AAC3E,SAAO,KAAK,MAAM,YAAY,4BAC5B,OAAO,KAAK,MAAM,WAClB,WAAW,OAAO,eAAe,kBAAkB;AAErD,SAAO,qDACL;AAAA,IACE,CAAC,OAAO,gBACN,wFACE,mDAAC,OAAD;AAAA,MACE,SAAS,CAAC,MAAM;AACd,UAAE;AACF,aAAK,cAAc,QAAQ,aAAa;AAAA;AAAA,MAE1C,SAAS,CAAC,MAAM;AACd,UAAE;AACF,YAAI,EAAE,YAAY,IAAI;AACpB,eAAK,cAAc,QAAQ,aAAa;AAAA;AAAA;AAAA,MAG5C,MAAK;AAAA,MACL,UAAU;AAAA,OAET,OACD,mDAAC,4BAAD;AAAA,MAAY,WAAU;AAAA,QACtB,mDAAC,QAAD;AAAA,MAAM,WAAU;AAAA,OAAiB;AAAA,KAKzC;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,99 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
+ var __spreadValues = (a, b) => {
11
+ for (var prop in b || (b = {}))
12
+ if (__hasOwnProp.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ if (__getOwnPropSymbols)
15
+ for (var prop of __getOwnPropSymbols(b)) {
16
+ if (__propIsEnum.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
18
+ }
19
+ return a;
20
+ };
21
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
22
+ var __objRest = (source, exclude) => {
23
+ var target = {};
24
+ for (var prop in source)
25
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
26
+ target[prop] = source[prop];
27
+ if (source != null && __getOwnPropSymbols)
28
+ for (var prop of __getOwnPropSymbols(source)) {
29
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
30
+ target[prop] = source[prop];
31
+ }
32
+ return target;
33
+ };
34
+ var __export = (target, all) => {
35
+ for (var name in all)
36
+ __defProp(target, name, { get: all[name], enumerable: true });
37
+ };
38
+ var __reExport = (target, module2, copyDefault, desc) => {
39
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
40
+ for (let key of __getOwnPropNames(module2))
41
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
42
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
43
+ }
44
+ return target;
45
+ };
46
+ var __toESM = (module2, isNodeMode) => {
47
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
48
+ };
49
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
50
+ return (module2, temp) => {
51
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
52
+ };
53
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
54
+ var getEditorComponent_exports = {};
55
+ __export(getEditorComponent_exports, {
56
+ default: () => getEditorComponent_default,
57
+ getEditorComponent: () => getEditorComponent
58
+ });
59
+ var React = __toESM(require("react"));
60
+ var import_react = __toESM(require("react"));
61
+ var import_EditableComponents = require("./EditableComponents");
62
+ const components = {
63
+ DSComboBox: import_EditableComponents.ComboBox,
64
+ DSTextBox: import_EditableComponents.TextBox
65
+ };
66
+ const getEditorComponent = (editorComponent = {}, handlers) => ({
67
+ value,
68
+ onValue,
69
+ extraParameters
70
+ }) => {
71
+ if (typeof editorComponent === "function") {
72
+ return editorComponent(__spreadValues({
73
+ value,
74
+ onValue,
75
+ customHandlers: handlers
76
+ }, extraParameters));
77
+ }
78
+ const _a = editorComponent, { type = "DSTextBox" } = _a, restEditorProps = __objRest(_a, ["type"]);
79
+ const Component = components[type];
80
+ if (type === "DSComboBox") {
81
+ const maxOptions = restEditorProps?.options?.length || 100;
82
+ return /* @__PURE__ */ import_react.default.createElement("div", {
83
+ style: { zIndex: 0 }
84
+ }, /* @__PURE__ */ import_react.default.createElement(Component, __spreadValues({
85
+ autoFocus: true,
86
+ onValue,
87
+ value,
88
+ maxOptions
89
+ }, restEditorProps)));
90
+ }
91
+ return /* @__PURE__ */ import_react.default.createElement(Component, __spreadValues({
92
+ autoFocus: true,
93
+ onValue,
94
+ value
95
+ }, restEditorProps));
96
+ };
97
+ var getEditorComponent_default = getEditorComponent;
98
+ module.exports = __toCommonJS(getEditorComponent_exports);
99
+ //# sourceMappingURL=getEditorComponent.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/plugins/editable/getEditorComponent.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable react/display-name */\nimport React from 'react';\nimport { ComboBox, TextBox } from './EditableComponents';\n\nconst components = {\n DSComboBox: ComboBox,\n DSTextBox: TextBox,\n};\n\nconst getEditorComponent = (editorComponent = {}, handlers) => ({\n value,\n onValue,\n extraParameters,\n}) => {\n if (typeof editorComponent === 'function') {\n return editorComponent({\n value,\n onValue,\n customHandlers: handlers,\n ...extraParameters,\n });\n }\n\n const { type = 'DSTextBox', ...restEditorProps } = editorComponent;\n const Component = components[type];\n\n if (type === 'DSComboBox') {\n // TODO: remove this whole condition when combobox v3 is out and fully working without \"maxOptions\" parameter\n const maxOptions = restEditorProps?.options?.length || 100;\n return (\n <div style={{ zIndex: 0 }}>\n <Component\n autoFocus\n onValue={onValue}\n value={value}\n maxOptions={maxOptions}\n {...restEditorProps}\n />\n </div>\n );\n }\n\n return (\n <Component autoFocus onValue={onValue} value={value} {...restEditorProps} />\n );\n};\n\nexport { getEditorComponent };\nexport default getEditorComponent;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAkB;AAClB,gCAAkC;AAElC,MAAM,aAAa;AAAA,EACjB,YAAY;AAAA,EACZ,WAAW;AAAA;AAGb,MAAM,qBAAqB,CAAC,kBAAkB,IAAI,aAAa,CAAC;AAAA,EAC9D;AAAA,EACA;AAAA,EACA;AAAA,MACI;AACJ,MAAI,OAAO,oBAAoB,YAAY;AACzC,WAAO,gBAAgB;AAAA,MACrB;AAAA,MACA;AAAA,MACA,gBAAgB;AAAA,OACb;AAAA;AAIP,QAAmD,sBAA3C,SAAO,gBAAoC,IAApB,4BAAoB,IAApB,CAAvB;AACR,QAAM,YAAY,WAAW;AAE7B,MAAI,SAAS,cAAc;AAEzB,UAAM,aAAa,iBAAiB,SAAS,UAAU;AACvD,WACE,mDAAC,OAAD;AAAA,MAAK,OAAO,EAAE,QAAQ;AAAA,OACpB,mDAAC,WAAD;AAAA,MACE,WAAS;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,OACI;AAAA;AAMZ,SACE,mDAAC,WAAD;AAAA,IAAW,WAAS;AAAA,IAAC;AAAA,IAAkB;AAAA,KAAkB;AAAA;AAK7D,IAAO,6BAAQ;",
6
+ "names": []
7
+ }