@elliemae/ds-data-table 2.4.2-rc.9 → 2.4.2
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.
- package/cjs/addons/Columns/ColumnExpand/ColumnExpand.js +3 -6
- package/cjs/addons/Columns/ColumnSelectMultiple/ColumnSelectMultiple.js +1 -2
- package/cjs/addons/Columns/ColumnSelectSingle/ColumnSelectSingle.js +1 -2
- package/cjs/addons/Editables/ComboboxEditableCell/ComboboxEditableCell.js +7 -8
- package/cjs/addons/Editables/DateEditableCell/DateEditableCell.js +5 -6
- package/cjs/addons/Editables/TextEditableCell/TextEditableCell.js +5 -6
- package/cjs/addons/Filters/Components/CurrencyRangeFilter/index.js +7 -10
- package/cjs/addons/Filters/Components/DateRangeFilter/index.js +0 -1
- package/cjs/addons/Filters/Components/DateSwitcherFilter/index.js +0 -1
- package/cjs/addons/Filters/Components/NumberRangeFilter/index.js +7 -10
- package/cjs/addons/Filters/Components/SelectFilter/BaseSelectFilter.js +0 -1
- package/cjs/addons/Filters/Components/SelectFilter/MultiSelectFilter.js +7 -8
- package/cjs/addons/Filters/Components/SelectFilter/SingleSelectFilter.js +6 -7
- package/cjs/addons/Filters/Components/SelectFilter/useSelectFilterHandlers.js +0 -1
- package/cjs/addons/Filters/Components/SelectFilter/utils.js +4 -9
- package/cjs/addons/Filters/Components/SingleDateFilter/index.js +0 -1
- package/cjs/configs/useDatatableConfig.js +1 -4
- package/cjs/configs/useRowFlattenization.js +6 -8
- package/cjs/configs/useTableColsWithAddons.js +1 -2
- package/cjs/exported-related/EditableCell.js +1 -4
- package/cjs/exported-related/FilterPopover.js +10 -33
- package/cjs/exported-related/Filters/dateRangeFilterFn.js +1 -2
- package/cjs/exported-related/Filters/numberRangeFilterFn.js +1 -1
- package/cjs/exported-related/Filters/singleDateFilterFn.js +0 -1
- package/cjs/exported-related/RowRenderer/DefaultRowContentRenderer.js +5 -8
- package/cjs/exported-related/RowRenderer/index.js +0 -1
- package/cjs/exported-related/RowRenderer/useRowRendererHandlers.js +1 -4
- package/cjs/exported-related/RowRenderer/useRowStyle.js +0 -1
- package/cjs/exported-related/Toolbar/Toolbar.js +0 -1
- package/cjs/exported-related/groupBy.js +0 -1
- package/cjs/helpers/addCellData.js +2 -6
- package/cjs/helpers/cellPadding.js +3 -5
- package/cjs/helpers/columnsToGrid.js +1 -3
- package/cjs/helpers/sizeToCss.js +1 -1
- package/cjs/hooks/useRecoverFocusCol.js +1 -8
- package/cjs/parts/Cells/Cell.js +3 -4
- package/cjs/parts/Cells/useCellStyle.js +2 -2
- package/cjs/parts/DnDHandle.js +2 -3
- package/cjs/parts/DropIndicator.js +8 -2
- package/cjs/parts/FilterBar/FiltersBar.js +9 -12
- package/cjs/parts/FilterBar/components/DateRangePill.js +4 -7
- package/cjs/parts/FilterBar/components/DateSwitcherPill.js +4 -7
- package/cjs/parts/FilterBar/components/MultiSelectPill.js +2 -5
- package/cjs/parts/FilterBar/components/NumberRangePill.js +3 -7
- package/cjs/parts/FilterBar/components/SelectPill.js +1 -3
- package/cjs/parts/FilterBar/components/SingleDatePill.js +1 -4
- package/cjs/parts/Filters/index.js +9 -9
- package/cjs/parts/Headers/HeaderCell.js +10 -13
- package/cjs/parts/Headers/HeaderCellGroup.js +5 -8
- package/cjs/parts/Headers/HeaderCellTitle.js +0 -1
- package/cjs/parts/Headers/HeaderResizer.js +3 -8
- package/cjs/parts/Headers/useHeaderCellConfig.js +1 -1
- package/cjs/parts/Headers/useHeaderCellHandlers.js +2 -4
- package/cjs/parts/HoC/withConditionalDnDColumnContext.js +2 -3
- package/cjs/parts/HoC/withConditionalDnDRowContext.js +1 -2
- package/cjs/parts/Row.js +0 -1
- package/cjs/parts/RowLoading.js +0 -1
- package/cjs/parts/RowVariants/RowVariantHeader.js +0 -1
- package/cjs/parts/RowVariants/index.js +8 -8
- package/cjs/parts/Rows.js +2 -2
- package/cjs/parts/TableContent.js +2 -3
- package/cjs/parts/VirtualRowsList.js +0 -1
- package/cjs/redux/reducers/headersReducers/logic.js +2 -2
- package/cjs/styled.js +50 -20
- package/esm/addons/Columns/ColumnExpand/ColumnExpand.js +3 -6
- package/esm/addons/Columns/ColumnSelectMultiple/ColumnSelectMultiple.js +1 -2
- package/esm/addons/Columns/ColumnSelectSingle/ColumnSelectSingle.js +1 -2
- package/esm/addons/Editables/ComboboxEditableCell/ComboboxEditableCell.js +6 -7
- package/esm/addons/Editables/DateEditableCell/DateEditableCell.js +4 -5
- package/esm/addons/Editables/TextEditableCell/TextEditableCell.js +4 -5
- package/esm/addons/Filters/Components/CurrencyRangeFilter/index.js +7 -10
- package/esm/addons/Filters/Components/DateRangeFilter/index.js +0 -1
- package/esm/addons/Filters/Components/DateSwitcherFilter/index.js +0 -1
- package/esm/addons/Filters/Components/NumberRangeFilter/index.js +7 -10
- package/esm/addons/Filters/Components/SelectFilter/BaseSelectFilter.js +0 -1
- package/esm/addons/Filters/Components/SelectFilter/MultiSelectFilter.js +6 -7
- package/esm/addons/Filters/Components/SelectFilter/SingleSelectFilter.js +5 -6
- package/esm/addons/Filters/Components/SelectFilter/useSelectFilterHandlers.js +0 -1
- package/esm/addons/Filters/Components/SelectFilter/utils.js +4 -9
- package/esm/addons/Filters/Components/SingleDateFilter/index.js +0 -1
- package/esm/configs/useDatatableConfig.js +1 -4
- package/esm/configs/useRowFlattenization.js +6 -8
- package/esm/configs/useTableColsWithAddons.js +4 -5
- package/esm/exported-related/EditableCell.js +1 -4
- package/esm/exported-related/FilterPopover.js +8 -30
- package/esm/exported-related/Filters/dateRangeFilterFn.js +1 -2
- package/esm/exported-related/Filters/numberRangeFilterFn.js +1 -1
- package/esm/exported-related/Filters/singleDateFilterFn.js +0 -1
- package/esm/exported-related/RowRenderer/DefaultRowContentRenderer.js +5 -8
- package/esm/exported-related/RowRenderer/index.js +0 -1
- package/esm/exported-related/RowRenderer/useRowRendererHandlers.js +1 -4
- package/esm/exported-related/RowRenderer/useRowStyle.js +0 -1
- package/esm/exported-related/Toolbar/Toolbar.js +0 -1
- package/esm/exported-related/groupBy.js +0 -1
- package/esm/helpers/addCellData.js +2 -6
- package/esm/helpers/cellPadding.js +3 -5
- package/esm/helpers/columnsToGrid.js +1 -3
- package/esm/helpers/sizeToCss.js +1 -1
- package/esm/hooks/useRecoverFocusCol.js +1 -8
- package/esm/parts/Cells/Cell.js +3 -4
- package/esm/parts/Cells/useCellStyle.js +2 -2
- package/esm/parts/DnDHandle.js +2 -3
- package/esm/parts/DropIndicator.js +8 -2
- package/esm/parts/FilterBar/FiltersBar.js +8 -11
- package/esm/parts/FilterBar/components/DateRangePill.js +4 -7
- package/esm/parts/FilterBar/components/DateSwitcherPill.js +4 -7
- package/esm/parts/FilterBar/components/MultiSelectPill.js +2 -5
- package/esm/parts/FilterBar/components/NumberRangePill.js +3 -7
- package/esm/parts/FilterBar/components/SelectPill.js +1 -3
- package/esm/parts/FilterBar/components/SingleDatePill.js +1 -4
- package/esm/parts/Filters/index.js +11 -11
- package/esm/parts/Headers/HeaderCell.js +10 -13
- package/esm/parts/Headers/HeaderCellGroup.js +5 -8
- package/esm/parts/Headers/HeaderCellTitle.js +0 -1
- package/esm/parts/Headers/HeaderResizer.js +3 -8
- package/esm/parts/Headers/useHeaderCellConfig.js +1 -1
- package/esm/parts/Headers/useHeaderCellHandlers.js +2 -4
- package/esm/parts/HoC/withConditionalDnDColumnContext.js +2 -3
- package/esm/parts/HoC/withConditionalDnDRowContext.js +1 -2
- package/esm/parts/Row.js +0 -1
- package/esm/parts/RowLoading.js +0 -1
- package/esm/parts/RowVariants/RowVariantHeader.js +0 -1
- package/esm/parts/RowVariants/index.js +7 -7
- package/esm/parts/Rows.js +2 -2
- package/esm/parts/TableContent.js +0 -1
- package/esm/parts/VirtualRowsList.js +0 -1
- package/esm/redux/reducers/headersReducers/logic.js +2 -2
- package/esm/styled.js +50 -20
- package/package.json +19 -19
package/cjs/styled.js
CHANGED
|
@@ -16,7 +16,6 @@ var cellPadding = require('./helpers/cellPadding.js');
|
|
|
16
16
|
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
17
17
|
require('core-js/modules/esnext.iterator.filter.js');
|
|
18
18
|
require('react');
|
|
19
|
-
require('core-js/modules/web.dom-collections.iterator.js');
|
|
20
19
|
require('core-js/modules/esnext.async-iterator.reduce.js');
|
|
21
20
|
require('core-js/modules/esnext.iterator.reduce.js');
|
|
22
21
|
require('react-virtual');
|
|
@@ -44,7 +43,19 @@ const styledFocusCss = _ref => {
|
|
|
44
43
|
let {
|
|
45
44
|
theme
|
|
46
45
|
} = _ref;
|
|
47
|
-
return
|
|
46
|
+
return `
|
|
47
|
+
&:after {
|
|
48
|
+
display: block;
|
|
49
|
+
content: ' ';
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 0;
|
|
52
|
+
left: 0;
|
|
53
|
+
right: 0;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
border: 2px solid ${theme.colors.brand[700]};
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
z-index: ${zIndexInternalConfig.ZIndexDataTable.FOCUS_BORDER};
|
|
58
|
+
}`;
|
|
48
59
|
};
|
|
49
60
|
|
|
50
61
|
const StyledFocusWithin = /*#__PURE__*/styled__default["default"](Grid__default["default"]).withConfig({
|
|
@@ -52,15 +63,7 @@ const StyledFocusWithin = /*#__PURE__*/styled__default["default"](Grid__default[
|
|
|
52
63
|
})([":focus-within{", "}"], props => props.hideFocus ? '' : styledFocusCss(props));
|
|
53
64
|
const StyledDataTableWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
54
65
|
componentId: "sc-38sgfo-1"
|
|
55
|
-
})(["width:", ";height:", ";user-select:", ";"], props => {
|
|
56
|
-
var _props$width;
|
|
57
|
-
|
|
58
|
-
return sizeToCss.sizeToCss((_props$width = props.width) !== null && _props$width !== void 0 ? _props$width : ' 100%');
|
|
59
|
-
}, props => {
|
|
60
|
-
var _props$height;
|
|
61
|
-
|
|
62
|
-
return sizeToCss.sizeToCss((_props$height = props.height) !== null && _props$height !== void 0 ? _props$height : ' 100%');
|
|
63
|
-
}, _ref2 => {
|
|
66
|
+
})(["width:", ";height:", ";user-select:", ";"], props => sizeToCss.sizeToCss(props.width ?? ' 100%'), props => sizeToCss.sizeToCss(props.height ?? ' 100%'), _ref2 => {
|
|
64
67
|
let {
|
|
65
68
|
noSelectionAllowed
|
|
66
69
|
} = _ref2;
|
|
@@ -73,7 +76,10 @@ const StyledTableWrapper = /*#__PURE__*/styled__default["default"].div.withConfi
|
|
|
73
76
|
width = '100%',
|
|
74
77
|
height = '100%'
|
|
75
78
|
} = _ref3;
|
|
76
|
-
return
|
|
79
|
+
return `
|
|
80
|
+
width: ${sizeToCss.sizeToCss(width)};
|
|
81
|
+
height: ${sizeToCss.sizeToCss(height)};
|
|
82
|
+
`;
|
|
77
83
|
});
|
|
78
84
|
const StyledTableContentWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
79
85
|
componentId: "sc-38sgfo-3"
|
|
@@ -81,7 +87,9 @@ const StyledTableContentWrapper = /*#__PURE__*/styled__default["default"].div.wi
|
|
|
81
87
|
let {
|
|
82
88
|
height = 'auto'
|
|
83
89
|
} = _ref4;
|
|
84
|
-
return
|
|
90
|
+
return `
|
|
91
|
+
height: ${sizeToCss.sizeToCss(height)};
|
|
92
|
+
`;
|
|
85
93
|
});
|
|
86
94
|
const StyledVirtualListWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
87
95
|
componentId: "sc-38sgfo-4"
|
|
@@ -90,7 +98,10 @@ const StyledVirtualListWrapper = /*#__PURE__*/styled__default["default"].div.wit
|
|
|
90
98
|
height = 'auto',
|
|
91
99
|
width = '100%'
|
|
92
100
|
} = _ref5;
|
|
93
|
-
return
|
|
101
|
+
return `
|
|
102
|
+
height: ${sizeToCss.sizeToCss(height)};
|
|
103
|
+
width: ${sizeToCss.sizeToCss(width)};
|
|
104
|
+
`;
|
|
94
105
|
});
|
|
95
106
|
/**
|
|
96
107
|
* HEADER
|
|
@@ -104,11 +115,11 @@ const getGridTemplateColumnsStyle = _ref6 => {
|
|
|
104
115
|
if (!cols) return '';
|
|
105
116
|
|
|
106
117
|
if (colsLayoutStyle === 'fixed') {
|
|
107
|
-
const widthAttr = cols.map(col =>
|
|
108
|
-
return
|
|
118
|
+
const widthAttr = cols.map(col => `minmax(0, ${col})`).join(' ');
|
|
119
|
+
return `grid-template-columns: ${widthAttr}`;
|
|
109
120
|
}
|
|
110
121
|
|
|
111
|
-
return
|
|
122
|
+
return `grid-template-columns: ${cols.map(col => `minmax(0, ${col})`).join(' ')}`;
|
|
112
123
|
};
|
|
113
124
|
|
|
114
125
|
const StyledHeadWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
@@ -124,7 +135,21 @@ const StyledHeadTr = /*#__PURE__*/styled__default["default"](Grid__default["defa
|
|
|
124
135
|
|
|
125
136
|
const StyledHeadTh = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
126
137
|
componentId: "sc-38sgfo-7"
|
|
127
|
-
})(["min-height:24px;line-height:normal;font-weight:600;text-transform:uppercase;font-size:0.923rem;text-align:left;", " color:#353c46;min-height:1.84615rem;position:sticky;z-index:", ";display:flex;justify-content:space-between;box-sizing:border-box;outline:none;", ":focus{&:after{display:block;content:' ';position:absolute;top:0;left:0;right:0;bottom:0;border:2px solid ", ";pointer-events:none;z-index:", ";}}"], cellPadding.columnPadding, zIndexInternalConfig.ZIndexDataTable.HEADER_ROW, props => props.isDraggingActive ? '' :
|
|
138
|
+
})(["min-height:24px;line-height:normal;font-weight:600;text-transform:uppercase;font-size:0.923rem;text-align:left;", " color:#353c46;min-height:1.84615rem;position:sticky;z-index:", ";display:flex;justify-content:space-between;box-sizing:border-box;outline:none;", ":focus{&:after{display:block;content:' ';position:absolute;top:0;left:0;right:0;bottom:0;border:2px solid ", ";pointer-events:none;z-index:", ";}}"], cellPadding.columnPadding, zIndexInternalConfig.ZIndexDataTable.HEADER_ROW, props => props.isDraggingActive ? '' : `:hover {
|
|
139
|
+
&:after {
|
|
140
|
+
display: block;
|
|
141
|
+
content: ' ';
|
|
142
|
+
position: absolute;
|
|
143
|
+
top: 0;
|
|
144
|
+
left: 0;
|
|
145
|
+
right: 0;
|
|
146
|
+
bottom: 0;
|
|
147
|
+
border-bottom: 1px solid ${props.theme.colors.brand[700]};
|
|
148
|
+
pointer-events: none;
|
|
149
|
+
z-index: ${zIndexInternalConfig.ZIndexDataTable.FOCUS_BORDER};
|
|
150
|
+
}
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
}`, props => props.theme.colors.brand[700], zIndexInternalConfig.ZIndexDataTable.FOCUS_BORDER);
|
|
128
153
|
const StyledHeaderRightIconsWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
129
154
|
componentId: "sc-38sgfo-8"
|
|
130
155
|
})(["height:100%;display:flex;align-items:center;max-height:24px;"]);
|
|
@@ -205,8 +230,13 @@ const StyledCellContainer = /*#__PURE__*/styled__default["default"](Grid__defaul
|
|
|
205
230
|
shouldDisplayHover,
|
|
206
231
|
theme
|
|
207
232
|
} = _ref13;
|
|
208
|
-
return shouldDisplayHover ?
|
|
209
|
-
|
|
233
|
+
return shouldDisplayHover ? `:hover {
|
|
234
|
+
background-color: ${theme.colors.brand[200]};
|
|
235
|
+
}` : '';
|
|
236
|
+
}, props => props.isDragOverlay ? 'rgba(0,0,0,0.5)' : 'transparent', props => props.isDragging ? 0.8 : 1, props => !props.selected ? '' : `
|
|
237
|
+
background-color: ${props.theme.colors.brand[200]};
|
|
238
|
+
border: 1px solid ${props.theme.colors.brand[500]};
|
|
239
|
+
`, props => props.disabled ? props.theme.colors.neutral['500'] : '#333333');
|
|
210
240
|
|
|
211
241
|
exports.GroupHeaderContainer = GroupHeaderContainer;
|
|
212
242
|
exports.GroupHeaderTitle = GroupHeaderTitle;
|
|
@@ -10,7 +10,6 @@ import { ArrowheadDown, ArrowheadRight, ArrowShortReturn } from '@elliemae/ds-ic
|
|
|
10
10
|
import styled from 'styled-components';
|
|
11
11
|
import { StyledFocusWithin } from '../../../styled.js';
|
|
12
12
|
import { DATA_TESTID } from '../../../configs/constants.js';
|
|
13
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
14
13
|
import 'core-js/modules/esnext.async-iterator.reduce.js';
|
|
15
14
|
import 'core-js/modules/esnext.iterator.reduce.js';
|
|
16
15
|
import 'react-virtual';
|
|
@@ -106,8 +105,6 @@ const expandRowColumn = {
|
|
|
106
105
|
}, void 0, GlobalExpandIcon));
|
|
107
106
|
},
|
|
108
107
|
Cell: _ref2 => {
|
|
109
|
-
var _row$original$subRows;
|
|
110
|
-
|
|
111
108
|
let {
|
|
112
109
|
cell,
|
|
113
110
|
row,
|
|
@@ -124,7 +121,7 @@ const expandRowColumn = {
|
|
|
124
121
|
} = ctx;
|
|
125
122
|
const uniqueId = row.uid;
|
|
126
123
|
const isExpanded = expandedRows[uniqueId];
|
|
127
|
-
const shouldPrintCaret =
|
|
124
|
+
const shouldPrintCaret = row.original.subRows?.length && row.depth === 0 || // only allows 1 level of expands
|
|
128
125
|
row.original.tableRowDetails || row.original.dimsumHeaderValue;
|
|
129
126
|
const onRowExpandHandler = useCallback(e => {
|
|
130
127
|
e.stopPropagation();
|
|
@@ -140,7 +137,7 @@ const expandRowColumn = {
|
|
|
140
137
|
const isDragging = draggableProps ? draggableProps.isDragging : false;
|
|
141
138
|
const isDragOverlay = dragAndDropRows && !draggableProps;
|
|
142
139
|
const indentStyle = useMemo(() => ({
|
|
143
|
-
marginLeft:
|
|
140
|
+
marginLeft: `${row.depth * 32}px`,
|
|
144
141
|
marginRight: '18px',
|
|
145
142
|
paddingLeft: '2px',
|
|
146
143
|
paddingRight: '2px',
|
|
@@ -151,7 +148,7 @@ const expandRowColumn = {
|
|
|
151
148
|
}), [row.depth]);
|
|
152
149
|
const rowProps = useMemo(() => ({
|
|
153
150
|
role: 'button',
|
|
154
|
-
key:
|
|
151
|
+
key: `${row.uid}-expand-button`,
|
|
155
152
|
title: 'Toggle Row Expanded',
|
|
156
153
|
onClick: onRowExpandHandler,
|
|
157
154
|
onKeyDown: e => {
|
|
@@ -8,7 +8,6 @@ import 'core-js/modules/esnext.iterator.filter.js';
|
|
|
8
8
|
import { useMemo, useCallback } from 'react';
|
|
9
9
|
import { DSCheckbox } from '@elliemae/ds-form';
|
|
10
10
|
import { DATA_TESTID } from '../../../configs/constants.js';
|
|
11
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
12
11
|
import 'core-js/modules/esnext.async-iterator.reduce.js';
|
|
13
12
|
import 'core-js/modules/esnext.iterator.reduce.js';
|
|
14
13
|
import 'react-virtual';
|
|
@@ -102,7 +101,7 @@ const multiSelectColumn = {
|
|
|
102
101
|
const {
|
|
103
102
|
uid
|
|
104
103
|
} = row;
|
|
105
|
-
const selectedState = selection
|
|
104
|
+
const selectedState = selection?.[uid];
|
|
106
105
|
const PureCheckboxCell = useMemo(() => /*#__PURE__*/_jsx(DSCheckbox, {
|
|
107
106
|
"data-testid": DATA_TESTID.DATA_TABLE_CHECKBOX,
|
|
108
107
|
title: "Toggle Row Selected",
|
|
@@ -6,7 +6,6 @@ import { DATA_TESTID } from '../../../configs/constants.js';
|
|
|
6
6
|
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
7
7
|
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
8
8
|
import 'core-js/modules/esnext.iterator.filter.js';
|
|
9
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
10
9
|
import 'core-js/modules/esnext.async-iterator.reduce.js';
|
|
11
10
|
import 'core-js/modules/esnext.iterator.reduce.js';
|
|
12
11
|
import 'react-virtual';
|
|
@@ -59,7 +58,7 @@ const singleSelectColumn = {
|
|
|
59
58
|
const {
|
|
60
59
|
uid
|
|
61
60
|
} = row;
|
|
62
|
-
const selectedState = selection
|
|
61
|
+
const selectedState = selection?.[uid];
|
|
63
62
|
const PureCheckBox = useMemo(() => /*#__PURE__*/_jsx(CenteredContent, {}, void 0, /*#__PURE__*/_jsx(StyledDSRadio // eslint-disable-next-line react/prop-types
|
|
64
63
|
, {
|
|
65
64
|
containerProps: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import 'core-js/modules/esnext.async-iterator.reduce.js';
|
|
4
3
|
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
5
4
|
import 'core-js/modules/esnext.iterator.reduce.js';
|
|
@@ -15,13 +14,15 @@ import '@elliemae/ds-popperjs';
|
|
|
15
14
|
import 'styled-components';
|
|
16
15
|
import '../../../redux/reducers/index.js';
|
|
17
16
|
import '../../../configs/constants.js';
|
|
17
|
+
import 'react/jsx-runtime';
|
|
18
|
+
import { EditableCell } from '../../../exported-related/EditableCell.js';
|
|
19
|
+
import '@elliemae/ds-icons';
|
|
20
|
+
import '@elliemae/ds-utilities';
|
|
18
21
|
import 'react-virtual';
|
|
19
22
|
import '../../../configs/useRowFlattenization.js';
|
|
20
23
|
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
21
24
|
import 'core-js/modules/esnext.iterator.map.js';
|
|
22
|
-
import '@elliemae/ds-icons';
|
|
23
25
|
import '../../../styled.js';
|
|
24
|
-
import 'react/jsx-runtime';
|
|
25
26
|
import '@elliemae/ds-form';
|
|
26
27
|
import '../../../parts/TableContent.js';
|
|
27
28
|
import '@elliemae/ds-grid';
|
|
@@ -31,8 +32,6 @@ import DataTableContext from '../../../DataTableContext.js';
|
|
|
31
32
|
import '../../../parts/Row.js';
|
|
32
33
|
import '../../../parts/Footer.js';
|
|
33
34
|
import '../../../parts/HoC/SortableItemContext.js';
|
|
34
|
-
import { EditableCell } from '../../../exported-related/EditableCell.js';
|
|
35
|
-
import '@elliemae/ds-utilities';
|
|
36
35
|
import 'uid';
|
|
37
36
|
import '../../../exported-related/Filters/applyOutOfTheBoxFilters.js';
|
|
38
37
|
import 'moment';
|
|
@@ -82,11 +81,11 @@ const ComboboxEditableCell = props => {
|
|
|
82
81
|
const handleOnBlur = useCallback(() => {
|
|
83
82
|
const property = columnId;
|
|
84
83
|
onCellValueChange({
|
|
85
|
-
value: value
|
|
84
|
+
value: value?.value,
|
|
86
85
|
property,
|
|
87
86
|
rowIndex: cell.row.index
|
|
88
87
|
});
|
|
89
|
-
}, [columnId, onCellValueChange, value
|
|
88
|
+
}, [columnId, onCellValueChange, value?.value, cell]);
|
|
90
89
|
return /*#__PURE__*/_jsx(EditableCell, {
|
|
91
90
|
StandardRender: DefaultCellRender,
|
|
92
91
|
EditableRenderer: /*#__PURE__*/_jsx(DSComboBox, {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import { useContext, useState, useCallback } from 'react';
|
|
4
3
|
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
5
4
|
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
@@ -12,15 +11,17 @@ import '@elliemae/ds-popperjs';
|
|
|
12
11
|
import 'styled-components';
|
|
13
12
|
import '../../../redux/reducers/index.js';
|
|
14
13
|
import '../../../configs/constants.js';
|
|
14
|
+
import 'react/jsx-runtime';
|
|
15
|
+
import { EditableCell } from '../../../exported-related/EditableCell.js';
|
|
16
|
+
import '@elliemae/ds-icons';
|
|
17
|
+
import '@elliemae/ds-utilities';
|
|
15
18
|
import 'core-js/modules/esnext.async-iterator.reduce.js';
|
|
16
19
|
import 'core-js/modules/esnext.iterator.reduce.js';
|
|
17
20
|
import 'react-virtual';
|
|
18
21
|
import '../../../configs/useRowFlattenization.js';
|
|
19
22
|
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
20
23
|
import 'core-js/modules/esnext.iterator.map.js';
|
|
21
|
-
import '@elliemae/ds-icons';
|
|
22
24
|
import '../../../styled.js';
|
|
23
|
-
import 'react/jsx-runtime';
|
|
24
25
|
import '@elliemae/ds-form';
|
|
25
26
|
import '../../../parts/TableContent.js';
|
|
26
27
|
import '@elliemae/ds-grid';
|
|
@@ -30,8 +31,6 @@ import DataTableContext from '../../../DataTableContext.js';
|
|
|
30
31
|
import '../../../parts/Row.js';
|
|
31
32
|
import '../../../parts/Footer.js';
|
|
32
33
|
import '../../../parts/HoC/SortableItemContext.js';
|
|
33
|
-
import { EditableCell } from '../../../exported-related/EditableCell.js';
|
|
34
|
-
import '@elliemae/ds-utilities';
|
|
35
34
|
import 'uid';
|
|
36
35
|
import '../../../exported-related/Filters/applyOutOfTheBoxFilters.js';
|
|
37
36
|
import 'moment';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
2
|
import { useContext, useState, useCallback } from 'react';
|
|
4
3
|
import styled from 'styled-components';
|
|
5
4
|
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
@@ -12,15 +11,17 @@ import '@elliemae/ds-button';
|
|
|
12
11
|
import '@elliemae/ds-popperjs';
|
|
13
12
|
import '../../../redux/reducers/index.js';
|
|
14
13
|
import '../../../configs/constants.js';
|
|
14
|
+
import 'react/jsx-runtime';
|
|
15
|
+
import { EditableCell } from '../../../exported-related/EditableCell.js';
|
|
16
|
+
import '@elliemae/ds-icons';
|
|
17
|
+
import '@elliemae/ds-utilities';
|
|
15
18
|
import 'core-js/modules/esnext.async-iterator.reduce.js';
|
|
16
19
|
import 'core-js/modules/esnext.iterator.reduce.js';
|
|
17
20
|
import 'react-virtual';
|
|
18
21
|
import '../../../configs/useRowFlattenization.js';
|
|
19
22
|
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
20
23
|
import 'core-js/modules/esnext.iterator.map.js';
|
|
21
|
-
import '@elliemae/ds-icons';
|
|
22
24
|
import '../../../styled.js';
|
|
23
|
-
import 'react/jsx-runtime';
|
|
24
25
|
import '@elliemae/ds-form';
|
|
25
26
|
import '../../../parts/TableContent.js';
|
|
26
27
|
import '@elliemae/ds-grid';
|
|
@@ -30,8 +31,6 @@ import DataTableContext from '../../../DataTableContext.js';
|
|
|
30
31
|
import '../../../parts/Row.js';
|
|
31
32
|
import '../../../parts/Footer.js';
|
|
32
33
|
import '../../../parts/HoC/SortableItemContext.js';
|
|
33
|
-
import { EditableCell } from '../../../exported-related/EditableCell.js';
|
|
34
|
-
import '@elliemae/ds-utilities';
|
|
35
34
|
import 'uid';
|
|
36
35
|
import '../../../exported-related/Filters/applyOutOfTheBoxFilters.js';
|
|
37
36
|
import 'moment';
|
|
@@ -11,7 +11,6 @@ import { DSInputMask, MASK_TYPES } from '@elliemae/ds-form';
|
|
|
11
11
|
import { DSFormLayoutBlockItem } from '@elliemae/ds-form-layout-blocks';
|
|
12
12
|
import { SearchXsmall } from '@elliemae/ds-icons';
|
|
13
13
|
import { FilterPopover } from '../../../../exported-related/FilterPopover.js';
|
|
14
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
15
14
|
import '../../../../styled.js';
|
|
16
15
|
import '../../../../DataTableContext.js';
|
|
17
16
|
import 'react/jsx-runtime';
|
|
@@ -55,8 +54,6 @@ const opts = {
|
|
|
55
54
|
allowNegative: true
|
|
56
55
|
};
|
|
57
56
|
const CurrencyRangeFilter = props => {
|
|
58
|
-
var _filterValue$from, _filterValue$to, _column$ref$current$o, _column$ref, _column$ref$current;
|
|
59
|
-
|
|
60
57
|
const {
|
|
61
58
|
column,
|
|
62
59
|
filterValue = {
|
|
@@ -113,15 +110,15 @@ const CurrencyRangeFilter = props => {
|
|
|
113
110
|
}
|
|
114
111
|
}, void 0, /*#__PURE__*/_jsx(DSFormLayoutBlockItem, {
|
|
115
112
|
label: "Min",
|
|
116
|
-
inputID:
|
|
113
|
+
inputID: `${idPreffix}-min-${column.id}`
|
|
117
114
|
}, void 0, /*#__PURE__*/_jsx(DSInputMask, {
|
|
118
115
|
containerProps: {
|
|
119
116
|
style: {
|
|
120
117
|
textAlign: 'right'
|
|
121
118
|
}
|
|
122
119
|
},
|
|
123
|
-
id:
|
|
124
|
-
value:
|
|
120
|
+
id: `${idPreffix}-min-${column.id}`,
|
|
121
|
+
value: `${filterValue?.from ?? ''}`,
|
|
125
122
|
onChange: handleFromChange,
|
|
126
123
|
placeholder: "0.00",
|
|
127
124
|
mask: number => MASK_TYPES.NUMBER(opts)(number),
|
|
@@ -131,15 +128,15 @@ const CurrencyRangeFilter = props => {
|
|
|
131
128
|
}
|
|
132
129
|
})), /*#__PURE__*/_jsx(DSFormLayoutBlockItem, {
|
|
133
130
|
label: "Max",
|
|
134
|
-
inputID:
|
|
131
|
+
inputID: `${idPreffix}-max-${column.id}`
|
|
135
132
|
}, void 0, /*#__PURE__*/_jsx(DSInputMask, {
|
|
136
133
|
containerProps: {
|
|
137
134
|
style: {
|
|
138
135
|
textAlign: 'right'
|
|
139
136
|
}
|
|
140
137
|
},
|
|
141
|
-
id:
|
|
142
|
-
value:
|
|
138
|
+
id: `${idPreffix}-max-${column.id}`,
|
|
139
|
+
value: `${filterValue?.to ?? ''}`,
|
|
143
140
|
onChange: handleToChange,
|
|
144
141
|
placeholder: "0.00",
|
|
145
142
|
mask: number => MASK_TYPES.NUMBER(opts)(number),
|
|
@@ -149,7 +146,7 @@ const CurrencyRangeFilter = props => {
|
|
|
149
146
|
}))),
|
|
150
147
|
triggerIcon: _SearchXsmall || (_SearchXsmall = /*#__PURE__*/_jsx(SearchXsmall, {})),
|
|
151
148
|
customStyles: {
|
|
152
|
-
width:
|
|
149
|
+
width: column.ref?.current?.offsetWidth ?? '0px'
|
|
153
150
|
},
|
|
154
151
|
innerRef: innerRef,
|
|
155
152
|
ariaLabel: "Open Currency Range Filter"
|
|
@@ -11,7 +11,6 @@ import { DSInputMask, MASK_TYPES } from '@elliemae/ds-form';
|
|
|
11
11
|
import { DSFormLayoutBlockItem } from '@elliemae/ds-form-layout-blocks';
|
|
12
12
|
import { SearchXsmall } from '@elliemae/ds-icons';
|
|
13
13
|
import { FilterPopover } from '../../../../exported-related/FilterPopover.js';
|
|
14
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
15
14
|
import '../../../../styled.js';
|
|
16
15
|
import '../../../../DataTableContext.js';
|
|
17
16
|
import 'react/jsx-runtime';
|
|
@@ -54,8 +53,6 @@ const opts = {
|
|
|
54
53
|
allowNegative: true
|
|
55
54
|
};
|
|
56
55
|
const NumberRangeFilter = props => {
|
|
57
|
-
var _filterValue$from, _filterValue$to, _column$ref$current$o, _column$ref, _column$ref$current;
|
|
58
|
-
|
|
59
56
|
const {
|
|
60
57
|
column,
|
|
61
58
|
filterValue = {
|
|
@@ -116,15 +113,15 @@ const NumberRangeFilter = props => {
|
|
|
116
113
|
}
|
|
117
114
|
}, void 0, /*#__PURE__*/_jsx(DSFormLayoutBlockItem, {
|
|
118
115
|
label: "Low",
|
|
119
|
-
inputID:
|
|
116
|
+
inputID: `${idPreffix}-low-${column.id}`
|
|
120
117
|
}, void 0, /*#__PURE__*/_jsx(DSInputMask, {
|
|
121
118
|
containerProps: {
|
|
122
119
|
style: {
|
|
123
120
|
textAlign: 'right'
|
|
124
121
|
}
|
|
125
122
|
},
|
|
126
|
-
id:
|
|
127
|
-
value:
|
|
123
|
+
id: `${idPreffix}-low-${column.id}`,
|
|
124
|
+
value: `${filterValue?.from ?? ''}`,
|
|
128
125
|
onChange: handleFromChange,
|
|
129
126
|
placeholder: "0",
|
|
130
127
|
mask: number => MASK_TYPES.NUMBER(opts)(number),
|
|
@@ -134,15 +131,15 @@ const NumberRangeFilter = props => {
|
|
|
134
131
|
}
|
|
135
132
|
})), /*#__PURE__*/_jsx(DSFormLayoutBlockItem, {
|
|
136
133
|
label: "High",
|
|
137
|
-
inputID:
|
|
134
|
+
inputID: `${idPreffix}-high-${column.id}`
|
|
138
135
|
}, void 0, /*#__PURE__*/_jsx(DSInputMask, {
|
|
139
136
|
containerProps: {
|
|
140
137
|
style: {
|
|
141
138
|
textAlign: 'right'
|
|
142
139
|
}
|
|
143
140
|
},
|
|
144
|
-
id:
|
|
145
|
-
value:
|
|
141
|
+
id: `${idPreffix}-high-${column.id}`,
|
|
142
|
+
value: `${filterValue?.to ?? ''}`,
|
|
146
143
|
onChange: handleToChange,
|
|
147
144
|
placeholder: "0",
|
|
148
145
|
mask: number => MASK_TYPES.NUMBER(opts)(number),
|
|
@@ -152,7 +149,7 @@ const NumberRangeFilter = props => {
|
|
|
152
149
|
}))),
|
|
153
150
|
triggerIcon: _SearchXsmall || (_SearchXsmall = /*#__PURE__*/_jsx(SearchXsmall, {})),
|
|
154
151
|
customStyles: {
|
|
155
|
-
width:
|
|
152
|
+
width: column.ref?.current?.offsetWidth ?? '0px'
|
|
156
153
|
},
|
|
157
154
|
innerRef: innerRef,
|
|
158
155
|
ariaLabel: "Open Number Range Filter"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
3
3
|
import 'core-js/modules/esnext.iterator.map.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
4
|
import 'core-js/modules/esnext.set.add-all.js';
|
|
6
5
|
import 'core-js/modules/esnext.set.delete-all.js';
|
|
7
6
|
import 'core-js/modules/esnext.set.difference.js';
|
|
@@ -7,31 +7,30 @@ import 'core-js/modules/esnext.iterator.filter.js';
|
|
|
7
7
|
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
8
8
|
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
9
9
|
import '@babel/runtime/helpers/esm/defineProperty';
|
|
10
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
11
10
|
import '@elliemae/ds-button';
|
|
12
11
|
import '@elliemae/ds-popperjs';
|
|
13
12
|
import 'styled-components';
|
|
14
13
|
import '../../../../redux/reducers/index.js';
|
|
15
14
|
import { DATA_TESTID } from '../../../../configs/constants.js';
|
|
15
|
+
import 'react/jsx-runtime';
|
|
16
|
+
import '../../../../styled.js';
|
|
17
|
+
import '../../../../DataTableContext.js';
|
|
18
|
+
import '@elliemae/ds-icons';
|
|
19
|
+
import '@elliemae/ds-utilities';
|
|
16
20
|
import 'core-js/modules/esnext.async-iterator.reduce.js';
|
|
17
21
|
import 'core-js/modules/esnext.iterator.reduce.js';
|
|
18
22
|
import 'react-virtual';
|
|
19
23
|
import '../../../../configs/useRowFlattenization.js';
|
|
20
24
|
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
21
25
|
import 'core-js/modules/esnext.iterator.map.js';
|
|
22
|
-
import '@elliemae/ds-icons';
|
|
23
|
-
import '../../../../styled.js';
|
|
24
|
-
import 'react/jsx-runtime';
|
|
25
26
|
import '@elliemae/ds-form';
|
|
26
27
|
import '../../../../parts/TableContent.js';
|
|
27
28
|
import '@elliemae/ds-grid';
|
|
28
29
|
import '@elliemae/ds-circular-progress-indicator';
|
|
29
30
|
import '@elliemae/ds-system';
|
|
30
|
-
import '../../../../DataTableContext.js';
|
|
31
31
|
import '../../../../parts/Row.js';
|
|
32
32
|
import '../../../../parts/Footer.js';
|
|
33
33
|
import '../../../../parts/HoC/SortableItemContext.js';
|
|
34
|
-
import '@elliemae/ds-utilities';
|
|
35
34
|
import 'uid';
|
|
36
35
|
import { FILTER_TYPES } from '../../../../exported-related/FilterTypes.js';
|
|
37
36
|
import '../../../../exported-related/Filters/applyOutOfTheBoxFilters.js';
|
|
@@ -56,7 +55,7 @@ const MultiSelectFilter = _ref => {
|
|
|
56
55
|
isMulti: true,
|
|
57
56
|
column: column,
|
|
58
57
|
ctx: ctx,
|
|
59
|
-
selectedItems: filterValue
|
|
58
|
+
selectedItems: filterValue ?? [],
|
|
60
59
|
type: FILTER_TYPES.MULTI_SELECT,
|
|
61
60
|
onValueChange: onValueChange,
|
|
62
61
|
patchHeaderFilterButtonAndMenu: patchHeaderFilterButtonAndMenu,
|
|
@@ -7,31 +7,30 @@ import 'core-js/modules/esnext.iterator.filter.js';
|
|
|
7
7
|
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
8
8
|
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
9
9
|
import '@babel/runtime/helpers/esm/defineProperty';
|
|
10
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
11
10
|
import '@elliemae/ds-button';
|
|
12
11
|
import '@elliemae/ds-popperjs';
|
|
13
12
|
import 'styled-components';
|
|
14
13
|
import '../../../../redux/reducers/index.js';
|
|
15
14
|
import { DATA_TESTID } from '../../../../configs/constants.js';
|
|
15
|
+
import 'react/jsx-runtime';
|
|
16
|
+
import '../../../../styled.js';
|
|
17
|
+
import '../../../../DataTableContext.js';
|
|
18
|
+
import '@elliemae/ds-icons';
|
|
19
|
+
import '@elliemae/ds-utilities';
|
|
16
20
|
import 'core-js/modules/esnext.async-iterator.reduce.js';
|
|
17
21
|
import 'core-js/modules/esnext.iterator.reduce.js';
|
|
18
22
|
import 'react-virtual';
|
|
19
23
|
import '../../../../configs/useRowFlattenization.js';
|
|
20
24
|
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
21
25
|
import 'core-js/modules/esnext.iterator.map.js';
|
|
22
|
-
import '@elliemae/ds-icons';
|
|
23
|
-
import '../../../../styled.js';
|
|
24
|
-
import 'react/jsx-runtime';
|
|
25
26
|
import '@elliemae/ds-form';
|
|
26
27
|
import '../../../../parts/TableContent.js';
|
|
27
28
|
import '@elliemae/ds-grid';
|
|
28
29
|
import '@elliemae/ds-circular-progress-indicator';
|
|
29
30
|
import '@elliemae/ds-system';
|
|
30
|
-
import '../../../../DataTableContext.js';
|
|
31
31
|
import '../../../../parts/Row.js';
|
|
32
32
|
import '../../../../parts/Footer.js';
|
|
33
33
|
import '../../../../parts/HoC/SortableItemContext.js';
|
|
34
|
-
import '@elliemae/ds-utilities';
|
|
35
34
|
import 'uid';
|
|
36
35
|
import { FILTER_TYPES } from '../../../../exported-related/FilterTypes.js';
|
|
37
36
|
import '../../../../exported-related/Filters/applyOutOfTheBoxFilters.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
2
|
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
3
|
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
4
|
import { useCallback } from 'react';
|
|
6
5
|
import { focusNextMenuItem, focusPrevMenuItem } from './utils.js';
|
|
7
6
|
|
|
@@ -2,7 +2,6 @@ import { DATA_TESTID } from '../../../../configs/constants.js';
|
|
|
2
2
|
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
3
3
|
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
4
4
|
import 'core-js/modules/esnext.iterator.filter.js';
|
|
5
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
6
5
|
import 'core-js/modules/esnext.async-iterator.reduce.js';
|
|
7
6
|
import 'core-js/modules/esnext.iterator.reduce.js';
|
|
8
7
|
import 'react';
|
|
@@ -30,18 +29,14 @@ import '../../../../parts/Footer.js';
|
|
|
30
29
|
import '../../../../parts/HoC/SortableItemContext.js';
|
|
31
30
|
|
|
32
31
|
const focusNextMenuItem = (e, index) => {
|
|
33
|
-
var _menuItems$item;
|
|
34
|
-
|
|
35
32
|
e.preventDefault();
|
|
36
|
-
const menuItems = document.querySelectorAll(
|
|
37
|
-
|
|
33
|
+
const menuItems = document.querySelectorAll(`[data-testid="${DATA_TESTID.DATA_TABLE_SELECT_MENU_ITEM}"]`);
|
|
34
|
+
menuItems.item(index + 1)?.focus();
|
|
38
35
|
};
|
|
39
36
|
const focusPrevMenuItem = (e, index) => {
|
|
40
|
-
var _menuItems$item2;
|
|
41
|
-
|
|
42
37
|
e.preventDefault();
|
|
43
|
-
const menuItems = document.querySelectorAll(
|
|
44
|
-
|
|
38
|
+
const menuItems = document.querySelectorAll(`[data-testid="${DATA_TESTID.DATA_TABLE_SELECT_MENU_ITEM}"]`);
|
|
39
|
+
menuItems.item(index - 1)?.focus();
|
|
45
40
|
};
|
|
46
41
|
|
|
47
42
|
export { focusNextMenuItem, focusPrevMenuItem };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
2
|
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
3
|
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
4
|
import 'core-js/modules/esnext.async-iterator.reduce.js';
|
|
6
5
|
import 'core-js/modules/esnext.iterator.reduce.js';
|
|
7
6
|
import { useRef, useMemo, useState, useEffect } from 'react';
|
|
@@ -13,8 +12,6 @@ import useTableColsWithAddons from './useTableColsWithAddons.js';
|
|
|
13
12
|
import { ColsLayoutStyle } from './constants.js';
|
|
14
13
|
|
|
15
14
|
const useDatatableConfig = props => {
|
|
16
|
-
var _columnHeaderRef$curr, _columnHeaderRef$curr2, _columnHeaderRef$curr3;
|
|
17
|
-
|
|
18
15
|
const virtualListRef = useRef(null);
|
|
19
16
|
const columnHeaderRef = useRef(null); // ===========================================================================
|
|
20
17
|
// Column config
|
|
@@ -32,7 +29,7 @@ const useDatatableConfig = props => {
|
|
|
32
29
|
size: dataLength,
|
|
33
30
|
parentRef: virtualListRef,
|
|
34
31
|
overscan: 15,
|
|
35
|
-
paddingStart:
|
|
32
|
+
paddingStart: columnHeaderRef.current?.getBoundingClientRect()?.height ?? 24
|
|
36
33
|
}); // ===========================================================================
|
|
37
34
|
// Action ref setup
|
|
38
35
|
// ===========================================================================
|