@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.
- package/cjs/UpSetChart/UpSetChart.d.ts +5 -8
- package/cjs/UpSetChart/UpSetChart.js +61 -5
- package/cjs/UpSetChart/UpSetChart.test.js +198 -0
- package/cjs/UpSetChart/components/IntersectionsChart/IntersectionsChart.d.ts +15 -0
- package/cjs/UpSetChart/components/IntersectionsChart/IntersectionsChart.js +66 -0
- package/cjs/UpSetChart/components/IntersectionsChart/index.d.ts +1 -0
- package/cjs/UpSetChart/components/IntersectionsChart/index.js +5 -0
- package/cjs/UpSetChart/components/IntersectionsChart/styles.d.ts +1 -0
- package/cjs/UpSetChart/components/IntersectionsChart/styles.js +32 -0
- package/cjs/UpSetChart/components/IntersectionsChartAxis/IntersectionsChartAxis.d.ts +10 -0
- package/cjs/UpSetChart/components/IntersectionsChartAxis/IntersectionsChartAxis.js +64 -0
- package/cjs/UpSetChart/components/IntersectionsChartAxis/index.d.ts +1 -0
- package/cjs/UpSetChart/components/IntersectionsChartAxis/index.js +5 -0
- package/cjs/UpSetChart/components/IntersectionsChartAxis/styles.d.ts +1 -0
- package/cjs/UpSetChart/components/IntersectionsChartAxis/styles.js +32 -0
- package/cjs/UpSetChart/components/IntersectionsMatrix/IntersectionsMatrix.d.ts +13 -0
- package/cjs/UpSetChart/components/IntersectionsMatrix/IntersectionsMatrix.js +56 -0
- package/cjs/UpSetChart/components/IntersectionsMatrix/index.d.ts +1 -0
- package/cjs/UpSetChart/components/IntersectionsMatrix/index.js +5 -0
- package/cjs/UpSetChart/components/IntersectionsMatrix/styles.d.ts +1 -0
- package/cjs/UpSetChart/components/IntersectionsMatrix/styles.js +27 -0
- package/cjs/UpSetChart/components/SetsChart/SetsChart.d.ts +15 -0
- package/cjs/UpSetChart/components/SetsChart/SetsChart.js +58 -0
- package/cjs/UpSetChart/components/SetsChart/index.d.ts +1 -0
- package/cjs/UpSetChart/components/SetsChart/index.js +5 -0
- package/cjs/UpSetChart/components/SetsChart/styles.d.ts +1 -0
- package/cjs/UpSetChart/components/SetsChart/styles.js +43 -0
- package/cjs/UpSetChart/components/SetsChartAxis/SetsChartAxis.d.ts +6 -0
- package/cjs/UpSetChart/components/SetsChartAxis/SetsChartAxis.js +20 -0
- package/cjs/UpSetChart/components/SetsChartAxis/index.d.ts +1 -0
- package/cjs/UpSetChart/components/SetsChartAxis/index.js +5 -0
- package/cjs/UpSetChart/components/SetsChartAxis/styles.d.ts +1 -0
- package/cjs/UpSetChart/components/SetsChartAxis/styles.js +17 -0
- package/cjs/UpSetChart/constants.d.ts +16 -3
- package/cjs/UpSetChart/constants.js +20 -4
- package/cjs/UpSetChart/gameOfThrones.test-data.d.ts +4 -0
- package/cjs/UpSetChart/gameOfThrones.test-data.js +26 -0
- package/cjs/UpSetChart/helpers.d.ts +20 -0
- package/cjs/UpSetChart/helpers.js +127 -0
- package/cjs/UpSetChart/styles.d.ts +4 -1
- package/cjs/UpSetChart/styles.js +11 -12
- package/cjs/UpSetChart/types.d.ts +16 -0
- package/cjs/UpSetChart/types.js +2 -0
- package/cjs/UpSetChart/useUpSetChartSizes.d.ts +20 -0
- package/cjs/UpSetChart/useUpSetChartSizes.js +34 -0
- package/cjs/features/activity-log/ActivitiesFactory/ActivitiesFactory.d.ts +1 -1
- package/cjs/features/activity-log/ActivitiesFactory/ActivitiesFactory.js +1 -1
- package/cjs/features/activity-log/ActivitiesFactory/ActivitiesFactory.test.js +267 -0
- package/cjs/features/activity-log/ActivitiesFactory/components/CommentActivity/CommentActivity.d.ts +1 -2
- package/cjs/features/activity-log/ActivitiesFactory/components/CommentActivity/CommentActivity.js +1 -1
- package/cjs/features/activity-log/ActivitiesFactory/components/CommentActivity/CommentActivity.test.js +5 -23
- package/cjs/features/activity-log/ActivitiesFactory/components/GroupActivity/GroupActivity.js +2 -2
- package/cjs/features/activity-log/ActivitiesFactory/components/GroupActivity/GroupActivity.test.js +3 -23
- package/cjs/features/activity-log/ActivitiesFactory/components/MergeActivity/MergeActivity.js +2 -2
- package/cjs/features/activity-log/ActivitiesFactory/components/MergeActivity/MergeActivity.test.js +81 -102
- package/cjs/features/activity-log/ActivitiesFactory/components/ObjectLabel/ObjectLabel.d.ts +2 -2
- package/cjs/features/activity-log/ActivitiesFactory/components/ObjectLabel/ObjectLabel.js +24 -2
- package/cjs/features/activity-log/ActivitiesFactory/components/PotentialMatchActivity/PotentialMatchActivity.js +1 -1
- package/cjs/features/activity-log/ActivitiesFactory/components/PotentialMatchActivity/PotentialMatchActivity.test.js +69 -48
- package/cjs/features/activity-log/ActivitiesFactory/components/ProfileActivity/ProfileActivity.js +2 -2
- package/cjs/features/activity-log/ActivitiesFactory/components/ProfileActivity/ProfileActivity.test.js +123 -107
- package/cjs/features/activity-log/ActivitiesFactory/components/RelationActivity/RelationActivity.js +2 -2
- package/cjs/features/activity-log/ActivitiesFactory/components/RelationActivity/RelationActivity.test.js +128 -115
- package/cjs/features/activity-log/ActivitiesFactory/components/SearchActivity/SearchActivity.js +1 -1
- package/cjs/features/activity-log/ActivitiesFactory/components/SearchActivity/SearchActivity.test.js +160 -183
- package/cjs/features/activity-log/ActivitiesFactory/components/SimpleActivity/SimpleActivity.js +2 -2
- package/cjs/features/activity-log/ActivitiesFactory/components/SimpleActivity/SimpleActivity.test.js +44 -28
- package/cjs/features/activity-log/ActivitiesFactory/components/SynchronizationIssuesActivity/SynchronizationIssuesActivity.js +4 -5
- package/cjs/features/activity-log/ActivitiesFactory/components/SynchronizationIssuesActivity/SynchronizationIssuesActivity.test.js +54 -47
- package/cjs/features/activity-log/ActivityLog/ActivityLog.test.js +83 -22
- package/cjs/features/activity-log/ActivityLog/components/GroupItem/GroupItem.js +1 -1
- package/cjs/features/activity-log/ActivityLogFilter/ActivityLogFilter.test.js +784 -0
- package/cjs/features/activity-log/ActivityTitle/ActivityTitle.d.ts +2 -3
- package/cjs/features/activity-log/ActivityTitle/ActivityTitle.js +24 -2
- package/cjs/features/activity-log/CollapsibleActivityRecords/CollapsibleActivityRecords.test.js +102 -79
- package/cjs/features/activity-log/EntityObject/EntityObject.test.js +35 -26
- package/cjs/features/activity-log/Field/Field.d.ts +2 -3
- package/cjs/features/activity-log/Field/Field.js +24 -2
- package/cjs/features/activity-log/PotentialMatchRecord/PotentialMatchRecord.test.js +160 -34
- package/cjs/features/activity-log/PotentialMatchRecord/components/PotentialMatchField/PotentialMatchField.js +1 -1
- package/cjs/features/activity-log/RecordUpdates/RecordUpdates.test.js +207 -0
- package/cjs/features/activity-log/RecordUpdates/components/DeltaField/DeltaField.js +1 -1
- package/cjs/features/activity-log/RelationObject/RelationObject.test.js +46 -29
- package/cjs/features/activity-log/RelationRecord/RelationRecord.test.js +88 -68
- package/esm/UpSetChart/UpSetChart.d.ts +5 -8
- package/esm/UpSetChart/UpSetChart.js +38 -5
- package/esm/UpSetChart/UpSetChart.test.js +193 -0
- package/esm/UpSetChart/components/IntersectionsChart/IntersectionsChart.d.ts +15 -0
- package/esm/UpSetChart/components/IntersectionsChart/IntersectionsChart.js +39 -0
- package/esm/UpSetChart/components/IntersectionsChart/index.d.ts +1 -0
- package/esm/UpSetChart/components/IntersectionsChart/index.js +1 -0
- package/esm/UpSetChart/components/IntersectionsChart/styles.d.ts +1 -0
- package/esm/UpSetChart/components/IntersectionsChart/styles.js +29 -0
- package/esm/UpSetChart/components/IntersectionsChartAxis/IntersectionsChartAxis.d.ts +10 -0
- package/esm/UpSetChart/components/IntersectionsChartAxis/IntersectionsChartAxis.js +34 -0
- package/esm/UpSetChart/components/IntersectionsChartAxis/index.d.ts +1 -0
- package/esm/UpSetChart/components/IntersectionsChartAxis/index.js +1 -0
- package/esm/UpSetChart/components/IntersectionsChartAxis/styles.d.ts +1 -0
- package/esm/UpSetChart/components/IntersectionsChartAxis/styles.js +29 -0
- package/esm/UpSetChart/components/IntersectionsMatrix/IntersectionsMatrix.d.ts +13 -0
- package/esm/UpSetChart/components/IntersectionsMatrix/IntersectionsMatrix.js +26 -0
- package/esm/UpSetChart/components/IntersectionsMatrix/index.d.ts +1 -0
- package/esm/UpSetChart/components/IntersectionsMatrix/index.js +1 -0
- package/esm/UpSetChart/components/IntersectionsMatrix/styles.d.ts +1 -0
- package/esm/UpSetChart/components/IntersectionsMatrix/styles.js +24 -0
- package/esm/UpSetChart/components/SetsChart/SetsChart.d.ts +15 -0
- package/esm/UpSetChart/components/SetsChart/SetsChart.js +31 -0
- package/esm/UpSetChart/components/SetsChart/index.d.ts +1 -0
- package/esm/UpSetChart/components/SetsChart/index.js +1 -0
- package/esm/UpSetChart/components/SetsChart/styles.d.ts +1 -0
- package/esm/UpSetChart/components/SetsChart/styles.js +40 -0
- package/esm/UpSetChart/components/SetsChartAxis/SetsChartAxis.d.ts +6 -0
- package/esm/UpSetChart/components/SetsChartAxis/SetsChartAxis.js +13 -0
- package/esm/UpSetChart/components/SetsChartAxis/index.d.ts +1 -0
- package/esm/UpSetChart/components/SetsChartAxis/index.js +1 -0
- package/esm/UpSetChart/components/SetsChartAxis/styles.d.ts +1 -0
- package/esm/UpSetChart/components/SetsChartAxis/styles.js +14 -0
- package/esm/UpSetChart/constants.d.ts +16 -3
- package/esm/UpSetChart/constants.js +19 -3
- package/esm/UpSetChart/gameOfThrones.test-data.d.ts +4 -0
- package/esm/UpSetChart/gameOfThrones.test-data.js +23 -0
- package/esm/UpSetChart/helpers.d.ts +20 -0
- package/esm/UpSetChart/helpers.js +120 -0
- package/esm/UpSetChart/styles.d.ts +4 -1
- package/esm/UpSetChart/styles.js +11 -12
- package/esm/UpSetChart/types.d.ts +16 -0
- package/esm/UpSetChart/useUpSetChartSizes.d.ts +20 -0
- package/esm/UpSetChart/useUpSetChartSizes.js +30 -0
- package/esm/features/activity-log/ActivitiesFactory/ActivitiesFactory.d.ts +1 -1
- package/esm/features/activity-log/ActivitiesFactory/ActivitiesFactory.js +1 -1
- package/esm/features/activity-log/ActivitiesFactory/ActivitiesFactory.test.js +262 -0
- package/esm/features/activity-log/ActivitiesFactory/components/CommentActivity/CommentActivity.d.ts +1 -2
- package/esm/features/activity-log/ActivitiesFactory/components/CommentActivity/CommentActivity.js +1 -1
- package/esm/features/activity-log/ActivitiesFactory/components/CommentActivity/CommentActivity.test.js +5 -23
- package/esm/features/activity-log/ActivitiesFactory/components/GroupActivity/GroupActivity.js +2 -2
- package/esm/features/activity-log/ActivitiesFactory/components/GroupActivity/GroupActivity.test.js +3 -23
- package/esm/features/activity-log/ActivitiesFactory/components/MergeActivity/MergeActivity.js +2 -2
- package/esm/features/activity-log/ActivitiesFactory/components/MergeActivity/MergeActivity.test.js +81 -102
- package/esm/features/activity-log/ActivitiesFactory/components/ObjectLabel/ObjectLabel.d.ts +2 -2
- package/esm/features/activity-log/ActivitiesFactory/components/ObjectLabel/ObjectLabel.js +24 -2
- package/esm/features/activity-log/ActivitiesFactory/components/PotentialMatchActivity/PotentialMatchActivity.js +1 -1
- package/esm/features/activity-log/ActivitiesFactory/components/PotentialMatchActivity/PotentialMatchActivity.test.js +69 -48
- package/esm/features/activity-log/ActivitiesFactory/components/ProfileActivity/ProfileActivity.js +2 -2
- package/esm/features/activity-log/ActivitiesFactory/components/ProfileActivity/ProfileActivity.test.js +123 -107
- package/esm/features/activity-log/ActivitiesFactory/components/RelationActivity/RelationActivity.js +2 -2
- package/esm/features/activity-log/ActivitiesFactory/components/RelationActivity/RelationActivity.test.js +128 -115
- package/esm/features/activity-log/ActivitiesFactory/components/SearchActivity/SearchActivity.js +1 -1
- package/esm/features/activity-log/ActivitiesFactory/components/SearchActivity/SearchActivity.test.js +160 -183
- package/esm/features/activity-log/ActivitiesFactory/components/SimpleActivity/SimpleActivity.js +2 -2
- package/esm/features/activity-log/ActivitiesFactory/components/SimpleActivity/SimpleActivity.test.js +44 -28
- package/esm/features/activity-log/ActivitiesFactory/components/SynchronizationIssuesActivity/SynchronizationIssuesActivity.js +4 -5
- package/esm/features/activity-log/ActivitiesFactory/components/SynchronizationIssuesActivity/SynchronizationIssuesActivity.test.js +54 -47
- package/esm/features/activity-log/ActivityLog/ActivityLog.test.js +83 -22
- package/esm/features/activity-log/ActivityLog/components/GroupItem/GroupItem.js +1 -1
- package/esm/features/activity-log/ActivityLogFilter/ActivityLogFilter.test.js +779 -0
- package/esm/features/activity-log/ActivityTitle/ActivityTitle.d.ts +2 -3
- package/esm/features/activity-log/ActivityTitle/ActivityTitle.js +24 -2
- package/esm/features/activity-log/CollapsibleActivityRecords/CollapsibleActivityRecords.test.js +104 -58
- package/esm/features/activity-log/EntityObject/EntityObject.test.js +35 -26
- package/esm/features/activity-log/Field/Field.d.ts +2 -3
- package/esm/features/activity-log/Field/Field.js +24 -2
- package/esm/features/activity-log/PotentialMatchRecord/PotentialMatchRecord.test.js +160 -34
- package/esm/features/activity-log/PotentialMatchRecord/components/PotentialMatchField/PotentialMatchField.js +1 -1
- package/esm/features/activity-log/RecordUpdates/RecordUpdates.test.js +202 -0
- package/esm/features/activity-log/RecordUpdates/components/DeltaField/DeltaField.js +1 -1
- package/esm/features/activity-log/RelationObject/RelationObject.test.js +46 -29
- package/esm/features/activity-log/RelationRecord/RelationRecord.test.js +88 -68
- package/package.json +1 -1
- package/cjs/features/activity-log/ActivityExportButton/ActivityExportButton.specs.js +0 -142
- package/cjs/features/activity-log/ActivityFilterButton/ActivityFilterButton.specs.js +0 -131
- package/cjs/features/activity-log/ActivityFilterEditor/ActivityFilterEditor.specs.js +0 -252
- package/cjs/features/activity-log/ActivityFilterEditor/components/ActivitySelector/ActivitySelector.specs.js +0 -158
- package/cjs/features/activity-log/ActivityFilterEditor/components/EntityChangedSelectors/EntityChangedSelectors.specs.js +0 -135
- package/cjs/features/activity-log/ActivityFilterEditor/components/EntityTypesSelector/EntityTypesSelector.specs.js +0 -65
- package/cjs/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.specs.js +0 -119
- package/cjs/features/activity-log/ActivityFilterEditor/editor.test-data.d.ts +0 -25
- package/cjs/features/activity-log/ActivityFilterEditor/editor.test-data.js +0 -75
- package/cjs/features/activity-log/ActivityLog/components/ActivityItem/ActivityItem.test.js +0 -140
- package/cjs/features/activity-log/ActivityLog/components/GroupItem/GroupItem.test.js +0 -41
- package/cjs/features/activity-log/ActivityLogFilter/ActivityLogFilter.specs.d.ts +0 -1
- package/cjs/features/activity-log/ActivityLogFilter/ActivityLogFilter.specs.js +0 -87
- package/cjs/features/activity-log/ActivityTitle/ActivityTitle.test.d.ts +0 -1
- package/cjs/features/activity-log/ActivityTitle/ActivityTitle.test.js +0 -19
- package/cjs/features/activity-log/PotentialMatchRecord/components/PotentialMatchField/PotentialMatchField.test.d.ts +0 -1
- package/cjs/features/activity-log/PotentialMatchRecord/components/PotentialMatchField/PotentialMatchField.test.js +0 -179
- package/cjs/features/activity-log/RecordUpdates/RecordUpdates.specs.d.ts +0 -1
- package/cjs/features/activity-log/RecordUpdates/RecordUpdates.specs.js +0 -150
- package/cjs/features/activity-log/RecordUpdates/components/DeltaField/DeltaField.test.d.ts +0 -1
- package/cjs/features/activity-log/RecordUpdates/components/DeltaField/DeltaField.test.js +0 -124
- package/esm/features/activity-log/ActivityExportButton/ActivityExportButton.specs.d.ts +0 -1
- package/esm/features/activity-log/ActivityExportButton/ActivityExportButton.specs.js +0 -137
- package/esm/features/activity-log/ActivityFilterButton/ActivityFilterButton.specs.d.ts +0 -1
- package/esm/features/activity-log/ActivityFilterButton/ActivityFilterButton.specs.js +0 -126
- package/esm/features/activity-log/ActivityFilterEditor/ActivityFilterEditor.specs.d.ts +0 -1
- package/esm/features/activity-log/ActivityFilterEditor/ActivityFilterEditor.specs.js +0 -247
- package/esm/features/activity-log/ActivityFilterEditor/components/ActivitySelector/ActivitySelector.specs.d.ts +0 -1
- package/esm/features/activity-log/ActivityFilterEditor/components/ActivitySelector/ActivitySelector.specs.js +0 -153
- package/esm/features/activity-log/ActivityFilterEditor/components/EntityChangedSelectors/EntityChangedSelectors.specs.d.ts +0 -1
- package/esm/features/activity-log/ActivityFilterEditor/components/EntityChangedSelectors/EntityChangedSelectors.specs.js +0 -130
- package/esm/features/activity-log/ActivityFilterEditor/components/EntityTypesSelector/EntityTypesSelector.specs.d.ts +0 -1
- package/esm/features/activity-log/ActivityFilterEditor/components/EntityTypesSelector/EntityTypesSelector.specs.js +0 -60
- package/esm/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.specs.d.ts +0 -1
- package/esm/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.specs.js +0 -114
- package/esm/features/activity-log/ActivityFilterEditor/editor.test-data.d.ts +0 -25
- package/esm/features/activity-log/ActivityFilterEditor/editor.test-data.js +0 -72
- package/esm/features/activity-log/ActivityLog/components/ActivityItem/ActivityItem.test.d.ts +0 -1
- package/esm/features/activity-log/ActivityLog/components/ActivityItem/ActivityItem.test.js +0 -135
- package/esm/features/activity-log/ActivityLog/components/GroupItem/GroupItem.test.d.ts +0 -1
- package/esm/features/activity-log/ActivityLog/components/GroupItem/GroupItem.test.js +0 -36
- package/esm/features/activity-log/ActivityLogFilter/ActivityLogFilter.specs.d.ts +0 -1
- package/esm/features/activity-log/ActivityLogFilter/ActivityLogFilter.specs.js +0 -82
- package/esm/features/activity-log/ActivityTitle/ActivityTitle.test.d.ts +0 -1
- package/esm/features/activity-log/ActivityTitle/ActivityTitle.test.js +0 -14
- package/esm/features/activity-log/PotentialMatchRecord/components/PotentialMatchField/PotentialMatchField.test.d.ts +0 -1
- package/esm/features/activity-log/PotentialMatchRecord/components/PotentialMatchField/PotentialMatchField.test.js +0 -151
- package/esm/features/activity-log/RecordUpdates/RecordUpdates.specs.d.ts +0 -1
- package/esm/features/activity-log/RecordUpdates/RecordUpdates.specs.js +0 -122
- package/esm/features/activity-log/RecordUpdates/components/DeltaField/DeltaField.test.d.ts +0 -1
- package/esm/features/activity-log/RecordUpdates/components/DeltaField/DeltaField.test.js +0 -119
- /package/cjs/{features/activity-log/ActivityExportButton/ActivityExportButton.specs.d.ts → UpSetChart/UpSetChart.test.d.ts} +0 -0
- /package/cjs/features/activity-log/{ActivityFilterButton/ActivityFilterButton.specs.d.ts → ActivitiesFactory/ActivitiesFactory.test.d.ts} +0 -0
- /package/cjs/features/activity-log/{ActivityFilterEditor/ActivityFilterEditor.specs.d.ts → ActivityLogFilter/ActivityLogFilter.test.d.ts} +0 -0
- /package/cjs/features/activity-log/{ActivityFilterEditor/components/ActivitySelector/ActivitySelector.specs.d.ts → RecordUpdates/RecordUpdates.test.d.ts} +0 -0
- /package/{cjs/features/activity-log/ActivityFilterEditor/components/EntityChangedSelectors/EntityChangedSelectors.specs.d.ts → esm/UpSetChart/UpSetChart.test.d.ts} +0 -0
- /package/{cjs/features/activity-log/ActivityFilterEditor/components/EntityTypesSelector/EntityTypesSelector.specs.d.ts → esm/UpSetChart/types.js} +0 -0
- /package/{cjs/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.specs.d.ts → esm/features/activity-log/ActivitiesFactory/ActivitiesFactory.test.d.ts} +0 -0
- /package/{cjs/features/activity-log/ActivityLog/components/ActivityItem/ActivityItem.test.d.ts → esm/features/activity-log/ActivityLogFilter/ActivityLogFilter.test.d.ts} +0 -0
- /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",
|
|
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
|
|
8
|
-
var
|
|
18
|
+
var react_2 = require("@testing-library/react");
|
|
19
|
+
var MdmModuleContext_1 = require("../../../../../contexts/MdmModuleContext");
|
|
9
20
|
var types_1 = require("../../../types");
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
var
|
|
57
|
-
expect(
|
|
58
|
-
expect(
|
|
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
|
});
|
package/cjs/features/activity-log/ActivitiesFactory/components/ProfileActivity/ProfileActivity.js
CHANGED
|
@@ -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",
|
|
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
|
|
19
|
-
var
|
|
18
|
+
var react_2 = require("@testing-library/react");
|
|
19
|
+
var MdmModuleContext_1 = require("../../../../../contexts/MdmModuleContext");
|
|
20
20
|
var types_1 = require("../../../types");
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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: '
|
|
113
|
-
data: {
|
|
114
|
-
|
|
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:
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
var
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
});
|
package/cjs/features/activity-log/ActivitiesFactory/components/RelationActivity/RelationActivity.js
CHANGED
|
@@ -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",
|
|
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;
|