@reltio/components 1.4.1449 → 1.4.1451

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.
@@ -67,7 +67,7 @@ var AttributesTable = function (_a) {
67
67
  var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
68
68
  (0, react_1.useEffect)(function () {
69
69
  if (entity && (0, ramda_1.isNil)(selectedAttributeTypes)) {
70
- var initialAttrTypes = (0, ramda_1.pipe)(ramda_1.keys, (0, ramda_1.without)(['paging']), (0, ramda_1.map)((0, mdm_sdk_1.makeAttrTypeUri)(parentTypeUri)), (0, ramda_1.map)(function (attrTypeUri) { return (0, mdm_sdk_1.findAttributeTypeByUri)(metadata, attrTypeUri, parentTypeUri); }), (0, ramda_1.filter)(mdm_sdk_1.isReadableAttribute))(attributes);
70
+ var initialAttrTypes = (0, ramda_1.pipe)(ramda_1.keys, (0, ramda_1.without)(['paging']), (0, ramda_1.map)((0, mdm_sdk_1.makeAttrTypeUri)(parentTypeUri)), (0, ramda_1.map)(function (attrTypeUri) { return (0, mdm_sdk_1.findAttributeTypeByUri)(metadata, attrTypeUri, parentTypeUri); }), (0, ramda_1.filter)((0, ramda_1.both)(ramda_1.identity, mdm_sdk_1.isReadableAttribute)))(attributes);
71
71
  onSelectAttributeTypes(initialAttrTypes);
72
72
  }
73
73
  }, [entity, selectedAttributeTypes]);
@@ -18,7 +18,7 @@ import { findAttributeTypeByUri, isReadableAttribute, makeAttrTypeUri } from '@r
18
18
  import { BasicTable, ColumnsSettings, RowCellAutoSizer, useDynamicRowCellHeight } from '../../BasicTableView';
19
19
  import BasicViewHeader from '../../BasicViewHeader/BasicViewHeader';
20
20
  import { COLUMNS_DATA, DEFAULT_VISIBLE_COLUMNS, getBasicTableColumnsData, getBasicTableRowsData } from './helpers';
21
- import { always, either, filter, isNil, keys, map, pipe, without } from 'ramda';
21
+ import { always, either, filter, isNil, keys, map, pipe, without, identity, both } from 'ramda';
22
22
  import RowCellRenderer from './cell-renderers/RowCellRenderer';
23
23
  import LinearLoadIndicator from '../../LinearLoadIndicator/LinearLoadIndicator';
24
24
  import ConfirmDeleteDialog from '../../ConfirmDeleteDialog/ConfirmDeleteDialog';
@@ -39,7 +39,7 @@ var AttributesTable = function (_a) {
39
39
  var metadata = useSelector(mdmModule.selectors.getMetadata);
40
40
  useEffect(function () {
41
41
  if (entity && isNil(selectedAttributeTypes)) {
42
- var initialAttrTypes = pipe(keys, without(['paging']), map(makeAttrTypeUri(parentTypeUri)), map(function (attrTypeUri) { return findAttributeTypeByUri(metadata, attrTypeUri, parentTypeUri); }), filter(isReadableAttribute))(attributes);
42
+ var initialAttrTypes = pipe(keys, without(['paging']), map(makeAttrTypeUri(parentTypeUri)), map(function (attrTypeUri) { return findAttributeTypeByUri(metadata, attrTypeUri, parentTypeUri); }), filter(both(identity, isReadableAttribute)))(attributes);
43
43
  onSelectAttributeTypes(initialAttrTypes);
44
44
  }
45
45
  }, [entity, selectedAttributeTypes]);
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1449",
3
+ "version": "1.4.1451",
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.1449",
11
- "@reltio/mdm-sdk": "^1.4.1449",
10
+ "@reltio/mdm-module": "^1.4.1451",
11
+ "@reltio/mdm-sdk": "^1.4.1451",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",