@elliemae/ds-datagrids 2.0.0-alpha.4 → 2.0.0-alpha.8

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 (92) hide show
  1. package/cjs/DSDataGrid.js +2 -2
  2. package/cjs/DataGridImpl.js +5 -5
  3. package/cjs/PaginatedDataGrid.js +6 -6
  4. package/cjs/columns/IconColumn.js +4 -4
  5. package/cjs/components/BodyCell.js +3 -3
  6. package/cjs/components/BodyList.js +4 -4
  7. package/cjs/components/ColumnsOptionsMenuSection.js +1 -1
  8. package/cjs/components/EmptyState.js +7 -7
  9. package/cjs/components/HeaderCell.js +2 -2
  10. package/cjs/components/List.js +1 -1
  11. package/cjs/components/ListItem.js +1 -1
  12. package/cjs/components/NoResults.js +3 -3
  13. package/cjs/components/RowsLoader.js +1 -1
  14. package/cjs/components/Table.js +4 -4
  15. package/cjs/components/TableBody.js +3 -3
  16. package/cjs/components/TableHeader.js +1 -1
  17. package/cjs/components/footer/addOptionalFooterComponents.js +1 -1
  18. package/cjs/components/header/PrimaryControls.js +1 -1
  19. package/cjs/components/header/addOptionalHeaderComponents.js +1 -1
  20. package/cjs/components/renderers/renderRowsLoader.js +1 -1
  21. package/cjs/components/tableContext.js +1 -1
  22. package/cjs/index.js +1 -1
  23. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +6 -6
  24. package/cjs/plugins/column-dnd/DndColumnsPlugin.js +2 -2
  25. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +2 -2
  26. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +1 -1
  27. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +1 -1
  28. package/cjs/plugins/column-sizing/ext-points/getTableProps.js +2 -2
  29. package/cjs/plugins/column-sizing/useColumnSizeService.js +1 -1
  30. package/cjs/plugins/column-sizing/useStylesheetHelpers.js +2 -4
  31. package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +2 -2
  32. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +2 -2
  33. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +9 -9
  34. package/cjs/plugins/editable/EditableComponents/ComboBox.js +3 -3
  35. package/cjs/plugins/editable/EditableComponents/TextBox.js +4 -4
  36. package/cjs/plugins/editable/EditablePlugin.js +2 -2
  37. package/cjs/plugins/editable/decorateEditable.js +7 -9
  38. package/cjs/plugins/editable/getEditorComponent.js +3 -3
  39. package/cjs/plugins/expandable-grid/ExpandableColumn.js +9 -9
  40. package/cjs/plugins/expandable-grid/ExpandablePlugin.js +6 -6
  41. package/cjs/plugins/expandable-grid/ExpandedRow.js +14 -14
  42. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +4 -4
  43. package/cjs/plugins/expandable-grid/useExpandGridState.js +1 -1
  44. package/cjs/plugins/export-data/ExportDataPlugin.js +3 -2
  45. package/cjs/plugins/filterable/FilterablePlugin.js +2 -2
  46. package/cjs/plugins/filterable/addFilterToColumn.js +1 -1
  47. package/cjs/plugins/filterable/components/FilterableHeader.js +4 -4
  48. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +12 -12
  49. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +11 -11
  50. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +13 -13
  51. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +9 -9
  52. package/cjs/plugins/filterable/filterableFormatter.js +1 -1
  53. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +2 -2
  54. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +4 -4
  55. package/cjs/plugins/filterable/helper.js +1 -1
  56. package/cjs/plugins/filterable/useFilterableState.js +1 -1
  57. package/cjs/plugins/grouping-by/GroupingByPlugin.js +1 -1
  58. package/cjs/plugins/grouping-grid/GroupingPlugin.js +4 -4
  59. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +3 -3
  60. package/cjs/plugins/pagination/PaginationPlugin.js +8 -8
  61. package/cjs/plugins/pagination/components/Pagination.js +2 -2
  62. package/cjs/plugins/pagination/components/Paginator.js +12 -12
  63. package/cjs/plugins/pagination/components/PerPageDropdown.js +5 -5
  64. package/cjs/plugins/pagination/helper.js +1 -1
  65. package/cjs/plugins/pagination/usePaginationState.js +2 -2
  66. package/cjs/plugins/resizable/ResizablePlugin.js +1 -1
  67. package/cjs/plugins/resizable/decorateResizable.js +3 -3
  68. package/cjs/plugins/resizable/useResizeHandle.js +1 -1
  69. package/cjs/plugins/resizable/utils.js +4 -4
  70. package/cjs/plugins/row-dnd/DndRowsPlugin.js +4 -4
  71. package/cjs/plugins/selectable/SelectablePlugin.js +2 -2
  72. package/cjs/plugins/selectable/addSelectableColumn.js +2 -2
  73. package/cjs/plugins/selectable/helper.js +1 -1
  74. package/cjs/plugins/selectable/selectableFormatter.js +7 -7
  75. package/cjs/plugins/selectable/useSelectableState.js +2 -2
  76. package/cjs/plugins/sortable/SortablePlugin.js +3 -5
  77. package/cjs/plugins/sortable/checkIfSortable.js +1 -1
  78. package/cjs/plugins/sortable/sortHeaderFormatter.js +6 -6
  79. package/cjs/plugins/sortable/sortTree.js +3 -5
  80. package/cjs/plugins/sortable/sorter.js +3 -3
  81. package/cjs/plugins/sortable/useSortableState.js +4 -6
  82. package/cjs/plugins/toolbar/RowRenderer.js +4 -4
  83. package/cjs/plugins/toolbar/ToolbarPlugin.js +2 -2
  84. package/cjs/plugins/toolbar/ToolbarTrigger.js +9 -9
  85. package/cjs/plugins/virtualization/AutoHeightList.js +3 -3
  86. package/cjs/plugins/virtualization/VirtualizationPlugin.js +3 -3
  87. package/cjs/plugins/virtualization/VirtualizedBody.js +3 -3
  88. package/cjs/renders/CellWithAddons.js +7 -7
  89. package/cjs/renders/styled.js +3 -3
  90. package/cjs/utilities/normalizeData.js +1 -1
  91. package/esm/plugins/export-data/ExportDataPlugin.js +1 -0
  92. package/package.json +9 -9
@@ -32,27 +32,27 @@ const CellWithAddons = ({
32
32
  const shouldBeGray = neutralText || lodash.get(metaData, 'rowData.customRowProps.neutralText');
33
33
  if (hasLeftAddon) cols.unshift('auto');
34
34
  if (hasRightAddon) cols.push('auto');
35
- return /*#__PURE__*/_jsx__default['default'](styled.CellWrapper, {
35
+ return /*#__PURE__*/_jsx__default["default"](styled.CellWrapper, {
36
36
  noPadding: hasLeftAddon || badgeAddon || highLight || hasRightAddon,
37
37
  hasLeftAddon: hasLeftAddon,
38
38
  hasRightAddon: hasRightAddon,
39
39
  badgeAddon: badgeAddon,
40
40
  highLight: highLight
41
- }, void 0, /*#__PURE__*/_jsx__default['default'](Grid.Grid, {
41
+ }, void 0, /*#__PURE__*/_jsx__default["default"](Grid.Grid, {
42
42
  height: "100%",
43
43
  cols: cols
44
- }, void 0, hasLeftAddon && /*#__PURE__*/_jsx__default['default'](Grid.Grid, {
44
+ }, void 0, hasLeftAddon && /*#__PURE__*/_jsx__default["default"](Grid.Grid, {
45
45
  alignItems: "center",
46
46
  pl: "xxs",
47
47
  pr: "xxs",
48
48
  width: keepLeftPadding ? '32px' : undefined
49
- }, void 0, hasLeftAddon && leftAddon), /*#__PURE__*/_jsx__default['default'](Grid.Grid, {
49
+ }, void 0, hasLeftAddon && leftAddon), /*#__PURE__*/_jsx__default["default"](Grid.Grid, {
50
50
  alignItems: "center"
51
- }, void 0, /*#__PURE__*/_jsx__default['default'](styled.ValueWrapper, {
51
+ }, void 0, /*#__PURE__*/_jsx__default["default"](styled.ValueWrapper, {
52
52
  grayText: shouldBeGray
53
- }, void 0, isEdit ? editComponent : /*#__PURE__*/_jsx__default['default'](DSTruncatedTooltipText__default['default'], {
53
+ }, void 0, isEdit ? editComponent : /*#__PURE__*/_jsx__default["default"](DSTruncatedTooltipText__default["default"], {
54
54
  value: value
55
- }))), hasRightAddon && /*#__PURE__*/_jsx__default['default'](Grid.Grid, {
55
+ }))), hasRightAddon && /*#__PURE__*/_jsx__default["default"](Grid.Grid, {
56
56
  alignItems: "center",
57
57
  pl: "xxs"
58
58
  }, void 0, rightAddon)));
@@ -11,7 +11,7 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
12
  const m = '0.61538rem';
13
13
  const m2 = '1.23076rem';
14
- const CellWrapper = /*#__PURE__*/styled__default['default'].div.withConfig({
14
+ const CellWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
15
15
  componentId: "sc-1n8exyf-0"
16
16
  })(["max-height:36px;height:100%;width:", ";margin-left:", ";margin-right:", ";padding-left:", ";padding-right:", ";", ";", ""], props => props.noPadding ? `calc(100% + ${m2})` : '100%', props => props.noPadding ? `-${m}` : '0', props => props.noPadding ? `-${m}` : '0', props => !props.hasLeftAddon && (props.badgeAddon || props.highLight || props.hasRightAddon) ? m : '0', props => !props.hasRightAddon && (props.badgeAddon || props.highLight || props.hasLeftAddon) ? m : '0', props => props.highLight ? `background: ${props.theme.colors.brand['200']}` : '', props => props.badgeAddon ? `
17
17
  position: relative;
@@ -26,10 +26,10 @@ const CellWrapper = /*#__PURE__*/styled__default['default'].div.withConfig({
26
26
  border-color: ${props.theme.colors.brand['600']} transparent transparent ${props.theme.colors.brand['600']};
27
27
  }
28
28
  ` : '');
29
- const ValueWrapper = /*#__PURE__*/styled__default['default'].div.withConfig({
29
+ const ValueWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
30
30
  componentId: "sc-1n8exyf-1"
31
31
  })(["display:flex;align-items:center;overflow:hidden;& > span{display:inline-flex;align-items:center;}", ""], props => props.grayText ? `color: ${props.theme.colors.neutral['500']};` : '');
32
- const CellContainer = /*#__PURE__*/styled__default['default'](Grid.Grid).withConfig({
32
+ const CellContainer = /*#__PURE__*/styled__default["default"](Grid.Grid).withConfig({
33
33
  componentId: "sc-1n8exyf-2"
34
34
  })(["padding-left:", ";padding-right:", ";position:relative;"], m, m);
35
35
 
@@ -11,7 +11,7 @@ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_definePropert
11
11
 
12
12
  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; }
13
13
 
14
- 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__default['default'](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; }
14
+ 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__default["default"](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
15
 
16
16
  const normalizeRows = rows => rows.map(row => {
17
17
  Object.keys(row).forEach(key => row[normalizeText(key)] = row[key]);
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import 'core-js/modules/es.string.replace.js';
3
3
  import 'core-js/modules/web.url.js';
4
+ import 'core-js/modules/web.url-search-params.js';
4
5
  import { get } from '@elliemae/ds-utilities/utils';
5
6
  import createInstancePlugin from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';
6
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-datagrids",
3
- "version": "2.0.0-alpha.4",
3
+ "version": "2.0.0-alpha.8",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Data Grids",
6
6
  "module": "./esm/index.js",
@@ -541,14 +541,14 @@
541
541
  "generateSubmodules": true
542
542
  },
543
543
  "dependencies": {
544
- "@elliemae/ds-basic": "2.0.0-alpha.4",
545
- "@elliemae/ds-classnames": "2.0.0-alpha.4",
546
- "@elliemae/ds-date-range-picker": "2.0.0-alpha.4",
547
- "@elliemae/ds-dropdownmenu": "2.0.0-alpha.4",
548
- "@elliemae/ds-filterbar": "2.0.0-alpha.4",
549
- "@elliemae/ds-icons": "2.0.0-alpha.4",
550
- "@elliemae/ds-shared": "2.0.0-alpha.4",
551
- "@elliemae/ds-utilities": "2.0.0-alpha.4",
544
+ "@elliemae/ds-basic": "2.0.0-alpha.8",
545
+ "@elliemae/ds-classnames": "2.0.0-alpha.8",
546
+ "@elliemae/ds-date-range-picker": "2.0.0-alpha.8",
547
+ "@elliemae/ds-dropdownmenu": "2.0.0-alpha.8",
548
+ "@elliemae/ds-filterbar": "2.0.0-alpha.8",
549
+ "@elliemae/ds-icons": "2.0.0-alpha.8",
550
+ "@elliemae/ds-shared": "2.0.0-alpha.8",
551
+ "@elliemae/ds-utilities": "2.0.0-alpha.8",
552
552
  "comparejs": "~1.0.3",
553
553
  "defer-render-hoc": "~0.3.0",
554
554
  "memoize-one": "~5.1.1",