@reltio/components 1.4.1324 → 1.4.1326
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/EmptyState/EmptyState.d.ts +2 -1
- package/cjs/components/EmptyState/EmptyState.js +3 -1
- package/cjs/components/EmptyState/styles.d.ts +1 -1
- package/cjs/components/EmptyState/styles.js +4 -0
- package/cjs/contexts/SandboxAPIContext/index.d.ts +2 -9
- package/cjs/hooks/useAPI/API.js +4 -2
- package/cjs/hooks/useAPI/types.d.ts +2 -2
- package/cjs/types/index.d.ts +4 -4
- package/esm/components/EmptyState/EmptyState.d.ts +2 -1
- package/esm/components/EmptyState/EmptyState.js +3 -1
- package/esm/components/EmptyState/styles.d.ts +1 -1
- package/esm/components/EmptyState/styles.js +4 -0
- package/esm/contexts/SandboxAPIContext/index.d.ts +2 -9
- package/esm/hooks/useAPI/API.js +4 -2
- package/esm/hooks/useAPI/types.d.ts +2 -2
- package/esm/types/index.d.ts +4 -4
- package/package.json +3 -3
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.EMPTY_STATE_ICONS = exports.EMPTY_STATE_VARIANTS = void 0;
|
|
7
7
|
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
8
9
|
var ramda_1 = require("ramda");
|
|
9
10
|
var Typography_1 = __importDefault(require("@material-ui/core/Typography"));
|
|
10
11
|
var Button_1 = __importDefault(require("@material-ui/core/Button"));
|
|
@@ -17,6 +18,7 @@ var EMPTY_STATE_VARIANTS;
|
|
|
17
18
|
(function (EMPTY_STATE_VARIANTS) {
|
|
18
19
|
EMPTY_STATE_VARIANTS["full"] = "full";
|
|
19
20
|
EMPTY_STATE_VARIANTS["embedded"] = "embedded";
|
|
21
|
+
EMPTY_STATE_VARIANTS["small"] = "small";
|
|
20
22
|
})(EMPTY_STATE_VARIANTS = exports.EMPTY_STATE_VARIANTS || (exports.EMPTY_STATE_VARIANTS = {}));
|
|
21
23
|
exports.EMPTY_STATE_ICONS = {
|
|
22
24
|
SEARCH_RESULTS: EmptySearchResults_1.default,
|
|
@@ -28,7 +30,7 @@ var EmptyState = function (_a) {
|
|
|
28
30
|
var _b = _a.variant, variant = _b === void 0 ? EMPTY_STATE_VARIANTS.full : _b, _c = _a.LogoRenderer, LogoRenderer = _c === void 0 ? exports.EMPTY_STATE_ICONS.SEARCH_RESULTS : _c, text = _a.text, secondaryText = _a.secondaryText, buttonTitle = _a.buttonTitle, _d = _a.onClick, onClick = _d === void 0 ? ramda_1.identity : _d, access = _a.access;
|
|
29
31
|
var styles = (0, styles_1.useStyles)();
|
|
30
32
|
var showButton = access && buttonTitle;
|
|
31
|
-
return (react_1.default.createElement("div", { className: styles.root },
|
|
33
|
+
return (react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.root, styles["root_".concat(variant)]) },
|
|
32
34
|
react_1.default.createElement(LogoRenderer, { className: styles["".concat(variant)] }),
|
|
33
35
|
react_1.default.createElement("div", { className: styles.textBox },
|
|
34
36
|
react_1.default.createElement(Typography_1.default, { variant: "h5", classes: { h5: styles.text } }, text),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"button" | "text" | "root" | "embedded" | "full" | "textBox" | "secondaryText">;
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"button" | "text" | "root" | "root_small" | "embedded" | "full" | "textBox" | "secondaryText">;
|
|
@@ -16,6 +16,9 @@ exports.useStyles = (0, styles_1.makeStyles)(function (theme) { return ({
|
|
|
16
16
|
height: '100%',
|
|
17
17
|
minHeight: '350px',
|
|
18
18
|
boxSizing: 'border-box',
|
|
19
|
+
'&$root_small': {
|
|
20
|
+
minHeight: '160px'
|
|
21
|
+
},
|
|
19
22
|
'& $text': {
|
|
20
23
|
color: theme.palette.text.primary,
|
|
21
24
|
fontSize: '20px',
|
|
@@ -34,6 +37,7 @@ exports.useStyles = (0, styles_1.makeStyles)(function (theme) { return ({
|
|
|
34
37
|
paddingTop: '3px'
|
|
35
38
|
}
|
|
36
39
|
},
|
|
40
|
+
root_small: {},
|
|
37
41
|
embedded: {
|
|
38
42
|
flexShrink: 0,
|
|
39
43
|
width: '190px',
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare
|
|
4
|
-
interceptors?: InterceptHandlers;
|
|
5
|
-
getCurrentPerspectiveId: () => string;
|
|
6
|
-
showPerspective: (perspective: any) => void;
|
|
7
|
-
setEntityUri: (entityUri: string, listener: () => void) => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const SandboxAPIContext: React.Context<SandboxAPI>;
|
|
10
|
-
export {};
|
|
2
|
+
import { QxSandboxApi } from '@reltio/mdm-sdk';
|
|
3
|
+
export declare const SandboxAPIContext: React.Context<QxSandboxApi>;
|
package/cjs/hooks/useAPI/API.js
CHANGED
|
@@ -199,8 +199,10 @@ var processRequest = function (_a) {
|
|
|
199
199
|
break;
|
|
200
200
|
}
|
|
201
201
|
case mdm_sdk_1.RequestAction.SET_ENTITY_URI: {
|
|
202
|
-
var listener = function () {
|
|
203
|
-
|
|
202
|
+
var listener = function (newEntity) {
|
|
203
|
+
return worker.postMessage(__assign({ action: 'response', result: newEntity }, paramObject.params));
|
|
204
|
+
};
|
|
205
|
+
setEntityUri(paramObject.params.entityUri, listener);
|
|
204
206
|
break;
|
|
205
207
|
}
|
|
206
208
|
case mdm_sdk_1.RequestAction.SET_PERSPECTIVE: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomActionTask, CustomActionTaskParams, CustomActionExtension, CustomActionViewConfig, CustomScriptExtension, RequestAction } from '@reltio/mdm-sdk';
|
|
1
|
+
import { CustomActionTask, CustomActionTaskParams, CustomActionExtension, CustomActionViewConfig, CustomScriptExtension, RequestAction, Entity } from '@reltio/mdm-sdk';
|
|
2
2
|
export declare type ProcessRequestParams = {
|
|
3
3
|
name: RequestAction;
|
|
4
4
|
paramObject: {
|
|
@@ -21,7 +21,7 @@ export declare type ProcessRequestParams = {
|
|
|
21
21
|
workflowCheckPermission: (permission?: string) => boolean;
|
|
22
22
|
getCurrentPerspectiveId: () => string;
|
|
23
23
|
showPerspective: (perspective: any) => void;
|
|
24
|
-
setEntityUri: (entityUri: string, listener: () => void) => void;
|
|
24
|
+
setEntityUri: (entityUri: string, listener: (entity: Entity) => void) => void;
|
|
25
25
|
};
|
|
26
26
|
export declare type Request = Omit<CustomActionTask, 'params'> & {
|
|
27
27
|
params: CustomActionTaskParams;
|
package/cjs/types/index.d.ts
CHANGED
|
@@ -45,12 +45,12 @@ export declare type QueryBuilderAttribute = {
|
|
|
45
45
|
operator: string;
|
|
46
46
|
};
|
|
47
47
|
export declare type AttributeSelectorItem = {
|
|
48
|
-
attrType
|
|
49
|
-
entityTypeUri
|
|
48
|
+
attrType?: AttributeType;
|
|
49
|
+
entityTypeUri?: string;
|
|
50
50
|
fieldName: string;
|
|
51
|
-
groupName
|
|
51
|
+
groupName?: string;
|
|
52
52
|
title: string;
|
|
53
|
-
uri
|
|
53
|
+
uri?: string;
|
|
54
54
|
children?: AttributeSelectorItem[];
|
|
55
55
|
pathToTitle?: string[];
|
|
56
56
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
2
3
|
import { identity } from 'ramda';
|
|
3
4
|
import Typography from '@material-ui/core/Typography';
|
|
4
5
|
import Button from '@material-ui/core/Button';
|
|
@@ -11,6 +12,7 @@ export var EMPTY_STATE_VARIANTS;
|
|
|
11
12
|
(function (EMPTY_STATE_VARIANTS) {
|
|
12
13
|
EMPTY_STATE_VARIANTS["full"] = "full";
|
|
13
14
|
EMPTY_STATE_VARIANTS["embedded"] = "embedded";
|
|
15
|
+
EMPTY_STATE_VARIANTS["small"] = "small";
|
|
14
16
|
})(EMPTY_STATE_VARIANTS || (EMPTY_STATE_VARIANTS = {}));
|
|
15
17
|
export var EMPTY_STATE_ICONS = {
|
|
16
18
|
SEARCH_RESULTS: EmptySearchResultsIcon,
|
|
@@ -22,7 +24,7 @@ var EmptyState = function (_a) {
|
|
|
22
24
|
var _b = _a.variant, variant = _b === void 0 ? EMPTY_STATE_VARIANTS.full : _b, _c = _a.LogoRenderer, LogoRenderer = _c === void 0 ? EMPTY_STATE_ICONS.SEARCH_RESULTS : _c, text = _a.text, secondaryText = _a.secondaryText, buttonTitle = _a.buttonTitle, _d = _a.onClick, onClick = _d === void 0 ? identity : _d, access = _a.access;
|
|
23
25
|
var styles = useStyles();
|
|
24
26
|
var showButton = access && buttonTitle;
|
|
25
|
-
return (React.createElement("div", { className: styles.root },
|
|
27
|
+
return (React.createElement("div", { className: classnames(styles.root, styles["root_".concat(variant)]) },
|
|
26
28
|
React.createElement(LogoRenderer, { className: styles["".concat(variant)] }),
|
|
27
29
|
React.createElement("div", { className: styles.textBox },
|
|
28
30
|
React.createElement(Typography, { variant: "h5", classes: { h5: styles.text } }, text),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"button" | "text" | "root" | "embedded" | "full" | "textBox" | "secondaryText">;
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"button" | "text" | "root" | "root_small" | "embedded" | "full" | "textBox" | "secondaryText">;
|
|
@@ -13,6 +13,9 @@ export var useStyles = makeStyles(function (theme) { return ({
|
|
|
13
13
|
height: '100%',
|
|
14
14
|
minHeight: '350px',
|
|
15
15
|
boxSizing: 'border-box',
|
|
16
|
+
'&$root_small': {
|
|
17
|
+
minHeight: '160px'
|
|
18
|
+
},
|
|
16
19
|
'& $text': {
|
|
17
20
|
color: theme.palette.text.primary,
|
|
18
21
|
fontSize: '20px',
|
|
@@ -31,6 +34,7 @@ export var useStyles = makeStyles(function (theme) { return ({
|
|
|
31
34
|
paddingTop: '3px'
|
|
32
35
|
}
|
|
33
36
|
},
|
|
37
|
+
root_small: {},
|
|
34
38
|
embedded: {
|
|
35
39
|
flexShrink: 0,
|
|
36
40
|
width: '190px',
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare
|
|
4
|
-
interceptors?: InterceptHandlers;
|
|
5
|
-
getCurrentPerspectiveId: () => string;
|
|
6
|
-
showPerspective: (perspective: any) => void;
|
|
7
|
-
setEntityUri: (entityUri: string, listener: () => void) => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const SandboxAPIContext: React.Context<SandboxAPI>;
|
|
10
|
-
export {};
|
|
2
|
+
import { QxSandboxApi } from '@reltio/mdm-sdk';
|
|
3
|
+
export declare const SandboxAPIContext: React.Context<QxSandboxApi>;
|
package/esm/hooks/useAPI/API.js
CHANGED
|
@@ -196,8 +196,10 @@ export var processRequest = function (_a) {
|
|
|
196
196
|
break;
|
|
197
197
|
}
|
|
198
198
|
case RequestAction.SET_ENTITY_URI: {
|
|
199
|
-
var listener = function () {
|
|
200
|
-
|
|
199
|
+
var listener = function (newEntity) {
|
|
200
|
+
return worker.postMessage(__assign({ action: 'response', result: newEntity }, paramObject.params));
|
|
201
|
+
};
|
|
202
|
+
setEntityUri(paramObject.params.entityUri, listener);
|
|
201
203
|
break;
|
|
202
204
|
}
|
|
203
205
|
case RequestAction.SET_PERSPECTIVE: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomActionTask, CustomActionTaskParams, CustomActionExtension, CustomActionViewConfig, CustomScriptExtension, RequestAction } from '@reltio/mdm-sdk';
|
|
1
|
+
import { CustomActionTask, CustomActionTaskParams, CustomActionExtension, CustomActionViewConfig, CustomScriptExtension, RequestAction, Entity } from '@reltio/mdm-sdk';
|
|
2
2
|
export declare type ProcessRequestParams = {
|
|
3
3
|
name: RequestAction;
|
|
4
4
|
paramObject: {
|
|
@@ -21,7 +21,7 @@ export declare type ProcessRequestParams = {
|
|
|
21
21
|
workflowCheckPermission: (permission?: string) => boolean;
|
|
22
22
|
getCurrentPerspectiveId: () => string;
|
|
23
23
|
showPerspective: (perspective: any) => void;
|
|
24
|
-
setEntityUri: (entityUri: string, listener: () => void) => void;
|
|
24
|
+
setEntityUri: (entityUri: string, listener: (entity: Entity) => void) => void;
|
|
25
25
|
};
|
|
26
26
|
export declare type Request = Omit<CustomActionTask, 'params'> & {
|
|
27
27
|
params: CustomActionTaskParams;
|
package/esm/types/index.d.ts
CHANGED
|
@@ -45,12 +45,12 @@ export declare type QueryBuilderAttribute = {
|
|
|
45
45
|
operator: string;
|
|
46
46
|
};
|
|
47
47
|
export declare type AttributeSelectorItem = {
|
|
48
|
-
attrType
|
|
49
|
-
entityTypeUri
|
|
48
|
+
attrType?: AttributeType;
|
|
49
|
+
entityTypeUri?: string;
|
|
50
50
|
fieldName: string;
|
|
51
|
-
groupName
|
|
51
|
+
groupName?: string;
|
|
52
52
|
title: string;
|
|
53
|
-
uri
|
|
53
|
+
uri?: string;
|
|
54
54
|
children?: AttributeSelectorItem[];
|
|
55
55
|
pathToTitle?: string[];
|
|
56
56
|
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1326",
|
|
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.1326",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1326",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|