@elliemae/ds-datagrids 3.16.0-next.11 → 3.16.0-next.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (339) hide show
  1. package/dist/cjs/DSDataGrid.js +143 -0
  2. package/dist/cjs/DSDataGrid.js.map +1 -1
  3. package/dist/cjs/DataGridImpl.js +4 -0
  4. package/dist/cjs/DataGridImpl.js.map +1 -1
  5. package/dist/cjs/PaginatedDataGrid.js +4 -0
  6. package/dist/cjs/PaginatedDataGrid.js.map +1 -1
  7. package/dist/cjs/blockNames.js +4 -0
  8. package/dist/cjs/blockNames.js.map +1 -1
  9. package/dist/cjs/columns/IconColumn.js +4 -0
  10. package/dist/cjs/columns/IconColumn.js.map +1 -1
  11. package/dist/cjs/columns/NumberColumn.js +4 -0
  12. package/dist/cjs/columns/NumberColumn.js.map +1 -1
  13. package/dist/cjs/components/BodyCell.js +6 -0
  14. package/dist/cjs/components/BodyCell.js.map +1 -1
  15. package/dist/cjs/components/BodyList.js +4 -0
  16. package/dist/cjs/components/BodyList.js.map +1 -1
  17. package/dist/cjs/components/ColumnVisibilityMenuOption.js +4 -0
  18. package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +1 -1
  19. package/dist/cjs/components/ColumnsOptionsMenuSection.js +5 -0
  20. package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +1 -1
  21. package/dist/cjs/components/EmptyState.js +4 -0
  22. package/dist/cjs/components/EmptyState.js.map +1 -1
  23. package/dist/cjs/components/HeaderCell.js +4 -0
  24. package/dist/cjs/components/HeaderCell.js.map +1 -1
  25. package/dist/cjs/components/List.js +4 -0
  26. package/dist/cjs/components/List.js.map +1 -1
  27. package/dist/cjs/components/ListItem.js +4 -0
  28. package/dist/cjs/components/ListItem.js.map +1 -1
  29. package/dist/cjs/components/NoResults.js +4 -0
  30. package/dist/cjs/components/NoResults.js.map +1 -1
  31. package/dist/cjs/components/RowsLoader.js +4 -0
  32. package/dist/cjs/components/RowsLoader.js.map +1 -1
  33. package/dist/cjs/components/Table.js +4 -0
  34. package/dist/cjs/components/Table.js.map +1 -1
  35. package/dist/cjs/components/TableBody.js +4 -0
  36. package/dist/cjs/components/TableBody.js.map +1 -1
  37. package/dist/cjs/components/TableHeader.js +4 -0
  38. package/dist/cjs/components/TableHeader.js.map +1 -1
  39. package/dist/cjs/components/footer/addOptionalFooterComponents.js +4 -0
  40. package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +1 -1
  41. package/dist/cjs/components/header/PrimaryControls.js +4 -0
  42. package/dist/cjs/components/header/PrimaryControls.js.map +1 -1
  43. package/dist/cjs/components/header/addOptionalHeaderComponents.js +4 -0
  44. package/dist/cjs/components/header/addOptionalHeaderComponents.js.map +1 -1
  45. package/dist/cjs/components/index.js +4 -0
  46. package/dist/cjs/components/index.js.map +1 -1
  47. package/dist/cjs/components/renderers/defaultClassedRenderers.js +4 -0
  48. package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +1 -1
  49. package/dist/cjs/components/renderers/index.js +4 -0
  50. package/dist/cjs/components/renderers/index.js.map +1 -1
  51. package/dist/cjs/components/renderers/renderRowsLoader.js +4 -0
  52. package/dist/cjs/components/renderers/renderRowsLoader.js.map +1 -1
  53. package/dist/cjs/components/tableContext.js +4 -0
  54. package/dist/cjs/components/tableContext.js.map +1 -1
  55. package/dist/cjs/defaultPlugins.js +4 -0
  56. package/dist/cjs/defaultPlugins.js.map +1 -1
  57. package/dist/cjs/index.js +4 -0
  58. package/dist/cjs/index.js.map +1 -1
  59. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +4 -0
  60. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +1 -1
  61. package/dist/cjs/plugins/body-header-scroll-sync/index.js +4 -0
  62. package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +1 -1
  63. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +4 -0
  64. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +1 -1
  65. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +4 -0
  66. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +1 -1
  67. package/dist/cjs/plugins/column-dnd/index.js +4 -0
  68. package/dist/cjs/plugins/column-dnd/index.js.map +1 -1
  69. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +4 -0
  70. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +1 -1
  71. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js +4 -0
  72. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +1 -1
  73. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +4 -0
  74. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +1 -1
  75. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +4 -0
  76. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +1 -1
  77. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js +4 -0
  78. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +1 -1
  79. package/dist/cjs/plugins/column-sizing/index.js +4 -0
  80. package/dist/cjs/plugins/column-sizing/index.js.map +1 -1
  81. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +4 -0
  82. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +1 -1
  83. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +5 -0
  84. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +1 -1
  85. package/dist/cjs/plugins/column-sizing/utils.js +4 -0
  86. package/dist/cjs/plugins/column-sizing/utils.js.map +1 -1
  87. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +4 -0
  88. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +1 -1
  89. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +5 -0
  90. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +1 -1
  91. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +4 -0
  92. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +1 -1
  93. package/dist/cjs/plugins/custom-cell-renderer/index.js +4 -0
  94. package/dist/cjs/plugins/custom-cell-renderer/index.js.map +1 -1
  95. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +4 -0
  96. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +1 -1
  97. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +4 -0
  98. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +1 -1
  99. package/dist/cjs/plugins/editable/EditableComponents/index.js +4 -0
  100. package/dist/cjs/plugins/editable/EditableComponents/index.js.map +1 -1
  101. package/dist/cjs/plugins/editable/EditablePlugin.js +4 -0
  102. package/dist/cjs/plugins/editable/EditablePlugin.js.map +1 -1
  103. package/dist/cjs/plugins/editable/decorateEditable.js +4 -0
  104. package/dist/cjs/plugins/editable/decorateEditable.js.map +1 -1
  105. package/dist/cjs/plugins/editable/getEditorComponent.js +4 -0
  106. package/dist/cjs/plugins/editable/getEditorComponent.js.map +1 -1
  107. package/dist/cjs/plugins/editable/index.js +4 -0
  108. package/dist/cjs/plugins/editable/index.js.map +1 -1
  109. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +4 -0
  110. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +1 -1
  111. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +4 -0
  112. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +1 -1
  113. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +4 -0
  114. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +1 -1
  115. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +4 -0
  116. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +1 -1
  117. package/dist/cjs/plugins/expandable-grid/index.js +4 -0
  118. package/dist/cjs/plugins/expandable-grid/index.js.map +1 -1
  119. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +4 -0
  120. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +1 -1
  121. package/dist/cjs/plugins/export-data/ExportDataPlugin.js +4 -0
  122. package/dist/cjs/plugins/export-data/ExportDataPlugin.js.map +1 -1
  123. package/dist/cjs/plugins/export-data/index.js +4 -0
  124. package/dist/cjs/plugins/export-data/index.js.map +1 -1
  125. package/dist/cjs/plugins/filterable/FilterablePlugin.js +4 -0
  126. package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +1 -1
  127. package/dist/cjs/plugins/filterable/addFilterToColumn.js +4 -0
  128. package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +1 -1
  129. package/dist/cjs/plugins/filterable/components/FilterableHeader.js +4 -0
  130. package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +1 -1
  131. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +5 -0
  132. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +1 -1
  133. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +4 -0
  134. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +1 -1
  135. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +5 -0
  136. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +1 -1
  137. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +4 -0
  138. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +1 -1
  139. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +4 -0
  140. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +1 -1
  141. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +4 -0
  142. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +1 -1
  143. package/dist/cjs/plugins/filterable/filterableFormatter.js +4 -0
  144. package/dist/cjs/plugins/filterable/filterableFormatter.js.map +1 -1
  145. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +4 -0
  146. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +1 -1
  147. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +4 -0
  148. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +1 -1
  149. package/dist/cjs/plugins/filterable/helper.js +4 -0
  150. package/dist/cjs/plugins/filterable/helper.js.map +1 -1
  151. package/dist/cjs/plugins/filterable/index.js +4 -0
  152. package/dist/cjs/plugins/filterable/index.js.map +1 -1
  153. package/dist/cjs/plugins/filterable/useFilterableState.js +4 -0
  154. package/dist/cjs/plugins/filterable/useFilterableState.js.map +1 -1
  155. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js +4 -0
  156. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js.map +1 -1
  157. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +16 -8
  158. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +1 -1
  159. package/dist/cjs/plugins/grouping-grid/walkStrategy.js +4 -0
  160. package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +1 -1
  161. package/dist/cjs/plugins/index.js +4 -0
  162. package/dist/cjs/plugins/index.js.map +1 -1
  163. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +4 -0
  164. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +1 -1
  165. package/dist/cjs/plugins/infinite-scrolling/index.js +4 -0
  166. package/dist/cjs/plugins/infinite-scrolling/index.js.map +1 -1
  167. package/dist/cjs/plugins/pagination/PaginationPlugin.js +5 -0
  168. package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +1 -1
  169. package/dist/cjs/plugins/pagination/components/Pagination.js +4 -0
  170. package/dist/cjs/plugins/pagination/components/Pagination.js.map +1 -1
  171. package/dist/cjs/plugins/pagination/components/Paginator.js +4 -0
  172. package/dist/cjs/plugins/pagination/components/Paginator.js.map +1 -1
  173. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +4 -0
  174. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +1 -1
  175. package/dist/cjs/plugins/pagination/helper.js +4 -0
  176. package/dist/cjs/plugins/pagination/helper.js.map +1 -1
  177. package/dist/cjs/plugins/pagination/index.js +4 -0
  178. package/dist/cjs/plugins/pagination/index.js.map +1 -1
  179. package/dist/cjs/plugins/pagination/usePaginationState.js +4 -0
  180. package/dist/cjs/plugins/pagination/usePaginationState.js.map +1 -1
  181. package/dist/cjs/plugins/resizable/ResizablePlugin.js +4 -0
  182. package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +1 -1
  183. package/dist/cjs/plugins/resizable/decorateResizable.js +4 -0
  184. package/dist/cjs/plugins/resizable/decorateResizable.js.map +1 -1
  185. package/dist/cjs/plugins/resizable/index.js +4 -0
  186. package/dist/cjs/plugins/resizable/index.js.map +1 -1
  187. package/dist/cjs/plugins/resizable/useResizeHandle.js +8 -1
  188. package/dist/cjs/plugins/resizable/useResizeHandle.js.map +1 -1
  189. package/dist/cjs/plugins/resizable/utils.js +4 -0
  190. package/dist/cjs/plugins/resizable/utils.js.map +1 -1
  191. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js +5 -0
  192. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js.map +1 -1
  193. package/dist/cjs/plugins/row-dnd/index.js +4 -0
  194. package/dist/cjs/plugins/row-dnd/index.js.map +1 -1
  195. package/dist/cjs/plugins/selectable/SelectablePlugin.js +4 -0
  196. package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +1 -1
  197. package/dist/cjs/plugins/selectable/addSelectableColumn.js +6 -0
  198. package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +1 -1
  199. package/dist/cjs/plugins/selectable/helper.js +4 -0
  200. package/dist/cjs/plugins/selectable/helper.js.map +1 -1
  201. package/dist/cjs/plugins/selectable/index.js +4 -0
  202. package/dist/cjs/plugins/selectable/index.js.map +1 -1
  203. package/dist/cjs/plugins/selectable/selectableFormatter.js +4 -0
  204. package/dist/cjs/plugins/selectable/selectableFormatter.js.map +1 -1
  205. package/dist/cjs/plugins/selectable/useSelectableState.js +6 -0
  206. package/dist/cjs/plugins/selectable/useSelectableState.js.map +1 -1
  207. package/dist/cjs/plugins/sortable/SortablePlugin.js +4 -0
  208. package/dist/cjs/plugins/sortable/SortablePlugin.js.map +1 -1
  209. package/dist/cjs/plugins/sortable/checkIfSortable.js +4 -0
  210. package/dist/cjs/plugins/sortable/checkIfSortable.js.map +1 -1
  211. package/dist/cjs/plugins/sortable/index.js +4 -0
  212. package/dist/cjs/plugins/sortable/index.js.map +1 -1
  213. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js +4 -0
  214. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js.map +1 -1
  215. package/dist/cjs/plugins/sortable/sortTree.js +4 -0
  216. package/dist/cjs/plugins/sortable/sortTree.js.map +1 -1
  217. package/dist/cjs/plugins/sortable/sorter.js +5 -0
  218. package/dist/cjs/plugins/sortable/sorter.js.map +1 -1
  219. package/dist/cjs/plugins/sortable/useSortableState.js +4 -0
  220. package/dist/cjs/plugins/sortable/useSortableState.js.map +1 -1
  221. package/dist/cjs/plugins/toolbar/RowRenderer.js +5 -0
  222. package/dist/cjs/plugins/toolbar/RowRenderer.js.map +1 -1
  223. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +4 -0
  224. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +1 -1
  225. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js +5 -0
  226. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js.map +1 -1
  227. package/dist/cjs/plugins/toolbar/index.js +4 -0
  228. package/dist/cjs/plugins/toolbar/index.js.map +1 -1
  229. package/dist/cjs/plugins/virtualization/AutoHeightList.js +4 -0
  230. package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +1 -1
  231. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +6 -0
  232. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +1 -1
  233. package/dist/cjs/plugins/virtualization/VirtualizedBody.js +5 -0
  234. package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +1 -1
  235. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js +5 -0
  236. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +1 -1
  237. package/dist/cjs/plugins/virtualization/helper.js +4 -0
  238. package/dist/cjs/plugins/virtualization/helper.js.map +1 -1
  239. package/dist/cjs/plugins/virtualization/index.js +4 -0
  240. package/dist/cjs/plugins/virtualization/index.js.map +1 -1
  241. package/dist/cjs/renders/CellWithAddons.js +14 -0
  242. package/dist/cjs/renders/CellWithAddons.js.map +1 -1
  243. package/dist/cjs/renders/index.js +4 -0
  244. package/dist/cjs/renders/index.js.map +1 -1
  245. package/dist/cjs/renders/styled.js +4 -0
  246. package/dist/cjs/renders/styled.js.map +1 -1
  247. package/dist/cjs/rowSizes.js +4 -0
  248. package/dist/cjs/rowSizes.js.map +1 -1
  249. package/dist/cjs/utilities/getPluginsFromProps.js +4 -0
  250. package/dist/cjs/utilities/getPluginsFromProps.js.map +1 -1
  251. package/dist/cjs/utilities/getScrollbarSize.js +4 -0
  252. package/dist/cjs/utilities/getScrollbarSize.js.map +1 -1
  253. package/dist/cjs/utilities/normalizeData.js +4 -0
  254. package/dist/cjs/utilities/normalizeData.js.map +1 -1
  255. package/dist/esm/DSDataGrid.js +139 -0
  256. package/dist/esm/DSDataGrid.js.map +1 -1
  257. package/dist/esm/DataGridImpl.js.map +1 -1
  258. package/dist/esm/PaginatedDataGrid.js.map +1 -1
  259. package/dist/esm/columns/IconColumn.js.map +1 -1
  260. package/dist/esm/components/BodyCell.js +2 -0
  261. package/dist/esm/components/BodyCell.js.map +1 -1
  262. package/dist/esm/components/BodyList.js.map +1 -1
  263. package/dist/esm/components/ColumnsOptionsMenuSection.js +1 -0
  264. package/dist/esm/components/ColumnsOptionsMenuSection.js.map +1 -1
  265. package/dist/esm/components/EmptyState.js.map +1 -1
  266. package/dist/esm/components/NoResults.js.map +1 -1
  267. package/dist/esm/components/Table.js.map +1 -1
  268. package/dist/esm/components/TableBody.js.map +1 -1
  269. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +1 -1
  270. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +1 -1
  271. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +1 -1
  272. package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +1 -1
  273. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +1 -0
  274. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +1 -1
  275. package/dist/esm/plugins/column-sizing/utils.js.map +1 -1
  276. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +1 -0
  277. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +1 -1
  278. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +1 -1
  279. package/dist/esm/plugins/editable/EditablePlugin.js.map +1 -1
  280. package/dist/esm/plugins/editable/decorateEditable.js.map +1 -1
  281. package/dist/esm/plugins/editable/getEditorComponent.js.map +1 -1
  282. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +1 -1
  283. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +1 -1
  284. package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +1 -1
  285. package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +1 -1
  286. package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +1 -1
  287. package/dist/esm/plugins/filterable/FilterablePlugin.js.map +1 -1
  288. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +1 -0
  289. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +1 -1
  290. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +1 -0
  291. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +1 -1
  292. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +1 -1
  293. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +1 -1
  294. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +1 -1
  295. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +1 -1
  296. package/dist/esm/plugins/filterable/helper.js.map +1 -1
  297. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +1 -1
  298. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +12 -8
  299. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +1 -1
  300. package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +1 -1
  301. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +1 -1
  302. package/dist/esm/plugins/pagination/PaginationPlugin.js +1 -0
  303. package/dist/esm/plugins/pagination/PaginationPlugin.js.map +1 -1
  304. package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +1 -1
  305. package/dist/esm/plugins/resizable/ResizablePlugin.js.map +1 -1
  306. package/dist/esm/plugins/resizable/useResizeHandle.js +4 -1
  307. package/dist/esm/plugins/resizable/useResizeHandle.js.map +1 -1
  308. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js +1 -0
  309. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js.map +1 -1
  310. package/dist/esm/plugins/selectable/SelectablePlugin.js.map +1 -1
  311. package/dist/esm/plugins/selectable/addSelectableColumn.js +2 -0
  312. package/dist/esm/plugins/selectable/addSelectableColumn.js.map +1 -1
  313. package/dist/esm/plugins/selectable/helper.js.map +1 -1
  314. package/dist/esm/plugins/selectable/selectableFormatter.js.map +1 -1
  315. package/dist/esm/plugins/selectable/useSelectableState.js +2 -0
  316. package/dist/esm/plugins/selectable/useSelectableState.js.map +1 -1
  317. package/dist/esm/plugins/sortable/SortablePlugin.js.map +1 -1
  318. package/dist/esm/plugins/sortable/checkIfSortable.js.map +1 -1
  319. package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +1 -1
  320. package/dist/esm/plugins/sortable/sorter.js +1 -0
  321. package/dist/esm/plugins/sortable/sorter.js.map +1 -1
  322. package/dist/esm/plugins/toolbar/RowRenderer.js +1 -0
  323. package/dist/esm/plugins/toolbar/RowRenderer.js.map +1 -1
  324. package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +1 -1
  325. package/dist/esm/plugins/toolbar/ToolbarTrigger.js +1 -0
  326. package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +1 -1
  327. package/dist/esm/plugins/virtualization/AutoHeightList.js.map +1 -1
  328. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +2 -0
  329. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +1 -1
  330. package/dist/esm/plugins/virtualization/VirtualizedBody.js +1 -0
  331. package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +1 -1
  332. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +1 -0
  333. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +1 -1
  334. package/dist/esm/renders/CellWithAddons.js +10 -0
  335. package/dist/esm/renders/CellWithAddons.js.map +1 -1
  336. package/dist/esm/renders/styled.js.map +1 -1
  337. package/dist/esm/utilities/getPluginsFromProps.js.map +1 -1
  338. package/dist/esm/utilities/normalizeData.js.map +1 -1
  339. package/package.json +24 -24
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/sortable/sorter.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable max-statements */\nimport { get } from '@elliemae/ds-utilities';\nimport moment from 'moment';\n\nexport const sorter =\n ({ columns, sortingColumns, sort, emptyLast } = {}) =>\n (data) => {\n if (!columns) {\n throw new Error('sort.sorter - Missing \"columns\" argument!');\n }\n\n if (!sort) {\n throw new Error('sort.sorter - Missing \"sort\" argument!');\n }\n\n if (!sortingColumns) {\n return data;\n }\n const columnIndexList = new Array(sortingColumns.length);\n const orderList = new Array(sortingColumns.length);\n\n let actualSortFunction = sort;\n if (emptyLast) {\n actualSortFunction = (innerData, innerColumnIndexList, innerOrderList) => {\n const sortedData = sort(innerData, innerColumnIndexList, innerOrderList);\n\n const keys = Object.keys(sortingColumns);\n\n const withData = sortedData.filter((r) => keys.some((key) => !!r[key]));\n const withoutData = sortedData.filter((r) => keys.some((key) => !r[key]));\n\n return [...withData, ...withoutData];\n };\n }\n\n Object.keys(sortingColumns).forEach((sortingColumnKey) => {\n const realColumn = columns.find((column) => column.property === sortingColumnKey);\n if (!realColumn) return;\n const columnSorter =\n realColumn.sort ||\n function resolveValue(row) {\n const { property, sortBy } = realColumn;\n const value = row[sortBy || property];\n // Pick resolved value by convention\n const resolvedValue = get(row, `_${property}`, value);\n\n if (realColumn.type === 'DateTime') {\n return moment(resolvedValue);\n }\n\n return typeof resolvedValue === 'string' ? resolvedValue.toLowerCase() : resolvedValue;\n };\n\n const sortingColumn = sortingColumns[sortingColumnKey];\n\n columnIndexList[sortingColumn.position] = columnSorter;\n\n orderList[sortingColumn.position] = sortingColumn.direction;\n });\n return actualSortFunction(data, columnIndexList, orderList);\n };\n\nexport const sorterGroups =\n ({ columns, sortingColumns, sort, emptyLast } = {}) =>\n (data, rowsData) => {\n if (!columns) {\n throw new Error('sort.sorter - Missing \"columns\" argument!');\n }\n\n if (!sort) {\n throw new Error('sort.sorter - Missing \"sort\" argument!');\n }\n\n if (!sortingColumns) {\n return data;\n }\n\n const columnIndexList = new Array(sortingColumns.length);\n const orderList = new Array(sortingColumns.length);\n\n let actualSortFunction = sort;\n if (emptyLast) {\n actualSortFunction = (innerData, innerColumnIndexList, innerOrderList) => {\n const sortedData = sort(innerData, innerColumnIndexList, innerOrderList);\n\n const keys = Object.keys(sortingColumns);\n\n const withData = sortedData.filter((r) => keys.some((key) => !!r[key]));\n const withoutData = sortedData.filter((r) => keys.some((key) => !r[key]));\n\n return [...withData, ...withoutData];\n };\n }\n\n Object.keys(sortingColumns).forEach((sortingColumnKey) => {\n const realColumn = columns.find((column) => column.property === sortingColumnKey);\n if (!realColumn) return;\n const columnSorter =\n realColumn.sort ||\n function resolveValue(row) {\n const { property, sortBy } = realColumn;\n const value = row[sortBy || property];\n // Pick resolved value by convention\n const resolvedValue = get(row, `_${property}`, value);\n\n if (realColumn.type === 'DateTime') {\n return moment(resolvedValue);\n }\n\n return typeof resolvedValue === 'string' ? resolvedValue.toLowerCase() : resolvedValue;\n };\n\n const sortingColumn = sortingColumns[sortingColumnKey];\n\n columnIndexList[sortingColumn.position] = columnSorter;\n\n orderList[sortingColumn.position] = sortingColumn.direction;\n });\n\n const groups = {};\n const preserveData = {};\n data.forEach((c) => {\n preserveData[c.id] = { ...c };\n });\n\n rowsData.forEach((group) => {\n groups[group.id] = {\n children: actualSortFunction(\n group.children.map((c) => ({\n parentNode: preserveData[c.id].parentNode,\n data: c,\n ...c,\n })),\n columnIndexList,\n orderList,\n ), // sort internally\n };\n });\n\n const sorted = actualSortFunction(\n data.map((r) => ({\n ...r.data,\n ...r,\n })),\n columnIndexList,\n orderList,\n ); // sort global\n let ssortGlobal = [];\n sorted\n .filter((s) => !s.isGroup)\n .forEach((sr) => {\n if (groups[sr.parentNode.id]) {\n ssortGlobal = [...ssortGlobal, preserveData[sr.parentNode.id], ...groups[sr.parentNode.id].children];\n delete groups[sr.parentNode.id];\n }\n });\n return ssortGlobal;\n };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW;AACpB,OAAO,YAAY;AAEZ,MAAM,SACX,CAAC,EAAE,SAAS,gBAAgB,MAAM,UAAU,IAAI,CAAC,MACj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AAY,IAAI;AAAA,IAC3E;AAEF,UAAM,gBAAgB,eAAe,gBAAgB;AAErD,oBAAgB,cAAc,QAAQ,IAAI;AAE1C,cAAU,cAAc,QAAQ,IAAI,cAAc;AAAA,EACpD,CAAC;AAED,QAAM,SAAS,CAAC;AAChB,QAAM,eAAe,CAAC;AACtB,OAAK,QAAQ,CAAC,MAAM;AAClB,iBAAa,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;AAAA,EAC9B,CAAC;AAED,WAAS,QAAQ,CAAC,UAAU;AAC1B,WAAO,MAAM,EAAE,IAAI;AAAA,MACjB,UAAU;AAAA,QACR,MAAM,SAAS,IAAI,CAAC,OAAO;AAAA,UACzB,YAAY,aAAa,EAAE,EAAE,EAAE;AAAA,UAC/B,MAAM;AAAA,UACN,GAAG;AAAA,QACL,EAAE;AAAA,QACF;AAAA,QACA;AAAA,MACF;AAAA;AAAA,IACF;AAAA,EACF,CAAC;AAED,QAAM,SAAS;AAAA,IACb,KAAK,IAAI,CAAC,OAAO;AAAA,MACf,GAAG,EAAE;AAAA,MACL,GAAG;AAAA,IACL,EAAE;AAAA,IACF;AAAA,IACA;AAAA,EACF;AACA,MAAI,cAAc,CAAC;AACnB,SACG,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,EACxB,QAAQ,CAAC,OAAO;AACf,QAAI,OAAO,GAAG,WAAW,EAAE,GAAG;AAC5B,oBAAc,CAAC,GAAG,aAAa,aAAa,GAAG,WAAW,EAAE,GAAG,GAAG,OAAO,GAAG,WAAW,EAAE,EAAE,QAAQ;AACnG,aAAO,OAAO,GAAG,WAAW,EAAE;AAAA,IAChC;AAAA,EACF,CAAC;AACH,SAAO;AACT;",
6
6
  "names": []
7
7
  }
@@ -48,6 +48,7 @@ const RowRenderer = (Row, grid) => {
48
48
  style: {
49
49
  height: !wrapText ? RowSizes[gridInstance.props.rowSize] : "auto",
50
50
  position: style ? "auto" : "relative"
51
+ // top: isDragging ? rowStyle.top - RowSizes[gridInstance.props.rowSize] : 'auto',
51
52
  },
52
53
  children: [
53
54
  /* @__PURE__ */ jsx(Row, { ref, ...props, style: rowStyle }),
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/toolbar/RowRenderer.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react-hooks/rules-of-hooks */\n/* eslint-disable max-statements */\n/* eslint-disable react/prop-types */\nimport React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { isEmpty } from 'lodash';\nimport { omit } from '@elliemae/ds-utilities';\nimport { ToolbarTrigger } from './ToolbarTrigger.js';\nimport { RowSizes } from '../../rowSizes.js';\n\nexport const RowRenderer = (Row, grid) => {\n const Wrapped = (props) => {\n const ref = useRef();\n const { rowData = {}, index, rowIndex, style } = props;\n const {\n props: { wrapText },\n } = grid.getInstance();\n const [popStyle, setPopStyle] = useState({});\n const [rowStyle, setRowStyle] = useState(style);\n const gridInstance = grid.getInstance();\n const { refs, isRowDragging } = gridInstance;\n const [hasVerticalScrollBar, setHasVerticalScrollBar] = useState(\n refs.body.current && refs.body.current.offsetWidth > refs.body.current.clientWidth,\n );\n\n useEffect(() => {\n const shouldOmit = isRowDragging ? ['top'] : [];\n setPopStyle({\n ...popStyle,\n ...{ top: style && !isRowDragging ? style.top : '0' },\n });\n if (style) {\n // style defined means it has virtualization\n setHasVerticalScrollBar(true);\n } else {\n setHasVerticalScrollBar(false);\n }\n setRowStyle(\n omit(\n style || {\n height: !wrapText ? RowSizes[gridInstance.props.rowSize] : 'auto',\n position: 'relative',\n },\n [shouldOmit],\n ),\n );\n }, [style, isRowDragging]);\n return (\n <div\n className=\"row-renderer-fixed-height\"\n style={{\n height: !wrapText ? RowSizes[gridInstance.props.rowSize] : 'auto',\n position: style ? 'auto' : 'relative',\n // top: isDragging ? rowStyle.top - RowSizes[gridInstance.props.rowSize] : 'auto',\n }}\n >\n <Row ref={ref} {...props} style={rowStyle} />\n {isEmpty(rowData) && !rowData.index && !rowData.rowIndex ? null : (\n <div className={`toolbar-trigger-container ${style ? 'move' : 'stay'}`} style={{ ...popStyle }}>\n <ToolbarTrigger\n grid={grid}\n rowData={{ rowData, index, rowIndex }}\n hasScrollBar={hasVerticalScrollBar}\n rowRef={ref}\n />\n </div>\n )}\n </div>\n );\n };\n\n Wrapped.propTypes = {\n rowData: PropTypes.any,\n index: PropTypes.number,\n rowIndex: PropTypes.number,\n style: PropTypes.any,\n };\n\n return Wrapped;\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACgDjB,SAQE,KARF;AA7CN,SAAgB,WAAW,QAAQ,gBAAgB;AACnD,OAAO,eAAe;AACtB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,sBAAsB;AAC/B,SAAS,gBAAgB;AAElB,MAAM,cAAc,CAAC,KAAK,SAAS;AACxC,QAAM,UAAU,CAAC,UAAU;AACzB,UAAM,MAAM,OAAO;AACnB,UAAM,EAAE,UAAU,CAAC,GAAG,OAAO,UAAU,MAAM,IAAI;AACjD,UAAM;AAAA,MACJ,OAAO,EAAE,SAAS;AAAA,IACpB,IAAI,KAAK,YAAY;AACrB,UAAM,CAAC,UAAU,WAAW,IAAI,SAAS,CAAC,CAAC;AAC3C,UAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,UAAM,eAAe,KAAK,YAAY;AACtC,UAAM,EAAE,MAAM,cAAc,IAAI;AAChC,UAAM,CAAC,sBAAsB,uBAAuB,IAAI;AAAA,MACtD,KAAK,KAAK,WAAW,KAAK,KAAK,QAAQ,cAAc,KAAK,KAAK,QAAQ;AAAA,IACzE;AAEA,cAAU,MAAM;AACd,YAAM,aAAa,gBAAgB,CAAC,KAAK,IAAI,CAAC;AAC9C,kBAAY;AAAA,QACV,GAAG;AAAA,QACH,GAAG,EAAE,KAAK,SAAS,CAAC,gBAAgB,MAAM,MAAM,IAAI;AAAA,MACtD,CAAC;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Q,WAAW,OACzD,oBAAC,SAAI,WAAW,6BAA6B,QAAQ,SAAS,UAAU,OAAO,EAAE,GAAG,SAAS,GAC3F;AAAA,YAAC;AAAA;AAAA,cACC;AAAA,cACA,SAAS,EAAE,SAAS,OAAO,SAAS;AAAA,cACpC,cAAc;AAAA,cACd,QAAQ;AAAA;AAAA,UACV,GACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AAEA,UAAQ,YAAY;AAAA,IAClB,SAAS,UAAU;AAAA,IACnB,OAAO,UAAU;AAAA,IACjB,UAAU,UAAU;AAAA,IACpB,OAAO,UAAU;AAAA,EACnB;AAEA,SAAO;AACT;",
6
6
  "names": []
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/toolbar/ToolbarPlugin.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { createInstancePlugin, appendCellFormatter } from '@elliemae/ds-shared';\nimport { RowRenderer } from './RowRenderer.js';\n\nconst decorateColumns = (columns) => {\n const lastColumn = columns[columns.length - 1];\n return [\n ...columns.slice(0, -1),\n appendCellFormatter(\n [\n (value) => (\n <>\n {value}\n <div style={{ width: 34, maxWidth: 34, overflow: 'hidden' }} />\n </>\n ),\n ],\n lastColumn,\n 'fixedFormatters',\n ),\n ];\n};\n\nconst decorateRenderers = (renderers, grid) => {\n const Row = renderers.body.row;\n renderers.body.row = RowRenderer(Row, grid);\n return renderers;\n};\n\nexport const ToolbarPlugin = createInstancePlugin('toolbar', {\n decorateRenderers,\n decorateColumns,\n});\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACWb,mBAEE,KAFF;AAVV,SAAS,sBAAsB,2BAA2B;AAC1D,SAAS,mBAAmB;AAE5B,MAAM,kBAAkB,CAAC,YAAY;AACnC,QAAM,aAAa,QAAQ,QAAQ,SAAS;AAC5C,SAAO;AAAA,IACL,GAAG,QAAQ,MAAM,GAAG,EAAE;AAAA,IACtB;AAAA,MACE;AAAA,QACE,CAAC,UACC,iCACG;AAAA;AAAA,UACD,oBAAC,SAAI,OAAO,EAAE,OAAO,IAAI,UAAU,IAAI,UAAU,SAAS,GAAG;AAAA,WAC/D;AAAA,MAEJ;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;AAEA,MAAM,oBAAoB,CAAC,WAAW,SAAS;AAC7C,QAAM,MAAM,UAAU,KAAK;AAC3B,YAAU,KAAK,MAAM,YAAY,KAAK,IAAI;AAC1C,SAAO;AACT;AAEO,MAAM,gBAAgB,qBAAqB,WAAW;AAAA,EAC3D;AAAA,EACA;AACF,CAAC;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACWb,mBAEE,KAFF;AAVV,SAAS,sBAAsB,2BAA2B;AAC1D,SAAS,mBAAmB;AAE5B,MAAM,kBAAkB,CAAC,YAAY;AACnC,QAAM,aAAa,QAAQ,QAAQ,SAAS,CAAC;AAC7C,SAAO;AAAA,IACL,GAAG,QAAQ,MAAM,GAAG,EAAE;AAAA,IACtB;AAAA,MACE;AAAA,QACE,CAAC,UACC,iCACG;AAAA;AAAA,UACD,oBAAC,SAAI,OAAO,EAAE,OAAO,IAAI,UAAU,IAAI,UAAU,SAAS,GAAG;AAAA,WAC/D;AAAA,MAEJ;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;AAEA,MAAM,oBAAoB,CAAC,WAAW,SAAS;AAC7C,QAAM,MAAM,UAAU,KAAK;AAC3B,YAAU,KAAK,MAAM,YAAY,KAAK,IAAI;AAC1C,SAAO;AACT;AAEO,MAAM,gBAAgB,qBAAqB,WAAW;AAAA,EAC3D;AAAA,EACA;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -42,6 +42,7 @@ const ToolbarPosition = styled.div`
42
42
  const ToolbarTrigger = ({ grid, rowData, hasScrollBar, rowRef }) => {
43
43
  const {
44
44
  props: { renderToolbar, rowSize }
45
+ // eslint-disable-next-line react/prop-types
45
46
  } = grid.getInstance();
46
47
  const [show, setShow] = useState(false);
47
48
  const toolbar = show ? renderToolbar({
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/toolbar/ToolbarTrigger.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useState } from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { DSButton } from '@elliemae/ds-button';\nimport { MoreOptionsVert } from '@elliemae/ds-icons';\n\nconst ToolbarBtns = styled.div`\n & > .em-ds-toolbar {\n box-shadow: none;\n }\n`;\n\nconst ToolbarWrapper = styled.div`\n display: flex;\n align-items: center;\n height: ${(props) => (props.rowSize === 'normal' ? '36px' : '28px')};\n margin-left: -4px;\n margin-right: ${(props) => (props.hasScrollBar ? '0' : '-10px')};\n padding-right: 4px;\n pointer-events: all;\n background: white;\n ${(props) =>\n props.showShadow\n ? `box-shadow: -1px 0px 1px 0px rgba(0, 0, 0, 0.2),\n 1px 0px 2px 0px rgba(0, 0, 0, 0.2);`\n : ''}\n &:hover {\n box-shadow: -1px 0px 1px 0px rgba(0, 0, 0, 0.2), 1px 0px 2px 0px rgba(0, 0, 0, 0.2);\n & > .toolbar-trigger {\n border: none;\n }\n }\n`;\n\nconst ToolbarPosition = styled.div`\n position: absolute;\n z-index: 10;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n width: 0;\n pointer-events: none;\n top: 0;\n height: ${(props) => (props.rowRef.current ? `${props.rowRef.current.offsetHeight}px` : '36px')};\n margin-top: ${(props) => (props.rowSize === 'normal' ? '0' : '0')};\n`;\n\n// eslint-disable-next-line react/prop-types\nexport const ToolbarTrigger = ({ grid, rowData, hasScrollBar, rowRef }) => {\n const {\n props: { renderToolbar, rowSize },\n // eslint-disable-next-line react/prop-types\n } = grid.getInstance();\n const [show, setShow] = useState(false);\n /* eslint-disable indent */\n const toolbar = show\n ? renderToolbar({\n ...rowData,\n size: rowSize,\n isToolbarShown: show,\n setToolbarShow: setShow,\n })\n : null;\n /* eslint-enable indent */\n return (\n <ToolbarPosition rowSize={rowSize} rowRef={rowRef}>\n <ToolbarWrapper\n onMouseEnter={() => setShow(true)}\n onMouseLeave={() => setShow(false)}\n showShadow={show}\n rowSize={rowSize}\n hasScrollBar={hasScrollBar}\n >\n {show && <ToolbarBtns>{toolbar}</ToolbarBtns>}\n <DSButton\n buttonType=\"text\"\n className=\"toolbar-trigger\"\n data-testid=\"toolbar-trigger\"\n icon={<MoreOptionsVert />}\n // eslint-disable-next-line react/prop-types\n index={rowData.index}\n onClick={() => setShow(true)}\n tabIndex={-1}\n />\n </ToolbarWrapper>\n </ToolbarPosition>\n );\n};\n\nexport default ToolbarTrigger;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACiEjB,SAOW,KAPX;AAjEN,SAAgB,gBAAgB;AAChC,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,uBAAuB;AAEhC,MAAM,cAAc,OAAO;AAAA;AAAA;AAAA;AAAA;AAM3B,MAAM,iBAAiB,OAAO;AAAA;AAAA;AAAA,YAGlB,CAAC,UAAW,MAAM,YAAY,WAAW,SAAS;AAAA;AAAA,kBAE5C,CAAC,UAAW,MAAM,eAAe,MAAM;AAAA;AAAA;AAAA;AAAA,IAIrD,CAAC,UACD,MAAM,aACF;AAAA,yCAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASR,MAAM,kBAAkB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YASnB,CAAC,UAAW,MAAM,OAAO,UAAU,GAAG,MAAM,OAAO,QAAQ,mBAAmB;AAAA,gBAC1E,CAAC,UAAW,MAAM,YAAY,WAAW,MAAM;AAAA;AAIxD,MAAM,iBAAiB,CAAC,EAAE,MAAM,SAAS,cAAc,OAAO,MAAM;AACzE,QAAM;AAAA,IACJ,OAAO,EAAE,eAAe,QAAQ;AAAA,EA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UAAU,GAAG,MAAM,OAAO,QAAQ,mBAAmB;AAAA,gBAC1E,CAAC,UAAW,MAAM,YAAY,WAAW,MAAM;AAAA;AAIxD,MAAM,iBAAiB,CAAC,EAAE,MAAM,SAAS,cAAc,OAAO,MAAM;AACzE,QAAM;AAAA,IACJ,OAAO,EAAE,eAAe,QAAQ;AAAA;AAAA,EAElC,IAAI,KAAK,YAAY;AACrB,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AAEtC,QAAM,UAAU,OACZ,cAAc;AAAA,IACZ,GAAG;AAAA,IACH,MAAM;AAAA,IACN,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAClB,CAAC,IACD;AAEJ,SACE,oBAAC,mBAAgB,SAAkB,QACjC;AAAA,IAAC;AAAA;AAAA,MACC,cAAc,MAAM,QAAQ,IAAI;AAAA,MAChC,cAAc,MAAM,QAAQ,KAAK;AAAA,MACjC,YAAY;AAAA,MACZ;AAAA,MACA;AAAA,MAEC;AAAA,gBAAQ,oBAAC,eAAa,mBAAQ;AAAA,QAC/B;AAAA,UAAC;AAAA;AAAA,YACC,YAAW;AAAA,YACX,WAAU;AAAA,YACV,eAAY;AAAA,YACZ,MAAM,oBAAC,mBAAgB;AAAA,YAEvB,OAAO,QAAQ;AAAA,YACf,SAAS,MAAM,QAAQ,IAAI;AAAA,YAC3B,UAAU;AAAA;AAAA,QACZ;AAAA;AAAA;AAAA,EACF,GACF;AAEJ;AAEA,IAAO,yBAAQ;",
6
6
  "names": []
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/AutoHeightList.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { forwardRef, useRef } from 'react';\nimport { FixedSizeList as List } from 'react-window';\nimport { mergeRefs, useWindowScrollerList, cx } from '@elliemae/ds-utilities';\n\n// eslint-disable-next-line react/display-name\nexport const AutoHeightList = forwardRef(\n (\n {\n itemCount,\n className,\n innerRef,\n itemData,\n itemKey,\n itemSize,\n outerRef,\n component: ListComponent = List,\n ...otherProps\n },\n ref,\n ) => {\n const listRef = useRef();\n const outerListRef = useRef();\n\n useWindowScrollerList({\n listInstance: listRef,\n outerListRef,\n });\n\n return (\n <ListComponent\n {...otherProps}\n ref={mergeRefs(ref, listRef)}\n className={cx(className, 'window-scroller-override')}\n height={window.innerHeight}\n innerRef={innerRef}\n itemCount={itemCount}\n itemData={itemData}\n itemKey={itemKey}\n itemSize={itemSize}\n outerRef={mergeRefs(outerListRef, outerRef)}\n overscanCount={10}\n useIsScrolling\n />\n );\n },\n);\n\nexport default AutoHeightList;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;AC6BjB;AA7BN,SAAgB,YAAY,cAAc;AAC1C,SAAS,iBAAiB,YAAY;AACtC,SAAS,WAAW,uBAAuB,UAAU;AAG9C,MAAM,iBAAiB;AAAA,EAC5B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW,gBAAgB;AAAA,OACxB;AAAA,EACL,GACA,QACG;AACH,UAAM,UAAU,OAAO;AACvB,UAAM,eAAe,OAAO;AAE5B,0BAAsB;AAAA,MACpB,cAAc;AAAA,MACd;AAAA,IACF,CAAC;AAED,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,KAAK,UAAU,KAAK,OAAO;AAAA,QAC3B,WAAW,GAAG,WAAW,0BAA0B;AAAA,QACnD,QAAQ,OAAO;AAAA,QACf;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,UAAU,UAAU,cAAc,QAAQ;AAAA,QAC1C,eAAe;AAAA,QACf,gBAAc;AAAA;AAAA,IAChB;AAAA,EAEJ;AACF;AAEA,IAAO,yBAAQ;",
5
+ "mappings": "AAAA,YAAY,WAAW;AC6BjB;AA7BN,SAAgB,YAAY,cAAc;AAC1C,SAAS,iBAAiB,YAAY;AACtC,SAAS,WAAW,uBAAuB,UAAU;AAG9C,MAAM,iBAAiB;AAAA,EAC5B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW,gBAAgB;AAAA,IAC3B,GAAG;AAAA,EACL,GACA,QACG;AACH,UAAM,UAAU,OAAO;AACvB,UAAM,eAAe,OAAO;AAE5B,0BAAsB;AAAA,MACpB,cAAc;AAAA,MACd;AAAA,IACF,CAAC;AAED,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,KAAK,UAAU,KAAK,OAAO;AAAA,QAC3B,WAAW,GAAG,WAAW,0BAA0B;AAAA,QACnD,QAAQ,OAAO;AAAA,QACf;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,UAAU,UAAU,cAAc,QAAQ;AAAA,QAC1C,eAAe;AAAA,QACf,gBAAc;AAAA;AAAA,IAChB;AAAA,EAEJ;AACF;AAEA,IAAO,yBAAQ;",
6
6
  "names": []
7
7
  }
@@ -29,6 +29,8 @@ const VirtualizationPlugin = createInstancePlugin("virtualization", {
29
29
  hotKeys,
30
30
  keyBindings: ({ defaultBindings }) => ({
31
31
  ...defaultBindings,
32
+ // todo: this is kind of hacky, since it's virtualized and there's
33
+ // the possibility that the firsts or lasts rows aren't rendered
32
34
  Home: runAll((e) => {
33
35
  if (e.ctrlKey) {
34
36
  listRef.current.scrollToItem(0);
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/VirtualizationPlugin.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-param-reassign */\n/* eslint-disable react/prop-types */\n/* eslint-disable react-hooks/rules-of-hooks */\nimport React, { useMemo, useRef } from 'react';\nimport { get } from 'lodash';\nimport { runAll, mergeRefs } from '@elliemae/ds-utilities';\nimport { createInstancePlugin, FocusGrid } from '@elliemae/ds-shared';\nimport { VirtualizedBody } from './VirtualizedBody.js';\n\nexport const VirtualizationPlugin = createInstancePlugin('virtualization', {\n decorateRenderers(renderers, grid) {\n const BodyWrapper = renderers.body.wrapper;\n // eslint-disable-next-line react/display-name\n renderers.body.wrapper = useMemo(\n () =>\n function (props) {\n const { listProps = {}, rows } = props;\n const {\n hotKeys,\n props: { autoHeight, autoScrollToId, expandable, overscanCount, rowSize },\n refs: { innerBody },\n setHasScroll,\n state: { filters },\n } = grid.getInstance();\n\n const listRef = useRef();\n const nextListProps = {\n ...listProps,\n ref: mergeRefs(listRef, listProps.ref),\n };\n return (\n <FocusGrid\n hotKeys={hotKeys}\n keyBindings={({ defaultBindings }) => ({\n ...defaultBindings,\n // todo: this is kind of hacky, since it's virtualized and there's\n // the possibility that the firsts or lasts rows aren't rendered\n Home: runAll((e) => {\n if (e.ctrlKey) {\n listRef.current.scrollToItem(0);\n setTimeout(() => defaultBindings.Home(e), 10);\n } else {\n defaultBindings.Home(e);\n }\n }),\n End: runAll((e) => {\n if (e.ctrlKey) {\n listRef.current.scrollToItem(rows.length - 1);\n setTimeout(() => defaultBindings.End(e), 10);\n } else {\n defaultBindings.End(e);\n }\n }),\n })}\n shouldRefocus={false}\n >\n <VirtualizedBody\n {...props}\n autoScrollToId={autoScrollToId}\n autoHeight={autoHeight}\n component={BodyWrapper}\n expandable={expandable}\n innerBody={innerBody}\n listProps={nextListProps}\n overscanCount={overscanCount}\n rowSize={rowSize}\n setHasScroll={setHasScroll}\n filters={filters}\n />\n </FocusGrid>\n );\n },\n [get(grid.getInstance(), 'rows.length')],\n );\n return renderers;\n },\n});\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACwDT;AArDd,SAAgB,SAAS,cAAc;AACvC,SAAS,WAAW;AACpB,SAAS,QAAQ,iBAAiB;AAClC,SAAS,sBAAsB,iBAAiB;AAChD,SAAS,uBAAuB;AAE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b,0BAAQ,QAAQ,aAAa,KAAK,SAAS,CAAC;AAC5C,6BAAW,MAAM,gBAAgB,IAAI,CAAC,GAAG,EAAE;AAAA,gBAC7C,OAAO;AACL,kCAAgB,IAAI,CAAC;AAAA,gBACvB;AAAA,cACF,CAAC;AAAA,YACH;AAAA,YACA,eAAe;AAAA,YAEf;AAAA,cAAC;AAAA;AAAA,gBACE,GAAG;AAAA,gBACJ;AAAA,gBACA;AAAA,gBACA,WAAW;AAAA,gBACX;AAAA,gBACA;AAAA,gBACA,WAAW;AAAA,gBACX;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA;AAAA,YACF;AAAA;AAAA,QACF;AAAA,MAEJ;AAAA,MACF,CAAC,IAAI,KAAK,YAAY,GAAG,aAAa,CAAC;AAAA,IACzC;AACA,WAAO;AAAA,EACT;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -28,6 +28,7 @@ const VirtualizedBody = (props) => {
28
28
  rowSize,
29
29
  setHasScroll,
30
30
  filters
31
+ // hack to reset the scrollTop to 0 if filters change
31
32
  } = props;
32
33
  const rowHeight = defaultRowHeight || RowSizes[rowSize];
33
34
  const [scrollTop, setScrollTop] = useState(0);
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/VirtualizedBody.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable max-statements */\nimport React, { useEffect, useState, useCallback, useRef, useLayoutEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { mergeRefs, debounce, isNaN } from '@elliemae/ds-utilities';\nimport { NoResults } from '../../components/NoResults.js';\nimport { VirtualizedBodyRow } from './VirtualizedBodyRow.js';\nimport { RowSizes } from '../../rowSizes.js';\nimport { isSafari } from './helper.js';\n\nconst wrapperSafari = {};\nconst wrapperGeneric = { overflowY: 'auto', overflowX: 'visible' };\n\nconst VirtualizedBody = (props) => {\n const {\n autoScrollToId,\n columns,\n component: Component,\n expandable,\n innerRef,\n innerBody,\n isPlaceholderActive,\n listProps,\n noResultsPlaceholder,\n overscanCount,\n rows,\n rowHeight: defaultRowHeight,\n rowKey,\n rowRenderer,\n rowSize,\n setHasScroll,\n filters, // hack to reset the scrollTop to 0 if filters change\n } = props;\n const rowHeight = defaultRowHeight || RowSizes[rowSize];\n const [scrollTop, setScrollTop] = useState(0);\n const [visibleHeight, setVisibleHeight] = useState(0);\n const [hasScrollBar, setHasScrollBar] = useState(false);\n const rowStyleCache = useRef({});\n const [renderedIndexes, setRenderedIndexes] = useState([0, 30]);\n\n const getCalculatedHeightBetweenIndexes = (start, end) => {\n const { itemSize = () => rowHeight } = listProps;\n if (expandable) {\n return rows\n .slice(start, end)\n .map((_, idx) => idx)\n .map((idx) => itemSize(idx))\n .reduce((acc, curr) => acc + curr, 0);\n }\n return (end - start) * rowHeight;\n };\n\n const generateRowPositionMap = () => rows.map((row, idx) => getCalculatedHeightBetweenIndexes(0, idx));\n\n const rowPositionMap = useRef(generateRowPositionMap());\n const [virtualizedBodyRef, setVirtualizedBodyRef] = useState(null);\n const handlerRef = useRef();\n\n const autoScrollTo = useCallback(\n (scrollHeight) => {\n const { itemSize = () => rowHeight } = listProps;\n const idx = rows.findIndex((item) => item[rowKey] === autoScrollToId);\n let val = rowPositionMap.current[idx] || 0;\n const lastPositionIdx = rowPositionMap.current.length - 1;\n let lastPosition = 0;\n if (lastPositionIdx > -1) {\n lastPosition = rowPositionMap.current[lastPositionIdx] - scrollHeight + itemSize(lastPositionIdx);\n }\n if (lastPosition < val) {\n val = lastPosition;\n }\n if (virtualizedBodyRef) {\n if (idx > -1) {\n setScrollTop(val);\n virtualizedBodyRef.scrollTop = val;\n }\n }\n },\n [rows, virtualizedBodyRef],\n );\n\n useEffect(() => {\n autoScrollTo(visibleHeight);\n }, [autoScrollToId, visibleHeight]);\n\n const handler = useCallback(\n debounce(({ target }) => {\n // Update coordinates\n setScrollTop(target.scrollTop || 0);\n }, 100),\n [setScrollTop],\n );\n\n useEffect(() => {\n setScrollTop(0);\n }, [filters]);\n\n useEffect(() => {\n handlerRef.current = handler;\n }, [handler]);\n\n useLayoutEffect(() => {\n let top = Math.ceil(scrollTop / rowHeight);\n let bot = Math.ceil((scrollTop + visibleHeight) / rowHeight);\n if (expandable) {\n // updateMapperFirst\n rowPositionMap.current = generateRowPositionMap();\n top = rowPositionMap.current.findIndex((item) => item > scrollTop);\n bot = rowPositionMap.current.findIndex((item) => item > scrollTop + visibleHeight);\n if (bot === -1) bot = rowPositionMap.current.length;\n }\n let upperBound = top - 1 - overscanCount;\n let lowerBound = bot - 1 + overscanCount;\n if (upperBound < 0) {\n upperBound = 0;\n }\n if (lowerBound - upperBound < overscanCount) {\n lowerBound = upperBound + overscanCount;\n }\n if (lowerBound > rows.length) {\n lowerBound = rows.length;\n }\n setHasScrollBar(visibleHeight < getHeight());\n setHasScroll(visibleHeight < getHeight());\n setRenderedIndexes([upperBound, lowerBound]);\n }, [visibleHeight, scrollTop, rows]);\n\n useLayoutEffect(() => {\n if (virtualizedBodyRef) {\n const parsedVisibleHeight = parseFloat(\n window.getComputedStyle(virtualizedBodyRef, null).getPropertyValue('height'),\n );\n // eslint-disable-next-line no-restricted-globals\n if (!isNaN(parsedVisibleHeight)) {\n setVisibleHeight(parsedVisibleHeight);\n autoScrollTo(parsedVisibleHeight);\n }\n }\n }, [rows, virtualizedBodyRef]);\n\n useEffect(() => {\n if (virtualizedBodyRef) {\n const eventListener = (event) => handlerRef.current(event);\n virtualizedBodyRef.addEventListener('scroll', eventListener);\n\n return () => {\n virtualizedBodyRef.removeEventListener('scroll', eventListener);\n };\n }\n return () => null;\n }, [virtualizedBodyRef]);\n\n const getHeight = () => {\n let returnHeight = 0;\n if (expandable) {\n returnHeight = getCalculatedHeightBetweenIndexes(0, rows.length) + 8;\n } else {\n returnHeight = rows.length * rowHeight + 8;\n }\n // if (visibleHeight > returnHeight) {\n // return visibleHeight;\n // }\n if (virtualizedBodyRef && virtualizedBodyRef.scrollHeight > virtualizedBodyRef.clientHeight) {\n return returnHeight + 10;\n }\n return returnHeight;\n };\n\n const getRowStyle = (row, index, specificRowHeight) => {\n const { itemSize } = listProps;\n\n if (!expandable && rowStyleCache.current[index]) {\n return rowStyleCache.current[index];\n }\n rowStyleCache.current[index] = {\n height: itemSize ? itemSize(index) : specificRowHeight,\n left: 0,\n right: 0,\n top: getCalculatedHeightBetweenIndexes(0, index),\n position: 'absolute',\n };\n return rowStyleCache.current[index];\n };\n\n const generateRenderedRows = () =>\n rows.slice(renderedIndexes[0], renderedIndexes[1] + 1).map((_, index) => (\n <VirtualizedBodyRow\n data={{\n rows,\n columns,\n rowKey,\n renderer: { rowRenderer },\n }}\n index={renderedIndexes[0] + index}\n key={rows[renderedIndexes[0] + index][rowKey]}\n style={getRowStyle(rows[renderedIndexes[0] + index], renderedIndexes[0] + index, rowHeight)}\n ></VirtualizedBodyRow>\n ));\n\n const wrapperStyle = {\n height: '100%',\n ...(isSafari ? wrapperSafari : wrapperGeneric),\n };\n const bodyStyle = {\n height: getHeight(),\n willChange: 'transform',\n backfaceVisibility: 'hidden',\n };\n\n return (\n <Component {...props} innerRef={innerRef}>\n {!isPlaceholderActive ? (\n <div\n className=\"virtualized-body-wrapper\"\n style={wrapperStyle}\n ref={(elem) => {\n if (elem) {\n if (isSafari) {\n setVirtualizedBodyRef(elem.parentElement);\n // eslint-disable-next-line no-param-reassign\n elem.parentElement.scrollTop = scrollTop;\n mergeRefs(listProps.outerRef)(elem.parentElement);\n } else {\n setVirtualizedBodyRef(elem);\n mergeRefs(listProps.outerRef)(elem);\n }\n }\n }}\n >\n <div\n data-testid=\"virtualized-body\"\n className={`virtualized-body${hasScrollBar ? ' with-scrollbar' : ''}`}\n style={bodyStyle}\n ref={(r) => {\n mergeRefs(innerBody)(r);\n }}\n >\n {generateRenderedRows()}\n </div>\n </div>\n ) : (\n <NoResults innerRef={innerRef} rowRenderer={rowRenderer}>\n {noResultsPlaceholder}\n </NoResults>\n )}\n </Component>\n );\n};\n\nVirtualizedBody.defaultProps = {\n rows: [],\n overscanCount: 10,\n};\n\nVirtualizedBody.propTypes = {\n autoScrollToId: PropTypes.number,\n columns: PropTypes.arrayOf(PropTypes.shape({})),\n component: PropTypes.element,\n expandable: PropTypes.bool,\n filters: PropTypes.any,\n innerRef: PropTypes.any,\n innerBody: PropTypes.any,\n isPlaceholderActive: PropTypes.bool,\n listProps: PropTypes.shape({\n itemSize: PropTypes.func,\n outerRef: PropTypes.any,\n }),\n noResultsPlaceholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n overscanCount: PropTypes.number,\n rows: PropTypes.arrayOf(PropTypes.shape({})),\n rowHeight: PropTypes.number,\n rowKey: PropTypes.string,\n rowRenderer: PropTypes.element,\n rowSize: PropTypes.any,\n setHasScroll: PropTypes.func,\n};\n\nexport { VirtualizedBody };\nexport default VirtualizedBody;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;AC0LjB;AAxLN,SAAgB,WAAW,UAAU,aAAa,QAAQ,uBAAuB;AACjF,OAAO,eAAe;AACtB,SAAS,WAAW,UAAU,aAAa;AAC3C,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AAEzB,MAAM,gBAAgB,CAAC;AACvB,MAAM,iBAAiB,EAAE,WAAW,QAAQ,WAAW,UAAU;AAEjE,MAAM,kBAAkB,CAAC,UAAU;AACjC,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,YAAY,oBAAoB,SAAS;AAC/C,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,CAAC;AAC5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Ae;AACjB;AAEA,gBAAgB,YAAY;AAAA,EAC1B,gBAAgB,UAAU;AAAA,EAC1B,SAAS,UAAU,QAAQ,UAAU,MAAM,CAAC,CAAC,CAAC;AAAA,EAC9C,WAAW,UAAU;AAAA,EACrB,YAAY,UAAU;AAAA,EACtB,SAAS,UAAU;AAAA,EACnB,UAAU,UAAU;AAAA,EACpB,WAAW,UAAU;AAAA,EACrB,qBAAqB,UAAU;AAAA,EAC/B,WAAW,UAAU,MAAM;AAAA,IACzB,UAAU,UAAU;AAAA,IACpB,UAAU,UAAU;AAAA,EACtB,CAAC;AAAA,EACD,sBAAsB,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,OAAO,CAAC;AAAA,EAC/E,eAAe,UAAU;AAAA,EACzB,MAAM,UAAU,QAAQ,UAAU,MAAM,CAAC,CAAC,CAAC;AAAA,EAC3C,WAAW,UAAU;AAAA,EACrB,QAAQ,UAAU;AAAA,EAClB,aAAa,UAAU;AAAA,EACvB,SAAS,UAAU;AAAA,EACnB,cAAc,UAAU;AAC1B;AAGA,IAAO,0BAAQ;",
6
6
  "names": []
7
7
  }
@@ -14,6 +14,7 @@ const VirtualizedBodyRow = ({ data, index, style, key, isScrolling }) => {
14
14
  key
15
15
  },
16
16
  {
17
+ // eslint-disable-next-line no-underscore-dangle
17
18
  rowIndex: index,
18
19
  isScrolling
19
20
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/VirtualizedBodyRow.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const VirtualizedBodyRow = ({ data, index, style, key, isScrolling }) => {\n const {\n rows,\n renderer: { rowRenderer },\n } = data;\n const rowData = rows[index];\n\n return rowRenderer(\n rowData,\n {\n style,\n index,\n rowIndex: index,\n key,\n },\n {\n // eslint-disable-next-line no-underscore-dangle\n rowIndex: index,\n isScrolling,\n },\n );\n};\n\nexport default VirtualizedBodyRow;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,qBAAqB,CAAC,EAAE,MAAM,OAAO,OAAO,KAAK,YAAY,MAAM;AAC9E,QAAM;AAAA,IACJ;AAAA,IACA,UAAU,EAAE,YAAY;AAAA,EAC1B,IAAI;AACJ,QAAM,UAAU,KAAK;AAErB,SAAO;AAAA,IACL;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA,UAAU;AAAA,MACV;AAAA,IACF;AAAA,IACA;AAAA,MAEE,UAAU;AAAA,MACV;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,6BAAQ;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,qBAAqB,CAAC,EAAE,MAAM,OAAO,OAAO,KAAK,YAAY,MAAM;AAC9E,QAAM;AAAA,IACJ;AAAA,IACA,UAAU,EAAE,YAAY;AAAA,EAC1B,IAAI;AACJ,QAAM,UAAU,KAAK,KAAK;AAE1B,SAAO;AAAA,IACL;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA,UAAU;AAAA,MACV;AAAA,IACF;AAAA,IACA;AAAA;AAAA,MAEE,UAAU;AAAA,MACV;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,6BAAQ;",
6
6
  "names": []
7
7
  }
@@ -42,15 +42,25 @@ const CellWithAddons = ({
42
42
  );
43
43
  };
44
44
  CellWithAddons.propTypes = {
45
+ /** Text to render inside the cell */
45
46
  value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
47
+ /** Left Icon */
46
48
  leftAddon: PropTypes.element,
49
+ /** keep the left spacing even if no left addons is addded */
47
50
  keepLeftPadding: PropTypes.bool,
51
+ /** Right Icon Button or Dropdown */
48
52
  rightAddon: PropTypes.element,
53
+ /** TextBox/InputMask/ComboBox */
49
54
  editComponent: PropTypes.element,
55
+ /** if is true it will show editComponent */
50
56
  isEdit: PropTypes.bool,
57
+ /** Shows a blue mark in the top left corner */
51
58
  badgeAddon: PropTypes.bool,
59
+ /** change background color to light blue */
52
60
  highLight: PropTypes.bool,
61
+ /** change text color to light gray */
53
62
  neutralText: PropTypes.bool,
63
+ /** data grid meta-information */
54
64
  metaData: PropTypes.shape({
55
65
  className: PropTypes.string,
56
66
  column: PropTypes.object,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/renders/CellWithAddons.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { get } from 'lodash';\nimport PropTypes from 'prop-types';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { CellWrapper, ValueWrapper } from './styled.js';\n\n// eslint-disable-next-line complexity\nexport const CellWithAddons = ({\n leftAddon,\n keepLeftPadding,\n rightAddon,\n badgeAddon,\n highLight,\n isEdit,\n editComponent,\n value,\n neutralText,\n metaData,\n}) => {\n const hasLeftAddon = !!leftAddon || keepLeftPadding;\n const hasRightAddon = !!rightAddon && !isEdit;\n const cols = [1];\n const shouldBeGray = neutralText || get(metaData, 'rowData.customRowProps.neutralText');\n if (hasLeftAddon) cols.unshift('auto');\n if (hasRightAddon) cols.push('auto');\n return (\n <CellWrapper\n noPadding={hasLeftAddon || badgeAddon || highLight || hasRightAddon}\n hasLeftAddon={hasLeftAddon}\n hasRightAddon={hasRightAddon}\n badgeAddon={badgeAddon}\n highLight={highLight}\n >\n <Grid height=\"100%\" cols={cols}>\n {hasLeftAddon && (\n <Grid alignItems=\"center\" pl=\"xxs\" pr=\"xxs\" width={keepLeftPadding ? '32px' : undefined}>\n {hasLeftAddon && leftAddon}\n </Grid>\n )}\n <Grid alignItems=\"center\">\n <ValueWrapper grayText={shouldBeGray}>\n {isEdit ? editComponent : <DSTruncatedTooltipText value={value} />}\n </ValueWrapper>\n </Grid>\n {hasRightAddon && (\n <Grid alignItems=\"center\" pl=\"xxs\">\n {rightAddon}\n </Grid>\n )}\n </Grid>\n </CellWrapper>\n );\n};\n\nCellWithAddons.propTypes = {\n /** Text to render inside the cell */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n /** Left Icon */\n leftAddon: PropTypes.element,\n /** keep the left spacing even if no left addons is addded */\n keepLeftPadding: PropTypes.bool,\n /** Right Icon Button or Dropdown */\n rightAddon: PropTypes.element,\n /** TextBox/InputMask/ComboBox */\n editComponent: PropTypes.element,\n /** if is true it will show editComponent */\n isEdit: PropTypes.bool,\n /** Shows a blue mark in the top left corner */\n badgeAddon: PropTypes.bool,\n /** change background color to light blue */\n highLight: PropTypes.bool,\n /** change text color to light gray */\n neutralText: PropTypes.bool,\n /** data grid meta-information */\n metaData: PropTypes.shape({\n className: PropTypes.string,\n column: PropTypes.object,\n columnIndex: PropTypes.number,\n index: PropTypes.number,\n isScrolling: PropTypes.bool,\n key: PropTypes.string,\n parentRowData: PropTypes.any,\n property: PropTypes.string,\n registerFocus: PropTypes.func,\n rowData: PropTypes.object,\n rowIndex: PropTypes.number,\n rowKey: PropTypes.string,\n style: PropTypes.object,\n }),\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACkCjB,SAEI,KAFJ;AAjCN,SAAS,WAAW;AACpB,OAAO,eAAe;AACtB,SAAS,YAAY;AACrB,SAAS,8BAA8B;AACvC,SAAS,aAAa,oBAAoB;AAGnC,MAAM,iBAAiB,CAAC;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,eAAe,CAAC,CAAC,aAAa;AACpC,QAAM,gBAAgB,CAAC,CAAC,cAAc,CAAC;AACvC,QAAM,OAAO,CAAC,CAAC;AACf,QAAM,eAAe,eAAe,IAAI,UAAU,oCAAoC;AACtF,MAAI;AAAc,SAAK,QAAQ,MAAM;AACrC,MAAI;AAAe,SAAK,KAAK,MAAM;AACnC,SACE;AA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,EAEvB,UAAU,UAAU,MAAM;AAAA,IACxB,WAAW,UAAU;AAAA,IACrB,QAAQ,UAAU;AAAA,IAClB,aAAa,UAAU;AAAA,IACvB,OAAO,UAAU;AAAA,IACjB,aAAa,UAAU;AAAA,IACvB,KAAK,UAAU;AAAA,IACf,eAAe,UAAU;AAAA,IACzB,UAAU,UAAU;AAAA,IACpB,eAAe,UAAU;AAAA,IACzB,SAAS,UAAU;AAAA,IACnB,UAAU,UAAU;AAAA,IACpB,QAAQ,UAAU;AAAA,IAClB,OAAO,UAAU;AAAA,EACnB,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/renders/styled.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\n\nconst m = '0.61538rem';\nconst m2 = '1.23076rem';\n\nexport const CellWrapper = styled.div`\n max-height: 36px;\n height: 100%;\n width: ${(props) => (props.noPadding ? `calc(100% + ${m2})` : '100%')};\n margin-left: ${(props) => (props.noPadding ? `-${m}` : '0')};\n margin-right: ${(props) => (props.noPadding ? `-${m}` : '0')};\n padding-left: ${(props) =>\n !props.hasLeftAddon && (props.badgeAddon || props.highLight || props.hasRightAddon) ? m : '0'};\n padding-right: ${(props) =>\n !props.hasRightAddon && (props.badgeAddon || props.highLight || props.hasLeftAddon) ? m : '0'};\n ${(props) => (props.highLight ? `background: ${props.theme.colors.brand['200']}` : '')};\n ${(props) =>\n props.badgeAddon\n ? `\n position: relative; \n &::before {\n display: block;\n content: '';\n position: absolute;\n top: 0;\n left:0;\n border-style: solid;\n border-width: ${props.theme.space.xxs} ${props.theme.space.xxs} ${props.theme.space.xxs} 0;\n border-color: ${props.theme.colors.brand['600']} transparent transparent ${props.theme.colors.brand['600']};\n }\n `\n : ''}\n`;\n\nexport const ValueWrapper = styled.div`\n display: flex;\n align-items: center;\n overflow: hidden;\n & > span {\n display: inline-flex;\n align-items: center;\n }\n ${(props) => (props.grayText ? `color: ${props.theme.colors.neutral['500']};` : '')}\n`;\n\nexport const CellContainer = styled(Grid)`\n padding-left: ${m};\n padding-right: ${m};\n position: relative;\n`;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,cAAc;AACvB,SAAS,YAAY;AAErB,MAAM,IAAI;AACV,MAAM,KAAK;AAEJ,MAAM,cAAc,OAAO;AAAA;AAAA;AAAA,WAGvB,CAAC,UAAW,MAAM,YAAY,eAAe,QAAQ;AAAA,iBAC/C,CAAC,UAAW,MAAM,YAAY,IAAI,MAAM;AAAA,kBACvC,CAAC,UAAW,MAAM,YAAY,IAAI,MAAM;AAAA,kBACxC,CAAC,UACf,CAAC,MAAM,iBAAiB,MAAM,cAAc,MAAM,aAAa,MAAM,iBAAiB,IAAI;AAAA,mBAC3E,CAAC,UAChB,CAAC,MAAM,kBAAkB,MAAM,cAAc,MAAM,aAAa,MAAM,gBAAgB,IAAI;AAAA,IAC1F,CAAC,UAAW,MAAM,YAAY,eAAe,MAAM,MAAM,OAAO,MAAM,WAAW;AAAA,IACjF,CAAC,UACD,MAAM,aACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBASa,MAAM,MAAM,MAAM,OAAO,MAAM,MAAM,MAAM,QAAQ,MAAM,MAAM,MAAM;AAAA,oBACtE,MAAM,MAAM,OAAO,MAAM,mCAAmC,MAAM,MAAM,OAAO,MAAM;AAAA;AAAA,MAGjG;AAAA;AAGD,MAAM,eAAe,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQ/B,CAAC,UAAW,MAAM,WAAW,UAAU,MAAM,MAAM,OAAO,QAAQ,YAAY;AAAA;AAG3E,MAAM,gBAAgB,OAAO,IAAI;AAAA,kBACtB;AAAA,mBACC;AAAA;AAAA;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,cAAc;AACvB,SAAS,YAAY;AAErB,MAAM,IAAI;AACV,MAAM,KAAK;AAEJ,MAAM,cAAc,OAAO;AAAA;AAAA;AAAA,WAGvB,CAAC,UAAW,MAAM,YAAY,eAAe,QAAQ;AAAA,iBAC/C,CAAC,UAAW,MAAM,YAAY,IAAI,MAAM;AAAA,kBACvC,CAAC,UAAW,MAAM,YAAY,IAAI,MAAM;AAAA,kBACxC,CAAC,UACf,CAAC,MAAM,iBAAiB,MAAM,cAAc,MAAM,aAAa,MAAM,iBAAiB,IAAI;AAAA,mBAC3E,CAAC,UAChB,CAAC,MAAM,kBAAkB,MAAM,cAAc,MAAM,aAAa,MAAM,gBAAgB,IAAI;AAAA,IAC1F,CAAC,UAAW,MAAM,YAAY,eAAe,MAAM,MAAM,OAAO,MAAM,KAAK,MAAM;AAAA,IACjF,CAAC,UACD,MAAM,aACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBASa,MAAM,MAAM,MAAM,OAAO,MAAM,MAAM,MAAM,QAAQ,MAAM,MAAM,MAAM;AAAA,oBACtE,MAAM,MAAM,OAAO,MAAM,KAAK,8BAA8B,MAAM,MAAM,OAAO,MAAM,KAAK;AAAA;AAAA,MAGtG;AAAA;AAGD,MAAM,eAAe,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQ/B,CAAC,UAAW,MAAM,WAAW,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK,OAAO;AAAA;AAG3E,MAAM,gBAAgB,OAAO,IAAI;AAAA,kBACtB;AAAA,mBACC;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/utilities/getPluginsFromProps.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { DndRowsPlugin } from '../plugins/row-dnd/DndRowsPlugin.js';\nimport { DndColumnsPlugin } from '../plugins/column-dnd/DndColumnsPlugin.js';\nimport { InfiniteScrollPlugin } from '../plugins/infinite-scrolling/InfiniteScrollPlugin.js';\nimport { EditablePlugin } from '../plugins/editable/EditablePlugin.js';\nimport { SortablePlugin } from '../plugins/sortable/SortablePlugin.js';\nimport { SelectablePlugin } from '../plugins/selectable/SelectablePlugin.js';\nimport { FilterablePlugin } from '../plugins/filterable/FilterablePlugin.js';\nimport { ToolbarPlugin } from '../plugins/toolbar/ToolbarPlugin.js';\nimport { PaginationPlugin } from '../plugins/pagination/PaginationPlugin.js';\nimport { VirtualizationPlugin } from '../plugins/virtualization/VirtualizationPlugin.js';\nimport { ExpandablePlugin } from '../plugins/expandable-grid/ExpandablePlugin.js';\nimport { GroupingPlugin } from '../plugins/grouping-grid/GroupingPlugin.js';\nimport { GroupingByPlugin } from '../plugins/grouping-by/GroupingByPlugin.js';\n\nconst mapPropToPlugin = {\n dragAndDropColumns: DndColumnsPlugin,\n editable: EditablePlugin,\n selectable: SelectablePlugin,\n sortable: SortablePlugin,\n searchFilters: FilterablePlugin,\n renderToolbar: ToolbarPlugin,\n infiniteScrolling: InfiniteScrollPlugin,\n paginated: PaginationPlugin,\n virtualized: VirtualizationPlugin,\n expandable: ExpandablePlugin,\n groupedBy: GroupingByPlugin,\n groupedRows: GroupingPlugin,\n dragAndDropRows: DndRowsPlugin,\n};\n\nexport const getPluginsFromProps = (props, omit = {}) => {\n const plugins = [];\n\n Object.keys(mapPropToPlugin).forEach((key) => {\n if (props[key] && !omit[key]) plugins.push(mapPropToPlugin[key]);\n });\n return plugins;\n};\n\nexport default getPluginsFromProps;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,qBAAqB;AAC9B,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AACrC,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,qBAAqB;AAC9B,SAAS,w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AAU,CAAC;AAEjB,SAAO,KAAK,eAAe,EAAE,QAAQ,CAAC,QAAQ;AAC5C,QAAI,MAAM,GAAG,KAAK,CAAC,KAAK,GAAG;AAAG,cAAQ,KAAK,gBAAgB,GAAG,CAAC;AAAA,EACjE,CAAC;AACD,SAAO;AACT;AAEA,IAAO,8BAAQ;",
6
6
  "names": []
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/utilities/normalizeData.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const normalizeRows = (rows) =>\n rows.map((row) => {\n Object.keys(row).forEach((key) => (row[normalizeText(key)] = row[key]));\n return row;\n });\n\nexport const normalizeColumns = (columns) =>\n columns.map((column) => {\n const { property } = column;\n return {\n ...column,\n originalProperty: column.property,\n property: normalizeText(property),\n };\n });\n\nexport const normalizeText = (text) => text.replace(/\\s+/g, '');\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,gBAAgB,CAAC,SAC5B,KAAK,IAAI,CAAC,QAAQ;AAChB,SAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAS,IAAI,cAAc,GAAG,KAAK,IAAI,IAAK;AACtE,SAAO;AACT,CAAC;AAEI,MAAM,mBAAmB,CAAC,YAC/B,QAAQ,IAAI,CAAC,WAAW;AACtB,QAAM,EAAE,SAAS,IAAI;AACrB,SAAO;AAAA,IACL,GAAG;AAAA,IACH,kBAAkB,OAAO;AAAA,IACzB,UAAU,cAAc,QAAQ;AAAA,EAClC;AACF,CAAC;AAEI,MAAM,gBAAgB,CAAC,SAAS,KAAK,QAAQ,QAAQ,EAAE;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,gBAAgB,CAAC,SAC5B,KAAK,IAAI,CAAC,QAAQ;AAChB,SAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAS,IAAI,cAAc,GAAG,CAAC,IAAI,IAAI,GAAG,CAAE;AACtE,SAAO;AACT,CAAC;AAEI,MAAM,mBAAmB,CAAC,YAC/B,QAAQ,IAAI,CAAC,WAAW;AACtB,QAAM,EAAE,SAAS,IAAI;AACrB,SAAO;AAAA,IACL,GAAG;AAAA,IACH,kBAAkB,OAAO;AAAA,IACzB,UAAU,cAAc,QAAQ;AAAA,EAClC;AACF,CAAC;AAEI,MAAM,gBAAgB,CAAC,SAAS,KAAK,QAAQ,QAAQ,EAAE;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-datagrids",
3
- "version": "3.16.0-next.11",
3
+ "version": "3.16.0-next.13",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Data Grids",
6
6
  "files": [
@@ -545,42 +545,42 @@
545
545
  "dependencies": {
546
546
  "comparejs": "~1.0.3",
547
547
  "memoize-one": "~6.0.0",
548
- "moment": "~2.29.3",
548
+ "moment": "~2.29.4",
549
549
  "obj-str": "~1.1.0",
550
550
  "prop-types": "~15.8.1",
551
551
  "react-edit": "~6.4.1",
552
552
  "react-pagify": "~2.4.0",
553
553
  "react-sortable-hoc": "~1.11.0",
554
- "react-window": "~1.8.6",
554
+ "react-window": "~1.8.8",
555
555
  "segmentize": "~0.4.1",
556
556
  "sortabular": "~1.6.0",
557
557
  "stylesheet-helpers": "~0.2.2",
558
558
  "uuid": "~8.3.2",
559
- "@elliemae/ds-button": "3.16.0-next.11",
560
- "@elliemae/ds-classnames": "3.16.0-next.11",
561
- "@elliemae/ds-controlled-form": "3.16.0-next.11",
562
- "@elliemae/ds-dropdownmenu": "3.16.0-next.11",
563
- "@elliemae/ds-datagrids": "3.16.0-next.11",
564
- "@elliemae/ds-filterbar": "3.16.0-next.11",
565
- "@elliemae/ds-form": "3.16.0-next.11",
566
- "@elliemae/ds-grid": "3.16.0-next.11",
567
- "@elliemae/ds-menu": "3.16.0-next.11",
568
- "@elliemae/ds-icons": "3.16.0-next.11",
569
- "@elliemae/ds-popper": "3.16.0-next.11",
570
- "@elliemae/ds-props-helpers": "3.16.0-next.11",
571
- "@elliemae/ds-separator": "3.16.0-next.11",
572
- "@elliemae/ds-shared": "3.16.0-next.11",
573
- "@elliemae/ds-spinner": "3.16.0-next.11",
574
- "@elliemae/ds-system": "3.16.0-next.11",
575
- "@elliemae/ds-toolbar": "3.16.0-next.11",
576
- "@elliemae/ds-truncated-tooltip-text": "3.16.0-next.11",
577
- "@elliemae/ds-utilities": "3.16.0-next.11"
559
+ "@elliemae/ds-button": "3.16.0-next.13",
560
+ "@elliemae/ds-classnames": "3.16.0-next.13",
561
+ "@elliemae/ds-controlled-form": "3.16.0-next.13",
562
+ "@elliemae/ds-datagrids": "3.16.0-next.13",
563
+ "@elliemae/ds-dropdownmenu": "3.16.0-next.13",
564
+ "@elliemae/ds-filterbar": "3.16.0-next.13",
565
+ "@elliemae/ds-form": "3.16.0-next.13",
566
+ "@elliemae/ds-grid": "3.16.0-next.13",
567
+ "@elliemae/ds-icons": "3.16.0-next.13",
568
+ "@elliemae/ds-menu": "3.16.0-next.13",
569
+ "@elliemae/ds-popper": "3.16.0-next.13",
570
+ "@elliemae/ds-props-helpers": "3.16.0-next.13",
571
+ "@elliemae/ds-separator": "3.16.0-next.13",
572
+ "@elliemae/ds-shared": "3.16.0-next.13",
573
+ "@elliemae/ds-spinner": "3.16.0-next.13",
574
+ "@elliemae/ds-system": "3.16.0-next.13",
575
+ "@elliemae/ds-toolbar": "3.16.0-next.13",
576
+ "@elliemae/ds-truncated-tooltip-text": "3.16.0-next.13",
577
+ "@elliemae/ds-utilities": "3.16.0-next.13"
578
578
  },
579
579
  "devDependencies": {
580
- "@testing-library/jest-dom": "~5.16.4",
580
+ "@testing-library/jest-dom": "~5.16.5",
581
581
  "@testing-library/react": "~12.1.3",
582
582
  "@testing-library/user-event": "~13.5.0",
583
- "styled-components": "~5.3.6"
583
+ "styled-components": "~5.3.9"
584
584
  },
585
585
  "peerDependencies": {
586
586
  "lodash": "^4.17.21",