@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
@@ -10,7 +10,7 @@ var CollapsibleActivityRecords_1 = require("../../../CollapsibleActivityRecords"
10
10
  var PotentialMatchRecord_1 = require("../../../PotentialMatchRecord");
11
11
  var PotentialMatchActivity = function (_a) {
12
12
  var type = _a.type, data = _a.data;
13
- return (react_1.default.createElement("div", null,
13
+ return (react_1.default.createElement("div", { "data-reltio-id": "potential-match-activity" },
14
14
  react_1.default.createElement(ActivityTitle_1.ActivityTitle, { type: type }),
15
15
  react_1.default.createElement(CollapsibleActivityRecords_1.CollapsibleActivityRecords, { activityUri: data.uri, items: data.items, RecordComponent: PotentialMatchRecord_1.PotentialMatchRecord })));
16
16
  };
@@ -1,60 +1,81 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
15
  };
5
16
  Object.defineProperty(exports, "__esModule", { value: true });
6
17
  var react_1 = __importDefault(require("react"));
7
- var enzyme_1 = require("enzyme");
8
- var PotentialMatchActivity_1 = require("./PotentialMatchActivity");
18
+ var react_2 = require("@testing-library/react");
19
+ var MdmModuleContext_1 = require("../../../../../contexts/MdmModuleContext");
9
20
  var types_1 = require("../../../types");
10
- var CollapsibleActivityRecords_1 = require("../../../CollapsibleActivityRecords");
11
- describe('PotentialMatchActivity tests', function () {
12
- var data = {
13
- uri: 'activities/EH.cee6a67a-7bcd-411f-9c19-3c796e44980b',
14
- user: 'IncrementalMatchThread',
15
- timestamp: 1621250963640,
16
- items: [
17
- {
18
- id: '89tO5t8I',
19
- user: 'IncrementalMatchThread',
20
- clientType: 'API',
21
- timestamp: 1621250963640,
22
- objectUri: 'entities/10hy6j0b',
23
- objectType: 'configuration/entityTypes/HCP',
24
- objectLabel: '- cBtCASwtAeEbTxe Agacati',
25
- data: {
26
- 'entities/11EunumT': '- cBtCASwtAeEbTxe Agacati',
27
- potentialMatches: 'entities/11EunumT',
28
- type: 'POTENTIAL_MATCHES_FOUND'
29
- },
30
- eventId: '1621250963640_02o1yQ8'
31
- },
32
- {
33
- id: '89tO5os2',
34
- user: 'IncrementalMatchThread',
35
- clientType: 'API',
36
- timestamp: 1621250963640,
37
- objectUri: 'entities/11EunumT',
38
- objectType: 'configuration/entityTypes/HCP',
39
- objectLabel: '- cBtCASwtAeEbTxe Agacati',
40
- data: {
41
- potentialMatches: 'entities/10hy6j0b,entities/a,entities/b,entities/c',
42
- type: 'POTENTIAL_MATCHES_FOUND',
43
- 'entities/10hy6j0b': '- cBtCASwtAeEbTxe Agacati',
44
- 'entities/a': 'first',
45
- 'entities/b': 'second',
46
- 'entities/c': 'third'
47
- },
48
- eventId: '1621250963640_02f5sXY'
21
+ var CollapsibleItemsContext_1 = require("../../../contexts/CollapsibleItemsContext");
22
+ var PotentialMatchActivity_1 = require("./PotentialMatchActivity");
23
+ var defaultData = {
24
+ uri: 'activities/156a1eda-4c2c-46e3-8550-118c500fb453',
25
+ user: 'marat.ahmetzyanov',
26
+ timestamp: 1620711408828,
27
+ items: [
28
+ {
29
+ id: '5C94p4Yp',
30
+ objectUri: 'entities/1PN94HrW',
31
+ objectLabel: 'item 1 label',
32
+ timestamp: 1620711408828,
33
+ data: {
34
+ type: types_1.ActivityTypes.ENTITIES_SPLITTED,
35
+ newUri: 'entities/sOoSQYm',
36
+ 'entities/sOoSQYm': 'item 1 entity label 1'
37
+ }
38
+ },
39
+ {
40
+ id: '72Jsk10Kl',
41
+ objectUri: 'entities/KsJmn28A',
42
+ objectLabel: 'item 2 label',
43
+ timestamp: 1620711404672,
44
+ data: {
45
+ type: types_1.ActivityTypes.POTENTIAL_MATCHES_FOUND,
46
+ potentialMatches: 'entities/sOoSQYm,entities/o92Bsm1',
47
+ 'entities/sOoSQYm': 'item 2 entity label 1',
48
+ 'entities/o92Bsm1': 'item 2 entity label 2'
49
49
  }
50
- ],
51
- itemsTotal: 2
50
+ }
51
+ ],
52
+ itemsTotal: 2
53
+ };
54
+ var defaultProps = {
55
+ data: defaultData,
56
+ type: types_1.ActivityTypes.ENTITIES_SPLITTED
57
+ };
58
+ var defaultMdmValues = {
59
+ uiPath: 'https://reltio.com/nui'
60
+ };
61
+ var setUp = function (_a) {
62
+ var _b = _a === void 0 ? {} : _a, _c = _b.props, props = _c === void 0 ? defaultProps : _c, _d = _b.mdmValues, mdmValues = _d === void 0 ? defaultMdmValues : _d;
63
+ var Providers = function (_a) {
64
+ var children = _a.children;
65
+ return (react_1.default.createElement(MdmModuleContext_1.MdmModuleProvider, { values: mdmValues },
66
+ react_1.default.createElement(CollapsibleItemsContext_1.CollapsibleItemsProvider, null, children)));
52
67
  };
68
+ return (0, react_2.render)(react_1.default.createElement(PotentialMatchActivity_1.PotentialMatchActivity, __assign({}, props)), { wrapper: Providers });
69
+ };
70
+ describe('Potential match activity tests', function () {
53
71
  it('should render correctly', function () {
54
- var wrapper = (0, enzyme_1.shallow)(react_1.default.createElement(PotentialMatchActivity_1.PotentialMatchActivity, { type: types_1.ActivityTypes.POTENTIAL_MATCHES_FOUND, data: data }));
55
- expect(wrapper.find('ActivityTitle').prop('type')).toBe(types_1.ActivityTypes.POTENTIAL_MATCHES_FOUND);
56
- var collapsedActivity = wrapper.find(CollapsibleActivityRecords_1.CollapsibleActivityRecords);
57
- expect(collapsedActivity.prop('activityUri')).toBe(data.uri);
58
- expect(collapsedActivity.prop('items')).toEqual(data.items);
72
+ setUp();
73
+ react_2.screen.getByText('Profile un-merged');
74
+ var records = react_2.screen.getAllByTestId('reltio-activity-log-record');
75
+ expect(records).toHaveLength(2);
76
+ expect(records[0]).toHaveTextContent('item 1 label');
77
+ expect(records[0]).toHaveTextContent('Un-merged with:item 1 entity label 1');
78
+ expect(records[1]).toHaveTextContent('item 2 label');
79
+ expect(records[1]).toHaveTextContent('Matches found:item 2 entity label 1, item 2 entity label 2');
59
80
  });
60
81
  });
@@ -13,8 +13,8 @@ var ProfileActivity = function (_a) {
13
13
  var _b;
14
14
  var type = _a.type, data = _a.data;
15
15
  var isMinimized = data.itemsTotal === 1 && !((_b = data.items[0].deltaCollection) === null || _b === void 0 ? void 0 : _b.delta);
16
- return (react_1.default.createElement("div", null,
17
- react_1.default.createElement(ActivityTitle_1.ActivityTitle, { type: type }, isMinimized && react_1.default.createElement(EntityObject_1.EntityObject, { item: data.items[0] })),
16
+ return (react_1.default.createElement("div", { "data-reltio-id": "profile-activity" },
17
+ react_1.default.createElement(ActivityTitle_1.ActivityTitle, { type: type, "data-reltio-id": "profile-activity-title" }, isMinimized && react_1.default.createElement(EntityObject_1.EntityObject, { item: data.items[0] })),
18
18
  !isMinimized && (react_1.default.createElement(CollapsibleActivityRecords_1.CollapsibleActivityRecords, { activityUri: data.uri, items: data.items, RecordComponent: EntityRecord_1.EntityRecord }))));
19
19
  };
20
20
  exports.ProfileActivity = ProfileActivity;
@@ -15,119 +15,135 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  var react_1 = __importDefault(require("react"));
18
- var enzyme_1 = require("enzyme");
19
- var ProfileActivity_1 = require("./ProfileActivity");
18
+ var react_2 = require("@testing-library/react");
19
+ var MdmModuleContext_1 = require("../../../../../contexts/MdmModuleContext");
20
20
  var types_1 = require("../../../types");
21
- var CollapsibleActivityRecords_1 = require("../../../CollapsibleActivityRecords");
22
- describe('ProfileActivity tests', function () {
23
- var data = {
24
- uri: 'activities/f0efd6b4-129b-4379-a37c-ac2c08e3f2a5',
25
- user: 'alexander.kirsanov',
26
- timestamp: 1622096971385,
27
- items: [
28
- {
29
- id: '30Y8UsZr',
30
- user: 'alexander.kirsanov',
31
- method: 'PUT',
32
- url: '/reltio/api/alenat/entities/k5nO0xA/attributes/TextField/3UIcE257b',
33
- clientType: 'Reltio UI',
34
- timestamp: 1622096971385,
35
- objectUri: 'entities/k5nO0xA',
36
- objectType: 'configuration/entityTypes/HCP',
37
- objectLabel: 'BulkUpdate_regression_3 Label_test_Long_label_test_long_long_long_long_long - RelationTableViewss - New Address for HCP_Bulk_Update with long_label Londomir',
38
- data: {
39
- type: 'ENTITY_CHANGED'
40
- },
41
- deltaCollection: {
42
- ovChanged: true,
43
- delta: [
44
- {
45
- type: 'ATTRIBUTE_CHANGED',
46
- attributeType: 'configuration/entityTypes/HCP/attributes/TextField',
47
- newValue: {
48
- value: 'Str31',
49
- ov: true,
50
- id: '3UIcE257b',
51
- sources: ['Reltio']
52
- },
53
- oldValue: {
54
- value: 'Str1',
55
- ov: true,
56
- id: '3UIcE257b',
57
- sources: ['Reltio']
58
- }
59
- }
60
- ]
61
- },
62
- eventId: '1622096971385_03DVkNW'
63
- },
64
- {
65
- id: '30Y8UsZr',
66
- user: 'alexander.kirsanov',
67
- method: 'PUT',
68
- url: '/reltio/api/alenat/entities/k5nO0xA/attributes/TextField/3UIcE257b',
69
- clientType: 'Reltio UI',
70
- timestamp: 1622096971385,
71
- objectUri: 'entities/k5nO0xA',
72
- objectType: 'configuration/entityTypes/HCP',
73
- objectLabel: 'BulkUpdate_regression_3 Label_test_Long_label_test_long_long_long_long_long - RelationTableViewss - New Address for HCP_Bulk_Update with long_label Londomir',
74
- data: {
75
- type: 'ENTITY_CHANGED'
76
- },
77
- deltaCollection: {
78
- ovChanged: true,
79
- delta: [
80
- {
81
- type: 'ATTRIBUTE_CHANGED',
82
- attributeType: 'configuration/entityTypes/HCP/attributes/TextField',
83
- newValue: {
84
- value: 'Str31',
85
- ov: true,
86
- id: '3UIcE257b',
87
- sources: ['Reltio']
88
- },
89
- oldValue: {
90
- value: 'Str1',
91
- ov: true,
92
- id: '3UIcE257b',
93
- sources: ['Reltio']
94
- }
95
- }
96
- ]
97
- },
98
- eventId: '1622096971385_03DVkNW'
99
- }
100
- ],
101
- itemsTotal: 1
102
- };
103
- var itemWithoutDelta = {
21
+ var CollapsibleItemsContext_1 = require("../../../contexts/CollapsibleItemsContext");
22
+ var ProfileActivity_1 = require("./ProfileActivity");
23
+ var defaultItems = [
24
+ {
104
25
  id: '30Y8UsZr',
105
- user: 'alexander.kirsanov',
106
- method: 'PUT',
107
- url: '/reltio/api/alenat/entities/k5nO0xA/attributes/TextField/3UIcE257b',
108
- clientType: 'Reltio UI',
109
26
  timestamp: 1622096971385,
110
27
  objectUri: 'entities/k5nO0xA',
111
28
  objectType: 'configuration/entityTypes/HCP',
112
- objectLabel: 'test',
113
- data: {
114
- type: 'ENTITY_CHANGED'
115
- },
29
+ objectLabel: 'item 1',
30
+ data: { type: types_1.ActivityTypes.ENTITY_CHANGED },
31
+ deltaCollection: {
32
+ ovChanged: true,
33
+ delta: [
34
+ {
35
+ type: 'ATTRIBUTE_CHANGED',
36
+ attributeType: 'configuration/entityTypes/HCP/attributes/TextField',
37
+ newValue: { value: 'new value', ov: true, id: '3UIcE257b', sources: ['Reltio'] },
38
+ oldValue: { value: 'old value', ov: true, id: '3UIcE257b', sources: ['Reltio'] }
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ id: 'o8NMgwA3',
45
+ timestamp: 1622096971385,
46
+ objectUri: 'entities/jD9maD2',
47
+ objectType: 'configuration/entityTypes/HCP',
48
+ objectLabel: 'item 2',
49
+ data: { type: types_1.ActivityTypes.ENTITY_CHANGED },
116
50
  deltaCollection: {
117
- ovChanged: false
118
- },
119
- eventId: '1622096971385_03DVkNW'
51
+ ovChanged: true,
52
+ delta: [
53
+ {
54
+ type: 'ATTRIBUTE_REMOVED',
55
+ attributeType: 'configuration/entityTypes/HCP/attributes/TextField',
56
+ oldValue: { value: 'removed value', ov: true, id: 'jd9SamA', sources: ['Reltio'] }
57
+ }
58
+ ]
59
+ }
60
+ }
61
+ ];
62
+ var defaultData = {
63
+ uri: 'activities/f0efd6b4-129b-4379-a37c-ac2c08e3f2a5',
64
+ user: 'alexander.kirsanov',
65
+ timestamp: 1622096971385,
66
+ items: defaultItems,
67
+ itemsTotal: 2
68
+ };
69
+ var defaultProps = {
70
+ data: defaultData,
71
+ type: types_1.ActivityTypes.ENTITY_CHANGED
72
+ };
73
+ var defaultMdmValues = {
74
+ metadata: {
75
+ entityTypes: [
76
+ {
77
+ uri: 'configuration/entityTypes/HCP',
78
+ label: 'HCP',
79
+ attributes: [
80
+ {
81
+ label: 'String',
82
+ name: 'TextField',
83
+ type: 'String',
84
+ uri: 'configuration/entityTypes/HCP/attributes/TextField'
85
+ }
86
+ ]
87
+ }
88
+ ]
89
+ },
90
+ uiPath: 'https://reltio.com/nui'
91
+ };
92
+ var setUp = function (_a) {
93
+ var _b = _a === void 0 ? {} : _a, _c = _b.props, props = _c === void 0 ? defaultProps : _c, _d = _b.mdmValues, mdmValues = _d === void 0 ? defaultMdmValues : _d;
94
+ var Providers = function (_a) {
95
+ var children = _a.children;
96
+ return (react_1.default.createElement(MdmModuleContext_1.MdmModuleProvider, { values: mdmValues },
97
+ react_1.default.createElement(CollapsibleItemsContext_1.CollapsibleItemsProvider, null, children)));
120
98
  };
121
- it('should render correctly', function () {
122
- var wrapper = (0, enzyme_1.shallow)(react_1.default.createElement(ProfileActivity_1.ProfileActivity, { type: types_1.ActivityTypes.ENTITY_CHANGED, data: data }));
123
- expect(wrapper.find('ActivityTitle').prop('type')).toBe(types_1.ActivityTypes.ENTITY_CHANGED);
124
- expect(wrapper.find('EntityObject').length).toBe(0);
125
- var collapsedActivity = wrapper.find(CollapsibleActivityRecords_1.CollapsibleActivityRecords);
126
- expect(collapsedActivity.prop('activityUri')).toBe(data.uri);
127
- expect(collapsedActivity.prop('items')).toEqual(data.items);
128
- wrapper.setProps({ data: __assign(__assign({}, data), { items: [itemWithoutDelta] }) });
129
- expect(wrapper.find('ActivityTitle').prop('type')).toBe(types_1.ActivityTypes.ENTITY_CHANGED);
130
- expect(wrapper.find('EntityObject').length).toBe(1);
131
- expect(wrapper.find(CollapsibleActivityRecords_1.CollapsibleActivityRecords)).toHaveLength(0);
99
+ return (0, react_2.render)(react_1.default.createElement(ProfileActivity_1.ProfileActivity, __assign({}, props)), { wrapper: Providers });
100
+ };
101
+ describe('Profile activity tests', function () {
102
+ it('should render minimized if itemsTotal is 1 and there is not delta field', function () {
103
+ var props = __assign(__assign({}, defaultProps), { data: __assign(__assign({}, defaultData), { items: [
104
+ {
105
+ id: '30Y8UsZr',
106
+ timestamp: 1622096971385,
107
+ objectUri: 'entities/k5nO0xA',
108
+ objectType: 'configuration/entityTypes/HCP',
109
+ objectLabel: 'item 1',
110
+ data: { type: types_1.ActivityTypes.ENTITY_CHANGED }
111
+ }
112
+ ], itemsTotal: 1 }) });
113
+ setUp({ props: props });
114
+ var title = react_2.screen.getByTestId('profile-activity-title');
115
+ (0, react_2.within)(title).getByText('item 1');
116
+ (0, react_2.within)(title).getByText('Profile updated');
117
+ expect(react_2.screen.queryByTestId('reltio-activity-log-record')).not.toBeInTheDocument();
118
+ });
119
+ it('should render maximized if itemsTotal is 1 but there is delta field', function () {
120
+ var props = __assign(__assign({}, defaultProps), { data: __assign(__assign({}, defaultData), { items: defaultItems.slice(0, 1), itemsTotal: 1 }) });
121
+ setUp({ props: props });
122
+ var title = react_2.screen.getByTestId('profile-activity-title');
123
+ (0, react_2.within)(title).getByText('Profile updated');
124
+ expect((0, react_2.within)(title).queryByText('item 1')).not.toBeInTheDocument();
125
+ var record = react_2.screen.getByTestId('reltio-activity-log-record');
126
+ (0, react_2.within)(record).getByText('item 1');
127
+ expect(record).toHaveTextContent('String:');
128
+ expect(record).toHaveTextContent('old value');
129
+ expect(record).toHaveTextContent('new value');
130
+ expect(record).toHaveTextContent('edited');
131
+ });
132
+ it('should render maximized if itemsTotal is not 1', function () {
133
+ setUp();
134
+ var title = react_2.screen.getByTestId('profile-activity-title');
135
+ (0, react_2.within)(title).getByText('Profile updated');
136
+ expect((0, react_2.within)(title).queryByText('item 1')).not.toBeInTheDocument();
137
+ expect((0, react_2.within)(title).queryByText('item 2')).not.toBeInTheDocument();
138
+ var records = react_2.screen.getAllByTestId('reltio-activity-log-record');
139
+ (0, react_2.within)(records[0]).getByText('item 1');
140
+ expect(records[0]).toHaveTextContent('String:');
141
+ expect(records[0]).toHaveTextContent('old value');
142
+ expect(records[0]).toHaveTextContent('new value');
143
+ expect(records[0]).toHaveTextContent('edited');
144
+ (0, react_2.within)(records[1]).getByText('item 2');
145
+ expect(records[1]).toHaveTextContent('String:');
146
+ expect(records[1]).toHaveTextContent('removed value');
147
+ expect(records[1]).toHaveTextContent('deleted');
132
148
  });
133
149
  });
@@ -13,8 +13,8 @@ var RelationActivity = function (_a) {
13
13
  var _b;
14
14
  var type = _a.type, data = _a.data;
15
15
  var isMinimized = data.itemsTotal === 1 && !((_b = data.items[0].deltaCollection) === null || _b === void 0 ? void 0 : _b.delta);
16
- return (react_1.default.createElement("div", null,
17
- react_1.default.createElement(ActivityTitle_1.ActivityTitle, { type: type }, isMinimized && react_1.default.createElement(RelationObject_1.RelationObject, { item: data.items[0] })),
16
+ return (react_1.default.createElement("div", { "data-reltio-id": "relation-activity" },
17
+ react_1.default.createElement(ActivityTitle_1.ActivityTitle, { type: type, "data-reltio-id": "relation-activity-title" }, isMinimized && react_1.default.createElement(RelationObject_1.RelationObject, { item: data.items[0] })),
18
18
  !isMinimized && (react_1.default.createElement(CollapsibleActivityRecords_1.CollapsibleActivityRecords, { activityUri: data.uri, items: data.items, RecordComponent: RelationRecord_1.RelationRecord }))));
19
19
  };
20
20
  exports.RelationActivity = RelationActivity;