@reltio/components 1.4.2267 → 1.4.2269
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState } from 'react';
|
|
2
2
|
import { defaultTo, pipe, prop, propEq } from 'ramda';
|
|
3
|
-
import { checkBasicMetadataPermission, getDataTypeDefinitionForFilterValue, getFilterOptionLabel,
|
|
3
|
+
import { checkBasicMetadataPermission, getAllowedFilterOptionsForDataTypeDefinition, getDataTypeDefinitionForFilterValue, getFilterOptionLabel, MetadataPermissions, shouldDisableTimestampLocalizationForAttribute, validateFilter } from '@reltio/mdm-sdk';
|
|
4
4
|
import Popover from '@mui/material/Popover';
|
|
5
5
|
import IconButton from '@mui/material/IconButton';
|
|
6
6
|
import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';
|
|
@@ -61,7 +61,7 @@ export var ColumnFilter = function (_a) {
|
|
|
61
61
|
disableTimestampLocalization: disableTimestampLocalizationForFilterValue
|
|
62
62
|
})))(filterOption);
|
|
63
63
|
};
|
|
64
|
-
var filterOptionValues = (_b = filterOptionsData === null || filterOptionsData === void 0 ? void 0 : filterOptionsData.map(function (filterOption) { return filterOption.value; })) !== null && _b !== void 0 ? _b :
|
|
64
|
+
var filterOptionValues = (_b = filterOptionsData === null || filterOptionsData === void 0 ? void 0 : filterOptionsData.map(function (filterOption) { return filterOption.value; })) !== null && _b !== void 0 ? _b : getAllowedFilterOptionsForDataTypeDefinition(dataTypeDefinition);
|
|
65
65
|
var filterOptions = filterOptionValues.map(function (value) { return ({ value: value, label: getFilterLabel(value) }); });
|
|
66
66
|
var hasReadPermission = checkBasicMetadataPermission(MetadataPermissions.READ, dataTypeDefinition);
|
|
67
67
|
return (React.createElement("div", { ref: containerRef, className: styles.columnFilter, "data-reltio-id": "column-filter" },
|
|
@@ -90,7 +90,7 @@ var ColumnFilter = function (_a) {
|
|
|
90
90
|
disableTimestampLocalization: disableTimestampLocalizationForFilterValue
|
|
91
91
|
})))(filterOption);
|
|
92
92
|
};
|
|
93
|
-
var filterOptionValues = (_b = filterOptionsData === null || filterOptionsData === void 0 ? void 0 : filterOptionsData.map(function (filterOption) { return filterOption.value; })) !== null && _b !== void 0 ? _b : (0, mdm_sdk_1.
|
|
93
|
+
var filterOptionValues = (_b = filterOptionsData === null || filterOptionsData === void 0 ? void 0 : filterOptionsData.map(function (filterOption) { return filterOption.value; })) !== null && _b !== void 0 ? _b : (0, mdm_sdk_1.getAllowedFilterOptionsForDataTypeDefinition)(dataTypeDefinition);
|
|
94
94
|
var filterOptions = filterOptionValues.map(function (value) { return ({ value: value, label: getFilterLabel(value) }); });
|
|
95
95
|
var hasReadPermission = (0, mdm_sdk_1.checkBasicMetadataPermission)(mdm_sdk_1.MetadataPermissions.READ, dataTypeDefinition);
|
|
96
96
|
return (react_1.default.createElement("div", { ref: containerRef, className: styles.columnFilter, "data-reltio-id": "column-filter" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2269",
|
|
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.2049",
|
|
15
15
|
"@vis.gl/react-google-maps": "^1.3.0",
|
|
16
16
|
"d3-cloud": "^1.2.5",
|
|
17
17
|
"d3-geo": "^2.0.1",
|