@elliemae/ds-datagrids 2.0.0-next.1 → 2.0.0-next.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/cjs/DSDataGrid.js +246 -243
  2. package/cjs/DataGridImpl.js +18 -9
  3. package/cjs/PaginatedDataGrid.js +5 -0
  4. package/cjs/blockNames.js +2 -2
  5. package/cjs/columns/IconColumn.js +19 -17
  6. package/cjs/columns/NumberColumn.js +2 -4
  7. package/cjs/components/BodyCell.js +20 -12
  8. package/cjs/components/BodyList.js +7 -0
  9. package/cjs/components/ColumnVisibilityMenuOption.js +12 -6
  10. package/cjs/components/ColumnsOptionsMenuSection.js +35 -28
  11. package/cjs/components/EmptyState.js +19 -17
  12. package/cjs/components/HeaderCell.js +15 -9
  13. package/cjs/components/List.js +5 -0
  14. package/cjs/components/ListItem.js +7 -0
  15. package/cjs/components/NoResults.js +5 -0
  16. package/cjs/components/RowsLoader.js +5 -4
  17. package/cjs/components/Table.js +5 -0
  18. package/cjs/components/TableBody.js +5 -0
  19. package/cjs/components/TableHeader.js +5 -0
  20. package/cjs/components/footer/addOptionalFooterComponents.js +5 -4
  21. package/cjs/components/header/PrimaryControls.js +20 -15
  22. package/cjs/components/header/addOptionalHeaderComponents.js +4 -3
  23. package/cjs/components/renderers/defaultClassedRenderers.js +35 -23
  24. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +50 -39
  25. package/cjs/plugins/column-dnd/DndColumnsPlugin.js +11 -7
  26. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +2 -3
  27. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +11 -9
  28. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +13 -6
  29. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +3 -3
  30. package/cjs/plugins/column-sizing/ext-points/getTableProps.js +23 -17
  31. package/cjs/plugins/column-sizing/useColumnSizeService.js +13 -3
  32. package/cjs/plugins/column-sizing/useStylesheetHelpers.js +69 -53
  33. package/cjs/plugins/column-sizing/utils.js +10 -6
  34. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +9 -4
  35. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +20 -21
  36. package/cjs/plugins/editable/EditableComponents/ComboBox.js +7 -3
  37. package/cjs/plugins/editable/EditableComponents/TextBox.js +20 -14
  38. package/cjs/plugins/editable/EditablePlugin.js +16 -15
  39. package/cjs/plugins/editable/decorateEditable.js +19 -11
  40. package/cjs/plugins/editable/getEditorComponent.js +45 -34
  41. package/cjs/plugins/expandable-grid/ExpandableColumn.js +60 -53
  42. package/cjs/plugins/expandable-grid/ExpandablePlugin.js +38 -26
  43. package/cjs/plugins/expandable-grid/ExpandedRow.js +28 -18
  44. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +18 -12
  45. package/cjs/plugins/expandable-grid/useExpandGridState.js +4 -8
  46. package/cjs/plugins/export-data/ExportDataPlugin.js +31 -17
  47. package/cjs/plugins/filterable/FilterablePlugin.js +7 -6
  48. package/cjs/plugins/filterable/addFilterToColumn.js +5 -0
  49. package/cjs/plugins/filterable/components/FilterableHeader.js +36 -27
  50. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +41 -34
  51. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +27 -22
  52. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +122 -156
  53. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +29 -20
  54. package/cjs/plugins/filterable/filterableFormatter.js +15 -10
  55. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +16 -4
  56. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +7 -4
  57. package/cjs/plugins/filterable/helper.js +17 -7
  58. package/cjs/plugins/filterable/useFilterableState.js +12 -5
  59. package/cjs/plugins/grouping-by/GroupingByPlugin.js +3 -1
  60. package/cjs/plugins/grouping-grid/GroupingPlugin.js +10 -1
  61. package/cjs/plugins/grouping-grid/walkStrategy.js +13 -9
  62. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +8 -1
  63. package/cjs/plugins/pagination/PaginationPlugin.js +9 -2
  64. package/cjs/plugins/pagination/components/Pagination.js +10 -9
  65. package/cjs/plugins/pagination/components/Paginator.js +8 -7
  66. package/cjs/plugins/pagination/components/PerPageDropdown.js +20 -13
  67. package/cjs/plugins/pagination/helper.js +10 -7
  68. package/cjs/plugins/pagination/usePaginationState.js +8 -3
  69. package/cjs/plugins/resizable/ResizablePlugin.js +5 -4
  70. package/cjs/plugins/resizable/decorateResizable.js +14 -8
  71. package/cjs/plugins/resizable/useResizeHandle.js +21 -16
  72. package/cjs/plugins/resizable/utils.js +9 -6
  73. package/cjs/plugins/row-dnd/DndRowsPlugin.js +24 -16
  74. package/cjs/plugins/selectable/SelectablePlugin.js +11 -10
  75. package/cjs/plugins/selectable/addSelectableColumn.js +24 -16
  76. package/cjs/plugins/selectable/helper.js +12 -3
  77. package/cjs/plugins/selectable/selectableFormatter.js +80 -71
  78. package/cjs/plugins/selectable/useSelectableState.js +25 -11
  79. package/cjs/plugins/sortable/SortablePlugin.js +8 -7
  80. package/cjs/plugins/sortable/sortHeaderFormatter.js +14 -15
  81. package/cjs/plugins/sortable/sortTree.js +13 -3
  82. package/cjs/plugins/sortable/sorter.js +152 -134
  83. package/cjs/plugins/sortable/useSortableState.js +8 -0
  84. package/cjs/plugins/toolbar/RowRenderer.js +9 -3
  85. package/cjs/plugins/toolbar/ToolbarPlugin.js +1 -0
  86. package/cjs/plugins/toolbar/ToolbarTrigger.js +18 -13
  87. package/cjs/plugins/virtualization/AutoHeightList.js +10 -8
  88. package/cjs/plugins/virtualization/VirtualizationPlugin.js +32 -25
  89. package/cjs/plugins/virtualization/VirtualizedBody.js +20 -10
  90. package/cjs/plugins/virtualization/VirtualizedBodyRow.js +8 -7
  91. package/cjs/renders/CellWithAddons.js +20 -18
  92. package/cjs/renders/styled.js +5 -16
  93. package/cjs/utilities/getPluginsFromProps.js +5 -1
  94. package/cjs/utilities/getScrollbarSize.js +2 -1
  95. package/cjs/utilities/normalizeData.js +7 -1
  96. package/esm/DSDataGrid.js +246 -243
  97. package/esm/DataGridImpl.js +18 -9
  98. package/esm/PaginatedDataGrid.js +5 -0
  99. package/esm/blockNames.js +2 -2
  100. package/esm/columns/IconColumn.js +19 -17
  101. package/esm/columns/NumberColumn.js +2 -4
  102. package/esm/components/BodyCell.js +20 -12
  103. package/esm/components/BodyList.js +7 -0
  104. package/esm/components/ColumnVisibilityMenuOption.js +12 -6
  105. package/esm/components/ColumnsOptionsMenuSection.js +35 -28
  106. package/esm/components/EmptyState.js +18 -15
  107. package/esm/components/HeaderCell.js +15 -9
  108. package/esm/components/List.js +5 -0
  109. package/esm/components/ListItem.js +7 -0
  110. package/esm/components/NoResults.js +5 -0
  111. package/esm/components/RowsLoader.js +5 -4
  112. package/esm/components/Table.js +5 -0
  113. package/esm/components/TableBody.js +5 -0
  114. package/esm/components/TableHeader.js +5 -0
  115. package/esm/components/footer/addOptionalFooterComponents.js +5 -4
  116. package/esm/components/header/PrimaryControls.js +20 -14
  117. package/esm/components/header/addOptionalHeaderComponents.js +4 -3
  118. package/esm/components/renderers/defaultClassedRenderers.js +35 -23
  119. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +50 -39
  120. package/esm/plugins/column-dnd/DndColumnsPlugin.js +8 -4
  121. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +1 -1
  122. package/esm/plugins/column-sizing/ColumnSizingPlugin.js +10 -8
  123. package/esm/plugins/column-sizing/columnMeasurerTransformer.js +12 -5
  124. package/esm/plugins/column-sizing/ext-points/decorateColumn.js +1 -1
  125. package/esm/plugins/column-sizing/ext-points/getTableProps.js +22 -15
  126. package/esm/plugins/column-sizing/useColumnSizeService.js +13 -3
  127. package/esm/plugins/column-sizing/useStylesheetHelpers.js +67 -51
  128. package/esm/plugins/column-sizing/utils.js +8 -4
  129. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +6 -1
  130. package/esm/plugins/custom-cell-renderer/getRendererComponent.js +15 -11
  131. package/esm/plugins/editable/EditableComponents/ComboBox.js +6 -1
  132. package/esm/plugins/editable/EditableComponents/TextBox.js +19 -12
  133. package/esm/plugins/editable/EditablePlugin.js +14 -12
  134. package/esm/plugins/editable/decorateEditable.js +18 -9
  135. package/esm/plugins/editable/getEditorComponent.js +49 -38
  136. package/esm/plugins/expandable-grid/ExpandableColumn.js +59 -50
  137. package/esm/plugins/expandable-grid/ExpandablePlugin.js +34 -20
  138. package/esm/plugins/expandable-grid/ExpandedRow.js +27 -17
  139. package/esm/plugins/expandable-grid/ExpandedRowExtra.js +17 -11
  140. package/esm/plugins/expandable-grid/useExpandGridState.js +2 -2
  141. package/esm/plugins/export-data/ExportDataPlugin.js +30 -16
  142. package/esm/plugins/filterable/FilterablePlugin.js +5 -4
  143. package/esm/plugins/filterable/addFilterToColumn.js +5 -0
  144. package/esm/plugins/filterable/components/FilterableHeader.js +32 -22
  145. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +41 -33
  146. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +27 -21
  147. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +121 -154
  148. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +28 -18
  149. package/esm/plugins/filterable/filterableFormatter.js +15 -10
  150. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +14 -2
  151. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +7 -4
  152. package/esm/plugins/filterable/helper.js +11 -1
  153. package/esm/plugins/filterable/useFilterableState.js +12 -5
  154. package/esm/plugins/grouping-by/GroupingByPlugin.js +3 -1
  155. package/esm/plugins/grouping-grid/GroupingPlugin.js +10 -1
  156. package/esm/plugins/grouping-grid/walkStrategy.js +13 -9
  157. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +8 -1
  158. package/esm/plugins/pagination/PaginationPlugin.js +8 -1
  159. package/esm/plugins/pagination/components/Pagination.js +10 -9
  160. package/esm/plugins/pagination/components/Paginator.js +8 -7
  161. package/esm/plugins/pagination/components/PerPageDropdown.js +17 -9
  162. package/esm/plugins/pagination/helper.js +10 -7
  163. package/esm/plugins/pagination/usePaginationState.js +7 -1
  164. package/esm/plugins/resizable/ResizablePlugin.js +4 -3
  165. package/esm/plugins/resizable/decorateResizable.js +14 -8
  166. package/esm/plugins/resizable/useResizeHandle.js +21 -16
  167. package/esm/plugins/resizable/utils.js +7 -4
  168. package/esm/plugins/row-dnd/DndRowsPlugin.js +22 -13
  169. package/esm/plugins/selectable/SelectablePlugin.js +10 -9
  170. package/esm/plugins/selectable/addSelectableColumn.js +24 -16
  171. package/esm/plugins/selectable/helper.js +10 -1
  172. package/esm/plugins/selectable/selectableFormatter.js +79 -68
  173. package/esm/plugins/selectable/useSelectableState.js +20 -5
  174. package/esm/plugins/sortable/SortablePlugin.js +5 -4
  175. package/esm/plugins/sortable/sortHeaderFormatter.js +12 -11
  176. package/esm/plugins/sortable/sortTree.js +13 -3
  177. package/esm/plugins/sortable/sorter.js +152 -134
  178. package/esm/plugins/sortable/useSortableState.js +8 -0
  179. package/esm/plugins/toolbar/RowRenderer.js +8 -2
  180. package/esm/plugins/toolbar/ToolbarPlugin.js +1 -0
  181. package/esm/plugins/toolbar/ToolbarTrigger.js +17 -11
  182. package/esm/plugins/virtualization/AutoHeightList.js +6 -3
  183. package/esm/plugins/virtualization/VirtualizationPlugin.js +31 -24
  184. package/esm/plugins/virtualization/VirtualizedBody.js +16 -6
  185. package/esm/plugins/virtualization/VirtualizedBodyRow.js +8 -7
  186. package/esm/renders/CellWithAddons.js +15 -14
  187. package/esm/renders/styled.js +3 -15
  188. package/esm/utilities/getPluginsFromProps.js +5 -1
  189. package/esm/utilities/getScrollbarSize.js +2 -1
  190. package/esm/utilities/normalizeData.js +7 -1
  191. package/package.json +19 -18
  192. package/types/components/BodyCell.d.ts +1 -1
  193. package/types/components/HeaderCell.d.ts +1 -1
  194. package/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +1 -1
  195. package/types/plugins/column-sizing/ext-points/getTableProps.d.ts +1 -1
  196. package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +1 -1
  197. package/types/plugins/expandable-grid/useExpandGridState.d.ts +4 -4
  198. package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +1 -1
  199. package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +1 -1
  200. package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +1 -1
  201. package/types/plugins/filterable/helper.d.ts +15 -3
  202. package/types/plugins/pagination/components/PerPageDropdown.d.ts +1 -1
  203. package/cjs/package.json +0 -7
  204. package/esm/package.json +0 -7
@@ -1,10 +1,16 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
7
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
8
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
9
+ import 'core-js/modules/web.dom-collections.iterator.js';
4
10
  import { useRef, useContext, useCallback, useEffect } from 'react';
5
11
  import { FocusGridContext } from '@elliemae/ds-shared/FocusGroup/FocusGrid';
6
12
  import { evaluateTransforms, evaluateFormatters } from '@elliemae/ds-shared/createDataInstance/utils';
7
- import DSTruncatedTooltipText from '@elliemae/ds-basic/TruncatedTooltipText';
13
+ import DSTruncatedTooltipText from '@elliemae/ds-truncated-tooltip-text';
8
14
  import { jsx } from 'react/jsx-runtime';
9
15
 
10
16
  const _excluded = ["rowData", "rowKey", "isScrolling"];
@@ -13,15 +19,17 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
13
19
 
14
20
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15
21
 
16
- function BodyCell({
17
- component: Component,
18
- classProps,
19
- rowProps,
20
- column,
21
- columnIndex,
22
- rowIndex,
23
- grid
24
- }) {
22
+ function BodyCell(_ref) {
23
+ let {
24
+ component: Component,
25
+ classProps,
26
+ rowProps,
27
+ column,
28
+ columnIndex,
29
+ rowIndex,
30
+ grid
31
+ } = _ref;
32
+
25
33
  const {
26
34
  rowData,
27
35
  rowKey,
@@ -69,11 +77,11 @@ function BodyCell({
69
77
  value: v
70
78
  });
71
79
 
72
- const value = rowData[`_${evaluatedProperty}`] || rowData[evaluatedProperty];
80
+ const value = rowData["_".concat(evaluatedProperty)] || rowData[evaluatedProperty];
73
81
  const transformed = evaluateTransforms(transforms, value, extraParameters);
74
82
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
75
83
  ref: ref,
76
- "data-testid": `column-${property}`,
84
+ "data-testid": "column-".concat(property),
77
85
  tabIndex: -1,
78
86
  classProps: classProps
79
87
  }, props), cell && cell.props), transformed), {}, {
@@ -1,6 +1,13 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
3
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
4
+ import 'core-js/modules/esnext.async-iterator.map.js';
5
+ import 'core-js/modules/esnext.iterator.map.js';
6
+ import 'core-js/modules/esnext.async-iterator.filter.js';
7
+ import 'core-js/modules/esnext.iterator.constructor.js';
8
+ import 'core-js/modules/esnext.iterator.filter.js';
9
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
10
+ import 'core-js/modules/esnext.iterator.for-each.js';
4
11
  import React from 'react';
5
12
  import NoResults from './NoResults.js';
6
13
  import { jsx } from 'react/jsx-runtime';
@@ -1,9 +1,15 @@
1
- function getColumnVisibilityMenuOption({
2
- columns,
3
- onColumnVisibilityChange,
4
- searchable,
5
- height
6
- }) {
1
+ import 'core-js/modules/esnext.async-iterator.reduce.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.reduce.js';
4
+ import 'core-js/modules/web.dom-collections.iterator.js';
5
+
6
+ function getColumnVisibilityMenuOption(_ref) {
7
+ let {
8
+ columns,
9
+ onColumnVisibilityChange,
10
+ searchable,
11
+ height
12
+ } = _ref;
7
13
  const {
8
14
  items,
9
15
  active
@@ -1,36 +1,43 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/esnext.async-iterator.reduce.js';
3
+ import 'core-js/modules/esnext.iterator.constructor.js';
4
+ import 'core-js/modules/esnext.iterator.reduce.js';
5
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
6
  import 'react';
3
7
  import { Menu } from '@elliemae/ds-menu';
4
8
 
5
- const ColumnsOptionsMenuSection = ({
6
- columns,
7
- onColumnVisibilityChange,
8
- searchable = false,
9
- height // eslint-disable-next-line react/display-name
9
+ const ColumnsOptionsMenuSection = _ref => {
10
+ let {
11
+ columns,
12
+ onColumnVisibilityChange,
13
+ searchable = false,
14
+ height // eslint-disable-next-line react/display-name
10
15
 
11
- }) => () => {
12
- const {
13
- items,
14
- active
15
- } = columns.reduce((result, column, index) => ({
16
- items: [...result.items, {
17
- id: column.property,
18
- label: column.label,
19
- checked: column.visible,
20
- onClick: () => onColumnVisibilityChange(column, index)
21
- }],
22
- active: typeof column.visible === 'undefined' || column.visible ? [...result.active, column.property] : result.active
23
- }), {
24
- items: [],
25
- active: []
26
- });
27
- return /*#__PURE__*/_jsx(Menu.SelectionGroup, {
28
- active: active,
29
- height: height,
30
- items: items,
31
- multi: true,
32
- searchable: searchable
33
- });
16
+ } = _ref;
17
+ return () => {
18
+ const {
19
+ items,
20
+ active
21
+ } = columns.reduce((result, column, index) => ({
22
+ items: [...result.items, {
23
+ id: column.property,
24
+ label: column.label,
25
+ checked: column.visible,
26
+ onClick: () => onColumnVisibilityChange(column, index)
27
+ }],
28
+ active: typeof column.visible === 'undefined' || column.visible ? [...result.active, column.property] : result.active
29
+ }), {
30
+ items: [],
31
+ active: []
32
+ });
33
+ return /*#__PURE__*/_jsx(Menu.SelectionGroup, {
34
+ active: active,
35
+ height: height,
36
+ items: items,
37
+ multi: true,
38
+ searchable: searchable
39
+ });
40
+ };
34
41
  };
35
42
 
36
43
  export { ColumnsOptionsMenuSection as default };
@@ -1,9 +1,9 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
- import { Grid } from '@elliemae/ds-basic/Grid';
4
- import WarningTriangle from '@elliemae/ds-icons/WarningTriangle';
3
+ import { Grid } from '@elliemae/ds-grid';
4
+ import { WarningTriangle } from '@elliemae/ds-icons';
5
5
  import { toMobile, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
6
- import DSButton from '@elliemae/ds-basic/Button';
6
+ import DSButton from '@elliemae/ds-button';
7
7
  import styled from 'styled-components';
8
8
 
9
9
  var _Icon;
@@ -22,17 +22,20 @@ const SecondaryMessage = /*#__PURE__*/styled.p.withConfig({
22
22
  const Button = /*#__PURE__*/styled(DSButton).withConfig({
23
23
  componentId: "sc-1ddwbs7-4"
24
24
  })(["margin-top:", ";justify-self:center;width:fit-content;"], props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m));
25
- const EmptyState = ({
26
- primaryMessage = 'No Results Found',
27
- secondaryMessage,
28
- buttonLabel,
29
- onButtonClick = () => {}
30
- }) => /*#__PURE__*/_jsx(EmptyStateWrapper, {}, void 0, _Icon || (_Icon = /*#__PURE__*/_jsx(Icon, {
31
- size: "xxl"
32
- })), primaryMessage && /*#__PURE__*/_jsx(PrimaryMessage, {}, void 0, primaryMessage), secondaryMessage && /*#__PURE__*/_jsx(SecondaryMessage, {}, void 0, secondaryMessage), buttonLabel && /*#__PURE__*/_jsx(Button, {
33
- buttonType: "secondary",
34
- labelText: buttonLabel,
35
- onClick: onButtonClick
36
- }));
25
+ const EmptyState = _ref => {
26
+ let {
27
+ primaryMessage = 'No Results Found',
28
+ secondaryMessage,
29
+ buttonLabel,
30
+ onButtonClick = () => {}
31
+ } = _ref;
32
+ return /*#__PURE__*/_jsx(EmptyStateWrapper, {}, void 0, _Icon || (_Icon = /*#__PURE__*/_jsx(Icon, {
33
+ size: "xxl"
34
+ })), primaryMessage && /*#__PURE__*/_jsx(PrimaryMessage, {}, void 0, primaryMessage), secondaryMessage && /*#__PURE__*/_jsx(SecondaryMessage, {}, void 0, secondaryMessage), buttonLabel && /*#__PURE__*/_jsx(Button, {
35
+ buttonType: "secondary",
36
+ labelText: buttonLabel,
37
+ onClick: onButtonClick
38
+ }));
39
+ };
37
40
 
38
41
  export { EmptyState };
@@ -1,21 +1,27 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
4
+ import 'core-js/modules/esnext.iterator.constructor.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
6
+ import 'core-js/modules/esnext.async-iterator.filter.js';
7
+ import 'core-js/modules/esnext.iterator.filter.js';
3
8
  import 'react';
4
9
  import { evaluateTransforms, evaluateFormatters } from '@elliemae/ds-shared/createDataInstance/utils';
5
- import DSTruncatedTooltipText from '@elliemae/ds-basic/TruncatedTooltipText';
10
+ import DSTruncatedTooltipText from '@elliemae/ds-truncated-tooltip-text';
6
11
  import { jsx } from 'react/jsx-runtime';
7
12
 
8
13
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
9
14
 
10
15
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
11
16
 
12
- function HeaderCell({
13
- column,
14
- columnIndex,
15
- component: Component,
16
- classProps,
17
- grid
18
- }) {
17
+ function HeaderCell(_ref) {
18
+ let {
19
+ column,
20
+ columnIndex,
21
+ component: Component,
22
+ classProps,
23
+ grid
24
+ } = _ref;
19
25
  const {
20
26
  property,
21
27
  header = {},
@@ -50,7 +56,7 @@ function HeaderCell({
50
56
  classProps: classProps
51
57
  }, props), header && header.props), transformedProps), {}, {
52
58
  children: transformedProps.children || formattedValue
53
- }), `${evaluatedProperty}-header`);
59
+ }), "".concat(evaluatedProperty, "-header"));
54
60
  }
55
61
 
56
62
  export { HeaderCell as default };
@@ -1,3 +1,8 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import 'react';
3
8
  import { jsx } from 'react/jsx-runtime';
@@ -1,4 +1,11 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
+ import 'core-js/modules/esnext.async-iterator.reduce.js';
3
+ import 'core-js/modules/esnext.iterator.constructor.js';
4
+ import 'core-js/modules/esnext.iterator.reduce.js';
5
+ import 'core-js/modules/esnext.async-iterator.filter.js';
6
+ import 'core-js/modules/esnext.iterator.filter.js';
7
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
8
+ import 'core-js/modules/esnext.iterator.for-each.js';
2
9
  import 'react';
3
10
  import { jsx } from 'react/jsx-runtime';
4
11
 
@@ -1,3 +1,8 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
8
  import 'react';
@@ -1,11 +1,12 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
- import DSSpinner from '@elliemae/ds-basic/Spinner';
3
+ import DSSpinner from '@elliemae/ds-spinner';
4
4
  import { SpinnerContainer } from './renderers/defaultClassedRenderers.js';
5
5
 
6
- function RowsLoader({
7
- size = 'm'
8
- }) {
6
+ function RowsLoader(_ref) {
7
+ let {
8
+ size = 'm'
9
+ } = _ref;
9
10
  return /*#__PURE__*/_jsx(SpinnerContainer, {}, void 0, /*#__PURE__*/_jsx(DSSpinner, {
10
11
  size: size
11
12
  }));
@@ -1,3 +1,8 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
8
  import { useEffect, useCallback } from 'react';
@@ -1,3 +1,8 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
8
  import React, { useContext } from 'react';
@@ -1,3 +1,8 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import { useContext } from 'react';
3
8
  import { TableContext } from './tableContext.js';
@@ -3,10 +3,11 @@ import 'react';
3
3
  import { Pagination } from '../../plugins/pagination/components/Pagination.js';
4
4
  import { jsx, Fragment } from 'react/jsx-runtime';
5
5
 
6
- const addOptionalFooterComponents = ({
7
- grid,
8
- rows
9
- }) => {
6
+ const addOptionalFooterComponents = _ref => {
7
+ let {
8
+ grid,
9
+ rows
10
+ } = _ref;
10
11
  const {
11
12
  props: {
12
13
  maxPerPage,
@@ -1,24 +1,30 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
- import DSSearchBox from '@elliemae/ds-basic/form/SearchBox';
3
+ import { DSSearchBox } from '@elliemae/ds-form';
4
4
  import { aggregatedClasses } from '@elliemae/ds-classnames';
5
5
 
6
6
  const blockName = 'data-grid';
7
7
  const Container = aggregatedClasses('div')(blockName, 'controls');
8
8
  const SearchContainer = aggregatedClasses('div')(blockName, 'search-container');
9
9
 
10
- const PrimaryControls = ({
11
- onAddFilter = () => null
12
- }) => /*#__PURE__*/_jsx(Container, {}, void 0, /*#__PURE__*/_jsx(SearchContainer, {}, void 0, /*#__PURE__*/_jsx(DSSearchBox, {
13
- onSearch: ({
14
- property,
15
- value
16
- }) => onAddFilter({
17
- filterId: property,
18
- label: 'All',
19
- value
20
- }),
21
- placeholder: "Search all"
22
- })));
10
+ const PrimaryControls = _ref => {
11
+ let {
12
+ onAddFilter = () => null
13
+ } = _ref;
14
+ return /*#__PURE__*/_jsx(Container, {}, void 0, /*#__PURE__*/_jsx(SearchContainer, {}, void 0, /*#__PURE__*/_jsx(DSSearchBox, {
15
+ onSearch: _ref2 => {
16
+ let {
17
+ property,
18
+ value
19
+ } = _ref2;
20
+ return onAddFilter({
21
+ filterId: property,
22
+ label: 'All',
23
+ value
24
+ });
25
+ },
26
+ placeholder: "Search all"
27
+ })));
28
+ };
23
29
 
24
30
  export { PrimaryControls as default };
@@ -3,9 +3,10 @@ import 'react';
3
3
  import DSFilterBar from '@elliemae/ds-filterbar';
4
4
  import { jsx, Fragment } from 'react/jsx-runtime';
5
5
 
6
- const addOptionalHeaderComponents = ({
7
- grid
8
- }) => {
6
+ const addOptionalHeaderComponents = _ref => {
7
+ let {
8
+ grid
9
+ } = _ref;
9
10
  const {
10
11
  props: {
11
12
  showFilterBar,
@@ -1,34 +1,46 @@
1
1
  import { aggregatedClasses } from '@elliemae/ds-classnames';
2
2
  import { dataGridBlockName, headerBlockName, bodyBlockName } from '../../blockNames.js';
3
3
 
4
- const NoResultsContainer = aggregatedClasses('div')(`${dataGridBlockName}-no-results`);
5
- const SpinnerContainer = aggregatedClasses('div')(`${dataGridBlockName}-spinner`);
6
- const DatagridWrapper = aggregatedClasses('div')(`${dataGridBlockName}-wrapper`, null, ({
7
- fluidHeight
8
- }) => ({
9
- fluid: fluidHeight
10
- }));
4
+ const NoResultsContainer = aggregatedClasses('div')("".concat(dataGridBlockName, "-no-results"));
5
+ const SpinnerContainer = aggregatedClasses('div')("".concat(dataGridBlockName, "-spinner"));
6
+ const DatagridWrapper = aggregatedClasses('div')("".concat(dataGridBlockName, "-wrapper"), null, _ref => {
7
+ let {
8
+ fluidHeight
9
+ } = _ref;
10
+ return {
11
+ fluid: fluidHeight
12
+ };
13
+ });
11
14
  const TableWrapper = aggregatedClasses('div')(dataGridBlockName);
12
15
  const HeaderWrapper = aggregatedClasses('div')(headerBlockName);
13
16
  const HeaderRow = aggregatedClasses('div')(headerBlockName, 'row');
14
- const HeaderCell = aggregatedClasses('div')(headerBlockName, 'cell', ({
15
- wrapText
16
- }) => ({
17
- wrapText
18
- }));
19
- const BodyWrapper = aggregatedClasses('div')(bodyBlockName, null, ({
20
- grouped
21
- }) => ({
22
- 'ie-flex-basis-auto': true,
23
- 'is-grouped': grouped
24
- }));
17
+ const HeaderCell = aggregatedClasses('div')(headerBlockName, 'cell', _ref2 => {
18
+ let {
19
+ wrapText
20
+ } = _ref2;
21
+ return {
22
+ wrapText
23
+ };
24
+ });
25
+ const BodyWrapper = aggregatedClasses('div')(bodyBlockName, null, _ref3 => {
26
+ let {
27
+ grouped
28
+ } = _ref3;
29
+ return {
30
+ 'ie-flex-basis-auto': true,
31
+ 'is-grouped': grouped
32
+ };
33
+ });
25
34
  const BodyRow = aggregatedClasses('div', {
26
35
  'data-testid': 'datagrid-row'
27
36
  })(bodyBlockName, 'row');
28
- const BodyCell = aggregatedClasses('div')(bodyBlockName, 'cell', ({
29
- wrapText
30
- }) => ({
31
- wrapText
32
- }));
37
+ const BodyCell = aggregatedClasses('div')(bodyBlockName, 'cell', _ref4 => {
38
+ let {
39
+ wrapText
40
+ } = _ref4;
41
+ return {
42
+ wrapText
43
+ };
44
+ });
33
45
 
34
46
  export { BodyCell, BodyRow, BodyWrapper, DatagridWrapper, HeaderCell, HeaderRow, HeaderWrapper, NoResultsContainer, SpinnerContainer, TableWrapper };
@@ -1,8 +1,13 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
2
7
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
8
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
4
9
  import { useMemo, useRef, useEffect } from 'react';
5
- import { mergeRefs } from '@elliemae/ds-utilities/system';
10
+ import { mergeRefs } from '@elliemae/ds-utilities';
6
11
  import { ScrollSync, ScrollSyncPane } from '@elliemae/ds-shared/ScrollSync';
7
12
  import createInstancePlugin from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';
8
13
  import { getScrollbarWidth } from '../../utilities/getScrollbarSize.js';
@@ -15,13 +20,16 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
15
20
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16
21
  getScrollbarWidth(2);
17
22
 
18
- const HeaderSyncHoc = Component => props => /*#__PURE__*/_jsx(ScrollSyncPane, {}, void 0, ({
19
- registerPane
20
- }) => /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, props), {}, {
21
- innerRef: mergeRefs(props.innerRef, registerPane)
22
- })));
23
+ const HeaderSyncHoc = Component => props => /*#__PURE__*/_jsx(ScrollSyncPane, {}, void 0, _ref => {
24
+ let {
25
+ registerPane
26
+ } = _ref;
27
+ return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, props), {}, {
28
+ innerRef: mergeRefs(props.innerRef, registerPane)
29
+ }));
30
+ });
23
31
 
24
- const BodySyncHoc = (Component, notPaginated, grid) => _ref => {
32
+ const BodySyncHoc = (Component, notPaginated, grid) => _ref2 => {
25
33
  let {
26
34
  children,
27
35
  classProps,
@@ -44,14 +52,14 @@ const BodySyncHoc = (Component, notPaginated, grid) => _ref => {
44
52
  useDragHandle,
45
53
  className,
46
54
  listComponent
47
- } = _ref,
48
- rest = _objectWithoutProperties(_ref, _excluded);
55
+ } = _ref2,
56
+ rest = _objectWithoutProperties(_ref2, _excluded);
49
57
 
50
58
  const t = useRef();
51
59
 
52
60
  const repositionToolbarBasedOnBodyScrollPosition = SCROLLBAR_WIDTH => () => {
53
- grid.refs.body.current.style.setProperty('--toolbar-scroll', `${grid.refs.body.current.offsetWidth + grid.refs.body.current.scrollLeft - 15}px`);
54
- grid.refs.body.current.style.setProperty('--toolbar-scroll-paginated', `${grid.refs.body.current.offsetWidth + grid.refs.body.current.scrollLeft - 19}px`);
61
+ grid.refs.body.current.style.setProperty('--toolbar-scroll', "".concat(grid.refs.body.current.offsetWidth + grid.refs.body.current.scrollLeft - 15, "px"));
62
+ grid.refs.body.current.style.setProperty('--toolbar-scroll-paginated', "".concat(grid.refs.body.current.offsetWidth + grid.refs.body.current.scrollLeft - 19, "px"));
55
63
  };
56
64
 
57
65
  useEffect(() => {
@@ -65,39 +73,42 @@ const BodySyncHoc = (Component, notPaginated, grid) => _ref => {
65
73
  });
66
74
  return /*#__PURE__*/_jsx(ScrollSyncPane, {
67
75
  notPaginated: notPaginated
68
- }, void 0, ({
69
- registerPane
70
- }) => /*#__PURE__*/jsx(Component, _objectSpread({
71
- ref: t,
72
- classProps: classProps,
73
- className: className,
74
- listComponent: listComponent,
75
- columns: columns,
76
- getContainer: getContainer,
77
- helperClass: helperClass,
78
- innerBodyRef: innerBodyRef // innerRef={innerRef}
79
- ,
80
- isPlaceholderActive: isPlaceholderActive,
81
- listProps: listProps,
82
- lockAxis: lockAxis,
83
- noResultsPlaceholder: noResultsPlaceholder,
84
- numRowsVisible: numRowsVisible,
85
- onSortEnd: onSortEnd,
86
- onSortOver: onSortOver,
87
- onSortStart: onSortStart,
88
- rowKey: rowKey,
89
- rowRenderer: rowRenderer,
90
- rows: rows,
91
- useDragHandle: useDragHandle,
92
- innerRef: mergeRefs(innerRef, registerPane, t)
93
- }, rest)));
76
+ }, void 0, _ref3 => {
77
+ let {
78
+ registerPane
79
+ } = _ref3;
80
+ return /*#__PURE__*/jsx(Component, _objectSpread({
81
+ ref: t,
82
+ classProps: classProps,
83
+ className: className,
84
+ listComponent: listComponent,
85
+ columns: columns,
86
+ getContainer: getContainer,
87
+ helperClass: helperClass,
88
+ innerBodyRef: innerBodyRef // innerRef={innerRef}
89
+ ,
90
+ isPlaceholderActive: isPlaceholderActive,
91
+ listProps: listProps,
92
+ lockAxis: lockAxis,
93
+ noResultsPlaceholder: noResultsPlaceholder,
94
+ numRowsVisible: numRowsVisible,
95
+ onSortEnd: onSortEnd,
96
+ onSortOver: onSortOver,
97
+ onSortStart: onSortStart,
98
+ rowKey: rowKey,
99
+ rowRenderer: rowRenderer,
100
+ rows: rows,
101
+ useDragHandle: useDragHandle,
102
+ innerRef: mergeRefs(innerRef, registerPane, t)
103
+ }, rest));
104
+ });
94
105
  };
95
106
 
96
107
  const TableSyncHoc = Component => props => /*#__PURE__*/_jsx(ScrollSync, {
97
108
  proportional: false,
98
109
  onScroll: e => {
99
- e.target.style.setProperty('--toolbar-scroll', `${e.target.offsetWidth + e.target.scrollLeft - 15}px`);
100
- e.target.style.setProperty('--toolbar-scroll-paginated', `${e.target.offsetWidth + e.target.scrollLeft - 19}px`);
110
+ e.target.style.setProperty('--toolbar-scroll', "".concat(e.target.offsetWidth + e.target.scrollLeft - 15, "px"));
111
+ e.target.style.setProperty('--toolbar-scroll-paginated', "".concat(e.target.offsetWidth + e.target.scrollLeft - 19, "px"));
101
112
  }
102
113
  }, void 0, /*#__PURE__*/jsx(Component, _objectSpread({}, props)));
103
114