@elliemae/ds-data-table 2.0.0-rc.4 → 2.0.0-rc.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.
- package/cjs/DataTableSchema.js +1 -1
- package/cjs/addons/Filters/Components/index.js +0 -2
- package/cjs/addons/Filters/index.js +0 -2
- package/cjs/exported-related/FilterPopover.js +17 -3
- package/cjs/exported-related/FilterTypes.js +0 -1
- package/cjs/exported-related/Filters/applyOutOfTheBoxFilters.js +0 -2
- package/cjs/exported-related/Filters/index.js +0 -2
- package/cjs/exported-related/index.js +0 -2
- package/cjs/helpers/dndkit/hierarchy/customCollisionDetection.js +27 -14
- package/cjs/helpers/dndkit/hierarchy/getHierarchyKeyboardCoordinates.js +22 -20
- package/cjs/helpers/dndkit/hierarchy/useHierarchyDndkitConfig.js +5 -3
- package/cjs/helpers/dndkit/tree/customCollisionDetection.js +45 -25
- package/cjs/helpers/dndkit/tree/getTreeKeyboardCoordinates.js +25 -30
- package/cjs/helpers/dndkit/tree/useTreeDndkitConfig.js +5 -3
- package/cjs/helpers/refs-helpers.js +2 -2
- package/cjs/index.js +0 -2
- package/cjs/parts/FilterBar/FiltersBar.js +0 -2
- package/cjs/parts/FilterBar/components/index.js +0 -2
- package/cjs/parts/Filters/index.js +10 -12
- package/cjs/parts/Headers/HeaderCellGroup.js +4 -3
- package/cjs/parts/Headers/index.js +1 -1
- package/cjs/parts/HoC/withConditionalDnDColumnContext.js +17 -13
- package/cjs/parts/HoC/withConditionalDnDRowContext.js +9 -10
- package/cjs/parts/HoC/withConditionalDnDSortableContext.js +1 -1
- package/cjs/parts/HoC/withDnDSortableColumnContext.js +5 -19
- package/cjs/parts/HoC/withDnDSortableRowContext.js +3 -17
- package/cjs/parts/Row.js +10 -10
- package/cjs/parts/Rows.js +1 -1
- package/cjs/parts/index.js +1 -1
- package/cjs/styled.js +1 -1
- package/esm/DataTableSchema.js +1 -1
- package/esm/addons/Filters/Components/index.js +0 -1
- package/esm/addons/Filters/index.js +0 -1
- package/esm/exported-related/FilterPopover.js +17 -3
- package/esm/exported-related/FilterTypes.js +0 -1
- package/esm/exported-related/Filters/applyOutOfTheBoxFilters.js +0 -2
- package/esm/exported-related/Filters/index.js +0 -1
- package/esm/exported-related/index.js +0 -1
- package/esm/helpers/dndkit/hierarchy/customCollisionDetection.js +27 -14
- package/esm/helpers/dndkit/hierarchy/getHierarchyKeyboardCoordinates.js +22 -20
- package/esm/helpers/dndkit/hierarchy/useHierarchyDndkitConfig.js +6 -4
- package/esm/helpers/dndkit/tree/customCollisionDetection.js +45 -25
- package/esm/helpers/dndkit/tree/getTreeKeyboardCoordinates.js +26 -31
- package/esm/helpers/dndkit/tree/useTreeDndkitConfig.js +6 -4
- package/esm/helpers/refs-helpers.js +2 -2
- package/esm/index.js +0 -1
- package/esm/parts/FilterBar/FiltersBar.js +0 -2
- package/esm/parts/FilterBar/components/index.js +0 -1
- package/esm/parts/Filters/index.js +0 -2
- package/esm/parts/Headers/HeaderCellGroup.js +4 -4
- package/esm/parts/Headers/index.js +2 -2
- package/esm/parts/HoC/withConditionalDnDColumnContext.js +19 -15
- package/esm/parts/HoC/withConditionalDnDRowContext.js +11 -12
- package/esm/parts/HoC/withConditionalDnDSortableContext.js +1 -1
- package/esm/parts/HoC/withDnDSortableColumnContext.js +6 -20
- package/esm/parts/HoC/withDnDSortableRowContext.js +4 -18
- package/esm/parts/Row.js +7 -10
- package/esm/styled.js +1 -1
- package/package.json +17 -33
- package/types/DataTable.d.ts +245 -43
- package/types/DataTableSchema.d.ts +245 -43
- package/types/addons/Filters/Components/SelectFilter/components.d.ts +6 -6
- package/types/addons/Filters/Components/index.d.ts +0 -1
- package/types/exported-related/FilterTypes.d.ts +0 -1
- package/types/exported-related/Filters/index.d.ts +0 -1
- package/types/helpers/dndkit/hierarchy/types.d.ts +3 -3
- package/types/helpers/dndkit/tree/types.d.ts +3 -4
- package/types/helpers/dndkit/types.d.ts +2 -2
- package/types/helpers/refs-helpers.d.ts +1 -1
- package/types/parts/FilterBar/components/index.d.ts +0 -1
- package/types/parts/FilterBar/styled.d.ts +165 -30
- package/types/parts/Headers/HeaderCellGroup.d.ts +4 -3
- package/types/parts/Row.d.ts +2 -1
- package/types/styled.d.ts +19 -19
- package/types/types/props.d.ts +2 -2
- package/cjs/addons/Filters/Components/TextInputFilter/index.js +0 -92
- package/cjs/exported-related/Filters/textFilterFn.js +0 -14
- package/cjs/parts/FilterBar/components/TextPill.js +0 -42
- package/cjs/parts/HoC/DragOverlayContext.js +0 -11
- package/esm/addons/Filters/Components/TextInputFilter/index.js +0 -84
- package/esm/exported-related/Filters/textFilterFn.js +0 -10
- package/esm/parts/FilterBar/components/TextPill.js +0 -34
- package/esm/parts/HoC/DragOverlayContext.js +0 -7
- package/types/addons/Filters/Components/TextInputFilter/index.d.ts +0 -3
- package/types/exported-related/Filters/textFilterFn.d.ts +0 -2
- package/types/parts/FilterBar/components/TextPill.d.ts +0 -2
- package/types/parts/HoC/DragOverlayContext.d.ts +0 -6
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
1
3
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
4
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
3
5
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
6
|
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
7
|
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
6
8
|
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
7
|
-
import 'core-js/modules/esnext.async-iterator.
|
|
8
|
-
import 'core-js/modules/esnext.iterator.
|
|
9
|
+
import 'core-js/modules/esnext.async-iterator.find.js';
|
|
10
|
+
import 'core-js/modules/esnext.iterator.find.js';
|
|
9
11
|
import React, { createContext, useCallback } from 'react';
|
|
10
12
|
import { DndContext, DragOverlay } from '@dnd-kit/core';
|
|
11
13
|
import { SortableContext } from '@dnd-kit/sortable';
|
|
12
14
|
import DataTableContext from '../../DataTableContext.js';
|
|
13
15
|
import useTreeDndkitConfig from '../../helpers/dndkit/tree/useTreeDndkitConfig.js';
|
|
14
|
-
import { DragOverlayContext } from './DragOverlayContext.js';
|
|
15
16
|
import { DropIndicatorPosition } from './SortableItemContext.js';
|
|
17
|
+
import { Row } from '../Row.js';
|
|
16
18
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
17
19
|
|
|
18
20
|
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; }
|
|
@@ -38,8 +40,6 @@ const withConditionalDnDRowContext = Component => props => {
|
|
|
38
40
|
flattenedData,
|
|
39
41
|
allDataFlattened
|
|
40
42
|
} = React.useContext(DataTableContext);
|
|
41
|
-
const [PureDraggedJSX, setPureDraggedJSX] = React.useState(null); // todo: check if this can be done via portal
|
|
42
|
-
|
|
43
43
|
const [lastActiveId, setLastActiveId] = React.useState(null);
|
|
44
44
|
const onReorder = useCallback((newData, indexes, considerExpanding) => {
|
|
45
45
|
// Pull the row's original data into an object
|
|
@@ -79,11 +79,7 @@ const withConditionalDnDRowContext = Component => props => {
|
|
|
79
79
|
if (lastActiveId !== activeId && activeId) setLastActiveId(activeId);
|
|
80
80
|
if (dragAndDropRows) return /*#__PURE__*/jsxs(DndContext, _objectSpread(_objectSpread({}, dndContextProps), {}, {
|
|
81
81
|
children: [/*#__PURE__*/jsx(SortableContext, _objectSpread(_objectSpread({}, sortableContextProps), {}, {
|
|
82
|
-
children: /*#__PURE__*/_jsx(
|
|
83
|
-
value: {
|
|
84
|
-
setPureDraggedJSX
|
|
85
|
-
}
|
|
86
|
-
}, void 0, /*#__PURE__*/_jsx(DnDTreeContext.Provider, {
|
|
82
|
+
children: /*#__PURE__*/_jsx(DnDTreeContext.Provider, {
|
|
87
83
|
value: {
|
|
88
84
|
activeIndex,
|
|
89
85
|
depth,
|
|
@@ -92,12 +88,15 @@ const withConditionalDnDRowContext = Component => props => {
|
|
|
92
88
|
lastActiveId,
|
|
93
89
|
setLastActiveId
|
|
94
90
|
}
|
|
95
|
-
}, void 0, /*#__PURE__*/jsx(Component, _objectSpread({}, props)))
|
|
91
|
+
}, void 0, /*#__PURE__*/jsx(Component, _objectSpread({}, props)))
|
|
96
92
|
})), /*#__PURE__*/_jsx(DragOverlay, {
|
|
97
93
|
style: {
|
|
98
94
|
width: 'auto'
|
|
99
95
|
}
|
|
100
|
-
}, void 0, activeId ?
|
|
96
|
+
}, void 0, activeId ? /*#__PURE__*/_jsx(Row, {
|
|
97
|
+
row: flattenedData.find(row => row.uid === activeId),
|
|
98
|
+
isDragOverlay: true
|
|
99
|
+
}) : null)]
|
|
101
100
|
}));
|
|
102
101
|
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
103
102
|
};
|
|
@@ -26,7 +26,7 @@ const withConditionalDnDSortableContext = function (items) {
|
|
|
26
26
|
// It's important that drag overlays DO NOT have any sortable functionality!
|
|
27
27
|
|
|
28
28
|
if (!isDragOverlay && dragAndDropColumns) return /*#__PURE__*/_jsx(SortableContext, {
|
|
29
|
-
items: items.map(item => item.
|
|
29
|
+
items: items.map(item => item.id),
|
|
30
30
|
strategy: horizontalListSortingStrategy
|
|
31
31
|
}, void 0, /*#__PURE__*/jsx(Component, _objectSpread({}, props)));
|
|
32
32
|
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
@@ -5,10 +5,9 @@ import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
|
5
5
|
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
6
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
7
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
-
import { useContext, useMemo
|
|
8
|
+
import { useContext, useMemo } from 'react';
|
|
9
9
|
import { useSortable } from '@dnd-kit/sortable';
|
|
10
10
|
import DataTableContext from '../../DataTableContext.js';
|
|
11
|
-
import { DragOverlayContext } from './DragOverlayContext.js';
|
|
12
11
|
import { DnDGroupContext } from './withConditionalDnDColumnContext.js';
|
|
13
12
|
import { DropIndicatorPosition, SortableItemContext } from './SortableItemContext.js';
|
|
14
13
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -22,18 +21,14 @@ const withDnDSortableColumnContext = Component => props => {
|
|
|
22
21
|
dragAndDropColumns
|
|
23
22
|
}
|
|
24
23
|
} = useContext(DataTableContext);
|
|
25
|
-
const {
|
|
26
|
-
setPureDraggedJSX
|
|
27
|
-
} = useContext(DragOverlayContext);
|
|
28
24
|
const {
|
|
29
25
|
activeIndex
|
|
30
26
|
} = useContext(DnDGroupContext); // onMount generate unique options, so everyting is only ran once
|
|
31
27
|
|
|
32
28
|
const draggableOptions = useMemo(() => ({
|
|
33
|
-
id: props.header.
|
|
34
|
-
}), [props.header.
|
|
35
|
-
const useSortableHelpers = useSortable(draggableOptions);
|
|
36
|
-
const PureComponentJSX = useMemo(() => /*#__PURE__*/jsx(Component, _objectSpread({}, props)), [props]); // calculate all the "useSortable" values as per required
|
|
29
|
+
id: props.header.id
|
|
30
|
+
}), [props.header.id]);
|
|
31
|
+
const useSortableHelpers = useSortable(draggableOptions); // calculate all the "useSortable" values as per required
|
|
37
32
|
|
|
38
33
|
const draggableProps = useMemo(() => {
|
|
39
34
|
if (!dragAndDropColumns) return false;
|
|
@@ -45,16 +40,7 @@ const withDnDSortableColumnContext = Component => props => {
|
|
|
45
40
|
shouldShowDropIndicatorPosition: overIndex === index && overIndex !== -1,
|
|
46
41
|
dropIndicatorPosition: index > activeIndex ? DropIndicatorPosition.After : DropIndicatorPosition.Before
|
|
47
42
|
});
|
|
48
|
-
}, [useSortableHelpers, dragAndDropColumns, activeIndex]);
|
|
49
|
-
useEffect(() => {
|
|
50
|
-
// We assume the structure of the inner element WON'T change during DnD
|
|
51
|
-
// This is a huge performance boost
|
|
52
|
-
if (useSortableHelpers.isDragging) {
|
|
53
|
-
setPureDraggedJSX( /*#__PURE__*/cloneElement(PureComponentJSX, {
|
|
54
|
-
isDragOverlay: true
|
|
55
|
-
}));
|
|
56
|
-
}
|
|
57
|
-
}, [useSortableHelpers.isDragging, setPureDraggedJSX]); // we use a context so we can easly access information wherever without bubbling down
|
|
43
|
+
}, [useSortableHelpers, dragAndDropColumns, activeIndex]); // we use a context so we can easly access information wherever without bubbling down
|
|
58
44
|
// this context is all Memoized so as long as component is not re-mounted,
|
|
59
45
|
// the context won't trigger un-required renders per-se...
|
|
60
46
|
|
|
@@ -64,7 +50,7 @@ const withDnDSortableColumnContext = Component => props => {
|
|
|
64
50
|
|
|
65
51
|
return /*#__PURE__*/_jsx(SortableItemContext.Provider, {
|
|
66
52
|
value: ctx
|
|
67
|
-
}, void 0,
|
|
53
|
+
}, void 0, /*#__PURE__*/jsx(Component, _objectSpread({}, props)));
|
|
68
54
|
};
|
|
69
55
|
|
|
70
56
|
export { withDnDSortableColumnContext };
|
|
@@ -5,11 +5,10 @@ import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
|
5
5
|
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
6
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
7
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
-
import { useContext, useMemo
|
|
8
|
+
import { useContext, useMemo } from 'react';
|
|
9
9
|
import { useSortable } from '@dnd-kit/sortable';
|
|
10
10
|
import DataTableContext from '../../DataTableContext.js';
|
|
11
11
|
import { DnDTreeContext } from './withConditionalDnDRowContext.js';
|
|
12
|
-
import { DragOverlayContext } from './DragOverlayContext.js';
|
|
13
12
|
import { SortableItemContext } from './SortableItemContext.js';
|
|
14
13
|
import { jsx } from 'react/jsx-runtime';
|
|
15
14
|
|
|
@@ -22,9 +21,6 @@ const withDnDSortableRowContext = Component => props => {
|
|
|
22
21
|
dragAndDropRows
|
|
23
22
|
}
|
|
24
23
|
} = useContext(DataTableContext);
|
|
25
|
-
const {
|
|
26
|
-
setPureDraggedJSX
|
|
27
|
-
} = useContext(DragOverlayContext);
|
|
28
24
|
const {
|
|
29
25
|
dropIndicatorPosition,
|
|
30
26
|
lastActiveId,
|
|
@@ -34,8 +30,7 @@ const withDnDSortableRowContext = Component => props => {
|
|
|
34
30
|
const draggableOptions = useMemo(() => ({
|
|
35
31
|
id: props.row.uid
|
|
36
32
|
}), [props.row]);
|
|
37
|
-
const useSortableHelpers = useSortable(draggableOptions);
|
|
38
|
-
const PureComponentJSX = useMemo(() => /*#__PURE__*/jsx(Component, _objectSpread({}, props)), [props]); // calculate all the "useSortable" values as per required
|
|
33
|
+
const useSortableHelpers = useSortable(draggableOptions); // calculate all the "useSortable" values as per required
|
|
39
34
|
|
|
40
35
|
const draggableProps = useMemo(() => {
|
|
41
36
|
if (!dragAndDropRows) return false;
|
|
@@ -49,16 +44,7 @@ const withDnDSortableRowContext = Component => props => {
|
|
|
49
44
|
lastActiveId,
|
|
50
45
|
setLastActiveId
|
|
51
46
|
});
|
|
52
|
-
}, [dragAndDropRows, useSortableHelpers, dropIndicatorPosition, lastActiveId, setLastActiveId]);
|
|
53
|
-
useEffect(() => {
|
|
54
|
-
// We assume the structure of the inner element WON'T change during DnD
|
|
55
|
-
// This is a huge performance boost
|
|
56
|
-
if (useSortableHelpers.isDragging) {
|
|
57
|
-
setPureDraggedJSX( /*#__PURE__*/cloneElement(PureComponentJSX, {
|
|
58
|
-
isDragOverlay: true
|
|
59
|
-
}));
|
|
60
|
-
}
|
|
61
|
-
}, [useSortableHelpers.isDragging, setPureDraggedJSX]); // we use a context so we can easly access information wherever without bubbling down
|
|
47
|
+
}, [dragAndDropRows, useSortableHelpers, dropIndicatorPosition, lastActiveId, setLastActiveId]); // we use a context so we can easly access information wherever without bubbling down
|
|
62
48
|
// this context is all Memoized so as long as component is not re-mounted,
|
|
63
49
|
// the context won't trigger un-required renders per-se...
|
|
64
50
|
|
|
@@ -68,7 +54,7 @@ const withDnDSortableRowContext = Component => props => {
|
|
|
68
54
|
|
|
69
55
|
return /*#__PURE__*/_jsx(SortableItemContext.Provider, {
|
|
70
56
|
value: ctx
|
|
71
|
-
}, void 0,
|
|
57
|
+
}, void 0, /*#__PURE__*/jsx(Component, _objectSpread({}, props)));
|
|
72
58
|
};
|
|
73
59
|
|
|
74
60
|
export { withDnDSortableRowContext };
|
package/esm/parts/Row.js
CHANGED
|
@@ -16,17 +16,17 @@ import { RowVariantMapItem } from './RowVariants/index.js';
|
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
const setItemRefs = (measureRef, draggableRef, ref) => {
|
|
19
|
-
const refsToSet = [
|
|
19
|
+
const refsToSet = [];
|
|
20
|
+
if (measureRef) refsToSet.push(measureRef);
|
|
20
21
|
if (draggableRef) refsToSet.push(draggableRef);
|
|
21
22
|
setMultipleRefs(...refsToSet)(ref);
|
|
22
23
|
};
|
|
23
24
|
|
|
24
|
-
const
|
|
25
|
+
const RowComp = props => {
|
|
25
26
|
const {
|
|
26
27
|
row,
|
|
27
28
|
measureRef,
|
|
28
29
|
itemWrapperStyle,
|
|
29
|
-
itemIndex,
|
|
30
30
|
isDragOverlay,
|
|
31
31
|
focusedRowId,
|
|
32
32
|
selectedRowId
|
|
@@ -41,7 +41,7 @@ const Row = props => {
|
|
|
41
41
|
ref: ref => setItemRefs(measureRef, draggableRef, ref),
|
|
42
42
|
children: /*#__PURE__*/_jsx(RowVariantMapItem, {
|
|
43
43
|
row: row,
|
|
44
|
-
itemIndex:
|
|
44
|
+
itemIndex: row.realIndex,
|
|
45
45
|
isDragOverlay: isDragOverlay,
|
|
46
46
|
ctx: ctx,
|
|
47
47
|
focusedRowId: focusedRowId,
|
|
@@ -50,15 +50,12 @@ const Row = props => {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
Row.defaultProps = {
|
|
54
|
-
itemWrapperStyle: {}
|
|
55
|
-
};
|
|
56
|
-
|
|
57
53
|
const mapStateToProps = state => ({
|
|
58
54
|
focusedRowId: state.rows.focusedRowId,
|
|
59
55
|
selectedRowId: state.rows.selectedRowId
|
|
60
56
|
});
|
|
61
57
|
|
|
62
|
-
|
|
58
|
+
const Row = connect(mapStateToProps)(RowComp);
|
|
59
|
+
var Row$1 = withDnDSortableRowContext(Row);
|
|
63
60
|
|
|
64
|
-
export { Row$1 as default };
|
|
61
|
+
export { Row, Row$1 as default };
|
package/esm/styled.js
CHANGED
|
@@ -172,7 +172,7 @@ const GroupHeaderTitle = /*#__PURE__*/styled.span.withConfig({
|
|
|
172
172
|
})(["font-weight:", ";font-size:12px;color:", ";"], props => props.theme.fontWeights.semibold, props => props.theme.colors.neutral[700]);
|
|
173
173
|
const StyledCellContainer = /*#__PURE__*/styled(Grid).withConfig({
|
|
174
174
|
componentId: "sc-38sgfo-18"
|
|
175
|
-
})(["position:relative;z-index:2;min-height:", ";height:", ";width:", ";", ";background-color:", ";outline:none;:focus{", "}", " ", " box-shadow:0 2px 4px 0 ", ";opacity:", ";", " color:", ";"], props => props.minHeight || '36px', props => props.height || 'auto', props => props.colLayoutStyle === ColsLayoutStyle.Fixed ? sizeToCss(props.totalColumnsWidth) : '100%', props => getGridTemplateColumnsStyle({
|
|
175
|
+
})(["position:relative;z-index:2;min-height:", ";height:", ";width:", ";", ";", ";background-color:", ";outline:none;:focus{", "}", " ", " box-shadow:0 2px 4px 0 ", ";opacity:", ";", " color:", ";"], props => props.minHeight || '36px', props => props.height || 'auto', props => props.colLayoutStyle === ColsLayoutStyle.Fixed ? sizeToCss(props.totalColumnsWidth) : '100%', props => props.isDragOverlay ? 'width: fit-content;' : '', props => getGridTemplateColumnsStyle({
|
|
176
176
|
cols: props.cols,
|
|
177
177
|
colsLayoutStyle: props.colLayoutStyle,
|
|
178
178
|
isExpandable: props.isExpandable
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-data-table",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Data Table",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -163,10 +163,6 @@
|
|
|
163
163
|
"import": "./esm/parts/HoC/SortableItemContext.js",
|
|
164
164
|
"require": "./cjs/parts/HoC/SortableItemContext.js"
|
|
165
165
|
},
|
|
166
|
-
"./parts/HoC/DragOverlayContext": {
|
|
167
|
-
"import": "./esm/parts/HoC/DragOverlayContext.js",
|
|
168
|
-
"require": "./cjs/parts/HoC/DragOverlayContext.js"
|
|
169
|
-
},
|
|
170
166
|
"./parts/Headers/useHeaderCellHandlers": {
|
|
171
167
|
"import": "./esm/parts/Headers/useHeaderCellHandlers.js",
|
|
172
168
|
"require": "./cjs/parts/Headers/useHeaderCellHandlers.js"
|
|
@@ -227,10 +223,6 @@
|
|
|
227
223
|
"import": "./esm/parts/FilterBar/FiltersBar.js",
|
|
228
224
|
"require": "./cjs/parts/FilterBar/FiltersBar.js"
|
|
229
225
|
},
|
|
230
|
-
"./parts/FilterBar/components/TextPill": {
|
|
231
|
-
"import": "./esm/parts/FilterBar/components/TextPill.js",
|
|
232
|
-
"require": "./cjs/parts/FilterBar/components/TextPill.js"
|
|
233
|
-
},
|
|
234
226
|
"./parts/FilterBar/components/SingleDatePill": {
|
|
235
227
|
"import": "./esm/parts/FilterBar/components/SingleDatePill.js",
|
|
236
228
|
"require": "./cjs/parts/FilterBar/components/SingleDatePill.js"
|
|
@@ -431,10 +423,6 @@
|
|
|
431
423
|
"import": "./esm/exported-related/Filters/types.js",
|
|
432
424
|
"require": "./cjs/exported-related/Filters/types.js"
|
|
433
425
|
},
|
|
434
|
-
"./exported-related/Filters/textFilterFn": {
|
|
435
|
-
"import": "./esm/exported-related/Filters/textFilterFn.js",
|
|
436
|
-
"require": "./cjs/exported-related/Filters/textFilterFn.js"
|
|
437
|
-
},
|
|
438
426
|
"./exported-related/Filters/singleSelectFilterFn": {
|
|
439
427
|
"import": "./esm/exported-related/Filters/singleSelectFilterFn.js",
|
|
440
428
|
"require": "./cjs/exported-related/Filters/singleSelectFilterFn.js"
|
|
@@ -535,10 +523,6 @@
|
|
|
535
523
|
"import": "./esm/addons/Filters/index.js",
|
|
536
524
|
"require": "./cjs/addons/Filters/index.js"
|
|
537
525
|
},
|
|
538
|
-
"./addons/Filters/Components/TextInputFilter": {
|
|
539
|
-
"import": "./esm/addons/Filters/Components/TextInputFilter/index.js",
|
|
540
|
-
"require": "./cjs/addons/Filters/Components/TextInputFilter/index.js"
|
|
541
|
-
},
|
|
542
526
|
"./addons/Filters/Components/SingleDateFilter": {
|
|
543
527
|
"import": "./esm/addons/Filters/Components/SingleDateFilter/index.js",
|
|
544
528
|
"require": "./cjs/addons/Filters/Components/SingleDateFilter/index.js"
|
|
@@ -648,22 +632,22 @@
|
|
|
648
632
|
"build": "node ../../scripts/build/build.js"
|
|
649
633
|
},
|
|
650
634
|
"dependencies": {
|
|
651
|
-
"@dnd-kit/core": "~
|
|
652
|
-
"@dnd-kit/sortable": "~
|
|
653
|
-
"@elliemae/ds-basic": "2.0.0-rc.
|
|
654
|
-
"@elliemae/ds-button": "2.0.0-rc.
|
|
655
|
-
"@elliemae/ds-circular-progress-indicator": "2.0.0-rc.
|
|
656
|
-
"@elliemae/ds-controlled-form": "2.0.0-rc.
|
|
657
|
-
"@elliemae/ds-dropdownmenu": "2.0.0-rc.
|
|
658
|
-
"@elliemae/ds-form": "2.0.0-rc.
|
|
659
|
-
"@elliemae/ds-grid": "2.0.0-rc.
|
|
660
|
-
"@elliemae/ds-icons": "2.0.0-rc.
|
|
661
|
-
"@elliemae/ds-indeterminate-progress-indicator": "2.0.0-rc.
|
|
662
|
-
"@elliemae/ds-pagination": "2.0.0-rc.
|
|
663
|
-
"@elliemae/ds-pills": "2.0.0-rc.
|
|
664
|
-
"@elliemae/ds-system": "2.0.0-rc.
|
|
665
|
-
"@elliemae/ds-truncated-tooltip-text": "2.0.0-rc.
|
|
666
|
-
"@elliemae/ds-utilities": "2.0.0-rc.
|
|
635
|
+
"@dnd-kit/core": "~4.0.1",
|
|
636
|
+
"@dnd-kit/sortable": "~5.0.0",
|
|
637
|
+
"@elliemae/ds-basic": "2.0.0-rc.8",
|
|
638
|
+
"@elliemae/ds-button": "2.0.0-rc.8",
|
|
639
|
+
"@elliemae/ds-circular-progress-indicator": "2.0.0-rc.8",
|
|
640
|
+
"@elliemae/ds-controlled-form": "2.0.0-rc.8",
|
|
641
|
+
"@elliemae/ds-dropdownmenu": "2.0.0-rc.8",
|
|
642
|
+
"@elliemae/ds-form": "2.0.0-rc.8",
|
|
643
|
+
"@elliemae/ds-grid": "2.0.0-rc.8",
|
|
644
|
+
"@elliemae/ds-icons": "2.0.0-rc.8",
|
|
645
|
+
"@elliemae/ds-indeterminate-progress-indicator": "2.0.0-rc.8",
|
|
646
|
+
"@elliemae/ds-pagination": "2.0.0-rc.8",
|
|
647
|
+
"@elliemae/ds-pills": "2.0.0-rc.8",
|
|
648
|
+
"@elliemae/ds-system": "2.0.0-rc.8",
|
|
649
|
+
"@elliemae/ds-truncated-tooltip-text": "2.0.0-rc.8",
|
|
650
|
+
"@elliemae/ds-utilities": "2.0.0-rc.8",
|
|
667
651
|
"@popperjs/core": "~2.10.2",
|
|
668
652
|
"@reduxjs/toolkit": "~1.6.2",
|
|
669
653
|
"array-move": "~3.0.1",
|
package/types/DataTable.d.ts
CHANGED
|
@@ -1,51 +1,253 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { TypescriptProps } from './types/props';
|
|
3
4
|
export declare const DataTable: {
|
|
4
5
|
(props: TypescriptProps): JSX.Element;
|
|
5
6
|
propTypes: {
|
|
6
|
-
columns:
|
|
7
|
-
data:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
7
|
+
columns: import("react-desc").PropTypesDescValidator;
|
|
8
|
+
data: {
|
|
9
|
+
defaultValue<T = unknown>(arg: T): {
|
|
10
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
11
|
+
};
|
|
12
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
13
|
+
};
|
|
14
|
+
height: {
|
|
15
|
+
defaultValue<T = unknown>(arg: T): {
|
|
16
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
17
|
+
};
|
|
18
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
width: {
|
|
21
|
+
defaultValue<T = unknown>(arg: T): {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
renderRowActions: {
|
|
27
|
+
defaultValue<T = unknown>(arg: T): {
|
|
28
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
29
|
+
};
|
|
30
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
32
|
+
isExpandable: {
|
|
33
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
uniqueRowAccessor: {
|
|
36
|
+
defaultValue<T = unknown>(arg: T): {
|
|
37
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
38
|
+
};
|
|
39
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
disabledRows: {
|
|
42
|
+
defaultValue<T = unknown>(arg: T): {
|
|
43
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
};
|
|
45
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
46
|
+
};
|
|
47
|
+
expandedRows: {
|
|
48
|
+
defaultValue<T = unknown>(arg: T): {
|
|
49
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
50
|
+
};
|
|
51
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
52
|
+
};
|
|
53
|
+
onRowExpand: {
|
|
54
|
+
defaultValue<T = unknown>(arg: T): {
|
|
55
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
57
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
58
|
+
};
|
|
59
|
+
cellRendererProps: {
|
|
60
|
+
defaultValue<T = unknown>(arg: T): {
|
|
61
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
62
|
+
};
|
|
63
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
64
|
+
};
|
|
65
|
+
selectSingle: {
|
|
66
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
67
|
+
};
|
|
68
|
+
selection: {
|
|
69
|
+
defaultValue<T = unknown>(arg: T): {
|
|
70
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
71
|
+
};
|
|
72
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
73
|
+
};
|
|
74
|
+
onSelectionChange: {
|
|
75
|
+
defaultValue<T = unknown>(arg: T): {
|
|
76
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
77
|
+
};
|
|
78
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
79
|
+
};
|
|
80
|
+
groupedRowsRenderHeader: {
|
|
81
|
+
defaultValue<T = unknown>(arg: T): {
|
|
82
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
83
|
+
};
|
|
84
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
85
|
+
};
|
|
86
|
+
isResizeable: {
|
|
87
|
+
defaultValue<T = unknown>(arg: T): {
|
|
88
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
89
|
+
};
|
|
90
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
91
|
+
};
|
|
92
|
+
filters: {
|
|
93
|
+
defaultValue<T = unknown>(arg: T): {
|
|
94
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
95
|
+
};
|
|
96
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
97
|
+
};
|
|
98
|
+
withFilterBar: {
|
|
99
|
+
defaultValue<T = unknown>(arg: T): {
|
|
100
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
101
|
+
};
|
|
102
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
103
|
+
};
|
|
104
|
+
filterBarProps: {
|
|
105
|
+
defaultValue<T = unknown>(arg: T): {
|
|
106
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
107
|
+
};
|
|
108
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
109
|
+
};
|
|
110
|
+
onFiltersChange: {
|
|
111
|
+
defaultValue<T = unknown>(arg: T): {
|
|
112
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
113
|
+
};
|
|
114
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
115
|
+
};
|
|
116
|
+
pagination: {
|
|
117
|
+
defaultValue<T = unknown>(arg: T): {
|
|
118
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
119
|
+
};
|
|
120
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
121
|
+
};
|
|
122
|
+
colsLayoutStyle: {
|
|
123
|
+
defaultValue<T = unknown>(arg: T): {
|
|
124
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
125
|
+
};
|
|
126
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
127
|
+
};
|
|
128
|
+
hiddenColumns: {
|
|
129
|
+
defaultValue<T = unknown>(arg: T): {
|
|
130
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
131
|
+
};
|
|
132
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
133
|
+
};
|
|
134
|
+
dragAndDropRows: {
|
|
135
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
136
|
+
};
|
|
137
|
+
onRowsReorder: {
|
|
138
|
+
defaultValue<T = unknown>(arg: T): {
|
|
139
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
140
|
+
};
|
|
141
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
142
|
+
};
|
|
143
|
+
maxDragAndDropLevel: {
|
|
144
|
+
defaultValue<T = unknown>(arg: T): {
|
|
145
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
146
|
+
};
|
|
147
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
148
|
+
};
|
|
149
|
+
dragAndDropColumns: {
|
|
150
|
+
defaultValue<T = unknown>(arg: T): {
|
|
151
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
152
|
+
};
|
|
153
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
154
|
+
};
|
|
155
|
+
onColumnsReorder: {
|
|
156
|
+
defaultValue<T = unknown>(arg: T): {
|
|
157
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
158
|
+
};
|
|
159
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
160
|
+
};
|
|
161
|
+
textWrap: {
|
|
162
|
+
defaultValue<T = unknown>(arg: T): {
|
|
163
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
164
|
+
};
|
|
165
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
166
|
+
};
|
|
167
|
+
noResultsMessage: {
|
|
168
|
+
defaultValue<T = unknown>(arg: T): {
|
|
169
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
170
|
+
};
|
|
171
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
172
|
+
};
|
|
173
|
+
noResultsSecondaryMessage: {
|
|
174
|
+
defaultValue<T = unknown>(arg: T): {
|
|
175
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
176
|
+
};
|
|
177
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
178
|
+
};
|
|
179
|
+
noResultsButtonLabel: {
|
|
180
|
+
defaultValue<T = unknown>(arg: T): {
|
|
181
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
182
|
+
};
|
|
183
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
184
|
+
};
|
|
185
|
+
noResultsPlaceholder: {
|
|
186
|
+
defaultValue<T = unknown>(arg: T): {
|
|
187
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
188
|
+
};
|
|
189
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
190
|
+
};
|
|
191
|
+
isLoading: {
|
|
192
|
+
defaultValue<T = unknown>(arg: T): {
|
|
193
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
194
|
+
};
|
|
195
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
196
|
+
};
|
|
197
|
+
isLoadingAppended: {
|
|
198
|
+
defaultValue<T = unknown>(arg: T): {
|
|
199
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
200
|
+
};
|
|
201
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
202
|
+
};
|
|
203
|
+
onColumnResize: {
|
|
204
|
+
defaultValue<T = unknown>(arg: T): {
|
|
205
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
206
|
+
};
|
|
207
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
208
|
+
};
|
|
209
|
+
isNoMoreDataAppended: {
|
|
210
|
+
defaultValue<T = unknown>(arg: T): {
|
|
211
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
212
|
+
};
|
|
213
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
214
|
+
};
|
|
215
|
+
noMoreDataMessage: {
|
|
216
|
+
defaultValue<T = unknown>(arg: T): {
|
|
217
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
218
|
+
};
|
|
219
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
220
|
+
};
|
|
221
|
+
onRowClick: {
|
|
222
|
+
defaultValue<T = unknown>(arg: T): {
|
|
223
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
224
|
+
};
|
|
225
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
226
|
+
};
|
|
227
|
+
onRowFocus: {
|
|
228
|
+
defaultValue<T = unknown>(arg: T): {
|
|
229
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
230
|
+
};
|
|
231
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
232
|
+
};
|
|
233
|
+
onCellValueChange: {
|
|
234
|
+
defaultValue<T = unknown>(arg: T): {
|
|
235
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
236
|
+
};
|
|
237
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
238
|
+
};
|
|
239
|
+
onColumnSortChange: {
|
|
240
|
+
defaultValue<T = unknown>(arg: T): {
|
|
241
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
242
|
+
};
|
|
243
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
244
|
+
};
|
|
245
|
+
actionRef: {
|
|
246
|
+
defaultValue<T = unknown>(arg: T): {
|
|
247
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
248
|
+
};
|
|
249
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
250
|
+
};
|
|
49
251
|
};
|
|
50
252
|
defaultProps: {
|
|
51
253
|
columns?: import("./types/props").TypescriptColumn[] | undefined;
|