@reltio/components 1.4.1997 → 1.4.1999

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 (228) hide show
  1. package/cjs/UpSetChart/UpSetChart.d.ts +5 -8
  2. package/cjs/UpSetChart/UpSetChart.js +61 -5
  3. package/cjs/UpSetChart/UpSetChart.test.js +198 -0
  4. package/cjs/UpSetChart/components/IntersectionsChart/IntersectionsChart.d.ts +15 -0
  5. package/cjs/UpSetChart/components/IntersectionsChart/IntersectionsChart.js +66 -0
  6. package/cjs/UpSetChart/components/IntersectionsChart/index.d.ts +1 -0
  7. package/cjs/UpSetChart/components/IntersectionsChart/index.js +5 -0
  8. package/cjs/UpSetChart/components/IntersectionsChart/styles.d.ts +1 -0
  9. package/cjs/UpSetChart/components/IntersectionsChart/styles.js +32 -0
  10. package/cjs/UpSetChart/components/IntersectionsChartAxis/IntersectionsChartAxis.d.ts +10 -0
  11. package/cjs/UpSetChart/components/IntersectionsChartAxis/IntersectionsChartAxis.js +64 -0
  12. package/cjs/UpSetChart/components/IntersectionsChartAxis/index.d.ts +1 -0
  13. package/cjs/UpSetChart/components/IntersectionsChartAxis/index.js +5 -0
  14. package/cjs/UpSetChart/components/IntersectionsChartAxis/styles.d.ts +1 -0
  15. package/cjs/UpSetChart/components/IntersectionsChartAxis/styles.js +32 -0
  16. package/cjs/UpSetChart/components/IntersectionsMatrix/IntersectionsMatrix.d.ts +13 -0
  17. package/cjs/UpSetChart/components/IntersectionsMatrix/IntersectionsMatrix.js +56 -0
  18. package/cjs/UpSetChart/components/IntersectionsMatrix/index.d.ts +1 -0
  19. package/cjs/UpSetChart/components/IntersectionsMatrix/index.js +5 -0
  20. package/cjs/UpSetChart/components/IntersectionsMatrix/styles.d.ts +1 -0
  21. package/cjs/UpSetChart/components/IntersectionsMatrix/styles.js +27 -0
  22. package/cjs/UpSetChart/components/SetsChart/SetsChart.d.ts +15 -0
  23. package/cjs/UpSetChart/components/SetsChart/SetsChart.js +58 -0
  24. package/cjs/UpSetChart/components/SetsChart/index.d.ts +1 -0
  25. package/cjs/UpSetChart/components/SetsChart/index.js +5 -0
  26. package/cjs/UpSetChart/components/SetsChart/styles.d.ts +1 -0
  27. package/cjs/UpSetChart/components/SetsChart/styles.js +43 -0
  28. package/cjs/UpSetChart/components/SetsChartAxis/SetsChartAxis.d.ts +6 -0
  29. package/cjs/UpSetChart/components/SetsChartAxis/SetsChartAxis.js +20 -0
  30. package/cjs/UpSetChart/components/SetsChartAxis/index.d.ts +1 -0
  31. package/cjs/UpSetChart/components/SetsChartAxis/index.js +5 -0
  32. package/cjs/UpSetChart/components/SetsChartAxis/styles.d.ts +1 -0
  33. package/cjs/UpSetChart/components/SetsChartAxis/styles.js +17 -0
  34. package/cjs/UpSetChart/constants.d.ts +16 -3
  35. package/cjs/UpSetChart/constants.js +20 -4
  36. package/cjs/UpSetChart/gameOfThrones.test-data.d.ts +4 -0
  37. package/cjs/UpSetChart/gameOfThrones.test-data.js +26 -0
  38. package/cjs/UpSetChart/helpers.d.ts +20 -0
  39. package/cjs/UpSetChart/helpers.js +127 -0
  40. package/cjs/UpSetChart/styles.d.ts +4 -1
  41. package/cjs/UpSetChart/styles.js +11 -12
  42. package/cjs/UpSetChart/types.d.ts +16 -0
  43. package/cjs/UpSetChart/types.js +2 -0
  44. package/cjs/UpSetChart/useUpSetChartSizes.d.ts +20 -0
  45. package/cjs/UpSetChart/useUpSetChartSizes.js +34 -0
  46. package/cjs/features/activity-log/ActivitiesFactory/ActivitiesFactory.d.ts +1 -1
  47. package/cjs/features/activity-log/ActivitiesFactory/ActivitiesFactory.js +1 -1
  48. package/cjs/features/activity-log/ActivitiesFactory/ActivitiesFactory.test.js +267 -0
  49. package/cjs/features/activity-log/ActivitiesFactory/components/CommentActivity/CommentActivity.d.ts +1 -2
  50. package/cjs/features/activity-log/ActivitiesFactory/components/CommentActivity/CommentActivity.js +1 -1
  51. package/cjs/features/activity-log/ActivitiesFactory/components/CommentActivity/CommentActivity.test.js +5 -23
  52. package/cjs/features/activity-log/ActivitiesFactory/components/GroupActivity/GroupActivity.js +2 -2
  53. package/cjs/features/activity-log/ActivitiesFactory/components/GroupActivity/GroupActivity.test.js +3 -23
  54. package/cjs/features/activity-log/ActivitiesFactory/components/MergeActivity/MergeActivity.js +2 -2
  55. package/cjs/features/activity-log/ActivitiesFactory/components/MergeActivity/MergeActivity.test.js +81 -102
  56. package/cjs/features/activity-log/ActivitiesFactory/components/ObjectLabel/ObjectLabel.d.ts +2 -2
  57. package/cjs/features/activity-log/ActivitiesFactory/components/ObjectLabel/ObjectLabel.js +24 -2
  58. package/cjs/features/activity-log/ActivitiesFactory/components/PotentialMatchActivity/PotentialMatchActivity.js +1 -1
  59. package/cjs/features/activity-log/ActivitiesFactory/components/PotentialMatchActivity/PotentialMatchActivity.test.js +69 -48
  60. package/cjs/features/activity-log/ActivitiesFactory/components/ProfileActivity/ProfileActivity.js +2 -2
  61. package/cjs/features/activity-log/ActivitiesFactory/components/ProfileActivity/ProfileActivity.test.js +123 -107
  62. package/cjs/features/activity-log/ActivitiesFactory/components/RelationActivity/RelationActivity.js +2 -2
  63. package/cjs/features/activity-log/ActivitiesFactory/components/RelationActivity/RelationActivity.test.js +128 -115
  64. package/cjs/features/activity-log/ActivitiesFactory/components/SearchActivity/SearchActivity.js +1 -1
  65. package/cjs/features/activity-log/ActivitiesFactory/components/SearchActivity/SearchActivity.test.js +160 -183
  66. package/cjs/features/activity-log/ActivitiesFactory/components/SimpleActivity/SimpleActivity.js +2 -2
  67. package/cjs/features/activity-log/ActivitiesFactory/components/SimpleActivity/SimpleActivity.test.js +44 -28
  68. package/cjs/features/activity-log/ActivitiesFactory/components/SynchronizationIssuesActivity/SynchronizationIssuesActivity.js +4 -5
  69. package/cjs/features/activity-log/ActivitiesFactory/components/SynchronizationIssuesActivity/SynchronizationIssuesActivity.test.js +54 -47
  70. package/cjs/features/activity-log/ActivityLog/ActivityLog.test.js +83 -22
  71. package/cjs/features/activity-log/ActivityLog/components/GroupItem/GroupItem.js +1 -1
  72. package/cjs/features/activity-log/ActivityLogFilter/ActivityLogFilter.test.js +784 -0
  73. package/cjs/features/activity-log/ActivityTitle/ActivityTitle.d.ts +2 -3
  74. package/cjs/features/activity-log/ActivityTitle/ActivityTitle.js +24 -2
  75. package/cjs/features/activity-log/CollapsibleActivityRecords/CollapsibleActivityRecords.test.js +102 -79
  76. package/cjs/features/activity-log/EntityObject/EntityObject.test.js +35 -26
  77. package/cjs/features/activity-log/Field/Field.d.ts +2 -3
  78. package/cjs/features/activity-log/Field/Field.js +24 -2
  79. package/cjs/features/activity-log/PotentialMatchRecord/PotentialMatchRecord.test.js +160 -34
  80. package/cjs/features/activity-log/PotentialMatchRecord/components/PotentialMatchField/PotentialMatchField.js +1 -1
  81. package/cjs/features/activity-log/RecordUpdates/RecordUpdates.test.js +207 -0
  82. package/cjs/features/activity-log/RecordUpdates/components/DeltaField/DeltaField.js +1 -1
  83. package/cjs/features/activity-log/RelationObject/RelationObject.test.js +46 -29
  84. package/cjs/features/activity-log/RelationRecord/RelationRecord.test.js +88 -68
  85. package/esm/UpSetChart/UpSetChart.d.ts +5 -8
  86. package/esm/UpSetChart/UpSetChart.js +38 -5
  87. package/esm/UpSetChart/UpSetChart.test.js +193 -0
  88. package/esm/UpSetChart/components/IntersectionsChart/IntersectionsChart.d.ts +15 -0
  89. package/esm/UpSetChart/components/IntersectionsChart/IntersectionsChart.js +39 -0
  90. package/esm/UpSetChart/components/IntersectionsChart/index.d.ts +1 -0
  91. package/esm/UpSetChart/components/IntersectionsChart/index.js +1 -0
  92. package/esm/UpSetChart/components/IntersectionsChart/styles.d.ts +1 -0
  93. package/esm/UpSetChart/components/IntersectionsChart/styles.js +29 -0
  94. package/esm/UpSetChart/components/IntersectionsChartAxis/IntersectionsChartAxis.d.ts +10 -0
  95. package/esm/UpSetChart/components/IntersectionsChartAxis/IntersectionsChartAxis.js +34 -0
  96. package/esm/UpSetChart/components/IntersectionsChartAxis/index.d.ts +1 -0
  97. package/esm/UpSetChart/components/IntersectionsChartAxis/index.js +1 -0
  98. package/esm/UpSetChart/components/IntersectionsChartAxis/styles.d.ts +1 -0
  99. package/esm/UpSetChart/components/IntersectionsChartAxis/styles.js +29 -0
  100. package/esm/UpSetChart/components/IntersectionsMatrix/IntersectionsMatrix.d.ts +13 -0
  101. package/esm/UpSetChart/components/IntersectionsMatrix/IntersectionsMatrix.js +26 -0
  102. package/esm/UpSetChart/components/IntersectionsMatrix/index.d.ts +1 -0
  103. package/esm/UpSetChart/components/IntersectionsMatrix/index.js +1 -0
  104. package/esm/UpSetChart/components/IntersectionsMatrix/styles.d.ts +1 -0
  105. package/esm/UpSetChart/components/IntersectionsMatrix/styles.js +24 -0
  106. package/esm/UpSetChart/components/SetsChart/SetsChart.d.ts +15 -0
  107. package/esm/UpSetChart/components/SetsChart/SetsChart.js +31 -0
  108. package/esm/UpSetChart/components/SetsChart/index.d.ts +1 -0
  109. package/esm/UpSetChart/components/SetsChart/index.js +1 -0
  110. package/esm/UpSetChart/components/SetsChart/styles.d.ts +1 -0
  111. package/esm/UpSetChart/components/SetsChart/styles.js +40 -0
  112. package/esm/UpSetChart/components/SetsChartAxis/SetsChartAxis.d.ts +6 -0
  113. package/esm/UpSetChart/components/SetsChartAxis/SetsChartAxis.js +13 -0
  114. package/esm/UpSetChart/components/SetsChartAxis/index.d.ts +1 -0
  115. package/esm/UpSetChart/components/SetsChartAxis/index.js +1 -0
  116. package/esm/UpSetChart/components/SetsChartAxis/styles.d.ts +1 -0
  117. package/esm/UpSetChart/components/SetsChartAxis/styles.js +14 -0
  118. package/esm/UpSetChart/constants.d.ts +16 -3
  119. package/esm/UpSetChart/constants.js +19 -3
  120. package/esm/UpSetChart/gameOfThrones.test-data.d.ts +4 -0
  121. package/esm/UpSetChart/gameOfThrones.test-data.js +23 -0
  122. package/esm/UpSetChart/helpers.d.ts +20 -0
  123. package/esm/UpSetChart/helpers.js +120 -0
  124. package/esm/UpSetChart/styles.d.ts +4 -1
  125. package/esm/UpSetChart/styles.js +11 -12
  126. package/esm/UpSetChart/types.d.ts +16 -0
  127. package/esm/UpSetChart/useUpSetChartSizes.d.ts +20 -0
  128. package/esm/UpSetChart/useUpSetChartSizes.js +30 -0
  129. package/esm/features/activity-log/ActivitiesFactory/ActivitiesFactory.d.ts +1 -1
  130. package/esm/features/activity-log/ActivitiesFactory/ActivitiesFactory.js +1 -1
  131. package/esm/features/activity-log/ActivitiesFactory/ActivitiesFactory.test.js +262 -0
  132. package/esm/features/activity-log/ActivitiesFactory/components/CommentActivity/CommentActivity.d.ts +1 -2
  133. package/esm/features/activity-log/ActivitiesFactory/components/CommentActivity/CommentActivity.js +1 -1
  134. package/esm/features/activity-log/ActivitiesFactory/components/CommentActivity/CommentActivity.test.js +5 -23
  135. package/esm/features/activity-log/ActivitiesFactory/components/GroupActivity/GroupActivity.js +2 -2
  136. package/esm/features/activity-log/ActivitiesFactory/components/GroupActivity/GroupActivity.test.js +3 -23
  137. package/esm/features/activity-log/ActivitiesFactory/components/MergeActivity/MergeActivity.js +2 -2
  138. package/esm/features/activity-log/ActivitiesFactory/components/MergeActivity/MergeActivity.test.js +81 -102
  139. package/esm/features/activity-log/ActivitiesFactory/components/ObjectLabel/ObjectLabel.d.ts +2 -2
  140. package/esm/features/activity-log/ActivitiesFactory/components/ObjectLabel/ObjectLabel.js +24 -2
  141. package/esm/features/activity-log/ActivitiesFactory/components/PotentialMatchActivity/PotentialMatchActivity.js +1 -1
  142. package/esm/features/activity-log/ActivitiesFactory/components/PotentialMatchActivity/PotentialMatchActivity.test.js +69 -48
  143. package/esm/features/activity-log/ActivitiesFactory/components/ProfileActivity/ProfileActivity.js +2 -2
  144. package/esm/features/activity-log/ActivitiesFactory/components/ProfileActivity/ProfileActivity.test.js +123 -107
  145. package/esm/features/activity-log/ActivitiesFactory/components/RelationActivity/RelationActivity.js +2 -2
  146. package/esm/features/activity-log/ActivitiesFactory/components/RelationActivity/RelationActivity.test.js +128 -115
  147. package/esm/features/activity-log/ActivitiesFactory/components/SearchActivity/SearchActivity.js +1 -1
  148. package/esm/features/activity-log/ActivitiesFactory/components/SearchActivity/SearchActivity.test.js +160 -183
  149. package/esm/features/activity-log/ActivitiesFactory/components/SimpleActivity/SimpleActivity.js +2 -2
  150. package/esm/features/activity-log/ActivitiesFactory/components/SimpleActivity/SimpleActivity.test.js +44 -28
  151. package/esm/features/activity-log/ActivitiesFactory/components/SynchronizationIssuesActivity/SynchronizationIssuesActivity.js +4 -5
  152. package/esm/features/activity-log/ActivitiesFactory/components/SynchronizationIssuesActivity/SynchronizationIssuesActivity.test.js +54 -47
  153. package/esm/features/activity-log/ActivityLog/ActivityLog.test.js +83 -22
  154. package/esm/features/activity-log/ActivityLog/components/GroupItem/GroupItem.js +1 -1
  155. package/esm/features/activity-log/ActivityLogFilter/ActivityLogFilter.test.js +779 -0
  156. package/esm/features/activity-log/ActivityTitle/ActivityTitle.d.ts +2 -3
  157. package/esm/features/activity-log/ActivityTitle/ActivityTitle.js +24 -2
  158. package/esm/features/activity-log/CollapsibleActivityRecords/CollapsibleActivityRecords.test.js +104 -58
  159. package/esm/features/activity-log/EntityObject/EntityObject.test.js +35 -26
  160. package/esm/features/activity-log/Field/Field.d.ts +2 -3
  161. package/esm/features/activity-log/Field/Field.js +24 -2
  162. package/esm/features/activity-log/PotentialMatchRecord/PotentialMatchRecord.test.js +160 -34
  163. package/esm/features/activity-log/PotentialMatchRecord/components/PotentialMatchField/PotentialMatchField.js +1 -1
  164. package/esm/features/activity-log/RecordUpdates/RecordUpdates.test.js +202 -0
  165. package/esm/features/activity-log/RecordUpdates/components/DeltaField/DeltaField.js +1 -1
  166. package/esm/features/activity-log/RelationObject/RelationObject.test.js +46 -29
  167. package/esm/features/activity-log/RelationRecord/RelationRecord.test.js +88 -68
  168. package/package.json +1 -1
  169. package/cjs/features/activity-log/ActivityExportButton/ActivityExportButton.specs.js +0 -142
  170. package/cjs/features/activity-log/ActivityFilterButton/ActivityFilterButton.specs.js +0 -131
  171. package/cjs/features/activity-log/ActivityFilterEditor/ActivityFilterEditor.specs.js +0 -252
  172. package/cjs/features/activity-log/ActivityFilterEditor/components/ActivitySelector/ActivitySelector.specs.js +0 -158
  173. package/cjs/features/activity-log/ActivityFilterEditor/components/EntityChangedSelectors/EntityChangedSelectors.specs.js +0 -135
  174. package/cjs/features/activity-log/ActivityFilterEditor/components/EntityTypesSelector/EntityTypesSelector.specs.js +0 -65
  175. package/cjs/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.specs.js +0 -119
  176. package/cjs/features/activity-log/ActivityFilterEditor/editor.test-data.d.ts +0 -25
  177. package/cjs/features/activity-log/ActivityFilterEditor/editor.test-data.js +0 -75
  178. package/cjs/features/activity-log/ActivityLog/components/ActivityItem/ActivityItem.test.js +0 -140
  179. package/cjs/features/activity-log/ActivityLog/components/GroupItem/GroupItem.test.js +0 -41
  180. package/cjs/features/activity-log/ActivityLogFilter/ActivityLogFilter.specs.d.ts +0 -1
  181. package/cjs/features/activity-log/ActivityLogFilter/ActivityLogFilter.specs.js +0 -87
  182. package/cjs/features/activity-log/ActivityTitle/ActivityTitle.test.d.ts +0 -1
  183. package/cjs/features/activity-log/ActivityTitle/ActivityTitle.test.js +0 -19
  184. package/cjs/features/activity-log/PotentialMatchRecord/components/PotentialMatchField/PotentialMatchField.test.d.ts +0 -1
  185. package/cjs/features/activity-log/PotentialMatchRecord/components/PotentialMatchField/PotentialMatchField.test.js +0 -179
  186. package/cjs/features/activity-log/RecordUpdates/RecordUpdates.specs.d.ts +0 -1
  187. package/cjs/features/activity-log/RecordUpdates/RecordUpdates.specs.js +0 -150
  188. package/cjs/features/activity-log/RecordUpdates/components/DeltaField/DeltaField.test.d.ts +0 -1
  189. package/cjs/features/activity-log/RecordUpdates/components/DeltaField/DeltaField.test.js +0 -124
  190. package/esm/features/activity-log/ActivityExportButton/ActivityExportButton.specs.d.ts +0 -1
  191. package/esm/features/activity-log/ActivityExportButton/ActivityExportButton.specs.js +0 -137
  192. package/esm/features/activity-log/ActivityFilterButton/ActivityFilterButton.specs.d.ts +0 -1
  193. package/esm/features/activity-log/ActivityFilterButton/ActivityFilterButton.specs.js +0 -126
  194. package/esm/features/activity-log/ActivityFilterEditor/ActivityFilterEditor.specs.d.ts +0 -1
  195. package/esm/features/activity-log/ActivityFilterEditor/ActivityFilterEditor.specs.js +0 -247
  196. package/esm/features/activity-log/ActivityFilterEditor/components/ActivitySelector/ActivitySelector.specs.d.ts +0 -1
  197. package/esm/features/activity-log/ActivityFilterEditor/components/ActivitySelector/ActivitySelector.specs.js +0 -153
  198. package/esm/features/activity-log/ActivityFilterEditor/components/EntityChangedSelectors/EntityChangedSelectors.specs.d.ts +0 -1
  199. package/esm/features/activity-log/ActivityFilterEditor/components/EntityChangedSelectors/EntityChangedSelectors.specs.js +0 -130
  200. package/esm/features/activity-log/ActivityFilterEditor/components/EntityTypesSelector/EntityTypesSelector.specs.d.ts +0 -1
  201. package/esm/features/activity-log/ActivityFilterEditor/components/EntityTypesSelector/EntityTypesSelector.specs.js +0 -60
  202. package/esm/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.specs.d.ts +0 -1
  203. package/esm/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.specs.js +0 -114
  204. package/esm/features/activity-log/ActivityFilterEditor/editor.test-data.d.ts +0 -25
  205. package/esm/features/activity-log/ActivityFilterEditor/editor.test-data.js +0 -72
  206. package/esm/features/activity-log/ActivityLog/components/ActivityItem/ActivityItem.test.d.ts +0 -1
  207. package/esm/features/activity-log/ActivityLog/components/ActivityItem/ActivityItem.test.js +0 -135
  208. package/esm/features/activity-log/ActivityLog/components/GroupItem/GroupItem.test.d.ts +0 -1
  209. package/esm/features/activity-log/ActivityLog/components/GroupItem/GroupItem.test.js +0 -36
  210. package/esm/features/activity-log/ActivityLogFilter/ActivityLogFilter.specs.d.ts +0 -1
  211. package/esm/features/activity-log/ActivityLogFilter/ActivityLogFilter.specs.js +0 -82
  212. package/esm/features/activity-log/ActivityTitle/ActivityTitle.test.d.ts +0 -1
  213. package/esm/features/activity-log/ActivityTitle/ActivityTitle.test.js +0 -14
  214. package/esm/features/activity-log/PotentialMatchRecord/components/PotentialMatchField/PotentialMatchField.test.d.ts +0 -1
  215. package/esm/features/activity-log/PotentialMatchRecord/components/PotentialMatchField/PotentialMatchField.test.js +0 -151
  216. package/esm/features/activity-log/RecordUpdates/RecordUpdates.specs.d.ts +0 -1
  217. package/esm/features/activity-log/RecordUpdates/RecordUpdates.specs.js +0 -122
  218. package/esm/features/activity-log/RecordUpdates/components/DeltaField/DeltaField.test.d.ts +0 -1
  219. package/esm/features/activity-log/RecordUpdates/components/DeltaField/DeltaField.test.js +0 -119
  220. /package/cjs/{features/activity-log/ActivityExportButton/ActivityExportButton.specs.d.ts → UpSetChart/UpSetChart.test.d.ts} +0 -0
  221. /package/cjs/features/activity-log/{ActivityFilterButton/ActivityFilterButton.specs.d.ts → ActivitiesFactory/ActivitiesFactory.test.d.ts} +0 -0
  222. /package/cjs/features/activity-log/{ActivityFilterEditor/ActivityFilterEditor.specs.d.ts → ActivityLogFilter/ActivityLogFilter.test.d.ts} +0 -0
  223. /package/cjs/features/activity-log/{ActivityFilterEditor/components/ActivitySelector/ActivitySelector.specs.d.ts → RecordUpdates/RecordUpdates.test.d.ts} +0 -0
  224. /package/{cjs/features/activity-log/ActivityFilterEditor/components/EntityChangedSelectors/EntityChangedSelectors.specs.d.ts → esm/UpSetChart/UpSetChart.test.d.ts} +0 -0
  225. /package/{cjs/features/activity-log/ActivityFilterEditor/components/EntityTypesSelector/EntityTypesSelector.specs.d.ts → esm/UpSetChart/types.js} +0 -0
  226. /package/{cjs/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.specs.d.ts → esm/features/activity-log/ActivitiesFactory/ActivitiesFactory.test.d.ts} +0 -0
  227. /package/{cjs/features/activity-log/ActivityLog/components/ActivityItem/ActivityItem.test.d.ts → esm/features/activity-log/ActivityLogFilter/ActivityLogFilter.test.d.ts} +0 -0
  228. /package/{cjs/features/activity-log/ActivityLog/components/GroupItem/GroupItem.test.d.ts → esm/features/activity-log/RecordUpdates/RecordUpdates.test.d.ts} +0 -0
@@ -15,12 +15,7 @@ import { MdmModuleProvider } from '../../../../../contexts/MdmModuleContext';
15
15
  import { ActivityTypes } from '../../../types';
16
16
  import { GroupActivity } from './GroupActivity';
17
17
  var metadata = {
18
- groupTypes: [
19
- {
20
- uri: 'configuration/groupTypes/Test',
21
- label: 'Test group'
22
- }
23
- ]
18
+ groupTypes: [{ uri: 'configuration/groupTypes/Test', label: 'Test group' }]
24
19
  };
25
20
  var setUp = function (props) {
26
21
  var Providers = function (_a) {
@@ -29,28 +24,13 @@ var setUp = function (props) {
29
24
  };
30
25
  return render(React.createElement(GroupActivity, __assign({}, props)), { wrapper: Providers });
31
26
  };
32
- describe('GroupActivity tests', function () {
27
+ describe('Group activity tests', function () {
33
28
  it('should render correctly', function () {
34
29
  var data = {
35
30
  uri: 'activities/d6e61e96-6310-434a-99f9-e694e5f35475',
36
31
  user: 'alexander.kirsanov',
37
32
  timestamp: 1621874356842,
38
- items: [
39
- {
40
- id: '7a5l7pc1',
41
- user: 'alexander.kirsanov',
42
- method: 'POST',
43
- url: '/reltio/api/alenat/groups/7a5l7h5V/members',
44
- clientType: 'Reltio UI',
45
- timestamp: 1621874356842,
46
- objectUri: 'groups/7a5l7h5V',
47
- objectType: 'configuration/groupTypes/Test',
48
- data: {
49
- type: 'GROUP_CHANGED'
50
- },
51
- eventId: '1621874356842_1AeizH7'
52
- }
53
- ],
33
+ items: [{ id: 'sh2Ks8AN', timestamp: 1621874356842, objectType: 'configuration/groupTypes/Test' }],
54
34
  itemsTotal: 1
55
35
  };
56
36
  var props = { type: ActivityTypes.GROUP_CHANGED, data: data };
@@ -7,7 +7,7 @@ export var MergeActivity = function (_a) {
7
7
  var type = _a.type, data = _a.data;
8
8
  var itemsTotal = data.itemsTotal, items = data.items, uri = data.uri;
9
9
  var isMinimized = itemsTotal === 1 && !(items[0].data.potentialMatches || items[0].data.newUri);
10
- return (React.createElement("div", null,
11
- React.createElement(ActivityTitle, { type: type }, isMinimized && React.createElement(EntityObject, { item: items[0] })),
10
+ return (React.createElement("div", { "data-reltio-id": "merge-activity" },
11
+ React.createElement(ActivityTitle, { type: type, "data-reltio-id": "merge-activity-title" }, isMinimized && React.createElement(EntityObject, { item: items[0] })),
12
12
  !isMinimized && (React.createElement(CollapsibleActivityRecords, { activityUri: uri, items: items, RecordComponent: PotentialMatchRecord }))));
13
13
  };
@@ -1,108 +1,87 @@
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
  import React from 'react';
2
- import { shallow } from 'enzyme';
3
- import { MergeActivity } from './MergeActivity';
13
+ import { render, screen, within } from '@testing-library/react';
14
+ import { MdmModuleProvider } from '../../../../../contexts/MdmModuleContext';
4
15
  import { ActivityTypes } from '../../../types';
5
- import { CollapsibleActivityRecords } from '../../../CollapsibleActivityRecords';
6
- describe('MergeActivity tests', function () {
7
- var data = {
8
- uri: 'activities/156a1eda-4c2c-46e3-8550-118c500fb453',
9
- user: 'marat.ahmetzyanov',
10
- timestamp: 1620711408828,
11
- items: [
12
- {
13
- id: '5C94p4Yp',
14
- user: 'marat.ahmetzyanov',
15
- method: 'POST',
16
- url: '/reltio/api/uitest2/entities',
17
- clientType: 'Reltio UI',
18
- timestamp: 1620711408828,
19
- objectUri: 'entities/1PN94HrW',
20
- objectType: 'configuration/entityTypes/Product',
21
- objectLabel: 'ONE',
22
- data: {
23
- mergeReason: 'Merge on the fly',
24
- mergeType: 'ON_THE_FLY',
25
- type: 'ENTITIES_MERGED_ON_THE_FLY',
26
- crosswalks: 'configuration/sources/BRM;null;brm202105111036'
27
- },
28
- eventId: '1620711408828_0Cc3sWZ'
29
- }
30
- ],
31
- itemsTotal: 1
32
- };
33
- var dataPotentialMatch = {
34
- uri: 'activities/8dcbdbce-80ac-4a2c-95f3-e75383fbd10e',
35
- user: 'denis.tkachev',
36
- label: '',
37
- description: '',
38
- timestamp: 1623153008977,
39
- items: [
40
- {
41
- id: '3Ldt0URn',
42
- user: 'denis.tkachev',
43
- method: 'POST',
44
- url: '/reltio/api/uitest3/entities/_same',
45
- clientType: 'Reltio UI',
46
- timestamp: 1623153008977,
47
- objectUri: 'entities/1BTrULsq',
48
- objectType: 'configuration/entityTypes/HCP',
49
- objectLabel: 'Long,',
50
- data: {
51
- mergeReason: 'Merge by hand',
52
- mergeType: 'MANUAL',
53
- potentialMatches: 'entities/17U7U95d',
54
- 'entities/17U7U95d': 'Potential match test,',
55
- type: 'ENTITIES_MERGED_MANUALLY'
56
- },
57
- eventId: '1623153008977_03D3dbM'
58
- }
59
- ],
60
- itemsTotal: 1
61
- };
62
- var dataNewUri = {
63
- uri: 'activities/9449a5d7-1c72-4256-b26a-8b0e95c14899',
64
- user: 'marat.ahmetzyanov',
65
- label: '',
66
- description: '',
67
- timestamp: 1623154966758,
68
- items: [
69
- {
70
- id: '30tEIJXx',
71
- user: 'marat.ahmetzyanov',
72
- method: 'POST',
73
- url: '/reltio/api/uitest3/entities/1futW9kc/_unmerge',
74
- clientType: 'Reltio UI',
75
- timestamp: 1623154966758,
76
- objectUri: 'entities/1futW9kc',
77
- objectType: 'configuration/entityTypes/HCP',
78
- objectLabel: 'HCP DT 1,',
79
- data: {
80
- 'entities/2eIQy30G': 'HCP DT 2,',
81
- newUri: 'entities/2eIQy30G',
82
- type: 'ENTITIES_SPLITTED'
83
- },
84
- eventId: '1623154966758_02lA3ja'
85
- }
86
- ],
87
- itemsTotal: 1
16
+ import { CollapsibleItemsProvider } from '../../../contexts/CollapsibleItemsContext';
17
+ import { MergeActivity } from './MergeActivity';
18
+ var defaultItem = {
19
+ id: '5C94p4Yp',
20
+ objectUri: 'entities/1PN94HrW',
21
+ objectLabel: 'object label',
22
+ timestamp: 1620711408828,
23
+ data: { type: ActivityTypes.ENTITIES_MERGED_ON_THE_FLY }
24
+ };
25
+ var defaultData = {
26
+ uri: 'activities/156a1eda-4c2c-46e3-8550-118c500fb453',
27
+ user: 'marat.ahmetzyanov',
28
+ timestamp: 1620711408828,
29
+ items: [defaultItem],
30
+ itemsTotal: 1
31
+ };
32
+ var defaultProps = {
33
+ data: defaultData,
34
+ type: ActivityTypes.ENTITIES_MERGED_ON_THE_FLY
35
+ };
36
+ var defaultMdmValues = {
37
+ uiPath: 'https://reltio.com/nui'
38
+ };
39
+ var setUp = function (_a) {
40
+ var _b = _a === void 0 ? {} : _a, _c = _b.props, props = _c === void 0 ? defaultProps : _c, _d = _b.mdmValues, mdmValues = _d === void 0 ? defaultMdmValues : _d;
41
+ var Providers = function (_a) {
42
+ var children = _a.children;
43
+ return (React.createElement(MdmModuleProvider, { values: mdmValues },
44
+ React.createElement(CollapsibleItemsProvider, null, children)));
88
45
  };
89
- it('should render correctly minimized', function () {
90
- var wrapper = shallow(React.createElement(MergeActivity, { type: ActivityTypes.ENTITIES_MERGED_ON_THE_FLY, data: data }));
91
- expect(wrapper.find('ActivityTitle').prop('type')).toBe(ActivityTypes.ENTITIES_MERGED_ON_THE_FLY);
92
- expect(wrapper.find('EntityObject').length).toBe(1);
46
+ return render(React.createElement(MergeActivity, __assign({}, props)), { wrapper: Providers });
47
+ };
48
+ describe('Merge activity tests', function () {
49
+ it('should render minimized if itemsTotal is 1 and there are not potentialMatches or newUri fields', function () {
50
+ setUp();
51
+ var title = screen.getByTestId('merge-activity-title');
52
+ within(title).getByText('object label');
53
+ within(title).getByText('Profile merged on the fly');
54
+ });
55
+ it('should render maximized if itemsTotal is 1 but there is potentialMatches field', function () {
56
+ var props = __assign(__assign({}, defaultProps), { data: __assign(__assign({}, defaultData), { items: [
57
+ __assign(__assign({}, defaultItem), { data: {
58
+ type: ActivityTypes.POTENTIAL_MATCHES_FOUND,
59
+ potentialMatches: 'entities/sOoSQYm',
60
+ 'entities/sOoSQYm': 'entity label 1'
61
+ } })
62
+ ] }) });
63
+ setUp({ props: props });
64
+ var title = screen.getByTestId('merge-activity-title');
65
+ within(title).getByText('Profile merged on the fly');
66
+ expect(within(title).queryByText('object label')).not.toBeInTheDocument();
67
+ var record = screen.getByTestId('reltio-activity-log-record');
68
+ within(record).getByText('object label');
69
+ expect(screen.getByTestId('potential-matches-field')).toHaveTextContent('Matches found:entity label 1');
93
70
  });
94
- it('should render correctly maximized', function () {
95
- var wrapper = shallow(React.createElement(MergeActivity, { type: ActivityTypes.ENTITIES_MERGED_MANUALLY, data: dataPotentialMatch }));
96
- expect(wrapper.find('ActivityTitle').prop('type')).toBe(ActivityTypes.ENTITIES_MERGED_MANUALLY);
97
- expect(wrapper.find('EntityObject').length).toBe(0);
98
- var collapsedActivity = wrapper.find(CollapsibleActivityRecords);
99
- expect(collapsedActivity.prop('activityUri')).toBe(dataPotentialMatch.uri);
100
- expect(collapsedActivity.prop('items')).toEqual(dataPotentialMatch.items);
101
- wrapper.setProps({ data: dataNewUri, type: ActivityTypes.ENTITIES_SPLITTED });
102
- expect(wrapper.find('ActivityTitle').prop('type')).toBe(ActivityTypes.ENTITIES_SPLITTED);
103
- expect(wrapper.find('EntityObject').length).toBe(0);
104
- var nextCollapsedActivity = wrapper.find(CollapsibleActivityRecords);
105
- expect(nextCollapsedActivity.prop('activityUri')).toBe(dataNewUri.uri);
106
- expect(nextCollapsedActivity.prop('items')).toEqual(dataNewUri.items);
71
+ it('should render maximized if itemsTotal is 1 but there is newUri field', function () {
72
+ var props = __assign(__assign({}, defaultProps), { data: __assign(__assign({}, defaultData), { items: [
73
+ __assign(__assign({}, defaultItem), { data: {
74
+ type: ActivityTypes.ENTITIES_SPLITTED,
75
+ newUri: 'entities/sOoSQYm',
76
+ 'entities/sOoSQYm': 'entity label 1'
77
+ } })
78
+ ] }) });
79
+ setUp({ props: props });
80
+ var title = screen.getByTestId('merge-activity-title');
81
+ within(title).getByText('Profile merged on the fly');
82
+ expect(within(title).queryByText('object label')).not.toBeInTheDocument();
83
+ var record = screen.getByTestId('reltio-activity-log-record');
84
+ within(record).getByText('object label');
85
+ expect(screen.getByTestId('potential-matches-field')).toHaveTextContent('Un-merged with:entity label 1');
107
86
  });
108
87
  });
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- type Props = {
2
+ type Props = Omit<React.ComponentPropsWithoutRef<'span'>, 'className'> & {
3
3
  label: string;
4
4
  };
5
- export declare const ObjectLabel: ({ label }: Props) => React.JSX.Element;
5
+ export declare const ObjectLabel: ({ label, ...restProps }: Props) => React.JSX.Element;
6
6
  export {};
@@ -1,7 +1,29 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
1
23
  import React from 'react';
2
24
  import { useStyles } from './styles';
3
25
  export var ObjectLabel = function (_a) {
4
- var label = _a.label;
26
+ var label = _a.label, restProps = __rest(_a, ["label"]);
5
27
  var styles = useStyles();
6
- return React.createElement("span", { className: styles.objectLabel }, label);
28
+ return (React.createElement("span", __assign({ className: styles.objectLabel }, restProps), label));
7
29
  };
@@ -4,7 +4,7 @@ import { CollapsibleActivityRecords } from '../../../CollapsibleActivityRecords'
4
4
  import { PotentialMatchRecord } from '../../../PotentialMatchRecord';
5
5
  export var PotentialMatchActivity = function (_a) {
6
6
  var type = _a.type, data = _a.data;
7
- return (React.createElement("div", null,
7
+ return (React.createElement("div", { "data-reltio-id": "potential-match-activity" },
8
8
  React.createElement(ActivityTitle, { type: type }),
9
9
  React.createElement(CollapsibleActivityRecords, { activityUri: data.uri, items: data.items, RecordComponent: PotentialMatchRecord })));
10
10
  };
@@ -1,55 +1,76 @@
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
  import React from 'react';
2
- import { shallow } from 'enzyme';
3
- import { PotentialMatchActivity } from './PotentialMatchActivity';
13
+ import { render, screen } from '@testing-library/react';
14
+ import { MdmModuleProvider } from '../../../../../contexts/MdmModuleContext';
4
15
  import { ActivityTypes } from '../../../types';
5
- import { CollapsibleActivityRecords } from '../../../CollapsibleActivityRecords';
6
- describe('PotentialMatchActivity tests', function () {
7
- var data = {
8
- uri: 'activities/EH.cee6a67a-7bcd-411f-9c19-3c796e44980b',
9
- user: 'IncrementalMatchThread',
10
- timestamp: 1621250963640,
11
- items: [
12
- {
13
- id: '89tO5t8I',
14
- user: 'IncrementalMatchThread',
15
- clientType: 'API',
16
- timestamp: 1621250963640,
17
- objectUri: 'entities/10hy6j0b',
18
- objectType: 'configuration/entityTypes/HCP',
19
- objectLabel: '- cBtCASwtAeEbTxe Agacati',
20
- data: {
21
- 'entities/11EunumT': '- cBtCASwtAeEbTxe Agacati',
22
- potentialMatches: 'entities/11EunumT',
23
- type: 'POTENTIAL_MATCHES_FOUND'
24
- },
25
- eventId: '1621250963640_02o1yQ8'
26
- },
27
- {
28
- id: '89tO5os2',
29
- user: 'IncrementalMatchThread',
30
- clientType: 'API',
31
- timestamp: 1621250963640,
32
- objectUri: 'entities/11EunumT',
33
- objectType: 'configuration/entityTypes/HCP',
34
- objectLabel: '- cBtCASwtAeEbTxe Agacati',
35
- data: {
36
- potentialMatches: 'entities/10hy6j0b,entities/a,entities/b,entities/c',
37
- type: 'POTENTIAL_MATCHES_FOUND',
38
- 'entities/10hy6j0b': '- cBtCASwtAeEbTxe Agacati',
39
- 'entities/a': 'first',
40
- 'entities/b': 'second',
41
- 'entities/c': 'third'
42
- },
43
- eventId: '1621250963640_02f5sXY'
16
+ import { CollapsibleItemsProvider } from '../../../contexts/CollapsibleItemsContext';
17
+ import { PotentialMatchActivity } from './PotentialMatchActivity';
18
+ var defaultData = {
19
+ uri: 'activities/156a1eda-4c2c-46e3-8550-118c500fb453',
20
+ user: 'marat.ahmetzyanov',
21
+ timestamp: 1620711408828,
22
+ items: [
23
+ {
24
+ id: '5C94p4Yp',
25
+ objectUri: 'entities/1PN94HrW',
26
+ objectLabel: 'item 1 label',
27
+ timestamp: 1620711408828,
28
+ data: {
29
+ type: ActivityTypes.ENTITIES_SPLITTED,
30
+ newUri: 'entities/sOoSQYm',
31
+ 'entities/sOoSQYm': 'item 1 entity label 1'
32
+ }
33
+ },
34
+ {
35
+ id: '72Jsk10Kl',
36
+ objectUri: 'entities/KsJmn28A',
37
+ objectLabel: 'item 2 label',
38
+ timestamp: 1620711404672,
39
+ data: {
40
+ type: ActivityTypes.POTENTIAL_MATCHES_FOUND,
41
+ potentialMatches: 'entities/sOoSQYm,entities/o92Bsm1',
42
+ 'entities/sOoSQYm': 'item 2 entity label 1',
43
+ 'entities/o92Bsm1': 'item 2 entity label 2'
44
44
  }
45
- ],
46
- itemsTotal: 2
45
+ }
46
+ ],
47
+ itemsTotal: 2
48
+ };
49
+ var defaultProps = {
50
+ data: defaultData,
51
+ type: ActivityTypes.ENTITIES_SPLITTED
52
+ };
53
+ var defaultMdmValues = {
54
+ uiPath: 'https://reltio.com/nui'
55
+ };
56
+ var setUp = function (_a) {
57
+ var _b = _a === void 0 ? {} : _a, _c = _b.props, props = _c === void 0 ? defaultProps : _c, _d = _b.mdmValues, mdmValues = _d === void 0 ? defaultMdmValues : _d;
58
+ var Providers = function (_a) {
59
+ var children = _a.children;
60
+ return (React.createElement(MdmModuleProvider, { values: mdmValues },
61
+ React.createElement(CollapsibleItemsProvider, null, children)));
47
62
  };
63
+ return render(React.createElement(PotentialMatchActivity, __assign({}, props)), { wrapper: Providers });
64
+ };
65
+ describe('Potential match activity tests', function () {
48
66
  it('should render correctly', function () {
49
- var wrapper = shallow(React.createElement(PotentialMatchActivity, { type: ActivityTypes.POTENTIAL_MATCHES_FOUND, data: data }));
50
- expect(wrapper.find('ActivityTitle').prop('type')).toBe(ActivityTypes.POTENTIAL_MATCHES_FOUND);
51
- var collapsedActivity = wrapper.find(CollapsibleActivityRecords);
52
- expect(collapsedActivity.prop('activityUri')).toBe(data.uri);
53
- expect(collapsedActivity.prop('items')).toEqual(data.items);
67
+ setUp();
68
+ screen.getByText('Profile un-merged');
69
+ var records = screen.getAllByTestId('reltio-activity-log-record');
70
+ expect(records).toHaveLength(2);
71
+ expect(records[0]).toHaveTextContent('item 1 label');
72
+ expect(records[0]).toHaveTextContent('Un-merged with:item 1 entity label 1');
73
+ expect(records[1]).toHaveTextContent('item 2 label');
74
+ expect(records[1]).toHaveTextContent('Matches found:item 2 entity label 1, item 2 entity label 2');
54
75
  });
55
76
  });
@@ -7,7 +7,7 @@ export var ProfileActivity = function (_a) {
7
7
  var _b;
8
8
  var type = _a.type, data = _a.data;
9
9
  var isMinimized = data.itemsTotal === 1 && !((_b = data.items[0].deltaCollection) === null || _b === void 0 ? void 0 : _b.delta);
10
- return (React.createElement("div", null,
11
- React.createElement(ActivityTitle, { type: type }, isMinimized && React.createElement(EntityObject, { item: data.items[0] })),
10
+ return (React.createElement("div", { "data-reltio-id": "profile-activity" },
11
+ React.createElement(ActivityTitle, { type: type, "data-reltio-id": "profile-activity-title" }, isMinimized && React.createElement(EntityObject, { item: data.items[0] })),
12
12
  !isMinimized && (React.createElement(CollapsibleActivityRecords, { activityUri: data.uri, items: data.items, RecordComponent: EntityRecord }))));
13
13
  };