@reltio/components 1.4.909 → 1.4.913
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/history/HistoryMenuButton/HistoryMenuButton.js +46 -1
- package/cjs/components/history/HistoryMenuButton/MenuItemRenderer.d.ts +12 -0
- package/cjs/components/history/HistoryMenuButton/MenuItemRenderer.js +44 -0
- package/cjs/components/history/HistoryMenuButton/styles.d.ts +1 -1
- package/cjs/components/history/HistoryMenuButton/styles.js +13 -0
- package/cjs/components/workflow/cards/DataChangeRequestTaskCard/DataChangeRequestTaskCard.js +6 -30
- package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.d.ts +7 -4
- package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.js +19 -9
- package/cjs/components/workflow/components/AttributesChanges/components/ChangeView/ChangeView.d.ts +4 -4
- package/cjs/components/workflow/components/AttributesChanges/components/ChangeView/styles.js +3 -9
- package/cjs/components/workflow/components/AttributesChanges/components/DCRChangesList/DCRChangesList.d.ts +2 -2
- package/cjs/components/workflow/components/AttributesChanges/components/DCRChangesList/DCRChangesList.js +4 -1
- package/cjs/components/workflow/components/AttributesChanges/components/DCRChangesList/styles.d.ts +1 -0
- package/cjs/components/workflow/components/AttributesChanges/components/DCRChangesList/styles.js +13 -0
- package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.d.ts +2 -13
- package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +25 -9
- package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/styles.d.ts +1 -1
- package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/styles.js +14 -2
- package/cjs/components/workflow/components/AttributesChanges/contexts/AttributesChangesContext.d.ts +1 -1
- package/cjs/components/workflow/components/AttributesChanges/helpers/attributesHelpers.d.ts +3 -2
- package/cjs/components/workflow/components/AttributesChanges/helpers/attributesHelpers.js +35 -6
- package/cjs/components/workflow/components/AttributesChanges/helpers/helpers.d.ts +4 -6
- package/cjs/components/workflow/components/AttributesChanges/helpers/helpers.js +4 -26
- package/cjs/components/workflow/components/AttributesChanges/helpers/mergeHelpers.d.ts +3 -2
- package/cjs/components/workflow/components/AttributesChanges/helpers/mergeHelpers.js +109 -28
- package/cjs/components/workflow/components/AttributesChanges/hooks/useCollapsibleList.d.ts +3 -2
- package/cjs/components/workflow/components/AttributesChanges/hooks/useCollapsibleList.js +4 -4
- package/cjs/components/workflow/components/AttributesChanges/types/diffTypes.d.ts +16 -0
- package/cjs/components/workflow/components/AttributesChanges/types/{DCRTypes.js → diffTypes.js} +0 -0
- package/cjs/components/workflow/components/LineDecorator/LineDecorator.d.ts +2 -1
- package/cjs/components/workflow/components/LineDecorator/LineDecorator.js +5 -2
- package/cjs/components/workflow/components/LineDecorator/styles.d.ts +1 -1
- package/cjs/components/workflow/components/LineDecorator/styles.js +4 -1
- package/cjs/components/workflow/{components/AttributesChanges/constants → constants}/operations.d.ts +0 -0
- package/cjs/components/workflow/{components/AttributesChanges/constants → constants}/operations.js +0 -0
- package/cjs/components/workflow/helpers/dcrHelpers.d.ts +7 -0
- package/cjs/components/workflow/helpers/dcrHelpers.js +48 -0
- package/cjs/components/workflow/hooks/useChangeRequest.d.ts +5 -0
- package/cjs/components/workflow/hooks/useChangeRequest.js +58 -0
- package/{esm/components/workflow/components/AttributesChanges/types/DCRTypes.d.ts → cjs/components/workflow/types/dcrTypes.d.ts} +22 -16
- package/cjs/components/workflow/types/dcrTypes.js +2 -0
- package/esm/components/history/HistoryMenuButton/HistoryMenuButton.js +27 -1
- package/esm/components/history/HistoryMenuButton/MenuItemRenderer.d.ts +12 -0
- package/esm/components/history/HistoryMenuButton/MenuItemRenderer.js +20 -0
- package/esm/components/history/HistoryMenuButton/styles.d.ts +1 -1
- package/esm/components/history/HistoryMenuButton/styles.js +13 -0
- package/esm/components/workflow/cards/DataChangeRequestTaskCard/DataChangeRequestTaskCard.js +6 -11
- package/esm/components/workflow/components/AttributesChanges/AttributesChanges.d.ts +7 -4
- package/esm/components/workflow/components/AttributesChanges/AttributesChanges.js +19 -9
- package/esm/components/workflow/components/AttributesChanges/components/ChangeView/ChangeView.d.ts +4 -4
- package/esm/components/workflow/components/AttributesChanges/components/ChangeView/styles.js +3 -9
- package/esm/components/workflow/components/AttributesChanges/components/DCRChangesList/DCRChangesList.d.ts +2 -2
- package/esm/components/workflow/components/AttributesChanges/components/DCRChangesList/DCRChangesList.js +4 -1
- package/esm/components/workflow/components/AttributesChanges/components/DCRChangesList/styles.d.ts +1 -0
- package/esm/components/workflow/components/AttributesChanges/components/DCRChangesList/styles.js +10 -0
- package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.d.ts +2 -13
- package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +26 -10
- package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/styles.d.ts +1 -1
- package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/styles.js +14 -2
- package/esm/components/workflow/components/AttributesChanges/contexts/AttributesChangesContext.d.ts +1 -1
- package/esm/components/workflow/components/AttributesChanges/helpers/attributesHelpers.d.ts +3 -2
- package/esm/components/workflow/components/AttributesChanges/helpers/attributesHelpers.js +35 -7
- package/esm/components/workflow/components/AttributesChanges/helpers/helpers.d.ts +4 -6
- package/esm/components/workflow/components/AttributesChanges/helpers/helpers.js +4 -25
- package/esm/components/workflow/components/AttributesChanges/helpers/mergeHelpers.d.ts +3 -2
- package/esm/components/workflow/components/AttributesChanges/helpers/mergeHelpers.js +112 -31
- package/esm/components/workflow/components/AttributesChanges/hooks/useCollapsibleList.d.ts +3 -2
- package/esm/components/workflow/components/AttributesChanges/hooks/useCollapsibleList.js +4 -4
- package/esm/components/workflow/components/AttributesChanges/types/diffTypes.d.ts +16 -0
- package/esm/components/workflow/components/AttributesChanges/types/{DCRTypes.js → diffTypes.js} +0 -0
- package/esm/components/workflow/components/LineDecorator/LineDecorator.d.ts +2 -1
- package/esm/components/workflow/components/LineDecorator/LineDecorator.js +5 -2
- package/esm/components/workflow/components/LineDecorator/styles.d.ts +1 -1
- package/esm/components/workflow/components/LineDecorator/styles.js +4 -1
- package/esm/components/workflow/{components/AttributesChanges/constants → constants}/operations.d.ts +0 -0
- package/esm/components/workflow/{components/AttributesChanges/constants → constants}/operations.js +0 -0
- package/esm/components/workflow/helpers/dcrHelpers.d.ts +7 -0
- package/esm/components/workflow/helpers/dcrHelpers.js +43 -0
- package/esm/components/workflow/hooks/useChangeRequest.d.ts +5 -0
- package/esm/components/workflow/hooks/useChangeRequest.js +54 -0
- package/{cjs/components/workflow/components/AttributesChanges/types/DCRTypes.d.ts → esm/components/workflow/types/dcrTypes.d.ts} +22 -16
- package/esm/components/workflow/types/dcrTypes.js +1 -0
- package/package.json +3 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { Diff, Title } from '../types/diffTypes';
|
|
2
|
+
export declare const useCollapsibleList: (items: (Diff | Title)[], limit?: number) => {
|
|
2
3
|
isExpanded: boolean;
|
|
3
4
|
onToggle: () => void;
|
|
4
|
-
itemsToShow:
|
|
5
|
+
itemsToShow: (Diff | Title)[];
|
|
5
6
|
collapsedSuggestionsCount: number;
|
|
6
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useCallback, useMemo, useState } from 'react';
|
|
2
2
|
import { getSuggestionsCount } from '../helpers/contextHelpers';
|
|
3
3
|
var DEFAULT_VISIBLE_ITEMS_COUNT = 3;
|
|
4
|
-
export var useCollapsibleList = function (
|
|
4
|
+
export var useCollapsibleList = function (items, limit) {
|
|
5
5
|
if (limit === void 0) { limit = DEFAULT_VISIBLE_ITEMS_COUNT; }
|
|
6
6
|
var _a = useState(false), isExpanded = _a[0], setIsExpanded = _a[1];
|
|
7
7
|
var onToggle = useCallback(function () { return setIsExpanded(function (value) { return !value; }); }, []);
|
|
8
|
-
var collapsedItems = useMemo(function () { return
|
|
9
|
-
var suggestionsCount = useMemo(function () { return getSuggestionsCount(
|
|
8
|
+
var collapsedItems = useMemo(function () { return items.slice(0, limit); }, [items, limit]);
|
|
9
|
+
var suggestionsCount = useMemo(function () { return getSuggestionsCount(items); }, [items]);
|
|
10
10
|
var visibleSuggestionsCount = useMemo(function () { return getSuggestionsCount(collapsedItems); }, [collapsedItems]);
|
|
11
|
-
var itemsToShow = isExpanded ?
|
|
11
|
+
var itemsToShow = isExpanded ? items : collapsedItems;
|
|
12
12
|
var collapsedSuggestionsCount = suggestionsCount - visibleSuggestionsCount;
|
|
13
13
|
return { isExpanded: isExpanded, onToggle: onToggle, itemsToShow: itemsToShow, collapsedSuggestionsCount: collapsedSuggestionsCount };
|
|
14
14
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AttributeType } from '@reltio/mdm-sdk';
|
|
2
|
+
import { ChangeValue, DCRAttributeValue, RelationInfo } from '../../../types/dcrTypes';
|
|
3
|
+
import { OperationTypes } from '../../../constants/operations';
|
|
4
|
+
export declare type RelationAttributeValue = DCRAttributeValue & RelationInfo;
|
|
5
|
+
export declare type Diff = {
|
|
6
|
+
level: number;
|
|
7
|
+
label: string;
|
|
8
|
+
attributeType: AttributeType;
|
|
9
|
+
attributeValue?: DCRAttributeValue | RelationAttributeValue;
|
|
10
|
+
newValue?: ChangeValue;
|
|
11
|
+
oldValue?: ChangeValue;
|
|
12
|
+
operation?: OperationTypes;
|
|
13
|
+
};
|
|
14
|
+
export declare type Title = {
|
|
15
|
+
label: string;
|
|
16
|
+
};
|
package/esm/components/workflow/components/AttributesChanges/types/{DCRTypes.js → diffTypes.js}
RENAMED
|
File without changes
|
|
@@ -6,6 +6,7 @@ declare type Props = {
|
|
|
6
6
|
first?: boolean;
|
|
7
7
|
last?: boolean;
|
|
8
8
|
transparent?: boolean;
|
|
9
|
+
divider?: boolean;
|
|
9
10
|
};
|
|
10
|
-
declare const LineDecorator: ({ className, children, plain, first, last, transparent }: Props) => JSX.Element;
|
|
11
|
+
declare const LineDecorator: ({ className, children, plain, first, last, transparent, divider }: Props) => JSX.Element;
|
|
11
12
|
export default LineDecorator;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { useStyles } from './styles';
|
|
4
|
+
import Divider from '@material-ui/core/Divider';
|
|
4
5
|
var LineDecorator = function (_a) {
|
|
5
6
|
var _b, _c, _d;
|
|
6
|
-
var className = _a.className, children = _a.children, plain = _a.plain, first = _a.first, last = _a.last, transparent = _a.transparent;
|
|
7
|
+
var className = _a.className, children = _a.children, plain = _a.plain, first = _a.first, last = _a.last, transparent = _a.transparent, divider = _a.divider;
|
|
7
8
|
var styles = useStyles();
|
|
8
9
|
return (React.createElement("div", { className: classnames(className, styles.decorator) },
|
|
9
10
|
React.createElement("div", { className: classnames(styles.lineBlock, (_b = {}, _b[styles.withLinePadding] = first, _b)) }, !transparent && (React.createElement(React.Fragment, null,
|
|
10
11
|
React.createElement("div", { className: styles.noLine }),
|
|
11
12
|
React.createElement("div", { className: classnames(styles.line, (_c = {}, _c[styles.plain] = plain, _c), (_d = {}, _d[styles.last] = last, _d)) })))),
|
|
12
|
-
React.createElement("div", { className: styles.content },
|
|
13
|
+
React.createElement("div", { className: styles.content },
|
|
14
|
+
children,
|
|
15
|
+
divider && React.createElement(Divider, { className: styles.rowDivider, light: true, variant: "inset" }))));
|
|
13
16
|
};
|
|
14
17
|
export default LineDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"content" | "last" | "line" | "decorator" | "plain" | "lineBlock" | "withLinePadding" | "noLine">;
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"content" | "last" | "line" | "rowDivider" | "decorator" | "plain" | "lineBlock" | "withLinePadding" | "noLine">;
|
package/esm/components/workflow/{components/AttributesChanges/constants → constants}/operations.d.ts
RENAMED
|
File without changes
|
package/esm/components/workflow/{components/AttributesChanges/constants → constants}/operations.js
RENAMED
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GroupedObjectsInfo, DCRChanges, DCRObjectInfo, DCRObjectsInfo } from '../types/dcrTypes';
|
|
2
|
+
export declare const getEntitiesObjects: any;
|
|
3
|
+
export declare const getRelationsObjects: any;
|
|
4
|
+
export declare const extractObjectsFromChangeRequest: (changes: DCRChanges, objectsInfo: DCRObjectsInfo) => DCRObjectInfo[];
|
|
5
|
+
export declare const createEntityRelationsObjectByEntity: any;
|
|
6
|
+
export declare const createEntityRelationsObjectByRelation: any;
|
|
7
|
+
export declare const concatEntityRelationsObjects: (acc: Record<string, GroupedObjectsInfo>, object: GroupedObjectsInfo) => Record<string, GroupedObjectsInfo>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { isEntityUri, isRelationUri } from '@reltio/mdm-sdk';
|
|
13
|
+
import { allPass, concat, curry, equals, filter, keys, map, pathOr, pipe, prop, uniq } from 'ramda';
|
|
14
|
+
export var getEntitiesObjects = filter(pipe(prop('uri'), isEntityUri));
|
|
15
|
+
export var getRelationsObjects = filter(pipe(prop('uri'), isRelationUri));
|
|
16
|
+
var getRelations = function (objectsWithChanges, entityUri) {
|
|
17
|
+
return filter(allPass([pipe(prop('uri'), isRelationUri), pipe(prop('startObjectUri'), equals(entityUri))]))(objectsWithChanges);
|
|
18
|
+
};
|
|
19
|
+
export var extractObjectsFromChangeRequest = function (changes, objectsInfo) {
|
|
20
|
+
var getChange = function (key) { return prop([key], changes); };
|
|
21
|
+
return pipe(keys, filter(getChange), map(function (key) { return (__assign(__assign({}, objectsInfo[key]), { uri: key })); }))(objectsInfo);
|
|
22
|
+
};
|
|
23
|
+
export var createEntityRelationsObjectByEntity = curry(function (objectsWithChanges, entity) {
|
|
24
|
+
return {
|
|
25
|
+
entity: entity,
|
|
26
|
+
relations: getRelations(objectsWithChanges, entity.uri)
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
export var createEntityRelationsObjectByRelation = curry(function (objectsInfo, relation) {
|
|
30
|
+
var entity = objectsInfo[relation.startObjectUri];
|
|
31
|
+
var relations = [relation];
|
|
32
|
+
return entity ? { entity: __assign(__assign({}, entity), { uri: relation.startObjectUri }), relations: relations } : { relations: relations };
|
|
33
|
+
});
|
|
34
|
+
export var concatEntityRelationsObjects = function (acc, object) {
|
|
35
|
+
var entity = object.entity, relations = object.relations;
|
|
36
|
+
var entityUri = entity.uri;
|
|
37
|
+
var mergedRelations = pipe(pathOr([], [entityUri, 'relations']), concat(relations), uniq)(acc);
|
|
38
|
+
acc[entityUri] = {
|
|
39
|
+
entity: entity,
|
|
40
|
+
relations: mergedRelations
|
|
41
|
+
};
|
|
42
|
+
return acc;
|
|
43
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
13
|
+
import { flatten, has, isEmpty, map, partition, path, pipe, reduce, values } from 'ramda';
|
|
14
|
+
import { getDataChangeRequest, getEntitiesByUris } from '@reltio/mdm-sdk';
|
|
15
|
+
import { useSafePromise } from '../../../hooks';
|
|
16
|
+
import { concatEntityRelationsObjects, createEntityRelationsObjectByEntity, createEntityRelationsObjectByRelation, extractObjectsFromChangeRequest, getEntitiesObjects, getRelationsObjects } from '../helpers/dcrHelpers';
|
|
17
|
+
import { showWorkflowError } from '../helpers/errors';
|
|
18
|
+
export var useChangeRequest = function (dcrUri) {
|
|
19
|
+
var _a = useState([]), groupedObjects = _a[0], setGroupedObjects = _a[1];
|
|
20
|
+
var _b = useState(null), dcr = _b[0], setDcr = _b[1];
|
|
21
|
+
var safePromise = useSafePromise();
|
|
22
|
+
var requestEntities = useCallback(function (entityUris) {
|
|
23
|
+
if (isEmpty(entityUris)) {
|
|
24
|
+
return Promise.resolve([]);
|
|
25
|
+
}
|
|
26
|
+
return safePromise(getEntitiesByUris(entityUris, { searchOptions: 'ovOnly', defaultMaxValues: 1 }));
|
|
27
|
+
}, []); // eslint-disable-line
|
|
28
|
+
useEffect(function () {
|
|
29
|
+
getDataChangeRequest(dcrUri)
|
|
30
|
+
.then(function (dcr) {
|
|
31
|
+
var changes = dcr.changes, objectsInfo = dcr.objectsInfo;
|
|
32
|
+
var objectsWithChanges = extractObjectsFromChangeRequest(changes, objectsInfo);
|
|
33
|
+
var entityObjectsWithRelations = pipe(getEntitiesObjects, map(createEntityRelationsObjectByEntity(objectsWithChanges)))(objectsWithChanges);
|
|
34
|
+
var relationsObjects = pipe(getRelationsObjects, map(createEntityRelationsObjectByRelation(objectsInfo)))(objectsWithChanges);
|
|
35
|
+
var _a = partition(has('entity'), relationsObjects), relationsObjectsWithEntity = _a[0], relationsObjectsWithoutEntity = _a[1];
|
|
36
|
+
var entityUris = relationsObjectsWithoutEntity.map(path(['relations', 0, 'startObjectUri']));
|
|
37
|
+
requestEntities(entityUris)
|
|
38
|
+
.then(function (entities) {
|
|
39
|
+
var relationsObjectsWithRequestedEntities = relationsObjectsWithoutEntity.map(function (relationsObject, index) {
|
|
40
|
+
return __assign(__assign({}, relationsObject), { entity: entities[index] });
|
|
41
|
+
});
|
|
42
|
+
pipe(flatten, reduce(concatEntityRelationsObjects, {}), values, setGroupedObjects)([
|
|
43
|
+
entityObjectsWithRelations,
|
|
44
|
+
relationsObjectsWithEntity,
|
|
45
|
+
relationsObjectsWithRequestedEntities
|
|
46
|
+
]);
|
|
47
|
+
})
|
|
48
|
+
.catch(showWorkflowError);
|
|
49
|
+
setDcr(dcr);
|
|
50
|
+
})
|
|
51
|
+
.catch(showWorkflowError);
|
|
52
|
+
}, [dcrUri, requestEntities]);
|
|
53
|
+
return { dcr: dcr, groupedObjects: groupedObjects };
|
|
54
|
+
};
|
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
import { Crosswalk, NestedAttributeValue, ReferenceAttributeValue, SimpleAttributeValue } from '@reltio/mdm-sdk';
|
|
1
|
+
import { Crosswalk, Entity, NestedAttributeValue, ReferenceAttributeValue, Relation, SimpleAttributeValue } from '@reltio/mdm-sdk';
|
|
2
2
|
import { DCRTypes } from '../constants/operations';
|
|
3
|
+
export declare type ChangeRequest = {
|
|
4
|
+
changes: DCRChanges;
|
|
5
|
+
createdBy: string;
|
|
6
|
+
createdTime: number;
|
|
7
|
+
objectsInfo: DCRObjectsInfo;
|
|
8
|
+
state: string;
|
|
9
|
+
type: string;
|
|
10
|
+
updatedBy: string;
|
|
11
|
+
updatedTime: number;
|
|
12
|
+
uri: string;
|
|
13
|
+
};
|
|
14
|
+
export declare type GroupedObjectsInfo = {
|
|
15
|
+
entity: EntityInfo;
|
|
16
|
+
relations: RelationInfo[];
|
|
17
|
+
};
|
|
3
18
|
export declare type EntityInfo = {
|
|
4
19
|
isExist: boolean;
|
|
5
20
|
label: string;
|
|
6
21
|
secondaryLabel: string;
|
|
7
22
|
type: string;
|
|
23
|
+
uri?: string;
|
|
8
24
|
};
|
|
9
25
|
export declare type RelationInfo = {
|
|
10
26
|
type: string;
|
|
@@ -13,11 +29,15 @@ export declare type RelationInfo = {
|
|
|
13
29
|
endObjectLabel: string;
|
|
14
30
|
endObjectUri: string;
|
|
15
31
|
isExist: boolean;
|
|
32
|
+
uri?: string;
|
|
16
33
|
};
|
|
17
34
|
export declare type DCRObjectInfo = EntityInfo | RelationInfo;
|
|
18
35
|
export declare type DCRObjectsInfo = {
|
|
19
36
|
[key: string]: DCRObjectInfo;
|
|
20
37
|
};
|
|
38
|
+
export declare type DCRAttributes = {
|
|
39
|
+
[attributeName: string]: (ChangeValue | DCRChange)[];
|
|
40
|
+
};
|
|
21
41
|
export declare type Value = DCRAttributes | DCRChange | string | boolean | number;
|
|
22
42
|
export declare type DCRAttributeValue = Omit<SimpleAttributeValue | NestedAttributeValue | ReferenceAttributeValue, 'uri' | 'value'> & {
|
|
23
43
|
value: Value;
|
|
@@ -27,10 +47,7 @@ export declare type DCRAttributeValue = Omit<SimpleAttributeValue | NestedAttrib
|
|
|
27
47
|
};
|
|
28
48
|
uri?: string;
|
|
29
49
|
};
|
|
30
|
-
export declare type
|
|
31
|
-
[attributeName: string]: DCRAttributeValue[];
|
|
32
|
-
};
|
|
33
|
-
export declare type ChangeValue = DCRAttributeValue | string[];
|
|
50
|
+
export declare type ChangeValue = DCRAttributeValue | string[] | Entity | Relation;
|
|
34
51
|
export declare type DCRChange = {
|
|
35
52
|
attributePath?: string;
|
|
36
53
|
attributeType?: string;
|
|
@@ -50,14 +67,3 @@ export declare type DCRChange = {
|
|
|
50
67
|
export declare type DCRChanges = {
|
|
51
68
|
[key: string]: DCRChange[];
|
|
52
69
|
};
|
|
53
|
-
export declare type ChangeRequest = {
|
|
54
|
-
changes: DCRChanges;
|
|
55
|
-
createdBy: string;
|
|
56
|
-
createdTime: number;
|
|
57
|
-
objectsInfo: DCRObjectsInfo;
|
|
58
|
-
state: string;
|
|
59
|
-
type: string;
|
|
60
|
-
updatedBy: string;
|
|
61
|
-
updatedTime: number;
|
|
62
|
-
uri: string;
|
|
63
|
-
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.913",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@date-io/moment": "^1.3.5",
|
|
9
9
|
"@react-google-maps/api": "^2.7.0",
|
|
10
|
-
"@reltio/mdm-module": "^1.4.
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
10
|
+
"@reltio/mdm-module": "^1.4.913",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.913",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|