@reltio/components 1.4.908 → 1.4.912
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/components/ActionButton/ActionButton.d.ts +16 -0
- package/cjs/components/ActionButton/ActionButton.js +90 -0
- package/cjs/components/ActionButton/styles.d.ts +1 -0
- package/cjs/components/ActionButton/styles.js +50 -0
- package/cjs/components/MergeButton/MergeButton.d.ts +15 -0
- package/cjs/components/MergeButton/MergeButton.js +64 -0
- package/cjs/components/NotMatchButton/NotMatchButton.d.ts +15 -0
- package/cjs/components/NotMatchButton/NotMatchButton.js +64 -0
- package/cjs/components/ProfileMatchCard/ProfileMatchCard.d.ts +2 -1
- package/cjs/components/ProfileMatchCard/ProfileMatchCard.js +3 -2
- package/cjs/components/attributes/AttributesView/AttributesView.d.ts +1 -1
- package/cjs/components/attributes/AttributesView/AttributesView.js +2 -2
- package/cjs/components/attributes/AttributesView/index.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesList/AttributesList.js +3 -1
- package/cjs/components/attributes/editMode/AttributesPager/AttributeRenderer.js +4 -1
- package/cjs/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +9 -2
- package/cjs/components/attributes/editMode/AttributesView/index.d.ts +9 -1
- package/cjs/components/attributes/editMode/contexts/PinnedAttributesContext.d.ts +2 -0
- package/cjs/components/attributes/editMode/contexts/PinnedAttributesContext.js +8 -0
- package/cjs/components/attributes/readMode/AttributesView/index.d.ts +8 -0
- package/cjs/components/attributes/types/attributesView.d.ts +4 -0
- package/cjs/components/history/HistoryMenuButton/HistoryMenuButton.js +46 -1
- package/cjs/components/history/HistoryMenuButton/MenuItemRenderer.d.ts +12 -0
- package/cjs/components/history/HistoryMenuButton/MenuItemRenderer.js +44 -0
- package/cjs/components/history/HistoryMenuButton/styles.d.ts +1 -1
- package/cjs/components/history/HistoryMenuButton/styles.js +13 -0
- package/cjs/components/index.d.ts +3 -0
- package/cjs/components/index.js +8 -1
- package/cjs/components/workflow/cards/DataChangeRequestTaskCard/DataChangeRequestTaskCard.js +6 -30
- package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.d.ts +7 -4
- package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.js +19 -9
- package/cjs/components/workflow/components/AttributesChanges/components/ChangeView/ChangeView.d.ts +4 -4
- package/cjs/components/workflow/components/AttributesChanges/components/ChangeView/styles.js +3 -9
- package/cjs/components/workflow/components/AttributesChanges/components/DCRChangesList/DCRChangesList.d.ts +2 -2
- package/cjs/components/workflow/components/AttributesChanges/components/DCRChangesList/DCRChangesList.js +4 -1
- package/cjs/components/workflow/components/AttributesChanges/components/DCRChangesList/styles.d.ts +1 -0
- package/cjs/components/workflow/components/AttributesChanges/components/DCRChangesList/styles.js +13 -0
- package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.d.ts +2 -13
- package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +25 -9
- package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/styles.d.ts +1 -1
- package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/styles.js +14 -2
- package/cjs/components/workflow/components/AttributesChanges/contexts/AttributesChangesContext.d.ts +1 -1
- package/cjs/components/workflow/components/AttributesChanges/helpers/attributesHelpers.d.ts +3 -2
- package/cjs/components/workflow/components/AttributesChanges/helpers/attributesHelpers.js +35 -6
- package/cjs/components/workflow/components/AttributesChanges/helpers/helpers.d.ts +4 -6
- package/cjs/components/workflow/components/AttributesChanges/helpers/helpers.js +4 -26
- package/cjs/components/workflow/components/AttributesChanges/helpers/mergeHelpers.d.ts +3 -2
- package/cjs/components/workflow/components/AttributesChanges/helpers/mergeHelpers.js +109 -28
- package/cjs/components/workflow/components/AttributesChanges/hooks/useCollapsibleList.d.ts +3 -2
- package/cjs/components/workflow/components/AttributesChanges/hooks/useCollapsibleList.js +4 -4
- package/cjs/components/workflow/components/AttributesChanges/types/diffTypes.d.ts +16 -0
- package/cjs/components/workflow/components/AttributesChanges/types/{DCRTypes.js → diffTypes.js} +0 -0
- package/cjs/components/workflow/components/LineDecorator/LineDecorator.d.ts +2 -1
- package/cjs/components/workflow/components/LineDecorator/LineDecorator.js +5 -2
- package/cjs/components/workflow/components/LineDecorator/styles.d.ts +1 -1
- package/cjs/components/workflow/components/LineDecorator/styles.js +4 -1
- package/cjs/components/workflow/{components/AttributesChanges/constants → constants}/operations.d.ts +0 -0
- package/cjs/components/workflow/{components/AttributesChanges/constants → constants}/operations.js +0 -0
- package/cjs/components/workflow/helpers/dcrHelpers.d.ts +7 -0
- package/cjs/components/workflow/helpers/dcrHelpers.js +48 -0
- package/cjs/components/workflow/hooks/useChangeRequest.d.ts +5 -0
- package/cjs/components/workflow/hooks/useChangeRequest.js +58 -0
- package/{esm/components/workflow/components/AttributesChanges/types/DCRTypes.d.ts → cjs/components/workflow/types/dcrTypes.d.ts} +22 -16
- package/cjs/components/workflow/types/dcrTypes.js +2 -0
- package/cjs/contexts/CollaborationContext/index.d.ts +1 -0
- package/cjs/contexts/CollaborationContext/index.js +1 -0
- package/cjs/hooks/index.d.ts +2 -0
- package/cjs/hooks/index.js +5 -1
- package/cjs/hooks/useCollaboration.d.ts +11 -10
- package/cjs/hooks/useCollaboration.js +24 -15
- package/cjs/hooks/useMarkAsNotMatchRequest.d.ts +12 -0
- package/cjs/hooks/useMarkAsNotMatchRequest.js +29 -0
- package/cjs/hooks/useMergeAllRequest.d.ts +12 -0
- package/cjs/hooks/useMergeAllRequest.js +29 -0
- package/esm/components/ActionButton/ActionButton.d.ts +16 -0
- package/esm/components/ActionButton/ActionButton.js +65 -0
- package/esm/components/ActionButton/styles.d.ts +1 -0
- package/esm/components/ActionButton/styles.js +47 -0
- package/esm/components/MergeButton/MergeButton.d.ts +15 -0
- package/esm/components/MergeButton/MergeButton.js +39 -0
- package/esm/components/NotMatchButton/NotMatchButton.d.ts +15 -0
- package/esm/components/NotMatchButton/NotMatchButton.js +39 -0
- package/esm/components/ProfileMatchCard/ProfileMatchCard.d.ts +2 -1
- package/esm/components/ProfileMatchCard/ProfileMatchCard.js +3 -2
- package/esm/components/attributes/AttributesView/AttributesView.d.ts +1 -1
- package/esm/components/attributes/AttributesView/AttributesView.js +2 -2
- package/esm/components/attributes/AttributesView/index.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesList/AttributesList.js +4 -2
- package/esm/components/attributes/editMode/AttributesPager/AttributeRenderer.js +5 -2
- package/esm/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesView/AttributesView.js +10 -3
- package/esm/components/attributes/editMode/AttributesView/index.d.ts +9 -1
- package/esm/components/attributes/editMode/contexts/PinnedAttributesContext.d.ts +2 -0
- package/esm/components/attributes/editMode/contexts/PinnedAttributesContext.js +2 -0
- package/esm/components/attributes/readMode/AttributesView/index.d.ts +8 -0
- package/esm/components/attributes/types/attributesView.d.ts +4 -0
- package/esm/components/history/HistoryMenuButton/HistoryMenuButton.js +27 -1
- package/esm/components/history/HistoryMenuButton/MenuItemRenderer.d.ts +12 -0
- package/esm/components/history/HistoryMenuButton/MenuItemRenderer.js +20 -0
- package/esm/components/history/HistoryMenuButton/styles.d.ts +1 -1
- package/esm/components/history/HistoryMenuButton/styles.js +13 -0
- package/esm/components/index.d.ts +3 -0
- package/esm/components/index.js +3 -0
- package/esm/components/workflow/cards/DataChangeRequestTaskCard/DataChangeRequestTaskCard.js +6 -11
- package/esm/components/workflow/components/AttributesChanges/AttributesChanges.d.ts +7 -4
- package/esm/components/workflow/components/AttributesChanges/AttributesChanges.js +19 -9
- package/esm/components/workflow/components/AttributesChanges/components/ChangeView/ChangeView.d.ts +4 -4
- package/esm/components/workflow/components/AttributesChanges/components/ChangeView/styles.js +3 -9
- package/esm/components/workflow/components/AttributesChanges/components/DCRChangesList/DCRChangesList.d.ts +2 -2
- package/esm/components/workflow/components/AttributesChanges/components/DCRChangesList/DCRChangesList.js +4 -1
- package/esm/components/workflow/components/AttributesChanges/components/DCRChangesList/styles.d.ts +1 -0
- package/esm/components/workflow/components/AttributesChanges/components/DCRChangesList/styles.js +10 -0
- package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.d.ts +2 -13
- package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +26 -10
- package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/styles.d.ts +1 -1
- package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/styles.js +14 -2
- package/esm/components/workflow/components/AttributesChanges/contexts/AttributesChangesContext.d.ts +1 -1
- package/esm/components/workflow/components/AttributesChanges/helpers/attributesHelpers.d.ts +3 -2
- package/esm/components/workflow/components/AttributesChanges/helpers/attributesHelpers.js +35 -7
- package/esm/components/workflow/components/AttributesChanges/helpers/helpers.d.ts +4 -6
- package/esm/components/workflow/components/AttributesChanges/helpers/helpers.js +4 -25
- package/esm/components/workflow/components/AttributesChanges/helpers/mergeHelpers.d.ts +3 -2
- package/esm/components/workflow/components/AttributesChanges/helpers/mergeHelpers.js +112 -31
- package/esm/components/workflow/components/AttributesChanges/hooks/useCollapsibleList.d.ts +3 -2
- package/esm/components/workflow/components/AttributesChanges/hooks/useCollapsibleList.js +4 -4
- package/esm/components/workflow/components/AttributesChanges/types/diffTypes.d.ts +16 -0
- package/esm/components/workflow/components/AttributesChanges/types/{DCRTypes.js → diffTypes.js} +0 -0
- package/esm/components/workflow/components/LineDecorator/LineDecorator.d.ts +2 -1
- package/esm/components/workflow/components/LineDecorator/LineDecorator.js +5 -2
- package/esm/components/workflow/components/LineDecorator/styles.d.ts +1 -1
- package/esm/components/workflow/components/LineDecorator/styles.js +4 -1
- package/esm/components/workflow/{components/AttributesChanges/constants → constants}/operations.d.ts +0 -0
- package/esm/components/workflow/{components/AttributesChanges/constants → constants}/operations.js +0 -0
- package/esm/components/workflow/helpers/dcrHelpers.d.ts +7 -0
- package/esm/components/workflow/helpers/dcrHelpers.js +43 -0
- package/esm/components/workflow/hooks/useChangeRequest.d.ts +5 -0
- package/esm/components/workflow/hooks/useChangeRequest.js +54 -0
- package/{cjs/components/workflow/components/AttributesChanges/types/DCRTypes.d.ts → esm/components/workflow/types/dcrTypes.d.ts} +22 -16
- package/esm/components/workflow/types/dcrTypes.js +1 -0
- package/esm/contexts/CollaborationContext/index.d.ts +1 -0
- package/esm/contexts/CollaborationContext/index.js +1 -0
- package/esm/hooks/index.d.ts +2 -0
- package/esm/hooks/index.js +2 -0
- package/esm/hooks/useCollaboration.d.ts +11 -10
- package/esm/hooks/useCollaboration.js +25 -16
- package/esm/hooks/useMarkAsNotMatchRequest.d.ts +12 -0
- package/esm/hooks/useMarkAsNotMatchRequest.js +22 -0
- package/esm/hooks/useMergeAllRequest.d.ts +12 -0
- package/esm/hooks/useMergeAllRequest.js +22 -0
- package/package.json +3 -3
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { isDataTenantEntity, markDataTenantEntityAsNotMatch, markMixedEntitiesAsNotMatches } from '@reltio/mdm-sdk';
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
3
|
+
import mdmModule from '@reltio/mdm-module';
|
|
4
|
+
import { useCallback, useState } from 'react';
|
|
5
|
+
export var useMarkAsNotMatchRequest = function (_a) {
|
|
6
|
+
var entities = _a.entities, entity = _a.entity, onFinishRequest = _a.onFinishRequest, onStartRequest = _a.onStartRequest;
|
|
7
|
+
var tenant = useSelector(mdmModule.selectors.getTenant);
|
|
8
|
+
var dtssPath = useSelector(mdmModule.selectors.getDtssPath);
|
|
9
|
+
var _b = useState(false), isPending = _b[0], setIsPending = _b[1];
|
|
10
|
+
var sendMarkAsNotMatchRequest = useCallback(function () {
|
|
11
|
+
onStartRequest === null || onStartRequest === void 0 ? void 0 : onStartRequest();
|
|
12
|
+
setIsPending(true);
|
|
13
|
+
var params = { dtssPath: dtssPath, customerTenant: tenant, entity: entity, entities: entities };
|
|
14
|
+
(isDataTenantEntity(entity)
|
|
15
|
+
? markDataTenantEntityAsNotMatch(params)
|
|
16
|
+
: markMixedEntitiesAsNotMatches(params)).finally(function () {
|
|
17
|
+
onFinishRequest === null || onFinishRequest === void 0 ? void 0 : onFinishRequest();
|
|
18
|
+
setIsPending(false);
|
|
19
|
+
});
|
|
20
|
+
}, [dtssPath, entities, entity, onFinishRequest, onStartRequest, tenant]);
|
|
21
|
+
return { isPending: isPending, sendMarkAsNotMatchRequest: sendMarkAsNotMatchRequest };
|
|
22
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Entity } from '@reltio/mdm-sdk';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
entities: Entity[];
|
|
4
|
+
entity: Entity;
|
|
5
|
+
onFinishRequest?: () => void;
|
|
6
|
+
onStartRequest?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const useMergeAllRequest: ({ entities, entity, onFinishRequest, onStartRequest }: Props) => {
|
|
9
|
+
isPending: boolean;
|
|
10
|
+
sendMergeAllRequest: () => void;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useCallback, useState } from 'react';
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
3
|
+
import mdmModule from '@reltio/mdm-module';
|
|
4
|
+
import { isDataTenantEntity, mergeCustomerTenantEntityWithMixedEntities, mergeDataTenantEntity } from '@reltio/mdm-sdk';
|
|
5
|
+
export var useMergeAllRequest = function (_a) {
|
|
6
|
+
var entities = _a.entities, entity = _a.entity, onFinishRequest = _a.onFinishRequest, onStartRequest = _a.onStartRequest;
|
|
7
|
+
var tenant = useSelector(mdmModule.selectors.getTenant);
|
|
8
|
+
var dtssPath = useSelector(mdmModule.selectors.getDtssPath);
|
|
9
|
+
var _b = useState(false), isPending = _b[0], setIsPending = _b[1];
|
|
10
|
+
var sendMergeAllRequest = useCallback(function () {
|
|
11
|
+
onStartRequest === null || onStartRequest === void 0 ? void 0 : onStartRequest();
|
|
12
|
+
setIsPending(true);
|
|
13
|
+
var params = { dtssPath: dtssPath, customerTenant: tenant, entity: entity, entities: entities };
|
|
14
|
+
(isDataTenantEntity(entity)
|
|
15
|
+
? mergeDataTenantEntity(params)
|
|
16
|
+
: mergeCustomerTenantEntityWithMixedEntities(params)).finally(function () {
|
|
17
|
+
onFinishRequest === null || onFinishRequest === void 0 ? void 0 : onFinishRequest();
|
|
18
|
+
setIsPending(false);
|
|
19
|
+
});
|
|
20
|
+
}, [dtssPath, entities, entity, onFinishRequest, onStartRequest, tenant]);
|
|
21
|
+
return { isPending: isPending, sendMergeAllRequest: sendMergeAllRequest };
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.912",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@date-io/moment": "^1.3.5",
|
|
9
9
|
"@react-google-maps/api": "^2.7.0",
|
|
10
|
-
"@reltio/mdm-module": "^1.4.
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
10
|
+
"@reltio/mdm-module": "^1.4.912",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.912",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|