@reltio/components 1.4.1575 → 1.4.1576
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/components/EntityTypeBadge/EntityTypeBadge.js +3 -2
- package/cjs/components/MatchRulesBlock/SimpleMatchRulesBuilder/SimpleMatchRulesBuilder.d.ts +1 -11
- package/cjs/components/MatchRulesBlock/SimpleMatchRulesBuilder/SimpleMatchRulesBuilder.js +0 -5
- package/cjs/components/ProfileBand/styles.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/index.d.ts +2 -2
- package/cjs/components/attributes/editMode/AttributesView/index.d.ts +2 -8
- package/cjs/components/attributes/readMode/AttributesView/index.d.ts +2 -8
- package/cjs/components/attributes/types/attributesView.d.ts +2 -5
- package/cjs/components/crosswalks/AttributesTable/helpers.js +2 -1
- package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +4 -3
- package/esm/components/EntityTypeBadge/EntityTypeBadge.js +3 -2
- package/esm/components/MatchRulesBlock/SimpleMatchRulesBuilder/SimpleMatchRulesBuilder.d.ts +1 -11
- package/esm/components/MatchRulesBlock/SimpleMatchRulesBuilder/SimpleMatchRulesBuilder.js +1 -6
- package/esm/components/ProfileBand/styles.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesPager/index.d.ts +2 -2
- package/esm/components/attributes/editMode/AttributesView/index.d.ts +2 -8
- package/esm/components/attributes/readMode/AttributesView/index.d.ts +2 -8
- package/esm/components/attributes/types/attributesView.d.ts +2 -5
- package/esm/components/crosswalks/AttributesTable/helpers.js +2 -1
- package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +5 -4
- package/package.json +3 -3
|
@@ -16,8 +16,9 @@ var EntityTypeBadge = function (_a) {
|
|
|
16
16
|
var styles = (0, styles_1.default)();
|
|
17
17
|
var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
|
|
18
18
|
var entityTypeUri = entity.type;
|
|
19
|
-
var entityType = (0, mdm_sdk_1.getEntityType)(metadata, entityTypeUri)
|
|
20
|
-
var
|
|
19
|
+
var entityType = (0, mdm_sdk_1.getEntityType)(metadata, entityTypeUri);
|
|
20
|
+
var color = entityType ? (0, mdm_sdk_1.getPropWithInheritance)(metadata, entityType, 'typeColor') : null;
|
|
21
|
+
var entityTypeColor = color || mdm_sdk_1.theme.palette.primary.main;
|
|
21
22
|
var entityTypeLabel = (0, mdm_sdk_1.getEntityTypeLabel)(metadata, entity);
|
|
22
23
|
return (react_1.default.createElement(ExpandedValueTooltip_1.default, { value: entityTypeLabel, placement: "top" },
|
|
23
24
|
react_1.default.createElement(Typography_1.default, { style: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import { MatchRuleSummary } from '@reltio/mdm-sdk';
|
|
4
3
|
import { MatchRules, MatchRuleVariant } from '../types';
|
|
5
4
|
type Props = {
|
|
@@ -9,14 +8,5 @@ type Props = {
|
|
|
9
8
|
variant?: MatchRuleVariant;
|
|
10
9
|
matchRuleSummaries?: MatchRuleSummary[];
|
|
11
10
|
};
|
|
12
|
-
declare const SimpleMatchRulesBuilder: {
|
|
13
|
-
({ matchRules, Component, variant, ...otherProps }: Props): JSX.Element;
|
|
14
|
-
propTypes: {
|
|
15
|
-
matchRules: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
|
-
uri: PropTypes.Requireable<string>;
|
|
17
|
-
label: PropTypes.Requireable<string>;
|
|
18
|
-
}>[]>;
|
|
19
|
-
Component: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
11
|
+
declare const SimpleMatchRulesBuilder: ({ matchRules, Component, variant, ...otherProps }: Props) => JSX.Element;
|
|
22
12
|
export default SimpleMatchRulesBuilder;
|
|
@@ -26,7 +26,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var react_1 = __importDefault(require("react"));
|
|
29
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
30
29
|
var ramda_1 = require("ramda");
|
|
31
30
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
32
31
|
var types_1 = require("../types");
|
|
@@ -42,8 +41,4 @@ var SimpleMatchRulesBuilder = function (_a) {
|
|
|
42
41
|
showSimple ? react_1.default.createElement(Component, __assign({ matchRules: otherMatchRules }, otherProps)) : null,
|
|
43
42
|
showML ? react_1.default.createElement(Component, __assign({ isMlMatch: true, matchRules: MlMatchRules }, otherProps)) : null));
|
|
44
43
|
};
|
|
45
|
-
SimpleMatchRulesBuilder.propTypes = {
|
|
46
|
-
matchRules: mdm_sdk_1.MatchRulesType,
|
|
47
|
-
Component: prop_types_1.default.func
|
|
48
|
-
};
|
|
49
44
|
exports.default = SimpleMatchRulesBuilder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"inactive" | "label" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"inactive" | "label" | "entityType" | "secondaryLabel" | "profileBand" | "entityId" | "badge" | "profileIcon" | "profileBandWrapper" | "imageProfileIcon" | "profileInfo" | "businessCard" | "specialInfo">;
|
|
2
2
|
export default useStyles;
|
|
@@ -33,7 +33,7 @@ type OwnProps = {
|
|
|
33
33
|
};
|
|
34
34
|
export type AttributePagerProps = StateProps & DispatchProps & OwnProps;
|
|
35
35
|
export { AttributesPager, CardinalityMessage };
|
|
36
|
-
declare const _default: import("react-redux").ConnectedComponent<import("react").ComponentType<StateProps & DispatchProps & OwnProps>, (import("react-redux").Omit<import("react").ClassAttributes<import("react").Component<StateProps & DispatchProps & OwnProps, any, any>> & StateProps & DispatchProps & OwnProps, "max" | "
|
|
36
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").ComponentType<StateProps & DispatchProps & OwnProps>, (import("react-redux").Omit<import("react").ClassAttributes<import("react").Component<StateProps & DispatchProps & OwnProps, any, any>> & StateProps & DispatchProps & OwnProps, "max" | "errorMessage" | "errors" | "requestNextPageOfAttributeValues" | "onDeactivateError"> | import("react-redux").Omit<StateProps & DispatchProps & OwnProps & {
|
|
37
37
|
children?: import("react").ReactNode;
|
|
38
|
-
}, "max" | "
|
|
38
|
+
}, "max" | "errorMessage" | "errors" | "requestNextPageOfAttributeValues" | "onDeactivateError">) & OwnProps>;
|
|
39
39
|
export default _default;
|
|
@@ -9,10 +9,7 @@ declare const _default: import("react-redux").ConnectedComponent<({ className, e
|
|
|
9
9
|
entity?: import("@reltio/mdm-sdk").Entity;
|
|
10
10
|
includeUris?: string[];
|
|
11
11
|
excludeUris?: string[];
|
|
12
|
-
pinnedAttributes?:
|
|
13
|
-
attributes: string[];
|
|
14
|
-
roles?: string[];
|
|
15
|
-
}[];
|
|
12
|
+
pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
|
|
16
13
|
}) => JSX.Element, import("react-redux").Omit<{
|
|
17
14
|
caption?: string;
|
|
18
15
|
className?: string;
|
|
@@ -21,9 +18,6 @@ declare const _default: import("react-redux").ConnectedComponent<({ className, e
|
|
|
21
18
|
entity?: import("@reltio/mdm-sdk").Entity;
|
|
22
19
|
includeUris?: string[];
|
|
23
20
|
excludeUris?: string[];
|
|
24
|
-
pinnedAttributes?:
|
|
25
|
-
attributes: string[];
|
|
26
|
-
roles?: string[];
|
|
27
|
-
}[];
|
|
21
|
+
pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
|
|
28
22
|
}, "metadata">>;
|
|
29
23
|
export default _default;
|
|
@@ -9,10 +9,7 @@ declare const _default: import("react-redux").ConnectedComponent<({ className, e
|
|
|
9
9
|
includeUris?: string[];
|
|
10
10
|
excludeUris?: string[];
|
|
11
11
|
attributesCount?: number;
|
|
12
|
-
pinnedAttributes?:
|
|
13
|
-
attributes: string[];
|
|
14
|
-
roles?: string[];
|
|
15
|
-
}[];
|
|
12
|
+
pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
|
|
16
13
|
}) => JSX.Element, import("react-redux").Omit<{
|
|
17
14
|
caption?: string;
|
|
18
15
|
className?: string;
|
|
@@ -21,9 +18,6 @@ declare const _default: import("react-redux").ConnectedComponent<({ className, e
|
|
|
21
18
|
includeUris?: string[];
|
|
22
19
|
excludeUris?: string[];
|
|
23
20
|
attributesCount?: number;
|
|
24
|
-
pinnedAttributes?:
|
|
25
|
-
attributes: string[];
|
|
26
|
-
roles?: string[];
|
|
27
|
-
}[];
|
|
21
|
+
pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
|
|
28
22
|
}, "metadata">>;
|
|
29
23
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Entity, Metadata, Mode } from '@reltio/mdm-sdk';
|
|
1
|
+
import { Entity, Metadata, Mode, PinnedAttribute } from '@reltio/mdm-sdk';
|
|
2
2
|
type OwnProps = {
|
|
3
3
|
attributesCount?: number;
|
|
4
4
|
caption?: string;
|
|
@@ -6,10 +6,7 @@ type OwnProps = {
|
|
|
6
6
|
entity?: Entity;
|
|
7
7
|
excludeUris?: string[];
|
|
8
8
|
includeUris?: string[];
|
|
9
|
-
pinnedAttributes?:
|
|
10
|
-
attributes: string[];
|
|
11
|
-
roles?: string[];
|
|
12
|
-
}[];
|
|
9
|
+
pinnedAttributes?: PinnedAttribute[];
|
|
13
10
|
mode?: Mode;
|
|
14
11
|
};
|
|
15
12
|
type StateProps = {
|
|
@@ -144,7 +144,8 @@ var getWinnerCrosswalks = function (attributeValues, crosswalksMap) {
|
|
|
144
144
|
return (0, ramda_1.pipe)((0, ramda_1.pickBy)(function (_, attrUri) {
|
|
145
145
|
var isInHierarchy = (0, mdm_sdk_1.areOneHierarchyUris)(attrUri, value.uri);
|
|
146
146
|
var subAttrUriSuffix = isInHierarchy ? attrUri.slice(value.uri.length + 1) : '';
|
|
147
|
-
var subAttrValue = subAttrUriSuffix &&
|
|
147
|
+
var subAttrValue = subAttrUriSuffix &&
|
|
148
|
+
(0, mdm_sdk_1.findValueInAttributesByUriSuffix)(value.value, subAttrUriSuffix);
|
|
148
149
|
return isInHierarchy && (!subAttrValue || isOvValue(subAttrValue));
|
|
149
150
|
}), ramda_1.values, ramda_1.flatten)(crosswalksMap);
|
|
150
151
|
}), (0, ramda_1.uniqBy)((0, ramda_1.prop)('uri')))(attributeValues);
|
package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js
CHANGED
|
@@ -44,12 +44,13 @@ var DiffRenderer = function (_a) {
|
|
|
44
44
|
var entityUri = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntityUri);
|
|
45
45
|
var objectsInfo = (0, react_1.useContext)(AttributesChangesContext_1.AttributesChangesContext);
|
|
46
46
|
var getLinkDescription = (0, react_1.useCallback)(function () {
|
|
47
|
+
var _a, _b, _c;
|
|
47
48
|
if ((0, mdm_sdk_1.isReference)(attributeType)) {
|
|
48
|
-
var value = (
|
|
49
|
-
return (0, helpers_1.getAttributeDescription)(attributeType, value, entityUri, objectsInfo);
|
|
49
|
+
var value = (_b = (_a = attributeValue.value) === null || _a === void 0 ? void 0 : _a.newValue) !== null && _b !== void 0 ? _b : (_c = attributeValue.value) === null || _c === void 0 ? void 0 : _c.oldValue;
|
|
50
|
+
return (0, helpers_1.getAttributeDescription)(attributeType, value || attributeValue, entityUri, objectsInfo);
|
|
50
51
|
}
|
|
51
52
|
else if ('endObject' in attributeType) {
|
|
52
|
-
var
|
|
53
|
+
var _d = attributeValue, endObjectUri = _d.endObjectUri, endObjectLabel = _d.endObjectLabel;
|
|
53
54
|
return {
|
|
54
55
|
objectUri: endObjectUri,
|
|
55
56
|
objectLabel: endObjectLabel
|
|
@@ -11,8 +11,9 @@ var EntityTypeBadge = function (_a) {
|
|
|
11
11
|
var styles = useStyles();
|
|
12
12
|
var metadata = useSelector(mdmModule.selectors.getMetadata);
|
|
13
13
|
var entityTypeUri = entity.type;
|
|
14
|
-
var entityType = getEntityType(metadata, entityTypeUri)
|
|
15
|
-
var
|
|
14
|
+
var entityType = getEntityType(metadata, entityTypeUri);
|
|
15
|
+
var color = entityType ? getPropWithInheritance(metadata, entityType, 'typeColor') : null;
|
|
16
|
+
var entityTypeColor = color || theme.palette.primary.main;
|
|
16
17
|
var entityTypeLabel = getEntityTypeLabel(metadata, entity);
|
|
17
18
|
return (React.createElement(ExpandedValueTooltip, { value: entityTypeLabel, placement: "top" },
|
|
18
19
|
React.createElement(Typography, { style: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import { MatchRuleSummary } from '@reltio/mdm-sdk';
|
|
4
3
|
import { MatchRules, MatchRuleVariant } from '../types';
|
|
5
4
|
type Props = {
|
|
@@ -9,14 +8,5 @@ type Props = {
|
|
|
9
8
|
variant?: MatchRuleVariant;
|
|
10
9
|
matchRuleSummaries?: MatchRuleSummary[];
|
|
11
10
|
};
|
|
12
|
-
declare const SimpleMatchRulesBuilder: {
|
|
13
|
-
({ matchRules, Component, variant, ...otherProps }: Props): JSX.Element;
|
|
14
|
-
propTypes: {
|
|
15
|
-
matchRules: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
|
-
uri: PropTypes.Requireable<string>;
|
|
17
|
-
label: PropTypes.Requireable<string>;
|
|
18
|
-
}>[]>;
|
|
19
|
-
Component: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
11
|
+
declare const SimpleMatchRulesBuilder: ({ matchRules, Component, variant, ...otherProps }: Props) => JSX.Element;
|
|
22
12
|
export default SimpleMatchRulesBuilder;
|
|
@@ -21,9 +21,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import React from 'react';
|
|
24
|
-
import PropTypes from 'prop-types';
|
|
25
24
|
import { isEmpty } from 'ramda';
|
|
26
|
-
import {
|
|
25
|
+
import { partitionByMlMatch } from '@reltio/mdm-sdk';
|
|
27
26
|
import { MatchRuleVariant } from '../types';
|
|
28
27
|
import useStyles from './styles';
|
|
29
28
|
var SimpleMatchRulesBuilder = function (_a) {
|
|
@@ -37,8 +36,4 @@ var SimpleMatchRulesBuilder = function (_a) {
|
|
|
37
36
|
showSimple ? React.createElement(Component, __assign({ matchRules: otherMatchRules }, otherProps)) : null,
|
|
38
37
|
showML ? React.createElement(Component, __assign({ isMlMatch: true, matchRules: MlMatchRules }, otherProps)) : null));
|
|
39
38
|
};
|
|
40
|
-
SimpleMatchRulesBuilder.propTypes = {
|
|
41
|
-
matchRules: MatchRulesType,
|
|
42
|
-
Component: PropTypes.func
|
|
43
|
-
};
|
|
44
39
|
export default SimpleMatchRulesBuilder;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"inactive" | "label" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"inactive" | "label" | "entityType" | "secondaryLabel" | "profileBand" | "entityId" | "badge" | "profileIcon" | "profileBandWrapper" | "imageProfileIcon" | "profileInfo" | "businessCard" | "specialInfo">;
|
|
2
2
|
export default useStyles;
|
|
@@ -33,7 +33,7 @@ type OwnProps = {
|
|
|
33
33
|
};
|
|
34
34
|
export type AttributePagerProps = StateProps & DispatchProps & OwnProps;
|
|
35
35
|
export { AttributesPager, CardinalityMessage };
|
|
36
|
-
declare const _default: import("react-redux").ConnectedComponent<import("react").ComponentType<StateProps & DispatchProps & OwnProps>, (import("react-redux").Omit<import("react").ClassAttributes<import("react").Component<StateProps & DispatchProps & OwnProps, any, any>> & StateProps & DispatchProps & OwnProps, "max" | "
|
|
36
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").ComponentType<StateProps & DispatchProps & OwnProps>, (import("react-redux").Omit<import("react").ClassAttributes<import("react").Component<StateProps & DispatchProps & OwnProps, any, any>> & StateProps & DispatchProps & OwnProps, "max" | "errorMessage" | "errors" | "requestNextPageOfAttributeValues" | "onDeactivateError"> | import("react-redux").Omit<StateProps & DispatchProps & OwnProps & {
|
|
37
37
|
children?: import("react").ReactNode;
|
|
38
|
-
}, "max" | "
|
|
38
|
+
}, "max" | "errorMessage" | "errors" | "requestNextPageOfAttributeValues" | "onDeactivateError">) & OwnProps>;
|
|
39
39
|
export default _default;
|
|
@@ -9,10 +9,7 @@ declare const _default: import("react-redux").ConnectedComponent<({ className, e
|
|
|
9
9
|
entity?: import("@reltio/mdm-sdk").Entity;
|
|
10
10
|
includeUris?: string[];
|
|
11
11
|
excludeUris?: string[];
|
|
12
|
-
pinnedAttributes?:
|
|
13
|
-
attributes: string[];
|
|
14
|
-
roles?: string[];
|
|
15
|
-
}[];
|
|
12
|
+
pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
|
|
16
13
|
}) => JSX.Element, import("react-redux").Omit<{
|
|
17
14
|
caption?: string;
|
|
18
15
|
className?: string;
|
|
@@ -21,9 +18,6 @@ declare const _default: import("react-redux").ConnectedComponent<({ className, e
|
|
|
21
18
|
entity?: import("@reltio/mdm-sdk").Entity;
|
|
22
19
|
includeUris?: string[];
|
|
23
20
|
excludeUris?: string[];
|
|
24
|
-
pinnedAttributes?:
|
|
25
|
-
attributes: string[];
|
|
26
|
-
roles?: string[];
|
|
27
|
-
}[];
|
|
21
|
+
pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
|
|
28
22
|
}, "metadata">>;
|
|
29
23
|
export default _default;
|
|
@@ -9,10 +9,7 @@ declare const _default: import("react-redux").ConnectedComponent<({ className, e
|
|
|
9
9
|
includeUris?: string[];
|
|
10
10
|
excludeUris?: string[];
|
|
11
11
|
attributesCount?: number;
|
|
12
|
-
pinnedAttributes?:
|
|
13
|
-
attributes: string[];
|
|
14
|
-
roles?: string[];
|
|
15
|
-
}[];
|
|
12
|
+
pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
|
|
16
13
|
}) => JSX.Element, import("react-redux").Omit<{
|
|
17
14
|
caption?: string;
|
|
18
15
|
className?: string;
|
|
@@ -21,9 +18,6 @@ declare const _default: import("react-redux").ConnectedComponent<({ className, e
|
|
|
21
18
|
includeUris?: string[];
|
|
22
19
|
excludeUris?: string[];
|
|
23
20
|
attributesCount?: number;
|
|
24
|
-
pinnedAttributes?:
|
|
25
|
-
attributes: string[];
|
|
26
|
-
roles?: string[];
|
|
27
|
-
}[];
|
|
21
|
+
pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
|
|
28
22
|
}, "metadata">>;
|
|
29
23
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Entity, Metadata, Mode } from '@reltio/mdm-sdk';
|
|
1
|
+
import { Entity, Metadata, Mode, PinnedAttribute } from '@reltio/mdm-sdk';
|
|
2
2
|
type OwnProps = {
|
|
3
3
|
attributesCount?: number;
|
|
4
4
|
caption?: string;
|
|
@@ -6,10 +6,7 @@ type OwnProps = {
|
|
|
6
6
|
entity?: Entity;
|
|
7
7
|
excludeUris?: string[];
|
|
8
8
|
includeUris?: string[];
|
|
9
|
-
pinnedAttributes?:
|
|
10
|
-
attributes: string[];
|
|
11
|
-
roles?: string[];
|
|
12
|
-
}[];
|
|
9
|
+
pinnedAttributes?: PinnedAttribute[];
|
|
13
10
|
mode?: Mode;
|
|
14
11
|
};
|
|
15
12
|
type StateProps = {
|
|
@@ -136,7 +136,8 @@ export var getWinnerCrosswalks = function (attributeValues, crosswalksMap) {
|
|
|
136
136
|
return pipe(pickBy(function (_, attrUri) {
|
|
137
137
|
var isInHierarchy = areOneHierarchyUris(attrUri, value.uri);
|
|
138
138
|
var subAttrUriSuffix = isInHierarchy ? attrUri.slice(value.uri.length + 1) : '';
|
|
139
|
-
var subAttrValue = subAttrUriSuffix &&
|
|
139
|
+
var subAttrValue = subAttrUriSuffix &&
|
|
140
|
+
findValueInAttributesByUriSuffix(value.value, subAttrUriSuffix);
|
|
140
141
|
return isInHierarchy && (!subAttrValue || isOvValue(subAttrValue));
|
|
141
142
|
}), values, flatten)(crosswalksMap);
|
|
142
143
|
}), uniqBy(prop('uri')))(attributeValues);
|
package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useContext, useMemo } from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
|
-
import {
|
|
3
|
+
import { isNil } from 'ramda';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { getAttributeValue, getLabel, isReference } from '@reltio/mdm-sdk';
|
|
6
6
|
import mdmModule from '@reltio/mdm-module';
|
|
@@ -16,12 +16,13 @@ var DiffRenderer = function (_a) {
|
|
|
16
16
|
var entityUri = useSelector(mdmModule.selectors.getEntityUri);
|
|
17
17
|
var objectsInfo = useContext(AttributesChangesContext);
|
|
18
18
|
var getLinkDescription = useCallback(function () {
|
|
19
|
+
var _a, _b, _c;
|
|
19
20
|
if (isReference(attributeType)) {
|
|
20
|
-
var value =
|
|
21
|
-
return getAttributeDescription(attributeType, value, entityUri, objectsInfo);
|
|
21
|
+
var value = (_b = (_a = attributeValue.value) === null || _a === void 0 ? void 0 : _a.newValue) !== null && _b !== void 0 ? _b : (_c = attributeValue.value) === null || _c === void 0 ? void 0 : _c.oldValue;
|
|
22
|
+
return getAttributeDescription(attributeType, value || attributeValue, entityUri, objectsInfo);
|
|
22
23
|
}
|
|
23
24
|
else if ('endObject' in attributeType) {
|
|
24
|
-
var
|
|
25
|
+
var _d = attributeValue, endObjectUri = _d.endObjectUri, endObjectLabel = _d.endObjectLabel;
|
|
25
26
|
return {
|
|
26
27
|
objectUri: endObjectUri,
|
|
27
28
|
objectLabel: endObjectLabel
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1576",
|
|
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.1576",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1576",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|