@reltio/components 1.4.1038 → 1.4.1042
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/EntityTypesSelector/EntityTypesSelector.d.ts +17 -55
- package/cjs/components/EntityTypesSelector/EntityTypesSelector.js +8 -118
- package/cjs/components/MetadataTypesSelector/ListLabel/ListLabel.d.ts +7 -0
- package/cjs/components/{EntityTypesSelector → MetadataTypesSelector}/ListLabel/ListLabel.js +2 -6
- package/cjs/components/MetadataTypesSelector/ListLabel/helpers.d.ts +4 -0
- package/cjs/components/{EntityTypesSelector → MetadataTypesSelector}/ListLabel/helpers.js +1 -1
- package/cjs/components/MetadataTypesSelector/ListLabel/styles.d.ts +1 -0
- package/cjs/components/{EntityTypesSelector → MetadataTypesSelector}/ListLabel/styles.js +0 -0
- package/cjs/components/MetadataTypesSelector/MetadataTypesSelector.d.ts +26 -0
- package/cjs/components/MetadataTypesSelector/MetadataTypesSelector.js +123 -0
- package/cjs/components/MetadataTypesSelector/SelectMetadataTypesList.d.ts +20 -0
- package/cjs/components/{EntityTypesSelector/SelectEntityTypesList.js → MetadataTypesSelector/SelectMetadataTypesList.js} +7 -12
- package/cjs/components/MetadataTypesSelector/styles.d.ts +1 -0
- package/cjs/components/{EntityTypesSelector → MetadataTypesSelector}/styles.js +0 -0
- package/cjs/components/RelationTypesSelector/RelationTypesSelector.d.ts +17 -0
- package/cjs/components/RelationTypesSelector/RelationTypesSelector.js +35 -0
- package/cjs/components/SearchInput/SearchInput.d.ts +3 -2
- package/cjs/components/SearchInput/SearchInput.js +3 -3
- package/cjs/components/SelectionPopup/SelectionPopup.d.ts +17 -44
- package/cjs/components/SelectionPopup/SelectionPopup.js +8 -26
- package/cjs/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.d.ts +17 -35
- package/cjs/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.js +0 -21
- package/cjs/components/SelectionPopup/helpers.d.ts +23 -9
- package/cjs/components/attributes/PivotingAttributes/PivotingTooltip.js +10 -3
- package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.d.ts +4 -3
- package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.js +4 -11
- package/cjs/components/attributes/PivotingAttributes/helpers.d.ts +5 -5
- package/cjs/components/attributes/PivotingAttributes/styles.js +2 -1
- package/cjs/components/attributes/editMode/AttributesPager/index.d.ts +2 -2
- package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/cjs/components/index.d.ts +2 -1
- package/cjs/components/index.js +5 -3
- package/cjs/components/workflow/types/dcrTypes.d.ts +2 -2
- package/esm/components/EntityTypesSelector/EntityTypesSelector.d.ts +17 -55
- package/esm/components/EntityTypesSelector/EntityTypesSelector.js +9 -120
- package/esm/components/MetadataTypesSelector/ListLabel/ListLabel.d.ts +7 -0
- package/esm/components/{EntityTypesSelector → MetadataTypesSelector}/ListLabel/ListLabel.js +1 -7
- package/esm/components/MetadataTypesSelector/ListLabel/helpers.d.ts +4 -0
- package/esm/components/{EntityTypesSelector → MetadataTypesSelector}/ListLabel/helpers.js +1 -1
- package/esm/components/MetadataTypesSelector/ListLabel/styles.d.ts +1 -0
- package/esm/components/{EntityTypesSelector → MetadataTypesSelector}/ListLabel/styles.js +0 -0
- package/esm/components/MetadataTypesSelector/MetadataTypesSelector.d.ts +26 -0
- package/esm/components/MetadataTypesSelector/MetadataTypesSelector.js +98 -0
- package/esm/components/MetadataTypesSelector/SelectMetadataTypesList.d.ts +20 -0
- package/esm/components/{EntityTypesSelector/SelectEntityTypesList.js → MetadataTypesSelector/SelectMetadataTypesList.js} +6 -12
- package/esm/components/MetadataTypesSelector/styles.d.ts +1 -0
- package/esm/components/{EntityTypesSelector → MetadataTypesSelector}/styles.js +0 -0
- package/esm/components/RelationTypesSelector/RelationTypesSelector.d.ts +17 -0
- package/esm/components/RelationTypesSelector/RelationTypesSelector.js +10 -0
- package/esm/components/SearchInput/SearchInput.d.ts +3 -2
- package/esm/components/SearchInput/SearchInput.js +3 -3
- package/esm/components/SelectionPopup/SelectionPopup.d.ts +17 -44
- package/esm/components/SelectionPopup/SelectionPopup.js +8 -26
- package/esm/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.d.ts +17 -35
- package/esm/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.js +0 -21
- package/esm/components/SelectionPopup/helpers.d.ts +23 -9
- package/esm/components/attributes/PivotingAttributes/PivotingTooltip.js +12 -5
- package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.d.ts +4 -3
- package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.js +6 -13
- package/esm/components/attributes/PivotingAttributes/helpers.d.ts +5 -5
- package/esm/components/attributes/PivotingAttributes/styles.js +2 -1
- package/esm/components/attributes/editMode/AttributesPager/index.d.ts +2 -2
- package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/esm/components/index.d.ts +2 -1
- package/esm/components/index.js +2 -1
- package/esm/components/workflow/types/dcrTypes.d.ts +2 -2
- package/package.json +5 -5
- package/cjs/components/EntityTypesSelector/ListLabel/ListLabel.d.ts +0 -12
- package/cjs/components/EntityTypesSelector/ListLabel/helpers.d.ts +0 -3
- package/cjs/components/EntityTypesSelector/ListLabel/styles.d.ts +0 -1
- package/cjs/components/EntityTypesSelector/SelectEntityTypesList.d.ts +0 -16
- package/cjs/components/EntityTypesSelector/styles.d.ts +0 -1
- package/esm/components/EntityTypesSelector/ListLabel/ListLabel.d.ts +0 -12
- package/esm/components/EntityTypesSelector/ListLabel/helpers.d.ts +0 -3
- package/esm/components/EntityTypesSelector/ListLabel/styles.d.ts +0 -1
- package/esm/components/EntityTypesSelector/SelectEntityTypesList.d.ts +0 -16
- package/esm/components/EntityTypesSelector/styles.d.ts +0 -1
|
@@ -26,45 +26,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var react_1 = __importDefault(require("react"));
|
|
29
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
30
29
|
var classnames_1 = __importDefault(require("classnames"));
|
|
31
30
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
32
31
|
var Popover_1 = __importDefault(require("@material-ui/core/Popover"));
|
|
33
32
|
var styles_js_1 = __importDefault(require("./styles.js"));
|
|
34
33
|
var SearchInput_1 = __importDefault(require("../SearchInput/SearchInput"));
|
|
35
34
|
var SelectionPopup = function (_a) {
|
|
36
|
-
var title = _a.title, className = _a.className, onSearch = _a.onSearch, hideTitle = _a.hideTitle, hideSearchInput = _a.hideSearchInput, _b = _a.headerPlacement, headerPlacement = _b === void 0 ? 'top' : _b, containerWidth = _a.containerWidth, containerHeight = _a.containerHeight, searchInputOnKeyDown = _a.searchInputOnKeyDown, children = _a.children, searchInputRef = _a.searchInputRef,
|
|
35
|
+
var title = _a.title, className = _a.className, onSearch = _a.onSearch, hideTitle = _a.hideTitle, hideSearchInput = _a.hideSearchInput, _b = _a.headerPlacement, headerPlacement = _b === void 0 ? 'top' : _b, containerWidth = _a.containerWidth, containerHeight = _a.containerHeight, searchInputOnKeyDown = _a.searchInputOnKeyDown, children = _a.children, searchInputRef = _a.searchInputRef, _c = _a.anchorOrigin, anchorOrigin = _c === void 0 ? {
|
|
36
|
+
vertical: 'top',
|
|
37
|
+
horizontal: 'right'
|
|
38
|
+
} : _c, _d = _a.transformOrigin, transformOrigin = _d === void 0 ? {
|
|
39
|
+
vertical: 'top',
|
|
40
|
+
horizontal: 'right'
|
|
41
|
+
} : _d, otherProps = __rest(_a, ["title", "className", "onSearch", "hideTitle", "hideSearchInput", "headerPlacement", "containerWidth", "containerHeight", "searchInputOnKeyDown", "children", "searchInputRef", "anchorOrigin", "transformOrigin"]);
|
|
37
42
|
var classes = styles_js_1.default({ containerWidth: containerWidth, containerHeight: containerHeight });
|
|
38
43
|
var header = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
39
44
|
!hideTitle && react_1.default.createElement("div", { className: classes.header }, title),
|
|
40
45
|
!hideSearchInput && (react_1.default.createElement(SearchInput_1.default, { onSearch: onSearch, autofocus: true, onKeyDown: searchInputOnKeyDown, inputRef: searchInputRef, classes: { root: classes.searchInputContainer }, placeholder: ui_i18n_1.default.text('Search & add attributes'), height: 40 }))));
|
|
41
|
-
return (react_1.default.createElement(Popover_1.default, __assign({}, otherProps),
|
|
46
|
+
return (react_1.default.createElement(Popover_1.default, __assign({ anchorOrigin: anchorOrigin, transformOrigin: transformOrigin }, otherProps),
|
|
42
47
|
react_1.default.createElement("div", { className: classnames_1.default(classes.container, className), style: { width: containerWidth } },
|
|
43
48
|
headerPlacement === 'top' && header,
|
|
44
49
|
react_1.default.createElement("div", { className: classes.list }, children),
|
|
45
50
|
headerPlacement === 'bottom' && header)));
|
|
46
51
|
};
|
|
47
|
-
SelectionPopup.propTypes = {
|
|
48
|
-
className: prop_types_1.default.string,
|
|
49
|
-
title: prop_types_1.default.string,
|
|
50
|
-
headerPlacement: prop_types_1.default.oneOf(['top', 'bottom']),
|
|
51
|
-
onSearch: prop_types_1.default.func,
|
|
52
|
-
searchInputOnKeyDown: prop_types_1.default.func,
|
|
53
|
-
containerWidth: prop_types_1.default.number,
|
|
54
|
-
containerHeight: prop_types_1.default.number,
|
|
55
|
-
hideTitle: prop_types_1.default.bool,
|
|
56
|
-
hideSearchInput: prop_types_1.default.bool,
|
|
57
|
-
searchInputRef: prop_types_1.default.shape({ current: prop_types_1.default.instanceOf(Element) }),
|
|
58
|
-
children: prop_types_1.default.node
|
|
59
|
-
};
|
|
60
|
-
SelectionPopup.defaultProps = {
|
|
61
|
-
anchorOrigin: {
|
|
62
|
-
vertical: 'top',
|
|
63
|
-
horizontal: 'right'
|
|
64
|
-
},
|
|
65
|
-
transformOrigin: {
|
|
66
|
-
vertical: 'top',
|
|
67
|
-
horizontal: 'right'
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
52
|
exports.default = SelectionPopup;
|
|
@@ -1,36 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PaperProps } from '@material-ui/core/Paper';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
open: boolean;
|
|
5
|
+
anchorEl: HTMLElement;
|
|
6
|
+
className?: string;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
containerWidth: number;
|
|
9
|
+
containerHeight: number;
|
|
10
|
+
paperProps: Omit<PaperProps, 'evelation'>;
|
|
11
|
+
listContent?: React.ReactNode;
|
|
12
|
+
externalInputField?: React.ReactNode;
|
|
13
|
+
classes?: {
|
|
14
|
+
root?: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare const SelectionPopupPopper: ({ open, anchorEl, className, onClose, containerWidth, containerHeight, paperProps, listContent, externalInputField, classes }: Props) => JSX.Element;
|
|
1
18
|
export default SelectionPopupPopper;
|
|
2
|
-
declare function SelectionPopupPopper({ open, anchorEl, className, onClose, containerWidth, containerHeight, paperProps, listContent, externalInputField, classes }: {
|
|
3
|
-
open: any;
|
|
4
|
-
anchorEl: any;
|
|
5
|
-
className: any;
|
|
6
|
-
onClose: any;
|
|
7
|
-
containerWidth: any;
|
|
8
|
-
containerHeight: any;
|
|
9
|
-
paperProps: any;
|
|
10
|
-
listContent: any;
|
|
11
|
-
externalInputField: any;
|
|
12
|
-
classes?: {};
|
|
13
|
-
}): JSX.Element;
|
|
14
|
-
declare namespace SelectionPopupPopper {
|
|
15
|
-
namespace propTypes {
|
|
16
|
-
const open: PropTypes.Requireable<boolean>;
|
|
17
|
-
const anchorEl: PropTypes.Requireable<object>;
|
|
18
|
-
const className: PropTypes.Requireable<string>;
|
|
19
|
-
const onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
const containerWidth: PropTypes.Requireable<number>;
|
|
21
|
-
const containerHeight: PropTypes.Requireable<number>;
|
|
22
|
-
const paperProps: PropTypes.Requireable<object>;
|
|
23
|
-
const listContent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
24
|
-
const externalInputField: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
25
|
-
const classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
26
|
-
root: PropTypes.Requireable<string>;
|
|
27
|
-
}>>;
|
|
28
|
-
}
|
|
29
|
-
namespace defaultProps {
|
|
30
|
-
namespace popoverAnchorOrigin {
|
|
31
|
-
const vertical: string;
|
|
32
|
-
const horizontal: string;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
import PropTypes from "prop-types";
|
|
@@ -15,7 +15,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var react_1 = __importDefault(require("react"));
|
|
18
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
19
18
|
var classnames_1 = __importDefault(require("classnames"));
|
|
20
19
|
var styles_js_1 = __importDefault(require("../styles.js"));
|
|
21
20
|
var Popper_1 = __importDefault(require("../../Popper/Popper"));
|
|
@@ -37,24 +36,4 @@ var SelectionPopupPopper = function (_a) {
|
|
|
37
36
|
react_1.default.createElement("div", { className: commonStyles.list }, listContent)))));
|
|
38
37
|
})));
|
|
39
38
|
};
|
|
40
|
-
SelectionPopupPopper.propTypes = {
|
|
41
|
-
open: prop_types_1.default.bool,
|
|
42
|
-
anchorEl: prop_types_1.default.object,
|
|
43
|
-
className: prop_types_1.default.string,
|
|
44
|
-
onClose: prop_types_1.default.func,
|
|
45
|
-
containerWidth: prop_types_1.default.number,
|
|
46
|
-
containerHeight: prop_types_1.default.number,
|
|
47
|
-
paperProps: prop_types_1.default.object,
|
|
48
|
-
listContent: prop_types_1.default.element,
|
|
49
|
-
externalInputField: prop_types_1.default.element,
|
|
50
|
-
classes: prop_types_1.default.shape({
|
|
51
|
-
root: prop_types_1.default.string
|
|
52
|
-
})
|
|
53
|
-
};
|
|
54
|
-
SelectionPopupPopper.defaultProps = {
|
|
55
|
-
popoverAnchorOrigin: {
|
|
56
|
-
vertical: 'top',
|
|
57
|
-
horizontal: 'right'
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
39
|
exports.default = SelectionPopupPopper;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
handleKeyDown: (event: any) => boolean;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type Item = {
|
|
3
|
+
titleItemIndex?: number;
|
|
4
|
+
index: number;
|
|
5
|
+
item: {
|
|
6
|
+
item: Record<string, unknown>;
|
|
7
|
+
moveTo?: number;
|
|
8
|
+
};
|
|
10
9
|
};
|
|
10
|
+
declare type Props = {
|
|
11
|
+
items: Item[];
|
|
12
|
+
open: boolean;
|
|
13
|
+
onSelectFocusedItem: (item: {
|
|
14
|
+
item: Item['item']['item'];
|
|
15
|
+
groupData: Item['item'];
|
|
16
|
+
}) => void;
|
|
17
|
+
selectedItems: string[];
|
|
18
|
+
onClose: (event: React.KeyboardEvent) => void;
|
|
19
|
+
};
|
|
20
|
+
declare const useKeyboardNavigation: ({ items, open, onSelectFocusedItem, selectedItems, onClose }: Props) => {
|
|
21
|
+
focusIndex: number;
|
|
22
|
+
handleKeyDown: (event: React.KeyboardEvent) => boolean;
|
|
23
|
+
};
|
|
24
|
+
export { useKeyboardNavigation };
|
|
@@ -26,7 +26,7 @@ exports.PivotingTooltip = void 0;
|
|
|
26
26
|
var react_1 = __importStar(require("react"));
|
|
27
27
|
var react_redux_1 = require("react-redux");
|
|
28
28
|
var Tooltip_1 = __importDefault(require("@material-ui/core/Tooltip"));
|
|
29
|
-
var mdm_module_1 =
|
|
29
|
+
var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
|
|
30
30
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
31
31
|
var ramda_1 = require("ramda");
|
|
32
32
|
var contexts_1 = require("../../../contexts");
|
|
@@ -38,6 +38,7 @@ var PivotingTooltip = function (_a) {
|
|
|
38
38
|
var value = _a.value, attributeType = _a.attributeType, children = _a.children, className = _a.className;
|
|
39
39
|
var styles = styles_1.usePivotingTooltipStyles();
|
|
40
40
|
var contentStyles = styles_1.useStyles();
|
|
41
|
+
var dispatch = react_redux_1.useDispatch();
|
|
41
42
|
var pivotingAttributesList = react_1.useContext(contexts_1.PivotingAttributeContext) || [];
|
|
42
43
|
var isNestedAttribute = mdm_sdk_1.isNested(attributeType);
|
|
43
44
|
var metadata = react_redux_1.useSelector(mdm_module_1.default.selectors.getMetadata) || {};
|
|
@@ -54,9 +55,15 @@ var PivotingTooltip = function (_a) {
|
|
|
54
55
|
var uri = _a.uri;
|
|
55
56
|
return uri === attributeType.uri;
|
|
56
57
|
});
|
|
57
|
-
|
|
58
|
+
var handleSeeAllClick = function () {
|
|
59
|
+
var generatedValue = Array.isArray(pivotingValue)
|
|
60
|
+
? helpers_1.convertNestedAttributePivotingValue(pivotingValue)
|
|
61
|
+
: helpers_1.convertSimpleAttributePivotingValue(attributeType, pivotingValue);
|
|
62
|
+
dispatch(mdm_module_1.ui.actions.openPivotingPerspective({ value: generatedValue, attributeType: attributeType }));
|
|
63
|
+
};
|
|
64
|
+
return isPivotingAttribute ? (react_1.default.createElement(Tooltip_1.default, { interactive: true, arrow: true, placement: "right-start", classes: styles, title: react_1.default.createElement(PivotingTooltipContent_1.PivotingTooltipContent, { value: pivotingValue, attributeType: attributeType, config: pivotingAttribute.popup, onSeeAllClick: handleSeeAllClick }) },
|
|
58
65
|
react_1.default.createElement("span", { className: className },
|
|
59
66
|
react_1.default.createElement(PivotingIcon_1.default, { className: contentStyles.icon }),
|
|
60
|
-
react_1.default.createElement("span", { className: contentStyles.content }, children)))) : (react_1.default.createElement(react_1.default.Fragment, null, children));
|
|
67
|
+
react_1.default.createElement("span", { className: contentStyles.content, onClick: handleSeeAllClick }, children)))) : (react_1.default.createElement(react_1.default.Fragment, null, children));
|
|
61
68
|
};
|
|
62
69
|
exports.PivotingTooltip = PivotingTooltip;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AttributeType } from '@reltio/mdm-sdk';
|
|
2
|
+
import { AttributeType, PrimitiveValue } from '@reltio/mdm-sdk';
|
|
3
3
|
import { PivotingValue } from './helpers';
|
|
4
4
|
export declare type Props = {
|
|
5
|
-
value: PivotingValue[] |
|
|
5
|
+
value: PivotingValue[] | PrimitiveValue;
|
|
6
6
|
attributeType: AttributeType;
|
|
7
7
|
config: {
|
|
8
8
|
label?: string;
|
|
9
9
|
entityType?: string;
|
|
10
10
|
};
|
|
11
|
+
onSeeAllClick: () => void;
|
|
11
12
|
};
|
|
12
|
-
export declare const PivotingTooltipContent: ({ value, attributeType, config }: Props) => JSX.Element;
|
|
13
|
+
export declare const PivotingTooltipContent: ({ value, attributeType, config, onSeeAllClick }: Props) => JSX.Element;
|
|
@@ -37,21 +37,20 @@ exports.PivotingTooltipContent = void 0;
|
|
|
37
37
|
var react_1 = __importStar(require("react"));
|
|
38
38
|
var react_redux_1 = require("react-redux");
|
|
39
39
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
40
|
-
var mdm_module_1 =
|
|
40
|
+
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
41
41
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
42
42
|
var EntityAvatar_1 = __importDefault(require("../../EntityAvatar/EntityAvatar"));
|
|
43
43
|
var EntityUriLink_1 = __importDefault(require("../../EntityUriLink/EntityUriLink"));
|
|
44
|
-
var styles_1 = require("./styles");
|
|
45
44
|
var helpers_1 = require("./helpers");
|
|
46
45
|
var hooks_1 = require("../../../hooks");
|
|
46
|
+
var styles_1 = require("./styles");
|
|
47
47
|
var MAX_ENTITIES_PIVOTING_TOOLTIP = 6;
|
|
48
48
|
var PivotingTooltipContent = function (_a) {
|
|
49
|
-
var value = _a.value, attributeType = _a.attributeType, _b = _a.config, config = _b === void 0 ? {} : _b;
|
|
49
|
+
var value = _a.value, attributeType = _a.attributeType, _b = _a.config, config = _b === void 0 ? {} : _b, onSeeAllClick = _a.onSeeAllClick;
|
|
50
50
|
var _c = react_1.useState([]), entities = _c[0], setEntities = _c[1];
|
|
51
51
|
var _d = react_1.useState(0), total = _d[0], setTotal = _d[1];
|
|
52
52
|
var entity = react_redux_1.useSelector(mdm_module_1.default.selectors.getEntity) || {};
|
|
53
53
|
var safePromise = hooks_1.useSafePromise();
|
|
54
|
-
var dispatch = react_redux_1.useDispatch();
|
|
55
54
|
var styles = styles_1.useStyles();
|
|
56
55
|
var globalSearchRequestOptions = react_redux_1.useSelector(mdm_module_1.default.selectors.getGlobalSearchRequestOptions) || {};
|
|
57
56
|
var entityType = config.entityType || entity.type;
|
|
@@ -70,12 +69,6 @@ var PivotingTooltipContent = function (_a) {
|
|
|
70
69
|
setTotal(0);
|
|
71
70
|
});
|
|
72
71
|
}, []);
|
|
73
|
-
var handleClickSeeAll = function () {
|
|
74
|
-
var generatedValue = Array.isArray(value)
|
|
75
|
-
? helpers_1.convertNestedAttributePivotingValue(value)
|
|
76
|
-
: helpers_1.convertSimpleAttributePivotingValue(attributeType, value);
|
|
77
|
-
dispatch(mdm_module_1.ui.actions.openPivotingPerspective({ value: generatedValue, attributeType: attributeType }));
|
|
78
|
-
};
|
|
79
72
|
var hasEntityTypeLabel = Boolean(config.label);
|
|
80
73
|
return (react_1.default.createElement("div", { className: styles.container },
|
|
81
74
|
react_1.default.createElement("div", { className: styles.header },
|
|
@@ -87,6 +80,6 @@ var PivotingTooltipContent = function (_a) {
|
|
|
87
80
|
react_1.default.createElement(EntityAvatar_1.default, { entity: visibleEntity, avatarClassName: styles.profileIcon }),
|
|
88
81
|
react_1.default.createElement(EntityUriLink_1.default, { className: styles.entityLabel, value: mdm_sdk_1.getEntityUriForLink(visibleEntity) }, mdm_sdk_1.getLabel(visibleEntity.label)))); })),
|
|
89
82
|
shouldShowSeeAllButton && (react_1.default.createElement("div", { className: styles.footer },
|
|
90
|
-
react_1.default.createElement("a", { className: styles.seeAllButton, onClick:
|
|
83
|
+
react_1.default.createElement("a", { className: styles.seeAllButton, onClick: onSeeAllClick }, ui_i18n_1.default.text('See all'))))));
|
|
91
84
|
};
|
|
92
85
|
exports.PivotingTooltipContent = PivotingTooltipContent;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AttributeType, SearchFilter, Metadata, PivotingAttribute, RecordAttributesType } from '@reltio/mdm-sdk';
|
|
1
|
+
import { AttributeType, SearchFilter, Metadata, PivotingAttribute, RecordAttributesType, PrimitiveValue } from '@reltio/mdm-sdk';
|
|
2
2
|
export declare type PivotingValue = {
|
|
3
3
|
[uri: string]: string[] | PivotingValue[];
|
|
4
4
|
};
|
|
5
|
-
export declare const getParamsFilteringEntities: (values:
|
|
5
|
+
export declare const getParamsFilteringEntities: (values: PrimitiveValue | PivotingValue[], attributeType: AttributeType, entityType?: string) => SearchFilter[];
|
|
6
6
|
export declare const generatePivotingValue: (attributeType: AttributeType, value: RecordAttributesType, pivotingAttributes: PivotingAttribute[], metadata: Metadata) => PivotingValue[];
|
|
7
|
-
export declare const convertSimpleAttributePivotingValue: (attrType: AttributeType, value:
|
|
8
|
-
[x: string]:
|
|
7
|
+
export declare const convertSimpleAttributePivotingValue: (attrType: AttributeType, value: PrimitiveValue) => {
|
|
8
|
+
[x: string]: PrimitiveValue;
|
|
9
9
|
}[];
|
|
10
10
|
export declare const convertNestedAttributePivotingValue: (values: PivotingValue[]) => any[];
|
|
11
|
-
export declare const preparePivotingAttributeValue: (value:
|
|
11
|
+
export declare const preparePivotingAttributeValue: (value: PrimitiveValue, attributeType: AttributeType) => PrimitiveValue;
|
|
@@ -76,7 +76,8 @@ exports.useStyles = styles_1.makeStyles(function (theme) { return ({
|
|
|
76
76
|
margin: 'auto 8px auto 0'
|
|
77
77
|
},
|
|
78
78
|
content: {
|
|
79
|
-
color: theme.palette.primary.main
|
|
79
|
+
color: theme.palette.primary.main,
|
|
80
|
+
cursor: 'pointer'
|
|
80
81
|
},
|
|
81
82
|
seeAllButton: {
|
|
82
83
|
cursor: 'pointer'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-module';
|
|
3
|
-
import { AttributeError, AttributeType, AttributeValue, Crosswalk, ImageAttributeValue, Mode, NestedAttributeValue, Paging, ReferenceAttributeValue, SimpleAttributeValue } from '@reltio/mdm-sdk';
|
|
3
|
+
import { AttributeError, AttributeType, AttributeValue, Crosswalk, ImageAttributeValue, Mode, NestedAttributeValue, Paging, ReferenceAttributeValue, SimpleAttributeValue, PrimitiveValue } from '@reltio/mdm-sdk';
|
|
4
4
|
import AttributesPager from './AttributesPager';
|
|
5
5
|
import CardinalityMessage from './CardinalityMessage';
|
|
6
6
|
export declare type AttributeItem = {
|
|
@@ -8,7 +8,7 @@ export declare type AttributeItem = {
|
|
|
8
8
|
parentUri?: string;
|
|
9
9
|
index?: number;
|
|
10
10
|
attributeType: AttributeType;
|
|
11
|
-
value?: Partial<AttributeValue> | ImageAttributeValue['value'] |
|
|
11
|
+
value?: Partial<AttributeValue> | ImageAttributeValue['value'] | PrimitiveValue;
|
|
12
12
|
};
|
|
13
13
|
declare type StateProps = {
|
|
14
14
|
errorMessage: string;
|
|
@@ -9,5 +9,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<{
|
|
|
9
9
|
isCollapsed?: boolean;
|
|
10
10
|
showCollapseIcon?: boolean;
|
|
11
11
|
showLine?: boolean;
|
|
12
|
-
} & React.SVGProps<SVGGElement>, "string" | "visibility" | "values" | "filter" | "operator" | "id" | "type" | "max" | "children" | "radius" | "order" | "offset" | "method" | "width" | "height" | "in" | "key" | "attributeName" | "name" | "mode" | "attributeType" | "direction" | "path" | "from" | "to" | "end" | "clipPath" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "textDecoration" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "local" | "style" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "onScroll" | "className" | "y" | "d" | "origin" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "href" | "media" | "target" | "min" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "azimuth" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "
|
|
12
|
+
} & React.SVGProps<SVGGElement>, "string" | "visibility" | "values" | "filter" | "operator" | "id" | "type" | "max" | "children" | "radius" | "order" | "offset" | "method" | "width" | "height" | "in" | "format" | "key" | "attributeName" | "name" | "mode" | "attributeType" | "direction" | "path" | "from" | "to" | "end" | "clipPath" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "textDecoration" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "local" | "style" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "onScroll" | "className" | "y" | "d" | "origin" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "href" | "media" | "target" | "min" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "azimuth" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "isDashed" | "isCollapsed" | "showCollapseIcon" | "showLine"> & React.RefAttributes<unknown>>;
|
|
13
13
|
export default _default;
|
|
@@ -16,7 +16,7 @@ export declare const HistoryCircleWithTooltip: React.ForwardRefExoticComponent<i
|
|
|
16
16
|
isCollapsed?: boolean;
|
|
17
17
|
showCollapseIcon?: boolean;
|
|
18
18
|
showLine?: boolean;
|
|
19
|
-
} & React.SVGProps<SVGGElement>, "string" | "visibility" | "values" | "filter" | "operator" | "id" | "type" | "max" | "children" | "radius" | "order" | "offset" | "method" | "width" | "height" | "in" | "key" | "attributeName" | "name" | "mode" | "attributeType" | "direction" | "path" | "from" | "to" | "end" | "clipPath" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "textDecoration" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "local" | "style" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "onScroll" | "className" | "y" | "d" | "origin" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "href" | "media" | "target" | "min" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "azimuth" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "
|
|
19
|
+
} & React.SVGProps<SVGGElement>, "string" | "visibility" | "values" | "filter" | "operator" | "id" | "type" | "max" | "children" | "radius" | "order" | "offset" | "method" | "width" | "height" | "in" | "format" | "key" | "attributeName" | "name" | "mode" | "attributeType" | "direction" | "path" | "from" | "to" | "end" | "clipPath" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "textDecoration" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "local" | "style" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "onScroll" | "className" | "y" | "d" | "origin" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "href" | "media" | "target" | "min" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "azimuth" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "isDashed" | "isCollapsed" | "showCollapseIcon" | "showLine"> & React.RefAttributes<unknown>>;
|
|
20
20
|
declare type Props = {
|
|
21
21
|
graphData: HistoryData;
|
|
22
22
|
onHistoryCircleMouseOver?: (uri: string, timestamp: number, index: number) => void;
|
|
@@ -50,7 +50,8 @@ export { default as EmptyState, EMPTY_STATE_ICONS, EMPTY_STATE_VARIANTS } from '
|
|
|
50
50
|
export { default as EntityAvatar } from './EntityAvatar/EntityAvatar';
|
|
51
51
|
export { default as EntityTypeBadge } from './EntityTypeBadge/EntityTypeBadge';
|
|
52
52
|
export { default as EntityTypeIcon } from './EntityTypeIcon/EntityTypeIcon';
|
|
53
|
-
export {
|
|
53
|
+
export { EntityTypesSelector } from './EntityTypesSelector/EntityTypesSelector';
|
|
54
|
+
export { RelationTypesSelector } from './RelationTypesSelector/RelationTypesSelector';
|
|
54
55
|
export { default as EntityUriLink } from './EntityUriLink/EntityUriLink';
|
|
55
56
|
export { default as ErrorBoundary } from './ErrorBoundary/ErrorBoundary';
|
|
56
57
|
export { default as ErrorPopup } from './ErrorPopup/ErrorPopup';
|
package/cjs/components/index.js
CHANGED
|
@@ -14,8 +14,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
};
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
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.EditableImageAttributesLine = 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
|
-
exports.
|
|
18
|
-
exports.ProfilesList = 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;
|
|
17
|
+
exports.SidePanelContentHeader = exports.SidePanel = exports.SidePanelEmptyState = exports.SideButtonsPanel = exports.SelectorWithOnlyOptionAutoSelect = exports.SelectionPopupPopper = exports.SelectionPopup = exports.useKeyboardNavigation = exports.WhiteSearchInput = exports.SearchInput = 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.RelationTypesSelector = exports.EntityTypesSelector = exports.EntityTypeIcon = void 0;
|
|
18
|
+
exports.ProfilesList = 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 = exports.SimpleDropDownSelector = 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; } });
|
|
@@ -119,7 +119,9 @@ Object.defineProperty(exports, "EntityTypeBadge", { enumerable: true, get: funct
|
|
|
119
119
|
var EntityTypeIcon_1 = require("./EntityTypeIcon/EntityTypeIcon");
|
|
120
120
|
Object.defineProperty(exports, "EntityTypeIcon", { enumerable: true, get: function () { return __importDefault(EntityTypeIcon_1).default; } });
|
|
121
121
|
var EntityTypesSelector_1 = require("./EntityTypesSelector/EntityTypesSelector");
|
|
122
|
-
Object.defineProperty(exports, "EntityTypesSelector", { enumerable: true, get: function () { return
|
|
122
|
+
Object.defineProperty(exports, "EntityTypesSelector", { enumerable: true, get: function () { return EntityTypesSelector_1.EntityTypesSelector; } });
|
|
123
|
+
var RelationTypesSelector_1 = require("./RelationTypesSelector/RelationTypesSelector");
|
|
124
|
+
Object.defineProperty(exports, "RelationTypesSelector", { enumerable: true, get: function () { return RelationTypesSelector_1.RelationTypesSelector; } });
|
|
123
125
|
var EntityUriLink_1 = require("./EntityUriLink/EntityUriLink");
|
|
124
126
|
Object.defineProperty(exports, "EntityUriLink", { enumerable: true, get: function () { return __importDefault(EntityUriLink_1).default; } });
|
|
125
127
|
var ErrorBoundary_1 = require("./ErrorBoundary/ErrorBoundary");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Crosswalk, Entity, NestedAttributeValue, ReferenceAttributeValue, Relation, SimpleAttributeValue } from '@reltio/mdm-sdk';
|
|
1
|
+
import { Crosswalk, Entity, NestedAttributeValue, ReferenceAttributeValue, Relation, SimpleAttributeValue, PrimitiveValue } from '@reltio/mdm-sdk';
|
|
2
2
|
import { DCRTypes } from '../constants/operations';
|
|
3
3
|
export declare type ChangeRequest = {
|
|
4
4
|
changes: DCRChanges;
|
|
@@ -38,7 +38,7 @@ export declare type DCRObjectsInfo = {
|
|
|
38
38
|
export declare type DCRAttributes = {
|
|
39
39
|
[attributeName: string]: (ChangeValue | DCRChange)[];
|
|
40
40
|
};
|
|
41
|
-
export declare type Value = DCRAttributes | DCRChange |
|
|
41
|
+
export declare type Value = DCRAttributes | DCRChange | PrimitiveValue;
|
|
42
42
|
export declare type DCRAttributeValue = Omit<SimpleAttributeValue | NestedAttributeValue | ReferenceAttributeValue, 'uri' | 'value'> & {
|
|
43
43
|
value: Value;
|
|
44
44
|
refObjectURI?: string;
|
|
@@ -1,55 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
label: PropTypes.Requireable<string>;
|
|
19
|
-
uri: PropTypes.Requireable<string>;
|
|
20
|
-
attributes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
21
|
-
label: PropTypes.Requireable<string>;
|
|
22
|
-
name: PropTypes.Requireable<string>;
|
|
23
|
-
description: PropTypes.Requireable<string>;
|
|
24
|
-
type: PropTypes.Requireable<string>;
|
|
25
|
-
hidden: PropTypes.Requireable<boolean>;
|
|
26
|
-
faceted: PropTypes.Requireable<boolean>;
|
|
27
|
-
searchable: PropTypes.Requireable<boolean>;
|
|
28
|
-
uri: PropTypes.Requireable<string>;
|
|
29
|
-
access: PropTypes.Requireable<string[]>;
|
|
30
|
-
cardinality: PropTypes.Requireable<PropTypes.InferProps<{
|
|
31
|
-
minValue: PropTypes.Requireable<number>;
|
|
32
|
-
maxValue: PropTypes.Requireable<number>;
|
|
33
|
-
}>>;
|
|
34
|
-
}>[]>;
|
|
35
|
-
}>[]>;
|
|
36
|
-
selectedEntityTypes: PropTypes.Validator<string[]>;
|
|
37
|
-
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
38
|
-
single: PropTypes.Requireable<boolean>;
|
|
39
|
-
enableEmptyValueUnderline: PropTypes.Requireable<boolean>;
|
|
40
|
-
placeholder: PropTypes.Requireable<string>;
|
|
41
|
-
classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
42
|
-
root: PropTypes.Requireable<string>;
|
|
43
|
-
label: PropTypes.Requireable<string>;
|
|
44
|
-
inputText: PropTypes.Requireable<string>;
|
|
45
|
-
input: PropTypes.Requireable<string>;
|
|
46
|
-
}>>;
|
|
47
|
-
ListLabelProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
48
|
-
maxWidth: PropTypes.Requireable<number>;
|
|
49
|
-
}>>;
|
|
50
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
51
|
-
};
|
|
52
|
-
}>;
|
|
53
|
-
export default _default;
|
|
54
|
-
import PropTypes from "prop-types";
|
|
55
|
-
import React from "react";
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TEntityType } from '@reltio/mdm-sdk';
|
|
3
|
+
import { MetadataTypesSelector } from '../MetadataTypesSelector/MetadataTypesSelector';
|
|
4
|
+
declare type MetadataTypesSelectorProps = React.ComponentProps<typeof MetadataTypesSelector>;
|
|
5
|
+
declare type Props = {
|
|
6
|
+
entityTypes: TEntityType[];
|
|
7
|
+
selectedEntityTypes: string[];
|
|
8
|
+
onChange: (values: string[]) => void;
|
|
9
|
+
single?: boolean;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
enableEmptyValueUnderline?: boolean;
|
|
12
|
+
classes?: MetadataTypesSelectorProps['classes'];
|
|
13
|
+
ListLabelProps?: MetadataTypesSelectorProps['ListLabelProps'];
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const EntityTypesSelector: React.MemoExoticComponent<({ entityTypes, selectedEntityTypes, single, placeholder, enableEmptyValueUnderline, onChange, classes, ListLabelProps, disabled }: Props) => JSX.Element>;
|
|
17
|
+
export {};
|