@reltio/components 1.4.1366 → 1.4.1367
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.
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.preparedGroupedItems = void 0;
|
|
4
4
|
var ramda_1 = require("ramda");
|
|
5
5
|
var filterItems = (0, ramda_1.curry)(function (filterText, items) {
|
|
6
|
-
return (0, ramda_1.filter)(function (item) { return item.label.toLowerCase().includes(filterText.toLowerCase()); })(items);
|
|
6
|
+
return (0, ramda_1.filter)(function (item) { return (item.label || item.name).toLowerCase().includes(filterText.toLowerCase()); })(items);
|
|
7
7
|
});
|
|
8
8
|
var preparedGroupedItems = function (_a) {
|
|
9
9
|
var attrTypes = _a.attrTypes, _b = _a.filter, filter = _b === void 0 ? '' : _b;
|
|
10
10
|
return (0, ramda_1.pipe)(filterItems(filter), (0, ramda_1.map)(function (attrType) { return ({
|
|
11
11
|
item: {
|
|
12
12
|
id: attrType.uri,
|
|
13
|
-
label: attrType.label,
|
|
13
|
+
label: attrType.label || attrType.name,
|
|
14
14
|
attrType: attrType
|
|
15
15
|
}
|
|
16
16
|
}); }))(attrTypes);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { curry, filter, map, pipe } from 'ramda';
|
|
2
2
|
var filterItems = curry(function (filterText, items) {
|
|
3
|
-
return filter(function (item) { return item.label.toLowerCase().includes(filterText.toLowerCase()); })(items);
|
|
3
|
+
return filter(function (item) { return (item.label || item.name).toLowerCase().includes(filterText.toLowerCase()); })(items);
|
|
4
4
|
});
|
|
5
5
|
var preparedGroupedItems = function (_a) {
|
|
6
6
|
var attrTypes = _a.attrTypes, _b = _a.filter, filter = _b === void 0 ? '' : _b;
|
|
7
7
|
return pipe(filterItems(filter), map(function (attrType) { return ({
|
|
8
8
|
item: {
|
|
9
9
|
id: attrType.uri,
|
|
10
|
-
label: attrType.label,
|
|
10
|
+
label: attrType.label || attrType.name,
|
|
11
11
|
attrType: attrType
|
|
12
12
|
}
|
|
13
13
|
}); }))(attrTypes);
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1367",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@date-io/moment": "^1.3.5",
|
|
9
9
|
"@react-google-maps/api": "2.7.0",
|
|
10
|
-
"@reltio/mdm-module": "^1.4.
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
10
|
+
"@reltio/mdm-module": "^1.4.1367",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1367",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|