@elliemae/ds-datagrids 3.16.0-next.1 → 3.16.0-next.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (380) hide show
  1. package/dist/cjs/DSDataGrid.js +249 -241
  2. package/dist/cjs/DSDataGrid.js.map +2 -2
  3. package/dist/cjs/DataGridImpl.js +11 -11
  4. package/dist/cjs/DataGridImpl.js.map +1 -1
  5. package/dist/cjs/PaginatedDataGrid.js +9 -9
  6. package/dist/cjs/PaginatedDataGrid.js.map +2 -2
  7. package/dist/cjs/components/BodyList.js +3 -5
  8. package/dist/cjs/components/BodyList.js.map +2 -2
  9. package/dist/cjs/components/ColumnVisibilityMenuOption.js +1 -6
  10. package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +2 -2
  11. package/dist/cjs/components/ColumnsOptionsMenuSection.js +2 -11
  12. package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +2 -2
  13. package/dist/cjs/components/EmptyState.js +5 -6
  14. package/dist/cjs/components/EmptyState.js.map +3 -3
  15. package/dist/cjs/components/List.js +2 -2
  16. package/dist/cjs/components/List.js.map +2 -2
  17. package/dist/cjs/components/ListItem.js +3 -6
  18. package/dist/cjs/components/ListItem.js.map +2 -2
  19. package/dist/cjs/components/NoResults.js +4 -10
  20. package/dist/cjs/components/NoResults.js.map +2 -2
  21. package/dist/cjs/components/RowsLoader.js +1 -1
  22. package/dist/cjs/components/RowsLoader.js.map +1 -1
  23. package/dist/cjs/components/Table.js +5 -5
  24. package/dist/cjs/components/Table.js.map +1 -1
  25. package/dist/cjs/components/TableBody.js +2 -7
  26. package/dist/cjs/components/TableBody.js.map +2 -2
  27. package/dist/cjs/components/TableHeader.js +1 -1
  28. package/dist/cjs/components/TableHeader.js.map +2 -2
  29. package/dist/cjs/components/footer/addOptionalFooterComponents.js +1 -1
  30. package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +1 -1
  31. package/dist/cjs/components/index.js +5 -5
  32. package/dist/cjs/components/index.js.map +1 -1
  33. package/dist/cjs/components/renderers/defaultClassedRenderers.js +16 -36
  34. package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +2 -2
  35. package/dist/cjs/components/renderers/index.js +2 -2
  36. package/dist/cjs/components/renderers/index.js.map +1 -1
  37. package/dist/cjs/components/renderers/renderRowsLoader.js +2 -4
  38. package/dist/cjs/components/renderers/renderRowsLoader.js.map +2 -2
  39. package/dist/cjs/defaultPlugins.js +5 -10
  40. package/dist/cjs/defaultPlugins.js.map +2 -2
  41. package/dist/cjs/index.js +9 -9
  42. package/dist/cjs/index.js.map +1 -1
  43. package/dist/cjs/package.json +7 -0
  44. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +22 -18
  45. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +2 -2
  46. package/dist/cjs/plugins/body-header-scroll-sync/index.js +1 -1
  47. package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +1 -1
  48. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +1 -1
  49. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +1 -1
  50. package/dist/cjs/plugins/column-dnd/index.js +1 -1
  51. package/dist/cjs/plugins/column-dnd/index.js.map +1 -1
  52. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +4 -4
  53. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +1 -1
  54. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +1 -1
  55. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +1 -1
  56. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +1 -1
  57. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +1 -1
  58. package/dist/cjs/plugins/column-sizing/index.js +1 -1
  59. package/dist/cjs/plugins/column-sizing/index.js.map +1 -1
  60. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +7 -26
  61. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +2 -2
  62. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +2 -2
  63. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +1 -1
  64. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +1 -1
  65. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +1 -1
  66. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +1 -1
  67. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +1 -1
  68. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +1 -1
  69. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +1 -1
  70. package/dist/cjs/plugins/custom-cell-renderer/index.js +1 -1
  71. package/dist/cjs/plugins/custom-cell-renderer/index.js.map +1 -1
  72. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +1 -1
  73. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +1 -1
  74. package/dist/cjs/plugins/editable/EditableComponents/index.js +2 -2
  75. package/dist/cjs/plugins/editable/EditableComponents/index.js.map +1 -1
  76. package/dist/cjs/plugins/editable/EditablePlugin.js +1 -1
  77. package/dist/cjs/plugins/editable/EditablePlugin.js.map +1 -1
  78. package/dist/cjs/plugins/editable/decorateEditable.js +1 -1
  79. package/dist/cjs/plugins/editable/decorateEditable.js.map +1 -1
  80. package/dist/cjs/plugins/editable/getEditorComponent.js +3 -16
  81. package/dist/cjs/plugins/editable/getEditorComponent.js.map +2 -2
  82. package/dist/cjs/plugins/editable/index.js +2 -2
  83. package/dist/cjs/plugins/editable/index.js.map +1 -1
  84. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +23 -25
  85. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +2 -2
  86. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +5 -5
  87. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +2 -2
  88. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +6 -6
  89. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +1 -1
  90. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +12 -8
  91. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +2 -2
  92. package/dist/cjs/plugins/expandable-grid/index.js +2 -2
  93. package/dist/cjs/plugins/expandable-grid/index.js.map +1 -1
  94. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +2 -2
  95. package/dist/cjs/plugins/export-data/index.js +1 -1
  96. package/dist/cjs/plugins/export-data/index.js.map +1 -1
  97. package/dist/cjs/plugins/filterable/FilterablePlugin.js +3 -3
  98. package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +2 -2
  99. package/dist/cjs/plugins/filterable/addFilterToColumn.js +1 -1
  100. package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +1 -1
  101. package/dist/cjs/plugins/filterable/components/FilterableHeader.js +1 -1
  102. package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +2 -2
  103. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +45 -47
  104. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +2 -2
  105. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +46 -48
  106. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +2 -2
  107. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +43 -45
  108. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +2 -2
  109. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +3 -3
  110. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +2 -2
  111. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +5 -7
  112. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +2 -2
  113. package/dist/cjs/plugins/filterable/filterableFormatter.js +29 -37
  114. package/dist/cjs/plugins/filterable/filterableFormatter.js.map +2 -2
  115. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +2 -4
  116. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +2 -2
  117. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +2 -2
  118. package/dist/cjs/plugins/filterable/helper.js.map +2 -2
  119. package/dist/cjs/plugins/filterable/index.js +1 -1
  120. package/dist/cjs/plugins/filterable/index.js.map +1 -1
  121. package/dist/cjs/plugins/filterable/useFilterableState.js +3 -7
  122. package/dist/cjs/plugins/filterable/useFilterableState.js.map +2 -2
  123. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +4 -4
  124. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +2 -2
  125. package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +2 -2
  126. package/dist/cjs/plugins/index.js +16 -16
  127. package/dist/cjs/plugins/index.js.map +1 -1
  128. package/dist/cjs/plugins/infinite-scrolling/index.js +1 -1
  129. package/dist/cjs/plugins/infinite-scrolling/index.js.map +1 -1
  130. package/dist/cjs/plugins/pagination/PaginationPlugin.js +4 -4
  131. package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +2 -2
  132. package/dist/cjs/plugins/pagination/components/Pagination.js +5 -24
  133. package/dist/cjs/plugins/pagination/components/Pagination.js.map +2 -2
  134. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +2 -2
  135. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +2 -2
  136. package/dist/cjs/plugins/pagination/helper.js.map +2 -2
  137. package/dist/cjs/plugins/pagination/index.js +1 -1
  138. package/dist/cjs/plugins/pagination/index.js.map +1 -1
  139. package/dist/cjs/plugins/pagination/usePaginationState.js +1 -1
  140. package/dist/cjs/plugins/pagination/usePaginationState.js.map +1 -1
  141. package/dist/cjs/plugins/resizable/ResizablePlugin.js +1 -1
  142. package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +1 -1
  143. package/dist/cjs/plugins/resizable/decorateResizable.js +4 -2
  144. package/dist/cjs/plugins/resizable/decorateResizable.js.map +2 -2
  145. package/dist/cjs/plugins/resizable/index.js +1 -1
  146. package/dist/cjs/plugins/resizable/index.js.map +1 -1
  147. package/dist/cjs/plugins/resizable/useResizeHandle.js +2 -12
  148. package/dist/cjs/plugins/resizable/useResizeHandle.js.map +2 -2
  149. package/dist/cjs/plugins/row-dnd/index.js +1 -1
  150. package/dist/cjs/plugins/row-dnd/index.js.map +1 -1
  151. package/dist/cjs/plugins/selectable/SelectablePlugin.js +3 -3
  152. package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +1 -1
  153. package/dist/cjs/plugins/selectable/addSelectableColumn.js +1 -1
  154. package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +1 -1
  155. package/dist/cjs/plugins/selectable/index.js +1 -1
  156. package/dist/cjs/plugins/selectable/index.js.map +1 -1
  157. package/dist/cjs/plugins/selectable/selectableFormatter.js +1 -1
  158. package/dist/cjs/plugins/selectable/selectableFormatter.js.map +2 -2
  159. package/dist/cjs/plugins/selectable/useSelectableState.js +1 -1
  160. package/dist/cjs/plugins/selectable/useSelectableState.js.map +2 -2
  161. package/dist/cjs/plugins/sortable/SortablePlugin.js +3 -3
  162. package/dist/cjs/plugins/sortable/SortablePlugin.js.map +1 -1
  163. package/dist/cjs/plugins/sortable/index.js +1 -1
  164. package/dist/cjs/plugins/sortable/index.js.map +1 -1
  165. package/dist/cjs/plugins/sortable/sortTree.js.map +2 -2
  166. package/dist/cjs/plugins/sortable/useSortableState.js +2 -4
  167. package/dist/cjs/plugins/sortable/useSortableState.js.map +2 -2
  168. package/dist/cjs/plugins/toolbar/RowRenderer.js +2 -2
  169. package/dist/cjs/plugins/toolbar/RowRenderer.js.map +1 -1
  170. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +1 -1
  171. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +1 -1
  172. package/dist/cjs/plugins/toolbar/index.js +1 -1
  173. package/dist/cjs/plugins/toolbar/index.js.map +1 -1
  174. package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +2 -2
  175. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +2 -2
  176. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +2 -2
  177. package/dist/cjs/plugins/virtualization/VirtualizedBody.js +4 -4
  178. package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +1 -1
  179. package/dist/cjs/plugins/virtualization/index.js +1 -1
  180. package/dist/cjs/plugins/virtualization/index.js.map +1 -1
  181. package/dist/cjs/renders/CellWithAddons.js +1 -1
  182. package/dist/cjs/renders/CellWithAddons.js.map +1 -1
  183. package/dist/cjs/renders/index.js +2 -2
  184. package/dist/cjs/renders/index.js.map +1 -1
  185. package/dist/cjs/rowSizes.js +1 -5
  186. package/dist/cjs/rowSizes.js.map +2 -2
  187. package/dist/cjs/utilities/getPluginsFromProps.js +13 -13
  188. package/dist/cjs/utilities/getPluginsFromProps.js.map +1 -1
  189. package/dist/cjs/utilities/normalizeData.js.map +2 -2
  190. package/dist/esm/DSDataGrid.js +125 -117
  191. package/dist/esm/DSDataGrid.js.map +2 -2
  192. package/dist/esm/DataGridImpl.js +11 -11
  193. package/dist/esm/DataGridImpl.js.map +1 -1
  194. package/dist/esm/PaginatedDataGrid.js +9 -9
  195. package/dist/esm/PaginatedDataGrid.js.map +2 -2
  196. package/dist/esm/components/BodyList.js +3 -5
  197. package/dist/esm/components/BodyList.js.map +2 -2
  198. package/dist/esm/components/ColumnVisibilityMenuOption.js +1 -6
  199. package/dist/esm/components/ColumnVisibilityMenuOption.js.map +2 -2
  200. package/dist/esm/components/ColumnsOptionsMenuSection.js +2 -11
  201. package/dist/esm/components/ColumnsOptionsMenuSection.js.map +2 -2
  202. package/dist/esm/components/EmptyState.js +1 -2
  203. package/dist/esm/components/EmptyState.js.map +2 -2
  204. package/dist/esm/components/List.js +2 -2
  205. package/dist/esm/components/List.js.map +2 -2
  206. package/dist/esm/components/ListItem.js +3 -6
  207. package/dist/esm/components/ListItem.js.map +2 -2
  208. package/dist/esm/components/NoResults.js +4 -10
  209. package/dist/esm/components/NoResults.js.map +2 -2
  210. package/dist/esm/components/RowsLoader.js +1 -1
  211. package/dist/esm/components/RowsLoader.js.map +1 -1
  212. package/dist/esm/components/Table.js +5 -5
  213. package/dist/esm/components/Table.js.map +1 -1
  214. package/dist/esm/components/TableBody.js +2 -7
  215. package/dist/esm/components/TableBody.js.map +2 -2
  216. package/dist/esm/components/TableHeader.js +1 -1
  217. package/dist/esm/components/TableHeader.js.map +2 -2
  218. package/dist/esm/components/footer/addOptionalFooterComponents.js +1 -1
  219. package/dist/esm/components/footer/addOptionalFooterComponents.js.map +1 -1
  220. package/dist/esm/components/index.js +5 -5
  221. package/dist/esm/components/index.js.map +1 -1
  222. package/dist/esm/components/renderers/defaultClassedRenderers.js +16 -40
  223. package/dist/esm/components/renderers/defaultClassedRenderers.js.map +2 -2
  224. package/dist/esm/components/renderers/index.js +2 -2
  225. package/dist/esm/components/renderers/index.js.map +1 -1
  226. package/dist/esm/components/renderers/renderRowsLoader.js +2 -4
  227. package/dist/esm/components/renderers/renderRowsLoader.js.map +2 -2
  228. package/dist/esm/defaultPlugins.js +5 -10
  229. package/dist/esm/defaultPlugins.js.map +2 -2
  230. package/dist/esm/index.js +9 -9
  231. package/dist/esm/index.js.map +1 -1
  232. package/dist/esm/package.json +7 -0
  233. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +22 -18
  234. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +2 -2
  235. package/dist/esm/plugins/body-header-scroll-sync/index.js +1 -1
  236. package/dist/esm/plugins/body-header-scroll-sync/index.js.map +1 -1
  237. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +1 -1
  238. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +1 -1
  239. package/dist/esm/plugins/column-dnd/index.js +1 -1
  240. package/dist/esm/plugins/column-dnd/index.js.map +1 -1
  241. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +4 -4
  242. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +1 -1
  243. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +1 -1
  244. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +1 -1
  245. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +1 -1
  246. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +1 -1
  247. package/dist/esm/plugins/column-sizing/index.js +1 -1
  248. package/dist/esm/plugins/column-sizing/index.js.map +1 -1
  249. package/dist/esm/plugins/column-sizing/useColumnSizeService.js +7 -26
  250. package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +2 -2
  251. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +2 -2
  252. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +1 -1
  253. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +1 -1
  254. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +1 -1
  255. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +1 -1
  256. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +1 -1
  257. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +1 -1
  258. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +1 -1
  259. package/dist/esm/plugins/custom-cell-renderer/index.js +1 -1
  260. package/dist/esm/plugins/custom-cell-renderer/index.js.map +1 -1
  261. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +1 -1
  262. package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +1 -1
  263. package/dist/esm/plugins/editable/EditableComponents/index.js +2 -2
  264. package/dist/esm/plugins/editable/EditableComponents/index.js.map +1 -1
  265. package/dist/esm/plugins/editable/EditablePlugin.js +1 -1
  266. package/dist/esm/plugins/editable/EditablePlugin.js.map +1 -1
  267. package/dist/esm/plugins/editable/decorateEditable.js +1 -1
  268. package/dist/esm/plugins/editable/decorateEditable.js.map +1 -1
  269. package/dist/esm/plugins/editable/getEditorComponent.js +3 -16
  270. package/dist/esm/plugins/editable/getEditorComponent.js.map +2 -2
  271. package/dist/esm/plugins/editable/index.js +2 -2
  272. package/dist/esm/plugins/editable/index.js.map +1 -1
  273. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +23 -25
  274. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +2 -2
  275. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +5 -5
  276. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +2 -2
  277. package/dist/esm/plugins/expandable-grid/ExpandedRow.js +6 -6
  278. package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +1 -1
  279. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +12 -8
  280. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +2 -2
  281. package/dist/esm/plugins/expandable-grid/index.js +2 -2
  282. package/dist/esm/plugins/expandable-grid/index.js.map +1 -1
  283. package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +2 -2
  284. package/dist/esm/plugins/export-data/index.js +1 -1
  285. package/dist/esm/plugins/export-data/index.js.map +1 -1
  286. package/dist/esm/plugins/filterable/FilterablePlugin.js +3 -3
  287. package/dist/esm/plugins/filterable/FilterablePlugin.js.map +2 -2
  288. package/dist/esm/plugins/filterable/addFilterToColumn.js +1 -1
  289. package/dist/esm/plugins/filterable/addFilterToColumn.js.map +1 -1
  290. package/dist/esm/plugins/filterable/components/FilterableHeader.js +1 -1
  291. package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +2 -2
  292. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +45 -47
  293. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +2 -2
  294. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +46 -48
  295. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +2 -2
  296. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +43 -45
  297. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +2 -2
  298. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +3 -3
  299. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +2 -2
  300. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +5 -7
  301. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +2 -2
  302. package/dist/esm/plugins/filterable/filterableFormatter.js +29 -37
  303. package/dist/esm/plugins/filterable/filterableFormatter.js.map +2 -2
  304. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +2 -4
  305. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +2 -2
  306. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +2 -2
  307. package/dist/esm/plugins/filterable/helper.js +1 -7
  308. package/dist/esm/plugins/filterable/helper.js.map +2 -2
  309. package/dist/esm/plugins/filterable/index.js +1 -1
  310. package/dist/esm/plugins/filterable/index.js.map +1 -1
  311. package/dist/esm/plugins/filterable/useFilterableState.js +3 -11
  312. package/dist/esm/plugins/filterable/useFilterableState.js.map +2 -2
  313. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +4 -4
  314. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +2 -2
  315. package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +2 -2
  316. package/dist/esm/plugins/index.js +16 -16
  317. package/dist/esm/plugins/index.js.map +1 -1
  318. package/dist/esm/plugins/infinite-scrolling/index.js +1 -1
  319. package/dist/esm/plugins/infinite-scrolling/index.js.map +1 -1
  320. package/dist/esm/plugins/pagination/PaginationPlugin.js +4 -4
  321. package/dist/esm/plugins/pagination/PaginationPlugin.js.map +2 -2
  322. package/dist/esm/plugins/pagination/components/Pagination.js +5 -24
  323. package/dist/esm/plugins/pagination/components/Pagination.js.map +2 -2
  324. package/dist/esm/plugins/pagination/components/PerPageDropdown.js +2 -2
  325. package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +2 -2
  326. package/dist/esm/plugins/pagination/helper.js.map +2 -2
  327. package/dist/esm/plugins/pagination/index.js +1 -1
  328. package/dist/esm/plugins/pagination/index.js.map +1 -1
  329. package/dist/esm/plugins/pagination/usePaginationState.js +1 -1
  330. package/dist/esm/plugins/pagination/usePaginationState.js.map +1 -1
  331. package/dist/esm/plugins/resizable/ResizablePlugin.js +1 -1
  332. package/dist/esm/plugins/resizable/ResizablePlugin.js.map +1 -1
  333. package/dist/esm/plugins/resizable/decorateResizable.js +4 -2
  334. package/dist/esm/plugins/resizable/decorateResizable.js.map +2 -2
  335. package/dist/esm/plugins/resizable/index.js +1 -1
  336. package/dist/esm/plugins/resizable/index.js.map +1 -1
  337. package/dist/esm/plugins/resizable/useResizeHandle.js +2 -12
  338. package/dist/esm/plugins/resizable/useResizeHandle.js.map +2 -2
  339. package/dist/esm/plugins/row-dnd/index.js +1 -1
  340. package/dist/esm/plugins/row-dnd/index.js.map +1 -1
  341. package/dist/esm/plugins/selectable/SelectablePlugin.js +3 -3
  342. package/dist/esm/plugins/selectable/SelectablePlugin.js.map +1 -1
  343. package/dist/esm/plugins/selectable/addSelectableColumn.js +1 -1
  344. package/dist/esm/plugins/selectable/addSelectableColumn.js.map +1 -1
  345. package/dist/esm/plugins/selectable/index.js +1 -1
  346. package/dist/esm/plugins/selectable/index.js.map +1 -1
  347. package/dist/esm/plugins/selectable/selectableFormatter.js +1 -1
  348. package/dist/esm/plugins/selectable/selectableFormatter.js.map +2 -2
  349. package/dist/esm/plugins/selectable/useSelectableState.js +1 -5
  350. package/dist/esm/plugins/selectable/useSelectableState.js.map +2 -2
  351. package/dist/esm/plugins/sortable/SortablePlugin.js +3 -3
  352. package/dist/esm/plugins/sortable/SortablePlugin.js.map +1 -1
  353. package/dist/esm/plugins/sortable/index.js +1 -1
  354. package/dist/esm/plugins/sortable/index.js.map +1 -1
  355. package/dist/esm/plugins/sortable/sortTree.js.map +2 -2
  356. package/dist/esm/plugins/sortable/useSortableState.js +2 -4
  357. package/dist/esm/plugins/sortable/useSortableState.js.map +2 -2
  358. package/dist/esm/plugins/toolbar/RowRenderer.js +2 -2
  359. package/dist/esm/plugins/toolbar/RowRenderer.js.map +1 -1
  360. package/dist/esm/plugins/toolbar/ToolbarPlugin.js +1 -1
  361. package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +1 -1
  362. package/dist/esm/plugins/toolbar/index.js +1 -1
  363. package/dist/esm/plugins/toolbar/index.js.map +1 -1
  364. package/dist/esm/plugins/virtualization/AutoHeightList.js.map +2 -2
  365. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +2 -2
  366. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +2 -2
  367. package/dist/esm/plugins/virtualization/VirtualizedBody.js +4 -4
  368. package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +1 -1
  369. package/dist/esm/plugins/virtualization/index.js +1 -1
  370. package/dist/esm/plugins/virtualization/index.js.map +1 -1
  371. package/dist/esm/renders/CellWithAddons.js +1 -1
  372. package/dist/esm/renders/CellWithAddons.js.map +1 -1
  373. package/dist/esm/renders/index.js +2 -2
  374. package/dist/esm/renders/index.js.map +1 -1
  375. package/dist/esm/rowSizes.js +1 -5
  376. package/dist/esm/rowSizes.js.map +2 -2
  377. package/dist/esm/utilities/getPluginsFromProps.js +13 -13
  378. package/dist/esm/utilities/getPluginsFromProps.js.map +1 -1
  379. package/dist/esm/utilities/normalizeData.js.map +2 -2
  380. package/package.json +22 -21
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/DSDataGrid.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable max-lines */\nimport React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport { DataGridImpl } from './DataGridImpl';\nimport { RowSizesOptions, RowSizesOptionsArr } from './rowSizes';\n\nconst DSDataGrids = ({\n containerProps = {},\n instanceRef,\n className = '',\n\n // data\n columns = [],\n rows = [],\n rowKey = 'id',\n\n // features\n infiniteScrolling = false,\n editable = false,\n sortable = false,\n sortEmptyLast = false,\n paginated = false,\n dragAndDropRows = false,\n selectable = false,\n resizeableColumns = false,\n searchFilters = false,\n dragAndDropColumns = false,\n useTreeData = false,\n autoScrollToId,\n\n // virtualization props\n overscanCount = 10,\n\n // feature state\n selectAll = false, // todo: change to isAllSelected\n selectedRows = [],\n filters = undefined,\n onAddFilter = () => null,\n onRemoveFilter = () => null,\n onFiltersChange = () => null,\n showFilterBar = true,\n multiSelectFilterOptions = [\n { id: 'true', label: 'Selected' },\n { id: 'false', label: 'Not selected' },\n ],\n multiSelectFilterLabels = undefined,\n multiSelectFilterLabel = 'Selection',\n\n aggregations = {},\n groupingColumn = undefined,\n\n sortingColumns = {},\n\n // pagination\n minPerPage = 0,\n maxPerPage = 50,\n onPerPageChange = () => null,\n onPageChange = () => null,\n paginationStep = 2,\n pagination = {\n page: 1,\n perPage: 10,\n },\n // visual\n showHeader = true,\n fixedHeader = true,\n wrapText = false,\n height = undefined,\n minColumnWidth = 100,\n showRowsLoader = false,\n visibleColumns = undefined, // this enforces visibility of columns\n showSelectHighlight = false,\n showSelectColumn = true,\n selectColumnSortable = true,\n selectColumnFilterable = false,\n selectionColumnDefinition = {},\n filterBarOptions = undefined,\n // searchGrid = false,\n renderToolbar = undefined,\n toolbarDelayClose = 400,\n renderFilterToolbar = undefined,\n multiSelectComponent = undefined,\n // todo: deprecate this\n noResultsRender,\n noResultsPlaceholder,\n fluidHeight = false,\n\n customHandlers = {},\n\n // grouping feature\n groupedBy = undefined,\n\n // callbacks\n onDefaultFiltersLoad = () => null,\n onReorder = () => null,\n onMoveRowEnd = () => null,\n onMoveRowStart = () => null,\n onMoveColumnOver = () => null,\n onMoveColumnStart = () => null,\n onMoveColumnEnd = () => null,\n onColumnResize = () => null,\n onExpandChange = () => null,\n onToggleExpand = () => null,\n onExpandRow = () => null,\n onFilter = () => null,\n onSort = () => null,\n onColumnRowEdited = () => null,\n onColumnRowEdit = () => null,\n onSelectRow = () => null,\n onSelectAll = () => null,\n onInfiniteScrolling = () => null,\n onFilterMenuClose = () => null,\n onFilterMenuOpen = () => null,\n getData = undefined, // todo: change to onGetMoreData\n serverSideData = false,\n isDataSorted = false,\n isDataFiltered = false,\n virtualized = true,\n numRowsVisible = undefined,\n isColumnEditable = (column) => column.editable,\n\n // grouped props\n groupedRows = false,\n groupedRowsRenderHeader = undefined,\n // expandable props\n renderExpandedDetails = () => null,\n detailColumns,\n expandable = false,\n getChildrenRows = (row) => row.children,\n expandableSubrowsVisible = 7,\n renderRowDetails = () => null,\n getExpandedRowSize = undefined,\n getExpandedRowMinSize,\n rowSize = RowSizesOptions.normal,\n subRowSize = RowSizesOptions.normal,\n bindColumnsSizeTo = undefined,\n bindRowSizeTo = undefined,\n onToggleShowAllRows,\n expandedRows,\n autoHeight = false,\n noColumnsPlaceholder,\n plugins = [],\n normalizeDataKeys = false,\n}) => (\n <TooltipTextProvider>\n <DataGridImpl\n aggregations={aggregations}\n autoHeight={autoHeight && !fluidHeight}\n autoScrollToId={autoScrollToId}\n bindColumnsSizeTo={bindColumnsSizeTo}\n bindRowSizeTo={bindRowSizeTo}\n className={className}\n columns={columns}\n containerProps={containerProps}\n customHandlers={customHandlers}\n detailColumns={detailColumns}\n dragAndDropColumns={dragAndDropColumns}\n dragAndDropRows={dragAndDropRows}\n editable={editable}\n expandable={expandable}\n expandableSubrowsVisible={expandableSubrowsVisible}\n expandedRows={expandedRows}\n filterBarOptions={filterBarOptions}\n filters={filters}\n fixedHeader={fixedHeader}\n fluidHeight={fluidHeight}\n getChildrenRows={getChildrenRows}\n getData={getData}\n getExpandedRowMinSize={getExpandedRowMinSize}\n getExpandedRowSize={getExpandedRowSize}\n groupedBy={groupedBy}\n groupedRows={groupedRows}\n groupedRowsRenderHeader={groupedRowsRenderHeader}\n groupingColumn={groupingColumn}\n height={height}\n infiniteScrolling={infiniteScrolling}\n instanceRef={instanceRef}\n isColumnEditable={isColumnEditable}\n isDataFiltered={isDataFiltered}\n isDataSorted={isDataSorted}\n maxPerPage={maxPerPage}\n minColumnWidth={minColumnWidth}\n minPerPage={minPerPage}\n multiSelectComponent={multiSelectComponent}\n multiSelectFilterLabel={multiSelectFilterLabel}\n multiSelectFilterLabels={multiSelectFilterLabels}\n multiSelectFilterOptions={multiSelectFilterOptions}\n noColumnsPlaceholder={noColumnsPlaceholder}\n noResultsPlaceholder={noResultsPlaceholder}\n noResultsRender={noResultsRender}\n normalizeDataKeys={normalizeDataKeys}\n numRowsVisible={numRowsVisible} // if defined, fluidHeight is disabled\n onAddFilter={onAddFilter}\n onColumnResize={onColumnResize}\n onColumnRowEdit={onColumnRowEdit}\n onColumnRowEdited={onColumnRowEdited}\n onExpandRow={onExpandRow}\n onExpandChange={onExpandChange}\n onFilter={onFilter}\n onFiltersChange={onFiltersChange}\n onFilterMenuClose={onFilterMenuClose}\n onFilterMenuOpen={onFilterMenuOpen}\n onDefaultFiltersLoad={onDefaultFiltersLoad}\n onInfiniteScrolling={onInfiniteScrolling}\n onMoveColumnEnd={onMoveColumnEnd}\n onMoveColumnOver={onMoveColumnOver}\n onMoveColumnStart={onMoveColumnStart}\n onMoveRowEnd={onMoveRowEnd}\n onMoveRowStart={onMoveRowStart}\n onPageChange={onPageChange}\n onPerPageChange={onPerPageChange}\n onRemoveFilter={onRemoveFilter}\n onReorder={onReorder}\n onSelectAll={onSelectAll}\n onSelectRow={onSelectRow}\n onSort={onSort}\n onToggleExpand={onToggleExpand}\n onToggleShowAllRows={onToggleShowAllRows}\n overscanCount={overscanCount}\n paginated={paginated}\n pagination={pagination}\n paginationStep={paginationStep}\n plugins={plugins}\n renderExpandedDetails={renderExpandedDetails}\n renderFilterToolbar={renderFilterToolbar}\n renderRowDetails={renderRowDetails}\n renderToolbar={renderToolbar}\n resizeableColumns={resizeableColumns}\n rowKey={rowKey}\n rows={rows}\n rowSize={rowSize}\n searchFilters={searchFilters}\n selectable={selectable}\n selectAll={selectAll}\n selectColumnFilterable={selectColumnFilterable}\n selectColumnSortable={selectColumnSortable}\n selectedRows={selectedRows}\n selectionColumnDefinition={selectionColumnDefinition}\n serverSideData={serverSideData}\n showFilterBar={showFilterBar}\n showHeader={showHeader}\n showRowsLoader={showRowsLoader}\n showSelectColumn={showSelectColumn}\n showSelectHighlight={showSelectHighlight}\n sortable={sortable}\n sortEmptyLast={sortEmptyLast}\n sortingColumns={sortingColumns}\n subrowSize={subRowSize}\n toolbarDelayClose={toolbarDelayClose}\n useTreeData={useTreeData}\n virtualized={virtualized}\n visibleColumns={visibleColumns}\n wrapText={wrapText}\n />\n </TooltipTextProvider>\n);\n\nconst props = {\n /** ref to the instance of the datagrid, handle it imperatively */\n instanceRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]).description(\n 'ref to the instance of the datagrid, handle it imperatively',\n ),\n /** class for data grid wrapper */\n className: PropTypes.string.description('class for data grid wrapper'),\n /** inject props to datagrid wrapper */\n containerProps: PropTypes.object.description('inject props to datagrid wrapper'),\n /** FilterBar props passed down to FilterBar */\n filterBarOptions: PropTypes.shape({\n minWidth: PropTypes.number,\n maxWidth: PropTypes.number,\n }).description('FilterBar props passed down to FilterBar'),\n /** datagrid columns */\n columns: PropTypes.arrayOf(\n PropTypes.shape({\n /** Column property as an identifier */\n property: PropTypes.string.isRequired,\n /** Label in the header */\n label: PropTypes.string,\n /** Defines the width of the column, can be a string with percentages (\"50%\"), if not defined the width is flexible */\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /** Min width for this column. NOTE: Has prevalence over the general minColumnWidth */\n minWidth: PropTypes.number,\n /** Function returning a custom editor for that cell ({ value, onValue, rowData }) => Element */\n customEditor: PropTypes.func,\n /** Function returning an element to render in the cell ({ value, customHandlers, metaData: { rowData } }) => Element */\n customRenderer: PropTypes.func,\n /** Activates 'searchable' feature for this column */\n searchable: PropTypes.bool,\n /** Activates 'sortable' feature for this column */\n sortable: PropTypes.bool,\n /** Activates 'resizable' feature for this column */\n resizable: PropTypes.bool,\n /** Activates 'editable' feature for this column */\n editable: PropTypes.bool,\n /** Whether this column is visible or not */\n visible: PropTypes.bool,\n }),\n ).description('datagrid columns'),\n /** datagrid rows */\n rows: PropTypes.arrayOf(PropTypes.object).description('datagrid rows'),\n /** key for each row */\n rowKey: PropTypes.string.description('key for each row'),\n /** toggle infinite scroll loading behavior */\n infiniteScrolling: PropTypes.bool.description('toggle infinite scroll loading behavior'),\n /** Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well */\n overscanCount: PropTypes.number.description(\n \"Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** turn datagrid to editable mode */\n editable: PropTypes.bool.description('turn datagrid to editable mode'),\n /** Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well */\n sortable: PropTypes.bool.description(\n \"Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Put empty values always last on the column after sorting */\n sortEmptyLast: PropTypes.bool.description('Put empty values always last on the column after sorting'),\n /** Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n paginated: PropTypes.bool.description(\n \"Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Pagination step for clicking the next pages */\n paginationStep: PropTypes.number.description('Pagination step for clicking the next pages'),\n /** Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n dragAndDropRows: PropTypes.bool.description(\n \"Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n selectable: PropTypes.bool.description(\n \"Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n resizeableColumns: PropTypes.bool.description(\n \"Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Placeholder rendered when no rows are visible */\n noResultsPlaceholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(\n 'Placeholder rendered when no rows are visible',\n ),\n /** Activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n searchFilters: PropTypes.bool.description(\n \"activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n dragAndDropColumns: PropTypes.bool.description(\n \"Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n useTreeData: PropTypes.bool.description(\n \"activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** AutoScroll to row ID */\n autoScrollToId: PropTypes.any.description('AutoScroll to row ID'),\n /** Whether all rows are selected or not */\n selectAll: PropTypes.bool.description('Whether all rows are selected or not'),\n /** Defines the selected rows */\n selectedRows: PropTypes.arrayOf(PropTypes.object).description(' Defines the selected rows'),\n /** Filters to be applied to the grid */\n filters: PropTypes.arrayOf(PropTypes.object).description('Filters to be applied to the grid'),\n // todo: define params for handlers\n /** Handler when user expands a row */\n onExpandRow: PropTypes.func.description('Handler when user expands a row'),\n /** Handler when user expands a row with full expand state */\n onExpandChange: PropTypes.func.description('Handler when user expands a row with full expand state'),\n /** Handler when user expands a row (old API) */\n onToggleExpand: PropTypes.func.description('Handler when user expands a row (old API)'),\n /** Handler when user adds a filter */\n onAddFilter: PropTypes.func.description('Handler when user adds a filter'),\n /** Handler when user removes a filter */\n onRemoveFilter: PropTypes.func.description('Handler when user removes a filter'),\n /** Handler when the filters state has changed */\n onFiltersChange: PropTypes.func.description('Handler when the filters state has changed '),\n /** Handler when the default filters load. Returns the rows rendered */\n onDefaultFiltersLoad: PropTypes.func.description('Handler when the default filters load. Returns the rows rendered'),\n /** Handler when column move is over another column */\n onMoveColumnOver: PropTypes.func.description('Handler when column move is over another column'),\n /** Handler when column move starts */\n onMoveColumnStart: PropTypes.func.description(' Handler when column move starts'),\n /** Handler when column move ends */\n onMoveColumnEnd: PropTypes.func.description('Handler when column move ends'),\n /** Whether to show the filter bar or not */\n showFilterBar: PropTypes.bool.description('Whether to show the filter bar or not'),\n /** Custom option for the header with multi select */\n multiSelectFilterOptions: PropTypes.arrayOf(PropTypes.object).description(\n 'Custom option for the header with multi select',\n ),\n /** Label to the header column for multi select */\n multiSelectFilterLabel: PropTypes.string.description('Label to the header column for multi select'),\n /** Labels for multi selects */\n multiSelectFilterLabels: PropTypes.arrayOf(PropTypes.string).description('Labels for multi selects'),\n /** unstable */\n aggregations: PropTypes.object.description('').deprecated(''),\n /** unstable */\n /** Column which rows would be grouped by */\n groupingColumn: PropTypes.string.description('Column which rows would be grouped by').deprecated(''),\n /** group by */\n groupedBy: PropTypes.string.description('group by'),\n /** Defines the sorting state */\n sortingColumns: PropTypes.objectOf(\n PropTypes.shape({\n // eslint-disable-next-line react/no-unused-prop-types\n direction: PropTypes.oneOf(['asc', 'desc']),\n // eslint-disable-next-line react/no-unused-prop-types\n position: PropTypes.number,\n }),\n ).description('Defines the sorting state'),\n /** Visible columns property */\n visibleColumns: PropTypes.arrayOf(PropTypes.string).description('Visible columns property'),\n /** Pagination: Minimum number of rows per page */\n minPerPage: PropTypes.string.description('Pagination: Minimum number of rows per page'),\n /** Pagination: Maximum number of rows per page */\n maxPerPage: PropTypes.string.description('Pagination: Maximum number of rows per page'),\n /** Pagination: Handler when user changes the amount of rows per page */\n onPerPageChange: PropTypes.string.description('Pagination: Handler when user changes the amount of rows per page'),\n /** Pagination: Handler when user changes the page */\n onPageChange: PropTypes.string.description('Pagination: Handler when user changes the page'),\n /** Pagination state */\n pagination: PropTypes.shape({\n // eslint-disable-next-line react/no-unused-prop-types\n page: PropTypes.number,\n // eslint-disable-next-line react/no-unused-prop-types\n perPage: PropTypes.number,\n }).description('pagination state'),\n /** Whether to show the header or not */\n showHeader: PropTypes.bool.description('Whether to show the header or not'),\n /** Whether to header is fixed or not */\n fixedHeader: PropTypes.bool.description('Whether to header is fixed or not'),\n /** Defines the height of the DataGrid */\n height: PropTypes.number.description('Defines the height of the DataGrid'),\n /** General min column width for all the columns */\n minColumnWidth: PropTypes.number.description('General min column width for all the columns '),\n /** Whether to show a loader instead of the rows or not */\n showRowsLoader: PropTypes.bool.description('Whether to show a loader instead of the rows or not'),\n /** When a user selects a row, that row get highlighted */\n showSelectHighlight: PropTypes.bool.description('When a user selects a row, that row get highlighted'),\n /** Whether to show the select column when the selection feature is active */\n showSelectColumn: PropTypes.bool.description(\n 'Whether to show the select column when the selection feature is active',\n ),\n /** Activates sortable feature to selection column */\n selectColumnSortable: PropTypes.bool.description('activates sortable feature to selection column'),\n /** Activates filterable feature to selection column */\n selectColumnFilterable: PropTypes.bool.description('Activates filterable feature to selection column'),\n /** Define the definition for the selection column */\n selectionColumnDefinition: PropTypes.object.description('Define the definition for the selection column'),\n /** Function that returns a toolbar to show when the user hovers the row */\n renderToolbar: PropTypes.func.description('Function that returns a toolbar to show when the user hovers the row'),\n /** Timeout to close the toolbar */\n toolbarDelayClose: PropTypes.number.description(' Timeout to close the toolbar'),\n /** Function that returns a toolbar in the FilterBar component */\n renderFilterToolbar: PropTypes.func.description('Function that returns a toolbar in the FilterBar component'),\n /** Custom component for the selection */\n multiSelectComponent: PropTypes.element.description('Custom component for the selection'),\n /** Normalize the keys of the data received and the columns */\n normalizeDataKeys: PropTypes.bool.description('Normalize the keys of the data received and the columns'),\n /** Function that returns an Element when there are no rows */\n noResultsRender: PropTypes.func.description('Function that returns an Element when there are no rows'),\n /** The height of the DataGrid will expand to its container */\n fluidHeight: PropTypes.bool.description('The height of the DataGrid will expand to its container'),\n /** @deprecated */\n customHandlers: PropTypes.object.description('').deprecated(''),\n /** Handler when user closes the filter menu */\n onFilterMenuClose: PropTypes.func.description('Handler when user closes the filter menu'),\n /** Handler when user opens the filter menu */\n onFilterMenuOpen: PropTypes.func.description('Handler when user opens the filter menu'),\n /** Handler when user drags a row */\n onReorder: PropTypes.func.description('handler when user drags a row '),\n /** Handler when user stops dragging a row */\n onMoveRowEnd: PropTypes.func.description('Handler when user stops dragging a row '),\n /** Handler when user starts dragging a row */\n onMoveRowStart: PropTypes.func.description('Handler when user starts dragging a row'),\n /** Handler when user has resized a column */\n onColumnResize: PropTypes.func.description('Handler when user has resized a column'),\n /** Handler when user filters by a column */\n onFilter: PropTypes.func.description('Handler when user filters by a column'),\n /** Handler when user sorts by a column */\n onSort: PropTypes.func.description('Handler when user sorts by a column '),\n /** Handler when user has edited a cell row */\n onColumnRowEdited: PropTypes.func.description('Handler when user has edited a cell row'),\n /** Handler when user activates the cell row editing functionality */\n onColumnRowEdit: PropTypes.func.description(' Handler when user activates the cell row editing functionality'),\n /** Handler when user selects a row */\n onSelectRow: PropTypes.func.description('Handler when user selects a row'),\n /** Handler when user checks the selection header controller */\n onSelectAll: PropTypes.func.description('Handler when user checks the selection header controller'),\n /** Handler to get more data when infinite scroll is activated */\n getData: PropTypes.func.description('Handler to get more data when infinite scroll is activated'),\n /** Handler to get more data when infinite scroll is activated without side-effect */\n onInfiniteScrolling: PropTypes.func.description(\n 'Handler to get more data when infinite scroll is activated without side-effect',\n ),\n /** Flag to override empty sort when data is from server */\n serverSideData: PropTypes.bool.description('Flag to override empty sort when data is from server'),\n /** Flag to force virtualization. Not used */\n virtualized: PropTypes.bool.description('Flag to force virtualization. Not used'),\n /** Number of rows visible. Not used */\n numRowsVisible: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(['all'])]).description('Number of rows visible. Not used'),\n /** Callback to check if column is editable */\n isColumnEditable: PropTypes.func.description('Callback to check if column is editable'),\n /** Flag for groupedRows */\n groupedRows: PropTypes.bool.description('Flag for groupedRows'),\n /** Header for grouped rows */\n groupedRowsRenderHeader: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description('Header for grouped rows'),\n /** Once activated will disable the internal logic for sorting */\n isDataSorted: PropTypes.bool.description('Once activated will disable the internal logic for sorting'),\n /** Once activated will disable the internal logic for filtering */\n isDataFiltered: PropTypes.bool.description('Once activated will disable the internal logic for filtering'),\n /** Change row size */\n rowSize: PropTypes.oneOf(RowSizesOptionsArr).description('Change row size'),\n /** Whether to wrap the text of the data grid or not */\n wrapText: PropTypes.bool.description('Whether to wrap the text of the data grid or not'),\n /** Element to render expanded details */\n renderExpandedDetails: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description(\n 'Element to render expanded details',\n ),\n /** Columns to render on the details of an expanded row */\n detailColumns: PropTypes.arrayOf(PropTypes.object).description('Columns to render on the details of an expanded row'),\n /** Flag to enable the expandable feature */\n expandable: PropTypes.bool.description('Flag to enable the expandable feature '),\n /** Callback to get the row children */\n getChildrenRows: PropTypes.func.description('Callback to get the row children'),\n /** Number of rows visible on the details of an expanded row */\n expandableSubrowsVisible: PropTypes.number.description('Number of rows visible on the details of an expanded row'),\n /** Element to render inside expanded row */\n renderRowDetails: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description(\n 'Element to render inside expanded row',\n ),\n /** Callback to get the expanded row size */\n getExpandedRowSize: PropTypes.func.description('Callback to get the expanded row size'),\n /** Callback to get the expanded row minimum size */\n getExpandedRowMinSize: PropTypes.func.description('Callback to get the expanded row minimum size'),\n /** Change expanded/details rows size */\n subRowSize: PropTypes.oneOf(RowSizesOptionsArr).description('Change expanded/details rows size'),\n /** Bind the column size to another grid instance */\n bindColumnsSizeTo: PropTypes.string.description('Bind the column size to another grid instance'),\n /** Bind the row size to another grid instance */\n bindRowSizeTo: PropTypes.string.description('Bind the row size to another grid instance'),\n /** Handler when toggle show all is clicked */\n onToggleShowAllRows: PropTypes.func.description('Handler when toggle show all is clicked'),\n /** Expanded row state */\n expandedRows: PropTypes.object.description('Expanded row state'),\n /** Flag to enable autoheight */\n autoHeight: PropTypes.bool.description('Flag to enable autoheight'),\n /** Placeholder rendered when no columns are visible */\n noColumnsPlaceholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(\n 'Placeholder rendered when no columns are visible',\n ),\n /** Plugin additional array */\n plugins: PropTypes.arrayOf(PropTypes.any).description('Plugin additional array'),\n};\n\nDSDataGrids.propTypes = props;\nDSDataGrids.displayName = 'DSDataGrids';\nconst DSDataGridsWithSchema = describe(DSDataGrids);\nDSDataGridsWithSchema.propTypes = props;\n\nexport { DSDataGridsWithSchema, DSDataGrids, DSDataGrids as DSDataGrid };\nexport default DSDataGrids;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkJnB;AAhJJ,0BAAoC;AACpC,uCAAoC;AACpC,0BAA6B;AAC7B,sBAAoD;AAEpD,MAAM,cAAc,CAAC;AAAA,EACnB,iBAAiB,CAAC;AAAA,EAClB;AAAA,EACA,YAAY;AAAA,EAGZ,UAAU,CAAC;AAAA,EACX,OAAO,CAAC;AAAA,EACR,SAAS;AAAA,EAGT,oBAAoB;AAAA,EACpB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,aAAa;AAAA,EACb,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd;AAAA,EAGA,gBAAgB;AAAA,EAGhB,YAAY;AAAA,EACZ,eAAe,CAAC;AAAA,EAChB,UAAU;AAAA,EACV,cAAc,MAAM;AA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AAC1B,MAAM,4BAAwB,8BAAS,WAAW;AAClD,sBAAsB,YAAY;AAGlC,IAAO,qBAAQ;",
4
+ "sourcesContent": ["/* eslint-disable max-lines */\nimport React from 'react';\nimport { useDeprecateComponent } from '@elliemae/ds-utilities';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport { DataGridImpl } from './DataGridImpl.js';\nimport { RowSizesOptions, RowSizesOptionsArr } from './rowSizes.js';\n\nconst DSDataGrids = ({\n containerProps = {},\n instanceRef,\n className = '',\n\n // data\n columns = [],\n rows = [],\n rowKey = 'id',\n\n // features\n infiniteScrolling = false,\n editable = false,\n sortable = false,\n sortEmptyLast = false,\n paginated = false,\n dragAndDropRows = false,\n selectable = false,\n resizeableColumns = false,\n searchFilters = false,\n dragAndDropColumns = false,\n useTreeData = false,\n autoScrollToId,\n\n // virtualization props\n overscanCount = 10,\n\n // feature state\n selectAll = false, // todo: change to isAllSelected\n selectedRows = [],\n filters = undefined,\n onAddFilter = () => null,\n onRemoveFilter = () => null,\n onFiltersChange = () => null,\n showFilterBar = true,\n multiSelectFilterOptions = [\n { id: 'true', label: 'Selected' },\n { id: 'false', label: 'Not selected' },\n ],\n multiSelectFilterLabels = undefined,\n multiSelectFilterLabel = 'Selection',\n\n aggregations = {},\n groupingColumn = undefined,\n\n sortingColumns = {},\n\n // pagination\n minPerPage = 0,\n maxPerPage = 50,\n onPerPageChange = () => null,\n onPageChange = () => null,\n paginationStep = 2,\n pagination = {\n page: 1,\n perPage: 10,\n },\n // visual\n showHeader = true,\n fixedHeader = true,\n wrapText = false,\n height = undefined,\n minColumnWidth = 100,\n showRowsLoader = false,\n visibleColumns = undefined, // this enforces visibility of columns\n showSelectHighlight = false,\n showSelectColumn = true,\n selectColumnSortable = true,\n selectColumnFilterable = false,\n selectionColumnDefinition = {},\n filterBarOptions = undefined,\n // searchGrid = false,\n renderToolbar = undefined,\n toolbarDelayClose = 400,\n renderFilterToolbar = undefined,\n multiSelectComponent = undefined,\n // todo: deprecate this\n noResultsRender,\n noResultsPlaceholder,\n fluidHeight = false,\n\n customHandlers = {},\n\n // grouping feature\n groupedBy = undefined,\n\n // callbacks\n onDefaultFiltersLoad = () => null,\n onReorder = () => null,\n onMoveRowEnd = () => null,\n onMoveRowStart = () => null,\n onMoveColumnOver = () => null,\n onMoveColumnStart = () => null,\n onMoveColumnEnd = () => null,\n onColumnResize = () => null,\n onExpandChange = () => null,\n onToggleExpand = () => null,\n onExpandRow = () => null,\n onFilter = () => null,\n onSort = () => null,\n onColumnRowEdited = () => null,\n onColumnRowEdit = () => null,\n onSelectRow = () => null,\n onSelectAll = () => null,\n onInfiniteScrolling = () => null,\n onFilterMenuClose = () => null,\n onFilterMenuOpen = () => null,\n getData = undefined, // todo: change to onGetMoreData\n serverSideData = false,\n isDataSorted = false,\n isDataFiltered = false,\n virtualized = true,\n numRowsVisible = undefined,\n isColumnEditable = (column) => column.editable,\n\n // grouped props\n groupedRows = false,\n groupedRowsRenderHeader = undefined,\n // expandable props\n renderExpandedDetails = () => null,\n detailColumns,\n expandable = false,\n getChildrenRows = (row) => row.children,\n expandableSubrowsVisible = 7,\n renderRowDetails = () => null,\n getExpandedRowSize = undefined,\n getExpandedRowMinSize,\n rowSize = RowSizesOptions.normal,\n subRowSize = RowSizesOptions.normal,\n bindColumnsSizeTo = undefined,\n bindRowSizeTo = undefined,\n onToggleShowAllRows,\n expandedRows,\n autoHeight = false,\n noColumnsPlaceholder,\n plugins = [],\n normalizeDataKeys = false,\n}) => {\n useDeprecateComponent({ componentName: 'ds-datagrids', version: '3.x Date: 2023 Q1' });\n\n return (\n <TooltipTextProvider>\n <DataGridImpl\n aggregations={aggregations}\n autoHeight={autoHeight && !fluidHeight}\n autoScrollToId={autoScrollToId}\n bindColumnsSizeTo={bindColumnsSizeTo}\n bindRowSizeTo={bindRowSizeTo}\n className={className}\n columns={columns}\n containerProps={containerProps}\n customHandlers={customHandlers}\n detailColumns={detailColumns}\n dragAndDropColumns={dragAndDropColumns}\n dragAndDropRows={dragAndDropRows}\n editable={editable}\n expandable={expandable}\n expandableSubrowsVisible={expandableSubrowsVisible}\n expandedRows={expandedRows}\n filterBarOptions={filterBarOptions}\n filters={filters}\n fixedHeader={fixedHeader}\n fluidHeight={fluidHeight}\n getChildrenRows={getChildrenRows}\n getData={getData}\n getExpandedRowMinSize={getExpandedRowMinSize}\n getExpandedRowSize={getExpandedRowSize}\n groupedBy={groupedBy}\n groupedRows={groupedRows}\n groupedRowsRenderHeader={groupedRowsRenderHeader}\n groupingColumn={groupingColumn}\n height={height}\n infiniteScrolling={infiniteScrolling}\n instanceRef={instanceRef}\n isColumnEditable={isColumnEditable}\n isDataFiltered={isDataFiltered}\n isDataSorted={isDataSorted}\n maxPerPage={maxPerPage}\n minColumnWidth={minColumnWidth}\n minPerPage={minPerPage}\n multiSelectComponent={multiSelectComponent}\n multiSelectFilterLabel={multiSelectFilterLabel}\n multiSelectFilterLabels={multiSelectFilterLabels}\n multiSelectFilterOptions={multiSelectFilterOptions}\n noColumnsPlaceholder={noColumnsPlaceholder}\n noResultsPlaceholder={noResultsPlaceholder}\n noResultsRender={noResultsRender}\n normalizeDataKeys={normalizeDataKeys}\n numRowsVisible={numRowsVisible} // if defined, fluidHeight is disabled\n onAddFilter={onAddFilter}\n onColumnResize={onColumnResize}\n onColumnRowEdit={onColumnRowEdit}\n onColumnRowEdited={onColumnRowEdited}\n onExpandRow={onExpandRow}\n onExpandChange={onExpandChange}\n onFilter={onFilter}\n onFiltersChange={onFiltersChange}\n onFilterMenuClose={onFilterMenuClose}\n onFilterMenuOpen={onFilterMenuOpen}\n onDefaultFiltersLoad={onDefaultFiltersLoad}\n onInfiniteScrolling={onInfiniteScrolling}\n onMoveColumnEnd={onMoveColumnEnd}\n onMoveColumnOver={onMoveColumnOver}\n onMoveColumnStart={onMoveColumnStart}\n onMoveRowEnd={onMoveRowEnd}\n onMoveRowStart={onMoveRowStart}\n onPageChange={onPageChange}\n onPerPageChange={onPerPageChange}\n onRemoveFilter={onRemoveFilter}\n onReorder={onReorder}\n onSelectAll={onSelectAll}\n onSelectRow={onSelectRow}\n onSort={onSort}\n onToggleExpand={onToggleExpand}\n onToggleShowAllRows={onToggleShowAllRows}\n overscanCount={overscanCount}\n paginated={paginated}\n pagination={pagination}\n paginationStep={paginationStep}\n plugins={plugins}\n renderExpandedDetails={renderExpandedDetails}\n renderFilterToolbar={renderFilterToolbar}\n renderRowDetails={renderRowDetails}\n renderToolbar={renderToolbar}\n resizeableColumns={resizeableColumns}\n rowKey={rowKey}\n rows={rows}\n rowSize={rowSize}\n searchFilters={searchFilters}\n selectable={selectable}\n selectAll={selectAll}\n selectColumnFilterable={selectColumnFilterable}\n selectColumnSortable={selectColumnSortable}\n selectedRows={selectedRows}\n selectionColumnDefinition={selectionColumnDefinition}\n serverSideData={serverSideData}\n showFilterBar={showFilterBar}\n showHeader={showHeader}\n showRowsLoader={showRowsLoader}\n showSelectColumn={showSelectColumn}\n showSelectHighlight={showSelectHighlight}\n sortable={sortable}\n sortEmptyLast={sortEmptyLast}\n sortingColumns={sortingColumns}\n subrowSize={subRowSize}\n toolbarDelayClose={toolbarDelayClose}\n useTreeData={useTreeData}\n virtualized={virtualized}\n visibleColumns={visibleColumns}\n wrapText={wrapText}\n />\n </TooltipTextProvider>\n );\n};\n\nconst props = {\n /** ref to the instance of the datagrid, handle it imperatively */\n instanceRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]).description(\n 'ref to the instance of the datagrid, handle it imperatively',\n ),\n /** class for data grid wrapper */\n className: PropTypes.string.description('class for data grid wrapper'),\n /** inject props to datagrid wrapper */\n containerProps: PropTypes.object.description('inject props to datagrid wrapper'),\n /** FilterBar props passed down to FilterBar */\n filterBarOptions: PropTypes.shape({\n minWidth: PropTypes.number,\n maxWidth: PropTypes.number,\n }).description('FilterBar props passed down to FilterBar'),\n /** datagrid columns */\n columns: PropTypes.arrayOf(\n PropTypes.shape({\n /** Column property as an identifier */\n property: PropTypes.string.isRequired,\n /** Label in the header */\n label: PropTypes.string,\n /** Defines the width of the column, can be a string with percentages (\"50%\"), if not defined the width is flexible */\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /** Min width for this column. NOTE: Has prevalence over the general minColumnWidth */\n minWidth: PropTypes.number,\n /** Function returning a custom editor for that cell ({ value, onValue, rowData }) => Element */\n customEditor: PropTypes.func,\n /** Function returning an element to render in the cell ({ value, customHandlers, metaData: { rowData } }) => Element */\n customRenderer: PropTypes.func,\n /** Activates 'searchable' feature for this column */\n searchable: PropTypes.bool,\n /** Activates 'sortable' feature for this column */\n sortable: PropTypes.bool,\n /** Activates 'resizable' feature for this column */\n resizable: PropTypes.bool,\n /** Activates 'editable' feature for this column */\n editable: PropTypes.bool,\n /** Whether this column is visible or not */\n visible: PropTypes.bool,\n }),\n ).description('datagrid columns'),\n /** datagrid rows */\n rows: PropTypes.arrayOf(PropTypes.object).description('datagrid rows'),\n /** key for each row */\n rowKey: PropTypes.string.description('key for each row'),\n /** toggle infinite scroll loading behavior */\n infiniteScrolling: PropTypes.bool.description('toggle infinite scroll loading behavior'),\n /** Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well */\n overscanCount: PropTypes.number.description(\n \"Activates 'editable' feature on the DataGrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** turn datagrid to editable mode */\n editable: PropTypes.bool.description('turn datagrid to editable mode'),\n /** Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well */\n sortable: PropTypes.bool.description(\n \"Activates 'sortable' feature on the GataGrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Put empty values always last on the column after sorting */\n sortEmptyLast: PropTypes.bool.description('Put empty values always last on the column after sorting'),\n /** Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n paginated: PropTypes.bool.description(\n \"Activates 'pagination' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Pagination step for clicking the next pages */\n paginationStep: PropTypes.number.description('Pagination step for clicking the next pages'),\n /** Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n dragAndDropRows: PropTypes.bool.description(\n \"Activates 'drag and drop rows' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n selectable: PropTypes.bool.description(\n \"Activates 'selection' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n resizeableColumns: PropTypes.bool.description(\n \"Activates 'resize' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Placeholder rendered when no rows are visible */\n noResultsPlaceholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(\n 'Placeholder rendered when no rows are visible',\n ),\n /** Activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n searchFilters: PropTypes.bool.description(\n \"activates 'filtering' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n dragAndDropColumns: PropTypes.bool.description(\n \"Activates 'drag and drop columns' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** Activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well */\n useTreeData: PropTypes.bool.description(\n \"activates 'grouping and tree data' feature on the datagrid NOTE: needs to be activated in the column definition as well\",\n ),\n /** AutoScroll to row ID */\n autoScrollToId: PropTypes.any.description('AutoScroll to row ID'),\n /** Whether all rows are selected or not */\n selectAll: PropTypes.bool.description('Whether all rows are selected or not'),\n /** Defines the selected rows */\n selectedRows: PropTypes.arrayOf(PropTypes.object).description(' Defines the selected rows'),\n /** Filters to be applied to the grid */\n filters: PropTypes.arrayOf(PropTypes.object).description('Filters to be applied to the grid'),\n // todo: define params for handlers\n /** Handler when user expands a row */\n onExpandRow: PropTypes.func.description('Handler when user expands a row'),\n /** Handler when user expands a row with full expand state */\n onExpandChange: PropTypes.func.description('Handler when user expands a row with full expand state'),\n /** Handler when user expands a row (old API) */\n onToggleExpand: PropTypes.func.description('Handler when user expands a row (old API)'),\n /** Handler when user adds a filter */\n onAddFilter: PropTypes.func.description('Handler when user adds a filter'),\n /** Handler when user removes a filter */\n onRemoveFilter: PropTypes.func.description('Handler when user removes a filter'),\n /** Handler when the filters state has changed */\n onFiltersChange: PropTypes.func.description('Handler when the filters state has changed '),\n /** Handler when the default filters load. Returns the rows rendered */\n onDefaultFiltersLoad: PropTypes.func.description('Handler when the default filters load. Returns the rows rendered'),\n /** Handler when column move is over another column */\n onMoveColumnOver: PropTypes.func.description('Handler when column move is over another column'),\n /** Handler when column move starts */\n onMoveColumnStart: PropTypes.func.description(' Handler when column move starts'),\n /** Handler when column move ends */\n onMoveColumnEnd: PropTypes.func.description('Handler when column move ends'),\n /** Whether to show the filter bar or not */\n showFilterBar: PropTypes.bool.description('Whether to show the filter bar or not'),\n /** Custom option for the header with multi select */\n multiSelectFilterOptions: PropTypes.arrayOf(PropTypes.object).description(\n 'Custom option for the header with multi select',\n ),\n /** Label to the header column for multi select */\n multiSelectFilterLabel: PropTypes.string.description('Label to the header column for multi select'),\n /** Labels for multi selects */\n multiSelectFilterLabels: PropTypes.arrayOf(PropTypes.string).description('Labels for multi selects'),\n /** unstable */\n aggregations: PropTypes.object.description('').deprecated(''),\n /** unstable */\n /** Column which rows would be grouped by */\n groupingColumn: PropTypes.string.description('Column which rows would be grouped by').deprecated(''),\n /** group by */\n groupedBy: PropTypes.string.description('group by'),\n /** Defines the sorting state */\n sortingColumns: PropTypes.objectOf(\n PropTypes.shape({\n // eslint-disable-next-line react/no-unused-prop-types\n direction: PropTypes.oneOf(['asc', 'desc']),\n // eslint-disable-next-line react/no-unused-prop-types\n position: PropTypes.number,\n }),\n ).description('Defines the sorting state'),\n /** Visible columns property */\n visibleColumns: PropTypes.arrayOf(PropTypes.string).description('Visible columns property'),\n /** Pagination: Minimum number of rows per page */\n minPerPage: PropTypes.string.description('Pagination: Minimum number of rows per page'),\n /** Pagination: Maximum number of rows per page */\n maxPerPage: PropTypes.string.description('Pagination: Maximum number of rows per page'),\n /** Pagination: Handler when user changes the amount of rows per page */\n onPerPageChange: PropTypes.string.description('Pagination: Handler when user changes the amount of rows per page'),\n /** Pagination: Handler when user changes the page */\n onPageChange: PropTypes.string.description('Pagination: Handler when user changes the page'),\n /** Pagination state */\n pagination: PropTypes.shape({\n // eslint-disable-next-line react/no-unused-prop-types\n page: PropTypes.number,\n // eslint-disable-next-line react/no-unused-prop-types\n perPage: PropTypes.number,\n }).description('pagination state'),\n /** Whether to show the header or not */\n showHeader: PropTypes.bool.description('Whether to show the header or not'),\n /** Whether to header is fixed or not */\n fixedHeader: PropTypes.bool.description('Whether to header is fixed or not'),\n /** Defines the height of the DataGrid */\n height: PropTypes.number.description('Defines the height of the DataGrid'),\n /** General min column width for all the columns */\n minColumnWidth: PropTypes.number.description('General min column width for all the columns '),\n /** Whether to show a loader instead of the rows or not */\n showRowsLoader: PropTypes.bool.description('Whether to show a loader instead of the rows or not'),\n /** When a user selects a row, that row get highlighted */\n showSelectHighlight: PropTypes.bool.description('When a user selects a row, that row get highlighted'),\n /** Whether to show the select column when the selection feature is active */\n showSelectColumn: PropTypes.bool.description(\n 'Whether to show the select column when the selection feature is active',\n ),\n /** Activates sortable feature to selection column */\n selectColumnSortable: PropTypes.bool.description('activates sortable feature to selection column'),\n /** Activates filterable feature to selection column */\n selectColumnFilterable: PropTypes.bool.description('Activates filterable feature to selection column'),\n /** Define the definition for the selection column */\n selectionColumnDefinition: PropTypes.object.description('Define the definition for the selection column'),\n /** Function that returns a toolbar to show when the user hovers the row */\n renderToolbar: PropTypes.func.description('Function that returns a toolbar to show when the user hovers the row'),\n /** Timeout to close the toolbar */\n toolbarDelayClose: PropTypes.number.description(' Timeout to close the toolbar'),\n /** Function that returns a toolbar in the FilterBar component */\n renderFilterToolbar: PropTypes.func.description('Function that returns a toolbar in the FilterBar component'),\n /** Custom component for the selection */\n multiSelectComponent: PropTypes.element.description('Custom component for the selection'),\n /** Normalize the keys of the data received and the columns */\n normalizeDataKeys: PropTypes.bool.description('Normalize the keys of the data received and the columns'),\n /** Function that returns an Element when there are no rows */\n noResultsRender: PropTypes.func.description('Function that returns an Element when there are no rows'),\n /** The height of the DataGrid will expand to its container */\n fluidHeight: PropTypes.bool.description('The height of the DataGrid will expand to its container'),\n /** @deprecated */\n customHandlers: PropTypes.object.description('').deprecated(''),\n /** Handler when user closes the filter menu */\n onFilterMenuClose: PropTypes.func.description('Handler when user closes the filter menu'),\n /** Handler when user opens the filter menu */\n onFilterMenuOpen: PropTypes.func.description('Handler when user opens the filter menu'),\n /** Handler when user drags a row */\n onReorder: PropTypes.func.description('handler when user drags a row '),\n /** Handler when user stops dragging a row */\n onMoveRowEnd: PropTypes.func.description('Handler when user stops dragging a row '),\n /** Handler when user starts dragging a row */\n onMoveRowStart: PropTypes.func.description('Handler when user starts dragging a row'),\n /** Handler when user has resized a column */\n onColumnResize: PropTypes.func.description('Handler when user has resized a column'),\n /** Handler when user filters by a column */\n onFilter: PropTypes.func.description('Handler when user filters by a column'),\n /** Handler when user sorts by a column */\n onSort: PropTypes.func.description('Handler when user sorts by a column '),\n /** Handler when user has edited a cell row */\n onColumnRowEdited: PropTypes.func.description('Handler when user has edited a cell row'),\n /** Handler when user activates the cell row editing functionality */\n onColumnRowEdit: PropTypes.func.description(' Handler when user activates the cell row editing functionality'),\n /** Handler when user selects a row */\n onSelectRow: PropTypes.func.description('Handler when user selects a row'),\n /** Handler when user checks the selection header controller */\n onSelectAll: PropTypes.func.description('Handler when user checks the selection header controller'),\n /** Handler to get more data when infinite scroll is activated */\n getData: PropTypes.func.description('Handler to get more data when infinite scroll is activated'),\n /** Handler to get more data when infinite scroll is activated without side-effect */\n onInfiniteScrolling: PropTypes.func.description(\n 'Handler to get more data when infinite scroll is activated without side-effect',\n ),\n /** Flag to override empty sort when data is from server */\n serverSideData: PropTypes.bool.description('Flag to override empty sort when data is from server'),\n /** Flag to force virtualization. Not used */\n virtualized: PropTypes.bool.description('Flag to force virtualization. Not used'),\n /** Number of rows visible. Not used */\n numRowsVisible: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(['all'])]).description(\n 'Number of rows visible. Not used',\n ),\n /** Callback to check if column is editable */\n isColumnEditable: PropTypes.func.description('Callback to check if column is editable'),\n /** Flag for groupedRows */\n groupedRows: PropTypes.bool.description('Flag for groupedRows'),\n /** Header for grouped rows */\n groupedRowsRenderHeader: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description(\n 'Header for grouped rows',\n ),\n /** Once activated will disable the internal logic for sorting */\n isDataSorted: PropTypes.bool.description('Once activated will disable the internal logic for sorting'),\n /** Once activated will disable the internal logic for filtering */\n isDataFiltered: PropTypes.bool.description('Once activated will disable the internal logic for filtering'),\n /** Change row size */\n rowSize: PropTypes.oneOf(RowSizesOptionsArr).description('Change row size'),\n /** Whether to wrap the text of the data grid or not */\n wrapText: PropTypes.bool.description('Whether to wrap the text of the data grid or not'),\n /** Element to render expanded details */\n renderExpandedDetails: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description(\n 'Element to render expanded details',\n ),\n /** Columns to render on the details of an expanded row */\n detailColumns: PropTypes.arrayOf(PropTypes.object).description('Columns to render on the details of an expanded row'),\n /** Flag to enable the expandable feature */\n expandable: PropTypes.bool.description('Flag to enable the expandable feature '),\n /** Callback to get the row children */\n getChildrenRows: PropTypes.func.description('Callback to get the row children'),\n /** Number of rows visible on the details of an expanded row */\n expandableSubrowsVisible: PropTypes.number.description('Number of rows visible on the details of an expanded row'),\n /** Element to render inside expanded row */\n renderRowDetails: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description(\n 'Element to render inside expanded row',\n ),\n /** Callback to get the expanded row size */\n getExpandedRowSize: PropTypes.func.description('Callback to get the expanded row size'),\n /** Callback to get the expanded row minimum size */\n getExpandedRowMinSize: PropTypes.func.description('Callback to get the expanded row minimum size'),\n /** Change expanded/details rows size */\n subRowSize: PropTypes.oneOf(RowSizesOptionsArr).description('Change expanded/details rows size'),\n /** Bind the column size to another grid instance */\n bindColumnsSizeTo: PropTypes.string.description('Bind the column size to another grid instance'),\n /** Bind the row size to another grid instance */\n bindRowSizeTo: PropTypes.string.description('Bind the row size to another grid instance'),\n /** Handler when toggle show all is clicked */\n onToggleShowAllRows: PropTypes.func.description('Handler when toggle show all is clicked'),\n /** Expanded row state */\n expandedRows: PropTypes.object.description('Expanded row state'),\n /** Flag to enable autoheight */\n autoHeight: PropTypes.bool.description('Flag to enable autoheight'),\n /** Placeholder rendered when no columns are visible */\n noColumnsPlaceholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(\n 'Placeholder rendered when no columns are visible',\n ),\n /** Plugin additional array */\n plugins: PropTypes.arrayOf(PropTypes.any).description('Plugin additional array'),\n};\n\nDSDataGrids.propTypes = props;\nDSDataGrids.displayName = 'DSDataGrids';\nconst DSDataGridsWithSchema = describe(DSDataGrids);\nDSDataGridsWithSchema.propTypes = props;\n\nexport { DSDataGridsWithSchema, DSDataGrids, DSDataGrids as DSDataGrid };\nexport default DSDataGrids;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADsJjB;AApJN,0BAAsC;AACtC,8BAAoC;AACpC,uCAAoC;AACpC,0BAA6B;AAC7B,sBAAoD;AAEpD,MAAM,cAAc,CAAC;AAAA,EACnB,iBAAiB,CAAC;AAAA,EAClB;AAAA,EACA,YAAY;AAAA,EAGZ,UAAU,CAAC;AAAA,EACX,OAAO,CAAC;AAAA,EACR,SAAS;AAAA,EAGT,oBAAoB;AAAA,EACpB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,kBAAk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AAyC;AAAA,EAEzF,cAAc,kCAAU,OAAO,YAAY,oBAAoB;AAAA,EAE/D,YAAY,kCAAU,KAAK,YAAY,2BAA2B;AAAA,EAElE,sBAAsB,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,OAAO,CAAC,EAAE;AAAA,IAC/E;AAAA,EACF;AAAA,EAEA,SAAS,kCAAU,QAAQ,kCAAU,GAAG,EAAE,YAAY,yBAAyB;AACjF;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,4BAAwB,kCAAS,WAAW;AAClD,sBAAsB,YAAY;AAGlC,IAAO,qBAAQ;",
6
6
  "names": []
7
7
  }
@@ -32,17 +32,17 @@ var React = __toESM(require("react"));
32
32
  var import_jsx_runtime = require("react/jsx-runtime");
33
33
  var import_react = require("react");
34
34
  var import_ds_shared = require("@elliemae/ds-shared");
35
- var import_Table = require("./components/Table");
36
- var import_TableBody = require("./components/TableBody");
37
- var import_TableHeader = require("./components/TableHeader");
38
- var import_renderers = require("./components/renderers");
39
- var import_defaultClassedRenderers = require("./components/renderers/defaultClassedRenderers");
40
- var import_addOptionalFooterComponents = require("./components/footer/addOptionalFooterComponents");
41
- var import_addOptionalHeaderComponents = require("./components/header/addOptionalHeaderComponents");
42
- var import_EmptyState = require("./components/EmptyState");
43
- var import_getPluginsFromProps = require("./utilities/getPluginsFromProps");
44
- var import_defaultPlugins = require("./defaultPlugins");
45
- var import_normalizeData = require("./utilities/normalizeData");
35
+ var import_Table = require("./components/Table.js");
36
+ var import_TableBody = require("./components/TableBody.js");
37
+ var import_TableHeader = require("./components/TableHeader.js");
38
+ var import_renderers = require("./components/renderers/index.js");
39
+ var import_defaultClassedRenderers = require("./components/renderers/defaultClassedRenderers.js");
40
+ var import_addOptionalFooterComponents = require("./components/footer/addOptionalFooterComponents.js");
41
+ var import_addOptionalHeaderComponents = require("./components/header/addOptionalHeaderComponents.js");
42
+ var import_EmptyState = require("./components/EmptyState.js");
43
+ var import_getPluginsFromProps = require("./utilities/getPluginsFromProps.js");
44
+ var import_defaultPlugins = require("./defaultPlugins.js");
45
+ var import_normalizeData = require("./utilities/normalizeData.js");
46
46
  const isFluid = ({ autoHeight, paginated, numRowsVisible }) => {
47
47
  if (autoHeight)
48
48
  return false;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/DataGridImpl.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React, { useMemo } from 'react';\nimport { isFunction, useDataGrid } from '@elliemae/ds-shared';\nimport { Table } from './components/Table';\nimport { TableBody } from './components/TableBody';\nimport { TableHeader } from './components/TableHeader';\nimport { defaultRenderers, renderRowsLoader } from './components/renderers';\nimport { DatagridWrapper } from './components/renderers/defaultClassedRenderers';\nimport { addOptionalFooterComponents } from './components/footer/addOptionalFooterComponents';\nimport { addOptionalHeaderComponents } from './components/header/addOptionalHeaderComponents';\nimport { EmptyState } from './components/EmptyState';\nimport { getPluginsFromProps } from './utilities/getPluginsFromProps';\nimport { defaultPlugins } from './defaultPlugins';\nimport { normalizeRows } from './utilities/normalizeData';\n\nconst isFluid = ({ autoHeight, paginated, numRowsVisible }) => {\n if (autoHeight) return false;\n if (paginated) return false;\n return !numRowsVisible;\n};\n\nconst DataGridImpl = ({\n className,\n renderers,\n columns,\n rows,\n containerProps,\n plugins: pluginsProp,\n normalizeDataKeys,\n ...otherProps\n}) => {\n const {\n noResultsPlaceholder = <EmptyState />,\n noColumnsPlaceholder = 'Please select one of more columns in order for data to be displayed.',\n noResultsRender,\n paginated,\n height,\n showHeader,\n showRowsLoader,\n rowsLoaderRenderer = renderRowsLoader,\n groupedRows,\n sortable,\n rowSize,\n wrapText,\n onDefaultFiltersLoad,\n rowKey,\n } = otherProps;\n\n const idKey = rowKey || 'id';\n const rowsIdsSet = new Set();\n const rowsIds = rows.map((row) => {\n if (row[idKey] === undefined) throw new Error('Missing id: each row must have an unique id');\n rowsIdsSet.add(row[idKey]);\n return row[idKey];\n });\n if (rowsIds.length !== rowsIdsSet.size) throw new Error('Repeated id: each row must have an unique id');\n\n const plugins = getPluginsFromProps({\n ...otherProps,\n virtualized: (!paginated || groupedRows) && !wrapText,\n paginated: (paginated && !groupedRows) || wrapText,\n sortable: sortable && !groupedRows,\n });\n\n if (normalizeDataKeys) {\n normalizeRows(rows);\n }\n\n const grid = useDataGrid({\n columns,\n rows,\n renderers: defaultRenderers,\n plugins: [...plugins, ...pluginsProp, ...defaultPlugins],\n ...otherProps,\n });\n\n const noColumnsVisible = useMemo(() => {\n const visibleUserColumns = grid.columns.filter((column) => column.visible || typeof column.visible === 'undefined');\n return visibleUserColumns.length === 0;\n }, [grid.columns]);\n\n const bodyPlaceholder = useMemo(() => {\n if (noColumnsVisible) {\n return noColumnsPlaceholder;\n }\n return isFunction(noResultsRender) ? noResultsRender() : noResultsPlaceholder;\n }, [noResultsPlaceholder, noColumnsPlaceholder, noColumnsVisible]);\n\n const { pagination } = otherProps;\n const conditionalPagination =\n pagination && pagination.conditionalPagination === true && rows.length <= otherProps.pagination.perPage;\n const usePagination = paginated && !conditionalPagination;\n return (\n <DatagridWrapper\n className={`${className} ds-row-size-${rowSize}`}\n classProps={{\n fluidHeight: isFluid({\n autoHeight: otherProps.autoHeight,\n numRowsVisible: otherProps.numRowsVisible,\n paginated: usePagination,\n }),\n }}\n style={{ height }}\n {...containerProps}\n >\n {addOptionalHeaderComponents({ grid })}\n <Table {...grid} onDefaultFiltersLoad={onDefaultFiltersLoad}>\n {showHeader && <TableHeader />}\n {showRowsLoader ? (\n rowsLoaderRenderer()\n ) : (\n <TableBody\n isPlaceholderActive={\n noColumnsVisible ||\n (grid.composedRows.rows && grid.composedRows.rows.length === 0) ||\n grid.composedRows.length === 0\n }\n noResultsPlaceholder={bodyPlaceholder}\n />\n )}\n </Table>\n {addOptionalFooterComponents({\n grid,\n rows: grid.composedRows,\n })}\n </DatagridWrapper>\n );\n};\n\nexport { DataGridImpl };\n\nexport default DataGridImpl;\n", "import * as React from 'react';\nexport { React };\n"],
4
+ "sourcesContent": ["import React, { useMemo } from 'react';\nimport { isFunction, useDataGrid } from '@elliemae/ds-shared';\nimport { Table } from './components/Table.js';\nimport { TableBody } from './components/TableBody.js';\nimport { TableHeader } from './components/TableHeader.js';\nimport { defaultRenderers, renderRowsLoader } from './components/renderers/index.js';\nimport { DatagridWrapper } from './components/renderers/defaultClassedRenderers.js';\nimport { addOptionalFooterComponents } from './components/footer/addOptionalFooterComponents.js';\nimport { addOptionalHeaderComponents } from './components/header/addOptionalHeaderComponents.js';\nimport { EmptyState } from './components/EmptyState.js';\nimport { getPluginsFromProps } from './utilities/getPluginsFromProps.js';\nimport { defaultPlugins } from './defaultPlugins.js';\nimport { normalizeRows } from './utilities/normalizeData.js';\n\nconst isFluid = ({ autoHeight, paginated, numRowsVisible }) => {\n if (autoHeight) return false;\n if (paginated) return false;\n return !numRowsVisible;\n};\n\nconst DataGridImpl = ({\n className,\n renderers,\n columns,\n rows,\n containerProps,\n plugins: pluginsProp,\n normalizeDataKeys,\n ...otherProps\n}) => {\n const {\n noResultsPlaceholder = <EmptyState />,\n noColumnsPlaceholder = 'Please select one of more columns in order for data to be displayed.',\n noResultsRender,\n paginated,\n height,\n showHeader,\n showRowsLoader,\n rowsLoaderRenderer = renderRowsLoader,\n groupedRows,\n sortable,\n rowSize,\n wrapText,\n onDefaultFiltersLoad,\n rowKey,\n } = otherProps;\n\n const idKey = rowKey || 'id';\n const rowsIdsSet = new Set();\n const rowsIds = rows.map((row) => {\n if (row[idKey] === undefined) throw new Error('Missing id: each row must have an unique id');\n rowsIdsSet.add(row[idKey]);\n return row[idKey];\n });\n if (rowsIds.length !== rowsIdsSet.size) throw new Error('Repeated id: each row must have an unique id');\n\n const plugins = getPluginsFromProps({\n ...otherProps,\n virtualized: (!paginated || groupedRows) && !wrapText,\n paginated: (paginated && !groupedRows) || wrapText,\n sortable: sortable && !groupedRows,\n });\n\n if (normalizeDataKeys) {\n normalizeRows(rows);\n }\n\n const grid = useDataGrid({\n columns,\n rows,\n renderers: defaultRenderers,\n plugins: [...plugins, ...pluginsProp, ...defaultPlugins],\n ...otherProps,\n });\n\n const noColumnsVisible = useMemo(() => {\n const visibleUserColumns = grid.columns.filter((column) => column.visible || typeof column.visible === 'undefined');\n return visibleUserColumns.length === 0;\n }, [grid.columns]);\n\n const bodyPlaceholder = useMemo(() => {\n if (noColumnsVisible) {\n return noColumnsPlaceholder;\n }\n return isFunction(noResultsRender) ? noResultsRender() : noResultsPlaceholder;\n }, [noResultsPlaceholder, noColumnsPlaceholder, noColumnsVisible]);\n\n const { pagination } = otherProps;\n const conditionalPagination =\n pagination && pagination.conditionalPagination === true && rows.length <= otherProps.pagination.perPage;\n const usePagination = paginated && !conditionalPagination;\n return (\n <DatagridWrapper\n className={`${className} ds-row-size-${rowSize}`}\n classProps={{\n fluidHeight: isFluid({\n autoHeight: otherProps.autoHeight,\n numRowsVisible: otherProps.numRowsVisible,\n paginated: usePagination,\n }),\n }}\n style={{ height }}\n {...containerProps}\n >\n {addOptionalHeaderComponents({ grid })}\n <Table {...grid} onDefaultFiltersLoad={onDefaultFiltersLoad}>\n {showHeader && <TableHeader />}\n {showRowsLoader ? (\n rowsLoaderRenderer()\n ) : (\n <TableBody\n isPlaceholderActive={\n noColumnsVisible ||\n (grid.composedRows.rows && grid.composedRows.rows.length === 0) ||\n grid.composedRows.length === 0\n }\n noResultsPlaceholder={bodyPlaceholder}\n />\n )}\n </Table>\n {addOptionalFooterComponents({\n grid,\n rows: grid.composedRows,\n })}\n </DatagridWrapper>\n );\n};\n\nexport { DataGridImpl };\n\nexport default DataGridImpl;\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD+BI;AA/B3B,mBAA+B;AAC/B,uBAAwC;AACxC,mBAAsB;AACtB,uBAA0B;AAC1B,yBAA4B;AAC5B,uBAAmD;AACnD,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}
@@ -30,13 +30,13 @@ module.exports = __toCommonJS(PaginatedDataGrid_exports);
30
30
  var React = __toESM(require("react"));
31
31
  var import_jsx_runtime = require("react/jsx-runtime");
32
32
  var import_ds_shared = require("@elliemae/ds-shared");
33
- var import_Table = require("./components/Table");
34
- var import_renderers = require("./components/renderers");
35
- var import_defaultClassedRenderers = require("./components/renderers/defaultClassedRenderers");
36
- var import_addOptionalHeaderComponents = require("./components/header/addOptionalHeaderComponents");
37
- var import_getPluginsFromProps = require("./utilities/getPluginsFromProps");
38
- var import_Pagination = require("./plugins/pagination/components/Pagination");
39
- function PaginatedDataGrid({
33
+ var import_Table = require("./components/Table.js");
34
+ var import_renderers = require("./components/renderers/index.js");
35
+ var import_defaultClassedRenderers = require("./components/renderers/defaultClassedRenderers.js");
36
+ var import_addOptionalHeaderComponents = require("./components/header/addOptionalHeaderComponents.js");
37
+ var import_getPluginsFromProps = require("./utilities/getPluginsFromProps.js");
38
+ var import_Pagination = require("./plugins/pagination/components/Pagination.js");
39
+ const PaginatedDataGrid = ({
40
40
  columns,
41
41
  rows,
42
42
  showRowsLoader,
@@ -48,7 +48,7 @@ function PaginatedDataGrid({
48
48
  onPerPage,
49
49
  pagination,
50
50
  ...otherProps
51
- }) {
51
+ }) => {
52
52
  const plugins = (0, import_getPluginsFromProps.getPluginsFromProps)(otherProps, { infiniteScrolling: true });
53
53
  const grid = (0, import_ds_shared.useDataGrid)({
54
54
  ...otherProps,
@@ -75,6 +75,6 @@ function PaginatedDataGrid({
75
75
  }
76
76
  )
77
77
  ] });
78
- }
78
+ };
79
79
  var PaginatedDataGrid_default = PaginatedDataGrid;
80
80
  //# sourceMappingURL=PaginatedDataGrid.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/PaginatedDataGrid.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { useDataGrid } from '@elliemae/ds-shared';\nimport { Table } from './components/Table';\nimport { defaultRenderers, renderRowsLoader } from './components/renderers';\nimport { DatagridWrapper } from './components/renderers/defaultClassedRenderers';\nimport { addOptionalHeaderComponents } from './components/header/addOptionalHeaderComponents';\nimport { getPluginsFromProps } from './utilities/getPluginsFromProps';\nimport { Pagination } from './plugins/pagination/components/Pagination';\n\nfunction PaginatedDataGrid({\n columns,\n rows,\n showRowsLoader,\n noResultsPlaceholder,\n rowsLoaderRenderer = renderRowsLoader,\n maxPerPage,\n minPerPage,\n onPageSelect,\n onPerPage,\n pagination,\n ...otherProps\n}) {\n const plugins = getPluginsFromProps(otherProps, { infiniteScrolling: true });\n const grid = useDataGrid({\n ...otherProps,\n columns,\n rows,\n renderers: defaultRenderers,\n plugins,\n });\n\n return (\n <DatagridWrapper>\n {addOptionalHeaderComponents({ grid })}\n <Table {...grid}>\n <Table.Header />\n {showRowsLoader ? rowsLoaderRenderer() : <Table.Body rows={grid.composedRows.rows || grid.composedRows} />}\n </Table>\n <Pagination\n maxPerPage={maxPerPage}\n minPerPage={minPerPage}\n onPageSelect={onPageSelect}\n onPerPage={onPerPage}\n paginated={rows}\n pagination={pagination}\n />\n </DatagridWrapper>\n );\n}\n\nexport default PaginatedDataGrid;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkCjB;AAjCN,uBAA4B;AAC5B,mBAAsB;AACtB,uBAAmD;AACnD,qCAAgC;AAChC,yCAA4C;AAC5C,iCAAoC;AACpC,wBAA2B;AAE3B,SAAS,kBAAkB;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,qBAAqB;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,KACG;AACL,GAAG;AACD,QAAM,cAAU,gDAAoB,YAAY,EAAE,mBAAmB,KAAK,CAAC;AAC3E,QAAM,WAAO,8BAAY;AAAA,IACvB,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,EACF,CAAC;AAED,SACE,6CAAC,kDACE;AAAA,wEAA4B,EAAE,KAAK,CAAC;AAAA,IACrC,6CAAC,sBAAO,GAAG,MACT;AAAA,kDAAC,mBAAM,QAAN,EAAa;AAAA,MACb,iBAAiB,mBAAmB,IAAI,4CAAC,mBAAM,MAAN,EAAW,MAAM,KAAK,aAAa,QAAQ,KAAK,cAAc;AAAA,OAC1G;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,WAAW;AAAA,QACX;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;AAEA,IAAO,4BAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport { useDataGrid } from '@elliemae/ds-shared';\nimport { Table } from './components/Table.js';\nimport { defaultRenderers, renderRowsLoader } from './components/renderers/index.js';\nimport { DatagridWrapper } from './components/renderers/defaultClassedRenderers.js';\nimport { addOptionalHeaderComponents } from './components/header/addOptionalHeaderComponents.js';\nimport { getPluginsFromProps } from './utilities/getPluginsFromProps.js';\nimport { Pagination } from './plugins/pagination/components/Pagination.js';\n\nconst PaginatedDataGrid = ({\n columns,\n rows,\n showRowsLoader,\n noResultsPlaceholder,\n rowsLoaderRenderer = renderRowsLoader,\n maxPerPage,\n minPerPage,\n onPageSelect,\n onPerPage,\n pagination,\n ...otherProps\n}) => {\n const plugins = getPluginsFromProps(otherProps, { infiniteScrolling: true });\n const grid = useDataGrid({\n ...otherProps,\n columns,\n rows,\n renderers: defaultRenderers,\n plugins,\n });\n\n return (\n <DatagridWrapper>\n {addOptionalHeaderComponents({ grid })}\n <Table {...grid}>\n <Table.Header />\n {showRowsLoader ? rowsLoaderRenderer() : <Table.Body rows={grid.composedRows.rows || grid.composedRows} />}\n </Table>\n <Pagination\n maxPerPage={maxPerPage}\n minPerPage={minPerPage}\n onPageSelect={onPageSelect}\n onPerPage={onPerPage}\n paginated={rows}\n pagination={pagination}\n />\n </DatagridWrapper>\n );\n};\n\nexport default PaginatedDataGrid;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkCjB;AAjCN,uBAA4B;AAC5B,mBAAsB;AACtB,uBAAmD;AACnD,qCAAgC;AAChC,yCAA4C;AAC5C,iCAAoC;AACpC,wBAA2B;AAE3B,MAAM,oBAAoB,CAAC;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,qBAAqB;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,KACG;AACL,MAAM;AACJ,QAAM,cAAU,gDAAoB,YAAY,EAAE,mBAAmB,KAAK,CAAC;AAC3E,QAAM,WAAO,8BAAY;AAAA,IACvB,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,EACF,CAAC;AAED,SACE,6CAAC,kDACE;AAAA,wEAA4B,EAAE,KAAK,CAAC;AAAA,IACrC,6CAAC,sBAAO,GAAG,MACT;AAAA,kDAAC,mBAAM,QAAN,EAAa;AAAA,MACb,iBAAiB,mBAAmB,IAAI,4CAAC,mBAAM,MAAN,EAAW,MAAM,KAAK,aAAa,QAAQ,KAAK,cAAc;AAAA,OAC1G;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,WAAW;AAAA,QACX;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;AAEA,IAAO,4BAAQ;",
6
6
  "names": []
7
7
  }
@@ -30,8 +30,8 @@ module.exports = __toCommonJS(BodyList_exports);
30
30
  var React = __toESM(require("react"));
31
31
  var import_jsx_runtime = require("react/jsx-runtime");
32
32
  var import_react = __toESM(require("react"));
33
- var import_NoResults = require("./NoResults");
34
- function BodyWrapperDefaultRenderer({
33
+ var import_NoResults = require("./NoResults.js");
34
+ const BodyWrapperDefaultRenderer = ({
35
35
  component: Component,
36
36
  rows,
37
37
  rowRenderer,
@@ -39,8 +39,6 @@ function BodyWrapperDefaultRenderer({
39
39
  innerRef,
40
40
  innerBodyRef,
41
41
  ...otherBodyProps
42
- }) {
43
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { ...otherBodyProps, innerRef, children: rows.length ? rows.map((row, index) => rowRenderer(row, { index }, {})) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NoResults.NoResults, { innerRef, rowRenderer, children: noResultsPlaceholder }) });
44
- }
42
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { ...otherBodyProps, innerRef, children: rows.length ? rows.map((row, index) => rowRenderer(row, { index }, {})) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NoResults.NoResults, { innerRef, rowRenderer, children: noResultsPlaceholder }) });
45
43
  var BodyList_default = import_react.default.memo(BodyWrapperDefaultRenderer);
46
44
  //# sourceMappingURL=BodyList.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/BodyList.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { NoResults } from './NoResults';\n\nfunction BodyWrapperDefaultRenderer({\n component: Component,\n rows,\n rowRenderer,\n noResultsPlaceholder,\n innerRef,\n innerBodyRef,\n ...otherBodyProps\n}) {\n return (\n <Component {...otherBodyProps} innerRef={innerRef}>\n {rows.length ? (\n rows.map((row, index) => rowRenderer(row, { index }, {}))\n ) : (\n <NoResults innerRef={innerRef} rowRenderer={rowRenderer}>\n {noResultsPlaceholder}\n </NoResults>\n )}\n </Component>\n );\n}\n\nexport default React.memo(BodyWrapperDefaultRenderer);\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADiBf;AAjBR,mBAAkB;AAClB,uBAA0B;AAE1B,SAAS,2BAA2B;AAAA,EAClC,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,KACG;AACL,GAAG;AACD,SACE,4CAAC,aAAW,GAAG,gBAAgB,UAC5B,eAAK,SACJ,KAAK,IAAI,CAAC,KAAK,UAAU,YAAY,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,IAExD,4CAAC,8BAAU,UAAoB,aAC5B,gCACH,GAEJ;AAEJ;AAEA,IAAO,mBAAQ,aAAAA,QAAM,KAAK,0BAA0B;",
4
+ "sourcesContent": ["import React from 'react';\nimport { NoResults } from './NoResults.js';\n\nconst BodyWrapperDefaultRenderer = ({\n component: Component,\n rows,\n rowRenderer,\n noResultsPlaceholder,\n innerRef,\n innerBodyRef,\n ...otherBodyProps\n}) => (\n <Component {...otherBodyProps} innerRef={innerRef}>\n {rows.length ? (\n rows.map((row, index) => rowRenderer(row, { index }, {}))\n ) : (\n <NoResults innerRef={innerRef} rowRenderer={rowRenderer}>\n {noResultsPlaceholder}\n </NoResults>\n )}\n </Component>\n);\n\nexport default React.memo(BodyWrapperDefaultRenderer);\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgBjB;AAhBN,mBAAkB;AAClB,uBAA0B;AAE1B,MAAM,6BAA6B,CAAC;AAAA,EAClC,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,KACG;AACL,MACE,4CAAC,aAAW,GAAG,gBAAgB,UAC5B,eAAK,SACJ,KAAK,IAAI,CAAC,KAAK,UAAU,YAAY,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,IAExD,4CAAC,8BAAU,UAAoB,aAC5B,gCACH,GAEJ;AAGF,IAAO,mBAAQ,aAAAA,QAAM,KAAK,0BAA0B;",
6
6
  "names": ["React"]
7
7
  }
@@ -28,12 +28,7 @@ __export(ColumnVisibilityMenuOption_exports, {
28
28
  });
29
29
  module.exports = __toCommonJS(ColumnVisibilityMenuOption_exports);
30
30
  var React = __toESM(require("react"));
31
- const getColumnVisibilityMenuOption = ({
32
- columns,
33
- onColumnVisibilityChange,
34
- searchable,
35
- height
36
- }) => {
31
+ const getColumnVisibilityMenuOption = ({ columns, onColumnVisibilityChange, searchable, height }) => {
37
32
  const { items, active } = columns.reduce(
38
33
  (result, column, index) => ({
39
34
  items: [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/ColumnVisibilityMenuOption.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export const getColumnVisibilityMenuOption = ({\n columns,\n onColumnVisibilityChange,\n searchable,\n height,\n}) => {\n const { items, active } = columns.reduce(\n (result, column, index) => ({\n items: [\n ...result.items,\n {\n id: column.property,\n label: column.label,\n checked: column.visible,\n onClick: () => onColumnVisibilityChange(column, index),\n },\n ],\n active: !column.visible\n ? result.active\n : [...result.active, column.property],\n }),\n {\n items: [],\n active: [],\n },\n );\n\n return {\n type: 'SelectionGroup',\n id: 'column-visibility-option',\n multi: true,\n searchable,\n closeOnClick: false,\n active,\n items,\n height,\n };\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,gCAAgC,CAAC;AAAA,EAC5C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,EAAE,OAAO,OAAO,IAAI,QAAQ;AAAA,IAChC,CAAC,QAAQ,QAAQ,WAAW;AAAA,MAC1B,OAAO;AAAA,QACL,GAAG,OAAO;AAAA,QACV;AAAA,UACE,IAAI,OAAO;AAAA,UACX,OAAO,OAAO;AAAA,UACd,SAAS,OAAO;AAAA,UAChB,SAAS,MAAM,yBAAyB,QAAQ,KAAK;AAAA,QACvD;AAAA,MACF;AAAA,MACA,QAAQ,CAAC,OAAO,UACZ,OAAO,SACP,CAAC,GAAG,OAAO,QAAQ,OAAO,QAAQ;AAAA,IACxC;AAAA,IACA;AAAA,MACE,OAAO,CAAC;AAAA,MACR,QAAQ,CAAC;AAAA,IACX;AAAA,EACF;AAEA,SAAO;AAAA,IACL,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,IACP;AAAA,IACA,cAAc;AAAA,IACd;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["export const getColumnVisibilityMenuOption = ({ columns, onColumnVisibilityChange, searchable, height }) => {\n const { items, active } = columns.reduce(\n (result, column, index) => ({\n items: [\n ...result.items,\n {\n id: column.property,\n label: column.label,\n checked: column.visible,\n onClick: () => onColumnVisibilityChange(column, index),\n },\n ],\n active: !column.visible ? result.active : [...result.active, column.property],\n }),\n {\n items: [],\n active: [],\n },\n );\n\n return {\n type: 'SelectionGroup',\n id: 'column-visibility-option',\n multi: true,\n searchable,\n closeOnClick: false,\n active,\n items,\n height,\n };\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,gCAAgC,CAAC,EAAE,SAAS,0BAA0B,YAAY,OAAO,MAAM;AAC1G,QAAM,EAAE,OAAO,OAAO,IAAI,QAAQ;AAAA,IAChC,CAAC,QAAQ,QAAQ,WAAW;AAAA,MAC1B,OAAO;AAAA,QACL,GAAG,OAAO;AAAA,QACV;AAAA,UACE,IAAI,OAAO;AAAA,UACX,OAAO,OAAO;AAAA,UACd,SAAS,OAAO;AAAA,UAChB,SAAS,MAAM,yBAAyB,QAAQ,KAAK;AAAA,QACvD;AAAA,MACF;AAAA,MACA,QAAQ,CAAC,OAAO,UAAU,OAAO,SAAS,CAAC,GAAG,OAAO,QAAQ,OAAO,QAAQ;AAAA,IAC9E;AAAA,IACA;AAAA,MACE,OAAO,CAAC;AAAA,MACR,QAAQ,CAAC;AAAA,IACX;AAAA,EACF;AAEA,SAAO;AAAA,IACL,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,IACP;AAAA,IACA,cAAc;AAAA,IACd;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;",
6
6
  "names": []
7
7
  }
@@ -36,7 +36,7 @@ const ColumnsOptionsMenuSection = ({
36
36
  onColumnVisibilityChange,
37
37
  searchable = false,
38
38
  height
39
- }) => () => {
39
+ }) => function() {
40
40
  const { items, active } = columns.reduce(
41
41
  (result, column, index) => ({
42
42
  items: [
@@ -52,16 +52,7 @@ const ColumnsOptionsMenuSection = ({
52
52
  }),
53
53
  { items: [], active: [] }
54
54
  );
55
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
56
- import_ds_menu.Menu.SelectionGroup,
57
- {
58
- active,
59
- height,
60
- items,
61
- multi: true,
62
- searchable
63
- }
64
- );
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_menu.Menu.SelectionGroup, { active, height, items, multi: true, searchable });
65
56
  };
66
57
  var ColumnsOptionsMenuSection_default = ColumnsOptionsMenuSection;
67
58
  //# sourceMappingURL=ColumnsOptionsMenuSection.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/ColumnsOptionsMenuSection.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { Menu } from '@elliemae/ds-menu';\n\nconst ColumnsOptionsMenuSection = ({\n columns,\n onColumnVisibilityChange,\n searchable = false,\n height,\n // eslint-disable-next-line react/display-name\n}) => () => {\n const { items, active } = columns.reduce(\n (result, column, index) => ({\n items: [\n ...result.items,\n {\n id: column.property,\n label: column.label,\n checked: column.visible,\n onClick: () => onColumnVisibilityChange(column, index),\n },\n ],\n active:\n typeof column.visible === 'undefined' || column.visible\n ? [...result.active, column.property]\n : result.active,\n }),\n { items: [], active: [] },\n );\n return (\n <Menu.SelectionGroup\n active={active}\n height={height}\n items={items}\n multi\n searchable={searchable}\n />\n );\n};\n\nexport { ColumnsOptionsMenuSection };\nexport default ColumnsOptionsMenuSection;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD6BnB;AA5BJ,qBAAqB;AAErB,MAAM,4BAA4B,CAAC;AAAA,EACjC;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb;AAEF,MAAM,MAAM;AACV,QAAM,EAAE,OAAO,OAAO,IAAI,QAAQ;AAAA,IAChC,CAAC,QAAQ,QAAQ,WAAW;AAAA,MAC1B,OAAO;AAAA,QACL,GAAG,OAAO;AAAA,QACV;AAAA,UACE,IAAI,OAAO;AAAA,UACX,OAAO,OAAO;AAAA,UACd,SAAS,OAAO;AAAA,UAChB,SAAS,MAAM,yBAAyB,QAAQ,KAAK;AAAA,QACvD;AAAA,MACF;AAAA,MACA,QACE,OAAO,OAAO,YAAY,eAAe,OAAO,UAC5C,CAAC,GAAG,OAAO,QAAQ,OAAO,QAAQ,IAClC,OAAO;AAAA,IACf;AAAA,IACA,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,EAAE;AAAA,EAC1B;AACA,SACE;AAAA,IAAC,oBAAK;AAAA,IAAL;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAK;AAAA,MACL;AAAA;AAAA,EACF;AAEJ;AAGA,IAAO,oCAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport { Menu } from '@elliemae/ds-menu';\n\nconst ColumnsOptionsMenuSection = ({\n columns,\n onColumnVisibilityChange,\n searchable = false,\n height,\n // eslint-disable-next-line react/display-name\n}) =>\n function () {\n const { items, active } = columns.reduce(\n (result, column, index) => ({\n items: [\n ...result.items,\n {\n id: column.property,\n label: column.label,\n checked: column.visible,\n onClick: () => onColumnVisibilityChange(column, index),\n },\n ],\n active:\n typeof column.visible === 'undefined' || column.visible ? [...result.active, column.property] : result.active,\n }),\n { items: [], active: [] },\n );\n return <Menu.SelectionGroup active={active} height={height} items={items} multi searchable={searchable} />;\n };\n\nexport { ColumnsOptionsMenuSection };\nexport default ColumnsOptionsMenuSection;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD2BZ;AA1BX,qBAAqB;AAErB,MAAM,4BAA4B,CAAC;AAAA,EACjC;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb;AAEF,MACE,WAAY;AACV,QAAM,EAAE,OAAO,OAAO,IAAI,QAAQ;AAAA,IAChC,CAAC,QAAQ,QAAQ,WAAW;AAAA,MAC1B,OAAO;AAAA,QACL,GAAG,OAAO;AAAA,QACV;AAAA,UACE,IAAI,OAAO;AAAA,UACX,OAAO,OAAO;AAAA,UACd,SAAS,OAAO;AAAA,UAChB,SAAS,MAAM,yBAAyB,QAAQ,KAAK;AAAA,QACvD;AAAA,MACF;AAAA,MACA,QACE,OAAO,OAAO,YAAY,eAAe,OAAO,UAAU,CAAC,GAAG,OAAO,QAAQ,OAAO,QAAQ,IAAI,OAAO;AAAA,IAC3G;AAAA,IACA,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,EAAE;AAAA,EAC1B;AACA,SAAO,4CAAC,oBAAK,gBAAL,EAAoB,QAAgB,QAAgB,OAAc,OAAK,MAAC,YAAwB;AAC1G;AAGF,IAAO,oCAAQ;",
6
6
  "names": []
7
7
  }
@@ -33,18 +33,17 @@ var import_ds_grid = require("@elliemae/ds-grid");
33
33
  var import_ds_icons = require("@elliemae/ds-icons");
34
34
  var import_ds_system = require("@elliemae/ds-system");
35
35
  var import_ds_button = require("@elliemae/ds-button");
36
- var import_ds_system2 = require("@elliemae/ds-system");
37
- const EmptyStateWrapper = (0, import_ds_system2.styled)(import_ds_grid.Grid)`
36
+ const EmptyStateWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
38
37
  min-width: 132px; /* fixed size in px according to specs */
39
38
  max-width: 384px; /* fixed size in px according to specs */
40
39
  height: fit-content;
41
40
  `;
42
- const Icon = (0, import_ds_system2.styled)(import_ds_icons.WarningTriangle)`
41
+ const Icon = (0, import_ds_system.styled)(import_ds_icons.WarningTriangle)`
43
42
  fill: ${(props) => props.theme.colors.neutral[300]};
44
43
  color: ${(props) => props.theme.colors.neutral[300]};
45
44
  justify-self: center;
46
45
  `;
47
- const PrimaryMessage = import_ds_system2.styled.p`
46
+ const PrimaryMessage = import_ds_system.styled.p`
48
47
  text-align: center;
49
48
  font-weight: 600;
50
49
  font-size: ${(props) => (0, import_ds_system.toMobile)(props.theme.fontSizes.value[400])};
@@ -52,13 +51,13 @@ const PrimaryMessage = import_ds_system2.styled.p`
52
51
  margin-top: ${(props) => (0, import_ds_system.__UNSAFE_SPACE_TO_DIMSUM)(props.theme.space.s)};
53
52
  margin-bottom: ${(props) => (0, import_ds_system.__UNSAFE_SPACE_TO_DIMSUM)(props.theme.space.xs)};
54
53
  `;
55
- const SecondaryMessage = import_ds_system2.styled.p`
54
+ const SecondaryMessage = import_ds_system.styled.p`
56
55
  text-align: center;
57
56
  font-size: ${(props) => (0, import_ds_system.toMobile)(props.theme.fontSizes.value[400])}; /* 13px */
58
57
  color: ${(props) => props.theme.colors.neutral[500]};
59
58
  margin: 0;
60
59
  `;
61
- const Button = (0, import_ds_system2.styled)(import_ds_button.DSButton)`
60
+ const Button = (0, import_ds_system.styled)(import_ds_button.DSButton)`
62
61
  margin-top: ${(props) => (0, import_ds_system.__UNSAFE_SPACE_TO_DIMSUM)(props.theme.space.m)};
63
62
  justify-self: center;
64
63
  width: fit-content;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/EmptyState.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { WarningTriangle } from '@elliemae/ds-icons';\nimport { __UNSAFE_SPACE_TO_DIMSUM, toMobile } from '@elliemae/ds-system';\nimport { DSButton } from '@elliemae/ds-button';\nimport { styled } from '@elliemae/ds-system';\n\nconst EmptyStateWrapper = styled(Grid)`\n min-width: 132px; /* fixed size in px according to specs */\n max-width: 384px; /* fixed size in px according to specs */\n height: fit-content;\n`;\n\nconst Icon = styled(WarningTriangle)`\n fill: ${(props) => props.theme.colors.neutral[300]};\n color: ${(props) => props.theme.colors.neutral[300]};\n justify-self: center;\n`;\n\nconst PrimaryMessage = styled.p`\n text-align: center;\n font-weight: 600;\n font-size: ${(props) => toMobile(props.theme.fontSizes.value[400])};\n color: ${(props) => props.theme.colors.neutral[600]};\n margin-top: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.s)};\n margin-bottom: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)};\n`;\nconst SecondaryMessage = styled.p`\n text-align: center;\n font-size: ${(props) => toMobile(props.theme.fontSizes.value[400])}; /* 13px */\n color: ${(props) => props.theme.colors.neutral[500]};\n margin: 0;\n`;\nconst Button = styled(DSButton)`\n margin-top: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m)};\n justify-self: center;\n width: fit-content;\n`;\n\nexport const EmptyState = ({\n primaryMessage = 'No Results Found',\n secondaryMessage,\n buttonLabel,\n onButtonClick = () => {},\n}) => (\n <EmptyStateWrapper>\n <Icon size=\"xxl\" />\n {primaryMessage && <PrimaryMessage>{primaryMessage}</PrimaryMessage>}\n {secondaryMessage && <SecondaryMessage>{secondaryMessage}</SecondaryMessage>}\n {buttonLabel && <Button buttonType=\"secondary\" labelText={buttonLabel} onClick={onButtonClick} />}\n </EmptyStateWrapper>\n);\n", "import * as React from 'react';\nexport { React };\n"],
5
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AAAA,GACjG;",
6
- "names": ["import_ds_system"]
4
+ "sourcesContent": ["import React from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { WarningTriangle } from '@elliemae/ds-icons';\nimport { __UNSAFE_SPACE_TO_DIMSUM, toMobile, styled } from '@elliemae/ds-system';\nimport { DSButton } from '@elliemae/ds-button';\n\nconst EmptyStateWrapper = styled(Grid)`\n min-width: 132px; /* fixed size in px according to specs */\n max-width: 384px; /* fixed size in px according to specs */\n height: fit-content;\n`;\n\nconst Icon = styled(WarningTriangle)`\n fill: ${(props) => props.theme.colors.neutral[300]};\n color: ${(props) => props.theme.colors.neutral[300]};\n justify-self: center;\n`;\n\nconst PrimaryMessage = styled.p`\n text-align: center;\n font-weight: 600;\n font-size: ${(props) => toMobile(props.theme.fontSizes.value[400])};\n color: ${(props) => props.theme.colors.neutral[600]};\n margin-top: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.s)};\n margin-bottom: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)};\n`;\nconst SecondaryMessage = styled.p`\n text-align: center;\n font-size: ${(props) => toMobile(props.theme.fontSizes.value[400])}; /* 13px */\n color: ${(props) => props.theme.colors.neutral[500]};\n margin: 0;\n`;\nconst Button = styled(DSButton)`\n margin-top: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m)};\n justify-self: center;\n width: fit-content;\n`;\n\nexport const EmptyState = ({\n primaryMessage = 'No Results Found',\n secondaryMessage,\n buttonLabel,\n onButtonClick = () => {},\n}) => (\n <EmptyStateWrapper>\n <Icon size=\"xxl\" />\n {primaryMessage && <PrimaryMessage>{primaryMessage}</PrimaryMessage>}\n {secondaryMessage && <SecondaryMessage>{secondaryMessage}</SecondaryMessage>}\n {buttonLabel && <Button buttonType=\"secondary\" labelText={buttonLabel} onClick={onButtonClick} />}\n </EmptyStateWrapper>\n);\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;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 __export(List_exports, {
29
29
  module.exports = __toCommonJS(List_exports);
30
30
  var React = __toESM(require("react"));
31
31
  var import_jsx_runtime = require("react/jsx-runtime");
32
- function List(props, instance) {
32
+ const List = (props, instance) => {
33
33
  const { renderers, getListProps } = instance.getInstance();
34
34
  const ListComponent = renderers.list;
35
35
  const mixedProps = getListProps(props);
36
36
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ListComponent, { ...mixedProps });
37
- }
37
+ };
38
38
  var List_default = List;
39
39
  //# sourceMappingURL=List.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/List.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\n\nfunction List(props, instance) {\n // todo: add should list update to memoize this\n const { renderers, getListProps } = instance.getInstance();\n const ListComponent = renderers.list;\n\n // props from component props and plugins\n const mixedProps = getListProps(props);\n return <ListComponent {...mixedProps} />;\n}\n\nexport default List;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADSd;AAPT,SAAS,KAAK,OAAO,UAAU;AAE7B,QAAM,EAAE,WAAW,aAAa,IAAI,SAAS,YAAY;AACzD,QAAM,gBAAgB,UAAU;AAGhC,QAAM,aAAa,aAAa,KAAK;AACrC,SAAO,4CAAC,iBAAe,GAAG,YAAY;AACxC;AAEA,IAAO,eAAQ;",
4
+ "sourcesContent": ["import React from 'react';\n\nconst List = (props, instance) => {\n // todo: add should list update to memoize this\n const { renderers, getListProps } = instance.getInstance();\n const ListComponent = renderers.list;\n\n // props from component props and plugins\n const mixedProps = getListProps(props);\n return <ListComponent {...mixedProps} />;\n};\n\nexport default List;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADSd;AAPT,MAAM,OAAO,CAAC,OAAO,aAAa;AAEhC,QAAM,EAAE,WAAW,aAAa,IAAI,SAAS,YAAY;AACzD,QAAM,gBAAgB,UAAU;AAGhC,QAAM,aAAa,aAAa,KAAK;AACrC,SAAO,4CAAC,iBAAe,GAAG,YAAY;AACxC;AAEA,IAAO,eAAQ;",
6
6
  "names": []
7
7
  }
@@ -29,7 +29,7 @@ __export(ListItem_exports, {
29
29
  module.exports = __toCommonJS(ListItem_exports);
30
30
  var React = __toESM(require("react"));
31
31
  var import_jsx_runtime = require("react/jsx-runtime");
32
- function ListItem(props, instance) {
32
+ const ListItem = (props, instance) => {
33
33
  const { record } = props;
34
34
  const {
35
35
  renderers,
@@ -37,12 +37,9 @@ function ListItem(props, instance) {
37
37
  decorators: { itemRenderer }
38
38
  } = instance.getInstance();
39
39
  const mixedProps = getItemProps(props);
40
- const children = itemRenderer.reduce(
41
- (result, formatter) => formatter(result, record, instance),
42
- record.data.name
43
- );
40
+ const children = itemRenderer.reduce((result, formatter) => formatter(result, record, instance), record.data.name);
44
41
  const ItemComponent = renderers.list;
45
42
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemComponent, { record, ...mixedProps, children });
46
- }
43
+ };
47
44
  var ListItem_default = ListItem;
48
45
  //# sourceMappingURL=ListItem.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/ListItem.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\n\nfunction ListItem(props, instance) {\n const { record } = props;\n const {\n renderers,\n getItemProps,\n decorators: { itemRenderer },\n } = instance.getInstance();\n\n // props from component props and plugins\n const mixedProps = getItemProps(props);\n\n const children = itemRenderer.reduce(\n (result, formatter) => formatter(result, record, instance),\n record.data.name,\n );\n\n const ItemComponent = renderers.list;\n return (\n <ItemComponent record={record} {...mixedProps}>\n {children}\n </ItemComponent>\n );\n}\n\nexport default ListItem;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoBnB;AAlBJ,SAAS,SAAS,OAAO,UAAU;AACjC,QAAM,EAAE,OAAO,IAAI;AACnB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,YAAY,EAAE,aAAa;AAAA,EAC7B,IAAI,SAAS,YAAY;AAGzB,QAAM,aAAa,aAAa,KAAK;AAErC,QAAM,WAAW,aAAa;AAAA,IAC5B,CAAC,QAAQ,cAAc,UAAU,QAAQ,QAAQ,QAAQ;AAAA,IACzD,OAAO,KAAK;AAAA,EACd;AAEA,QAAM,gBAAgB,UAAU;AAChC,SACE,4CAAC,iBAAc,QAAiB,GAAG,YAChC,UACH;AAEJ;AAEA,IAAO,mBAAQ;",
4
+ "sourcesContent": ["import React from 'react';\n\nconst ListItem = (props, instance) => {\n const { record } = props;\n const {\n renderers,\n getItemProps,\n decorators: { itemRenderer },\n } = instance.getInstance();\n\n // props from component props and plugins\n const mixedProps = getItemProps(props);\n\n const children = itemRenderer.reduce((result, formatter) => formatter(result, record, instance), record.data.name);\n\n const ItemComponent = renderers.list;\n return (\n <ItemComponent record={record} {...mixedProps}>\n {children}\n </ItemComponent>\n );\n};\n\nexport default ListItem;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADiBnB;AAfJ,MAAM,WAAW,CAAC,OAAO,aAAa;AACpC,QAAM,EAAE,OAAO,IAAI;AACnB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,YAAY,EAAE,aAAa;AAAA,EAC7B,IAAI,SAAS,YAAY;AAGzB,QAAM,aAAa,aAAa,KAAK;AAErC,QAAM,WAAW,aAAa,OAAO,CAAC,QAAQ,cAAc,UAAU,QAAQ,QAAQ,QAAQ,GAAG,OAAO,KAAK,IAAI;AAEjH,QAAM,gBAAgB,UAAU;AAChC,SACE,4CAAC,iBAAc,QAAiB,GAAG,YAChC,UACH;AAEJ;AAEA,IAAO,mBAAQ;",
6
6
  "names": []
7
7
  }