@elliemae/ds-data-table 2.4.3-rc.1 → 2.4.3-rc.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.
|
@@ -55,6 +55,8 @@ require('../../../../exported-related/Filters/applyOutOfTheBoxFilters.js');
|
|
|
55
55
|
require('moment');
|
|
56
56
|
require('core-js/modules/esnext.async-iterator.some.js');
|
|
57
57
|
require('core-js/modules/esnext.iterator.some.js');
|
|
58
|
+
require('../../../../redux/reducers/index.js');
|
|
59
|
+
var useDispatchHeadersActions = require('../../../../redux/reducers/headersReducers/useDispatchHeadersActions.js');
|
|
58
60
|
|
|
59
61
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
60
62
|
|
|
@@ -80,6 +82,9 @@ const BaseSelectFilter = props => {
|
|
|
80
82
|
innerRef,
|
|
81
83
|
onValueChange
|
|
82
84
|
} = props;
|
|
85
|
+
const {
|
|
86
|
+
patchHeaderFilterButtonAndMenu
|
|
87
|
+
} = useDispatchHeadersActions.useDispatchHeadersActions();
|
|
83
88
|
const filterOptions = React.useMemo(() => {
|
|
84
89
|
// If the user didn't provide options, use the available ones
|
|
85
90
|
if (!userFilterOptions) {
|
|
@@ -100,6 +105,7 @@ const BaseSelectFilter = props => {
|
|
|
100
105
|
|
|
101
106
|
const handleOnChange = value => {
|
|
102
107
|
onValueChange(type, value);
|
|
108
|
+
if (!isMulti) patchHeaderFilterButtonAndMenu(column.id, true);
|
|
103
109
|
};
|
|
104
110
|
|
|
105
111
|
const [filters, setFilteredOptions] = React.useState(filterOptions);
|
|
@@ -51,6 +51,8 @@ import '../../../../exported-related/Filters/applyOutOfTheBoxFilters.js';
|
|
|
51
51
|
import 'moment';
|
|
52
52
|
import 'core-js/modules/esnext.async-iterator.some.js';
|
|
53
53
|
import 'core-js/modules/esnext.iterator.some.js';
|
|
54
|
+
import '../../../../redux/reducers/index.js';
|
|
55
|
+
import { useDispatchHeadersActions } from '../../../../redux/reducers/headersReducers/useDispatchHeadersActions.js';
|
|
54
56
|
|
|
55
57
|
var _SearchXsmall;
|
|
56
58
|
const BaseSelectFilter = props => {
|
|
@@ -72,6 +74,9 @@ const BaseSelectFilter = props => {
|
|
|
72
74
|
innerRef,
|
|
73
75
|
onValueChange
|
|
74
76
|
} = props;
|
|
77
|
+
const {
|
|
78
|
+
patchHeaderFilterButtonAndMenu
|
|
79
|
+
} = useDispatchHeadersActions();
|
|
75
80
|
const filterOptions = useMemo(() => {
|
|
76
81
|
// If the user didn't provide options, use the available ones
|
|
77
82
|
if (!userFilterOptions) {
|
|
@@ -92,6 +97,7 @@ const BaseSelectFilter = props => {
|
|
|
92
97
|
|
|
93
98
|
const handleOnChange = value => {
|
|
94
99
|
onValueChange(type, value);
|
|
100
|
+
if (!isMulti) patchHeaderFilterButtonAndMenu(column.id, true);
|
|
95
101
|
};
|
|
96
102
|
|
|
97
103
|
const [filters, setFilteredOptions] = useState(filterOptions);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-data-table",
|
|
3
|
-
"version": "2.4.3-rc.
|
|
3
|
+
"version": "2.4.3-rc.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Data Table",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -570,24 +570,24 @@
|
|
|
570
570
|
"dependencies": {
|
|
571
571
|
"@dnd-kit/core": "~4.0.1",
|
|
572
572
|
"@dnd-kit/sortable": "~5.0.0",
|
|
573
|
-
"@elliemae/ds-button": "2.4.3-rc.
|
|
574
|
-
"@elliemae/ds-circular-progress-indicator": "2.4.3-rc.
|
|
575
|
-
"@elliemae/ds-controlled-form": "2.4.3-rc.
|
|
576
|
-
"@elliemae/ds-drag-and-drop": "2.4.3-rc.
|
|
577
|
-
"@elliemae/ds-dropdownmenu": "2.4.3-rc.
|
|
578
|
-
"@elliemae/ds-form": "2.4.3-rc.
|
|
579
|
-
"@elliemae/ds-form-layout-blocks": "2.4.3-rc.
|
|
580
|
-
"@elliemae/ds-grid": "2.4.3-rc.
|
|
581
|
-
"@elliemae/ds-icons": "2.4.3-rc.
|
|
582
|
-
"@elliemae/ds-indeterminate-progress-indicator": "2.4.3-rc.
|
|
583
|
-
"@elliemae/ds-pagination": "2.4.3-rc.
|
|
584
|
-
"@elliemae/ds-pills": "2.4.3-rc.
|
|
585
|
-
"@elliemae/ds-popperjs": "2.4.3-rc.
|
|
586
|
-
"@elliemae/ds-props-helpers": "2.4.3-rc.
|
|
587
|
-
"@elliemae/ds-system": "2.4.3-rc.
|
|
588
|
-
"@elliemae/ds-toolbar": "2.4.3-rc.
|
|
589
|
-
"@elliemae/ds-truncated-tooltip-text": "2.4.3-rc.
|
|
590
|
-
"@elliemae/ds-utilities": "2.4.3-rc.
|
|
573
|
+
"@elliemae/ds-button": "2.4.3-rc.2",
|
|
574
|
+
"@elliemae/ds-circular-progress-indicator": "2.4.3-rc.2",
|
|
575
|
+
"@elliemae/ds-controlled-form": "2.4.3-rc.2",
|
|
576
|
+
"@elliemae/ds-drag-and-drop": "2.4.3-rc.2",
|
|
577
|
+
"@elliemae/ds-dropdownmenu": "2.4.3-rc.2",
|
|
578
|
+
"@elliemae/ds-form": "2.4.3-rc.2",
|
|
579
|
+
"@elliemae/ds-form-layout-blocks": "2.4.3-rc.2",
|
|
580
|
+
"@elliemae/ds-grid": "2.4.3-rc.2",
|
|
581
|
+
"@elliemae/ds-icons": "2.4.3-rc.2",
|
|
582
|
+
"@elliemae/ds-indeterminate-progress-indicator": "2.4.3-rc.2",
|
|
583
|
+
"@elliemae/ds-pagination": "2.4.3-rc.2",
|
|
584
|
+
"@elliemae/ds-pills": "2.4.3-rc.2",
|
|
585
|
+
"@elliemae/ds-popperjs": "2.4.3-rc.2",
|
|
586
|
+
"@elliemae/ds-props-helpers": "2.4.3-rc.2",
|
|
587
|
+
"@elliemae/ds-system": "2.4.3-rc.2",
|
|
588
|
+
"@elliemae/ds-toolbar": "2.4.3-rc.2",
|
|
589
|
+
"@elliemae/ds-truncated-tooltip-text": "2.4.3-rc.2",
|
|
590
|
+
"@elliemae/ds-utilities": "2.4.3-rc.2",
|
|
591
591
|
"@reduxjs/toolkit": "~1.6.2",
|
|
592
592
|
"csstype": "~3.0.9",
|
|
593
593
|
"moment": "~2.29.1",
|