@reltio/components 1.4.1622 → 1.4.1623
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/ScreenProfileBand/ScreenProfileBand.d.ts +1 -2
- package/cjs/components/attributes/DescriptionIcon/index.d.ts +1 -1
- package/cjs/components/attributes/DescriptionIcon/styles.d.ts +1 -1
- package/cjs/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -4
- package/cjs/components/history/HistoryTree/HistoryTree.d.ts +1 -1
- package/cjs/components/history/HistoryView/HistoryView.d.ts +1 -2
- package/cjs/components/history/hooks/useHistoryDiff.js +2 -2
- package/cjs/components/history/hooks/useHistorySlice.d.ts +2 -3
- package/cjs/test-utils/store-utils.d.ts +1 -1
- package/esm/components/ScreenProfileBand/ScreenProfileBand.d.ts +1 -2
- package/esm/components/attributes/DescriptionIcon/index.d.ts +1 -1
- package/esm/components/attributes/DescriptionIcon/styles.d.ts +1 -1
- package/esm/components/history/HistoryMenuButton/HistoryMenuButton.js +2 -1
- package/esm/components/history/HistoryTree/HistoryTree.d.ts +1 -1
- package/esm/components/history/HistoryView/HistoryView.d.ts +1 -2
- package/esm/components/history/hooks/useHistoryDiff.js +3 -3
- package/esm/components/history/hooks/useHistorySlice.d.ts +2 -3
- package/esm/test-utils/store-utils.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './DescriptionIcon';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "icon" | "container">;
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "icon" | "container">;
|
|
@@ -31,6 +31,7 @@ var react_redux_1 = require("react-redux");
|
|
|
31
31
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
32
32
|
var MoreVert_1 = __importDefault(require("@mui/icons-material/MoreVert"));
|
|
33
33
|
var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
|
|
34
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
34
35
|
var SmallIconButton_1 = require("../../SmallIconButton");
|
|
35
36
|
var DropDownMenuButton_1 = __importDefault(require("../../DropDownMenuButton/DropDownMenuButton"));
|
|
36
37
|
var MenuItemRenderer_1 = __importDefault(require("./MenuItemRenderer"));
|
|
@@ -43,13 +44,13 @@ var HistoryMenuButton = function () {
|
|
|
43
44
|
var menuItems = [
|
|
44
45
|
{
|
|
45
46
|
text: ui_i18n_1.default.text('Compare to Current view'),
|
|
46
|
-
selected: mode ===
|
|
47
|
-
onClick: function () { return handleModeChange(
|
|
47
|
+
selected: mode === mdm_sdk_1.HistoryMode.Current,
|
|
48
|
+
onClick: function () { return handleModeChange(mdm_sdk_1.HistoryMode.Current); }
|
|
48
49
|
},
|
|
49
50
|
{
|
|
50
51
|
text: ui_i18n_1.default.text('Compare to Previous view'),
|
|
51
|
-
selected: mode ===
|
|
52
|
-
onClick: function () { return handleModeChange(
|
|
52
|
+
selected: mode === mdm_sdk_1.HistoryMode.Previous,
|
|
53
|
+
onClick: function () { return handleModeChange(mdm_sdk_1.HistoryMode.Previous); }
|
|
53
54
|
}
|
|
54
55
|
];
|
|
55
56
|
return (react_1.default.createElement(DropDownMenuButton_1.default, { MenuItemRenderer: MenuItemRenderer_1.default, buttonComponent: SmallIconButton_1.SmallIconButton, buttonProps: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { HistoryWithTotal } from '@reltio/mdm-sdk';
|
|
3
|
-
import { HistoryEvent } from '@reltio/mdm-module';
|
|
2
|
+
import { HistoryWithTotal, HistoryEvent } from '@reltio/mdm-sdk';
|
|
4
3
|
type Props = {
|
|
5
4
|
isLoading: boolean;
|
|
6
5
|
historyWithTotal: HistoryWithTotal;
|
|
@@ -56,8 +56,8 @@ var useHistoryDiff = function () {
|
|
|
56
56
|
(0, react_1.useEffect)(function () {
|
|
57
57
|
if (historySlice) {
|
|
58
58
|
var aEntity = historySlice.aEntity, bEntity = historySlice.bEntity;
|
|
59
|
-
var historyManager = mdm_sdk_1.entity.HistoryManager.createHistoryManager(
|
|
60
|
-
var historyDiff_1 = historyManager.computeEntityHistoryDiff(prepareHistorySlice(historyMode ===
|
|
59
|
+
var historyManager = mdm_sdk_1.entity.HistoryManager.createHistoryManager();
|
|
60
|
+
var historyDiff_1 = historyManager.computeEntityHistoryDiff(prepareHistorySlice(historyMode === mdm_sdk_1.HistoryMode.Current ? entity : bEntity), prepareHistorySlice(aEntity));
|
|
61
61
|
dispatch(mdm_module_1.profile.history.actions.setHistoryDiff(historyDiff_1));
|
|
62
62
|
}
|
|
63
63
|
}, [historySlice, historyMode, dispatch, entity]);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { HistoryEvent } from '@reltio/mdm-
|
|
2
|
-
import { Entity } from '@reltio/mdm-sdk';
|
|
1
|
+
import { Entity, HistoryEvent } from '@reltio/mdm-sdk';
|
|
3
2
|
type Props = {
|
|
4
3
|
entity: Entity;
|
|
5
4
|
historyEvent: HistoryEvent;
|
|
6
5
|
};
|
|
7
6
|
export declare const useHistorySlice: ({ entity, historyEvent }: Props) => {
|
|
8
7
|
isLoading: boolean;
|
|
9
|
-
historySlice: import("@reltio/mdm-
|
|
8
|
+
historySlice: import("@reltio/mdm-sdk").HistorySlice;
|
|
10
9
|
};
|
|
11
10
|
export {};
|
|
@@ -6,7 +6,7 @@ export declare const createTestStore: (initialState: any) => import("redux-dynam
|
|
|
6
6
|
dependentLookups: import("@reltio/mdm-module/src/profile/dependentLookups/constants").DependentLookupsState;
|
|
7
7
|
entity: import("@reltio/mdm-sdk").Entity;
|
|
8
8
|
errors: import("@reltio/mdm-sdk").AttributeError[];
|
|
9
|
-
history: import("@reltio/mdm-
|
|
9
|
+
history: import("@reltio/mdm-sdk").History;
|
|
10
10
|
lastLoadedTime: any;
|
|
11
11
|
lookups: any;
|
|
12
12
|
mode: import("@reltio/mdm-sdk").Mode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './DescriptionIcon';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "icon" | "container">;
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "icon" | "container">;
|
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { useDispatch, useSelector } from 'react-redux';
|
|
3
3
|
import i18n from 'ui-i18n';
|
|
4
4
|
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
5
|
-
import mdmModule, {
|
|
5
|
+
import mdmModule, { profile } from '@reltio/mdm-module';
|
|
6
|
+
import { HistoryMode } from '@reltio/mdm-sdk';
|
|
6
7
|
import { SmallIconButton } from '../../SmallIconButton';
|
|
7
8
|
import DropDownMenuButton from '../../DropDownMenuButton/DropDownMenuButton';
|
|
8
9
|
import MenuItemRenderer from './MenuItemRenderer';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { HistoryWithTotal } from '@reltio/mdm-sdk';
|
|
3
|
-
import { HistoryEvent } from '@reltio/mdm-module';
|
|
2
|
+
import { HistoryWithTotal, HistoryEvent } from '@reltio/mdm-sdk';
|
|
4
3
|
type Props = {
|
|
5
4
|
isLoading: boolean;
|
|
6
5
|
historyWithTotal: HistoryWithTotal;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { useDispatch, useSelector } from 'react-redux';
|
|
3
3
|
import { evolve, map } from 'ramda';
|
|
4
|
-
import { entity as History, wrapInArrayIfNeeded } from '@reltio/mdm-sdk';
|
|
5
|
-
import mdmModule, {
|
|
4
|
+
import { entity as History, HistoryMode, wrapInArrayIfNeeded } from '@reltio/mdm-sdk';
|
|
5
|
+
import mdmModule, { profile } from '@reltio/mdm-module';
|
|
6
6
|
export var defaultHistoryDiff = {
|
|
7
7
|
appearance: {},
|
|
8
8
|
attributes: {},
|
|
@@ -30,7 +30,7 @@ export var useHistoryDiff = function () {
|
|
|
30
30
|
useEffect(function () {
|
|
31
31
|
if (historySlice) {
|
|
32
32
|
var aEntity = historySlice.aEntity, bEntity = historySlice.bEntity;
|
|
33
|
-
var historyManager = History.HistoryManager.createHistoryManager(
|
|
33
|
+
var historyManager = History.HistoryManager.createHistoryManager();
|
|
34
34
|
var historyDiff_1 = historyManager.computeEntityHistoryDiff(prepareHistorySlice(historyMode === HistoryMode.Current ? entity : bEntity), prepareHistorySlice(aEntity));
|
|
35
35
|
dispatch(profile.history.actions.setHistoryDiff(historyDiff_1));
|
|
36
36
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { HistoryEvent } from '@reltio/mdm-
|
|
2
|
-
import { Entity } from '@reltio/mdm-sdk';
|
|
1
|
+
import { Entity, HistoryEvent } from '@reltio/mdm-sdk';
|
|
3
2
|
type Props = {
|
|
4
3
|
entity: Entity;
|
|
5
4
|
historyEvent: HistoryEvent;
|
|
6
5
|
};
|
|
7
6
|
export declare const useHistorySlice: ({ entity, historyEvent }: Props) => {
|
|
8
7
|
isLoading: boolean;
|
|
9
|
-
historySlice: import("@reltio/mdm-
|
|
8
|
+
historySlice: import("@reltio/mdm-sdk").HistorySlice;
|
|
10
9
|
};
|
|
11
10
|
export {};
|
|
@@ -6,7 +6,7 @@ export declare const createTestStore: (initialState: any) => import("redux-dynam
|
|
|
6
6
|
dependentLookups: import("@reltio/mdm-module/src/profile/dependentLookups/constants").DependentLookupsState;
|
|
7
7
|
entity: import("@reltio/mdm-sdk").Entity;
|
|
8
8
|
errors: import("@reltio/mdm-sdk").AttributeError[];
|
|
9
|
-
history: import("@reltio/mdm-
|
|
9
|
+
history: import("@reltio/mdm-sdk").History;
|
|
10
10
|
lastLoadedTime: any;
|
|
11
11
|
lookups: any;
|
|
12
12
|
mode: import("@reltio/mdm-sdk").Mode;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1623",
|
|
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.1623",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1623",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|