@reltio/components 1.4.1324 → 1.4.1325
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/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/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',
|
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',
|
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.1325",
|
|
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.1325",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1325",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|