@reltio/components 1.4.2199 → 1.4.2200
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/RolesEditor/RolesEditor.js +5 -20
- package/RolesEditor/RolesEditor.module.css.js +2 -2
- package/RolesInput/RolesInput.d.ts +8 -0
- package/RolesInput/RolesInput.js +31 -0
- package/RolesInput/RolesInput.module.css.js +9 -0
- package/TagsEditor/TagsEditor.js +4 -67
- package/TagsInput/TagsInput.d.ts +8 -0
- package/TagsInput/TagsInput.js +71 -0
- package/cjs/RolesEditor/RolesEditor.js +2 -17
- package/cjs/RolesEditor/RolesEditor.module.css.js +2 -2
- package/cjs/RolesInput/RolesInput.d.ts +8 -0
- package/cjs/RolesInput/RolesInput.js +61 -0
- package/cjs/RolesInput/RolesInput.module.css.js +9 -0
- package/cjs/TagsEditor/TagsEditor.js +2 -65
- package/cjs/TagsInput/TagsInput.d.ts +8 -0
- package/cjs/TagsInput/TagsInput.js +98 -0
- package/cjs/features/workflow/AttributesChanges/AttributesChanges.js +9 -48
- package/cjs/features/workflow/AttributesChanges/AttributesChanges.module.css.js +9 -0
- package/cjs/features/workflow/AttributesChanges/components/ChangeView/ChangeView.js +7 -9
- package/cjs/features/workflow/AttributesChanges/components/ChangeView/ChangeView.module.css.js +9 -0
- package/cjs/features/workflow/AttributesChanges/components/DCRChangesList/DCRChangesList.d.ts +1 -1
- package/cjs/features/workflow/AttributesChanges/components/DiffRenderer/DiffRenderer.d.ts +2 -2
- package/cjs/features/workflow/AttributesChanges/components/DiffRenderer/DiffRenderer.js +19 -40
- package/cjs/features/workflow/AttributesChanges/components/DiffRenderer/DiffRenderer.module.css.js +9 -0
- package/cjs/features/workflow/AttributesChanges/useCollapsibleList.d.ts +1 -1
- package/cjs/features/workflow/ChangeRequestEditor/ChangeRequestEditor.d.ts +3 -2
- package/cjs/features/workflow/ChangeRequestEditor/ChangeRequestEditor.js +11 -6
- package/cjs/features/workflow/ChangeRequestEditor/ChangeRequestEditor.module.css.js +2 -2
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.d.ts +10 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.js +72 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.module.css.js +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemLabel.d.ts +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemLabel.js +19 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemOldValue.d.ts +7 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemOldValue.js +32 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/DCRValueEditor.d.ts +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/DCRValueEditor.js +44 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/DCRValueEditorFactory.d.ts +12 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/DCRValueEditorFactory.js +38 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/SkeletonChangeItemEditorLoader.d.ts +2 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/SkeletonChangeItemEditorLoader.js +20 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/index.d.ts +3 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/index.js +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.d.ts +10 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.js +27 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.module.css.js +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/index.d.ts +1 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/index.js +5 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.d.ts +10 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.js +61 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.module.css.js +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/SkeletonEntityChangesGroupLoader.d.ts +2 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/SkeletonEntityChangesGroupLoader.js +23 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/index.d.ts +2 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/index.js +7 -0
- package/cjs/features/workflow/ChangeRequestEditor/helpers.d.ts +3 -0
- package/cjs/features/workflow/ChangeRequestEditor/helpers.js +16 -0
- package/cjs/features/workflow/DCREntityUriLink/DCREntityUriLink.d.ts +10 -0
- package/cjs/features/workflow/DCREntityUriLink/DCREntityUriLink.js +21 -0
- package/cjs/features/workflow/DCREntityUriLink/DCREntityUriLink.module.css.js +9 -0
- package/cjs/features/workflow/OperationChip/OperationChip.d.ts +10 -0
- package/cjs/features/workflow/OperationChip/OperationChip.js +16 -0
- package/cjs/features/workflow/OperationChip/OperationChip.module.css.js +9 -0
- package/cjs/features/workflow/OperationChip/index.d.ts +1 -0
- package/cjs/features/workflow/OperationChip/index.js +5 -0
- package/cjs/features/workflow/RelationEntityLink/RelationEntityLink.d.ts +9 -0
- package/cjs/features/workflow/RelationEntityLink/RelationEntityLink.js +67 -0
- package/cjs/features/workflow/RelationEntityLink/RelationEntityLink.module.css.js +9 -0
- package/cjs/features/workflow/RelationEntityLink/index.d.ts +1 -0
- package/cjs/features/workflow/RelationEntityLink/index.js +5 -0
- package/cjs/features/workflow/ReviewDCRDialog/ReviewDCRDialog.js +1 -1
- package/cjs/features/workflow/ReviewDCRDialog/ReviewDCRDialog.module.css.js +1 -1
- package/cjs/features/workflow/ReviewDCRDialog/components/DCRChangesSummary/DCRChangesSummary.js +3 -17
- package/cjs/features/workflow/ReviewDCRDialog/components/DCRChangesSummary/DCRChangesSummary.module.css.js +1 -1
- package/cjs/features/workflow/ReviewDCRDialog/helpers/calculateDCRChanges.js +1 -1
- package/cjs/features/workflow/WorkflowComments/components/Comment/Comment.js +9 -10
- package/cjs/features/workflow/WorkflowComments/components/Comment/Comment.module.css.js +9 -0
- package/cjs/features/workflow/{AttributesChanges/helpers → helpers}/attributes.js +13 -10
- package/cjs/features/workflow/{AttributesChanges/helpers → helpers}/attributes.test.js +19 -9
- package/cjs/features/workflow/helpers/common.d.ts +2 -1
- package/cjs/features/workflow/helpers/common.js +6 -1
- package/cjs/features/workflow/{AttributesChanges/helpers → helpers}/merge.js +3 -4
- package/cjs/features/workflow/{AttributesChanges/helpers → helpers}/merge.test.js +5 -3
- package/cjs/features/workflow/hooks/useChangesList.d.ts +9 -0
- package/cjs/features/workflow/hooks/useChangesList.js +24 -0
- package/cjs/features/workflow/types.d.ts +16 -0
- package/cjs/icons/SuggestedChanges.d.ts +3 -0
- package/cjs/icons/SuggestedChanges.js +27 -0
- package/features/workflow/AttributesChanges/AttributesChanges.js +7 -23
- package/features/workflow/AttributesChanges/AttributesChanges.module.css.js +9 -0
- package/features/workflow/AttributesChanges/components/ChangeView/ChangeView.js +3 -5
- package/features/workflow/AttributesChanges/components/ChangeView/ChangeView.module.css.js +9 -0
- package/features/workflow/AttributesChanges/components/DCRChangesList/DCRChangesList.d.ts +1 -1
- package/features/workflow/AttributesChanges/components/DiffRenderer/DiffRenderer.d.ts +2 -2
- package/features/workflow/AttributesChanges/components/DiffRenderer/DiffRenderer.js +22 -43
- package/features/workflow/AttributesChanges/components/DiffRenderer/DiffRenderer.module.css.js +9 -0
- package/features/workflow/AttributesChanges/useCollapsibleList.d.ts +1 -1
- package/features/workflow/ChangeRequestEditor/ChangeRequestEditor.d.ts +3 -2
- package/features/workflow/ChangeRequestEditor/ChangeRequestEditor.js +11 -6
- package/features/workflow/ChangeRequestEditor/ChangeRequestEditor.module.css.js +2 -2
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.d.ts +10 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.js +42 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.module.css.js +9 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemLabel.d.ts +9 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemLabel.js +12 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemOldValue.d.ts +7 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemOldValue.js +25 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/DCRValueEditor.d.ts +9 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/DCRValueEditor.js +14 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/DCRValueEditorFactory.d.ts +12 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/DCRValueEditorFactory.js +32 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/SkeletonChangeItemEditorLoader.d.ts +2 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/SkeletonChangeItemEditorLoader.js +13 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/index.d.ts +3 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/index.js +3 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.d.ts +10 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.js +20 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.module.css.js +9 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/index.d.ts +1 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/index.js +1 -0
- package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.d.ts +10 -0
- package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.js +31 -0
- package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.module.css.js +9 -0
- package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/SkeletonEntityChangesGroupLoader.d.ts +2 -0
- package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/SkeletonEntityChangesGroupLoader.js +16 -0
- package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/index.d.ts +2 -0
- package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/index.js +2 -0
- package/features/workflow/ChangeRequestEditor/helpers.d.ts +3 -0
- package/features/workflow/ChangeRequestEditor/helpers.js +12 -0
- package/features/workflow/DCREntityUriLink/DCREntityUriLink.d.ts +10 -0
- package/features/workflow/DCREntityUriLink/DCREntityUriLink.js +14 -0
- package/features/workflow/DCREntityUriLink/DCREntityUriLink.module.css.js +9 -0
- package/features/workflow/OperationChip/OperationChip.d.ts +10 -0
- package/features/workflow/OperationChip/OperationChip.js +9 -0
- package/features/workflow/OperationChip/OperationChip.module.css.js +9 -0
- package/features/workflow/OperationChip/index.d.ts +1 -0
- package/features/workflow/OperationChip/index.js +1 -0
- package/features/workflow/RelationEntityLink/RelationEntityLink.d.ts +9 -0
- package/features/workflow/RelationEntityLink/RelationEntityLink.js +37 -0
- package/features/workflow/RelationEntityLink/RelationEntityLink.module.css.js +9 -0
- package/features/workflow/RelationEntityLink/index.d.ts +1 -0
- package/features/workflow/RelationEntityLink/index.js +1 -0
- package/features/workflow/ReviewDCRDialog/ReviewDCRDialog.js +1 -1
- package/features/workflow/ReviewDCRDialog/ReviewDCRDialog.module.css.js +1 -1
- package/features/workflow/ReviewDCRDialog/components/DCRChangesSummary/DCRChangesSummary.js +2 -16
- package/features/workflow/ReviewDCRDialog/components/DCRChangesSummary/DCRChangesSummary.module.css.js +1 -1
- package/features/workflow/ReviewDCRDialog/helpers/calculateDCRChanges.js +1 -1
- package/features/workflow/WorkflowComments/components/Comment/Comment.js +1 -2
- package/features/workflow/WorkflowComments/components/Comment/Comment.module.css.js +9 -0
- package/features/workflow/{AttributesChanges/helpers → helpers}/attributes.js +13 -10
- package/features/workflow/{AttributesChanges/helpers → helpers}/attributes.test.js +19 -9
- package/features/workflow/helpers/common.d.ts +2 -1
- package/features/workflow/helpers/common.js +6 -2
- package/features/workflow/{AttributesChanges/helpers → helpers}/merge.js +4 -5
- package/features/workflow/{AttributesChanges/helpers → helpers}/merge.test.js +5 -3
- package/features/workflow/hooks/useChangesList.d.ts +9 -0
- package/features/workflow/hooks/useChangesList.js +17 -0
- package/features/workflow/types.d.ts +16 -0
- package/icons/SuggestedChanges.d.ts +3 -0
- package/icons/SuggestedChanges.js +22 -0
- package/package.json +2 -2
- package/cjs/features/workflow/AttributesChanges/components/ChangeView/styles.d.ts +0 -1
- package/cjs/features/workflow/AttributesChanges/components/ChangeView/styles.js +0 -49
- package/cjs/features/workflow/AttributesChanges/components/DiffRenderer/styles.d.ts +0 -5
- package/cjs/features/workflow/AttributesChanges/components/DiffRenderer/styles.js +0 -31
- package/cjs/features/workflow/AttributesChanges/styles.d.ts +0 -1
- package/cjs/features/workflow/AttributesChanges/styles.js +0 -28
- package/cjs/features/workflow/AttributesChanges/types.d.ts +0 -14
- package/cjs/features/workflow/AttributesChanges/types.js +0 -2
- package/cjs/features/workflow/WorkflowComments/components/Comment/styles.d.ts +0 -1
- package/cjs/features/workflow/WorkflowComments/components/Comment/styles.js +0 -49
- package/features/workflow/AttributesChanges/components/ChangeView/styles.d.ts +0 -1
- package/features/workflow/AttributesChanges/components/ChangeView/styles.js +0 -46
- package/features/workflow/AttributesChanges/components/DiffRenderer/styles.d.ts +0 -5
- package/features/workflow/AttributesChanges/components/DiffRenderer/styles.js +0 -28
- package/features/workflow/AttributesChanges/styles.d.ts +0 -1
- package/features/workflow/AttributesChanges/styles.js +0 -25
- package/features/workflow/AttributesChanges/types.d.ts +0 -14
- package/features/workflow/AttributesChanges/types.js +0 -1
- package/features/workflow/WorkflowComments/components/Comment/styles.d.ts +0 -1
- package/features/workflow/WorkflowComments/components/Comment/styles.js +0 -46
- /package/cjs/features/workflow/{AttributesChanges/helpers → helpers}/attributes.d.ts +0 -0
- /package/cjs/features/workflow/{AttributesChanges/helpers → helpers}/attributes.test.d.ts +0 -0
- /package/cjs/features/workflow/{AttributesChanges/helpers → helpers}/merge.d.ts +0 -0
- /package/cjs/features/workflow/{AttributesChanges/helpers → helpers}/merge.test.d.ts +0 -0
- /package/cjs/features/workflow/{AttributesChanges/helpers → helpers}/metadata.test-data.d.ts +0 -0
- /package/cjs/features/workflow/{AttributesChanges/helpers → helpers}/metadata.test-data.js +0 -0
- /package/features/workflow/{AttributesChanges/helpers → helpers}/attributes.d.ts +0 -0
- /package/features/workflow/{AttributesChanges/helpers → helpers}/attributes.test.d.ts +0 -0
- /package/features/workflow/{AttributesChanges/helpers → helpers}/merge.d.ts +0 -0
- /package/features/workflow/{AttributesChanges/helpers → helpers}/merge.test.d.ts +0 -0
- /package/features/workflow/{AttributesChanges/helpers → helpers}/metadata.test-data.d.ts +0 -0
- /package/features/workflow/{AttributesChanges/helpers → helpers}/metadata.test-data.js +0 -0
|
@@ -3,10 +3,9 @@ import i18n from 'ui-i18n';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import Avatar from '@mui/material/Avatar';
|
|
5
5
|
import Person from '@mui/icons-material/Person';
|
|
6
|
-
import
|
|
6
|
+
import styles from './Comment.module.css';
|
|
7
7
|
export var Comment = function (_a) {
|
|
8
8
|
var author = _a.author, message = _a.message, time = _a.time, _b = _a.classes, classes = _b === void 0 ? {} : _b;
|
|
9
|
-
var styles = useStyles();
|
|
10
9
|
return (React.createElement("div", { className: styles.comment },
|
|
11
10
|
React.createElement(Avatar, { className: styles.avatar },
|
|
12
11
|
React.createElement(Person, { className: styles.icon })),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const styles = {"comment":"Comment-comment--EbYOv","avatar":"Comment-avatar--zDzhi","icon":"Comment-icon--VXgD-","firstLine":"Comment-firstLine--16ocZ","info":"Comment-info--Z0Lgv","author":"Comment-author--xm-WD","date":"Comment-date--4aLvh","text":"Comment-text--a3pI0"};
|
|
2
|
+
if (typeof document !== 'undefined') {
|
|
3
|
+
const head = document.head || document.getElementsByTagName('head')[0]
|
|
4
|
+
const style = document.createElement('style');
|
|
5
|
+
style.type = 'text/css'
|
|
6
|
+
style.innerHTML = `.Comment-comment--EbYOv{display:flex;flex:1;flex-direction:row;margin-left:6px}.Comment-avatar--zDzhi{height:24px;margin:3px 13px 0 0;width:24px}.Comment-icon--VXgD-{fill:#537280;background-color:#eaedee}.Comment-firstLine--16ocZ{display:flex;flex-direction:row;flex-wrap:wrap}.Comment-info--Z0Lgv{flex:1}.Comment-author--xm-WD{color:var(--mui-palette-text-primary);flex:1;font-size:13px;font-weight:500;line-height:15px;margin-right:10px}.Comment-date--4aLvh{color:var(--mui-palette-text-secondary);font-size:11px;line-height:15px;margin-right:17px}.Comment-text--a3pI0{color:rgba(0,0,0,.6);font-size:13px;word-wrap:break-word;padding-right:10px;white-space:pre-wrap;word-break:break-all}`;
|
|
7
|
+
head.appendChild(style);
|
|
8
|
+
}
|
|
9
|
+
export default styles;
|
|
@@ -11,8 +11,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { complement, curry, flatten, is, isEmpty, pathOr, propOr, times } from 'ramda';
|
|
13
13
|
import { DataTypes, DCRTypes, getAttributeTypeSubAttributes, getLabel, getRelationAttributesList, getRelationType, isEmptyValue, isSpecialAttribute } from '@reltio/mdm-sdk';
|
|
14
|
-
import { getFilteredAttrTypes } from '
|
|
15
|
-
import { getOperationType } from '
|
|
14
|
+
import { getFilteredAttrTypes } from '../../../helpers/attributesView';
|
|
15
|
+
import { getOperationType } from './common';
|
|
16
16
|
var getValues = function (attributes, attrType) {
|
|
17
17
|
if ('newValue' in attributes || 'oldValue' in attributes) {
|
|
18
18
|
var newValue = attributes.newValue, oldValue = attributes.oldValue, type_1 = attributes.type;
|
|
@@ -31,13 +31,14 @@ var getValues = function (attributes, attrType) {
|
|
|
31
31
|
var values = attributes[attrType.name];
|
|
32
32
|
return values ? [values] : [];
|
|
33
33
|
};
|
|
34
|
-
var getAttributesList = function (metadata, attrTypes, attributes, level) {
|
|
34
|
+
var getAttributesList = function (metadata, attrTypes, attributes, level, isReferenceSubAttribute) {
|
|
35
35
|
if (level === void 0) { level = 0; }
|
|
36
|
+
if (isReferenceSubAttribute === void 0) { isReferenceSubAttribute = false; }
|
|
36
37
|
return flatten(attrTypes
|
|
37
38
|
.map(function (attrType) {
|
|
38
39
|
return getValues(attributes, attrType).map(function (value) {
|
|
39
40
|
return value.map(function (attributeValue) {
|
|
40
|
-
return dcrAttributesFactory(metadata, attrType, attributeValue, level);
|
|
41
|
+
return dcrAttributesFactory(metadata, attrType, attributeValue, level, isReferenceSubAttribute);
|
|
41
42
|
});
|
|
42
43
|
});
|
|
43
44
|
})
|
|
@@ -47,7 +48,7 @@ var getSimpleAttributeValue = function (attributeType, attributeValue) {
|
|
|
47
48
|
var value = isSpecialAttribute(attributeType) ? attributeValue : attributeValue.value;
|
|
48
49
|
return is(Object, value) ? value : { newValue: attributeValue, type: DCRTypes.INSERT_ATTRIBUTE };
|
|
49
50
|
};
|
|
50
|
-
var dcrAttributesFactory = function (metadata, attributeType, attributeValue, level) {
|
|
51
|
+
var dcrAttributesFactory = function (metadata, attributeType, attributeValue, level, isReferenceSubAttribute) {
|
|
51
52
|
switch (attributeType.type) {
|
|
52
53
|
case DataTypes.TYPE_NESTED:
|
|
53
54
|
case DataTypes.TYPE_IMAGE:
|
|
@@ -56,7 +57,7 @@ var dcrAttributesFactory = function (metadata, attributeType, attributeValue, le
|
|
|
56
57
|
return getReferenceAttributeChange(metadata, attributeType, attributeValue, level);
|
|
57
58
|
default: {
|
|
58
59
|
var value = getSimpleAttributeValue(attributeType, attributeValue);
|
|
59
|
-
return getSimpleAttributeChange(attributeType, value, level);
|
|
60
|
+
return getSimpleAttributeChange(attributeType, value, level, isReferenceSubAttribute);
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
};
|
|
@@ -73,14 +74,15 @@ var getReferenceAttributeChange = function (metadata, attributeType, attributeVa
|
|
|
73
74
|
var label = (attributeType === null || attributeType === void 0 ? void 0 : attributeType.label) || (attributeType === null || attributeType === void 0 ? void 0 : attributeType.name);
|
|
74
75
|
return [
|
|
75
76
|
{ level: level, label: label, attributeType: attributeType, attributeValue: attributeValue },
|
|
76
|
-
getAttributesList(metadata, attributeTypeList, attributeValue.value, level + 1)
|
|
77
|
+
getAttributesList(metadata, attributeTypeList, attributeValue.value, level + 1, true)
|
|
77
78
|
];
|
|
78
79
|
};
|
|
79
80
|
var getDiffParameters = function (_a) {
|
|
80
81
|
var newValue = _a.newValue, oldValue = _a.oldValue, type = _a.type;
|
|
81
82
|
return type === DCRTypes.UPDATE_ATTRIBUTE ? { type: type, newValue: newValue, oldValue: oldValue } : { type: type, newValue: oldValue || newValue };
|
|
82
83
|
};
|
|
83
|
-
var getSimpleAttributeChange = function (attributeType, attributeValue, level) {
|
|
84
|
+
var getSimpleAttributeChange = function (attributeType, attributeValue, level, isReferenceSubAttribute) {
|
|
85
|
+
if (isReferenceSubAttribute === void 0) { isReferenceSubAttribute = false; }
|
|
84
86
|
var _a = getDiffParameters(attributeValue), newValue = _a.newValue, oldValue = _a.oldValue, type = _a.type;
|
|
85
87
|
var operation = getOperationType(type, oldValue);
|
|
86
88
|
var label = (attributeType === null || attributeType === void 0 ? void 0 : attributeType.label) || (attributeType === null || attributeType === void 0 ? void 0 : attributeType.name);
|
|
@@ -90,7 +92,8 @@ var getSimpleAttributeChange = function (attributeType, attributeValue, level) {
|
|
|
90
92
|
oldValue: oldValue,
|
|
91
93
|
operation: operation,
|
|
92
94
|
label: label,
|
|
93
|
-
level: level
|
|
95
|
+
level: level,
|
|
96
|
+
isReferenceSubAttribute: isReferenceSubAttribute
|
|
94
97
|
};
|
|
95
98
|
};
|
|
96
99
|
export var getEntityChanges = curry(function (metadata, entityInfo, changes) {
|
|
@@ -108,7 +111,7 @@ export var getRelationChanges = curry(function (metadata, relationInfo, changes,
|
|
|
108
111
|
var relationType = getRelationType(metadata, relationInfo.type);
|
|
109
112
|
var attrTypes = getRelationAttributesList(metadata, relationInfo.type);
|
|
110
113
|
return flatten([
|
|
111
|
-
__assign({ level: 1, label: propOr('', 'label', relationType), attributeType: relationType, attributeValue: __assign(__assign({}, relationInfo), changes) }, addRelationOperationIfNeeded(changes, changeType)),
|
|
114
|
+
__assign({ level: 1, label: propOr('', 'label', relationType), attributeType: null, relationType: relationType, attributeValue: __assign(__assign({}, relationInfo), changes) }, addRelationOperationIfNeeded(changes, changeType)),
|
|
112
115
|
getAttributesList(metadata, attrTypes, changes, 2)
|
|
113
116
|
]);
|
|
114
117
|
});
|
|
@@ -75,14 +75,16 @@ describe('attributes helpers tests', function () {
|
|
|
75
75
|
label: 'Country Code',
|
|
76
76
|
level: 0,
|
|
77
77
|
newValue: changes.CountryCode[0].value.newValue,
|
|
78
|
-
operation: 'ignored'
|
|
78
|
+
operation: 'ignored',
|
|
79
|
+
isReferenceSubAttribute: false
|
|
79
80
|
},
|
|
80
81
|
{
|
|
81
82
|
attributeType: metadata.entityTypes[0].attributes[1],
|
|
82
83
|
label: 'Country Code',
|
|
83
84
|
level: 0,
|
|
84
85
|
newValue: changes.CountryCode[1].value.newValue,
|
|
85
|
-
operation: 'added'
|
|
86
|
+
operation: 'added',
|
|
87
|
+
isReferenceSubAttribute: false
|
|
86
88
|
},
|
|
87
89
|
{
|
|
88
90
|
attributeType: metadata.entityTypes[0].attributes[3],
|
|
@@ -95,7 +97,8 @@ describe('attributes helpers tests', function () {
|
|
|
95
97
|
label: 'Identity Type',
|
|
96
98
|
level: 1,
|
|
97
99
|
newValue: changes.Identifiers[0].value.Type[0].value.newValue,
|
|
98
|
-
operation: 'ignored'
|
|
100
|
+
operation: 'ignored',
|
|
101
|
+
isReferenceSubAttribute: false
|
|
99
102
|
}
|
|
100
103
|
]);
|
|
101
104
|
});
|
|
@@ -116,7 +119,8 @@ describe('attributes helpers tests', function () {
|
|
|
116
119
|
it('should not show operation for relation title', function () {
|
|
117
120
|
expect(getRelationChanges(metadata, relationInfo, changes, DCRTypes.INSERT_ATTRIBUTE)).toEqual([
|
|
118
121
|
{
|
|
119
|
-
attributeType:
|
|
122
|
+
attributeType: null,
|
|
123
|
+
relationType: metadata.relationTypes[1],
|
|
120
124
|
attributeValue: __assign(__assign({}, relationInfo), changes),
|
|
121
125
|
label: metadata.relationTypes[1].label,
|
|
122
126
|
level: 1
|
|
@@ -126,21 +130,24 @@ describe('attributes helpers tests', function () {
|
|
|
126
130
|
label: EntityAttrTypes.startDate.label,
|
|
127
131
|
level: 2,
|
|
128
132
|
newValue: { value: 1644001200000 },
|
|
129
|
-
operation: DCROperationTypes.ADDED
|
|
133
|
+
operation: DCROperationTypes.ADDED,
|
|
134
|
+
isReferenceSubAttribute: false
|
|
130
135
|
},
|
|
131
136
|
{
|
|
132
137
|
attributeType: metadata.relationTypes[1].attributes[0],
|
|
133
138
|
label: metadata.relationTypes[1].attributes[0].label,
|
|
134
139
|
level: 2,
|
|
135
140
|
newValue: '123',
|
|
136
|
-
operation: DCROperationTypes.ADDED
|
|
141
|
+
operation: DCROperationTypes.ADDED,
|
|
142
|
+
isReferenceSubAttribute: false
|
|
137
143
|
}
|
|
138
144
|
]);
|
|
139
145
|
});
|
|
140
146
|
it('should show operation for relation title if it is new', function () {
|
|
141
147
|
expect(getRelationChanges(metadata, relationInfo, changes, DCRTypes.CREATE_RELATIONSHIP)).toEqual([
|
|
142
148
|
{
|
|
143
|
-
attributeType:
|
|
149
|
+
attributeType: null,
|
|
150
|
+
relationType: metadata.relationTypes[1],
|
|
144
151
|
attributeValue: __assign(__assign({}, relationInfo), changes),
|
|
145
152
|
label: metadata.relationTypes[1].label,
|
|
146
153
|
level: 1,
|
|
@@ -151,11 +158,13 @@ describe('attributes helpers tests', function () {
|
|
|
151
158
|
label: EntityAttrTypes.startDate.label,
|
|
152
159
|
level: 2,
|
|
153
160
|
newValue: { value: 1644001200000 },
|
|
154
|
-
operation: DCROperationTypes.ADDED
|
|
161
|
+
operation: DCROperationTypes.ADDED,
|
|
162
|
+
isReferenceSubAttribute: false
|
|
155
163
|
},
|
|
156
164
|
{
|
|
157
165
|
attributeType: metadata.relationTypes[1].attributes[0],
|
|
158
166
|
label: metadata.relationTypes[1].attributes[0].label,
|
|
167
|
+
isReferenceSubAttribute: false,
|
|
159
168
|
level: 2,
|
|
160
169
|
newValue: '123',
|
|
161
170
|
operation: DCROperationTypes.ADDED
|
|
@@ -165,7 +174,8 @@ describe('attributes helpers tests', function () {
|
|
|
165
174
|
it('should show operation for relation title if it was deleted and changes are empty', function () {
|
|
166
175
|
expect(getRelationChanges(metadata, relationInfo, {}, DCRTypes.DELETE_RELATIONSHIP)).toEqual([
|
|
167
176
|
{
|
|
168
|
-
attributeType:
|
|
177
|
+
attributeType: null,
|
|
178
|
+
relationType: metadata.relationTypes[1],
|
|
169
179
|
attributeValue: relationInfo,
|
|
170
180
|
label: metadata.relationTypes[1].label,
|
|
171
181
|
level: 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AttributeType, DCRAttributeValue, DCRObjectsInfo, DCROperationTypes, DCRValue,
|
|
1
|
+
import { AttributeType, DCRAttributeValue, DCRObjectsInfo, DCROperationTypes, DCRValue, Metadata, WorkflowDefinition, WorkflowTaskData } from '@reltio/mdm-sdk';
|
|
2
2
|
export declare const getOperationType: (type: string, oldValue?: DCRAttributeValue) => DCROperationTypes;
|
|
3
3
|
export declare const getOperationLabel: (operation: DCROperationTypes) => string;
|
|
4
4
|
export declare const getAttributeDescription: (attrType: AttributeType, value: DCRAttributeValue, currentEntityUri: string, objectsInfo?: DCRObjectsInfo) => {
|
|
@@ -12,3 +12,4 @@ export declare const getDCRId: (objectUris?: string[]) => string;
|
|
|
12
12
|
export declare const isOpenTask: (isOpen: WorkflowTaskData["isOpen"]) => boolean;
|
|
13
13
|
export declare const isRequestedTask: (processTypes: string[], assignee: string) => (task: WorkflowTaskData) => boolean;
|
|
14
14
|
export declare const findWorkflowDefinitionByType: (definitions: WorkflowDefinition[], type: string) => WorkflowDefinition | undefined;
|
|
15
|
+
export declare const prepareRolesOrTagsValue: (metadata: Metadata, value: string[], type: string) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { allPass, always, equals, evolve, filter, has, identity, isNil, length, nth, pipe, prop, propEq, split, startsWith, unless, when } from 'ramda';
|
|
2
2
|
import i18n from 'ui-i18n';
|
|
3
|
-
import { DataTypes, DCRTypes, getAttrDataTypeDefinition,
|
|
3
|
+
import { DataTypes, DCROperationTypes, DCRTypes, EntityAttrTypes, getAttrDataTypeDefinition, getRoleLabel, isUrl } from '@reltio/mdm-sdk';
|
|
4
4
|
export var getOperationType = function (type, oldValue) {
|
|
5
5
|
switch (type) {
|
|
6
6
|
case DCRTypes.CREATE_RELATIONSHIP:
|
|
@@ -67,3 +67,7 @@ export var isRequestedTask = function (processTypes, assignee) { return function
|
|
|
67
67
|
return (!processTypes || processTypes.includes(task.processType)) && (!assignee || assignee === task.assignee);
|
|
68
68
|
}; };
|
|
69
69
|
export var findWorkflowDefinitionByType = function (definitions, type) { return definitions.find(propEq('type', type)); };
|
|
70
|
+
export var prepareRolesOrTagsValue = function (metadata, value, type) {
|
|
71
|
+
var getLabel = type === EntityAttrTypes.roles.uri ? getRoleLabel(metadata) : identity;
|
|
72
|
+
return value.map(getLabel).join(', ');
|
|
73
|
+
};
|
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { concat, curry, difference, flatten,
|
|
12
|
+
import { concat, curry, difference, flatten, isNil, omit, path, pick, pipe, propEq, propOr, reduce } from 'ramda';
|
|
13
13
|
import { DCRTypes, EntityAttrTypes, generateTempUri, getRoleLabel, isEmptyValue } from '@reltio/mdm-sdk';
|
|
14
14
|
import { getEntityChanges, getRelationChanges } from './attributes';
|
|
15
15
|
var ATTRIBUTE_DELIMITER = '/';
|
|
@@ -53,21 +53,20 @@ var prepareStartOrEndDate = function (_a) {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
var prepareRolesOrTags = function (metadata, change) {
|
|
56
|
-
var _a = change.newValue, newValue = _a === void 0 ? [] : _a, _b = change.oldValue, oldValue = _b === void 0 ? [] : _b
|
|
57
|
-
var getLabel = type === DCRTypes.UPDATE_ROLES ? getRoleLabel(metadata) : identity;
|
|
56
|
+
var _a = change.newValue, newValue = _a === void 0 ? [] : _a, _b = change.oldValue, oldValue = _b === void 0 ? [] : _b;
|
|
58
57
|
var diffNewValue = difference(newValue, oldValue);
|
|
59
58
|
var diffOldValue = difference(oldValue, newValue);
|
|
60
59
|
var items = [];
|
|
61
60
|
if (diffNewValue.length) {
|
|
62
61
|
items.push({
|
|
63
62
|
type: DCRTypes.INSERT_ATTRIBUTE,
|
|
64
|
-
newValue: { value: diffNewValue
|
|
63
|
+
newValue: { value: diffNewValue }
|
|
65
64
|
});
|
|
66
65
|
}
|
|
67
66
|
if (diffOldValue.length) {
|
|
68
67
|
items.push({
|
|
69
68
|
type: DCRTypes.DELETE_ATTRIBUTE,
|
|
70
|
-
oldValue: { value: diffOldValue
|
|
69
|
+
oldValue: { value: diffOldValue }
|
|
71
70
|
});
|
|
72
71
|
}
|
|
73
72
|
return items;
|
|
@@ -59,7 +59,8 @@ describe('mergeChanges tests', function () {
|
|
|
59
59
|
label: 'Identity Type',
|
|
60
60
|
level: 1,
|
|
61
61
|
newValue: changes[entityUri][0].newValue,
|
|
62
|
-
operation: 'ignored'
|
|
62
|
+
operation: 'ignored',
|
|
63
|
+
isReferenceSubAttribute: false
|
|
63
64
|
}
|
|
64
65
|
],
|
|
65
66
|
[]
|
|
@@ -177,7 +178,7 @@ describe('mergeChanges tests', function () {
|
|
|
177
178
|
attributeType: EntityAttrTypes.tags,
|
|
178
179
|
label: EntityAttrTypes.tags.label,
|
|
179
180
|
level: 0,
|
|
180
|
-
newValue: { value: 'tag2' },
|
|
181
|
+
newValue: { value: ['tag2'] },
|
|
181
182
|
operation: DCROperationTypes.DELETED
|
|
182
183
|
},
|
|
183
184
|
{
|
|
@@ -225,7 +226,8 @@ describe('mergeChanges tests', function () {
|
|
|
225
226
|
];
|
|
226
227
|
var mergedRelations = [
|
|
227
228
|
{
|
|
228
|
-
attributeType:
|
|
229
|
+
attributeType: null,
|
|
230
|
+
relationType: metadata.relationTypes[1],
|
|
229
231
|
attributeValue: __assign(__assign({}, relationsInfo[0]), (_a = {}, _a[EntityAttrTypes.startDate.name] = [
|
|
230
232
|
{
|
|
231
233
|
newValue: { value: 1643742000000 },
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DCRChanges, GroupedObjectsInfo } from '@reltio/mdm-sdk';
|
|
2
|
+
import { Diff, Title } from '../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
changes: DCRChanges;
|
|
5
|
+
entityInfo: GroupedObjectsInfo['entity'];
|
|
6
|
+
relationsInfo: GroupedObjectsInfo['relations'];
|
|
7
|
+
};
|
|
8
|
+
export declare const useChangesList: ({ changes, entityInfo, relationsInfo }: Props) => (Diff | Title)[];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import { flatten } from 'ramda';
|
|
3
|
+
import i18n from 'ui-i18n';
|
|
4
|
+
import { mergeChanges } from '../helpers/merge';
|
|
5
|
+
import { useMdmMetadata } from '../../../contexts/MdmModuleContext';
|
|
6
|
+
export var useChangesList = function (_a) {
|
|
7
|
+
var changes = _a.changes, entityInfo = _a.entityInfo, relationsInfo = _a.relationsInfo;
|
|
8
|
+
var metadata = useMdmMetadata();
|
|
9
|
+
var _b = useMemo(function () { return mergeChanges(metadata, changes, entityInfo, relationsInfo); }, [metadata, changes, entityInfo, relationsInfo]), mergedEntityChanges = _b[0], mergedRelationsChanges = _b[1];
|
|
10
|
+
var changesList = useMemo(function () {
|
|
11
|
+
var relationshipTitle = { label: i18n.text('Relationships') };
|
|
12
|
+
return mergedRelationsChanges.length > 0
|
|
13
|
+
? flatten([mergedEntityChanges, relationshipTitle, mergedRelationsChanges])
|
|
14
|
+
: mergedEntityChanges;
|
|
15
|
+
}, [mergedEntityChanges, mergedRelationsChanges]);
|
|
16
|
+
return changesList;
|
|
17
|
+
};
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
+
import { AttributeType, ChangeValue, DCRAttributeValue, DCROperationTypes, DCRRelationInfo, TRelationType } from '@reltio/mdm-sdk';
|
|
1
2
|
export type TaskAction = {
|
|
2
3
|
text: string;
|
|
3
4
|
onClick: (comment: string) => void;
|
|
4
5
|
};
|
|
6
|
+
export type RelationAttributeValue = DCRAttributeValue & DCRRelationInfo;
|
|
7
|
+
export type Diff = {
|
|
8
|
+
level: number;
|
|
9
|
+
label: string;
|
|
10
|
+
attributeType: AttributeType | null;
|
|
11
|
+
relationType?: TRelationType;
|
|
12
|
+
attributeValue?: DCRAttributeValue | RelationAttributeValue;
|
|
13
|
+
newValue?: ChangeValue;
|
|
14
|
+
oldValue?: ChangeValue;
|
|
15
|
+
operation?: DCROperationTypes;
|
|
16
|
+
isReferenceSubAttribute?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type Title = {
|
|
19
|
+
label: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
var SvgSuggestedChanges = function (props) {
|
|
14
|
+
return (React.createElement("svg", __assign({ width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-reltio-id": "SvgSuggestedChanges" }, props),
|
|
15
|
+
React.createElement("g", { clipPath: "url(#clip0_536_106424)" },
|
|
16
|
+
React.createElement("path", { d: "M15.972 32C24.7931 32 31.9441 24.8366 31.9441 16C31.9441 7.16344 24.7931 0 15.972 0C7.15092 0 0 7.16344 0 16C0 24.8366 7.15092 32 15.972 32Z", fill: "#205191" }),
|
|
17
|
+
React.createElement("path", { opacity: "0.87", fillRule: "evenodd", clipRule: "evenodd", d: "M11.0288 23.5683C9.97918 23.5683 9.12695 22.718 9.12695 21.6689V10.2746C9.12695 9.22772 9.97918 8.37744 11.0288 8.37744H13.8193C13.9763 7.9316 14.2679 7.54575 14.6536 7.27339C15.0394 7.00103 15.5002 6.85566 15.9721 6.85744L16.1569 6.8643C16.5959 6.89826 17.0156 7.05924 17.365 7.32766C17.7143 7.59608 17.9784 7.96038 18.1249 8.3763H20.9155C21.965 8.3763 22.8173 9.22772 22.8173 10.2757V21.67C22.8173 22.718 21.965 23.5683 20.9155 23.5683H11.0288ZM21.2965 22.0483V9.89744H19.7746V12.1752H12.1696V9.89744H10.6477V22.0506H21.2965V22.0483ZM18.0941 16.526V18.014H12.1548V16.526H18.0941ZM19.7986 14.2403V15.7283H12.1548V14.2403H19.7986ZM15.9721 8.37744C16.3908 8.37744 16.7331 8.71801 16.7331 9.1363C16.7224 9.33125 16.6376 9.5147 16.496 9.64893C16.3545 9.78316 16.167 9.85797 15.9721 9.85797C15.7772 9.85797 15.5897 9.78316 15.4482 9.64893C15.3066 9.5147 15.2218 9.33125 15.2112 9.1363C15.2112 8.71801 15.5534 8.37744 15.9721 8.37744Z", fill: "white" })),
|
|
18
|
+
React.createElement("defs", null,
|
|
19
|
+
React.createElement("clipPath", { id: "clip0_536_106424" },
|
|
20
|
+
React.createElement("rect", { width: "31.9441", height: "32", fill: "white" })))));
|
|
21
|
+
};
|
|
22
|
+
export default SvgSuggestedChanges;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2200",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@fluentui/react-context-selector": "^9.1.26",
|
|
12
12
|
"@googlemaps/markerclusterer": "^2.5.3",
|
|
13
13
|
"@react-sigma/core": "3.4.0",
|
|
14
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
14
|
+
"@reltio/mdm-sdk": "^1.4.2003",
|
|
15
15
|
"@vis.gl/react-google-maps": "^1.3.0",
|
|
16
16
|
"d3-cloud": "^1.2.5",
|
|
17
17
|
"d3-geo": "^2.0.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"difference" | "arrow" | "fieldName" | "field" | "chip">;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useStyles = void 0;
|
|
4
|
-
var styles_1 = require("@mui/styles");
|
|
5
|
-
exports.useStyles = (0, styles_1.makeStyles)(function (theme) { return ({
|
|
6
|
-
field: {
|
|
7
|
-
fontSize: '12px',
|
|
8
|
-
lineHeight: '20px',
|
|
9
|
-
color: theme.palette.text.primary,
|
|
10
|
-
marginTop: '6px',
|
|
11
|
-
overflow: 'hidden',
|
|
12
|
-
wordBreak: 'break-word'
|
|
13
|
-
},
|
|
14
|
-
fieldName: {
|
|
15
|
-
color: theme.palette.text.secondary,
|
|
16
|
-
marginRight: '8px'
|
|
17
|
-
},
|
|
18
|
-
difference: {
|
|
19
|
-
marginRight: '8px'
|
|
20
|
-
},
|
|
21
|
-
arrow: {
|
|
22
|
-
margin: '0 4px',
|
|
23
|
-
fontSize: '12px',
|
|
24
|
-
color: theme.palette.text.primary
|
|
25
|
-
},
|
|
26
|
-
chip: {
|
|
27
|
-
height: '20px',
|
|
28
|
-
fontSize: '10px',
|
|
29
|
-
fontWeight: 500,
|
|
30
|
-
lineHeight: '16px',
|
|
31
|
-
letterSpacing: 0,
|
|
32
|
-
flexShrink: 0,
|
|
33
|
-
textTransform: 'capitalize',
|
|
34
|
-
color: theme.palette.primary.main,
|
|
35
|
-
borderColor: theme.palette.primary.main,
|
|
36
|
-
'&.edited': {
|
|
37
|
-
color: '#CC7500',
|
|
38
|
-
borderColor: '#CC7500'
|
|
39
|
-
},
|
|
40
|
-
'&.added': {
|
|
41
|
-
color: '#599E0E',
|
|
42
|
-
borderColor: '#599E0E'
|
|
43
|
-
},
|
|
44
|
-
'&.deleted': {
|
|
45
|
-
color: '#CF0E26',
|
|
46
|
-
borderColor: '#CF0E26'
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}); });
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useStyles = void 0;
|
|
4
|
-
var styles_1 = require("@mui/styles");
|
|
5
|
-
exports.useStyles = (0, styles_1.makeStyles)(function (theme) { return ({
|
|
6
|
-
linkContainer: {
|
|
7
|
-
textDecoration: 'none',
|
|
8
|
-
cursor: 'pointer',
|
|
9
|
-
marginLeft: '4px'
|
|
10
|
-
},
|
|
11
|
-
linkLabel: {
|
|
12
|
-
color: theme.palette.primary.main,
|
|
13
|
-
fontSize: '12px',
|
|
14
|
-
letterSpacing: 0,
|
|
15
|
-
lineHeight: '16px',
|
|
16
|
-
whiteSpace: 'break-spaces'
|
|
17
|
-
},
|
|
18
|
-
disabledLink: {
|
|
19
|
-
pointerEvents: 'none',
|
|
20
|
-
cursor: 'default'
|
|
21
|
-
},
|
|
22
|
-
label: {
|
|
23
|
-
color: theme.palette.text.primary
|
|
24
|
-
},
|
|
25
|
-
change: function (_a) {
|
|
26
|
-
var _b = _a.level, level = _b === void 0 ? 0 : _b;
|
|
27
|
-
return ({
|
|
28
|
-
marginLeft: "".concat(level * 16, "px")
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}); });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"container" | "label" | "uri" | "showMoreLink">;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useStyles = void 0;
|
|
4
|
-
var styles_1 = require("@mui/styles");
|
|
5
|
-
exports.useStyles = (0, styles_1.makeStyles)(function (theme) { return ({
|
|
6
|
-
container: {
|
|
7
|
-
boxSizing: 'border-box',
|
|
8
|
-
border: '1px solid rgba(0,0,0,0.03)',
|
|
9
|
-
borderRadius: '3px',
|
|
10
|
-
backgroundColor: 'rgba(0,0,0,0.03)',
|
|
11
|
-
padding: '10px',
|
|
12
|
-
margin: '12px 16px 12px 0'
|
|
13
|
-
},
|
|
14
|
-
uri: {
|
|
15
|
-
color: theme.palette.primary.main,
|
|
16
|
-
textDecoration: 'none',
|
|
17
|
-
cursor: 'pointer'
|
|
18
|
-
},
|
|
19
|
-
label: {
|
|
20
|
-
fontSize: '12px',
|
|
21
|
-
letterSpacing: 0,
|
|
22
|
-
lineHeight: '16px',
|
|
23
|
-
whiteSpace: 'break-spaces'
|
|
24
|
-
},
|
|
25
|
-
showMoreLink: {
|
|
26
|
-
marginTop: '8px'
|
|
27
|
-
}
|
|
28
|
-
}); });
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AttributeType, ChangeValue, DCRAttributeValue, DCROperationTypes, DCRRelationInfo } from '@reltio/mdm-sdk';
|
|
2
|
-
export type RelationAttributeValue = DCRAttributeValue & DCRRelationInfo;
|
|
3
|
-
export type Diff = {
|
|
4
|
-
level: number;
|
|
5
|
-
label: string;
|
|
6
|
-
attributeType: AttributeType;
|
|
7
|
-
attributeValue?: DCRAttributeValue | RelationAttributeValue;
|
|
8
|
-
newValue?: ChangeValue;
|
|
9
|
-
oldValue?: ChangeValue;
|
|
10
|
-
operation?: DCROperationTypes;
|
|
11
|
-
};
|
|
12
|
-
export type Title = {
|
|
13
|
-
label: string;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"text" | "icon" | "date" | "info" | "comment" | "avatar" | "firstLine" | "author">;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useStyles = void 0;
|
|
4
|
-
var styles_1 = require("@mui/styles");
|
|
5
|
-
exports.useStyles = (0, styles_1.makeStyles)({
|
|
6
|
-
comment: {
|
|
7
|
-
display: 'flex',
|
|
8
|
-
flexDirection: 'row',
|
|
9
|
-
flex: 1,
|
|
10
|
-
marginLeft: '6px'
|
|
11
|
-
},
|
|
12
|
-
avatar: {
|
|
13
|
-
height: '24px',
|
|
14
|
-
width: '24px',
|
|
15
|
-
margin: '3px 13px 0 0'
|
|
16
|
-
},
|
|
17
|
-
icon: {
|
|
18
|
-
fill: '#537280',
|
|
19
|
-
backgroundColor: '#EAEDEE'
|
|
20
|
-
},
|
|
21
|
-
firstLine: {
|
|
22
|
-
display: 'flex',
|
|
23
|
-
flexDirection: 'row'
|
|
24
|
-
},
|
|
25
|
-
info: {
|
|
26
|
-
flex: 1
|
|
27
|
-
},
|
|
28
|
-
author: {
|
|
29
|
-
flex: 1,
|
|
30
|
-
fontWeight: 500,
|
|
31
|
-
color: 'rgba(0,0,0,0.87)',
|
|
32
|
-
fontSize: '13px',
|
|
33
|
-
lineHeight: '15px'
|
|
34
|
-
},
|
|
35
|
-
date: {
|
|
36
|
-
color: 'rgba(0, 0, 0, 0.54)',
|
|
37
|
-
fontSize: '11px',
|
|
38
|
-
marginRight: '17px',
|
|
39
|
-
lineHeight: '15px'
|
|
40
|
-
},
|
|
41
|
-
text: {
|
|
42
|
-
color: 'rgba(0, 0, 0, 0.6)',
|
|
43
|
-
fontSize: '13px',
|
|
44
|
-
wordWrap: 'break-word',
|
|
45
|
-
wordBreak: 'break-all',
|
|
46
|
-
paddingRight: '10px',
|
|
47
|
-
whiteSpace: 'pre-wrap'
|
|
48
|
-
}
|
|
49
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"difference" | "arrow" | "fieldName" | "field" | "chip">;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { makeStyles } from '@mui/styles';
|
|
2
|
-
export var useStyles = makeStyles(function (theme) { return ({
|
|
3
|
-
field: {
|
|
4
|
-
fontSize: '12px',
|
|
5
|
-
lineHeight: '20px',
|
|
6
|
-
color: theme.palette.text.primary,
|
|
7
|
-
marginTop: '6px',
|
|
8
|
-
overflow: 'hidden',
|
|
9
|
-
wordBreak: 'break-word'
|
|
10
|
-
},
|
|
11
|
-
fieldName: {
|
|
12
|
-
color: theme.palette.text.secondary,
|
|
13
|
-
marginRight: '8px'
|
|
14
|
-
},
|
|
15
|
-
difference: {
|
|
16
|
-
marginRight: '8px'
|
|
17
|
-
},
|
|
18
|
-
arrow: {
|
|
19
|
-
margin: '0 4px',
|
|
20
|
-
fontSize: '12px',
|
|
21
|
-
color: theme.palette.text.primary
|
|
22
|
-
},
|
|
23
|
-
chip: {
|
|
24
|
-
height: '20px',
|
|
25
|
-
fontSize: '10px',
|
|
26
|
-
fontWeight: 500,
|
|
27
|
-
lineHeight: '16px',
|
|
28
|
-
letterSpacing: 0,
|
|
29
|
-
flexShrink: 0,
|
|
30
|
-
textTransform: 'capitalize',
|
|
31
|
-
color: theme.palette.primary.main,
|
|
32
|
-
borderColor: theme.palette.primary.main,
|
|
33
|
-
'&.edited': {
|
|
34
|
-
color: '#CC7500',
|
|
35
|
-
borderColor: '#CC7500'
|
|
36
|
-
},
|
|
37
|
-
'&.added': {
|
|
38
|
-
color: '#599E0E',
|
|
39
|
-
borderColor: '#599E0E'
|
|
40
|
-
},
|
|
41
|
-
'&.deleted': {
|
|
42
|
-
color: '#CF0E26',
|
|
43
|
-
borderColor: '#CF0E26'
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}); });
|