@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
package/esm/features/activity-log/ActivitiesFactory/components/GroupActivity/GroupActivity.test.js
CHANGED
|
@@ -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('
|
|
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 };
|
package/esm/features/activity-log/ActivitiesFactory/components/MergeActivity/MergeActivity.js
CHANGED
|
@@ -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",
|
|
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
|
};
|
package/esm/features/activity-log/ActivitiesFactory/components/MergeActivity/MergeActivity.test.js
CHANGED
|
@@ -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 {
|
|
3
|
-
import {
|
|
13
|
+
import { render, screen, within } from '@testing-library/react';
|
|
14
|
+
import { MdmModuleProvider } from '../../../../../contexts/MdmModuleContext';
|
|
4
15
|
import { ActivityTypes } from '../../../types';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
expect(
|
|
106
|
-
|
|
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",
|
|
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 {
|
|
3
|
-
import {
|
|
13
|
+
import { render, screen } from '@testing-library/react';
|
|
14
|
+
import { MdmModuleProvider } from '../../../../../contexts/MdmModuleContext';
|
|
4
15
|
import { ActivityTypes } from '../../../types';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
var
|
|
52
|
-
expect(
|
|
53
|
-
expect(
|
|
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
|
});
|
package/esm/features/activity-log/ActivitiesFactory/components/ProfileActivity/ProfileActivity.js
CHANGED
|
@@ -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",
|
|
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
|
};
|