@reltio/components 1.4.2243 → 1.4.2244
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/ActivenessDateControl/ActivenessDateControl.d.ts +9 -0
- package/ActivenessDateControl/ActivenessDateControl.js +11 -0
- package/ActivenessDateControl/index.d.ts +1 -0
- package/ActivenessDateControl/index.js +1 -0
- package/EntitySelector/EntitySelector.d.ts +2 -1
- package/EntitySelector/EntitySelector.js +2 -2
- package/EntitySelector/index.d.ts +1 -0
- package/MoreAttributesButton/MoreAttributesButton.d.ts +3 -2
- package/MoreAttributesButton/MoreAttributesButton.js +8 -8
- package/MoreAttributesButton/useMoreAttributesItems.d.ts +4 -4
- package/cjs/ActivenessDateControl/ActivenessDateControl.d.ts +9 -0
- package/cjs/ActivenessDateControl/ActivenessDateControl.js +18 -0
- package/cjs/ActivenessDateControl/index.d.ts +1 -0
- package/cjs/ActivenessDateControl/index.js +5 -0
- package/cjs/EntitySelector/EntitySelector.d.ts +2 -1
- package/cjs/EntitySelector/EntitySelector.js +2 -2
- package/cjs/EntitySelector/index.d.ts +1 -0
- package/cjs/MoreAttributesButton/MoreAttributesButton.d.ts +3 -2
- package/cjs/MoreAttributesButton/MoreAttributesButton.js +8 -8
- package/cjs/MoreAttributesButton/useMoreAttributesItems.d.ts +4 -4
- package/cjs/features/activity-log/ActivityLog/ActivityLog.test.js +28 -0
- package/cjs/features/activity-log/ActivityLog/components/ActivityItem/ActivityItem.js +22 -11
- package/cjs/features/activity-log/ActivityLog/components/ActivityItem/ActivityItem.module.css.js +9 -0
- package/cjs/features/activity-log/ActivityLog/constants.d.ts +17 -0
- package/cjs/features/activity-log/ActivityLog/constants.js +20 -0
- package/cjs/features/workflow/ChangeRequestEditor/ChangeRequestEditor.d.ts +1 -1
- package/cjs/features/workflow/ChangeRequestEditor/ChangeRequestEditor.js +20 -9
- package/cjs/features/workflow/ChangeRequestEditor/components/AddSameAttributeButton/AddSameAttributeButton.d.ts +7 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/AddSameAttributeButton/AddSameAttributeButton.js +67 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/ChangeItemLabel.js +3 -1
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/ChangeItemLabel.module.css.js +2 -2
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.d.ts +2 -2
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.js +25 -6
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.module.css.js +2 -2
- package/cjs/features/workflow/ChangeRequestEditor/components/DCRImageEditor/DCRImageEditor.d.ts +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/DCRImageEditor/DCRImageEditor.js +79 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/DCRImageEditor/index.d.ts +1 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/DCRImageEditor/index.js +5 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditorFactory/DCRValueEditorFactory.d.ts +2 -2
- package/cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditorFactory/DCRValueEditorFactory.js +2 -2
- package/cjs/features/workflow/ChangeRequestEditor/components/EditorStatusChip/EditorStatusChip.d.ts +11 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EditorStatusChip/EditorStatusChip.js +41 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EditorStatusChip/EditorStatusChip.module.css.js +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EditorStatusChip/index.d.ts +1 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EditorStatusChip/index.js +6 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.d.ts +1 -1
- package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.js +134 -5
- package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/SkeletonEntityChangesGroupLoader.js +2 -2
- package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemEditor}/ChangeItemEditor.d.ts +1 -1
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/ChangeItemEditor/ChangeItemEditor.js +110 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/ChangeItemEditor/ChangeItemEditor.module.css.js +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemEditor}/SkeletonChangeItemEditorLoader.js +6 -5
- package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemEditor}/index.d.ts +0 -1
- package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemEditor}/index.js +1 -3
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/ChangeItemEditorRecentlyAdded/ChangeItemEditorRecentlyAdded.d.ts +8 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/ChangeItemEditorRecentlyAdded/ChangeItemEditorRecentlyAdded.js +89 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/ChangeItemEditorRecentlyAdded/index.d.ts +1 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/ChangeItemEditorRecentlyAdded/index.js +5 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemOldValue}/ChangeItemOldValue.d.ts +1 -1
- package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemOldValue}/ChangeItemOldValue.js +12 -11
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/ChangeItemOldValue/ChangeItemOldValue.module.css.js +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/ChangeItemOldValue/index.d.ts +1 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/ChangeItemOldValue/index.js +5 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/MoreAttributesEditor/MoreAttributesEditor.d.ts +11 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/MoreAttributesEditor/MoreAttributesEditor.js +34 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/MoreAttributesEditor/MoreAttributesEditor.module.css.js +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/MoreAttributesEditor/index.d.ts +1 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/MoreAttributesEditor/index.js +5 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/editors.module.css.js +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/index.d.ts +4 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/editors/index.js +12 -0
- package/cjs/features/workflow/ChangeRequestEditor/helpers/addedAttributes.d.ts +11 -0
- package/cjs/features/workflow/ChangeRequestEditor/helpers/addedAttributes.js +74 -0
- package/cjs/features/workflow/ChangeRequestEditor/helpers/changesList.d.ts +2 -0
- package/cjs/features/workflow/ChangeRequestEditor/helpers/changesList.js +157 -0
- package/cjs/features/workflow/ChangeRequestEditor/helpers/changesList.test.d.ts +1 -0
- package/cjs/features/workflow/ChangeRequestEditor/helpers/changesList.test.js +203 -0
- package/cjs/features/workflow/ChangeRequestEditor/helpers/helpers.d.ts +6 -3
- package/cjs/features/workflow/ChangeRequestEditor/helpers/helpers.js +22 -3
- package/cjs/features/workflow/ChangeRequestEditor/helpers/mergeAddedAttributesWithDCRChanges.d.ts +3 -0
- package/cjs/features/workflow/ChangeRequestEditor/helpers/mergeAddedAttributesWithDCRChanges.js +190 -0
- package/cjs/features/workflow/ChangeRequestEditor/helpers/mergeAddedAttributesWithDCRChanges.test.d.ts +1 -0
- package/cjs/features/workflow/ChangeRequestEditor/helpers/mergeAddedAttributesWithDCRChanges.test.js +768 -0
- package/cjs/features/workflow/ChangeRequestEditor/hooks/useChangeRequestEditor.d.ts +4 -3
- package/cjs/features/workflow/ChangeRequestEditor/hooks/useChangeRequestEditor.js +9 -1
- package/cjs/features/workflow/ChangeRequestEditor/hooks/useNewAttributesEditor.d.ts +18 -0
- package/cjs/features/workflow/ChangeRequestEditor/hooks/useNewAttributesEditor.js +65 -0
- package/cjs/features/workflow/WorkflowTaskCard/components/DataChangeRequestTaskCard/DataChangeRequestTaskCard.js +7 -3
- package/cjs/features/workflow/contexts/AddedAttributesContext/index.d.ts +39 -0
- package/cjs/features/workflow/contexts/AddedAttributesContext/index.js +152 -0
- package/cjs/features/workflow/contexts/ChangeRequestEditorContext/index.d.ts +3 -2
- package/cjs/features/workflow/contexts/ChangeRequestEditorContext/index.js +47 -7
- package/cjs/features/workflow/contexts/ScrollToAddedAttributeContext/index.d.ts +11 -0
- package/cjs/features/workflow/contexts/ScrollToAddedAttributeContext/index.js +78 -0
- package/cjs/features/workflow/helpers/attributes.js +16 -13
- package/cjs/features/workflow/helpers/attributes.test.js +6 -3
- package/cjs/features/workflow/helpers/dcr.d.ts +6 -1
- package/cjs/features/workflow/helpers/dcr.js +113 -18
- package/cjs/features/workflow/helpers/dcr.test.js +122 -0
- package/cjs/features/workflow/helpers/merge.d.ts +3 -0
- package/cjs/features/workflow/helpers/merge.js +32 -20
- package/cjs/features/workflow/helpers/merge.test.js +2 -1
- package/cjs/features/workflow/helpers/moreAttributesScope.d.ts +4 -0
- package/cjs/features/workflow/helpers/moreAttributesScope.js +20 -0
- package/cjs/features/workflow/helpers/validation.js +31 -6
- package/cjs/features/workflow/hooks/useApplyDcrChanges.d.ts +2 -2
- package/cjs/features/workflow/hooks/useApplyDcrChanges.js +80 -63
- package/cjs/features/workflow/types.d.ts +12 -2
- package/features/activity-log/ActivityLog/ActivityLog.test.js +28 -0
- package/features/activity-log/ActivityLog/components/ActivityItem/ActivityItem.js +15 -4
- package/features/activity-log/ActivityLog/components/ActivityItem/ActivityItem.module.css.js +9 -0
- package/features/activity-log/ActivityLog/constants.d.ts +17 -0
- package/features/activity-log/ActivityLog/constants.js +17 -0
- package/features/workflow/ChangeRequestEditor/ChangeRequestEditor.d.ts +1 -1
- package/features/workflow/ChangeRequestEditor/ChangeRequestEditor.js +20 -9
- package/features/workflow/ChangeRequestEditor/components/AddSameAttributeButton/AddSameAttributeButton.d.ts +7 -0
- package/features/workflow/ChangeRequestEditor/components/AddSameAttributeButton/AddSameAttributeButton.js +37 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/ChangeItemLabel.js +3 -1
- package/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/ChangeItemLabel.module.css.js +2 -2
- package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.d.ts +2 -2
- package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.js +26 -7
- package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.module.css.js +2 -2
- package/features/workflow/ChangeRequestEditor/components/DCRImageEditor/DCRImageEditor.d.ts +9 -0
- package/features/workflow/ChangeRequestEditor/components/DCRImageEditor/DCRImageEditor.js +49 -0
- package/features/workflow/ChangeRequestEditor/components/DCRImageEditor/index.d.ts +1 -0
- package/features/workflow/ChangeRequestEditor/components/DCRImageEditor/index.js +1 -0
- package/features/workflow/ChangeRequestEditor/components/DCRValueEditorFactory/DCRValueEditorFactory.d.ts +2 -2
- package/features/workflow/ChangeRequestEditor/components/DCRValueEditorFactory/DCRValueEditorFactory.js +2 -2
- package/features/workflow/ChangeRequestEditor/components/EditorStatusChip/EditorStatusChip.d.ts +11 -0
- package/features/workflow/ChangeRequestEditor/components/EditorStatusChip/EditorStatusChip.js +34 -0
- package/features/workflow/ChangeRequestEditor/components/EditorStatusChip/EditorStatusChip.module.css.js +9 -0
- package/features/workflow/ChangeRequestEditor/components/EditorStatusChip/index.d.ts +1 -0
- package/features/workflow/ChangeRequestEditor/components/EditorStatusChip/index.js +1 -0
- package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.d.ts +1 -1
- package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.js +112 -6
- package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/SkeletonEntityChangesGroupLoader.js +1 -1
- package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemEditor}/ChangeItemEditor.d.ts +1 -1
- package/features/workflow/ChangeRequestEditor/components/editors/ChangeItemEditor/ChangeItemEditor.js +80 -0
- package/features/workflow/ChangeRequestEditor/components/editors/ChangeItemEditor/ChangeItemEditor.module.css.js +9 -0
- package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemEditor}/SkeletonChangeItemEditorLoader.js +6 -5
- package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemEditor}/index.d.ts +0 -1
- package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemEditor}/index.js +0 -1
- package/features/workflow/ChangeRequestEditor/components/editors/ChangeItemEditorRecentlyAdded/ChangeItemEditorRecentlyAdded.d.ts +8 -0
- package/features/workflow/ChangeRequestEditor/components/editors/ChangeItemEditorRecentlyAdded/ChangeItemEditorRecentlyAdded.js +59 -0
- package/features/workflow/ChangeRequestEditor/components/editors/ChangeItemEditorRecentlyAdded/index.d.ts +1 -0
- package/features/workflow/ChangeRequestEditor/components/editors/ChangeItemEditorRecentlyAdded/index.js +1 -0
- package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemOldValue}/ChangeItemOldValue.d.ts +1 -1
- package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemOldValue}/ChangeItemOldValue.js +10 -9
- package/features/workflow/ChangeRequestEditor/components/editors/ChangeItemOldValue/ChangeItemOldValue.module.css.js +9 -0
- package/features/workflow/ChangeRequestEditor/components/editors/ChangeItemOldValue/index.d.ts +1 -0
- package/features/workflow/ChangeRequestEditor/components/editors/ChangeItemOldValue/index.js +1 -0
- package/features/workflow/ChangeRequestEditor/components/editors/MoreAttributesEditor/MoreAttributesEditor.d.ts +11 -0
- package/features/workflow/ChangeRequestEditor/components/editors/MoreAttributesEditor/MoreAttributesEditor.js +27 -0
- package/features/workflow/ChangeRequestEditor/components/editors/MoreAttributesEditor/MoreAttributesEditor.module.css.js +9 -0
- package/features/workflow/ChangeRequestEditor/components/editors/MoreAttributesEditor/index.d.ts +1 -0
- package/features/workflow/ChangeRequestEditor/components/editors/MoreAttributesEditor/index.js +1 -0
- package/features/workflow/ChangeRequestEditor/components/editors/editors.module.css.js +9 -0
- package/features/workflow/ChangeRequestEditor/components/editors/index.d.ts +4 -0
- package/features/workflow/ChangeRequestEditor/components/editors/index.js +4 -0
- package/features/workflow/ChangeRequestEditor/helpers/addedAttributes.d.ts +11 -0
- package/features/workflow/ChangeRequestEditor/helpers/addedAttributes.js +62 -0
- package/features/workflow/ChangeRequestEditor/helpers/changesList.d.ts +2 -0
- package/features/workflow/ChangeRequestEditor/helpers/changesList.js +153 -0
- package/features/workflow/ChangeRequestEditor/helpers/changesList.test.d.ts +1 -0
- package/features/workflow/ChangeRequestEditor/helpers/changesList.test.js +201 -0
- package/features/workflow/ChangeRequestEditor/helpers/helpers.d.ts +6 -3
- package/features/workflow/ChangeRequestEditor/helpers/helpers.js +19 -3
- package/features/workflow/ChangeRequestEditor/helpers/mergeAddedAttributesWithDCRChanges.d.ts +3 -0
- package/features/workflow/ChangeRequestEditor/helpers/mergeAddedAttributesWithDCRChanges.js +186 -0
- package/features/workflow/ChangeRequestEditor/helpers/mergeAddedAttributesWithDCRChanges.test.d.ts +1 -0
- package/features/workflow/ChangeRequestEditor/helpers/mergeAddedAttributesWithDCRChanges.test.js +766 -0
- package/features/workflow/ChangeRequestEditor/hooks/useChangeRequestEditor.d.ts +4 -3
- package/features/workflow/ChangeRequestEditor/hooks/useChangeRequestEditor.js +9 -1
- package/features/workflow/ChangeRequestEditor/hooks/useNewAttributesEditor.d.ts +18 -0
- package/features/workflow/ChangeRequestEditor/hooks/useNewAttributesEditor.js +61 -0
- package/features/workflow/WorkflowTaskCard/components/DataChangeRequestTaskCard/DataChangeRequestTaskCard.js +7 -3
- package/features/workflow/contexts/AddedAttributesContext/index.d.ts +39 -0
- package/features/workflow/contexts/AddedAttributesContext/index.js +125 -0
- package/features/workflow/contexts/ChangeRequestEditorContext/index.d.ts +3 -2
- package/features/workflow/contexts/ChangeRequestEditorContext/index.js +47 -7
- package/features/workflow/contexts/ScrollToAddedAttributeContext/index.d.ts +11 -0
- package/features/workflow/contexts/ScrollToAddedAttributeContext/index.js +51 -0
- package/features/workflow/helpers/attributes.js +16 -13
- package/features/workflow/helpers/attributes.test.js +6 -3
- package/features/workflow/helpers/dcr.d.ts +6 -1
- package/features/workflow/helpers/dcr.js +112 -18
- package/features/workflow/helpers/dcr.test.js +123 -1
- package/features/workflow/helpers/merge.d.ts +3 -0
- package/features/workflow/helpers/merge.js +30 -19
- package/features/workflow/helpers/merge.test.js +2 -1
- package/features/workflow/helpers/moreAttributesScope.d.ts +4 -0
- package/features/workflow/helpers/moreAttributesScope.js +14 -0
- package/features/workflow/helpers/validation.js +31 -6
- package/features/workflow/hooks/useApplyDcrChanges.d.ts +2 -2
- package/features/workflow/hooks/useApplyDcrChanges.js +83 -66
- package/features/workflow/types.d.ts +12 -2
- package/package.json +2 -2
- package/cjs/features/activity-log/ActivityLog/components/ActivityItem/styles.d.ts +0 -1
- package/cjs/features/activity-log/ActivityLog/components/ActivityItem/styles.js +0 -57
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.js +0 -95
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.module.css.js +0 -9
- package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.d.ts +0 -7
- package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.js +0 -21
- package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.module.css.js +0 -9
- package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/index.d.ts +0 -1
- package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/index.js +0 -5
- package/features/activity-log/ActivityLog/components/ActivityItem/styles.d.ts +0 -1
- package/features/activity-log/ActivityLog/components/ActivityItem/styles.js +0 -54
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.js +0 -65
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.module.css.js +0 -9
- package/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.d.ts +0 -7
- package/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.js +0 -14
- package/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.module.css.js +0 -9
- package/features/workflow/ChangeRequestEditor/components/StatusChips/index.d.ts +0 -1
- package/features/workflow/ChangeRequestEditor/components/StatusChips/index.js +0 -1
- /package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemEditor}/SkeletonChangeItemEditorLoader.d.ts +0 -0
- /package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → editors/ChangeItemEditor}/SkeletonChangeItemEditorLoader.d.ts +0 -0
|
@@ -1,3 +1,14 @@
|
|
|
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
|
+
};
|
|
1
12
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
13
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
14
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -34,27 +45,53 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
34
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
46
|
}
|
|
36
47
|
};
|
|
37
|
-
import { useCallback } from 'react';
|
|
48
|
+
import { useCallback, useMemo } from 'react';
|
|
38
49
|
import { useContextSelector } from '@fluentui/react-context-selector';
|
|
39
50
|
import { deleteChangeRequestItem, updateChangeRequest, promiseAllSettled, entityCumulativeUpdate, updateRelationWithDiff } from '@reltio/mdm-sdk';
|
|
40
51
|
import { isEmpty } from 'ramda';
|
|
41
|
-
import { useMdmMetadata } from '../../../contexts/MdmModuleContext';
|
|
52
|
+
import { useMdmEntity, useMdmMetadata } from '../../../contexts/MdmModuleContext';
|
|
42
53
|
import { ChangeRequestEditorContext } from '../contexts/ChangeRequestEditorContext';
|
|
43
|
-
import {
|
|
54
|
+
import { AddedAttributesContext } from '../contexts/AddedAttributesContext';
|
|
55
|
+
import { mergeAddedAttributesWithDCRChanges } from '../ChangeRequestEditor/helpers/mergeAddedAttributesWithDCRChanges';
|
|
56
|
+
import { buildDCRSavePlan, mergeExistingRolesAndTags } from '../helpers/dcr';
|
|
44
57
|
import { useDCRValidation } from './useDCRValidation';
|
|
45
58
|
var withChangeRequestId = function (dcrUri) { return function (url) {
|
|
46
59
|
return url + (url.includes('?') ? '&' : '?') + "changeRequestId=".concat(encodeURIComponent(dcrUri.split('/')[1]));
|
|
47
60
|
}; };
|
|
61
|
+
var executeBatch = function (promises, errorMessage) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
var results, failures;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
switch (_a.label) {
|
|
65
|
+
case 0:
|
|
66
|
+
if (promises.length === 0)
|
|
67
|
+
return [2 /*return*/, null];
|
|
68
|
+
return [4 /*yield*/, promiseAllSettled(promises)];
|
|
69
|
+
case 1:
|
|
70
|
+
results = _a.sent();
|
|
71
|
+
failures = results.filter(function (result) { return result.status === 'rejected'; });
|
|
72
|
+
if (failures.length) {
|
|
73
|
+
return [2 /*return*/, {
|
|
74
|
+
proceed: false,
|
|
75
|
+
error: new Error("".concat(errorMessage, ": ").concat(failures.map(function (r) { return r.reason; }).join(', ')))
|
|
76
|
+
}];
|
|
77
|
+
}
|
|
78
|
+
return [2 /*return*/, null];
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}); };
|
|
48
82
|
export var useApplyDcrChanges = function (dcr) {
|
|
49
83
|
var getLinesByChangeId = useContextSelector(ChangeRequestEditorContext, function (context) { return context.getLinesByChangeId; });
|
|
84
|
+
var addedAttributes = useContextSelector(AddedAttributesContext, function (ctx) { return ctx.getAddedAttributes(); });
|
|
50
85
|
var metadata = useMdmMetadata();
|
|
51
|
-
var
|
|
86
|
+
var entity = useMdmEntity();
|
|
87
|
+
var changes = useMemo(function () { var _a; return mergeAddedAttributesWithDCRChanges((_a = dcr === null || dcr === void 0 ? void 0 : dcr.changes) !== null && _a !== void 0 ? _a : {}, addedAttributes, false); }, [dcr === null || dcr === void 0 ? void 0 : dcr.changes, addedAttributes]);
|
|
88
|
+
var getErrors = useDCRValidation(__assign(__assign({}, dcr), { changes: changes }));
|
|
52
89
|
var applyDcrChanges = useCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
53
|
-
var errors, _a, rejectedChangeIds, updatedChanges, deleteEntityAttributes, deleteRelationAttributes,
|
|
90
|
+
var errors, _a, rejectedChangeIds, updatedChanges, deleteEntityAttributes, deleteRelationAttributes, insertEntityAttributes, insertRelationAttributes, uriPreprocessor_1, deleteChangesError, error_1, deleteEntityAttrsError, insertEntityAttrsError, deleteRelationAttrsError, insertRelationAttrsError;
|
|
54
91
|
return __generator(this, function (_b) {
|
|
55
92
|
switch (_b.label) {
|
|
56
93
|
case 0:
|
|
57
|
-
if (!(dcr === null || dcr === void 0 ? void 0 : dcr.
|
|
94
|
+
if (!(dcr === null || dcr === void 0 ? void 0 : dcr.uri)) return [3 /*break*/, 11];
|
|
58
95
|
return [4 /*yield*/, getErrors()];
|
|
59
96
|
case 1:
|
|
60
97
|
errors = _b.sent();
|
|
@@ -63,89 +100,69 @@ export var useApplyDcrChanges = function (dcr) {
|
|
|
63
100
|
proceed: false
|
|
64
101
|
}];
|
|
65
102
|
}
|
|
66
|
-
_a = buildDCRSavePlan(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
deleteRelationAttributesResults = [];
|
|
70
|
-
if (!(rejectedChangeIds.length > 0)) return [3 /*break*/, 3];
|
|
71
|
-
return [4 /*yield*/, promiseAllSettled(rejectedChangeIds.map(function (changeId) {
|
|
72
|
-
return deleteChangeRequestItem({ dcrUri: dcr.uri, changeItemId: changeId });
|
|
73
|
-
}))];
|
|
103
|
+
_a = buildDCRSavePlan(changes, getLinesByChangeId, metadata), rejectedChangeIds = _a.rejectedChangeIds, updatedChanges = _a.updatedChanges, deleteEntityAttributes = _a.deleteEntityAttributes, deleteRelationAttributes = _a.deleteRelationAttributes, insertEntityAttributes = _a.insertEntityAttributes, insertRelationAttributes = _a.insertRelationAttributes;
|
|
104
|
+
uriPreprocessor_1 = withChangeRequestId(dcr.uri);
|
|
105
|
+
return [4 /*yield*/, executeBatch(rejectedChangeIds.map(function (changeId) { return deleteChangeRequestItem({ dcrUri: dcr.uri, changeItemId: changeId }); }), 'Failed to delete DCR change(s)')];
|
|
74
106
|
case 2:
|
|
75
|
-
|
|
107
|
+
deleteChangesError = _b.sent();
|
|
108
|
+
if (deleteChangesError)
|
|
109
|
+
return [2 /*return*/, deleteChangesError];
|
|
110
|
+
if (!!isEmpty(updatedChanges)) return [3 /*break*/, 6];
|
|
76
111
|
_b.label = 3;
|
|
77
112
|
case 3:
|
|
78
|
-
|
|
79
|
-
if (deleteChangeFailures.length) {
|
|
80
|
-
return [2 /*return*/, {
|
|
81
|
-
proceed: false,
|
|
82
|
-
error: new Error("Failed to delete DCR change(s): ".concat(deleteChangeFailures.map(function (result) { return result.reason; }).join(', ')))
|
|
83
|
-
}];
|
|
84
|
-
}
|
|
85
|
-
if (!!isEmpty(updatedChanges)) return [3 /*break*/, 7];
|
|
86
|
-
_b.label = 4;
|
|
87
|
-
case 4:
|
|
88
|
-
_b.trys.push([4, 6, , 7]);
|
|
113
|
+
_b.trys.push([3, 5, , 6]);
|
|
89
114
|
return [4 /*yield*/, updateChangeRequest({ dcrUri: dcr.uri, payload: updatedChanges })];
|
|
90
|
-
case
|
|
115
|
+
case 4:
|
|
91
116
|
_b.sent();
|
|
92
|
-
return [3 /*break*/,
|
|
93
|
-
case
|
|
117
|
+
return [3 /*break*/, 6];
|
|
118
|
+
case 5:
|
|
94
119
|
error_1 = _b.sent();
|
|
95
120
|
return [2 /*return*/, {
|
|
96
121
|
proceed: false,
|
|
97
122
|
error: error_1
|
|
98
123
|
}];
|
|
124
|
+
case 6: return [4 /*yield*/, executeBatch(Object.entries(deleteEntityAttributes).map(function (_a) {
|
|
125
|
+
var entityUri = _a[0], diff = _a[1];
|
|
126
|
+
return entityCumulativeUpdate({ uri: entityUri, diff: diff, uriPreprocessor: uriPreprocessor_1 });
|
|
127
|
+
}), 'Failed to delete entity attributes')];
|
|
99
128
|
case 7:
|
|
100
|
-
|
|
101
|
-
|
|
129
|
+
deleteEntityAttrsError = _b.sent();
|
|
130
|
+
if (deleteEntityAttrsError)
|
|
131
|
+
return [2 /*return*/, deleteEntityAttrsError];
|
|
132
|
+
return [4 /*yield*/, executeBatch(Object.entries(insertEntityAttributes).map(function (_a) {
|
|
102
133
|
var entityUri = _a[0], diff = _a[1];
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
uriPreprocessor: withChangeRequestId(dcr.uri)
|
|
107
|
-
});
|
|
108
|
-
}))];
|
|
134
|
+
var mergedDiff = entityUri === (entity === null || entity === void 0 ? void 0 : entity.uri) ? mergeExistingRolesAndTags(diff, entity) : diff;
|
|
135
|
+
return entityCumulativeUpdate({ uri: entityUri, diff: mergedDiff, uriPreprocessor: uriPreprocessor_1 });
|
|
136
|
+
}), 'Failed to insert entity attributes')];
|
|
109
137
|
case 8:
|
|
110
|
-
|
|
111
|
-
|
|
138
|
+
insertEntityAttrsError = _b.sent();
|
|
139
|
+
if (insertEntityAttrsError)
|
|
140
|
+
return [2 /*return*/, insertEntityAttrsError];
|
|
141
|
+
return [4 /*yield*/, executeBatch(Object.entries(deleteRelationAttributes).map(function (_a) {
|
|
142
|
+
var relationUri = _a[0], diff = _a[1];
|
|
143
|
+
return updateRelationWithDiff({ uri: relationUri, diff: diff, uriPreprocessor: uriPreprocessor_1 });
|
|
144
|
+
}), 'Failed to delete relation attributes')];
|
|
112
145
|
case 9:
|
|
113
|
-
|
|
114
|
-
if (
|
|
115
|
-
return [2 /*return*/,
|
|
116
|
-
|
|
117
|
-
error: new Error("Failed to delete entity attributes: ".concat(deleteEntityAttributesFailures.map(function (result) { return result.reason; }).join(', ')))
|
|
118
|
-
}];
|
|
119
|
-
}
|
|
120
|
-
if (!!isEmpty(deleteRelationAttributes)) return [3 /*break*/, 11];
|
|
121
|
-
return [4 /*yield*/, promiseAllSettled(Object.entries(deleteRelationAttributes).map(function (_a) {
|
|
146
|
+
deleteRelationAttrsError = _b.sent();
|
|
147
|
+
if (deleteRelationAttrsError)
|
|
148
|
+
return [2 /*return*/, deleteRelationAttrsError];
|
|
149
|
+
return [4 /*yield*/, executeBatch(Object.entries(insertRelationAttributes).map(function (_a) {
|
|
122
150
|
var relationUri = _a[0], diff = _a[1];
|
|
123
|
-
return updateRelationWithDiff({
|
|
124
|
-
|
|
125
|
-
diff: diff,
|
|
126
|
-
uriPreprocessor: withChangeRequestId(dcr.uri)
|
|
127
|
-
});
|
|
128
|
-
}))];
|
|
151
|
+
return updateRelationWithDiff({ uri: relationUri, diff: diff, uriPreprocessor: uriPreprocessor_1 });
|
|
152
|
+
}), 'Failed to insert relation attributes')];
|
|
129
153
|
case 10:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
deleteRelationAttributesFailures = deleteRelationAttributesResults.filter(function (result) { return result.status === 'rejected'; });
|
|
134
|
-
if (deleteRelationAttributesFailures.length) {
|
|
135
|
-
return [2 /*return*/, {
|
|
136
|
-
proceed: false,
|
|
137
|
-
error: new Error("Failed to delete relation attributes: ".concat(deleteRelationAttributesFailures.map(function (result) { return result.reason; }).join(', ')))
|
|
138
|
-
}];
|
|
139
|
-
}
|
|
154
|
+
insertRelationAttrsError = _b.sent();
|
|
155
|
+
if (insertRelationAttrsError)
|
|
156
|
+
return [2 /*return*/, insertRelationAttrsError];
|
|
140
157
|
return [2 /*return*/, {
|
|
141
158
|
proceed: true
|
|
142
159
|
}];
|
|
143
|
-
case
|
|
160
|
+
case 11: return [2 /*return*/, {
|
|
144
161
|
proceed: false,
|
|
145
162
|
error: new Error('No changes to apply')
|
|
146
163
|
}];
|
|
147
164
|
}
|
|
148
165
|
});
|
|
149
|
-
}); }, [dcr, getLinesByChangeId, metadata, getErrors]);
|
|
166
|
+
}); }, [dcr === null || dcr === void 0 ? void 0 : dcr.uri, getLinesByChangeId, metadata, getErrors, changes, entity]);
|
|
150
167
|
return applyDcrChanges;
|
|
151
168
|
};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { AttributeType, DCRAttributeValue, DCROperationTypes, DCRRelationInfo, EnrichedChangeValue, TRelationType, ChangeValue, SimpleAttributeValue, PrimitiveValue } from '@reltio/mdm-sdk';
|
|
1
|
+
import type { AttributeType, DCRAttributeValue, DCROperationTypes, DCRRelationInfo, EnrichedChangeValue, TRelationType, ChangeValue, SimpleAttributeValue, PrimitiveValue, RecordImageAttributeValue } from '@reltio/mdm-sdk';
|
|
2
2
|
export type TaskAction = {
|
|
3
3
|
text: string;
|
|
4
4
|
onClick: (comment: string) => void;
|
|
5
5
|
};
|
|
6
6
|
export type RelationAttributeValue = DCRAttributeValue & DCRRelationInfo;
|
|
7
|
+
export type DiffDisplayOptions = {
|
|
8
|
+
showLabel: boolean;
|
|
9
|
+
showAddButton: boolean;
|
|
10
|
+
hasSameAttributeSiblings: boolean;
|
|
11
|
+
};
|
|
7
12
|
export type Diff = {
|
|
8
13
|
level: number;
|
|
9
14
|
label: string;
|
|
@@ -15,6 +20,11 @@ export type Diff = {
|
|
|
15
20
|
operation?: DCROperationTypes;
|
|
16
21
|
isReferenceSubAttribute?: boolean;
|
|
17
22
|
lineIds?: string[];
|
|
23
|
+
addedId?: string;
|
|
24
|
+
displayOptions?: DiffDisplayOptions;
|
|
25
|
+
attributePath?: string;
|
|
26
|
+
refAttributeType?: string;
|
|
27
|
+
refObjectURI?: string;
|
|
18
28
|
};
|
|
19
29
|
export type Title = {
|
|
20
30
|
label: string;
|
|
@@ -24,7 +34,7 @@ export type BeforeActionOutcome = {
|
|
|
24
34
|
error?: unknown;
|
|
25
35
|
};
|
|
26
36
|
export type LineDataValue = SimpleAttributeValue | {
|
|
27
|
-
value: string[] | PrimitiveValue;
|
|
37
|
+
value: string[] | PrimitiveValue | RecordImageAttributeValue;
|
|
28
38
|
};
|
|
29
39
|
export type LineData = {
|
|
30
40
|
value?: LineDataValue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2244",
|
|
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.2032",
|
|
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<"date" | "activityItem" | "activityIcon" | "userContainer" | "activityInfo" | "activityUser" | "activityEvent">;
|
|
@@ -1,57 +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
|
-
activityItem: {
|
|
7
|
-
display: 'flex',
|
|
8
|
-
minHeight: '40px',
|
|
9
|
-
padding: '10px 0 5px 0',
|
|
10
|
-
boxSizing: 'border-box',
|
|
11
|
-
paddingRight: '16px'
|
|
12
|
-
},
|
|
13
|
-
activityIcon: {
|
|
14
|
-
marginLeft: '-13px',
|
|
15
|
-
marginRight: '15px',
|
|
16
|
-
width: '24px',
|
|
17
|
-
height: '24px',
|
|
18
|
-
background: theme.palette.primary.main,
|
|
19
|
-
borderRadius: '50%',
|
|
20
|
-
border: '1px solid white',
|
|
21
|
-
display: 'flex',
|
|
22
|
-
alignItems: 'center',
|
|
23
|
-
justifyContent: 'center',
|
|
24
|
-
flexShrink: 0,
|
|
25
|
-
'& svg': {
|
|
26
|
-
fill: 'white',
|
|
27
|
-
fontSize: '14px'
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
userContainer: {
|
|
31
|
-
display: 'flex'
|
|
32
|
-
},
|
|
33
|
-
activityInfo: {
|
|
34
|
-
flex: 1,
|
|
35
|
-
overflow: 'hidden',
|
|
36
|
-
position: 'relative'
|
|
37
|
-
},
|
|
38
|
-
activityUser: {
|
|
39
|
-
fontSize: 13,
|
|
40
|
-
lineHeight: '15px',
|
|
41
|
-
color: theme.palette.text.secondary,
|
|
42
|
-
whiteSpace: 'nowrap',
|
|
43
|
-
overflow: 'hidden',
|
|
44
|
-
textOverflow: 'ellipsis'
|
|
45
|
-
},
|
|
46
|
-
activityEvent: {
|
|
47
|
-
marginTop: '5px'
|
|
48
|
-
},
|
|
49
|
-
date: {
|
|
50
|
-
fontSize: 12,
|
|
51
|
-
lineHeight: '16px',
|
|
52
|
-
color: theme.palette.text.primary,
|
|
53
|
-
marginLeft: 'auto',
|
|
54
|
-
flexShrink: 0,
|
|
55
|
-
paddingLeft: 8
|
|
56
|
-
}
|
|
57
|
-
}); });
|
package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ChangeItemEditor = void 0;
|
|
30
|
-
var react_1 = __importStar(require("react"));
|
|
31
|
-
var classnames_1 = __importDefault(require("classnames"));
|
|
32
|
-
var ramda_1 = require("ramda");
|
|
33
|
-
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
34
|
-
var Replay_1 = __importDefault(require("@mui/icons-material/Replay"));
|
|
35
|
-
var Button_1 = __importDefault(require("@mui/material/Button"));
|
|
36
|
-
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
37
|
-
var MdmModuleContext_1 = require("../../../../../contexts/MdmModuleContext");
|
|
38
|
-
var DataTypeValue_1 = require("../../../../../DataTypeValue");
|
|
39
|
-
var SmallIconButton_1 = require("../../../../../SmallIconButton");
|
|
40
|
-
var common_1 = require("../../../helpers/common");
|
|
41
|
-
var helpers_1 = require("../../helpers/helpers");
|
|
42
|
-
var OperationChip_1 = require("../../../OperationChip");
|
|
43
|
-
var RelationEntityLink_1 = require("../../../RelationEntityLink");
|
|
44
|
-
var useChangeRequestEditor_1 = require("../../hooks/useChangeRequestEditor");
|
|
45
|
-
var ChangeItemLabel_1 = require("../ChangeItemLabel");
|
|
46
|
-
var DCRValueEditor_1 = require("../DCRValueEditor");
|
|
47
|
-
var StatusChips_1 = require("../StatusChips");
|
|
48
|
-
var ChangeItemEditor_module_css_1 = __importDefault(require("./ChangeItemEditor.module.css"));
|
|
49
|
-
var ChangeItemEditor = function (_a) {
|
|
50
|
-
var _b, _c, _d;
|
|
51
|
-
var change = _a.change, _e = _a.editable, editable = _e === void 0 ? true : _e, classes = _a.classes;
|
|
52
|
-
var metadata = (0, MdmModuleContext_1.useMdmMetadata)();
|
|
53
|
-
var _f = (0, useChangeRequestEditor_1.useChangeRequestEditor)({ change: change }), handleChange = _f.handleChange, handleReject = _f.handleReject, handleRevert = _f.handleRevert, lineData = _f.lineData, isLineRejected = _f.isLineRejected, isParentLineRejected = _f.isParentLineRejected, isUpdated = _f.isUpdated, hasChangeId = _f.hasChangeId, isSubAttributeOfDeletedAttribute = _f.isSubAttributeOfDeletedAttribute;
|
|
54
|
-
var entity = (0, MdmModuleContext_1.useMdmEntity)();
|
|
55
|
-
var entityType = (0, mdm_sdk_1.getEntityType)(metadata, entity === null || entity === void 0 ? void 0 : entity.type);
|
|
56
|
-
var isUpdateOperation = change.operation === mdm_sdk_1.DCROperationTypes.EDITED;
|
|
57
|
-
var isAddOperation = change.operation === mdm_sdk_1.DCROperationTypes.ADDED;
|
|
58
|
-
var oldValue = (0, mdm_sdk_1.getAttributeValue)(change.oldValue);
|
|
59
|
-
var currentNewValue = !(0, ramda_1.isNil)(lineData === null || lineData === void 0 ? void 0 : lineData.value) && !isParentLineRejected ? lineData.value : change.newValue;
|
|
60
|
-
var newValue = (0, mdm_sdk_1.getAttributeValue)(currentNewValue);
|
|
61
|
-
var hasNewValue = !(0, ramda_1.isNil)(newValue);
|
|
62
|
-
var dataTypeDefinition = (0, react_1.useMemo)(function () {
|
|
63
|
-
return change.attributeType && (0, common_1.getDataTypeDefinition)(change.attributeType, newValue || oldValue);
|
|
64
|
-
}, [change.attributeType, newValue, oldValue]);
|
|
65
|
-
var isRolesOrTags = ((_b = change === null || change === void 0 ? void 0 : change.attributeType) === null || _b === void 0 ? void 0 : _b.uri) === mdm_sdk_1.EntityAttrTypes.roles.uri ||
|
|
66
|
-
((_c = change === null || change === void 0 ? void 0 : change.attributeType) === null || _c === void 0 ? void 0 : _c.uri) === mdm_sdk_1.EntityAttrTypes.tags.uri;
|
|
67
|
-
var canEdit = (0, helpers_1.checkCanInitiateChangeRequest)(metadata, entityType, change);
|
|
68
|
-
var shouldShowValueEditor = (isUpdateOperation || isAddOperation) && editable && canEdit;
|
|
69
|
-
var preparedValue = (0, react_1.useMemo)(function () {
|
|
70
|
-
return isRolesOrTags
|
|
71
|
-
? (0, common_1.prepareRolesOrTagsValue)(metadata, newValue, change.attributeType.uri)
|
|
72
|
-
: newValue;
|
|
73
|
-
}, [isRolesOrTags, metadata, newValue, (_d = change.attributeType) === null || _d === void 0 ? void 0 : _d.uri]);
|
|
74
|
-
var showUndoButton = (isUpdated || isLineRejected) && !isParentLineRejected;
|
|
75
|
-
var showRejectButton = canEdit &&
|
|
76
|
-
!isLineRejected &&
|
|
77
|
-
!isUpdated &&
|
|
78
|
-
!isParentLineRejected &&
|
|
79
|
-
hasChangeId &&
|
|
80
|
-
!isSubAttributeOfDeletedAttribute &&
|
|
81
|
-
!(change.isReferenceSubAttribute && !editable);
|
|
82
|
-
var showStatusChips = !isParentLineRejected;
|
|
83
|
-
var isRejected = isLineRejected || isParentLineRejected;
|
|
84
|
-
return (react_1.default.createElement("div", { className: ChangeItemEditor_module_css_1.default.attributeRow, "data-reltio-id": "change-item-editor" },
|
|
85
|
-
react_1.default.createElement(ChangeItemLabel_1.ChangeItemLabel, { change: change, className: ChangeItemEditor_module_css_1.default.labelColumn, showLabel: !isUpdateOperation }),
|
|
86
|
-
react_1.default.createElement("div", { className: ChangeItemEditor_module_css_1.default.valueColumn },
|
|
87
|
-
react_1.default.createElement(RelationEntityLink_1.RelationEntityLink, { attributeOrRelationType: change.attributeType || change.relationType, attributeValue: change.attributeValue, className: ChangeItemEditor_module_css_1.default.relationEntityLink }),
|
|
88
|
-
shouldShowValueEditor ? (react_1.default.createElement(DCRValueEditor_1.DCRValueEditor, { attributeType: change.attributeType, value: currentNewValue, onChange: handleChange, disabled: !editable || isRejected })) : (hasNewValue && (react_1.default.createElement("div", { className: ChangeItemEditor_module_css_1.default.value },
|
|
89
|
-
react_1.default.createElement(DataTypeValue_1.DataTypeValue, { value: preparedValue, dataTypeDefinition: dataTypeDefinition }))))),
|
|
90
|
-
react_1.default.createElement("div", { className: ChangeItemEditor_module_css_1.default.revertColumn }, showUndoButton && (react_1.default.createElement(SmallIconButton_1.SmallIconButton, { icon: Replay_1.default, onClick: handleRevert, className: ChangeItemEditor_module_css_1.default.revertButton, title: ui_i18n_1.default.text('Undo'), size: "S" }))),
|
|
91
|
-
react_1.default.createElement("div", { className: ChangeItemEditor_module_css_1.default.operationColumn }, change.operation && react_1.default.createElement(OperationChip_1.OperationChip, { operation: change.operation, size: "small", variant: "outlined" })),
|
|
92
|
-
react_1.default.createElement("div", { className: ChangeItemEditor_module_css_1.default.statusColumn }, showStatusChips && react_1.default.createElement(StatusChips_1.StatusChips, { showUpdatedChip: isUpdated, showRejectedChip: isLineRejected })),
|
|
93
|
-
react_1.default.createElement("div", { className: ChangeItemEditor_module_css_1.default.rejectColumn }, showRejectButton && (react_1.default.createElement(Button_1.default, { onClick: handleReject, className: (0, classnames_1.default)(ChangeItemEditor_module_css_1.default.rejectButton, classes === null || classes === void 0 ? void 0 : classes.rejectButton), title: ui_i18n_1.default.text('Reject'), size: "medium" }, ui_i18n_1.default.text('Reject'))))));
|
|
94
|
-
};
|
|
95
|
-
exports.ChangeItemEditor = ChangeItemEditor;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const styles = {"attributeRow":"ChangeItemEditor-attributeRow--bITG5","labelColumn":"ChangeItemEditor-labelColumn--6B4w4","valueColumn":"ChangeItemEditor-valueColumn--q9456","revertColumn":"ChangeItemEditor-revertColumn--T5mVE","operationColumn":"ChangeItemEditor-operationColumn--me-4D","statusColumn":"ChangeItemEditor-statusColumn--GEF2N","rejectColumn":"ChangeItemEditor-rejectColumn--ap8hp","previousValue":"ChangeItemEditor-previousValue--lTOVp","previousValueText":"ChangeItemEditor-previousValueText--gAnge","arrow":"ChangeItemEditor-arrow--IXZ6i","value":"ChangeItemEditor-value--GxSUf","columnSkeleton":"ChangeItemEditor-columnSkeleton---iGmr","relationEntityLink":"ChangeItemEditor-relationEntityLink--Vr7Z-","rejectButton":"ChangeItemEditor-rejectButton--cEIBC","revertButton":"ChangeItemEditor-revertButton--hSt3m"};
|
|
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 = `.ChangeItemEditor-attributeRow--bITG5{align-items:center;display:flex;font-size:16px;gap:16px;max-width:1000px;min-height:37px}.ChangeItemEditor-labelColumn--6B4w4{box-sizing:border-box;min-height:21px;width:170px}.ChangeItemEditor-valueColumn--q9456{display:flex;flex:1;flex-direction:column;gap:4px}.ChangeItemEditor-revertColumn--T5mVE{align-items:flex-start;display:flex;margin-left:-8px;width:16px}.ChangeItemEditor-operationColumn--me-4D{align-items:flex-start;display:flex;width:84px}.ChangeItemEditor-statusColumn--GEF2N{align-items:flex-start;display:flex;width:57px}.ChangeItemEditor-rejectColumn--ap8hp{align-items:flex-start;display:flex;width:80px}.ChangeItemEditor-previousValue--lTOVp{align-items:center;display:flex;line-height:16px;padding:6px 12px 7px}.ChangeItemEditor-previousValueText--gAnge{color:var(--mui-palette-text-primary);letter-spacing:.24px}.ChangeItemEditor-arrow--IXZ6i{color:var(--mui-palette-text-secondary);font-weight:700;margin:0 5px}.ChangeItemEditor-value--GxSUf{font-size:16px;padding:8px}.ChangeItemEditor-columnSkeleton---iGmr{transform:none}.ChangeItemEditor-relationEntityLink--Vr7Z-{font-size:16px}.ChangeItemEditor-rejectButton--cEIBC{background-color:#eb5757;border-radius:8px;color:#fff}.ChangeItemEditor-rejectButton--cEIBC:hover{background-color:rgba(235,87,87,.8)}.ChangeItemEditor-revertButton--hSt3m{color:var(--mui-palette-text-secondary)}`;
|
|
7
|
-
head.appendChild(style);
|
|
8
|
-
}
|
|
9
|
-
module.exports = styles;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.StatusChips = void 0;
|
|
7
|
-
var react_1 = __importDefault(require("react"));
|
|
8
|
-
var classnames_1 = __importDefault(require("classnames"));
|
|
9
|
-
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
10
|
-
var Chip_1 = __importDefault(require("@mui/material/Chip"));
|
|
11
|
-
var StatusChips_module_css_1 = __importDefault(require("./StatusChips.module.css"));
|
|
12
|
-
var StatusChips = function (_a) {
|
|
13
|
-
var showUpdatedChip = _a.showUpdatedChip, showRejectedChip = _a.showRejectedChip;
|
|
14
|
-
if (!showUpdatedChip && !showRejectedChip) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
var label = showUpdatedChip ? ui_i18n_1.default.text('Updated') : ui_i18n_1.default.text('Rejected');
|
|
18
|
-
var chipClass = showUpdatedChip ? StatusChips_module_css_1.default.updatedChip : StatusChips_module_css_1.default.rejectedChip;
|
|
19
|
-
return (react_1.default.createElement(Chip_1.default, { label: label, size: "small", color: "primary", variant: "outlined", className: (0, classnames_1.default)(StatusChips_module_css_1.default.statusChip, chipClass), "data-testid": "status-chips" }));
|
|
20
|
-
};
|
|
21
|
-
exports.StatusChips = StatusChips;
|
package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.module.css.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const styles = {"statusChip":"StatusChips-statusChip--ws380","updatedChip":"StatusChips-updatedChip--5mTfA","rejectedChip":"StatusChips-rejectedChip--EHx3y"};
|
|
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 = `.StatusChips-statusChip--ws380{color:#fff;font-size:10px;height:20px}.StatusChips-updatedChip--5mTfA{background:#2f80ed;border:1px solid rgba(0,114,206,.3)}.StatusChips-rejectedChip--EHx3y{background:#eb5757;border:1px solid rgba(235,87,87,.3)}`;
|
|
7
|
-
head.appendChild(style);
|
|
8
|
-
}
|
|
9
|
-
module.exports = styles;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { StatusChips } from './StatusChips';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StatusChips = void 0;
|
|
4
|
-
var StatusChips_1 = require("./StatusChips");
|
|
5
|
-
Object.defineProperty(exports, "StatusChips", { enumerable: true, get: function () { return StatusChips_1.StatusChips; } });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"date" | "activityItem" | "activityIcon" | "userContainer" | "activityInfo" | "activityUser" | "activityEvent">;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { makeStyles } from '@mui/styles';
|
|
2
|
-
export var useStyles = makeStyles(function (theme) { return ({
|
|
3
|
-
activityItem: {
|
|
4
|
-
display: 'flex',
|
|
5
|
-
minHeight: '40px',
|
|
6
|
-
padding: '10px 0 5px 0',
|
|
7
|
-
boxSizing: 'border-box',
|
|
8
|
-
paddingRight: '16px'
|
|
9
|
-
},
|
|
10
|
-
activityIcon: {
|
|
11
|
-
marginLeft: '-13px',
|
|
12
|
-
marginRight: '15px',
|
|
13
|
-
width: '24px',
|
|
14
|
-
height: '24px',
|
|
15
|
-
background: theme.palette.primary.main,
|
|
16
|
-
borderRadius: '50%',
|
|
17
|
-
border: '1px solid white',
|
|
18
|
-
display: 'flex',
|
|
19
|
-
alignItems: 'center',
|
|
20
|
-
justifyContent: 'center',
|
|
21
|
-
flexShrink: 0,
|
|
22
|
-
'& svg': {
|
|
23
|
-
fill: 'white',
|
|
24
|
-
fontSize: '14px'
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
userContainer: {
|
|
28
|
-
display: 'flex'
|
|
29
|
-
},
|
|
30
|
-
activityInfo: {
|
|
31
|
-
flex: 1,
|
|
32
|
-
overflow: 'hidden',
|
|
33
|
-
position: 'relative'
|
|
34
|
-
},
|
|
35
|
-
activityUser: {
|
|
36
|
-
fontSize: 13,
|
|
37
|
-
lineHeight: '15px',
|
|
38
|
-
color: theme.palette.text.secondary,
|
|
39
|
-
whiteSpace: 'nowrap',
|
|
40
|
-
overflow: 'hidden',
|
|
41
|
-
textOverflow: 'ellipsis'
|
|
42
|
-
},
|
|
43
|
-
activityEvent: {
|
|
44
|
-
marginTop: '5px'
|
|
45
|
-
},
|
|
46
|
-
date: {
|
|
47
|
-
fontSize: 12,
|
|
48
|
-
lineHeight: '16px',
|
|
49
|
-
color: theme.palette.text.primary,
|
|
50
|
-
marginLeft: 'auto',
|
|
51
|
-
flexShrink: 0,
|
|
52
|
-
paddingLeft: 8
|
|
53
|
-
}
|
|
54
|
-
}); });
|
package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
2
|
-
import classnames from 'classnames';
|
|
3
|
-
import { isNil } from 'ramda';
|
|
4
|
-
import i18n from 'ui-i18n';
|
|
5
|
-
import ReplayIcon from '@mui/icons-material/Replay';
|
|
6
|
-
import Button from '@mui/material/Button';
|
|
7
|
-
import { DCROperationTypes, EntityAttrTypes, getAttributeValue, getEntityType } from '@reltio/mdm-sdk';
|
|
8
|
-
import { useMdmEntity, useMdmMetadata } from '../../../../../contexts/MdmModuleContext';
|
|
9
|
-
import { DataTypeValue } from '../../../../../DataTypeValue';
|
|
10
|
-
import { SmallIconButton } from '../../../../../SmallIconButton';
|
|
11
|
-
import { getDataTypeDefinition, prepareRolesOrTagsValue } from '../../../helpers/common';
|
|
12
|
-
import { checkCanInitiateChangeRequest } from '../../helpers/helpers';
|
|
13
|
-
import { OperationChip } from '../../../OperationChip';
|
|
14
|
-
import { RelationEntityLink } from '../../../RelationEntityLink';
|
|
15
|
-
import { useChangeRequestEditor } from '../../hooks/useChangeRequestEditor';
|
|
16
|
-
import { ChangeItemLabel } from '../ChangeItemLabel';
|
|
17
|
-
import { DCRValueEditor } from '../DCRValueEditor';
|
|
18
|
-
import { StatusChips } from '../StatusChips';
|
|
19
|
-
import styles from './ChangeItemEditor.module.css';
|
|
20
|
-
export var ChangeItemEditor = function (_a) {
|
|
21
|
-
var _b, _c, _d;
|
|
22
|
-
var change = _a.change, _e = _a.editable, editable = _e === void 0 ? true : _e, classes = _a.classes;
|
|
23
|
-
var metadata = useMdmMetadata();
|
|
24
|
-
var _f = useChangeRequestEditor({ change: change }), handleChange = _f.handleChange, handleReject = _f.handleReject, handleRevert = _f.handleRevert, lineData = _f.lineData, isLineRejected = _f.isLineRejected, isParentLineRejected = _f.isParentLineRejected, isUpdated = _f.isUpdated, hasChangeId = _f.hasChangeId, isSubAttributeOfDeletedAttribute = _f.isSubAttributeOfDeletedAttribute;
|
|
25
|
-
var entity = useMdmEntity();
|
|
26
|
-
var entityType = getEntityType(metadata, entity === null || entity === void 0 ? void 0 : entity.type);
|
|
27
|
-
var isUpdateOperation = change.operation === DCROperationTypes.EDITED;
|
|
28
|
-
var isAddOperation = change.operation === DCROperationTypes.ADDED;
|
|
29
|
-
var oldValue = getAttributeValue(change.oldValue);
|
|
30
|
-
var currentNewValue = !isNil(lineData === null || lineData === void 0 ? void 0 : lineData.value) && !isParentLineRejected ? lineData.value : change.newValue;
|
|
31
|
-
var newValue = getAttributeValue(currentNewValue);
|
|
32
|
-
var hasNewValue = !isNil(newValue);
|
|
33
|
-
var dataTypeDefinition = useMemo(function () {
|
|
34
|
-
return change.attributeType && getDataTypeDefinition(change.attributeType, newValue || oldValue);
|
|
35
|
-
}, [change.attributeType, newValue, oldValue]);
|
|
36
|
-
var isRolesOrTags = ((_b = change === null || change === void 0 ? void 0 : change.attributeType) === null || _b === void 0 ? void 0 : _b.uri) === EntityAttrTypes.roles.uri ||
|
|
37
|
-
((_c = change === null || change === void 0 ? void 0 : change.attributeType) === null || _c === void 0 ? void 0 : _c.uri) === EntityAttrTypes.tags.uri;
|
|
38
|
-
var canEdit = checkCanInitiateChangeRequest(metadata, entityType, change);
|
|
39
|
-
var shouldShowValueEditor = (isUpdateOperation || isAddOperation) && editable && canEdit;
|
|
40
|
-
var preparedValue = useMemo(function () {
|
|
41
|
-
return isRolesOrTags
|
|
42
|
-
? prepareRolesOrTagsValue(metadata, newValue, change.attributeType.uri)
|
|
43
|
-
: newValue;
|
|
44
|
-
}, [isRolesOrTags, metadata, newValue, (_d = change.attributeType) === null || _d === void 0 ? void 0 : _d.uri]);
|
|
45
|
-
var showUndoButton = (isUpdated || isLineRejected) && !isParentLineRejected;
|
|
46
|
-
var showRejectButton = canEdit &&
|
|
47
|
-
!isLineRejected &&
|
|
48
|
-
!isUpdated &&
|
|
49
|
-
!isParentLineRejected &&
|
|
50
|
-
hasChangeId &&
|
|
51
|
-
!isSubAttributeOfDeletedAttribute &&
|
|
52
|
-
!(change.isReferenceSubAttribute && !editable);
|
|
53
|
-
var showStatusChips = !isParentLineRejected;
|
|
54
|
-
var isRejected = isLineRejected || isParentLineRejected;
|
|
55
|
-
return (React.createElement("div", { className: styles.attributeRow, "data-reltio-id": "change-item-editor" },
|
|
56
|
-
React.createElement(ChangeItemLabel, { change: change, className: styles.labelColumn, showLabel: !isUpdateOperation }),
|
|
57
|
-
React.createElement("div", { className: styles.valueColumn },
|
|
58
|
-
React.createElement(RelationEntityLink, { attributeOrRelationType: change.attributeType || change.relationType, attributeValue: change.attributeValue, className: styles.relationEntityLink }),
|
|
59
|
-
shouldShowValueEditor ? (React.createElement(DCRValueEditor, { attributeType: change.attributeType, value: currentNewValue, onChange: handleChange, disabled: !editable || isRejected })) : (hasNewValue && (React.createElement("div", { className: styles.value },
|
|
60
|
-
React.createElement(DataTypeValue, { value: preparedValue, dataTypeDefinition: dataTypeDefinition }))))),
|
|
61
|
-
React.createElement("div", { className: styles.revertColumn }, showUndoButton && (React.createElement(SmallIconButton, { icon: ReplayIcon, onClick: handleRevert, className: styles.revertButton, title: i18n.text('Undo'), size: "S" }))),
|
|
62
|
-
React.createElement("div", { className: styles.operationColumn }, change.operation && React.createElement(OperationChip, { operation: change.operation, size: "small", variant: "outlined" })),
|
|
63
|
-
React.createElement("div", { className: styles.statusColumn }, showStatusChips && React.createElement(StatusChips, { showUpdatedChip: isUpdated, showRejectedChip: isLineRejected })),
|
|
64
|
-
React.createElement("div", { className: styles.rejectColumn }, showRejectButton && (React.createElement(Button, { onClick: handleReject, className: classnames(styles.rejectButton, classes === null || classes === void 0 ? void 0 : classes.rejectButton), title: i18n.text('Reject'), size: "medium" }, i18n.text('Reject'))))));
|
|
65
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const styles = {"attributeRow":"ChangeItemEditor-attributeRow--bITG5","labelColumn":"ChangeItemEditor-labelColumn--6B4w4","valueColumn":"ChangeItemEditor-valueColumn--q9456","revertColumn":"ChangeItemEditor-revertColumn--T5mVE","operationColumn":"ChangeItemEditor-operationColumn--me-4D","statusColumn":"ChangeItemEditor-statusColumn--GEF2N","rejectColumn":"ChangeItemEditor-rejectColumn--ap8hp","previousValue":"ChangeItemEditor-previousValue--lTOVp","previousValueText":"ChangeItemEditor-previousValueText--gAnge","arrow":"ChangeItemEditor-arrow--IXZ6i","value":"ChangeItemEditor-value--GxSUf","columnSkeleton":"ChangeItemEditor-columnSkeleton---iGmr","relationEntityLink":"ChangeItemEditor-relationEntityLink--Vr7Z-","rejectButton":"ChangeItemEditor-rejectButton--cEIBC","revertButton":"ChangeItemEditor-revertButton--hSt3m"};
|
|
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 = `.ChangeItemEditor-attributeRow--bITG5{align-items:center;display:flex;font-size:16px;gap:16px;max-width:1000px;min-height:37px}.ChangeItemEditor-labelColumn--6B4w4{box-sizing:border-box;min-height:21px;width:170px}.ChangeItemEditor-valueColumn--q9456{display:flex;flex:1;flex-direction:column;gap:4px}.ChangeItemEditor-revertColumn--T5mVE{align-items:flex-start;display:flex;margin-left:-8px;width:16px}.ChangeItemEditor-operationColumn--me-4D{align-items:flex-start;display:flex;width:84px}.ChangeItemEditor-statusColumn--GEF2N{align-items:flex-start;display:flex;width:57px}.ChangeItemEditor-rejectColumn--ap8hp{align-items:flex-start;display:flex;width:80px}.ChangeItemEditor-previousValue--lTOVp{align-items:center;display:flex;line-height:16px;padding:6px 12px 7px}.ChangeItemEditor-previousValueText--gAnge{color:var(--mui-palette-text-primary);letter-spacing:.24px}.ChangeItemEditor-arrow--IXZ6i{color:var(--mui-palette-text-secondary);font-weight:700;margin:0 5px}.ChangeItemEditor-value--GxSUf{font-size:16px;padding:8px}.ChangeItemEditor-columnSkeleton---iGmr{transform:none}.ChangeItemEditor-relationEntityLink--Vr7Z-{font-size:16px}.ChangeItemEditor-rejectButton--cEIBC{background-color:#eb5757;border-radius:8px;color:#fff}.ChangeItemEditor-rejectButton--cEIBC:hover{background-color:rgba(235,87,87,.8)}.ChangeItemEditor-revertButton--hSt3m{color:var(--mui-palette-text-secondary)}`;
|
|
7
|
-
head.appendChild(style);
|
|
8
|
-
}
|
|
9
|
-
export default styles;
|