@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.
Files changed (103) hide show
  1. package/RolesInput/RolesInput.d.ts +2 -1
  2. package/RolesInput/RolesInput.js +2 -2
  3. package/TagsInput/TagsInput.d.ts +2 -1
  4. package/TagsInput/TagsInput.js +2 -2
  5. package/cjs/RolesInput/RolesInput.d.ts +2 -1
  6. package/cjs/RolesInput/RolesInput.js +2 -2
  7. package/cjs/TagsInput/TagsInput.d.ts +2 -1
  8. package/cjs/TagsInput/TagsInput.js +2 -2
  9. package/cjs/features/workflow/ChangeRequestEditor/ChangeRequestEditor.js +2 -1
  10. package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.d.ts +4 -1
  11. package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.js +28 -18
  12. package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.module.css.js +2 -2
  13. package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemOldValue.js +1 -1
  14. package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → ChangeItemLabel}/ChangeItemLabel.js +2 -2
  15. package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/ChangeItemLabel.module.css.js +9 -0
  16. package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/index.d.ts +1 -0
  17. package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/index.js +5 -0
  18. package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.d.ts +3 -3
  19. package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.js +20 -8
  20. package/cjs/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.module.css.js +2 -2
  21. package/{features/workflow/ChangeRequestEditor/components/ChangeItemEditor → cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditor}/DCRValueEditor.d.ts +2 -1
  22. package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → DCRValueEditor}/DCRValueEditor.js +6 -5
  23. package/cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditor/DCRValueEditor.module.css.js +9 -0
  24. package/cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditor/index.d.ts +1 -0
  25. package/cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditor/index.js +5 -0
  26. package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → DCRValueEditorFactory}/DCRValueEditorFactory.d.ts +2 -1
  27. package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → DCRValueEditorFactory}/DCRValueEditorFactory.js +4 -4
  28. package/cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditorFactory/index.d.ts +1 -0
  29. package/cjs/features/workflow/ChangeRequestEditor/components/DCRValueEditorFactory/index.js +5 -0
  30. package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.js +4 -1
  31. package/cjs/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.module.css.js +2 -2
  32. package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.d.ts +7 -0
  33. package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.js +21 -0
  34. package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.module.css.js +9 -0
  35. package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/index.d.ts +1 -0
  36. package/cjs/features/workflow/ChangeRequestEditor/components/StatusChips/index.js +5 -0
  37. package/cjs/features/workflow/ChangeRequestEditor/context/index.d.ts +4 -1
  38. package/cjs/features/workflow/ChangeRequestEditor/context/index.js +30 -4
  39. package/cjs/features/workflow/ChangeRequestEditor/helpers/helpers.d.ts +2 -1
  40. package/cjs/features/workflow/ChangeRequestEditor/helpers/helpers.js +5 -1
  41. package/cjs/features/workflow/ChangeRequestEditor/hooks/useChangeRequestEditor.d.ts +16 -0
  42. package/cjs/features/workflow/ChangeRequestEditor/hooks/useChangeRequestEditor.js +42 -0
  43. package/cjs/features/workflow/OperationChip/OperationChip.js +1 -1
  44. package/cjs/features/workflow/OperationChip/OperationChip.module.css.js +2 -2
  45. package/cjs/features/workflow/ReviewDCRDialog/ReviewDCRDialog.js +1 -1
  46. package/cjs/features/workflow/ReviewDCRDialog/ReviewDCRDialog.module.css.js +1 -1
  47. package/cjs/features/workflow/ReviewDCRDialog/components/DCRChangesSummary/DCRChangesSummary.module.css.js +1 -1
  48. package/cjs/features/workflow/ReviewDCRDialog/components/DCRSummaryInfo/DCRSummaryInfo.module.css.js +1 -1
  49. package/cjs/features/workflow/helpers/attributes.js +6 -4
  50. package/cjs/features/workflow/helpers/common.d.ts +1 -1
  51. package/cjs/features/workflow/helpers/common.js +3 -3
  52. package/cjs/features/workflow/helpers/common.test.js +4 -4
  53. package/cjs/features/workflow/helpers/merge.js +3 -1
  54. package/cjs/features/workflow/helpers/merge.test.js +79 -0
  55. package/features/workflow/ChangeRequestEditor/ChangeRequestEditor.js +2 -1
  56. package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.d.ts +4 -1
  57. package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.js +28 -18
  58. package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemEditor.module.css.js +2 -2
  59. package/features/workflow/ChangeRequestEditor/components/ChangeItemEditor/ChangeItemOldValue.js +1 -1
  60. package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → ChangeItemLabel}/ChangeItemLabel.js +1 -1
  61. package/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/ChangeItemLabel.module.css.js +9 -0
  62. package/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/index.d.ts +1 -0
  63. package/features/workflow/ChangeRequestEditor/components/ChangeItemLabel/index.js +1 -0
  64. package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.d.ts +3 -3
  65. package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.js +20 -8
  66. package/features/workflow/ChangeRequestEditor/components/ChangeItemRow/ChangeItemRow.module.css.js +2 -2
  67. package/{cjs/features/workflow/ChangeRequestEditor/components/ChangeItemEditor → features/workflow/ChangeRequestEditor/components/DCRValueEditor}/DCRValueEditor.d.ts +2 -1
  68. package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → DCRValueEditor}/DCRValueEditor.js +5 -4
  69. package/features/workflow/ChangeRequestEditor/components/DCRValueEditor/DCRValueEditor.module.css.js +9 -0
  70. package/features/workflow/ChangeRequestEditor/components/DCRValueEditor/index.d.ts +1 -0
  71. package/features/workflow/ChangeRequestEditor/components/DCRValueEditor/index.js +1 -0
  72. package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → DCRValueEditorFactory}/DCRValueEditorFactory.d.ts +2 -1
  73. package/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → DCRValueEditorFactory}/DCRValueEditorFactory.js +4 -4
  74. package/features/workflow/ChangeRequestEditor/components/DCRValueEditorFactory/index.d.ts +1 -0
  75. package/features/workflow/ChangeRequestEditor/components/DCRValueEditorFactory/index.js +1 -0
  76. package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.js +4 -1
  77. package/features/workflow/ChangeRequestEditor/components/EntityChangesGroup/EntityChangesGroup.module.css.js +2 -2
  78. package/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.d.ts +7 -0
  79. package/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.js +14 -0
  80. package/features/workflow/ChangeRequestEditor/components/StatusChips/StatusChips.module.css.js +9 -0
  81. package/features/workflow/ChangeRequestEditor/components/StatusChips/index.d.ts +1 -0
  82. package/features/workflow/ChangeRequestEditor/components/StatusChips/index.js +1 -0
  83. package/features/workflow/ChangeRequestEditor/context/index.d.ts +4 -1
  84. package/features/workflow/ChangeRequestEditor/context/index.js +30 -4
  85. package/features/workflow/ChangeRequestEditor/helpers/helpers.d.ts +2 -1
  86. package/features/workflow/ChangeRequestEditor/helpers/helpers.js +4 -1
  87. package/features/workflow/ChangeRequestEditor/hooks/useChangeRequestEditor.d.ts +16 -0
  88. package/features/workflow/ChangeRequestEditor/hooks/useChangeRequestEditor.js +38 -0
  89. package/features/workflow/OperationChip/OperationChip.js +1 -1
  90. package/features/workflow/OperationChip/OperationChip.module.css.js +2 -2
  91. package/features/workflow/ReviewDCRDialog/ReviewDCRDialog.js +2 -2
  92. package/features/workflow/ReviewDCRDialog/ReviewDCRDialog.module.css.js +1 -1
  93. package/features/workflow/ReviewDCRDialog/components/DCRChangesSummary/DCRChangesSummary.module.css.js +1 -1
  94. package/features/workflow/ReviewDCRDialog/components/DCRSummaryInfo/DCRSummaryInfo.module.css.js +1 -1
  95. package/features/workflow/helpers/attributes.js +6 -4
  96. package/features/workflow/helpers/common.d.ts +1 -1
  97. package/features/workflow/helpers/common.js +3 -3
  98. package/features/workflow/helpers/common.test.js +4 -4
  99. package/features/workflow/helpers/merge.js +4 -2
  100. package/features/workflow/helpers/merge.test.js +79 -0
  101. package/package.json +2 -2
  102. /package/cjs/features/workflow/ChangeRequestEditor/components/{ChangeItemEditor → ChangeItemLabel}/ChangeItemLabel.d.ts +0 -0
  103. /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.2203",
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.2006",
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",