@elliemae/ds-datagrids 2.0.0-alpha.11 → 2.0.0-alpha.12

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 (202) hide show
  1. package/cjs/DSDataGrid.js +246 -243
  2. package/cjs/DataGridImpl.js +16 -8
  3. package/cjs/PaginatedDataGrid.js +5 -0
  4. package/cjs/columns/IconColumn.js +19 -17
  5. package/cjs/columns/NumberColumn.js +2 -4
  6. package/cjs/components/BodyCell.js +17 -10
  7. package/cjs/components/BodyList.js +7 -0
  8. package/cjs/components/ColumnVisibilityMenuOption.js +10 -6
  9. package/cjs/components/ColumnsOptionsMenuSection.js +34 -28
  10. package/cjs/components/EmptyState.js +19 -17
  11. package/cjs/components/HeaderCell.js +14 -8
  12. package/cjs/components/List.js +5 -0
  13. package/cjs/components/ListItem.js +7 -0
  14. package/cjs/components/NoResults.js +5 -0
  15. package/cjs/components/RowsLoader.js +5 -4
  16. package/cjs/components/Table.js +5 -0
  17. package/cjs/components/TableBody.js +5 -0
  18. package/cjs/components/TableHeader.js +5 -0
  19. package/cjs/components/footer/addOptionalFooterComponents.js +5 -4
  20. package/cjs/components/header/PrimaryControls.js +20 -15
  21. package/cjs/components/header/addOptionalHeaderComponents.js +4 -3
  22. package/cjs/components/renderers/defaultClassedRenderers.js +33 -21
  23. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +46 -35
  24. package/cjs/plugins/column-dnd/DndColumnsPlugin.js +9 -5
  25. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +2 -3
  26. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +10 -8
  27. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +13 -6
  28. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +3 -3
  29. package/cjs/plugins/column-sizing/ext-points/getTableProps.js +22 -17
  30. package/cjs/plugins/column-sizing/useColumnSizeService.js +9 -0
  31. package/cjs/plugins/column-sizing/useStylesheetHelpers.js +56 -40
  32. package/cjs/plugins/column-sizing/utils.js +10 -6
  33. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +9 -4
  34. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +20 -21
  35. package/cjs/plugins/editable/EditableComponents/ComboBox.js +9 -6
  36. package/cjs/plugins/editable/EditableComponents/TextBox.js +22 -17
  37. package/cjs/plugins/editable/EditablePlugin.js +15 -15
  38. package/cjs/plugins/editable/decorateEditable.js +18 -11
  39. package/cjs/plugins/editable/getEditorComponent.js +45 -34
  40. package/cjs/plugins/expandable-grid/ExpandableColumn.js +57 -50
  41. package/cjs/plugins/expandable-grid/ExpandablePlugin.js +37 -26
  42. package/cjs/plugins/expandable-grid/ExpandedRow.js +28 -18
  43. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +16 -10
  44. package/cjs/plugins/expandable-grid/useExpandGridState.js +3 -8
  45. package/cjs/plugins/export-data/ExportDataPlugin.js +23 -10
  46. package/cjs/plugins/filterable/FilterablePlugin.js +7 -6
  47. package/cjs/plugins/filterable/addFilterToColumn.js +5 -0
  48. package/cjs/plugins/filterable/components/FilterableHeader.js +35 -27
  49. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +38 -32
  50. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +26 -22
  51. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +119 -154
  52. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +28 -20
  53. package/cjs/plugins/filterable/filterableFormatter.js +15 -10
  54. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +16 -4
  55. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +7 -4
  56. package/cjs/plugins/filterable/helper.js +16 -7
  57. package/cjs/plugins/filterable/useFilterableState.js +11 -5
  58. package/cjs/plugins/grouping-by/GroupingByPlugin.js +2 -0
  59. package/cjs/plugins/grouping-grid/GroupingPlugin.js +9 -0
  60. package/cjs/plugins/grouping-grid/walkStrategy.js +11 -9
  61. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +7 -1
  62. package/cjs/plugins/pagination/PaginationPlugin.js +9 -2
  63. package/cjs/plugins/pagination/components/Pagination.js +10 -9
  64. package/cjs/plugins/pagination/components/Paginator.js +21 -20
  65. package/cjs/plugins/pagination/components/PerPageDropdown.js +20 -13
  66. package/cjs/plugins/pagination/helper.js +10 -7
  67. package/cjs/plugins/pagination/usePaginationState.js +7 -3
  68. package/cjs/plugins/resizable/ResizablePlugin.js +5 -4
  69. package/cjs/plugins/resizable/decorateResizable.js +14 -8
  70. package/cjs/plugins/resizable/useResizeHandle.js +21 -16
  71. package/cjs/plugins/resizable/utils.js +8 -5
  72. package/cjs/plugins/row-dnd/DndRowsPlugin.js +23 -16
  73. package/cjs/plugins/selectable/SelectablePlugin.js +10 -8
  74. package/cjs/plugins/selectable/addSelectableColumn.js +24 -16
  75. package/cjs/plugins/selectable/helper.js +12 -3
  76. package/cjs/plugins/selectable/selectableFormatter.js +80 -71
  77. package/cjs/plugins/selectable/useSelectableState.js +24 -11
  78. package/cjs/plugins/sortable/SortablePlugin.js +8 -7
  79. package/cjs/plugins/sortable/sortHeaderFormatter.js +14 -15
  80. package/cjs/plugins/sortable/sortTree.js +13 -3
  81. package/cjs/plugins/sortable/sorter.js +151 -134
  82. package/cjs/plugins/sortable/useSortableState.js +7 -0
  83. package/cjs/plugins/toolbar/RowRenderer.js +7 -2
  84. package/cjs/plugins/toolbar/ToolbarTrigger.js +15 -10
  85. package/cjs/plugins/virtualization/AutoHeightList.js +10 -8
  86. package/cjs/plugins/virtualization/VirtualizationPlugin.js +32 -25
  87. package/cjs/plugins/virtualization/VirtualizedBody.js +18 -9
  88. package/cjs/plugins/virtualization/VirtualizedBodyRow.js +8 -7
  89. package/cjs/renders/CellWithAddons.js +20 -18
  90. package/cjs/renders/styled.js +3 -2
  91. package/cjs/utilities/getPluginsFromProps.js +5 -1
  92. package/cjs/utilities/getScrollbarSize.js +2 -1
  93. package/cjs/utilities/normalizeData.js +7 -1
  94. package/esm/DSDataGrid.js +246 -243
  95. package/esm/DataGridImpl.js +16 -8
  96. package/esm/PaginatedDataGrid.js +5 -0
  97. package/esm/columns/IconColumn.js +18 -16
  98. package/esm/columns/NumberColumn.js +2 -4
  99. package/esm/components/BodyCell.js +17 -10
  100. package/esm/components/BodyList.js +7 -0
  101. package/esm/components/ColumnVisibilityMenuOption.js +10 -6
  102. package/esm/components/ColumnsOptionsMenuSection.js +34 -28
  103. package/esm/components/EmptyState.js +18 -15
  104. package/esm/components/HeaderCell.js +14 -8
  105. package/esm/components/List.js +5 -0
  106. package/esm/components/ListItem.js +7 -0
  107. package/esm/components/NoResults.js +5 -0
  108. package/esm/components/RowsLoader.js +5 -4
  109. package/esm/components/Table.js +5 -0
  110. package/esm/components/TableBody.js +5 -0
  111. package/esm/components/TableHeader.js +5 -0
  112. package/esm/components/footer/addOptionalFooterComponents.js +5 -4
  113. package/esm/components/header/PrimaryControls.js +20 -14
  114. package/esm/components/header/addOptionalHeaderComponents.js +4 -3
  115. package/esm/components/renderers/defaultClassedRenderers.js +33 -21
  116. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +46 -35
  117. package/esm/plugins/column-dnd/DndColumnsPlugin.js +6 -2
  118. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +1 -1
  119. package/esm/plugins/column-sizing/ColumnSizingPlugin.js +9 -7
  120. package/esm/plugins/column-sizing/columnMeasurerTransformer.js +12 -5
  121. package/esm/plugins/column-sizing/ext-points/decorateColumn.js +1 -1
  122. package/esm/plugins/column-sizing/ext-points/getTableProps.js +21 -15
  123. package/esm/plugins/column-sizing/useColumnSizeService.js +9 -0
  124. package/esm/plugins/column-sizing/useStylesheetHelpers.js +54 -38
  125. package/esm/plugins/column-sizing/utils.js +8 -4
  126. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +6 -1
  127. package/esm/plugins/custom-cell-renderer/getRendererComponent.js +15 -11
  128. package/esm/plugins/editable/EditableComponents/ComboBox.js +8 -4
  129. package/esm/plugins/editable/EditableComponents/TextBox.js +21 -15
  130. package/esm/plugins/editable/EditablePlugin.js +13 -12
  131. package/esm/plugins/editable/decorateEditable.js +16 -8
  132. package/esm/plugins/editable/getEditorComponent.js +49 -38
  133. package/esm/plugins/expandable-grid/ExpandableColumn.js +56 -47
  134. package/esm/plugins/expandable-grid/ExpandablePlugin.js +33 -20
  135. package/esm/plugins/expandable-grid/ExpandedRow.js +27 -17
  136. package/esm/plugins/expandable-grid/ExpandedRowExtra.js +15 -9
  137. package/esm/plugins/expandable-grid/useExpandGridState.js +1 -2
  138. package/esm/plugins/export-data/ExportDataPlugin.js +22 -9
  139. package/esm/plugins/filterable/FilterablePlugin.js +5 -4
  140. package/esm/plugins/filterable/addFilterToColumn.js +5 -0
  141. package/esm/plugins/filterable/components/FilterableHeader.js +31 -22
  142. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +38 -31
  143. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +26 -21
  144. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +118 -152
  145. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +27 -18
  146. package/esm/plugins/filterable/filterableFormatter.js +15 -10
  147. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +14 -2
  148. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +7 -4
  149. package/esm/plugins/filterable/helper.js +10 -1
  150. package/esm/plugins/filterable/useFilterableState.js +11 -5
  151. package/esm/plugins/grouping-by/GroupingByPlugin.js +2 -0
  152. package/esm/plugins/grouping-grid/GroupingPlugin.js +9 -0
  153. package/esm/plugins/grouping-grid/walkStrategy.js +11 -9
  154. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +7 -1
  155. package/esm/plugins/pagination/PaginationPlugin.js +8 -1
  156. package/esm/plugins/pagination/components/Pagination.js +10 -9
  157. package/esm/plugins/pagination/components/Paginator.js +20 -19
  158. package/esm/plugins/pagination/components/PerPageDropdown.js +17 -9
  159. package/esm/plugins/pagination/helper.js +10 -7
  160. package/esm/plugins/pagination/usePaginationState.js +6 -1
  161. package/esm/plugins/resizable/ResizablePlugin.js +4 -3
  162. package/esm/plugins/resizable/decorateResizable.js +14 -8
  163. package/esm/plugins/resizable/useResizeHandle.js +21 -16
  164. package/esm/plugins/resizable/utils.js +6 -3
  165. package/esm/plugins/row-dnd/DndRowsPlugin.js +21 -13
  166. package/esm/plugins/selectable/SelectablePlugin.js +9 -7
  167. package/esm/plugins/selectable/addSelectableColumn.js +24 -16
  168. package/esm/plugins/selectable/helper.js +10 -1
  169. package/esm/plugins/selectable/selectableFormatter.js +79 -68
  170. package/esm/plugins/selectable/useSelectableState.js +19 -5
  171. package/esm/plugins/sortable/SortablePlugin.js +5 -4
  172. package/esm/plugins/sortable/sortHeaderFormatter.js +12 -11
  173. package/esm/plugins/sortable/sortTree.js +13 -3
  174. package/esm/plugins/sortable/sorter.js +151 -134
  175. package/esm/plugins/sortable/useSortableState.js +7 -0
  176. package/esm/plugins/toolbar/RowRenderer.js +6 -1
  177. package/esm/plugins/toolbar/ToolbarTrigger.js +14 -8
  178. package/esm/plugins/virtualization/AutoHeightList.js +6 -3
  179. package/esm/plugins/virtualization/VirtualizationPlugin.js +31 -24
  180. package/esm/plugins/virtualization/VirtualizedBody.js +14 -5
  181. package/esm/plugins/virtualization/VirtualizedBodyRow.js +8 -7
  182. package/esm/renders/CellWithAddons.js +15 -14
  183. package/esm/renders/styled.js +1 -1
  184. package/esm/utilities/getPluginsFromProps.js +5 -1
  185. package/esm/utilities/getScrollbarSize.js +2 -1
  186. package/esm/utilities/normalizeData.js +7 -1
  187. package/package.json +27 -18
  188. package/types/DSDataGrid.d.ts +744 -105
  189. package/types/components/BodyCell.d.ts +1 -1
  190. package/types/components/HeaderCell.d.ts +1 -1
  191. package/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +1 -1
  192. package/types/plugins/column-sizing/ext-points/getTableProps.d.ts +1 -1
  193. package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +1 -1
  194. package/types/plugins/expandable-grid/useExpandGridState.d.ts +4 -4
  195. package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +1 -1
  196. package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +1 -1
  197. package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +1 -1
  198. package/types/plugins/filterable/helper.d.ts +15 -3
  199. package/types/plugins/pagination/components/Paginator.d.ts +1 -1
  200. package/types/plugins/pagination/components/PerPageDropdown.d.ts +1 -1
  201. package/types/plugins/sortable/sorter.d.ts +1 -1
  202. package/types/renders/styled.d.ts +3 -3
@@ -1,10 +1,15 @@
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 'core-js/modules/web.dom-collections.iterator.js';
4
9
  import { useState } from 'react';
5
10
  import styled from 'styled-components';
6
- import DSButton from '@elliemae/ds-basic/Button';
7
- import MoreOptionsVert from '@elliemae/ds-icons/MoreOptionsVert';
11
+ import DSButton from '@elliemae/ds-button';
12
+ import { MoreOptionsVert } from '@elliemae/ds-icons';
8
13
 
9
14
  var _MoreOptionsVert;
10
15
 
@@ -21,12 +26,13 @@ const ToolbarPosition = /*#__PURE__*/styled.div.withConfig({
21
26
  componentId: "sc-pm75g5-2"
22
27
  })(["position:absolute;z-index:10;display:flex;justify-content:flex-end;align-items:center;width:0;pointer-events:none;top:0;height:", ";margin-top:", ";"], props => props.rowRef.current ? "".concat(props.rowRef.current.offsetHeight, "px") : '36px', props => props.rowSize === 'normal' ? '0' : '0'); // eslint-disable-next-line react/prop-types
23
28
 
24
- const ToolbarTrigger = ({
25
- grid,
26
- rowData,
27
- hasScrollBar,
28
- rowRef
29
- }) => {
29
+ const ToolbarTrigger = _ref => {
30
+ let {
31
+ grid,
32
+ rowData,
33
+ hasScrollBar,
34
+ rowRef
35
+ } = _ref;
30
36
  const {
31
37
  props: {
32
38
  renderToolbar,
@@ -1,10 +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 _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
8
  import { forwardRef, useRef } from 'react';
4
9
  import { FixedSizeList } from 'react-window';
5
- import { cx } from '@elliemae/ds-utilities/utils';
6
- import { mergeRefs } from '@elliemae/ds-utilities/system';
7
- import useWindowScrollerList from '@elliemae/ds-utilities/hooks/useWindowScrollerList';
10
+ import { useWindowScrollerList, mergeRefs, cx } from '@elliemae/ds-utilities';
8
11
  import { jsx } from 'react/jsx-runtime';
9
12
 
10
13
  const _excluded = ["itemCount", "className", "innerRef", "itemData", "itemKey", "itemSize", "outerRef", "component"];
@@ -1,10 +1,14 @@
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 { useMemo, useRef } from 'react';
4
9
  import { get } from 'lodash';
5
10
  import FocusGridManager from '@elliemae/ds-shared/FocusGroup/FocusGrid';
6
- import { runAll } from '@elliemae/ds-utilities/utils';
7
- import { mergeRefs } from '@elliemae/ds-utilities/system';
11
+ import { mergeRefs, runAll } from '@elliemae/ds-utilities';
8
12
  import createInstancePlugin from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';
9
13
  import VirtualizedBody from './VirtualizedBody.js';
10
14
  import { jsx } from 'react/jsx-runtime';
@@ -46,28 +50,31 @@ const VirtualizationPlugin = createInstancePlugin('virtualization', {
46
50
 
47
51
  return /*#__PURE__*/_jsx(FocusGridManager, {
48
52
  hotKeys: hotKeys,
49
- keyBindings: ({
50
- defaultBindings
51
- }) => _objectSpread(_objectSpread({}, defaultBindings), {}, {
52
- // todo: this is kind of hacky, since it's virtualized and there's
53
- // the possibility that the firsts or lasts rows aren't rendered
54
- Home: runAll(e => {
55
- if (e.ctrlKey) {
56
- listRef.current.scrollToItem(0);
57
- setTimeout(() => defaultBindings.Home(e), 10);
58
- } else {
59
- defaultBindings.Home(e);
60
- }
61
- }),
62
- End: runAll(e => {
63
- if (e.ctrlKey) {
64
- listRef.current.scrollToItem(rows.length - 1);
65
- setTimeout(() => defaultBindings.End(e), 10);
66
- } else {
67
- defaultBindings.End(e);
68
- }
69
- })
70
- }),
53
+ keyBindings: _ref => {
54
+ let {
55
+ defaultBindings
56
+ } = _ref;
57
+ return _objectSpread(_objectSpread({}, defaultBindings), {}, {
58
+ // todo: this is kind of hacky, since it's virtualized and there's
59
+ // the possibility that the firsts or lasts rows aren't rendered
60
+ Home: runAll(e => {
61
+ if (e.ctrlKey) {
62
+ listRef.current.scrollToItem(0);
63
+ setTimeout(() => defaultBindings.Home(e), 10);
64
+ } else {
65
+ defaultBindings.Home(e);
66
+ }
67
+ }),
68
+ End: runAll(e => {
69
+ if (e.ctrlKey) {
70
+ listRef.current.scrollToItem(rows.length - 1);
71
+ setTimeout(() => defaultBindings.End(e), 10);
72
+ } else {
73
+ defaultBindings.End(e);
74
+ }
75
+ })
76
+ });
77
+ },
71
78
  shouldRefocus: false
72
79
  }, void 0, /*#__PURE__*/jsx(VirtualizedBody, _objectSpread(_objectSpread({}, props), {}, {
73
80
  autoScrollToId: autoScrollToId,
@@ -1,9 +1,17 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
3
  import 'core-js/modules/web.dom-collections.iterator.js';
4
+ import 'core-js/modules/esnext.async-iterator.reduce.js';
5
+ import 'core-js/modules/esnext.iterator.constructor.js';
6
+ import 'core-js/modules/esnext.iterator.reduce.js';
7
+ import 'core-js/modules/esnext.async-iterator.map.js';
8
+ import 'core-js/modules/esnext.iterator.map.js';
9
+ import 'core-js/modules/esnext.async-iterator.filter.js';
10
+ import 'core-js/modules/esnext.iterator.filter.js';
11
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
12
+ import 'core-js/modules/esnext.iterator.for-each.js';
4
13
  import { useState, useRef, useCallback, useEffect, useLayoutEffect } from 'react';
5
- import { mergeRefs } from '@elliemae/ds-utilities/system';
6
- import { debounce, isNaN } from '@elliemae/ds-utilities/utils';
14
+ import { debounce, isNaN, mergeRefs } from '@elliemae/ds-utilities';
7
15
  import NoResults from '../../components/NoResults.js';
8
16
  import VirtualizedBodyRow from './VirtualizedBodyRow.js';
9
17
  import { RowSizes } from '../../rowSizes.js';
@@ -91,9 +99,10 @@ const VirtualizedBody = props => {
91
99
  useEffect(() => {
92
100
  autoScrollTo(visibleHeight);
93
101
  }, [autoScrollToId, visibleHeight]);
94
- const handler = useCallback(debounce(({
95
- target
96
- }) => {
102
+ const handler = useCallback(debounce(_ref => {
103
+ let {
104
+ target
105
+ } = _ref;
97
106
  // Update coordinates
98
107
  setScrollTop(target.scrollTop || 0);
99
108
  }, 100), [setScrollTop]);
@@ -1,10 +1,11 @@
1
- function VirtualizedBodyRow({
2
- data,
3
- index,
4
- style,
5
- key,
6
- isScrolling
7
- }) {
1
+ function VirtualizedBodyRow(_ref) {
2
+ let {
3
+ data,
4
+ index,
5
+ style,
6
+ key,
7
+ isScrolling
8
+ } = _ref;
8
9
  const {
9
10
  rows,
10
11
  renderer: {
@@ -1,22 +1,23 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { get } from 'lodash';
4
- import { Grid } from '@elliemae/ds-basic/Grid';
5
- import DSTruncatedTooltipText from '@elliemae/ds-basic/TruncatedTooltipText';
4
+ import Grid from '@elliemae/ds-grid';
5
+ import DSTruncatedTooltipText from '@elliemae/ds-truncated-tooltip-text';
6
6
  import { CellWrapper, ValueWrapper } from './styled.js';
7
7
 
8
- const CellWithAddons = ({
9
- leftAddon,
10
- keepLeftPadding,
11
- rightAddon,
12
- badgeAddon,
13
- highLight,
14
- isEdit,
15
- editComponent,
16
- value,
17
- neutralText,
18
- metaData
19
- }) => {
8
+ const CellWithAddons = _ref => {
9
+ let {
10
+ leftAddon,
11
+ keepLeftPadding,
12
+ rightAddon,
13
+ badgeAddon,
14
+ highLight,
15
+ isEdit,
16
+ editComponent,
17
+ value,
18
+ neutralText,
19
+ metaData
20
+ } = _ref;
20
21
  const hasLeftAddon = !!leftAddon || keepLeftPadding;
21
22
  const hasRightAddon = !!rightAddon && !isEdit;
22
23
  const cols = [1];
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- import { Grid } from '@elliemae/ds-basic/Grid';
2
+ import Grid from '@elliemae/ds-grid';
3
3
 
4
4
  const m = '0.61538rem';
5
5
  const m2 = '1.23076rem';
@@ -1,3 +1,6 @@
1
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
4
  import { DndRowsPlugin } from '../plugins/row-dnd/DndRowsPlugin.js';
2
5
  import { DndColumnsPlugin } from '../plugins/column-dnd/DndColumnsPlugin.js';
3
6
  import { InfiniteScrollPlugin } from '../plugins/infinite-scrolling/InfiniteScrollPlugin.js';
@@ -27,7 +30,8 @@ const mapPropToPlugin = {
27
30
  groupedRows: GroupingPlugin,
28
31
  dragAndDropRows: DndRowsPlugin
29
32
  };
30
- function getPluginsFromProps(props, omit = {}) {
33
+ function getPluginsFromProps(props) {
34
+ let omit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
31
35
  const plugins = [];
32
36
  Object.keys(mapPropToPlugin).forEach(key => {
33
37
  if (props[key] && !omit[key]) plugins.push(mapPropToPlugin[key]);
@@ -1,4 +1,5 @@
1
- function getScrollbarWidth(compensatePixels = 0) {
1
+ function getScrollbarWidth() {
2
+ let compensatePixels = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
2
3
  // Creating invisible container
3
4
  const outer = document.createElement('div');
4
5
  outer.style.visibility = 'hidden';
@@ -1,10 +1,16 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.filter.js';
1
3
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
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.for-each.js';
7
+ import 'core-js/modules/esnext.iterator.constructor.js';
8
+ import 'core-js/modules/esnext.iterator.for-each.js';
2
9
  import 'core-js/modules/es.string.replace.js';
3
10
 
4
11
  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; }
5
12
 
6
13
  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; }
7
-
8
14
  const normalizeRows = rows => rows.map(row => {
9
15
  Object.keys(row).forEach(key => row[normalizeText(key)] = row[key]);
10
16
  return row;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-datagrids",
3
- "version": "2.0.0-alpha.11",
3
+ "version": "2.0.0-alpha.12",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Data Grids",
6
6
  "module": "./esm/index.js",
@@ -541,41 +541,50 @@
541
541
  "generateSubmodules": true
542
542
  },
543
543
  "dependencies": {
544
- "@elliemae/ds-basic": "2.0.0-alpha.11",
545
- "@elliemae/ds-classnames": "2.0.0-alpha.11",
546
- "@elliemae/ds-date-range-picker": "2.0.0-alpha.11",
547
- "@elliemae/ds-dropdownmenu": "2.0.0-alpha.11",
548
- "@elliemae/ds-filterbar": "2.0.0-alpha.11",
549
- "@elliemae/ds-icons": "2.0.0-alpha.11",
550
- "@elliemae/ds-shared": "2.0.0-alpha.11",
551
- "@elliemae/ds-utilities": "2.0.0-alpha.11",
544
+ "@elliemae/ds-basic": "2.0.0-alpha.12",
545
+ "@elliemae/ds-button": "2.0.0-alpha.12",
546
+ "@elliemae/ds-classnames": "2.0.0-alpha.12",
547
+ "@elliemae/ds-controlled-form": "2.0.0-alpha.12",
548
+ "@elliemae/ds-datagrids": "2.0.0-alpha.12",
549
+ "@elliemae/ds-dropdownmenu": "2.0.0-alpha.12",
550
+ "@elliemae/ds-filterbar": "2.0.0-alpha.12",
551
+ "@elliemae/ds-form": "2.0.0-alpha.12",
552
+ "@elliemae/ds-grid": "2.0.0-alpha.12",
553
+ "@elliemae/ds-icons": "2.0.0-alpha.12",
554
+ "@elliemae/ds-menu": "2.0.0-alpha.12",
555
+ "@elliemae/ds-popper": "2.0.0-alpha.12",
556
+ "@elliemae/ds-separator": "2.0.0-alpha.12",
557
+ "@elliemae/ds-shared": "2.0.0-alpha.12",
558
+ "@elliemae/ds-spinner": "2.0.0-alpha.12",
559
+ "@elliemae/ds-system": "2.0.0-alpha.12",
560
+ "@elliemae/ds-toolbar": "2.0.0-alpha.12",
561
+ "@elliemae/ds-truncated-tooltip-text": "2.0.0-alpha.12",
562
+ "@elliemae/ds-utilities": "2.0.0-alpha.12",
552
563
  "comparejs": "~1.0.3",
553
- "defer-render-hoc": "~0.3.0",
554
564
  "memoize-one": "~5.1.1",
555
565
  "moment": "~2.29.1",
566
+ "obj-str": "~1.1.0",
556
567
  "prop-types": "~15.7.2",
557
- "raf": "~3.4.1",
558
- "react-beautiful-dnd": "~12.2.0",
559
- "react-dates": "~21.8.0",
568
+ "react-desc": "~4.1.3",
560
569
  "react-edit": "~6.4.1",
561
570
  "react-pagify": "~2.4.0",
562
571
  "react-sortable-hoc": "~1.11.0",
563
- "react-virtualized-auto-sizer": "~1.0.6",
564
572
  "react-window": "~1.8.6",
565
- "redux": "~4.0.5",
566
573
  "segmentize": "~0.4.1",
567
574
  "sortabular": "~1.6.0",
568
575
  "stylesheet-helpers": "~0.2.2",
569
- "table-resolver": "~4.1.1",
570
576
  "uuid": "~8.3.2"
571
577
  },
572
578
  "devDependencies": {
573
- "styled-components": "~5.3.1"
579
+ "@testing-library/jest-dom": "~5.15.0",
580
+ "@testing-library/react": "~12.1.2",
581
+ "@testing-library/user-event": "~13.5.0",
582
+ "styled-components": "~5.3.3"
574
583
  },
575
584
  "peerDependencies": {
576
585
  "lodash": "^4.17.21",
577
586
  "react": "~17.0.2",
578
587
  "react-dom": "^17.0.2",
579
- "styled-components": "^5.3.1"
588
+ "styled-components": "^5.3.3"
580
589
  }
581
590
  }