@reltio/components 1.4.2137 → 1.4.2138
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.
|
@@ -6,7 +6,7 @@ import FilterIcon from '@mui/icons-material/FilterList';
|
|
|
6
6
|
import Typography from '@mui/material/Typography';
|
|
7
7
|
import Divider from '@mui/material/Divider';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
|
-
import { buildFilterQueryString } from '@reltio/mdm-sdk';
|
|
9
|
+
import { buildFilterQueryString, rejectEmptyFilters } from '@reltio/mdm-sdk';
|
|
10
10
|
import { AttributesFiltersBuilder } from '../AttributesFiltersBuilder';
|
|
11
11
|
import { ActionButtons } from './components/ActionButtons/';
|
|
12
12
|
import { useStyles } from './styles';
|
|
@@ -31,9 +31,11 @@ var AttributesFiltersButton = function (_a) {
|
|
|
31
31
|
}
|
|
32
32
|
}, [filtersProp, isOpen]);
|
|
33
33
|
var applyButtonHandler = useCallback(function () {
|
|
34
|
-
|
|
34
|
+
var processedFilters = rejectEmptyFilters(filters);
|
|
35
|
+
onChange(processedFilters);
|
|
35
36
|
onApply === null || onApply === void 0 ? void 0 : onApply();
|
|
36
37
|
togglePopup();
|
|
38
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
37
39
|
}, [filters, onChange, onApply]);
|
|
38
40
|
var cancelButtonHandler = useCallback(function () {
|
|
39
41
|
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
|
@@ -59,9 +59,11 @@ var AttributesFiltersButton = function (_a) {
|
|
|
59
59
|
}
|
|
60
60
|
}, [filtersProp, isOpen]);
|
|
61
61
|
var applyButtonHandler = (0, react_1.useCallback)(function () {
|
|
62
|
-
|
|
62
|
+
var processedFilters = (0, mdm_sdk_1.rejectEmptyFilters)(filters);
|
|
63
|
+
onChange(processedFilters);
|
|
63
64
|
onApply === null || onApply === void 0 ? void 0 : onApply();
|
|
64
65
|
togglePopup();
|
|
66
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
65
67
|
}, [filters, onChange, onApply]);
|
|
66
68
|
var cancelButtonHandler = (0, react_1.useCallback)(function () {
|
|
67
69
|
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2138",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@fluentui/react-context-selector": "^9.1.26",
|
|
12
12
|
"@googlemaps/markerclusterer": "^2.5.3",
|
|
13
13
|
"@react-sigma/core": "3.4.0",
|
|
14
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
14
|
+
"@reltio/mdm-sdk": "^1.4.1965",
|
|
15
15
|
"@vis.gl/react-google-maps": "^1.3.0",
|
|
16
16
|
"d3-cloud": "^1.2.5",
|
|
17
17
|
"d3-geo": "^2.0.1",
|