@reltio/components 1.4.1666 → 1.4.1667
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/attributes/editMode/AttributesPager/AttributesPager.js +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +5 -2
- package/cjs/components/attributes/editMode/AttributesPager/ImageLineRenderer.js +44 -9
- package/cjs/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/styles.js +7 -0
- package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +1 -1
- package/cjs/components/attributes/editMode/ImageAttributesLine/styles.js +1 -2
- package/esm/components/attributes/editMode/AttributesPager/AttributesPager.js +2 -2
- package/esm/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +5 -2
- package/esm/components/attributes/editMode/AttributesPager/ImageLineRenderer.js +21 -9
- package/esm/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesPager/styles.js +7 -0
- package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +1 -1
- package/esm/components/attributes/editMode/ImageAttributesLine/styles.js +1 -2
- package/package.json +2 -2
|
@@ -70,7 +70,7 @@ var AttributesPager = function (_a) {
|
|
|
70
70
|
}
|
|
71
71
|
case RENDERER_TYPES.imageLine:
|
|
72
72
|
return (react_1.default.createElement(BranchDecorator_1.default, { enabled: drawLines },
|
|
73
|
-
react_1.default.createElement(ImageLineRenderer_1.ImageLineRenderer, { attributeValues: visibleValues, attributeType: attributeType, paging: paging, onDeleteAttribute: onDeleteAttribute, parentUri: parentUri, onChangeAttribute: onChangeAttribute, requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, showNonOv: showNonOv, highlightedAttribute: highlightedAttribute })));
|
|
73
|
+
react_1.default.createElement(ImageLineRenderer_1.ImageLineRenderer, { attributeValues: visibleValues, attributeType: attributeType, paging: paging, onDeleteAttribute: onDeleteAttribute, parentUri: parentUri, onChangeAttribute: onChangeAttribute, requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, showNonOv: showNonOv, highlightedAttribute: highlightedAttribute, error: (0, mdm_sdk_1.getAttributeErrorByTypeUri)(attributeType.uri, activeErrors), highlightedError: highlightedError, onDeactivateError: onDeactivateError })));
|
|
74
74
|
default:
|
|
75
75
|
return (react_1.default.createElement(AttributeRenderer_1.default, __assign({ values: visibleValues, attributeType: attributeType, max: max, paging: paging, crosswalks: crosswalks, drawLines: drawLines, requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, showNonOv: showNonOv, nonVisibleValues: nonVisibleValues }, commonProps)));
|
|
76
76
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AttributeItem, AttributeType, ImageAttributeValue, Paging, RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-sdk';
|
|
2
|
+
import { AttributeError, AttributeItem, AttributeType, ImageAttributeValue, Paging, RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-sdk';
|
|
3
3
|
import { ScrollToElementContext } from '../../../../contexts';
|
|
4
4
|
type Props = {
|
|
5
5
|
attributeType: AttributeType;
|
|
@@ -11,6 +11,9 @@ type Props = {
|
|
|
11
11
|
onChangeAttribute: (param: AttributeItem) => void;
|
|
12
12
|
requestNextPageOfAttributeValues?: (payload: RequestNextPageOfAttributeValuesPayload) => void;
|
|
13
13
|
highlightedAttribute?: React.ContextType<typeof ScrollToElementContext>;
|
|
14
|
+
error?: AttributeError;
|
|
15
|
+
highlightedError?: React.ContextType<typeof ScrollToElementContext>;
|
|
16
|
+
onDeactivateError?: (id: string) => void;
|
|
14
17
|
};
|
|
15
|
-
export declare const ImageLineRenderer: ({ attributeType, attributeValues, paging, parentUri, showNonOv, onDeleteAttribute, onChangeAttribute, requestNextPageOfAttributeValues, highlightedAttribute }: Props) => JSX.Element;
|
|
18
|
+
export declare const ImageLineRenderer: ({ attributeType, attributeValues, paging, parentUri, showNonOv, onDeleteAttribute, onChangeAttribute, requestNextPageOfAttributeValues, highlightedAttribute, error, highlightedError, onDeactivateError }: Props) => JSX.Element;
|
|
16
19
|
export {};
|
|
@@ -1,25 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
29
|
exports.ImageLineRenderer = void 0;
|
|
7
|
-
var react_1 =
|
|
30
|
+
var react_1 = __importStar(require("react"));
|
|
8
31
|
var classnames_1 = __importDefault(require("classnames"));
|
|
32
|
+
var ramda_1 = require("ramda");
|
|
33
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
9
34
|
var Title_1 = __importDefault(require("../../../Title/Title"));
|
|
10
35
|
var DescriptionIcon_1 = __importDefault(require("../../DescriptionIcon"));
|
|
11
36
|
var ImageAttributesLine_1 = __importDefault(require("../ImageAttributesLine"));
|
|
12
37
|
var useScrollToAttribute_1 = require("../hooks/useScrollToAttribute/useScrollToAttribute");
|
|
38
|
+
var hooks_1 = require("../../../../hooks");
|
|
39
|
+
var ErrorWrapper_1 = __importDefault(require("../../../ErrorWrapper/ErrorWrapper"));
|
|
13
40
|
var styles_1 = require("./styles");
|
|
14
41
|
var ImageLineRenderer = function (_a) {
|
|
15
|
-
var attributeType = _a.attributeType, attributeValues = _a.attributeValues, paging = _a.paging, parentUri = _a.parentUri, showNonOv = _a.showNonOv, onDeleteAttribute = _a.onDeleteAttribute, onChangeAttribute = _a.onChangeAttribute, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues, highlightedAttribute = _a.highlightedAttribute;
|
|
42
|
+
var attributeType = _a.attributeType, attributeValues = _a.attributeValues, paging = _a.paging, parentUri = _a.parentUri, showNonOv = _a.showNonOv, onDeleteAttribute = _a.onDeleteAttribute, onChangeAttribute = _a.onChangeAttribute, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues, highlightedAttribute = _a.highlightedAttribute, error = _a.error, highlightedError = _a.highlightedError, onDeactivateError = _a.onDeactivateError;
|
|
16
43
|
var styles = (0, styles_1.useStyles)();
|
|
17
|
-
var label = attributeType.label, description = attributeType.description;
|
|
18
|
-
var _b = (0, useScrollToAttribute_1.useScrollToAttribute)(highlightedAttribute),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
44
|
+
var label = attributeType.label, description = attributeType.description, isRequired = attributeType.required;
|
|
45
|
+
var _b = (0, useScrollToAttribute_1.useScrollToAttribute)(highlightedAttribute), highlightedRef = _b.ref, highlightedClassName = _b.highlightedClassName;
|
|
46
|
+
var _c = (0, hooks_1.useScrollToAttributeError)({ highlightedError: highlightedError }), errorRef = _c.ref, errorClassName = _c.errorClassName;
|
|
47
|
+
var deactivateError = (0, react_1.useCallback)(function () {
|
|
48
|
+
if (error && !!onDeactivateError) {
|
|
49
|
+
onDeactivateError((0, mdm_sdk_1.getErrorId)(error));
|
|
50
|
+
}
|
|
51
|
+
}, [error, onDeactivateError]);
|
|
52
|
+
return (react_1.default.createElement("div", { ref: highlightedRef, className: (0, classnames_1.default)(styles.wrapper, highlightedClassName) },
|
|
53
|
+
react_1.default.createElement("div", { ref: errorRef, className: (0, classnames_1.default)(styles.imagesWrapper, errorClassName) },
|
|
54
|
+
react_1.default.createElement("div", { className: styles.titleWrapper },
|
|
55
|
+
react_1.default.createElement(Title_1.default, { className: styles.title, label: label, "data-reltio-id": "reltio-attribute-label", isRequired: isRequired }),
|
|
56
|
+
react_1.default.createElement(DescriptionIcon_1.default, { className: styles.description, description: description })),
|
|
57
|
+
react_1.default.createElement(ErrorWrapper_1.default, { errorMessage: error === null || error === void 0 ? void 0 : error.message, className: styles.errorWrapper },
|
|
58
|
+
react_1.default.createElement(ImageAttributesLine_1.default, { attributeValues: attributeValues, attributeType: attributeType, paging: paging, onDeleteAttribute: onDeleteAttribute, parentUri: parentUri, onChangeAttribute: (0, ramda_1.pipe)(onChangeAttribute, deactivateError), requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, showNonOv: showNonOv })))));
|
|
24
59
|
};
|
|
25
60
|
exports.ImageLineRenderer = ImageLineRenderer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "description" | "caption" | "title" | "wrapper" | "ovIcon" | "svg-icon__root" | "attributesWrapper" | "typeError" | "titleWrapper">;
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "description" | "caption" | "title" | "wrapper" | "ovIcon" | "svg-icon__root" | "attributesWrapper" | "imagesWrapper" | "typeError" | "titleWrapper" | "errorWrapper">;
|
|
@@ -20,6 +20,10 @@ exports.useStyles = (0, styles_1.makeStyles)(function (theme) { return ({
|
|
|
20
20
|
width: '100%',
|
|
21
21
|
marginBottom: '10px'
|
|
22
22
|
},
|
|
23
|
+
imagesWrapper: {
|
|
24
|
+
paddingBottom: '10px',
|
|
25
|
+
width: '100%'
|
|
26
|
+
},
|
|
23
27
|
link: {
|
|
24
28
|
display: 'flex',
|
|
25
29
|
marginTop: 4
|
|
@@ -44,5 +48,8 @@ exports.useStyles = (0, styles_1.makeStyles)(function (theme) { return ({
|
|
|
44
48
|
titleWrapper: {
|
|
45
49
|
flex: 1,
|
|
46
50
|
paddingBottom: '3px'
|
|
51
|
+
},
|
|
52
|
+
errorWrapper: {
|
|
53
|
+
paddingBottom: '10px'
|
|
47
54
|
}
|
|
48
55
|
}); });
|
|
@@ -103,7 +103,7 @@ var ImageAttributesLine = function (_a) {
|
|
|
103
103
|
return (react_1.default.createElement("div", { className: styles.root },
|
|
104
104
|
react_1.default.createElement(ImageAttributesLine_1.default, { attributeValues: attributeValues, attributeType: attributeType, renderImage: renderImage, overlay: true, countFixedItems: 1, onUpload: toggleVisibilityUploadDialog, onDeleteAttribute: handleDeleteAttribute, imageSize: imageSize, requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, paging: paging, parentUri: parentUri, showNonOv: showNonOv },
|
|
105
105
|
react_1.default.createElement("div", { className: styles.uploadContainer, onClick: toggleVisibilityUploadDialog },
|
|
106
|
-
react_1.default.createElement(SmallIconButton_1.SmallIconButton, { className: styles.uploadButton, iconClassName: styles.uploadIcon, icon: CloudUpload_1.default }))),
|
|
106
|
+
react_1.default.createElement(SmallIconButton_1.SmallIconButton, { className: styles.uploadButton, iconClassName: styles.uploadIcon, icon: CloudUpload_1.default, "data-reltio-id": "reltio-upload-image-button" }))),
|
|
107
107
|
react_1.default.createElement(UploadImageDialog_1.UploadImageDialog, { open: isVisibleUploadDialog, onUpload: handleAddAttributes, onClose: toggleVisibilityUploadDialog })));
|
|
108
108
|
};
|
|
109
109
|
exports.default = ImageAttributesLine;
|
|
@@ -4,8 +4,7 @@ exports.useStyles = void 0;
|
|
|
4
4
|
var styles_1 = require("@mui/styles");
|
|
5
5
|
exports.useStyles = (0, styles_1.makeStyles)(function () { return ({
|
|
6
6
|
root: {
|
|
7
|
-
width: '100%'
|
|
8
|
-
marginBottom: '10px'
|
|
7
|
+
width: '100%'
|
|
9
8
|
},
|
|
10
9
|
image: function (_a) {
|
|
11
10
|
var imageMargin = _a.imageMargin;
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import { getAttributePagerActiveTypeErrorMessage, isAttributeTypeError, isImage, isOv, isSpecialAttribute, Mode } from '@reltio/mdm-sdk';
|
|
13
|
+
import { getAttributeErrorByTypeUri, getAttributePagerActiveTypeErrorMessage, isAttributeTypeError, isImage, isOv, isSpecialAttribute, Mode } from '@reltio/mdm-sdk';
|
|
14
14
|
import { always, cond, T, partition } from 'ramda';
|
|
15
15
|
import BranchDecorator from '../../BranchDecorator/BranchDecorator';
|
|
16
16
|
import AttributeRenderer from './AttributeRenderer';
|
|
@@ -65,7 +65,7 @@ var AttributesPager = function (_a) {
|
|
|
65
65
|
}
|
|
66
66
|
case RENDERER_TYPES.imageLine:
|
|
67
67
|
return (React.createElement(BranchDecorator, { enabled: drawLines },
|
|
68
|
-
React.createElement(ImageLineRenderer, { attributeValues: visibleValues, attributeType: attributeType, paging: paging, onDeleteAttribute: onDeleteAttribute, parentUri: parentUri, onChangeAttribute: onChangeAttribute, requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, showNonOv: showNonOv, highlightedAttribute: highlightedAttribute })));
|
|
68
|
+
React.createElement(ImageLineRenderer, { attributeValues: visibleValues, attributeType: attributeType, paging: paging, onDeleteAttribute: onDeleteAttribute, parentUri: parentUri, onChangeAttribute: onChangeAttribute, requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, showNonOv: showNonOv, highlightedAttribute: highlightedAttribute, error: getAttributeErrorByTypeUri(attributeType.uri, activeErrors), highlightedError: highlightedError, onDeactivateError: onDeactivateError })));
|
|
69
69
|
default:
|
|
70
70
|
return (React.createElement(AttributeRenderer, __assign({ values: visibleValues, attributeType: attributeType, max: max, paging: paging, crosswalks: crosswalks, drawLines: drawLines, requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, showNonOv: showNonOv, nonVisibleValues: nonVisibleValues }, commonProps)));
|
|
71
71
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AttributeItem, AttributeType, ImageAttributeValue, Paging, RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-sdk';
|
|
2
|
+
import { AttributeError, AttributeItem, AttributeType, ImageAttributeValue, Paging, RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-sdk';
|
|
3
3
|
import { ScrollToElementContext } from '../../../../contexts';
|
|
4
4
|
type Props = {
|
|
5
5
|
attributeType: AttributeType;
|
|
@@ -11,6 +11,9 @@ type Props = {
|
|
|
11
11
|
onChangeAttribute: (param: AttributeItem) => void;
|
|
12
12
|
requestNextPageOfAttributeValues?: (payload: RequestNextPageOfAttributeValuesPayload) => void;
|
|
13
13
|
highlightedAttribute?: React.ContextType<typeof ScrollToElementContext>;
|
|
14
|
+
error?: AttributeError;
|
|
15
|
+
highlightedError?: React.ContextType<typeof ScrollToElementContext>;
|
|
16
|
+
onDeactivateError?: (id: string) => void;
|
|
14
17
|
};
|
|
15
|
-
export declare const ImageLineRenderer: ({ attributeType, attributeValues, paging, parentUri, showNonOv, onDeleteAttribute, onChangeAttribute, requestNextPageOfAttributeValues, highlightedAttribute }: Props) => JSX.Element;
|
|
18
|
+
export declare const ImageLineRenderer: ({ attributeType, attributeValues, paging, parentUri, showNonOv, onDeleteAttribute, onChangeAttribute, requestNextPageOfAttributeValues, highlightedAttribute, error, highlightedError, onDeactivateError }: Props) => JSX.Element;
|
|
16
19
|
export {};
|
|
@@ -1,18 +1,30 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
+
import { pipe } from 'ramda';
|
|
4
|
+
import { getErrorId } from '@reltio/mdm-sdk';
|
|
3
5
|
import Title from '../../../Title/Title';
|
|
4
6
|
import DescriptionIcon from '../../DescriptionIcon';
|
|
5
7
|
import ImageAttributesLine from '../ImageAttributesLine';
|
|
6
8
|
import { useScrollToAttribute } from '../hooks/useScrollToAttribute/useScrollToAttribute';
|
|
9
|
+
import { useScrollToAttributeError } from '../../../../hooks';
|
|
10
|
+
import ErrorWrapper from '../../../ErrorWrapper/ErrorWrapper';
|
|
7
11
|
import { useStyles } from './styles';
|
|
8
12
|
export var ImageLineRenderer = function (_a) {
|
|
9
|
-
var attributeType = _a.attributeType, attributeValues = _a.attributeValues, paging = _a.paging, parentUri = _a.parentUri, showNonOv = _a.showNonOv, onDeleteAttribute = _a.onDeleteAttribute, onChangeAttribute = _a.onChangeAttribute, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues, highlightedAttribute = _a.highlightedAttribute;
|
|
13
|
+
var attributeType = _a.attributeType, attributeValues = _a.attributeValues, paging = _a.paging, parentUri = _a.parentUri, showNonOv = _a.showNonOv, onDeleteAttribute = _a.onDeleteAttribute, onChangeAttribute = _a.onChangeAttribute, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues, highlightedAttribute = _a.highlightedAttribute, error = _a.error, highlightedError = _a.highlightedError, onDeactivateError = _a.onDeactivateError;
|
|
10
14
|
var styles = useStyles();
|
|
11
|
-
var label = attributeType.label, description = attributeType.description;
|
|
12
|
-
var _b = useScrollToAttribute(highlightedAttribute),
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
var label = attributeType.label, description = attributeType.description, isRequired = attributeType.required;
|
|
16
|
+
var _b = useScrollToAttribute(highlightedAttribute), highlightedRef = _b.ref, highlightedClassName = _b.highlightedClassName;
|
|
17
|
+
var _c = useScrollToAttributeError({ highlightedError: highlightedError }), errorRef = _c.ref, errorClassName = _c.errorClassName;
|
|
18
|
+
var deactivateError = useCallback(function () {
|
|
19
|
+
if (error && !!onDeactivateError) {
|
|
20
|
+
onDeactivateError(getErrorId(error));
|
|
21
|
+
}
|
|
22
|
+
}, [error, onDeactivateError]);
|
|
23
|
+
return (React.createElement("div", { ref: highlightedRef, className: classnames(styles.wrapper, highlightedClassName) },
|
|
24
|
+
React.createElement("div", { ref: errorRef, className: classnames(styles.imagesWrapper, errorClassName) },
|
|
25
|
+
React.createElement("div", { className: styles.titleWrapper },
|
|
26
|
+
React.createElement(Title, { className: styles.title, label: label, "data-reltio-id": "reltio-attribute-label", isRequired: isRequired }),
|
|
27
|
+
React.createElement(DescriptionIcon, { className: styles.description, description: description })),
|
|
28
|
+
React.createElement(ErrorWrapper, { errorMessage: error === null || error === void 0 ? void 0 : error.message, className: styles.errorWrapper },
|
|
29
|
+
React.createElement(ImageAttributesLine, { attributeValues: attributeValues, attributeType: attributeType, paging: paging, onDeleteAttribute: onDeleteAttribute, parentUri: parentUri, onChangeAttribute: pipe(onChangeAttribute, deactivateError), requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, showNonOv: showNonOv })))));
|
|
18
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "description" | "caption" | "title" | "wrapper" | "ovIcon" | "svg-icon__root" | "attributesWrapper" | "typeError" | "titleWrapper">;
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "description" | "caption" | "title" | "wrapper" | "ovIcon" | "svg-icon__root" | "attributesWrapper" | "imagesWrapper" | "typeError" | "titleWrapper" | "errorWrapper">;
|
|
@@ -17,6 +17,10 @@ export var useStyles = makeStyles(function (theme) { return ({
|
|
|
17
17
|
width: '100%',
|
|
18
18
|
marginBottom: '10px'
|
|
19
19
|
},
|
|
20
|
+
imagesWrapper: {
|
|
21
|
+
paddingBottom: '10px',
|
|
22
|
+
width: '100%'
|
|
23
|
+
},
|
|
20
24
|
link: {
|
|
21
25
|
display: 'flex',
|
|
22
26
|
marginTop: 4
|
|
@@ -41,5 +45,8 @@ export var useStyles = makeStyles(function (theme) { return ({
|
|
|
41
45
|
titleWrapper: {
|
|
42
46
|
flex: 1,
|
|
43
47
|
paddingBottom: '3px'
|
|
48
|
+
},
|
|
49
|
+
errorWrapper: {
|
|
50
|
+
paddingBottom: '10px'
|
|
44
51
|
}
|
|
45
52
|
}); });
|
|
@@ -75,7 +75,7 @@ var ImageAttributesLine = function (_a) {
|
|
|
75
75
|
return (React.createElement("div", { className: styles.root },
|
|
76
76
|
React.createElement(ImageAttributesLineCommon, { attributeValues: attributeValues, attributeType: attributeType, renderImage: renderImage, overlay: true, countFixedItems: 1, onUpload: toggleVisibilityUploadDialog, onDeleteAttribute: handleDeleteAttribute, imageSize: imageSize, requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, paging: paging, parentUri: parentUri, showNonOv: showNonOv },
|
|
77
77
|
React.createElement("div", { className: styles.uploadContainer, onClick: toggleVisibilityUploadDialog },
|
|
78
|
-
React.createElement(SmallIconButton, { className: styles.uploadButton, iconClassName: styles.uploadIcon, icon: CloudUploadIcon }))),
|
|
78
|
+
React.createElement(SmallIconButton, { className: styles.uploadButton, iconClassName: styles.uploadIcon, icon: CloudUploadIcon, "data-reltio-id": "reltio-upload-image-button" }))),
|
|
79
79
|
React.createElement(UploadImageDialog, { open: isVisibleUploadDialog, onUpload: handleAddAttributes, onClose: toggleVisibilityUploadDialog })));
|
|
80
80
|
};
|
|
81
81
|
export default ImageAttributesLine;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1667",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@date-io/moment": "^1.3.5",
|
|
9
9
|
"@fluentui/react-context-selector": "^9.1.26",
|
|
10
10
|
"@react-google-maps/api": "2.7.0",
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1667",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|