@reltio/components 1.4.1366 → 1.4.1368

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.1366",
3
+ "version": "1.4.1368",
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.1366",
11
- "@reltio/mdm-sdk": "^1.4.1366",
10
+ "@reltio/mdm-module": "^1.4.1368",
11
+ "@reltio/mdm-sdk": "^1.4.1368",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",
@@ -19,7 +19,7 @@
19
19
  "prop-types": "^15.6.2",
20
20
  "ramda": "^0.28.0",
21
21
  "react-autosuggest": "^9.4.3",
22
- "react-components": "bitbucket:reltio-ondemand/react-components#v3.15.4",
22
+ "react-components": "bitbucket:reltio-ondemand/react-components#v3.17.0",
23
23
  "react-dnd": "^9.4.0",
24
24
  "react-dnd-html5-backend": "^10.0.2",
25
25
  "react-grid-layout": "^1.1.1",