@reltio/components 1.4.808 → 1.4.812
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/components/ProfileBand/styles.d.ts +1 -1
- package/components/ReltioMap/EntityMarker/EntityMarker.d.ts +9 -0
- package/components/ReltioMap/EntityMarker/EntityMarker.js +91 -0
- package/components/ReltioMap/EntityMarker/styles.d.ts +1 -0
- package/components/ReltioMap/EntityMarker/styles.js +13 -0
- package/components/ReltioMap/MapControls/MapControlContainer/MapControlContrainer.d.ts +10 -0
- package/components/ReltioMap/MapControls/MapControlContainer/MapControlContrainer.js +28 -0
- package/components/ReltioMap/MapControls/TopCenterMapControls/TopCenterMapControls.d.ts +7 -0
- package/components/ReltioMap/MapControls/TopCenterMapControls/TopCenterMapControls.js +23 -0
- package/components/ReltioMap/MapControls/TopCenterMapControls/styles.d.ts +1 -0
- package/components/ReltioMap/MapControls/TopCenterMapControls/styles.js +27 -0
- package/components/ReltioMap/MapControls/TopRightMapControls/TopRightMapControls.d.ts +47 -0
- package/components/ReltioMap/MapControls/TopRightMapControls/TopRightMapControls.js +40 -0
- package/components/ReltioMap/MapControls/TopRightMapControls/styles.d.ts +1 -0
- package/components/ReltioMap/MapControls/TopRightMapControls/styles.js +22 -0
- package/components/ReltioMap/constants.d.ts +14 -0
- package/components/ReltioMap/constants.js +17 -0
- package/components/ReltioMap/helpers/index.d.ts +6 -0
- package/components/ReltioMap/helpers/index.js +63 -0
- package/components/ReltioMap/index.d.ts +27 -0
- package/components/ReltioMap/index.js +162 -0
- package/components/ReltioMap/styles.d.ts +1 -0
- package/components/ReltioMap/styles.js +12 -0
- package/components/ReltioMap/types.d.ts +23 -0
- package/components/ReltioMap/types.js +2 -0
- package/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -1
- package/components/attributes/editMode/AttributesList/AttributesList.js +1 -1
- package/components/attributes/editMode/AttributesList/helpers.d.ts +1 -2
- package/components/attributes/editMode/AttributesList/helpers.js +1 -20
- package/components/attributes/editMode/AttributesPager/AttributeRenderer.js +4 -3
- package/components/attributes/editMode/AttributesPager/index.d.ts +4 -2
- package/components/attributes/editMode/AttributesPager/index.js +11 -20
- package/components/attributes/editMode/ComplexAttribute/ComplexAttribute.d.ts +3 -1
- package/components/attributes/editMode/ComplexAttribute/ComplexAttribute.js +19 -5
- package/components/attributes/editMode/ComplexAttribute/styles.d.ts +1 -1
- package/components/attributes/editMode/ComplexAttribute/styles.js +10 -2
- package/components/attributes/editMode/NestedAttribute/NestedAttribute.d.ts +1 -0
- package/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.d.ts +1 -0
- package/components/attributes/editMode/ReferenceAttribute/index.d.ts +1 -0
- package/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +15 -4
- package/components/attributes/editMode/SimpleAttributeEditor/styles.d.ts +1 -1
- package/components/attributes/editMode/SimpleAttributeEditor/styles.js +8 -0
- package/components/attributes/inline/ComplexAttribute/ComplexAttribute.js +1 -1
- package/components/attributes/readMode/AttributesPager/index.d.ts +3 -1
- package/components/attributes/readMode/AttributesPager/index.js +26 -2
- package/components/attributes/readMode/NestedAttribute/NestedAttribute.d.ts +1 -0
- package/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.d.ts +1 -0
- package/components/attributes/readMode/ReferenceAttribute/index.d.ts +1 -0
- package/components/crosswalks/CrosswalkAttributes/styles.js +3 -2
- package/components/crosswalks/CrosswalkEditor/CrosswalkEditor.d.ts +2 -1
- package/components/crosswalks/CrosswalkEditor/CrosswalkEditor.js +2 -2
- package/components/crosswalks/CrosswalkEditor/styles.d.ts +1 -1
- package/components/crosswalks/CrosswalkEditor/styles.js +0 -4
- package/components/crosswalks/hooks/useCrosswalkActions.d.ts +12 -0
- package/components/crosswalks/hooks/useCrosswalkActions.js +75 -0
- package/components/crosswalks/index.d.ts +2 -1
- package/components/crosswalks/index.js +3 -1
- package/components/crosswalks/types/AddCrosswalkEvent.d.ts +6 -0
- package/components/crosswalks/types/AddCrosswalkEvent.js +2 -0
- package/components/crosswalks/types/DeleteCrosswalkEvent.d.ts +4 -0
- package/components/crosswalks/types/DeleteCrosswalkEvent.js +2 -0
- package/components/crosswalks/types/EditCrosswalkEvent.d.ts +6 -0
- package/components/crosswalks/types/EditCrosswalkEvent.js +2 -0
- package/components/crosswalks/types/index.d.ts +3 -0
- package/components/index.d.ts +5 -1
- package/components/index.js +10 -3
- package/constants/index.d.ts +1 -0
- package/constants/index.js +5 -1
- package/constants/map.d.ts +14 -0
- package/constants/map.js +17 -0
- package/contexts/EntityMarkerContext/index.d.ts +6 -0
- package/contexts/EntityMarkerContext/index.js +9 -0
- package/contexts/index.d.ts +1 -0
- package/contexts/index.js +3 -1
- package/hooks/useRelationsLoader.js +3 -1
- package/package.json +3 -3
|
@@ -1,14 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
2
21
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
23
|
};
|
|
5
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
25
|
exports.AttributesPager = void 0;
|
|
7
26
|
var react_redux_1 = require("react-redux");
|
|
8
|
-
var mdm_module_1 = require("@reltio/mdm-module");
|
|
27
|
+
var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
|
|
9
28
|
var AttributesPager_1 = __importDefault(require("./AttributesPager"));
|
|
10
29
|
exports.AttributesPager = AttributesPager_1.default;
|
|
11
|
-
var mapStateToProps =
|
|
30
|
+
var mapStateToProps = function (state, _a) {
|
|
31
|
+
var _b = _a.max, max = _b === void 0 ? undefined : _b;
|
|
32
|
+
return ({
|
|
33
|
+
max: max || mdm_module_1.default.selectors.getDefaultMaxValues(state)
|
|
34
|
+
});
|
|
35
|
+
};
|
|
12
36
|
var mapDispatchToProps = {
|
|
13
37
|
requestNextPageOfAttributeValues: mdm_module_1.profile.actions.requestNextPageOfAttributeValues
|
|
14
38
|
};
|
|
@@ -110,6 +110,7 @@ declare var _default: React.MemoExoticComponent<{
|
|
|
110
110
|
onChangeAttribute: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
111
111
|
additionalControlsRenderer: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
112
112
|
hideDeleteButton: import("prop-types").Requireable<boolean>;
|
|
113
|
+
state: import("prop-types").Requireable<string>;
|
|
113
114
|
attributeValue: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
114
115
|
value: import("prop-types").Requireable<object>;
|
|
115
116
|
ov: import("prop-types").Requireable<boolean>;
|
|
@@ -112,6 +112,7 @@ declare var _default: React.MemoExoticComponent<{
|
|
|
112
112
|
onChangeAttribute: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
113
113
|
additionalControlsRenderer: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
114
114
|
hideDeleteButton: import("prop-types").Requireable<boolean>;
|
|
115
|
+
state: import("prop-types").Requireable<string>;
|
|
115
116
|
attributeValue: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
116
117
|
refEntity: import("prop-types").Requireable<object>;
|
|
117
118
|
refRelation: import("prop-types").Requireable<object>;
|
|
@@ -113,6 +113,7 @@ declare var _default: import("react-redux").ConnectedComponent<import("react").M
|
|
|
113
113
|
onChangeAttribute: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
114
114
|
additionalControlsRenderer: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
115
115
|
hideDeleteButton: import("prop-types").Requireable<boolean>;
|
|
116
|
+
state: import("prop-types").Requireable<string>;
|
|
116
117
|
attributeValue: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
117
118
|
refEntity: import("prop-types").Requireable<object>;
|
|
118
119
|
refRelation: import("prop-types").Requireable<object>;
|
|
@@ -21,7 +21,8 @@ exports.useStyles = styles_1.makeStyles(function (theme) { return ({
|
|
|
21
21
|
attributeValue: {
|
|
22
22
|
paddingLeft: 10,
|
|
23
23
|
display: 'flex',
|
|
24
|
-
alignItems: 'center'
|
|
24
|
+
alignItems: 'center',
|
|
25
|
+
flexGrow: 1
|
|
25
26
|
},
|
|
26
27
|
input: {
|
|
27
28
|
paddingTop: 14,
|
|
@@ -29,7 +30,7 @@ exports.useStyles = styles_1.makeStyles(function (theme) { return ({
|
|
|
29
30
|
fontSize: 13
|
|
30
31
|
},
|
|
31
32
|
editor: {
|
|
32
|
-
|
|
33
|
+
flexGrow: 1
|
|
33
34
|
},
|
|
34
35
|
moreButton: {
|
|
35
36
|
marginLeft: 24
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Crosswalk } from '@reltio/mdm-sdk';
|
|
3
3
|
declare type Props = {
|
|
4
|
+
className?: string;
|
|
4
5
|
onAdd: (event: Omit<Crosswalk, 'uri'>) => void;
|
|
5
6
|
onClose: () => void;
|
|
6
7
|
};
|
|
7
|
-
declare const CrosswalkEditor: ({ onAdd, onClose }: Props) => JSX.Element;
|
|
8
|
+
declare const CrosswalkEditor: ({ className, onAdd, onClose }: Props) => JSX.Element;
|
|
8
9
|
export default CrosswalkEditor;
|
|
@@ -30,14 +30,14 @@ var CrosswalkAttributes_1 = __importDefault(require("../CrosswalkAttributes/Cros
|
|
|
30
30
|
var ramda_1 = require("ramda");
|
|
31
31
|
var styles_1 = require("./styles");
|
|
32
32
|
var CrosswalkEditor = function (_a) {
|
|
33
|
-
var onAdd = _a.onAdd, onClose = _a.onClose;
|
|
33
|
+
var className = _a.className, onAdd = _a.onAdd, onClose = _a.onClose;
|
|
34
34
|
var styles = styles_1.useStyles();
|
|
35
35
|
var _b = react_1.useState({ type: '', value: '' }), newCrosswalk = _b[0], setNewCrosswalk = _b[1];
|
|
36
36
|
var handleAdd = function () {
|
|
37
37
|
onAdd(newCrosswalk);
|
|
38
38
|
onClose();
|
|
39
39
|
};
|
|
40
|
-
return (react_1.default.createElement("div", { className:
|
|
40
|
+
return (react_1.default.createElement("div", { className: className },
|
|
41
41
|
react_1.default.createElement(Typography_1.default, { variant: 'body1', className: styles.caption }, ui_i18n_1.default.text('Add crosswalk')),
|
|
42
42
|
react_1.default.createElement(CrosswalkAttributes_1.default, { crosswalk: newCrosswalk, onDeleteAttribute: function (attributeName) {
|
|
43
43
|
setNewCrosswalk(ramda_1.dissoc(attributeName));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"caption" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"caption" | "cancelButton" | "controlButtons">;
|
|
@@ -8,14 +8,10 @@ exports.useStyles = styles_1.makeStyles({
|
|
|
8
8
|
paddingTop: 16,
|
|
9
9
|
paddingBottom: 8
|
|
10
10
|
},
|
|
11
|
-
wrapper: {
|
|
12
|
-
paddingLeft: 25
|
|
13
|
-
},
|
|
14
11
|
controlButtons: {
|
|
15
12
|
display: 'flex',
|
|
16
13
|
justifyContent: 'flex-end',
|
|
17
14
|
paddingBottom: 10,
|
|
18
|
-
paddingRight: 30,
|
|
19
15
|
paddingTop: 20
|
|
20
16
|
},
|
|
21
17
|
cancelButton: {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AddCrosswalkEvent, DeleteCrosswalkEvent, EditCrosswalkEvent } from '../types';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
onLoad?: () => void;
|
|
4
|
+
onSuccess?: () => void;
|
|
5
|
+
onError?: (error: unknown) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const useCrosswalkActions: ({ onLoad, onSuccess, onError }: Props) => {
|
|
8
|
+
addCrosswalk: ({ entity, contributorCrosswalk, crosswalk }: AddCrosswalkEvent) => void;
|
|
9
|
+
editCrosswalk: ({ entityUri, crosswalkId, attributeName, value }: EditCrosswalkEvent) => void;
|
|
10
|
+
deleteCrosswalk: ({ entityUri, crosswalkId }: DeleteCrosswalkEvent) => void;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
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.useCrosswalkActions = void 0;
|
|
7
|
+
var react_1 = require("react");
|
|
8
|
+
var ramda_1 = require("ramda");
|
|
9
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
10
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
11
|
+
var core_1 = require("../../../core");
|
|
12
|
+
var useCrosswalkActions = function (_a) {
|
|
13
|
+
var _b = _a.onLoad, onLoad = _b === void 0 ? core_1.noop : _b, _c = _a.onSuccess, onSuccess = _c === void 0 ? core_1.noop : _c, _d = _a.onError, onError = _d === void 0 ? core_1.noop : _d;
|
|
14
|
+
var handleAction = react_1.useCallback(function (request) {
|
|
15
|
+
onLoad();
|
|
16
|
+
request
|
|
17
|
+
.then(function () {
|
|
18
|
+
onSuccess();
|
|
19
|
+
})
|
|
20
|
+
.catch(onError);
|
|
21
|
+
}, [onLoad, onError, onSuccess]);
|
|
22
|
+
var addCrosswalkAction = react_1.useCallback(function (_a) {
|
|
23
|
+
var entity = _a.entity, contributorCrosswalk = _a.contributorCrosswalk, crosswalk = _a.crosswalk;
|
|
24
|
+
var promise = contributorCrosswalk
|
|
25
|
+
? mdm_sdk_1.addCrosswalkInContributor({
|
|
26
|
+
entityTypeUri: entity.type,
|
|
27
|
+
contributorCrosswalkType: contributorCrosswalk.type,
|
|
28
|
+
contributorCrosswalkValue: contributorCrosswalk.value,
|
|
29
|
+
contributorCrosswalkSourceTable: contributorCrosswalk.sourceTable,
|
|
30
|
+
crosswalkType: crosswalk.type,
|
|
31
|
+
crosswalkValue: crosswalk.value,
|
|
32
|
+
crosswalkSourceTable: crosswalk.sourceTable,
|
|
33
|
+
crosswalkDeleteDate: crosswalk.deleteDate
|
|
34
|
+
})
|
|
35
|
+
: mdm_sdk_1.addCrosswalk({ entityUri: entity.uri, crosswalk: crosswalk });
|
|
36
|
+
ramda_1.pipe(ramda_1.andThen(function (_a) {
|
|
37
|
+
var errors = _a[0].errors;
|
|
38
|
+
if (errors)
|
|
39
|
+
throw errors;
|
|
40
|
+
}), handleAction)(promise);
|
|
41
|
+
}, [handleAction]);
|
|
42
|
+
var editCrosswalkAction = react_1.useCallback(function (_a) {
|
|
43
|
+
var entityUri = _a.entityUri, crosswalkId = _a.crosswalkId, attributeName = _a.attributeName, value = _a.value;
|
|
44
|
+
ramda_1.pipe(ramda_1.ifElse(function (_a) {
|
|
45
|
+
var value = _a.value;
|
|
46
|
+
return ramda_1.isNil(value);
|
|
47
|
+
}, mdm_sdk_1.deleteCrosswalkAttribute, mdm_sdk_1.editCrosswalkAttribute), ramda_1.andThen(function (response) {
|
|
48
|
+
if (!response[0].successful)
|
|
49
|
+
throw new Error(ui_i18n_1.default.text('Failed to edit crosswalk'));
|
|
50
|
+
return response;
|
|
51
|
+
}), handleAction)({
|
|
52
|
+
entityUri: entityUri,
|
|
53
|
+
crosswalkId: crosswalkId,
|
|
54
|
+
attributeName: attributeName,
|
|
55
|
+
value: value
|
|
56
|
+
});
|
|
57
|
+
}, [handleAction]);
|
|
58
|
+
var deleteCrosswalkAction = react_1.useCallback(function (_a) {
|
|
59
|
+
var entityUri = _a.entityUri, crosswalkId = _a.crosswalkId;
|
|
60
|
+
ramda_1.pipe(mdm_sdk_1.deleteCrosswalk, ramda_1.andThen(function (response) {
|
|
61
|
+
if (response.status === 'failed')
|
|
62
|
+
throw new Error(ui_i18n_1.default.text('Failed to delete crosswalk'));
|
|
63
|
+
return response;
|
|
64
|
+
}), handleAction)({
|
|
65
|
+
entityUri: entityUri,
|
|
66
|
+
crosswalkId: crosswalkId
|
|
67
|
+
});
|
|
68
|
+
}, [handleAction]);
|
|
69
|
+
return {
|
|
70
|
+
addCrosswalk: addCrosswalkAction,
|
|
71
|
+
editCrosswalk: editCrosswalkAction,
|
|
72
|
+
deleteCrosswalk: deleteCrosswalkAction
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
exports.useCrosswalkActions = useCrosswalkActions;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { default as AttributesTable } from './AttributesTable/AttributesTable';
|
|
2
2
|
export { useModifiedEntity } from './hooks/useModifiedEntity';
|
|
3
|
+
export { useCrosswalkActions } from './hooks/useCrosswalkActions';
|
|
3
4
|
export { default as CrosswalkDragLayer } from './CrosswalkDragLayer/CrosswalkDragLayer';
|
|
4
5
|
export { default as SourceCrosswalksRow } from './SourceCrosswalksRow/SourceCrosswalksRow';
|
|
5
6
|
export { default as CrosswalkEditor } from './CrosswalkEditor/CrosswalkEditor';
|
|
6
7
|
export { CrosswalkType } from './types';
|
|
7
|
-
export type { CrosswalksByTypes } from './types';
|
|
8
|
+
export type { CrosswalksByTypes, AddCrosswalkEvent, EditCrosswalkEvent, DeleteCrosswalkEvent } from './types';
|
|
8
9
|
export { groupCrosswalksByTypesAndSources } from './utils/legend';
|
|
@@ -3,11 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.groupCrosswalksByTypesAndSources = exports.CrosswalkType = exports.CrosswalkEditor = exports.SourceCrosswalksRow = exports.CrosswalkDragLayer = exports.useModifiedEntity = exports.AttributesTable = void 0;
|
|
6
|
+
exports.groupCrosswalksByTypesAndSources = exports.CrosswalkType = exports.CrosswalkEditor = exports.SourceCrosswalksRow = exports.CrosswalkDragLayer = exports.useCrosswalkActions = exports.useModifiedEntity = exports.AttributesTable = void 0;
|
|
7
7
|
var AttributesTable_1 = require("./AttributesTable/AttributesTable");
|
|
8
8
|
Object.defineProperty(exports, "AttributesTable", { enumerable: true, get: function () { return __importDefault(AttributesTable_1).default; } });
|
|
9
9
|
var useModifiedEntity_1 = require("./hooks/useModifiedEntity");
|
|
10
10
|
Object.defineProperty(exports, "useModifiedEntity", { enumerable: true, get: function () { return useModifiedEntity_1.useModifiedEntity; } });
|
|
11
|
+
var useCrosswalkActions_1 = require("./hooks/useCrosswalkActions");
|
|
12
|
+
Object.defineProperty(exports, "useCrosswalkActions", { enumerable: true, get: function () { return useCrosswalkActions_1.useCrosswalkActions; } });
|
|
11
13
|
var CrosswalkDragLayer_1 = require("./CrosswalkDragLayer/CrosswalkDragLayer");
|
|
12
14
|
Object.defineProperty(exports, "CrosswalkDragLayer", { enumerable: true, get: function () { return __importDefault(CrosswalkDragLayer_1).default; } });
|
|
13
15
|
var SourceCrosswalksRow_1 = require("./SourceCrosswalksRow/SourceCrosswalksRow");
|
|
@@ -2,3 +2,6 @@ export type { CrosswalksByOwnerTypeMap } from './CrosswalksByOwnerTypeMap';
|
|
|
2
2
|
export type { CreateAttributeEvent } from './CreateAttributeEvent';
|
|
3
3
|
export { CrosswalkType } from './CrosswalkType';
|
|
4
4
|
export type { CrosswalksByTypes } from './CrosswalksByTypes';
|
|
5
|
+
export type { AddCrosswalkEvent } from './AddCrosswalkEvent';
|
|
6
|
+
export type { DeleteCrosswalkEvent } from './DeleteCrosswalkEvent';
|
|
7
|
+
export type { EditCrosswalkEvent } from './EditCrosswalkEvent';
|
package/components/index.d.ts
CHANGED
|
@@ -10,8 +10,10 @@ export { default as NestedAttributeEditor } from './attributes/editMode/NestedAt
|
|
|
10
10
|
export { default as ReferenceAttributeEditor } from './attributes/editMode/ReferenceAttribute';
|
|
11
11
|
export { default as RelationTypeSelector } from './attributes/editMode/RelationTypeSelector/RelationTypeSelector';
|
|
12
12
|
export { default as SimpleAttributeEditor } from './attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor';
|
|
13
|
-
export { default as AttributesPager } from './attributes/editMode/AttributesPager';
|
|
13
|
+
export { default as AttributesPager, CardinalityMessage } from './attributes/editMode/AttributesPager';
|
|
14
|
+
export type { AttributeItem } from './attributes/editMode/AttributesPager';
|
|
14
15
|
export { default as ReadOnlyAttribute } from './attributes/readMode/AttributesFactory/Attribute';
|
|
16
|
+
export { default as EditableAttribute } from './attributes/editMode/AttributesFactory/Attribute';
|
|
15
17
|
export { default as ReadOnlyAttributeValuesBlock } from './attributes/readMode/AttributeValuesBlock/AttributeValuesBlock';
|
|
16
18
|
export { default as ReadOnlyAttributesList } from './attributes/readMode/AttributesList';
|
|
17
19
|
export { default as ImageAttributesLine } from './attributes/readMode/ImageAttributesLine';
|
|
@@ -113,3 +115,5 @@ export { default as Marginator } from './Marginator/Marginator';
|
|
|
113
115
|
export { default as ConfirmationDialog } from './ConfirmationDialog/ConfirmationDialog';
|
|
114
116
|
export { default as ConfirmDeleteDialog } from './ConfirmDeleteDialog/ConfirmDeleteDialog';
|
|
115
117
|
export * from './crosswalks';
|
|
118
|
+
export { ReltioMap } from './ReltioMap';
|
|
119
|
+
export { default as ErrorMessage } from './ErrorWrapper/ErrorMessage';
|
package/components/index.js
CHANGED
|
@@ -13,9 +13,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
14
|
};
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
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 = void 0;
|
|
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
|
+
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.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; } });
|
|
@@ -41,8 +41,11 @@ var SimpleAttributeEditor_1 = require("./attributes/editMode/SimpleAttributeEdit
|
|
|
41
41
|
Object.defineProperty(exports, "SimpleAttributeEditor", { enumerable: true, get: function () { return __importDefault(SimpleAttributeEditor_1).default; } });
|
|
42
42
|
var AttributesPager_1 = require("./attributes/editMode/AttributesPager");
|
|
43
43
|
Object.defineProperty(exports, "AttributesPager", { enumerable: true, get: function () { return __importDefault(AttributesPager_1).default; } });
|
|
44
|
+
Object.defineProperty(exports, "CardinalityMessage", { enumerable: true, get: function () { return AttributesPager_1.CardinalityMessage; } });
|
|
44
45
|
var Attribute_1 = require("./attributes/readMode/AttributesFactory/Attribute");
|
|
45
46
|
Object.defineProperty(exports, "ReadOnlyAttribute", { enumerable: true, get: function () { return __importDefault(Attribute_1).default; } });
|
|
47
|
+
var Attribute_2 = require("./attributes/editMode/AttributesFactory/Attribute");
|
|
48
|
+
Object.defineProperty(exports, "EditableAttribute", { enumerable: true, get: function () { return __importDefault(Attribute_2).default; } });
|
|
46
49
|
var AttributeValuesBlock_1 = require("./attributes/readMode/AttributeValuesBlock/AttributeValuesBlock");
|
|
47
50
|
Object.defineProperty(exports, "ReadOnlyAttributeValuesBlock", { enumerable: true, get: function () { return __importDefault(AttributeValuesBlock_1).default; } });
|
|
48
51
|
var AttributesList_2 = require("./attributes/readMode/AttributesList");
|
|
@@ -245,3 +248,7 @@ Object.defineProperty(exports, "ConfirmationDialog", { enumerable: true, get: fu
|
|
|
245
248
|
var ConfirmDeleteDialog_1 = require("./ConfirmDeleteDialog/ConfirmDeleteDialog");
|
|
246
249
|
Object.defineProperty(exports, "ConfirmDeleteDialog", { enumerable: true, get: function () { return __importDefault(ConfirmDeleteDialog_1).default; } });
|
|
247
250
|
__exportStar(require("./crosswalks"), exports);
|
|
251
|
+
var ReltioMap_1 = require("./ReltioMap");
|
|
252
|
+
Object.defineProperty(exports, "ReltioMap", { enumerable: true, get: function () { return ReltioMap_1.ReltioMap; } });
|
|
253
|
+
var ErrorMessage_1 = require("./ErrorWrapper/ErrorMessage");
|
|
254
|
+
Object.defineProperty(exports, "ErrorMessage", { enumerable: true, get: function () { return __importDefault(ErrorMessage_1).default; } });
|
package/constants/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { COMMENTS_CONTAINER_VISIBILITY_AREA } from "./classnames";
|
|
2
2
|
export { ALWAYS_VISIBLE_TYPE_URIS } from "./attributes";
|
|
3
3
|
export { SortingType, ColumnFilterType, ColumnsDataType, QueryBuilderAttributeType, QueryBuilderAttributeDataType } from "./prop-types";
|
|
4
|
+
export { MAP_DRAWING_MODES, DEFAULT_OVERLAY_OPTIONS, MAP_MINIMUM_SCALE_RADIUS } from "./map";
|
package/constants/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ALWAYS_VISIBLE_TYPE_URIS = exports.COMMENTS_CONTAINER_VISIBILITY_AREA = exports.QueryBuilderAttributeDataType = exports.QueryBuilderAttributeType = exports.ColumnsDataType = exports.ColumnFilterType = exports.SortingType = void 0;
|
|
3
|
+
exports.MAP_MINIMUM_SCALE_RADIUS = exports.DEFAULT_OVERLAY_OPTIONS = exports.MAP_DRAWING_MODES = exports.ALWAYS_VISIBLE_TYPE_URIS = exports.COMMENTS_CONTAINER_VISIBILITY_AREA = exports.QueryBuilderAttributeDataType = exports.QueryBuilderAttributeType = exports.ColumnsDataType = exports.ColumnFilterType = exports.SortingType = void 0;
|
|
4
4
|
var prop_types_1 = require("./prop-types");
|
|
5
5
|
Object.defineProperty(exports, "SortingType", { enumerable: true, get: function () { return prop_types_1.SortingType; } });
|
|
6
6
|
Object.defineProperty(exports, "ColumnFilterType", { enumerable: true, get: function () { return prop_types_1.ColumnFilterType; } });
|
|
@@ -11,3 +11,7 @@ var classnames_1 = require("./classnames");
|
|
|
11
11
|
Object.defineProperty(exports, "COMMENTS_CONTAINER_VISIBILITY_AREA", { enumerable: true, get: function () { return classnames_1.COMMENTS_CONTAINER_VISIBILITY_AREA; } });
|
|
12
12
|
var attributes_1 = require("./attributes");
|
|
13
13
|
Object.defineProperty(exports, "ALWAYS_VISIBLE_TYPE_URIS", { enumerable: true, get: function () { return attributes_1.ALWAYS_VISIBLE_TYPE_URIS; } });
|
|
14
|
+
var map_1 = require("./map");
|
|
15
|
+
Object.defineProperty(exports, "MAP_DRAWING_MODES", { enumerable: true, get: function () { return map_1.MAP_DRAWING_MODES; } });
|
|
16
|
+
Object.defineProperty(exports, "DEFAULT_OVERLAY_OPTIONS", { enumerable: true, get: function () { return map_1.DEFAULT_OVERLAY_OPTIONS; } });
|
|
17
|
+
Object.defineProperty(exports, "MAP_MINIMUM_SCALE_RADIUS", { enumerable: true, get: function () { return map_1.MAP_MINIMUM_SCALE_RADIUS; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const MAP_DRAWING_MODES: {
|
|
2
|
+
CIRCLE: string;
|
|
3
|
+
POLYGON: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const DEFAULT_OVERLAY_OPTIONS: {
|
|
6
|
+
fillColor: string;
|
|
7
|
+
fillOpacity: number;
|
|
8
|
+
strokeWeight: number;
|
|
9
|
+
strokeColor: string;
|
|
10
|
+
clickable: boolean;
|
|
11
|
+
editable: boolean;
|
|
12
|
+
zIndex: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const MAP_MINIMUM_SCALE_RADIUS = 0.001;
|
package/constants/map.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAP_MINIMUM_SCALE_RADIUS = exports.DEFAULT_OVERLAY_OPTIONS = exports.MAP_DRAWING_MODES = void 0;
|
|
4
|
+
exports.MAP_DRAWING_MODES = {
|
|
5
|
+
CIRCLE: 'circle',
|
|
6
|
+
POLYGON: 'polygon'
|
|
7
|
+
};
|
|
8
|
+
exports.DEFAULT_OVERLAY_OPTIONS = {
|
|
9
|
+
fillColor: 'rgb(242,82,82)',
|
|
10
|
+
fillOpacity: 0.1,
|
|
11
|
+
strokeWeight: 2,
|
|
12
|
+
strokeColor: '#F25252',
|
|
13
|
+
clickable: false,
|
|
14
|
+
editable: true,
|
|
15
|
+
zIndex: 1
|
|
16
|
+
};
|
|
17
|
+
exports.MAP_MINIMUM_SCALE_RADIUS = 0.001;
|
|
@@ -0,0 +1,9 @@
|
|
|
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.EntityMarkerContext = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
exports.EntityMarkerContext = react_1.default.createContext({});
|
|
9
|
+
exports.EntityMarkerContext.displayName = 'EntityMarkerContext';
|
package/contexts/index.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ export { PivotingAttributeContext } from "./PivotingAttributeContext";
|
|
|
9
9
|
export { ProfilePerspectiveViewContext } from "./ProfilePerspectiveViewContext";
|
|
10
10
|
export { IdContext } from "./IdContext";
|
|
11
11
|
export { EntitiesMapContext } from "./EntitiesMapContext";
|
|
12
|
+
export { EntityMarkerContext } from "./EntityMarkerContext";
|
|
12
13
|
export { CrosswalksDisplayProvider, useCrosswalkColor, useCrosswalkFocus, useCrosswalkHighlight, useHighlightedCrosswalks } from "./CrosswalksDisplayContext";
|
|
13
14
|
export { ExpandedAttributesProvider, useAttributeExpanded } from "./ExpandedAttributesContext";
|
package/contexts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useAttributeExpanded = exports.ExpandedAttributesProvider = exports.useHighlightedCrosswalks = exports.useCrosswalkHighlight = exports.useCrosswalkFocus = exports.useCrosswalkColor = exports.CrosswalksDisplayProvider = exports.EntitiesMapContext = exports.IdContext = exports.ProfilePerspectiveViewContext = exports.PivotingAttributeContext = exports.UsersContext = exports.CollaborationContext = exports.BlockImageGalleryDialogContext = exports.ViewIdContext = exports.PopupBoundariesContext = exports.HistoryDiffContext = exports.AsyncMountContext = void 0;
|
|
3
|
+
exports.EntityMarkerContext = exports.useAttributeExpanded = exports.ExpandedAttributesProvider = exports.useHighlightedCrosswalks = exports.useCrosswalkHighlight = exports.useCrosswalkFocus = exports.useCrosswalkColor = exports.CrosswalksDisplayProvider = exports.EntitiesMapContext = exports.IdContext = exports.ProfilePerspectiveViewContext = exports.PivotingAttributeContext = exports.UsersContext = exports.CollaborationContext = exports.BlockImageGalleryDialogContext = exports.ViewIdContext = exports.PopupBoundariesContext = exports.HistoryDiffContext = exports.AsyncMountContext = void 0;
|
|
4
4
|
var AsyncMountContext_1 = require("./AsyncMountContext");
|
|
5
5
|
Object.defineProperty(exports, "AsyncMountContext", { enumerable: true, get: function () { return AsyncMountContext_1.AsyncMountContext; } });
|
|
6
6
|
var HistoryAppearanceContext_1 = require("./HistoryAppearanceContext");
|
|
@@ -32,3 +32,5 @@ Object.defineProperty(exports, "useHighlightedCrosswalks", { enumerable: true, g
|
|
|
32
32
|
var ExpandedAttributesContext_1 = require("./ExpandedAttributesContext");
|
|
33
33
|
Object.defineProperty(exports, "ExpandedAttributesProvider", { enumerable: true, get: function () { return ExpandedAttributesContext_1.ExpandedAttributesProvider; } });
|
|
34
34
|
Object.defineProperty(exports, "useAttributeExpanded", { enumerable: true, get: function () { return ExpandedAttributesContext_1.useAttributeExpanded; } });
|
|
35
|
+
var EntityMarkerContext_1 = require("./EntityMarkerContext");
|
|
36
|
+
Object.defineProperty(exports, "EntityMarkerContext", { enumerable: true, get: function () { return EntityMarkerContext_1.EntityMarkerContext; } });
|
|
@@ -78,12 +78,14 @@ var useRelationsLoader = function (_a) {
|
|
|
78
78
|
setIsLoading(false);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
81
82
|
}, [
|
|
82
83
|
activityFilter,
|
|
83
84
|
config,
|
|
84
85
|
dispatch,
|
|
85
86
|
dtssPath,
|
|
86
|
-
entity,
|
|
87
|
+
entity === null || entity === void 0 ? void 0 : entity.uri,
|
|
88
|
+
entity === null || entity === void 0 ? void 0 : entity.dataTenant,
|
|
87
89
|
filter,
|
|
88
90
|
globalFilter,
|
|
89
91
|
page,
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.812",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@date-io/moment": "^1.3.5",
|
|
8
|
-
"@reltio/mdm-module": "^1.4.
|
|
9
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
8
|
+
"@reltio/mdm-module": "^1.4.812",
|
|
9
|
+
"@reltio/mdm-sdk": "^1.4.812",
|
|
10
10
|
"classnames": "^2.2.5",
|
|
11
11
|
"frontend-collective-react-dnd-scrollzone": "^1.0.2",
|
|
12
12
|
"nanoid": "^2.0.0",
|