@reltio/components 1.4.1999 → 1.4.2000

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 (89) hide show
  1. package/cjs/features/crosswalks/AttributesTable/AttributesTable.test-data.d.ts +36 -0
  2. package/cjs/features/crosswalks/AttributesTable/AttributesTable.test-data.js +288 -0
  3. package/cjs/features/crosswalks/AttributesTable/AttributesTable.test.js +708 -370
  4. package/cjs/features/crosswalks/ColoredBlock/ColoredBlock.test.js +77 -15
  5. package/cjs/features/crosswalks/CopyableValueField/CopyableValueField.test.js +85 -15
  6. package/cjs/features/crosswalks/CrosswalkAttributes/CrosswalkAttributes.test.js +265 -193
  7. package/cjs/features/crosswalks/CrosswalkDateEditor/CrosswalkDateEditor.test.js +106 -12
  8. package/cjs/features/crosswalks/CrosswalkDragLayer/CrosswalkDragLayer.test.js +21 -9
  9. package/cjs/features/crosswalks/CrosswalkEditor/CrosswalkEditor.test.js +190 -90
  10. package/cjs/features/crosswalks/CrosswalkRow/CrosswalkRow.test.js +323 -225
  11. package/cjs/features/crosswalks/ShowDependentLink/ShowDependentLink.test.js +75 -12
  12. package/cjs/features/crosswalks/SourceCrosswalksRow/SourceCrosswalksRow.test.js +171 -138
  13. package/esm/features/crosswalks/AttributesTable/AttributesTable.test-data.d.ts +36 -0
  14. package/esm/features/crosswalks/AttributesTable/AttributesTable.test-data.js +283 -0
  15. package/esm/features/crosswalks/AttributesTable/AttributesTable.test.js +711 -350
  16. package/esm/features/crosswalks/ColoredBlock/ColoredBlock.test.js +77 -15
  17. package/esm/features/crosswalks/CopyableValueField/CopyableValueField.test.js +85 -15
  18. package/esm/features/crosswalks/CrosswalkAttributes/CrosswalkAttributes.test.js +266 -194
  19. package/esm/features/crosswalks/CrosswalkDateEditor/CrosswalkDateEditor.test.js +106 -12
  20. package/esm/features/crosswalks/CrosswalkDragLayer/CrosswalkDragLayer.test.js +21 -9
  21. package/esm/features/crosswalks/CrosswalkEditor/CrosswalkEditor.test.js +190 -90
  22. package/esm/features/crosswalks/CrosswalkRow/CrosswalkRow.test.js +324 -226
  23. package/esm/features/crosswalks/ShowDependentLink/ShowDependentLink.test.js +75 -12
  24. package/esm/features/crosswalks/SourceCrosswalksRow/SourceCrosswalksRow.test.js +171 -138
  25. package/package.json +1 -1
  26. package/cjs/features/crosswalks/AttributesTable/IntegrationAttributesTable.test-data.d.ts +0 -3
  27. package/cjs/features/crosswalks/AttributesTable/IntegrationAttributesTable.test-data.js +0 -52
  28. package/cjs/features/crosswalks/AttributesTable/IntegrationAttributesTable.test.d.ts +0 -1
  29. package/cjs/features/crosswalks/AttributesTable/IntegrationAttributesTable.test.js +0 -323
  30. package/cjs/features/crosswalks/AttributesTable/components/AddAttributesButton/AddAttributesButton.test.d.ts +0 -1
  31. package/cjs/features/crosswalks/AttributesTable/components/AddAttributesButton/AddAttributesButton.test.js +0 -142
  32. package/cjs/features/crosswalks/AttributesTable/components/AttributeValuesRenderer/AttributeValuesRenderer.test.d.ts +0 -1
  33. package/cjs/features/crosswalks/AttributesTable/components/AttributeValuesRenderer/AttributeValuesRenderer.test.js +0 -146
  34. package/cjs/features/crosswalks/AttributesTable/components/AttributesHeadCellRenderer/AttributesHeadCellRenderer.test.d.ts +0 -1
  35. package/cjs/features/crosswalks/AttributesTable/components/AttributesHeadCellRenderer/AttributesHeadCellRenderer.test.js +0 -50
  36. package/cjs/features/crosswalks/AttributesTable/components/ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog.test.d.ts +0 -1
  37. package/cjs/features/crosswalks/AttributesTable/components/ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog.test.js +0 -58
  38. package/cjs/features/crosswalks/AttributesTable/components/CountRenderer/CountRenderer.test.d.ts +0 -1
  39. package/cjs/features/crosswalks/AttributesTable/components/CountRenderer/CountRenderer.test.js +0 -14
  40. package/cjs/features/crosswalks/AttributesTable/components/ImageAttributesRenderer/ImageAttributesRenderer.test.d.ts +0 -1
  41. package/cjs/features/crosswalks/AttributesTable/components/ImageAttributesRenderer/ImageAttributesRenderer.test.js +0 -110
  42. package/cjs/features/crosswalks/AttributesTable/components/NestedAttributesRenderer/NestedAttributesRenderer.test.d.ts +0 -1
  43. package/cjs/features/crosswalks/AttributesTable/components/NestedAttributesRenderer/NestedAttributesRenderer.test.js +0 -111
  44. package/cjs/features/crosswalks/AttributesTable/components/OvValuesRenderer/OvValuesRenderer.test.d.ts +0 -1
  45. package/cjs/features/crosswalks/AttributesTable/components/OvValuesRenderer/OvValuesRenderer.test.js +0 -67
  46. package/cjs/features/crosswalks/AttributesTable/components/ReferenceAttributesRenderer/ReferenceAttributesRenderer.test.d.ts +0 -1
  47. package/cjs/features/crosswalks/AttributesTable/components/ReferenceAttributesRenderer/ReferenceAttributesRenderer.test.js +0 -193
  48. package/cjs/features/crosswalks/AttributesTable/components/RuleTypeInfoButton/RuleTypeInfoButton.test.d.ts +0 -1
  49. package/cjs/features/crosswalks/AttributesTable/components/RuleTypeInfoButton/RuleTypeInfoButton.test.js +0 -22
  50. package/cjs/features/crosswalks/AttributesTable/components/RuleTypeRenderer/RuleTypeRenderer.test.d.ts +0 -1
  51. package/cjs/features/crosswalks/AttributesTable/components/RuleTypeRenderer/RuleTypeRenderer.test.js +0 -58
  52. package/cjs/features/crosswalks/AttributesTable/components/SimpleAttributesRenderer/SimpleAttributesRenderer.test.d.ts +0 -1
  53. package/cjs/features/crosswalks/AttributesTable/components/SimpleAttributesRenderer/SimpleAttributesRenderer.test.js +0 -69
  54. package/cjs/features/crosswalks/CrosswalkDateEditor/IntegrationCrosswalkDateEditor.test.d.ts +0 -1
  55. package/cjs/features/crosswalks/CrosswalkDateEditor/IntegrationCrosswalkDateEditor.test.js +0 -137
  56. package/cjs/features/crosswalks/CrosswalkDragLayer/components/CrosswalkDragPreview/CrosswalkDragPreview.test.d.ts +0 -1
  57. package/cjs/features/crosswalks/CrosswalkDragLayer/components/CrosswalkDragPreview/CrosswalkDragPreview.test.js +0 -56
  58. package/esm/features/crosswalks/AttributesTable/IntegrationAttributesTable.test-data.d.ts +0 -3
  59. package/esm/features/crosswalks/AttributesTable/IntegrationAttributesTable.test-data.js +0 -47
  60. package/esm/features/crosswalks/AttributesTable/IntegrationAttributesTable.test.d.ts +0 -1
  61. package/esm/features/crosswalks/AttributesTable/IntegrationAttributesTable.test.js +0 -318
  62. package/esm/features/crosswalks/AttributesTable/components/AddAttributesButton/AddAttributesButton.test.d.ts +0 -1
  63. package/esm/features/crosswalks/AttributesTable/components/AddAttributesButton/AddAttributesButton.test.js +0 -137
  64. package/esm/features/crosswalks/AttributesTable/components/AttributeValuesRenderer/AttributeValuesRenderer.test.d.ts +0 -1
  65. package/esm/features/crosswalks/AttributesTable/components/AttributeValuesRenderer/AttributeValuesRenderer.test.js +0 -141
  66. package/esm/features/crosswalks/AttributesTable/components/AttributesHeadCellRenderer/AttributesHeadCellRenderer.test.d.ts +0 -1
  67. package/esm/features/crosswalks/AttributesTable/components/AttributesHeadCellRenderer/AttributesHeadCellRenderer.test.js +0 -45
  68. package/esm/features/crosswalks/AttributesTable/components/ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog.test.d.ts +0 -1
  69. package/esm/features/crosswalks/AttributesTable/components/ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog.test.js +0 -53
  70. package/esm/features/crosswalks/AttributesTable/components/CountRenderer/CountRenderer.test.d.ts +0 -1
  71. package/esm/features/crosswalks/AttributesTable/components/CountRenderer/CountRenderer.test.js +0 -9
  72. package/esm/features/crosswalks/AttributesTable/components/ImageAttributesRenderer/ImageAttributesRenderer.test.d.ts +0 -1
  73. package/esm/features/crosswalks/AttributesTable/components/ImageAttributesRenderer/ImageAttributesRenderer.test.js +0 -105
  74. package/esm/features/crosswalks/AttributesTable/components/NestedAttributesRenderer/NestedAttributesRenderer.test.d.ts +0 -1
  75. package/esm/features/crosswalks/AttributesTable/components/NestedAttributesRenderer/NestedAttributesRenderer.test.js +0 -106
  76. package/esm/features/crosswalks/AttributesTable/components/OvValuesRenderer/OvValuesRenderer.test.d.ts +0 -1
  77. package/esm/features/crosswalks/AttributesTable/components/OvValuesRenderer/OvValuesRenderer.test.js +0 -62
  78. package/esm/features/crosswalks/AttributesTable/components/ReferenceAttributesRenderer/ReferenceAttributesRenderer.test.d.ts +0 -1
  79. package/esm/features/crosswalks/AttributesTable/components/ReferenceAttributesRenderer/ReferenceAttributesRenderer.test.js +0 -188
  80. package/esm/features/crosswalks/AttributesTable/components/RuleTypeInfoButton/RuleTypeInfoButton.test.d.ts +0 -1
  81. package/esm/features/crosswalks/AttributesTable/components/RuleTypeInfoButton/RuleTypeInfoButton.test.js +0 -17
  82. package/esm/features/crosswalks/AttributesTable/components/RuleTypeRenderer/RuleTypeRenderer.test.d.ts +0 -1
  83. package/esm/features/crosswalks/AttributesTable/components/RuleTypeRenderer/RuleTypeRenderer.test.js +0 -53
  84. package/esm/features/crosswalks/AttributesTable/components/SimpleAttributesRenderer/SimpleAttributesRenderer.test.d.ts +0 -1
  85. package/esm/features/crosswalks/AttributesTable/components/SimpleAttributesRenderer/SimpleAttributesRenderer.test.js +0 -64
  86. package/esm/features/crosswalks/CrosswalkDateEditor/IntegrationCrosswalkDateEditor.test.d.ts +0 -1
  87. package/esm/features/crosswalks/CrosswalkDateEditor/IntegrationCrosswalkDateEditor.test.js +0 -132
  88. package/esm/features/crosswalks/CrosswalkDragLayer/components/CrosswalkDragPreview/CrosswalkDragPreview.test.d.ts +0 -1
  89. package/esm/features/crosswalks/CrosswalkDragLayer/components/CrosswalkDragPreview/CrosswalkDragPreview.test.js +0 -28
@@ -0,0 +1,283 @@
1
+ export var createEntity = function () {
2
+ return {
3
+ uri: 'entities/01L2n5z',
4
+ type: 'configuration/entityTypes/HCP',
5
+ label: 'entity label',
6
+ attributes: {
7
+ Boolean: [
8
+ {
9
+ ov: true,
10
+ type: 'configuration/entityTypes/HCP/attributes/Boolean',
11
+ uri: 'entities/01L2n5z/attributes/Boolean/5nmc3Cp',
12
+ value: 'true'
13
+ }
14
+ ],
15
+ TextField: [
16
+ {
17
+ ov: true,
18
+ type: 'configuration/entityTypes/HCP/attributes/TextField',
19
+ uri: 'entities/01L2n5z/attributes/TextField/5noU1aB',
20
+ value: 'text field value'
21
+ },
22
+ {
23
+ ov: false,
24
+ type: 'configuration/entityTypes/HCP/attributes/TextField',
25
+ uri: 'entities/01L2n5z/attributes/TextField/5noU1aB',
26
+ value: 'another text value',
27
+ ignored: true
28
+ }
29
+ ],
30
+ DeepNested: [
31
+ {
32
+ label: 'Nested Label',
33
+ value: {
34
+ FirstLevelNestedSub1: [
35
+ {
36
+ type: 'configuration/entityTypes/HCP/attributes/DeepNested/attributes/FirstLevelNestedSub1',
37
+ ov: true,
38
+ value: '123',
39
+ uri: 'entities/01L2n5z/attributes/DeepNested/1ZAtO4T6/FirstLevelNestedSub1/1ZAtO8jM'
40
+ }
41
+ ]
42
+ },
43
+ ov: true,
44
+ uri: 'entities/01L2n5z/attributes/DeepNested/1ZAtO4T6'
45
+ }
46
+ ],
47
+ Address: [
48
+ {
49
+ label: 'Reference Address',
50
+ relationshipLabel: 'new address',
51
+ refEntity: {
52
+ objectURI: 'entities/2EpaVt0k',
53
+ type: 'configuration/entityTypes/Location',
54
+ crosswalks: []
55
+ },
56
+ refRelation: {
57
+ objectURI: 'relations/1GrMXM4O',
58
+ type: 'configuration/relationTypes/HasAddress',
59
+ crosswalks: []
60
+ },
61
+ uri: 'entities/2Vek4DnE/attributes/Address/1GrMXM4O',
62
+ value: {
63
+ AddressLine1: [
64
+ {
65
+ ov: true,
66
+ type: 'configuration/entityTypes/Location/attributes/AddressLine1',
67
+ uri: 'entities/2Vek4DnE/attributes/Address/1GrMXM4O/AddressLine1/2GcBL4K00',
68
+ value: 'address line 1 value'
69
+ }
70
+ ]
71
+ },
72
+ startObjectCrosswalks: []
73
+ }
74
+ ],
75
+ ImageGallery: [
76
+ {
77
+ label: '',
78
+ value: {
79
+ UrlThumbnail: [
80
+ {
81
+ type: 'configuration/entityTypes/HCP/attributes/ImageGallery/attributes/UrlThumbnail',
82
+ ov: true,
83
+ value: 'https://s3.amazonaws.com/reltio.qa.ih/thumbnailInew/5iWrjreLxiT2avDKoX3fQmqCu.png',
84
+ uri: 'entities/01L2n5z/attributes/ImageGallery/1IozCV9I/UrlThumbnail/1IozCdfo'
85
+ }
86
+ ]
87
+ },
88
+ ov: true,
89
+ uri: 'entities/01L2n5z/attributes/ImageGallery/1IozCV9I'
90
+ }
91
+ ]
92
+ },
93
+ crosswalks: [
94
+ {
95
+ attributes: [
96
+ 'entities/01L2n5z/attributes/TextField/5noU1aB',
97
+ 'entities/01L2n5z/attributes/Boolean/5nmc3Cp'
98
+ ],
99
+ type: 'configuration/sources/Reltio',
100
+ uri: 'entities/01L2n5z/crosswalks/7F10sMx',
101
+ value: '01L2n5z'
102
+ }
103
+ ]
104
+ };
105
+ };
106
+ export var createMetadata = function () {
107
+ return {
108
+ entityTypes: [
109
+ {
110
+ uri: 'configuration/entityTypes/HCP',
111
+ label: 'HCP',
112
+ attributes: [
113
+ {
114
+ label: 'Boolean',
115
+ name: 'Boolean',
116
+ type: 'Boolean',
117
+ uri: 'configuration/entityTypes/HCP/attributes/Boolean'
118
+ },
119
+ {
120
+ label: 'String Label',
121
+ name: 'TextField',
122
+ type: 'String',
123
+ uri: 'configuration/entityTypes/HCP/attributes/TextField'
124
+ },
125
+ {
126
+ label: 'Affiliated with',
127
+ name: 'affiliatedwith',
128
+ type: 'String',
129
+ uri: 'configuration/entityTypes/HCP/attributes/affiliatedwith',
130
+ hidden: true
131
+ },
132
+ {
133
+ label: 'String Label 2',
134
+ name: 'TextField 2',
135
+ type: 'String',
136
+ uri: 'configuration/entityTypes/HCP/attributes/TextField2'
137
+ },
138
+ {
139
+ label: 'Hidden',
140
+ name: 'Hidden',
141
+ type: 'String',
142
+ uri: 'configuration/entityTypes/HCP/attributes/Hidden',
143
+ hidden: true
144
+ },
145
+ {
146
+ label: 'Nested',
147
+ name: 'Nested',
148
+ type: 'Nested',
149
+ uri: 'configuration/entityTypes/HCP/attributes/Nested'
150
+ },
151
+ {
152
+ label: 'Nested attribute',
153
+ name: 'DeepNested',
154
+ type: 'Nested',
155
+ uri: 'configuration/entityTypes/HCP/attributes/DeepNested'
156
+ },
157
+ {
158
+ label: 'Reference',
159
+ name: 'Reference',
160
+ type: 'Reference',
161
+ uri: 'configuration/entityTypes/HCP/attributes/Reference'
162
+ },
163
+ {
164
+ label: 'Image',
165
+ name: 'Image',
166
+ type: 'Image',
167
+ uri: 'configuration/entityTypes/HCP/attributes/Image'
168
+ }
169
+ ],
170
+ survivorshipGroups: [
171
+ {
172
+ uri: 'configuration/entityTypes/HCP/survivorshipGroups/default',
173
+ default: true,
174
+ mapping: [
175
+ {
176
+ attribute: 'configuration/entityTypes/HCP/attributes/TextField',
177
+ survivorshipStrategy: 'LUD'
178
+ },
179
+ {
180
+ attribute: 'configuration/entityTypes/HCP/attributes/Boolean',
181
+ survivorshipStrategy: 'Frequency'
182
+ },
183
+ {
184
+ attribute: 'configuration/entityTypes/HCP/attributes/DeepNested',
185
+ survivorshipStrategy: 'SRC_SYS'
186
+ },
187
+ {
188
+ attribute: 'configuration/entityTypes/HCP/attributes/ImageGallery',
189
+ primaryAttributeUri: 'configuration/entityTypes/HCP/attributes/OtherAttributeWinner',
190
+ survivorshipStrategy: 'OtherAttributeWinnerCrosswalk'
191
+ },
192
+ {
193
+ attribute: 'configuration/entityTypes/Location/attributes/Address',
194
+ comparisonAttributeUri: 'configuration/relationTypes/HasAddress/attributes/Status',
195
+ survivorshipStrategy: 'MinValue'
196
+ }
197
+ ]
198
+ }
199
+ ]
200
+ }
201
+ ],
202
+ survivorshipStrategies: [
203
+ {
204
+ uri: 'configuration/survivorshipStrategies/LUD',
205
+ label: 'Recency'
206
+ },
207
+ {
208
+ uri: 'configuration/survivorshipStrategies/Frequency',
209
+ label: 'Frequency'
210
+ },
211
+ {
212
+ uri: 'configuration/survivorshipStrategies/SRC_SYS',
213
+ label: 'Source system'
214
+ },
215
+ {
216
+ uri: 'configuration/survivorshipStrategies/OtherAttributeWinnerCrosswalk',
217
+ label: 'Other Attribute Winner Crosswalk'
218
+ },
219
+ {
220
+ uri: 'configuration/survivorshipStrategies/MinValue',
221
+ label: 'Minimum value'
222
+ }
223
+ ],
224
+ sources: [
225
+ {
226
+ uri: 'configuration/sources/Reltio',
227
+ label: 'Reltio'
228
+ }
229
+ ]
230
+ };
231
+ };
232
+ export var selectedAttributeTypes = [
233
+ {
234
+ description: 'String Attribute',
235
+ label: 'String Label',
236
+ name: 'TextField',
237
+ type: 'String',
238
+ uri: 'configuration/entityTypes/HCP/attributes/TextField'
239
+ },
240
+ {
241
+ description: 'Yes or No',
242
+ label: 'Boolean',
243
+ name: 'Boolean',
244
+ type: 'Boolean',
245
+ uri: 'configuration/entityTypes/HCP/attributes/Boolean'
246
+ },
247
+ {
248
+ label: 'Nested attribute',
249
+ name: 'DeepNested',
250
+ type: 'Nested',
251
+ uri: 'configuration/entityTypes/HCP/attributes/DeepNested',
252
+ attributes: [
253
+ {
254
+ label: 'Int_HCP',
255
+ name: 'FirstLevelNestedSub1',
256
+ type: 'Int',
257
+ uri: 'configuration/entityTypes/HCP/attributes/DeepNested/attributes/FirstLevelNestedSub1'
258
+ }
259
+ ]
260
+ },
261
+ {
262
+ label: 'Address',
263
+ name: 'Address',
264
+ access: ['READ'],
265
+ type: 'Reference',
266
+ referencedAttributeURIs: ['configuration/entityTypes/Location/attributes/AddressLine1'],
267
+ uri: 'configuration/entityTypes/Location/attributes/Address'
268
+ },
269
+ {
270
+ label: 'Image Gallery',
271
+ name: 'ImageGallery',
272
+ type: 'Image',
273
+ uri: 'configuration/entityTypes/HCP/attributes/ImageGallery',
274
+ attributes: [
275
+ {
276
+ label: 'Small image url (S3)',
277
+ name: 'UrlThumbnail',
278
+ type: 'String',
279
+ uri: 'configuration/entityTypes/HCP/attributes/ImageGallery/attributes/UrlThumbnail'
280
+ }
281
+ ]
282
+ }
283
+ ];