@reltio/components 1.4.1922 → 1.4.1924
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.
- package/cjs/features/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +3 -1
- package/cjs/features/crosswalks/CrosswalkEditor/CrosswalkEditor.js +1 -1
- package/cjs/features/crosswalks/CrosswalkRow/CrosswalkRow.js +2 -2
- package/esm/features/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +3 -1
- package/esm/features/crosswalks/CrosswalkEditor/CrosswalkEditor.js +1 -1
- package/esm/features/crosswalks/CrosswalkRow/CrosswalkRow.js +2 -2
- package/package.json +2 -2
|
@@ -102,6 +102,7 @@ var CrosswalkAttributes = function (_a) {
|
|
|
102
102
|
]; }, []);
|
|
103
103
|
var extraAttributes = (0, ramda_1.pipe)((0, ramda_1.filter)((0, ramda_1.propEq)('canBeAdded', true)), (0, ramda_1.filter)(function (item) { return !(0, ramda_1.has)(item.uri, crosswalk); }), (0, ramda_1.filter)(function (item) { return !addedAttributes.includes(item.uri); }))(attributes);
|
|
104
104
|
var renderAttributeValue = function (attributeName, attributeValue) {
|
|
105
|
+
var _a;
|
|
105
106
|
switch (attributeName) {
|
|
106
107
|
case 'type': {
|
|
107
108
|
var sourceSystemLabel = (0, mdm_sdk_1.getSourceSystemLabel)(metadata, attributeValue);
|
|
@@ -119,7 +120,8 @@ var CrosswalkAttributes = function (_a) {
|
|
|
119
120
|
}, TextFieldProps: {
|
|
120
121
|
InputProps: {
|
|
121
122
|
disableUnderline: true
|
|
122
|
-
}
|
|
123
|
+
},
|
|
124
|
+
inputProps: (_a = {}, _a['data-reltio-id'] = 'crosswalk-attribute-type-selector', _a)
|
|
123
125
|
} })) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
124
126
|
react_1.default.createElement(SourceIcon_1.SourceIcon, { className: styles.sourceIcon, sourceType: attributeValue }),
|
|
125
127
|
react_1.default.createElement(Typography_1.default, { className: styles.text, variant: 'body2' }, sourceSystemLabel)));
|
|
@@ -42,7 +42,7 @@ var CrosswalkEditor = function (_a) {
|
|
|
42
42
|
onAdd(newCrosswalk);
|
|
43
43
|
onClose();
|
|
44
44
|
};
|
|
45
|
-
return (react_1.default.createElement("div", { className: className },
|
|
45
|
+
return (react_1.default.createElement("div", { className: className, "data-reltio-id": "reltio-crosswalk-editor" },
|
|
46
46
|
react_1.default.createElement(Typography_1.default, { variant: 'body1', className: styles.caption }, ui_i18n_1.default.text('Add crosswalk')),
|
|
47
47
|
react_1.default.createElement(CrosswalkAttributes_1.CrosswalkAttributes, { crosswalk: newCrosswalk, onDeleteAttribute: function (attributeName) {
|
|
48
48
|
setNewCrosswalk((0, ramda_1.dissoc)(attributeName));
|
|
@@ -75,12 +75,12 @@ exports.CrosswalkRow = (0, react_1.memo)(function (_a) {
|
|
|
75
75
|
preview((0, react_dnd_html5_backend_1.getEmptyImage)(), { captureDraggingState: true });
|
|
76
76
|
}, []);
|
|
77
77
|
(0, react_1.useEffect)(function () {
|
|
78
|
-
var _a;
|
|
78
|
+
var _a, _b;
|
|
79
79
|
if (focusable &&
|
|
80
80
|
scrollToCrosswalk &&
|
|
81
81
|
(0, mdm_sdk_1.eqCrosswalks)(scrollToCrosswalk, crosswalk) &&
|
|
82
82
|
scrollToCrosswalk !== crosswalk) {
|
|
83
|
-
(_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: 'smooth' });
|
|
83
|
+
(_b = (_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView) === null || _b === void 0 ? void 0 : _b.call(_a, { behavior: 'smooth' });
|
|
84
84
|
}
|
|
85
85
|
}, [scrollToCrosswalk]);
|
|
86
86
|
var handleDeleteCrosswalk = function () {
|
|
@@ -73,6 +73,7 @@ export var CrosswalkAttributes = function (_a) {
|
|
|
73
73
|
]; }, []);
|
|
74
74
|
var extraAttributes = pipe(filter(propEq('canBeAdded', true)), filter(function (item) { return !has(item.uri, crosswalk); }), filter(function (item) { return !addedAttributes.includes(item.uri); }))(attributes);
|
|
75
75
|
var renderAttributeValue = function (attributeName, attributeValue) {
|
|
76
|
+
var _a;
|
|
76
77
|
switch (attributeName) {
|
|
77
78
|
case 'type': {
|
|
78
79
|
var sourceSystemLabel = getSourceSystemLabel(metadata, attributeValue);
|
|
@@ -90,7 +91,8 @@ export var CrosswalkAttributes = function (_a) {
|
|
|
90
91
|
}, TextFieldProps: {
|
|
91
92
|
InputProps: {
|
|
92
93
|
disableUnderline: true
|
|
93
|
-
}
|
|
94
|
+
},
|
|
95
|
+
inputProps: (_a = {}, _a['data-reltio-id'] = 'crosswalk-attribute-type-selector', _a)
|
|
94
96
|
} })) : (React.createElement(React.Fragment, null,
|
|
95
97
|
React.createElement(SourceIcon, { className: styles.sourceIcon, sourceType: attributeValue }),
|
|
96
98
|
React.createElement(Typography, { className: styles.text, variant: 'body2' }, sourceSystemLabel)));
|
|
@@ -13,7 +13,7 @@ export var CrosswalkEditor = function (_a) {
|
|
|
13
13
|
onAdd(newCrosswalk);
|
|
14
14
|
onClose();
|
|
15
15
|
};
|
|
16
|
-
return (React.createElement("div", { className: className },
|
|
16
|
+
return (React.createElement("div", { className: className, "data-reltio-id": "reltio-crosswalk-editor" },
|
|
17
17
|
React.createElement(Typography, { variant: 'body1', className: styles.caption }, i18n.text('Add crosswalk')),
|
|
18
18
|
React.createElement(CrosswalkAttributes, { crosswalk: newCrosswalk, onDeleteAttribute: function (attributeName) {
|
|
19
19
|
setNewCrosswalk(dissoc(attributeName));
|
|
@@ -46,12 +46,12 @@ export var CrosswalkRow = memo(function (_a) {
|
|
|
46
46
|
preview(getEmptyImage(), { captureDraggingState: true });
|
|
47
47
|
}, []);
|
|
48
48
|
useEffect(function () {
|
|
49
|
-
var _a;
|
|
49
|
+
var _a, _b;
|
|
50
50
|
if (focusable &&
|
|
51
51
|
scrollToCrosswalk &&
|
|
52
52
|
eqCrosswalks(scrollToCrosswalk, crosswalk) &&
|
|
53
53
|
scrollToCrosswalk !== crosswalk) {
|
|
54
|
-
(_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: 'smooth' });
|
|
54
|
+
(_b = (_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView) === null || _b === void 0 ? void 0 : _b.call(_a, { behavior: 'smooth' });
|
|
55
55
|
}
|
|
56
56
|
}, [scrollToCrosswalk]);
|
|
57
57
|
var handleDeleteCrosswalk = function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1924",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react-router-dom": "^6.2.1",
|
|
37
37
|
"react-select": "^3.0.4",
|
|
38
38
|
"react-simple-maps": "^3.0.0",
|
|
39
|
-
"react-virtualized": "^9.
|
|
39
|
+
"react-virtualized": "^9.22.5",
|
|
40
40
|
"react-window": "^1.8.10",
|
|
41
41
|
"recharts": "^2.10.1",
|
|
42
42
|
"sanitize-html": "2.7.1",
|