@reltio/components 1.4.908 → 1.4.909
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/index.d.ts +3 -0
- package/cjs/components/index.js +8 -1
- 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/index.d.ts +3 -0
- package/esm/components/index.js +3 -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,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare enum ActionButtonMode {
|
|
3
|
+
iconButton = "iconButton",
|
|
4
|
+
button = "button",
|
|
5
|
+
menuItem = "menuItem"
|
|
6
|
+
}
|
|
7
|
+
export declare type Props = {
|
|
8
|
+
className?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
icon: React.ElementType;
|
|
11
|
+
label: string;
|
|
12
|
+
mode: ActionButtonMode;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
onMenuClose?: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const ActionButton: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
43
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
+
};
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.ActionButton = exports.ActionButtonMode = void 0;
|
|
48
|
+
var react_1 = __importStar(require("react"));
|
|
49
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
50
|
+
var Button_1 = __importDefault(require("@material-ui/core/Button"));
|
|
51
|
+
var MenuItem_1 = __importDefault(require("@material-ui/core/MenuItem"));
|
|
52
|
+
var Typography_1 = __importDefault(require("@material-ui/core/Typography"));
|
|
53
|
+
var styles_1 = require("./styles");
|
|
54
|
+
var core_1 = require("../../core");
|
|
55
|
+
var ExpandedValueTooltip_1 = __importDefault(require("../ExpandedValueTooltip/ExpandedValueTooltip"));
|
|
56
|
+
var SmallIconButton_1 = require("../SmallIconButton");
|
|
57
|
+
var ActionButtonMode;
|
|
58
|
+
(function (ActionButtonMode) {
|
|
59
|
+
ActionButtonMode["iconButton"] = "iconButton";
|
|
60
|
+
ActionButtonMode["button"] = "button";
|
|
61
|
+
ActionButtonMode["menuItem"] = "menuItem";
|
|
62
|
+
})(ActionButtonMode = exports.ActionButtonMode || (exports.ActionButtonMode = {}));
|
|
63
|
+
exports.ActionButton = react_1.forwardRef(function (_a, ref) {
|
|
64
|
+
var className = _a.className, _b = _a.mode, mode = _b === void 0 ? ActionButtonMode.iconButton : _b, label = _a.label, disabled = _a.disabled, Icon = _a.icon, _c = _a.onClick, onClick = _c === void 0 ? core_1.noop : _c, _d = _a.onMenuClose, onMenuClose = _d === void 0 ? core_1.noop : _d, otherProps = __rest(_a, ["className", "mode", "label", "disabled", "icon", "onClick", "onMenuClose"]);
|
|
65
|
+
var styles = styles_1.useStyles();
|
|
66
|
+
var getButtonView = function () {
|
|
67
|
+
switch (mode) {
|
|
68
|
+
case 'iconButton': {
|
|
69
|
+
return (react_1.default.createElement(SmallIconButton_1.SmallIconButtonWithTooltip, __assign({ disabled: disabled, className: classnames_1.default(styles.iconButton, className), size: "S", tooltipTitle: label, onClick: onClick, icon: Icon }, otherProps)));
|
|
70
|
+
}
|
|
71
|
+
case 'button': {
|
|
72
|
+
return (react_1.default.createElement(Button_1.default, __assign({ className: classnames_1.default(styles.button, className), disabled: disabled, startIcon: react_1.default.createElement(Icon, null), onClick: onClick, color: "primary", classes: { startIcon: styles.startIcon, label: styles.label } }, otherProps),
|
|
73
|
+
react_1.default.createElement(ExpandedValueTooltip_1.default, { value: label },
|
|
74
|
+
react_1.default.createElement("div", { className: styles.overflowStyle }, label))));
|
|
75
|
+
}
|
|
76
|
+
case 'menuItem': {
|
|
77
|
+
var handleClick = function () {
|
|
78
|
+
onMenuClose();
|
|
79
|
+
onClick();
|
|
80
|
+
};
|
|
81
|
+
return (react_1.default.createElement(MenuItem_1.default, __assign({ classes: { root: styles.menuItem }, onClick: handleClick, disabled: disabled, ref: ref }, otherProps),
|
|
82
|
+
react_1.default.createElement(react_1.default.Fragment, null,
|
|
83
|
+
react_1.default.createElement(Icon, { className: styles.menuIcon }),
|
|
84
|
+
react_1.default.createElement(Typography_1.default, { classes: { root: styles.menuText } }, label))));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
return getButtonView();
|
|
89
|
+
});
|
|
90
|
+
exports.ActionButton.displayName = 'ActionButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"label" | "button" | "startIcon" | "menuItem" | "menuText" | "iconButton" | "overflowStyle" | "menuIcon">;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useStyles = void 0;
|
|
4
|
+
var styles_1 = require("@material-ui/core/styles");
|
|
5
|
+
exports.useStyles = styles_1.makeStyles(function (theme) { return ({
|
|
6
|
+
button: {
|
|
7
|
+
padding: '9px 16px 9px 12px',
|
|
8
|
+
'& svg g path': {
|
|
9
|
+
fill: theme.palette.primary.main,
|
|
10
|
+
fillOpacity: 1
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
iconButton: {
|
|
14
|
+
'& svg g path': {
|
|
15
|
+
fill: theme.palette.primary.main,
|
|
16
|
+
fillOpacity: 1
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
startIcon: {
|
|
20
|
+
marginLeft: 0,
|
|
21
|
+
marginRight: '8px',
|
|
22
|
+
width: '18px',
|
|
23
|
+
height: '18px',
|
|
24
|
+
alignItems: 'center'
|
|
25
|
+
},
|
|
26
|
+
label: {
|
|
27
|
+
whiteSpace: 'nowrap',
|
|
28
|
+
fontSize: '14px',
|
|
29
|
+
lineHeight: '16px',
|
|
30
|
+
letterSpacing: 0
|
|
31
|
+
},
|
|
32
|
+
overflowStyle: {
|
|
33
|
+
overflow: 'hidden',
|
|
34
|
+
whiteSpace: 'nowrap',
|
|
35
|
+
textOverflow: 'ellipsis'
|
|
36
|
+
},
|
|
37
|
+
menuIcon: {
|
|
38
|
+
marginRight: '12px'
|
|
39
|
+
},
|
|
40
|
+
menuItem: {
|
|
41
|
+
minHeight: '28px',
|
|
42
|
+
padding: '2px 16px 2px 12px'
|
|
43
|
+
},
|
|
44
|
+
menuText: {
|
|
45
|
+
color: theme.palette.text.primary,
|
|
46
|
+
fontSize: '13px',
|
|
47
|
+
lineHeight: '15px',
|
|
48
|
+
letterSpacing: 0
|
|
49
|
+
}
|
|
50
|
+
}); });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ActionButtonMode } from '../ActionButton/ActionButton';
|
|
3
|
+
import { Entity } from '@reltio/mdm-sdk';
|
|
4
|
+
declare type Props = {
|
|
5
|
+
className?: string;
|
|
6
|
+
entities: Entity[];
|
|
7
|
+
entity: Entity;
|
|
8
|
+
mode?: ActionButtonMode;
|
|
9
|
+
onMenuClose?: () => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onStartRequest?: () => void;
|
|
12
|
+
onFinishRequest?: () => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const MergeButton: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLLIElement>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
43
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
+
};
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.MergeButton = void 0;
|
|
48
|
+
var react_1 = __importStar(require("react"));
|
|
49
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
50
|
+
var mergeIcon_svg_1 = __importDefault(require("./mergeIcon.svg"));
|
|
51
|
+
var core_1 = require("../../core");
|
|
52
|
+
var ActionButton_1 = require("../ActionButton/ActionButton");
|
|
53
|
+
var hooks_1 = require("../../hooks");
|
|
54
|
+
exports.MergeButton = react_1.forwardRef(function (_a, ref) {
|
|
55
|
+
var className = _a.className, _b = _a.mode, mode = _b === void 0 ? ActionButton_1.ActionButtonMode.iconButton : _b, _c = _a.onMenuClose, onMenuClose = _c === void 0 ? core_1.noop : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, entity = _a.entity, entities = _a.entities, onStartRequest = _a.onStartRequest, onFinishRequest = _a.onFinishRequest, otherProps = __rest(_a, ["className", "mode", "onMenuClose", "disabled", "entity", "entities", "onStartRequest", "onFinishRequest"]);
|
|
56
|
+
var sendMergeAllRequest = hooks_1.useMergeAllRequest({
|
|
57
|
+
entity: entity,
|
|
58
|
+
entities: entities,
|
|
59
|
+
onStartRequest: onStartRequest,
|
|
60
|
+
onFinishRequest: onFinishRequest
|
|
61
|
+
}).sendMergeAllRequest;
|
|
62
|
+
return (react_1.default.createElement(ActionButton_1.ActionButton, __assign({ className: className, disabled: disabled, mode: mode, label: ui_i18n_1.default.text('Merge'), icon: mergeIcon_svg_1.default, onClick: sendMergeAllRequest, onMenuClose: onMenuClose, ref: ref }, otherProps)));
|
|
63
|
+
});
|
|
64
|
+
exports.MergeButton.displayName = 'mergeButton';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Entity } from '@reltio/mdm-sdk';
|
|
2
|
+
import { ActionButtonMode } from '../ActionButton/ActionButton';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
declare type Props = {
|
|
5
|
+
className?: string;
|
|
6
|
+
entities: Entity[];
|
|
7
|
+
entity: Entity;
|
|
8
|
+
mode?: ActionButtonMode;
|
|
9
|
+
onMenuClose?: () => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onStartRequest?: () => void;
|
|
12
|
+
onFinishRequest?: () => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const NotMatchButton: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLLIElement>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
43
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
+
};
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.NotMatchButton = void 0;
|
|
48
|
+
var ActionButton_1 = require("../ActionButton/ActionButton");
|
|
49
|
+
var react_1 = __importStar(require("react"));
|
|
50
|
+
var notMatch_svg_1 = __importDefault(require("./notMatch.svg"));
|
|
51
|
+
var core_1 = require("../../core");
|
|
52
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
53
|
+
var useMarkAsNotMatchRequest_1 = require("../../hooks/useMarkAsNotMatchRequest");
|
|
54
|
+
exports.NotMatchButton = react_1.forwardRef(function (_a, ref) {
|
|
55
|
+
var className = _a.className, _b = _a.mode, mode = _b === void 0 ? ActionButton_1.ActionButtonMode.iconButton : _b, _c = _a.onMenuClose, onMenuClose = _c === void 0 ? core_1.noop : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, entity = _a.entity, entities = _a.entities, onStartRequest = _a.onStartRequest, onFinishRequest = _a.onFinishRequest, otherProps = __rest(_a, ["className", "mode", "onMenuClose", "disabled", "entity", "entities", "onStartRequest", "onFinishRequest"]);
|
|
56
|
+
var sendMarkAsNotMatchRequest = useMarkAsNotMatchRequest_1.useMarkAsNotMatchRequest({
|
|
57
|
+
entity: entity,
|
|
58
|
+
entities: entities,
|
|
59
|
+
onStartRequest: onStartRequest,
|
|
60
|
+
onFinishRequest: onFinishRequest
|
|
61
|
+
}).sendMarkAsNotMatchRequest;
|
|
62
|
+
return (react_1.default.createElement(ActionButton_1.ActionButton, __assign({ className: className, disabled: disabled, mode: mode, label: ui_i18n_1.default.text('Not a match'), icon: notMatch_svg_1.default, onClick: sendMarkAsNotMatchRequest, onMenuClose: onMenuClose, ref: ref }, otherProps)));
|
|
63
|
+
});
|
|
64
|
+
exports.NotMatchButton.displayName = 'notMatchButton';
|
|
@@ -8,6 +8,7 @@ declare type Props = {
|
|
|
8
8
|
match: PotentialMatch;
|
|
9
9
|
metadata: Metadata;
|
|
10
10
|
children?: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
11
12
|
};
|
|
12
|
-
export declare const ProfileMatchCard: ({ children, entitiesMap, entity, match, metadata }: Props) => JSX.Element;
|
|
13
|
+
export declare const ProfileMatchCard: ({ children, entitiesMap, entity, match, metadata, className }: Props) => JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -8,10 +8,11 @@ var react_1 = __importDefault(require("react"));
|
|
|
8
8
|
var styles_1 = require("./styles");
|
|
9
9
|
var ProfileCard_1 = __importDefault(require("../ProfileCard/ProfileCard"));
|
|
10
10
|
var MatchRulesBlock_1 = __importDefault(require("../MatchRulesBlock/MatchRulesBlock"));
|
|
11
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
11
12
|
var ProfileMatchCard = function (_a) {
|
|
12
|
-
var children = _a.children, entitiesMap = _a.entitiesMap, entity = _a.entity, match = _a.match, metadata = _a.metadata;
|
|
13
|
+
var children = _a.children, entitiesMap = _a.entitiesMap, entity = _a.entity, match = _a.match, metadata = _a.metadata, className = _a.className;
|
|
13
14
|
var styles = styles_1.useStyles();
|
|
14
|
-
return (react_1.default.createElement("div", { className: styles.root },
|
|
15
|
+
return (react_1.default.createElement("div", { className: classnames_1.default(styles.root, className) },
|
|
15
16
|
react_1.default.createElement("div", { className: styles.profileCardWrapper },
|
|
16
17
|
react_1.default.createElement(ProfileCard_1.default, { entity: match.object, classes: { container: styles.profileCardContainer }, disableEntityTypeColor: true }),
|
|
17
18
|
children),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AttributesViewOwnProps } from '../types';
|
|
3
|
-
declare const AttributesView: ({ mode, attributesCount, ...restProps }: AttributesViewOwnProps) => JSX.Element;
|
|
3
|
+
declare const AttributesView: ({ mode, attributesCount, pinnedAttributes, ...restProps }: AttributesViewOwnProps) => JSX.Element;
|
|
4
4
|
export default AttributesView;
|
|
@@ -30,7 +30,7 @@ var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
|
30
30
|
var AttributesView_1 = __importDefault(require("../readMode/AttributesView"));
|
|
31
31
|
var AttributesView_2 = __importDefault(require("../editMode/AttributesView"));
|
|
32
32
|
var AttributesView = function (_a) {
|
|
33
|
-
var _b = _a.mode, mode = _b === void 0 ? mdm_sdk_1.Mode.Viewing : _b, attributesCount = _a.attributesCount, restProps = __rest(_a, ["mode", "attributesCount"]);
|
|
34
|
-
return mdm_sdk_1.isViewMode(mode) ? (react_1.default.createElement(AttributesView_1.default, __assign({ attributesCount: attributesCount }, restProps))) : (react_1.default.createElement(AttributesView_2.default, __assign({ mode: mode }, restProps)));
|
|
33
|
+
var _b = _a.mode, mode = _b === void 0 ? mdm_sdk_1.Mode.Viewing : _b, attributesCount = _a.attributesCount, pinnedAttributes = _a.pinnedAttributes, restProps = __rest(_a, ["mode", "attributesCount", "pinnedAttributes"]);
|
|
34
|
+
return mdm_sdk_1.isViewMode(mode) ? (react_1.default.createElement(AttributesView_1.default, __assign({ attributesCount: attributesCount }, restProps))) : (react_1.default.createElement(AttributesView_2.default, __assign({ mode: mode, pinnedAttributes: pinnedAttributes }, restProps)));
|
|
35
35
|
};
|
|
36
36
|
exports.default = AttributesView;
|
|
@@ -3,5 +3,5 @@ import { AttributesViewOwnProps } from '../types';
|
|
|
3
3
|
import AttributesView from './AttributesView';
|
|
4
4
|
declare type Props = Pick<AttributesViewOwnProps, 'entity' | 'mode'>;
|
|
5
5
|
export { AttributesView };
|
|
6
|
-
declare const _default: import("react-redux").ConnectedComponent<({ mode, attributesCount, ...restProps }: AttributesViewOwnProps) => JSX.Element, import("react-redux").Omit<AttributesViewOwnProps, "entity" | "mode"> & Props>;
|
|
6
|
+
declare const _default: import("react-redux").ConnectedComponent<({ mode, attributesCount, pinnedAttributes, ...restProps }: AttributesViewOwnProps) => JSX.Element, import("react-redux").Omit<AttributesViewOwnProps, "entity" | "mode"> & Props>;
|
|
7
7
|
export default _default;
|
|
@@ -44,12 +44,14 @@ var MoreAttributesButton_1 = __importDefault(require("../MoreAttributesButton"))
|
|
|
44
44
|
var constants_1 = require("../../../../constants");
|
|
45
45
|
var attributesView_1 = require("../../helpers/attributesView");
|
|
46
46
|
var helpers_1 = require("./helpers");
|
|
47
|
+
var PinnedAttributesContext_1 = require("../contexts/PinnedAttributesContext");
|
|
47
48
|
var AttributesList = function (_a) {
|
|
48
49
|
var attrTypes = _a.attrTypes, entity = _a.entity, parentUri = _a.parentUri, showEmptyEditors = _a.showEmptyEditors, mode = _a.mode, crosswalks = _a.crosswalks, drawLines = _a.drawLines, children = _a.children, className = _a.className, _b = _a.alwaysVisibleTypeUris, alwaysVisibleTypeUris = _b === void 0 ? constants_1.ALWAYS_VISIBLE_TYPE_URIS : _b, onAddAttributes = _a.onAddAttributes, onChangeAttribute = _a.onChangeAttribute, onDeleteAttribute = _a.onDeleteAttribute, additionalControlsRenderer = _a.additionalControlsRenderer, showNonOv = _a.showNonOv;
|
|
49
50
|
var _c = entity.attributes, attributes = _c === void 0 ? {} : _c;
|
|
50
51
|
var creatableAttrTypes = react_1.useMemo(function () { return mdm_sdk_1.getCreatableAttributeTypes(mode, attrTypes); }, [attrTypes, mode]);
|
|
51
52
|
var moreAttrTypes = helpers_1.getMoreAttrTypes(creatableAttrTypes, entity);
|
|
52
|
-
var
|
|
53
|
+
var pinnedAttributes = react_1.useContext(PinnedAttributesContext_1.PinnedAttributesContext);
|
|
54
|
+
var pagersData = react_1.useMemo(function () { return mdm_sdk_1.getAttributesListForEditMode(attrTypes, mode, entity, showEmptyEditors, showNonOv, pinnedAttributes); }, [attrTypes, mode, entity, showEmptyEditors, showNonOv, pinnedAttributes]);
|
|
53
55
|
var _d = react_1.useMemo(function () { return attributesView_1.splitPagersData(alwaysVisibleTypeUris, pagersData); }, [pagersData, alwaysVisibleTypeUris]), alwaysVisiblePagersData = _d[0], regularPagersData = _d[1];
|
|
54
56
|
var onAddMoreAttributes = react_1.useCallback(function (attributeTypes) {
|
|
55
57
|
onAddAttributes(attributeTypes.map(function (attributeType) { return ({ attributeType: attributeType, parentUri: parentUri }); }));
|
|
@@ -34,6 +34,7 @@ var Attribute_1 = __importDefault(require("../AttributesFactory/Attribute"));
|
|
|
34
34
|
var CardinalityMessage_1 = __importDefault(require("./CardinalityMessage"));
|
|
35
35
|
var styles_1 = require("./styles");
|
|
36
36
|
var utils_1 = require("./utils");
|
|
37
|
+
var PinnedAttributesContext_1 = require("../contexts/PinnedAttributesContext");
|
|
37
38
|
var AttributeRenderer = function (_a) {
|
|
38
39
|
var max = _a.max, values = _a.values, attributeType = _a.attributeType, parentUri = _a.parentUri, mode = _a.mode, drawLines = _a.drawLines, showEmptyEditors = _a.showEmptyEditors, errorMessage = _a.errorMessage, errors = _a.errors, paging = _a.paging, crosswalks = _a.crosswalks, showNonOv = _a.showNonOv, onAddAttributes = _a.onAddAttributes, onDeleteAttribute = _a.onDeleteAttribute, onChangeAttribute = _a.onChangeAttribute, onDeactivateError = _a.onDeactivateError, additionalControlsRenderer = _a.additionalControlsRenderer, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues;
|
|
39
40
|
var styles = styles_1.useStyles();
|
|
@@ -41,8 +42,10 @@ var AttributeRenderer = function (_a) {
|
|
|
41
42
|
var _c = react_1.useState(false), hadDeletions = _c[0], setHadDeletions = _c[1];
|
|
42
43
|
var label = attributeType.label, isRequired = attributeType.required, cardinality = attributeType.cardinality, name = attributeType.name, attributeTypeUri = attributeType.uri;
|
|
43
44
|
var isEditableMode = mdm_sdk_1.isEditableMode(mode);
|
|
45
|
+
var pinnedAttributes = react_1.useContext(PinnedAttributesContext_1.PinnedAttributesContext);
|
|
46
|
+
var isPinned = react_1.useMemo(function () { return pinnedAttributes === null || pinnedAttributes === void 0 ? void 0 : pinnedAttributes.includes(attributeTypeUri); }, [attributeTypeUri, pinnedAttributes]);
|
|
44
47
|
var isEmptyValues = mdm_sdk_1.isEmptyValue(values);
|
|
45
|
-
var showEmpty = ((!hadDeletions && showEmptyEditors) || isRequired) && isEmptyValues;
|
|
48
|
+
var showEmpty = ((!hadDeletions && showEmptyEditors) || isRequired || isPinned) && isEmptyValues;
|
|
46
49
|
var emptyEditorValue = react_1.useRef(mdm_sdk_1.createNewAttribute({
|
|
47
50
|
parentUri: parentUri,
|
|
48
51
|
attributeType: attributeType
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AttributesViewProps } from '../../types';
|
|
3
3
|
declare type Props = Omit<AttributesViewProps, 'attributesCount'>;
|
|
4
|
-
declare const AttributesView: ({ className, entity, mode, metadata, caption, excludeUris, includeUris }: Props) => JSX.Element;
|
|
4
|
+
declare const AttributesView: ({ className, entity, mode, metadata, caption, excludeUris, includeUris, pinnedAttributes }: Props) => JSX.Element;
|
|
5
5
|
export default AttributesView;
|
|
@@ -46,12 +46,18 @@ var AttributesList_1 = __importDefault(require("../AttributesList"));
|
|
|
46
46
|
var contexts_1 = require("../../../../contexts");
|
|
47
47
|
var attributesView_1 = require("../../helpers/attributesView");
|
|
48
48
|
var styles_1 = require("./styles");
|
|
49
|
+
var PinnedAttributesContext_1 = require("../contexts/PinnedAttributesContext");
|
|
49
50
|
var AttributesView = function (_a) {
|
|
50
51
|
var _b;
|
|
51
|
-
var className = _a.className, _c = _a.entity, entity = _c === void 0 ? {} : _c, mode = _a.mode, metadata = _a.metadata, _d = _a.caption, caption = _d === void 0 ? '' : _d, _e = _a.excludeUris, excludeUris = _e === void 0 ? [] : _e, _f = _a.includeUris, includeUris = _f === void 0 ? [] : _f;
|
|
52
|
+
var className = _a.className, _c = _a.entity, entity = _c === void 0 ? {} : _c, mode = _a.mode, metadata = _a.metadata, _d = _a.caption, caption = _d === void 0 ? '' : _d, _e = _a.excludeUris, excludeUris = _e === void 0 ? [] : _e, _f = _a.includeUris, includeUris = _f === void 0 ? [] : _f, pinnedAttributes = _a.pinnedAttributes;
|
|
52
53
|
var styles = styles_1.useStyles();
|
|
53
54
|
var dispatch = react_redux_1.useDispatch();
|
|
54
55
|
var viewId = react_1.useContext(contexts_1.ViewIdContext);
|
|
56
|
+
var userRoles = react_redux_1.useSelector(mdm_module_1.default.selectors.getUserRoles);
|
|
57
|
+
var pinnedAttributeUris = react_1.useMemo(function () { return mdm_sdk_1.getPinnedAttributesForUser(pinnedAttributes, userRoles); }, [
|
|
58
|
+
pinnedAttributes,
|
|
59
|
+
userRoles
|
|
60
|
+
]);
|
|
55
61
|
var modifiedEntity = react_redux_1.useSelector(function (state) { return mdm_module_1.default.selectors.getModifiedEntity(state, entity.uri) || {}; });
|
|
56
62
|
var filteredAttrTypes = react_1.useMemo(function () { return attributesView_1.getFilteredAttrTypes(metadata, modifiedEntity.type, includeUris, excludeUris); }, [excludeUris, includeUris, metadata, modifiedEntity.type]);
|
|
57
63
|
var onAddAttributes = react_1.useCallback(function (params) {
|
|
@@ -62,6 +68,7 @@ var AttributesView = function (_a) {
|
|
|
62
68
|
return (react_1.default.createElement(BasicView_1.default, { className: className },
|
|
63
69
|
caption && react_1.default.createElement(FacetViewHeader_1.default, { className: styles.header, title: caption }),
|
|
64
70
|
react_1.default.createElement(Box_1.default, { className: classnames_1.default(styles.attributesContainer, (_b = {}, _b[styles.noCaption] = !caption, _b)) },
|
|
65
|
-
react_1.default.createElement(
|
|
71
|
+
react_1.default.createElement(PinnedAttributesContext_1.PinnedAttributesContext.Provider, { value: pinnedAttributeUris },
|
|
72
|
+
react_1.default.createElement(AttributesList_1.default, { entity: modifiedEntity, attrTypes: filteredAttrTypes, parentUri: modifiedEntity.uri, drawLines: false, mode: mode, showEmptyEditors: mdm_sdk_1.isTempUri(modifiedEntity.uri), crosswalks: modifiedEntity.crosswalks, onAddAttributes: onAddAttributes, onChangeAttribute: onChangeAttribute, onDeleteAttribute: onDeleteAttribute })))));
|
|
66
73
|
};
|
|
67
74
|
exports.default = AttributesView;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import AttributesView from './AttributesView';
|
|
3
3
|
export { AttributesView };
|
|
4
|
-
declare const _default: import("react-redux").ConnectedComponent<({ className, entity, mode, metadata, caption, excludeUris, includeUris }: {
|
|
4
|
+
declare const _default: import("react-redux").ConnectedComponent<({ className, entity, mode, metadata, caption, excludeUris, includeUris, pinnedAttributes }: {
|
|
5
5
|
entity?: import("@reltio/mdm-sdk").Entity | Record<string, never>;
|
|
6
6
|
metadata: import("@reltio/mdm-sdk").Metadata;
|
|
7
7
|
mode?: import("@reltio/mdm-sdk").Mode;
|
|
@@ -9,6 +9,10 @@ declare const _default: import("react-redux").ConnectedComponent<({ className, e
|
|
|
9
9
|
includeUris?: string[];
|
|
10
10
|
excludeUris?: string[];
|
|
11
11
|
className?: string;
|
|
12
|
+
pinnedAttributes?: {
|
|
13
|
+
attributes: string[];
|
|
14
|
+
roles?: string[];
|
|
15
|
+
}[];
|
|
12
16
|
}) => JSX.Element, import("react-redux").Omit<{
|
|
13
17
|
entity?: import("@reltio/mdm-sdk").Entity | Record<string, never>;
|
|
14
18
|
metadata: import("@reltio/mdm-sdk").Metadata;
|
|
@@ -17,5 +21,9 @@ declare const _default: import("react-redux").ConnectedComponent<({ className, e
|
|
|
17
21
|
includeUris?: string[];
|
|
18
22
|
excludeUris?: string[];
|
|
19
23
|
className?: string;
|
|
24
|
+
pinnedAttributes?: {
|
|
25
|
+
attributes: string[];
|
|
26
|
+
roles?: string[];
|
|
27
|
+
}[];
|
|
20
28
|
}, "metadata">>;
|
|
21
29
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PinnedAttributesContext = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
exports.PinnedAttributesContext = react_1.default.createContext(null);
|
|
@@ -9,6 +9,10 @@ declare const _default: import("react-redux").ConnectedComponent<({ className, e
|
|
|
9
9
|
excludeUris?: string[];
|
|
10
10
|
className?: string;
|
|
11
11
|
attributesCount?: number;
|
|
12
|
+
pinnedAttributes?: {
|
|
13
|
+
attributes: string[];
|
|
14
|
+
roles?: string[];
|
|
15
|
+
}[];
|
|
12
16
|
}) => JSX.Element, import("react-redux").Omit<{
|
|
13
17
|
entity?: import("@reltio/mdm-sdk").Entity | Record<string, never>;
|
|
14
18
|
metadata: import("@reltio/mdm-sdk").Metadata;
|
|
@@ -17,5 +21,9 @@ declare const _default: import("react-redux").ConnectedComponent<({ className, e
|
|
|
17
21
|
excludeUris?: string[];
|
|
18
22
|
className?: string;
|
|
19
23
|
attributesCount?: number;
|
|
24
|
+
pinnedAttributes?: {
|
|
25
|
+
attributes: string[];
|
|
26
|
+
roles?: string[];
|
|
27
|
+
}[];
|
|
20
28
|
}, "metadata">>;
|
|
21
29
|
export default _default;
|
|
@@ -122,3 +122,6 @@ export { default as OvIcon } from './attributes/OvIcon';
|
|
|
122
122
|
export { default as RelationEditor } from './RelationEditor';
|
|
123
123
|
export * from './workflow';
|
|
124
124
|
export { ProfileMatchCard } from './ProfileMatchCard/ProfileMatchCard';
|
|
125
|
+
export { MergeButton } from './MergeButton/MergeButton';
|
|
126
|
+
export { NotMatchButton } from './NotMatchButton/NotMatchButton';
|
|
127
|
+
export { ActionButton, ActionButtonMode } from './ActionButton/ActionButton';
|
package/cjs/components/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.EntityTypeIcon = exports.EntityTypeBadge = exports.EntityAvatar = exports.EMPTY_STATE_VARIANTS = exports.EMPTY_STATE_ICONS = exports.EmptyState = exports.NoResults = exports.NoData = exports.DropDownSelector = exports.DropDownMenuButton = exports.Drawer = exports.DataTypeValue = exports.ConnectionRelationTypeSelector = exports.ConfigureColumnsPopup = exports.MenuWithPopper = exports.DropdownIndicatorWithIconButton = exports.DropdownIndicator = exports.CommentsContainer = exports.ColorBar = exports.CollapseButton = exports.CollaborationItem = exports.ClickAwayProvider = exports.BasicViewHeader = exports.BasicViewContent = exports.BasicView = exports.ProfileBandNavigation = exports.AvatarWithFallback = exports.AutoSizeList = exports.ReadOnlyAttributesPager = exports.SimpleAttribute = exports.ReferenceAttribute = exports.NestedAttribute = exports.ImageAttributesLine = exports.ReadOnlyAttributesList = exports.ReadOnlyAttributeValuesBlock = exports.EditableAttribute = exports.ReadOnlyAttribute = exports.CardinalityMessage = exports.AttributesPager = exports.SimpleAttributeEditor = exports.RelationTypeSelector = exports.ReferenceAttributeEditor = exports.NestedAttributeEditor = exports.MoreAttributesButton = exports.EntitySelector = exports.EntityCreator = exports.AttributesList = exports.BranchDecorator = exports.AttributesView = exports.AttributeListItem = void 0;
|
|
17
17
|
exports.SimpleDropDownSelector = exports.SidePanelContentHeader = exports.SidePanel = exports.SideButtonsPanel = exports.SelectorWithOnlyOptionAutoSelect = exports.SelectionPopupPopper = exports.SelectionPopup = exports.useKeyboardNavigation = exports.WhiteSearchInput = exports.SearchInput = exports.ScoreLabel = exports.Score = exports.ResizablePanes = exports.ReltioGridLayout = exports.ReactSortableTreeUtils = exports.ReactSortableTreeHandlers = exports.ReactSortableTree = exports.ReactSelectOptionFilters = exports.MultiSelect = exports.QueryBuilderRowsGroup = exports.QueryBuilderRow = exports.ProfileCard = exports.ProfileBand = exports.PotentialMatchReviewCard = exports.PopupWithArrow = exports.Popper = exports.MultipleInput = exports.ModeSwitcherSelect = exports.ModeSwitcher = exports.TransitiveMatchBlock = exports.SimpleMatchRulesBuilder = exports.SimpleMatchRulesBlock = exports.MatchRulesBlock = exports.LoadingSpinner = exports.Link = exports.LinearLoadIndicator = exports.ImportModes = exports.ImportButton = exports.ImageGalleryDialog = exports.Highlighter = exports.HierarchicalAttributeTooltip = exports.HideOnShrink = exports.FlipCard = exports.FacetViewHeader = exports.ExpandedValueTooltip = exports.ErrorWrapper = exports.ErrorPopup = exports.ErrorBoundary = exports.EntityUriLink = exports.EntityTypesSelector = void 0;
|
|
18
|
-
exports.ProfileMatchCard = exports.RelationEditor = exports.OvIcon = exports.ErrorMessage = exports.ReltioMap = exports.ConfirmDeleteDialog = exports.ConfirmationDialog = exports.Marginator = exports.LightArrowTooltip = exports.ArrowExpandButton = exports.ScrollableTabs = exports.ExpandableSearchInput = exports.VirtualGroupedList = exports.ViewMoreToggle = exports.VerticalHeadingsTable = exports.VerticalDivider = exports.AttributeTitle = exports.Spacer = exports.SourceIcon = exports.SmallIconButtonWithTooltip = exports.SmallIconButton = void 0;
|
|
18
|
+
exports.ActionButtonMode = exports.ActionButton = exports.NotMatchButton = exports.MergeButton = exports.ProfileMatchCard = exports.RelationEditor = exports.OvIcon = exports.ErrorMessage = exports.ReltioMap = exports.ConfirmDeleteDialog = exports.ConfirmationDialog = exports.Marginator = exports.LightArrowTooltip = exports.ArrowExpandButton = exports.ScrollableTabs = exports.ExpandableSearchInput = exports.VirtualGroupedList = exports.ViewMoreToggle = exports.VerticalHeadingsTable = exports.VerticalDivider = exports.AttributeTitle = exports.Spacer = exports.SourceIcon = exports.SmallIconButtonWithTooltip = exports.SmallIconButton = void 0;
|
|
19
19
|
__exportStar(require("./activityLog"), exports);
|
|
20
20
|
var AttributeListItem_1 = require("./AttributeListItem/AttributeListItem");
|
|
21
21
|
Object.defineProperty(exports, "AttributeListItem", { enumerable: true, get: function () { return __importDefault(AttributeListItem_1).default; } });
|
|
@@ -260,3 +260,10 @@ Object.defineProperty(exports, "RelationEditor", { enumerable: true, get: functi
|
|
|
260
260
|
__exportStar(require("./workflow"), exports);
|
|
261
261
|
var ProfileMatchCard_1 = require("./ProfileMatchCard/ProfileMatchCard");
|
|
262
262
|
Object.defineProperty(exports, "ProfileMatchCard", { enumerable: true, get: function () { return ProfileMatchCard_1.ProfileMatchCard; } });
|
|
263
|
+
var MergeButton_1 = require("./MergeButton/MergeButton");
|
|
264
|
+
Object.defineProperty(exports, "MergeButton", { enumerable: true, get: function () { return MergeButton_1.MergeButton; } });
|
|
265
|
+
var NotMatchButton_1 = require("./NotMatchButton/NotMatchButton");
|
|
266
|
+
Object.defineProperty(exports, "NotMatchButton", { enumerable: true, get: function () { return NotMatchButton_1.NotMatchButton; } });
|
|
267
|
+
var ActionButton_1 = require("./ActionButton/ActionButton");
|
|
268
|
+
Object.defineProperty(exports, "ActionButton", { enumerable: true, get: function () { return ActionButton_1.ActionButton; } });
|
|
269
|
+
Object.defineProperty(exports, "ActionButtonMode", { enumerable: true, get: function () { return ActionButton_1.ActionButtonMode; } });
|
|
@@ -6,6 +6,7 @@ export declare const CollaborationContext: React.Context<{
|
|
|
6
6
|
comments: Comment[];
|
|
7
7
|
currentComment: Comment;
|
|
8
8
|
getComments: (uri: string, pageToken?: string) => void;
|
|
9
|
+
getCommentsCount: (objectIds: string[]) => void;
|
|
9
10
|
getComment: (commentId: Comment['commentId']) => void;
|
|
10
11
|
createComment: (params: Pick<Comment, 'content' | 'namedUsers' | 'objectType' | 'relatedObjectUris'> & {
|
|
11
12
|
uri: string;
|
|
@@ -12,6 +12,7 @@ exports.CollaborationContext = react_1.default.createContext({
|
|
|
12
12
|
currentComment: null,
|
|
13
13
|
getComment: noop,
|
|
14
14
|
getComments: function () { return new Promise(noop); },
|
|
15
|
+
getCommentsCount: noop,
|
|
15
16
|
createComment: function () { return new Promise(noop); },
|
|
16
17
|
editComment: function () { return new Promise(noop); },
|
|
17
18
|
createReply: function () { return new Promise(noop); },
|
package/cjs/hooks/index.d.ts
CHANGED
|
@@ -13,3 +13,5 @@ export { useWhyDidYouUpdate } from './useWhyDidYouUpdate';
|
|
|
13
13
|
export { useConfigPermissions } from './useConfigPermissions';
|
|
14
14
|
export { useMatchesLoader } from './useMatchesLoader';
|
|
15
15
|
export { usePagingSimulator } from './usePagingSimulator';
|
|
16
|
+
export { useMergeAllRequest } from './useMergeAllRequest';
|
|
17
|
+
export { useMarkAsNotMatchRequest } from './useMarkAsNotMatchRequest';
|
package/cjs/hooks/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usePagingSimulator = exports.useMatchesLoader = exports.useConfigPermissions = exports.useWhyDidYouUpdate = exports.useUsers = exports.useSavedState = exports.useSafePromise = exports.useRunOnceAfterValueInitialization = exports.useRelationsLoader = exports.useRelationTypeSelector = exports.usePrevious = exports.useDidUpdateEffect = exports.useCollaboration = exports.useAsyncMount = exports.useActions = void 0;
|
|
3
|
+
exports.useMarkAsNotMatchRequest = exports.useMergeAllRequest = exports.usePagingSimulator = exports.useMatchesLoader = exports.useConfigPermissions = exports.useWhyDidYouUpdate = exports.useUsers = exports.useSavedState = exports.useSafePromise = exports.useRunOnceAfterValueInitialization = exports.useRelationsLoader = exports.useRelationTypeSelector = exports.usePrevious = exports.useDidUpdateEffect = exports.useCollaboration = exports.useAsyncMount = exports.useActions = void 0;
|
|
4
4
|
var useActions_1 = require("./useActions");
|
|
5
5
|
Object.defineProperty(exports, "useActions", { enumerable: true, get: function () { return useActions_1.useActions; } });
|
|
6
6
|
var useAsyncMount_1 = require("./useAsyncMount");
|
|
@@ -31,3 +31,7 @@ var useMatchesLoader_1 = require("./useMatchesLoader");
|
|
|
31
31
|
Object.defineProperty(exports, "useMatchesLoader", { enumerable: true, get: function () { return useMatchesLoader_1.useMatchesLoader; } });
|
|
32
32
|
var usePagingSimulator_1 = require("./usePagingSimulator");
|
|
33
33
|
Object.defineProperty(exports, "usePagingSimulator", { enumerable: true, get: function () { return usePagingSimulator_1.usePagingSimulator; } });
|
|
34
|
+
var useMergeAllRequest_1 = require("./useMergeAllRequest");
|
|
35
|
+
Object.defineProperty(exports, "useMergeAllRequest", { enumerable: true, get: function () { return useMergeAllRequest_1.useMergeAllRequest; } });
|
|
36
|
+
var useMarkAsNotMatchRequest_1 = require("./useMarkAsNotMatchRequest");
|
|
37
|
+
Object.defineProperty(exports, "useMarkAsNotMatchRequest", { enumerable: true, get: function () { return useMarkAsNotMatchRequest_1.useMarkAsNotMatchRequest; } });
|