@reltio/components 1.4.2203 → 1.4.2205
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/RolesInput/RolesInput.d.ts +2 -1
- package/RolesInput/RolesInput.js +2 -2
- package/TagsInput/TagsInput.d.ts +2 -1
- package/TagsInput/TagsInput.js +2 -2
- package/cjs/RolesInput/RolesInput.d.ts +2 -1
- package/cjs/RolesInput/RolesInput.js +2 -2
- package/cjs/TagsInput/TagsInput.d.ts +2 -1
- package/cjs/TagsInput/TagsInput.js +2 -2
- package/cjs/features/workflow/ChangeRequestEditor/ChangeRequestEditor.js +2 -1
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.d.ts +4 -1
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.js +28 -18
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.module.css.js +2 -2
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemOldValue.js +1 -1
- package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → ChangeItemLabel}/ChangeItemLabel.js +2 -2
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/ChangeItemLabel.module.css.js +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/index.d.ts +1 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/index.js +5 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.d.ts +3 -3
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.js +20 -8
- package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.module.css.js +2 -2
- package/{features/workflow/ChangeRequestEditor/components/ChangeItemEditor → cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditor}/DCRValueEditor.d.ts +2 -1
- package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → DCRValueEditor}/DCRValueEditor.js +6 -5
- package/cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditor/DCRValueEditor.module.css.js +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditor/index.d.ts +1 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditor/index.js +5 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → DCRValueEditorFactory}/DCRValueEditorFactory.d.ts +2 -1
- package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → DCRValueEditorFactory}/DCRValueEditorFactory.js +4 -4
- package/cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditorFactory/index.d.ts +1 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditorFactory/index.js +5 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.js +4 -1
- package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.module.css.js +2 -2
- package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.d.ts +7 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.js +21 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.module.css.js +9 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/index.d.ts +1 -0
- package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/index.js +5 -0
- package/cjs/features/workflow/ChangeRequestEditor/context/index.d.ts +4 -1
- package/cjs/features/workflow/ChangeRequestEditor/context/index.js +30 -4
- package/cjs/features/workflow/ChangeRequestEditor/helpers/helpers.d.ts +2 -1
- package/cjs/features/workflow/ChangeRequestEditor/helpers/helpers.js +5 -1
- package/cjs/features/workflow/ChangeRequestEditor/hooks/useChangeRequestEditor.d.ts +16 -0
- package/cjs/features/workflow/ChangeRequestEditor/hooks/useChangeRequestEditor.js +42 -0
- package/cjs/features/workflow/OperationChip/OperationChip.js +1 -1
- package/cjs/features/workflow/OperationChip/OperationChip.module.css.js +2 -2
- 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.module.css.js +1 -1
- package/cjs/features/workflow/ReviewDCRDialog/components/DCRSummaryInfo/DCRSummaryInfo.module.css.js +1 -1
- package/cjs/features/workflow/helpers/attributes.js +6 -4
- package/cjs/features/workflow/helpers/common.d.ts +1 -1
- package/cjs/features/workflow/helpers/common.js +3 -3
- package/cjs/features/workflow/helpers/common.test.js +4 -4
- package/cjs/features/workflow/helpers/merge.js +3 -1
- package/cjs/features/workflow/helpers/merge.test.js +79 -0
- package/features/workflow/ChangeRequestEditor/ChangeRequestEditor.js +2 -1
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.d.ts +4 -1
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.js +28 -18
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.module.css.js +2 -2
- package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemOldValue.js +1 -1
- package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → ChangeItemLabel}/ChangeItemLabel.js +1 -1
- package/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/ChangeItemLabel.module.css.js +9 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/index.d.ts +1 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/index.js +1 -0
- package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.d.ts +3 -3
- package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.js +20 -8
- package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.module.css.js +2 -2
- package/{cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor → features/workflow/ChangeRequestEditor/components/DCRValueEditor}/DCRValueEditor.d.ts +2 -1
- package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → DCRValueEditor}/DCRValueEditor.js +5 -4
- package/features/workflow/ChangeRequestEditor/components/DCRValueEditor/DCRValueEditor.module.css.js +9 -0
- package/features/workflow/ChangeRequestEditor/components/DCRValueEditor/index.d.ts +1 -0
- package/features/workflow/ChangeRequestEditor/components/DCRValueEditor/index.js +1 -0
- package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → DCRValueEditorFactory}/DCRValueEditorFactory.d.ts +2 -1
- package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → DCRValueEditorFactory}/DCRValueEditorFactory.js +4 -4
- package/features/workflow/ChangeRequestEditor/components/DCRValueEditorFactory/index.d.ts +1 -0
- package/features/workflow/ChangeRequestEditor/components/DCRValueEditorFactory/index.js +1 -0
- package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.js +4 -1
- package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.module.css.js +2 -2
- package/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.d.ts +7 -0
- package/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.js +14 -0
- package/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.module.css.js +9 -0
- package/features/workflow/ChangeRequestEditor/components/StatusChips/index.d.ts +1 -0
- package/features/workflow/ChangeRequestEditor/components/StatusChips/index.js +1 -0
- package/features/workflow/ChangeRequestEditor/context/index.d.ts +4 -1
- package/features/workflow/ChangeRequestEditor/context/index.js +30 -4
- package/features/workflow/ChangeRequestEditor/helpers/helpers.d.ts +2 -1
- package/features/workflow/ChangeRequestEditor/helpers/helpers.js +4 -1
- package/features/workflow/ChangeRequestEditor/hooks/useChangeRequestEditor.d.ts +16 -0
- package/features/workflow/ChangeRequestEditor/hooks/useChangeRequestEditor.js +38 -0
- package/features/workflow/OperationChip/OperationChip.js +1 -1
- package/features/workflow/OperationChip/OperationChip.module.css.js +2 -2
- package/features/workflow/ReviewDCRDialog/ReviewDCRDialog.js +2 -2
- package/features/workflow/ReviewDCRDialog/ReviewDCRDialog.module.css.js +1 -1
- package/features/workflow/ReviewDCRDialog/components/DCRChangesSummary/DCRChangesSummary.module.css.js +1 -1
- package/features/workflow/ReviewDCRDialog/components/DCRSummaryInfo/DCRSummaryInfo.module.css.js +1 -1
- package/features/workflow/helpers/attributes.js +6 -4
- package/features/workflow/helpers/common.d.ts +1 -1
- package/features/workflow/helpers/common.js +3 -3
- package/features/workflow/helpers/common.test.js +4 -4
- package/features/workflow/helpers/merge.js +4 -2
- package/features/workflow/helpers/merge.test.js +79 -0
- package/package.json +2 -2
- /package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → ChangeItemLabel}/ChangeItemLabel.d.ts +0 -0
- /package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → ChangeItemLabel}/ChangeItemLabel.d.ts +0 -0
|
@@ -155,6 +155,85 @@ describe('mergeChanges tests', function () {
|
|
|
155
155
|
];
|
|
156
156
|
expect(mergeChanges(metadata, changes, objectInfo, [])).toMatchObject([mergedChanges, []]);
|
|
157
157
|
});
|
|
158
|
+
it('should not merge changes with the same paths, but different types', function () {
|
|
159
|
+
var _a;
|
|
160
|
+
var changes = (_a = {},
|
|
161
|
+
_a[entityUri] = [
|
|
162
|
+
{
|
|
163
|
+
attributePath: 'Identifiers/2BNyTheu/Type/2BNyU2yC',
|
|
164
|
+
attributeType: 'configuration/entityTypes/HCA/attributes/Identifiers/attributes/Type',
|
|
165
|
+
id: '58dpOzAR',
|
|
166
|
+
newPinOrIgnoreValue: false,
|
|
167
|
+
oldValue: {
|
|
168
|
+
value: 'ValueOld'
|
|
169
|
+
},
|
|
170
|
+
newValue: {
|
|
171
|
+
value: 'ValueNew'
|
|
172
|
+
},
|
|
173
|
+
type: DCRTypes.UPDATE_ATTRIBUTE
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
attributePath: 'Identifiers/2BNyTheu/Type/2BNyU2yC',
|
|
177
|
+
attributeType: 'configuration/entityTypes/HCA/attributes/Identifiers/attributes/Type',
|
|
178
|
+
id: '58dpP3Qh',
|
|
179
|
+
newPinOrIgnoreValue: true,
|
|
180
|
+
oldValue: {
|
|
181
|
+
value: 'ValueOld'
|
|
182
|
+
},
|
|
183
|
+
newValue: {
|
|
184
|
+
value: 'ValueOld'
|
|
185
|
+
},
|
|
186
|
+
type: DCRTypes.IGNORE_ATTRIBUTE
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
_a);
|
|
190
|
+
var mergedChanges = [
|
|
191
|
+
{
|
|
192
|
+
level: 0,
|
|
193
|
+
label: 'Customer Identity',
|
|
194
|
+
attributeType: metadata.entityTypes[0].attributes[3],
|
|
195
|
+
attributeValue: {
|
|
196
|
+
id: '2BNyTheu',
|
|
197
|
+
value: {
|
|
198
|
+
Type: [
|
|
199
|
+
{
|
|
200
|
+
id: '2BNyU2yC',
|
|
201
|
+
value: changes[entityUri][0]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
id: '2BNyU2yC',
|
|
205
|
+
value: changes[entityUri][1]
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
attributeType: metadata.entityTypes[0].attributes[3].attributes[0],
|
|
213
|
+
newValue: {
|
|
214
|
+
value: 'ValueNew'
|
|
215
|
+
},
|
|
216
|
+
oldValue: {
|
|
217
|
+
value: 'ValueOld'
|
|
218
|
+
},
|
|
219
|
+
operation: 'edited',
|
|
220
|
+
label: 'Identity Type',
|
|
221
|
+
level: 1,
|
|
222
|
+
isReferenceSubAttribute: false
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
attributeType: metadata.entityTypes[0].attributes[3].attributes[0],
|
|
226
|
+
newValue: {
|
|
227
|
+
value: 'ValueOld'
|
|
228
|
+
},
|
|
229
|
+
operation: 'ignored',
|
|
230
|
+
label: 'Identity Type',
|
|
231
|
+
level: 1,
|
|
232
|
+
isReferenceSubAttribute: false
|
|
233
|
+
}
|
|
234
|
+
];
|
|
235
|
+
expect(mergeChanges(metadata, changes, objectInfo, [])).toMatchObject([mergedChanges, []]);
|
|
236
|
+
});
|
|
158
237
|
it('should merge special attributes', function () {
|
|
159
238
|
var _a;
|
|
160
239
|
var changes = (_a = {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2205",
|
|
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.2007",
|
|
15
15
|
"@vis.gl/react-google-maps": "^1.3.0",
|
|
16
16
|
"d3-cloud": "^1.2.5",
|
|
17
17
|
"d3-geo": "^2.0.1",
|
|
File without changes
|
|
File without changes
|