@reltio/components 1.4.2215 → 1.4.2217
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/AttributeVerificationStatus/AttributeVerificationStatus.d.ts +8 -0
- package/AttributeVerificationStatus/AttributeVerificationStatus.js +22 -0
- package/AttributeVerificationStatus/AttributeVerificationStatus.module.css.js +9 -0
- package/AttributeVerificationStatus/helpers.d.ts +8 -0
- package/AttributeVerificationStatus/helpers.js +56 -0
- package/CollaborationButton/CollaborationButton.d.ts +4 -0
- package/CollaborationButton/CollaborationButton.js +12 -0
- package/CollaborationButton/CollaborationButton.module.css.js +9 -0
- package/CollaborationButton/index.d.ts +1 -0
- package/CollaborationButton/index.js +1 -0
- package/ProfileResizablePanes/ProfileResizablePanes.js +2 -1
- package/ProfileResizablePanes/ProfileResizablePanes.spec.js +3 -3
- package/ReadOnlyAttributesPager/components/MultiLineRenderer/MultiLineRenderer.js +8 -2
- package/ReadOnlyComplexAttribute/ReadOnlyComplexAttribute.js +10 -3
- package/ReadOnlyComplexAttribute/ReadOnlyComplexAttribute.module.css.js +9 -0
- package/VerificationButton/VerificationButton.d.ts +13 -0
- package/VerificationButton/VerificationButton.js +150 -0
- package/VerificationButton/VerificationButton.module.css.js +9 -0
- package/cjs/AttributeVerificationStatus/AttributeVerificationStatus.d.ts +8 -0
- package/cjs/AttributeVerificationStatus/AttributeVerificationStatus.js +52 -0
- package/cjs/AttributeVerificationStatus/AttributeVerificationStatus.module.css.js +9 -0
- package/cjs/AttributeVerificationStatus/helpers.d.ts +8 -0
- package/cjs/AttributeVerificationStatus/helpers.js +64 -0
- package/cjs/CollaborationButton/CollaborationButton.d.ts +4 -0
- package/cjs/CollaborationButton/CollaborationButton.js +19 -0
- package/cjs/CollaborationButton/CollaborationButton.module.css.js +9 -0
- package/cjs/CollaborationButton/index.d.ts +1 -0
- package/cjs/CollaborationButton/index.js +5 -0
- package/cjs/ProfileResizablePanes/ProfileResizablePanes.js +2 -1
- package/cjs/ProfileResizablePanes/ProfileResizablePanes.spec.js +3 -3
- package/cjs/ReadOnlyAttributesPager/components/MultiLineRenderer/MultiLineRenderer.js +7 -1
- package/cjs/ReadOnlyComplexAttribute/ReadOnlyComplexAttribute.js +15 -8
- package/cjs/ReadOnlyComplexAttribute/ReadOnlyComplexAttribute.module.css.js +9 -0
- package/cjs/VerificationButton/VerificationButton.d.ts +13 -0
- package/cjs/VerificationButton/VerificationButton.js +180 -0
- package/cjs/VerificationButton/VerificationButton.module.css.js +9 -0
- package/cjs/contexts/AttributesVerificationContext/helpers.d.ts +17 -0
- package/cjs/contexts/AttributesVerificationContext/helpers.js +137 -0
- package/cjs/contexts/AttributesVerificationContext/index.d.ts +19 -0
- package/cjs/contexts/AttributesVerificationContext/index.js +72 -0
- package/cjs/contexts/MdmModuleContext/context.d.ts +8 -0
- package/cjs/contexts/MdmModuleContext/hooks.d.ts +4 -0
- package/cjs/features/workflow/WorkflowComments/WorkflowComments.d.ts +3 -2
- package/cjs/features/workflow/WorkflowComments/WorkflowComments.js +3 -2
- package/cjs/features/workflow/hooks/useWorkflowComments.d.ts +4 -2
- package/cjs/features/workflow/hooks/useWorkflowComments.js +3 -2
- package/cjs/icons/VerificationInvalidIcon.d.ts +3 -0
- package/cjs/icons/VerificationInvalidIcon.js +22 -0
- package/cjs/icons/VerificationMaybeIcon.d.ts +3 -0
- package/cjs/icons/VerificationMaybeIcon.js +22 -0
- package/cjs/icons/VerificationOutdatedIcon.d.ts +3 -0
- package/cjs/icons/VerificationOutdatedIcon.js +22 -0
- package/cjs/icons/VerificationValidIcon.d.ts +3 -0
- package/cjs/icons/VerificationValidIcon.js +22 -0
- package/cjs/icons/VerifyAllIcon.d.ts +3 -0
- package/cjs/icons/VerifyAllIcon.js +26 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +6 -4
- package/contexts/AttributesVerificationContext/helpers.d.ts +17 -0
- package/contexts/AttributesVerificationContext/helpers.js +126 -0
- package/contexts/AttributesVerificationContext/index.d.ts +19 -0
- package/contexts/AttributesVerificationContext/index.js +45 -0
- package/contexts/MdmModuleContext/context.d.ts +8 -0
- package/contexts/MdmModuleContext/hooks.d.ts +4 -0
- package/features/workflow/WorkflowComments/WorkflowComments.d.ts +3 -2
- package/features/workflow/WorkflowComments/WorkflowComments.js +3 -2
- package/features/workflow/hooks/useWorkflowComments.d.ts +4 -2
- package/features/workflow/hooks/useWorkflowComments.js +3 -2
- package/icons/VerificationInvalidIcon.d.ts +3 -0
- package/icons/VerificationInvalidIcon.js +17 -0
- package/icons/VerificationMaybeIcon.d.ts +3 -0
- package/icons/VerificationMaybeIcon.js +17 -0
- package/icons/VerificationOutdatedIcon.d.ts +3 -0
- package/icons/VerificationOutdatedIcon.js +17 -0
- package/icons/VerificationValidIcon.d.ts +3 -0
- package/icons/VerificationValidIcon.js +17 -0
- package/icons/VerifyAllIcon.d.ts +3 -0
- package/icons/VerifyAllIcon.js +21 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +2 -2
- package/ReadOnlyComplexAttribute/styles.d.ts +0 -1
- package/ReadOnlyComplexAttribute/styles.js +0 -22
- package/cjs/ReadOnlyComplexAttribute/styles.d.ts +0 -1
- package/cjs/ReadOnlyComplexAttribute/styles.js +0 -25
|
@@ -7,7 +7,7 @@ import { isOpenTask } from '../helpers/common';
|
|
|
7
7
|
import { useWorkflowCheckPermission } from './useWorkflowCheckPermission';
|
|
8
8
|
import { useMdmTenant, useMdmWorkflowEnvironmentUrl, useMdmWorkflowPath } from '../../../contexts/MdmModuleContext';
|
|
9
9
|
export var useWorkflowComments = function (_a) {
|
|
10
|
-
var processInstanceComments = _a.processInstanceComments, taskId = _a.taskId, isOpen = _a.isOpen;
|
|
10
|
+
var processInstanceComments = _a.processInstanceComments, taskId = _a.taskId, isOpen = _a.isOpen, onCommentWrite = _a.onCommentWrite;
|
|
11
11
|
var updateTaskState = (useContext(WorkflowTasksContext) || {}).updateTaskState;
|
|
12
12
|
var workflowPath = useMdmWorkflowPath();
|
|
13
13
|
var environment = useMdmWorkflowEnvironmentUrl();
|
|
@@ -41,10 +41,11 @@ export var useWorkflowComments = function (_a) {
|
|
|
41
41
|
var processInstanceComments = _a.processInstanceComments;
|
|
42
42
|
setComments(processInstanceComments || []);
|
|
43
43
|
updateTaskState === null || updateTaskState === void 0 ? void 0 : updateTaskState(taskId, { processInstanceComments: processInstanceComments });
|
|
44
|
+
onCommentWrite === null || onCommentWrite === void 0 ? void 0 : onCommentWrite({ processInstanceComments: processInstanceComments });
|
|
44
45
|
})
|
|
45
46
|
.catch(showWorkflowError)
|
|
46
47
|
.finally(function () { return setRequestIsInProgress(false); });
|
|
47
48
|
}
|
|
48
|
-
}, [environment, taskId, tenant, workflowPath, safePromise, updateTaskState, canUpdateTask]);
|
|
49
|
+
}, [environment, taskId, tenant, workflowPath, safePromise, updateTaskState, canUpdateTask, onCommentWrite]);
|
|
49
50
|
return { comments: comments, requestIsInProgress: requestIsInProgress, writeComment: writeComment, readOnly: !canUpdateTask };
|
|
50
51
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
import React from 'react';
|
|
13
|
+
var VerificationInvalidIcon = function (props) {
|
|
14
|
+
return (React.createElement("svg", __assign({ width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-reltio-id": "SvgVerificationInvalidIcon" }, props),
|
|
15
|
+
React.createElement("path", { d: "M6.66667 0C2.98 0 0 2.98 0 6.66667C0 10.3533 2.98 13.3333 6.66667 13.3333C10.3533 13.3333 13.3333 10.3533 13.3333 6.66667C13.3333 2.98 10.3533 0 6.66667 0ZM10 9.06L9.06 10L6.66667 7.60667L4.27333 10L3.33333 9.06L5.72667 6.66667L3.33333 4.27333L4.27333 3.33333L6.66667 5.72667L9.06 3.33333L10 4.27333L7.60667 6.66667L10 9.06Z", fill: "#EB5757" })));
|
|
16
|
+
};
|
|
17
|
+
export default VerificationInvalidIcon;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
import React from 'react';
|
|
13
|
+
var VerificationMaybeIcon = function (props) {
|
|
14
|
+
return (React.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "data-reltio-id": "SvgMaybeIcon" }, props),
|
|
15
|
+
React.createElement("path", { d: "M6.66667 0C2.98667 0 0 2.98667 0 6.66667C0 10.3467 2.98667 13.3333 6.66667 13.3333C10.3467 13.3333 13.3333 10.3467 13.3333 6.66667C13.3333 2.98667 10.3467 0 6.66667 0ZM7.33333 11.3333H6V10H7.33333V11.3333ZM8.71333 6.16667L8.11333 6.78C7.63333 7.26667 7.33333 7.66667 7.33333 8.66667H6V8.33333C6 7.6 6.3 6.93333 6.78 6.44667L7.60667 5.60667C7.85333 5.36667 8 5.03333 8 4.66667C8 3.93333 7.4 3.33333 6.66667 3.33333C5.93333 3.33333 5.33333 3.93333 5.33333 4.66667H4C4 3.19333 5.19333 2 6.66667 2C8.14 2 9.33333 3.19333 9.33333 4.66667C9.33333 5.25333 9.09333 5.78667 8.71333 6.16667Z", fill: "#F9A825" })));
|
|
16
|
+
};
|
|
17
|
+
export default VerificationMaybeIcon;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
import React from 'react';
|
|
13
|
+
var VerificationOutdatedIcon = function (props) {
|
|
14
|
+
return (React.createElement("svg", __assign({ width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-reltio-id": "SvgVerificationOutdatedIcon" }, props),
|
|
15
|
+
React.createElement("path", { d: "M6.66667 0C2.98667 0 0 2.98667 0 6.66667C0 10.3467 2.98667 13.3333 6.66667 13.3333C10.3467 13.3333 13.3333 10.3467 13.3333 6.66667C13.3333 2.98667 10.3467 0 6.66667 0ZM7.33333 10H6V8.66667H7.33333V10ZM7.33333 7.33333H6V3.33333H7.33333V7.33333Z", fill: "#F2C94C" })));
|
|
16
|
+
};
|
|
17
|
+
export default VerificationOutdatedIcon;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
import React from 'react';
|
|
13
|
+
var VerificationValidIcon = function (props) {
|
|
14
|
+
return (React.createElement("svg", __assign({ width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-reltio-id": "SvgVerificationValidIcon" }, props),
|
|
15
|
+
React.createElement("path", { d: "M6.66667 0C2.98667 0 0 2.98667 0 6.66667C0 10.3467 2.98667 13.3333 6.66667 13.3333C10.3467 13.3333 13.3333 10.3467 13.3333 6.66667C13.3333 2.98667 10.3467 0 6.66667 0ZM5.33333 10L2 6.66667L2.94 5.72667L5.33333 8.11333L10.3933 3.05333L11.3333 4L5.33333 10Z", fill: "#27AE60" })));
|
|
16
|
+
};
|
|
17
|
+
export default VerificationValidIcon;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
import React from 'react';
|
|
13
|
+
var VerifyAllIcon = function (props) {
|
|
14
|
+
return (React.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "none", "data-reltio-id": "SvgVerifyAllIcon" }, props),
|
|
15
|
+
React.createElement("g", { clipPath: "url(#clip0_196_3459)" },
|
|
16
|
+
React.createElement("path", { d: "M1.86621 14.2667H4.59961V15.5997H1.86621C1.13305 15.5996 0.533238 14.9999 0.533203 14.2667V11.5333H1.86621V14.2667ZM15.5996 14.2667C15.5996 15 14.9999 15.5997 14.2666 15.5997H11.5332V14.2667H14.2666V11.5333H15.5996V14.2667ZM11.457 10.422C10.7145 11.7829 9.4738 12.8381 8 13.2003C6.52622 12.838 5.28531 11.783 4.54297 10.422H11.457ZM12.2002 4.74524V7.5636C12.2002 7.93658 12.1627 8.30597 12.0928 8.66711H15.4668V9.53333H0.533203V8.66711H3.9082C3.83828 8.30596 3.80078 7.93659 3.80078 7.5636V4.74524L8 2.86633L12.2002 4.74524ZM4.59961 1.86633H1.86621V4.59973H0.533203V1.86633C0.533381 1.13326 1.13313 0.533503 1.86621 0.533325H4.59961V1.86633ZM14.2666 0.533325C14.9998 0.53336 15.5994 1.13317 15.5996 1.86633V4.59973H14.2666V1.86633H11.5332V0.533325H14.2666Z", fill: "black", fillOpacity: "0.54" })),
|
|
17
|
+
React.createElement("defs", null,
|
|
18
|
+
React.createElement("clipPath", { id: "clip0_196_3459" },
|
|
19
|
+
React.createElement("rect", { width: "16", height: "16", fill: "white" })))));
|
|
20
|
+
};
|
|
21
|
+
export default VerifyAllIcon;
|
package/index.d.ts
CHANGED
|
@@ -196,6 +196,7 @@ export { FacetGroupTitle } from './FacetGroupTitle';
|
|
|
196
196
|
export { FacetsSelector } from './FacetsSelector';
|
|
197
197
|
export { FacetContainer } from './FacetContainer';
|
|
198
198
|
export { RequestedData } from './RequestedData';
|
|
199
|
+
export { CollaborationButton } from './CollaborationButton';
|
|
199
200
|
export { withTooltip } from './HOCs/withTooltip';
|
|
200
201
|
export { withAsyncMount } from './HOCs/withAsyncMount';
|
|
201
202
|
export { withDragHandle } from './HOCs/withDragHandle';
|
package/index.js
CHANGED
|
@@ -196,6 +196,7 @@ export { FacetGroupTitle } from './FacetGroupTitle';
|
|
|
196
196
|
export { FacetsSelector } from './FacetsSelector';
|
|
197
197
|
export { FacetContainer } from './FacetContainer';
|
|
198
198
|
export { RequestedData } from './RequestedData';
|
|
199
|
+
export { CollaborationButton } from './CollaborationButton';
|
|
199
200
|
// HOCs
|
|
200
201
|
export { withTooltip } from './HOCs/withTooltip';
|
|
201
202
|
export { withAsyncMount } from './HOCs/withAsyncMount';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2217",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@fluentui/react-context-selector": "^9.1.26",
|
|
12
12
|
"@googlemaps/markerclusterer": "^2.5.3",
|
|
13
13
|
"@react-sigma/core": "3.4.0",
|
|
14
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
14
|
+
"@reltio/mdm-sdk": "^1.4.2016",
|
|
15
15
|
"@vis.gl/react-google-maps": "^1.3.0",
|
|
16
16
|
"d3-cloud": "^1.2.5",
|
|
17
17
|
"d3-geo": "^2.0.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "spacer" | "ovFalse" | "complexContainer" | "labelContainer">;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { makeStyles } from '@mui/styles';
|
|
2
|
-
export var useStyles = makeStyles(function (theme) { return ({
|
|
3
|
-
complexContainer: {
|
|
4
|
-
marginTop: '1px'
|
|
5
|
-
},
|
|
6
|
-
labelContainer: {
|
|
7
|
-
display: 'flex',
|
|
8
|
-
minHeight: '18px'
|
|
9
|
-
},
|
|
10
|
-
label: {
|
|
11
|
-
display: 'inline-flex',
|
|
12
|
-
fontSize: '13px',
|
|
13
|
-
lineHeight: '16px',
|
|
14
|
-
letterSpacing: 'normal',
|
|
15
|
-
marginLeft: '2px',
|
|
16
|
-
whiteSpace: 'break-spaces'
|
|
17
|
-
},
|
|
18
|
-
spacer: {
|
|
19
|
-
flex: 1
|
|
20
|
-
},
|
|
21
|
-
ovFalse: theme.inactive
|
|
22
|
-
}); });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "spacer" | "ovFalse" | "complexContainer" | "labelContainer">;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useStyles = void 0;
|
|
4
|
-
var styles_1 = require("@mui/styles");
|
|
5
|
-
exports.useStyles = (0, styles_1.makeStyles)(function (theme) { return ({
|
|
6
|
-
complexContainer: {
|
|
7
|
-
marginTop: '1px'
|
|
8
|
-
},
|
|
9
|
-
labelContainer: {
|
|
10
|
-
display: 'flex',
|
|
11
|
-
minHeight: '18px'
|
|
12
|
-
},
|
|
13
|
-
label: {
|
|
14
|
-
display: 'inline-flex',
|
|
15
|
-
fontSize: '13px',
|
|
16
|
-
lineHeight: '16px',
|
|
17
|
-
letterSpacing: 'normal',
|
|
18
|
-
marginLeft: '2px',
|
|
19
|
-
whiteSpace: 'break-spaces'
|
|
20
|
-
},
|
|
21
|
-
spacer: {
|
|
22
|
-
flex: 1
|
|
23
|
-
},
|
|
24
|
-
ovFalse: theme.inactive
|
|
25
|
-
}); });
|