contentoh-components-library 20.0.0 → 21.0.2
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/dist/components/atoms/GeneralInput/index.js +1 -1
- package/dist/components/atoms/GenericModal/styles.js +1 -1
- package/dist/components/atoms/InputFormatter/index.js +3 -2
- package/dist/components/atoms/LabelToInput/index.js +0 -1
- package/dist/components/atoms/LabelToInput/style.js +1 -1
- package/dist/components/atoms/Loading/index.js +26 -0
- package/dist/components/atoms/Loading/styles.js +22 -0
- package/dist/components/atoms/ScreenHeader/index.js +1 -1
- package/dist/components/atoms/ScreenHeader/styles.js +1 -1
- package/dist/components/atoms/StatusTag/index.js +37 -2
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/molecules/StatusAsignationInfo/index.js +1 -1
- package/dist/components/molecules/TableHeader/index.js +1 -1
- package/dist/components/molecules/TableHeader/styles.js +1 -1
- package/dist/components/organisms/ImageDataTable/index.js +10 -10
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +11 -1
- package/dist/components/pages/RetailerProductEdition/index.js +129 -122
- package/package.json +1 -1
- package/src/components/atoms/GeneralInput/index.js +2 -2
- package/src/components/atoms/GenericModal/styles.js +4 -0
- package/src/components/atoms/InputFormatter/index.js +5 -3
- package/src/components/atoms/LabelToInput/index.js +0 -1
- package/src/components/atoms/LabelToInput/style.js +5 -2
- package/src/components/atoms/Loading/index.js +12 -0
- package/src/components/atoms/Loading/styles.js +57 -0
- package/src/components/atoms/ScreenHeader/index.js +7 -3
- package/src/components/atoms/ScreenHeader/styles.js +9 -2
- package/src/components/atoms/StatusTag/index.js +30 -2
- package/src/components/atoms/StatusTag/styles.js +2 -1
- package/src/components/molecules/StatusAsignationInfo/index.js +1 -1
- package/src/components/molecules/TableHeader/index.js +1 -1
- package/src/components/molecules/TableHeader/styles.js +5 -0
- package/src/components/organisms/ImageDataTable/index.js +18 -7
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +11 -1
- package/src/components/pages/RetailerProductEdition/index.js +97 -92
|
@@ -91,7 +91,7 @@ var GeneralInput = function GeneralInput(_ref) {
|
|
|
91
91
|
updatedDescriptions: updatedDatasheets,
|
|
92
92
|
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
93
93
|
inputValue: inputValue === null || inputValue === void 0 ? void 0 : inputValue.replace(/<br>/gm, "<p><br></p>"),
|
|
94
|
-
isRequired: isRequired
|
|
94
|
+
isRequired: isRequired
|
|
95
95
|
})
|
|
96
96
|
});
|
|
97
97
|
};
|
|
@@ -17,6 +17,6 @@ var _genericModalClose = _interopRequireDefault(require("../../../assets/images/
|
|
|
17
17
|
|
|
18
18
|
var _templateObject;
|
|
19
19
|
|
|
20
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n background-color: rgba(59, 59, 59, 0.53);\n backdrop-filter: blur(4px);\n top: 0;\n left: 0;\n z-index: 100;\n\n .global-styles {\n background-color: ", ";\n height: auto;\n width: auto;\n position: relative;\n border-radius: 15px;\n padding: 40px;\n text-align: center;\n .close-button {\n background-image: url(", ");\n background-color: transparent;\n width: 14px;\n height: 14px;\n cursor: pointer;\n border: none;\n position: absolute;\n right: 20px;\n top: 20px;\n }\n .general-white-button {\n width: 160px;\n height: 40px;\n color: ", ";\n border: 1px solid ", ";\n background-color: transparent;\n & + * {\n margin-left: 45px;\n height: 40px;\n width: 161px;\n }\n }\n\n &.log-out {\n padding-bottom: 60px;\n img {\n & + * {\n margin-top: 20px;\n }\n }\n .with-bold-text {\n font-size: 24px;\n & + * {\n margin-top: 20px;\n }\n }\n }\n\n &.delete-product {\n img {\n height: 50px;\n width: 56px;\n & + * {\n margin-top: 30px;\n }\n }\n .product-name-header,\n .retailer-name-header {\n & + * {\n margin-top: 30px;\n }\n }\n }\n\n &.product-edition {\n padding-top: 50px;\n .product-name-header {\n & + * {\n margin-top: 25px;\n }\n }\n }\n\n &.send-invitation {\n width: 604px;\n img {\n & + * {\n margin-top: 40px;\n }\n }\n p {\n font-family: ", ";\n font-style: normal;\n font-size: 24px;\n color: ", ";\n line-height: 28px;\n span {\n font-family: ", ";\n }\n }\n }\n\n &.upload-image {\n width: 430px;\n padding: 50px;\n img {\n & + * {\n margin-top: 33px;\n }\n }\n .input-name-header {\n & + * {\n margin-top: 20px;\n }\n }\n .list-container {\n & + .general-button-default {\n margin-top: 40px;\n }\n }\n }\n }\n"])), _variables.GlobalColors.white, _variables.GlobalColors.deep_gray, _genericModalClose.default, _variables.GlobalColors.s2, _variables.GlobalColors.white, _variables.FontFamily.Raleway_500, _variables.GlobalColors.white, _variables.FontFamily.Raleway_700);
|
|
20
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n background-color: rgba(59, 59, 59, 0.53);\n backdrop-filter: blur(4px);\n top: 0;\n left: 0;\n z-index: 100;\n\n h2 {\n overflow: initial;\n }\n\n .global-styles {\n background-color: ", ";\n height: auto;\n width: auto;\n position: relative;\n border-radius: 15px;\n padding: 40px;\n text-align: center;\n .close-button {\n background-image: url(", ");\n background-color: transparent;\n width: 14px;\n height: 14px;\n cursor: pointer;\n border: none;\n position: absolute;\n right: 20px;\n top: 20px;\n }\n .general-white-button {\n width: 160px;\n height: 40px;\n color: ", ";\n border: 1px solid ", ";\n background-color: transparent;\n & + * {\n margin-left: 45px;\n height: 40px;\n width: 161px;\n }\n }\n\n &.log-out {\n padding-bottom: 60px;\n img {\n & + * {\n margin-top: 20px;\n }\n }\n .with-bold-text {\n font-size: 24px;\n & + * {\n margin-top: 20px;\n }\n }\n }\n\n &.delete-product {\n img {\n height: 50px;\n width: 56px;\n & + * {\n margin-top: 30px;\n }\n }\n .product-name-header,\n .retailer-name-header {\n & + * {\n margin-top: 30px;\n }\n }\n }\n\n &.product-edition {\n padding-top: 50px;\n .product-name-header {\n & + * {\n margin-top: 25px;\n }\n }\n }\n\n &.send-invitation {\n width: 604px;\n img {\n & + * {\n margin-top: 40px;\n }\n }\n p {\n font-family: ", ";\n font-style: normal;\n font-size: 24px;\n color: ", ";\n line-height: 28px;\n span {\n font-family: ", ";\n }\n }\n }\n\n &.upload-image {\n width: 430px;\n padding: 50px;\n img {\n & + * {\n margin-top: 33px;\n }\n }\n .input-name-header {\n & + * {\n margin-top: 20px;\n }\n }\n .list-container {\n & + .general-button-default {\n margin-top: 40px;\n }\n }\n }\n }\n"])), _variables.GlobalColors.white, _variables.GlobalColors.deep_gray, _genericModalClose.default, _variables.GlobalColors.s2, _variables.GlobalColors.white, _variables.FontFamily.Raleway_500, _variables.GlobalColors.white, _variables.FontFamily.Raleway_700);
|
|
21
21
|
|
|
22
22
|
exports.Container = Container;
|
|
@@ -55,7 +55,7 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
55
55
|
setConvertedText(function (current) {
|
|
56
56
|
return current = value;
|
|
57
57
|
});
|
|
58
|
-
!id.includes("commentary") && addTextAreaToArray(value.replace(/<\/?p>/gm, ""), updatedDescriptions, setUpdatedDescriptions);
|
|
58
|
+
!id.includes("commentary") && addTextAreaToArray(value.trim().replace(/<\/?p>/gm, ""), updatedDescriptions, setUpdatedDescriptions);
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
function getSelectionText() {
|
|
@@ -83,11 +83,12 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
83
83
|
});
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
+
console.log(convertedText);
|
|
86
87
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
87
88
|
focus: focus,
|
|
88
89
|
selection: selection,
|
|
89
90
|
position: position,
|
|
90
|
-
isRequired: isRequired,
|
|
91
|
+
isRequired: isRequired && convertedText.replace(/<\/?p>/gm, "") === "<br>",
|
|
91
92
|
onClick: function onClick(e) {
|
|
92
93
|
getCursorPosition(e);
|
|
93
94
|
},
|
|
@@ -44,7 +44,6 @@ function LabelToInput(props) {
|
|
|
44
44
|
},
|
|
45
45
|
children: defaultValue
|
|
46
46
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Input.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
47
|
-
width: "100%",
|
|
48
47
|
onBlur: function onBlur() {
|
|
49
48
|
props.onBlur && props.onBlur();
|
|
50
49
|
setIsActive(false);
|
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n width: fit-content;\n height: 20px;\n
|
|
18
|
+
var MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n width: fit-content;\n height: 20px;\n box-sizing: border-box;\n border-radius: 2px;\n margin-left: auto;\n white-space: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n\n & > p {\n font-family: ", ";\n font-weight: 400;\n font-size: 11px;\n line-height: 19px;\n color: ", ";\n background-color: ", ";\n padding: 1px 3px;\n border-radius: 3px;\n min-width: 50px;\n height: 21px;\n text-align: center;\n }\n border: ", ";\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n }\n ::-webkit-scrollbar-track {\n background: #f1f1f1;\n }\n ::-webkit-scrollbar-thumb {\n background: #d4d1d7;\n border-radius: 3px;\n }\n"])), _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.s2, function (props) {
|
|
19
19
|
return props.error && "1px solid red";
|
|
20
20
|
});
|
|
21
21
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Loading = void 0;
|
|
7
|
+
|
|
8
|
+
var _styles = require("./styles");
|
|
9
|
+
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
|
|
12
|
+
var Loading = function Loading() {
|
|
13
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
14
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Loader, {
|
|
15
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
16
|
+
className: "first"
|
|
17
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
18
|
+
className: "second"
|
|
19
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20
|
+
className: "third"
|
|
21
|
+
})]
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
exports.Loading = Loading;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Loader = exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _templateObject, _templateObject2;
|
|
15
|
+
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n"])));
|
|
17
|
+
|
|
18
|
+
exports.Container = Container;
|
|
19
|
+
|
|
20
|
+
var Loader = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n span {\n display: inline-block;\n border-radius: 100%;\n margin: 35px 5px;\n opacity: 1;\n }\n .first {\n background-color: #ff75cf;\n }\n .second {\n background-color: #e33aa9;\n }\n .third {\n background-color: #b12d84;\n }\n span:nth-child(1) {\n width: 16px;\n height: 16px;\n animation: opacitychange 1s ease-in-out infinite;\n }\n span:nth-child(2) {\n width: 18px;\n height: 18px;\n\n animation: opacitychange 1s ease-in-out 0.33s infinite;\n }\n span:nth-child(3) {\n width: 20px;\n height: 20px;\n\n animation: opacitychange 1s ease-in-out 0.66s infinite;\n }\n @keyframes opacitychange {\n 0%,\n 100% {\n opacity: 0;\n }\n 60% {\n opacity: 1;\n }\n }\n"])));
|
|
21
|
+
|
|
22
|
+
exports.Loader = Loader;
|
|
@@ -24,7 +24,7 @@ var ScreenHeader = function ScreenHeader(_ref) {
|
|
|
24
24
|
className: headerType,
|
|
25
25
|
children: [text, " ", boldText && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
26
26
|
children: [" ", boldText]
|
|
27
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
27
|
+
}), Paragraph && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
28
28
|
children: Paragraph
|
|
29
29
|
})]
|
|
30
30
|
}, "title-".concat(text));
|
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.h2(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: ", ";\n font-style: normal;\n font-size: 36px;\n line-height: 42px;\n font-feature-settings: \"pnum\" on, \"lnum\" on;\n color: ", ";\n\n &.with-bold-text {\n span {\n font-family: ", ";\n }\n }\n\n &.product-name-header {\n font-size: 24px;\n line-height: 36px;\n font-weight: 500;\n letter-spacing: -0.015em;\n color: ", ";\n }\n\n &.retailer-name-header {\n font-size: 18px;\n font-weight: 400;\n line-height: 19px;\n color: ", ";\n }\n\n &.input-name-header {\n font-size: 14px;\n line-height: 19px;\n font-weight: 400;\n color: ", ";\n }\n\n &.date-header {\n font-family: ", ";\n color: ", ";\n font-size: 13px;\n font-weight: 400;\n line-height: 18px;\n }\n\n &.table-row-text {\n font-family: ", ";\n color: ", ";\n font-weight: 400;\n font-size: 11px;\n line-height: 18px;\n }\n\n &.gray-table-row {\n font-family: ", ";\n font-weight: 400;\n font-size: 11px;\n line-height: 19px;\n color: ", ";\n background-color: ", ";\n padding: 1px 3px;\n border-radius: 3px;\n }\n &.header-and-paragraph{\n font-family: ", ";\n font-size: 36px;\n color: ", ";\n p{\n font-family: ", ";\n font-size: 14px;\n color: ", ";\n letter-spacing: -0.015em;\n }\n }\n"])), function (props) {
|
|
18
|
+
var Container = _styledComponents.default.h2(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: ", ";\n font-style: normal;\n font-size: 36px;\n line-height: 42px;\n font-feature-settings: \"pnum\" on, \"lnum\" on;\n color: ", ";\n\n &.with-bold-text {\n span {\n font-family: ", ";\n }\n }\n\n &.product-name-header {\n font-size: 24px;\n line-height: 36px;\n font-weight: 500;\n letter-spacing: -0.015em;\n color: ", ";\n }\n\n &.retailer-name-header {\n font-size: 18px;\n font-weight: 400;\n line-height: 19px;\n color: ", ";\n }\n\n &.input-name-header {\n font-size: 14px;\n line-height: 19px;\n font-weight: 400;\n color: ", ";\n }\n\n &.date-header {\n font-family: ", ";\n color: ", ";\n font-size: 13px;\n font-weight: 400;\n line-height: 18px;\n }\n\n &.table-row-text {\n font-family: ", ";\n color: ", ";\n font-weight: 400;\n font-size: 11px;\n line-height: 18px;\n\n &:last-child {\n min-width: 50px;\n text-align: center;\n }\n }\n\n &.gray-table-row {\n font-family: ", ";\n font-weight: 400;\n font-size: 11px;\n line-height: 19px;\n color: ", ";\n background-color: ", ";\n padding: 1px 3px;\n border-radius: 3px;\n min-width: 50px;\n text-align: center;\n }\n &.header-and-paragraph {\n font-family: ", ";\n font-size: 36px;\n color: ", ";\n p {\n font-family: ", ";\n font-size: 14px;\n color: ", ";\n letter-spacing: -0.015em;\n }\n }\n"])), function (props) {
|
|
19
19
|
return props.fontFamily;
|
|
20
20
|
}, function (props) {
|
|
21
21
|
return props.color;
|
|
@@ -12,10 +12,45 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
var StatusTag = function StatusTag(_ref) {
|
|
13
13
|
var statusType = _ref.statusType,
|
|
14
14
|
ovalForm = _ref.ovalForm;
|
|
15
|
+
|
|
16
|
+
var getShortStatus = function getShortStatus(status) {
|
|
17
|
+
switch (status) {
|
|
18
|
+
case "COMPLETED":
|
|
19
|
+
return "C";
|
|
20
|
+
|
|
21
|
+
case "RECEPTION":
|
|
22
|
+
return "Pr";
|
|
23
|
+
|
|
24
|
+
case "NULL":
|
|
25
|
+
return "-";
|
|
26
|
+
|
|
27
|
+
case "RECEIVED":
|
|
28
|
+
return "Rc";
|
|
29
|
+
|
|
30
|
+
case "IN_PROGRESS":
|
|
31
|
+
return "P";
|
|
32
|
+
|
|
33
|
+
case "ASSIGNED":
|
|
34
|
+
return "As";
|
|
35
|
+
|
|
36
|
+
case "APPROVED":
|
|
37
|
+
return "Ap";
|
|
38
|
+
|
|
39
|
+
case "VALIDATING":
|
|
40
|
+
return "V";
|
|
41
|
+
|
|
42
|
+
case "PAID_OUT":
|
|
43
|
+
return "Po";
|
|
44
|
+
|
|
45
|
+
default:
|
|
46
|
+
return status;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
15
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
16
|
-
className: "status-".concat(statusType, " ").concat(ovalForm && "oval-form"),
|
|
51
|
+
className: "status-".concat(getShortStatus(statusType), " ").concat(ovalForm && "oval-form"),
|
|
17
52
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
18
|
-
children: statusType
|
|
53
|
+
children: getShortStatus(statusType)
|
|
19
54
|
})
|
|
20
55
|
});
|
|
21
56
|
};
|
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width:
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-As,\n &.status-P,\n &.status-IN_PROGRESS,\n &.status-QF {\n background-color: ", ";\n }\n\n &.status-Pr,\n &.status-Rr {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -152,7 +152,7 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
152
152
|
className: "no-asignations",
|
|
153
153
|
children: "Sin personas para asignar"
|
|
154
154
|
})
|
|
155
|
-
}), isRetailer ===
|
|
155
|
+
}), isRetailer === 1 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
156
156
|
className: "default-asignations-list",
|
|
157
157
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.AsignationOption, {
|
|
158
158
|
asignationType: "provider",
|
|
@@ -24,7 +24,7 @@ var TableHeader = function TableHeader(_ref) {
|
|
|
24
24
|
onClickSave = _ref.onClickSave;
|
|
25
25
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
26
26
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
27
|
-
text: activeImage === null || activeImage === void 0 ? void 0 : activeImage.name,
|
|
27
|
+
text: (activeImage === null || activeImage === void 0 ? void 0 : activeImage.name) || "-",
|
|
28
28
|
color: _variables.GlobalColors.s5,
|
|
29
29
|
headerType: "input-name-header"
|
|
30
30
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StatusAsignationInfo.StatusAsignationInfo, {
|
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n padding-bottom: 5px;\n border-bottom: 1px solid ", ";\n\n .status-asignation-info {\n display: flex;\n align-items: center;\n\n * + * {\n margin-left: 5px;\n }\n }\n\n & + * {\n margin-top: 4px;\n }\n"])), _variables.GlobalColors.s2);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n padding-bottom: 5px;\n border-bottom: 1px solid ", ";\n\n .input-name-header {\n overflow: auto;\n max-width: 40%;\n white-space: nowrap;\n }\n .status-asignation-info {\n display: flex;\n align-items: center;\n\n * + * {\n margin-left: 5px;\n }\n }\n\n & + * {\n margin-top: 4px;\n }\n"])), _variables.GlobalColors.s2);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -47,9 +47,9 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
47
47
|
text: "Tipo de toma"
|
|
48
48
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
49
49
|
headerType: "table-row-text gray-table-row",
|
|
50
|
-
text: lists === null || lists === void 0 ? void 0 : (_lists$inputs = lists.inputs) === null || _lists$inputs === void 0 ? void 0 : (_lists$inputs$find = _lists$inputs.find(function (f) {
|
|
50
|
+
text: (lists === null || lists === void 0 ? void 0 : (_lists$inputs = lists.inputs) === null || _lists$inputs === void 0 ? void 0 : (_lists$inputs$find = _lists$inputs.find(function (f) {
|
|
51
51
|
return f.id === +(activeImage === null || activeImage === void 0 ? void 0 : activeImage.image_id);
|
|
52
|
-
})) === null || _lists$inputs$find === void 0 ? void 0 : _lists$inputs$find.name
|
|
52
|
+
})) === null || _lists$inputs$find === void 0 ? void 0 : _lists$inputs$find.name) || "-"
|
|
53
53
|
})]
|
|
54
54
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
55
55
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
@@ -57,9 +57,9 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
57
57
|
text: "Tipo de empaque"
|
|
58
58
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
59
59
|
headerType: "table-row-text gray-table-row",
|
|
60
|
-
text: lists === null || lists === void 0 ? void 0 : (_lists$imagePackaging = lists.imagePackagingType) === null || _lists$imagePackaging === void 0 ? void 0 : (_lists$imagePackaging2 = _lists$imagePackaging.find(function (f) {
|
|
60
|
+
text: (lists === null || lists === void 0 ? void 0 : (_lists$imagePackaging = lists.imagePackagingType) === null || _lists$imagePackaging === void 0 ? void 0 : (_lists$imagePackaging2 = _lists$imagePackaging.find(function (f) {
|
|
61
61
|
return f.id === +(activeImage === null || activeImage === void 0 ? void 0 : activeImage.packing_type);
|
|
62
|
-
})) === null || _lists$imagePackaging2 === void 0 ? void 0 : _lists$imagePackaging2.name
|
|
62
|
+
})) === null || _lists$imagePackaging2 === void 0 ? void 0 : _lists$imagePackaging2.name) || "-"
|
|
63
63
|
})]
|
|
64
64
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
65
65
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
@@ -67,9 +67,9 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
67
67
|
text: "Tipo de imagen"
|
|
68
68
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
69
69
|
headerType: "table-row-text gray-table-row",
|
|
70
|
-
text: lists === null || lists === void 0 ? void 0 : (_lists$imageType = lists.imageType) === null || _lists$imageType === void 0 ? void 0 : (_lists$imageType$find = _lists$imageType.find(function (f) {
|
|
70
|
+
text: (lists === null || lists === void 0 ? void 0 : (_lists$imageType = lists.imageType) === null || _lists$imageType === void 0 ? void 0 : (_lists$imageType$find = _lists$imageType.find(function (f) {
|
|
71
71
|
return f.id === +(activeImage === null || activeImage === void 0 ? void 0 : activeImage.image_type);
|
|
72
|
-
})) === null || _lists$imageType$find === void 0 ? void 0 : _lists$imageType$find.name
|
|
72
|
+
})) === null || _lists$imageType$find === void 0 ? void 0 : _lists$imageType$find.name) || "-"
|
|
73
73
|
})]
|
|
74
74
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
75
75
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
@@ -77,7 +77,7 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
77
77
|
text: "Formato"
|
|
78
78
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
79
79
|
headerType: "table-row-text",
|
|
80
|
-
text: activeImage === null || activeImage === void 0 ? void 0 : activeImage.ext
|
|
80
|
+
text: (activeImage === null || activeImage === void 0 ? void 0 : activeImage.ext) || "-"
|
|
81
81
|
})]
|
|
82
82
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
83
83
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
@@ -85,13 +85,13 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
85
85
|
text: "Tama\xF1o de imagen"
|
|
86
86
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
87
87
|
headerType: "table-row-text",
|
|
88
|
-
text: "".concat(activeImage === null || activeImage === void 0 ? void 0 : activeImage.width, "x").concat(activeImage === null || activeImage === void 0 ? void 0 : activeImage.height, "px")
|
|
88
|
+
text: activeImage !== null && activeImage !== void 0 && activeImage.width && activeImage.height ? "".concat(activeImage === null || activeImage === void 0 ? void 0 : activeImage.width, "x").concat(activeImage === null || activeImage === void 0 ? void 0 : activeImage.height, "px") : "-"
|
|
89
89
|
})]
|
|
90
90
|
}), retailerSelected && (lists === null || lists === void 0 ? void 0 : lists.attrForImgs) && (lists === null || lists === void 0 ? void 0 : (_lists$attrForImgs$re = lists.attrForImgs[retailerSelected]) === null || _lists$attrForImgs$re === void 0 ? void 0 : _lists$attrForImgs$re.map(function (attr, index) {
|
|
91
91
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
92
92
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
93
93
|
headerType: "table-row-text",
|
|
94
|
-
text: attr === null || attr === void 0 ? void 0 : attr.name
|
|
94
|
+
text: (attr === null || attr === void 0 ? void 0 : attr.name) || "-"
|
|
95
95
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LabelToInput.default, {
|
|
96
96
|
width: "100px",
|
|
97
97
|
defaultValue: attr === null || attr === void 0 ? void 0 : attr.value,
|
|
@@ -100,7 +100,7 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
100
100
|
action: "changeAttrValue",
|
|
101
101
|
retailer: retailerSelected,
|
|
102
102
|
index: index,
|
|
103
|
-
value: e.target.value
|
|
103
|
+
value: e.target.value || "-"
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
})]
|
|
@@ -125,7 +125,17 @@ RetailerProductEditionDefault.args = {
|
|
|
125
125
|
active: 1
|
|
126
126
|
}],
|
|
127
127
|
country: "Colombia",
|
|
128
|
-
|
|
128
|
+
modal: false,
|
|
129
|
+
modalCadenas: false,
|
|
130
|
+
totalCadenas: false,
|
|
131
|
+
modalAsig1: false,
|
|
132
|
+
modalFD: false,
|
|
133
|
+
modalAsig2: false,
|
|
134
|
+
modalAsig3: false,
|
|
135
|
+
modalAsig4: false,
|
|
136
|
+
modalAsig5: false,
|
|
137
|
+
modalFI: false,
|
|
138
|
+
modalQA: false
|
|
129
139
|
},
|
|
130
140
|
user: {
|
|
131
141
|
id_user: 30,
|