contentoh-components-library 21.0.76 → 21.0.80
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 +28 -6
- package/dist/components/atoms/GeneralInput/styles.js +5 -2
- package/dist/components/atoms/ScreenHeader/styles.js +1 -1
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +1 -2
- package/dist/components/molecules/LoginPasswordStrength/index.js +2 -2
- package/dist/components/molecules/RegistrationSecondStep/index.js +0 -1
- package/dist/components/molecules/StatusAsignationInfo/index.js +3 -2
- package/dist/components/molecules/TagAndInput/index.js +15 -5
- package/dist/components/molecules/TagAndInput/styles.js +10 -2
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +1 -1
- package/dist/components/organisms/FullTabsMenu/index.js +4 -2
- package/dist/components/organisms/InputGroup/index.js +6 -3
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/pages/ProviderProductEdition/index.js +1 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +32 -39
- package/dist/components/pages/RetailerProductEdition/index.js +1 -0
- package/dist/components/pages/VerificationCodeResetPassword/index.js +1 -1
- package/dist/global-files/data.js +0 -1
- package/package.json +4 -4
- package/src/components/atoms/GeneralInput/index.js +26 -4
- package/src/components/atoms/GeneralInput/styles.js +25 -0
- package/src/components/atoms/ScreenHeader/styles.js +5 -0
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +0 -1
- package/src/components/molecules/LoginPasswordStrength/index.js +2 -2
- package/src/components/molecules/RegistrationSecondStep/index.js +0 -1
- package/src/components/molecules/StatusAsignationInfo/index.js +2 -1
- package/src/components/molecules/TagAndInput/index.js +8 -1
- package/src/components/molecules/TagAndInput/styles.js +28 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +9 -9
- package/src/components/organisms/FullTabsMenu/index.js +2 -0
- package/src/components/organisms/InputGroup/index.js +3 -0
- package/src/components/organisms/InputGroup/styles.js +2 -2
- package/src/components/pages/ProviderProductEdition/index.js +1 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +34 -39
- package/src/components/pages/RetailerProductEdition/index.js +1 -0
- package/src/components/pages/VerificationCodeResetPassword/index.js +1 -1
- package/src/global-files/data.js +0 -1
|
@@ -37,7 +37,9 @@ var GeneralInput = function GeneralInput(_ref) {
|
|
|
37
37
|
maxChar = _ref.maxChar,
|
|
38
38
|
isRequired = _ref.isRequired,
|
|
39
39
|
version = _ref.version,
|
|
40
|
-
|
|
40
|
+
_ref$optionList = _ref.optionList,
|
|
41
|
+
optionList = _ref$optionList === void 0 ? [] : _ref$optionList,
|
|
42
|
+
description = _ref.description;
|
|
41
43
|
|
|
42
44
|
var _useState = (0, _react.useState)({
|
|
43
45
|
value: inputValue
|
|
@@ -91,9 +93,27 @@ var GeneralInput = function GeneralInput(_ref) {
|
|
|
91
93
|
|
|
92
94
|
setRequiredEmpty(isRequired && (((_textValue$value = textValue.value) === null || _textValue$value === void 0 ? void 0 : _textValue$value.length) === 0 || textValue.value === undefined));
|
|
93
95
|
}, [textValue]);
|
|
94
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
96
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
95
97
|
isRequired: requiredEmpty,
|
|
96
|
-
children:
|
|
98
|
+
children: [(optionList === null || optionList === void 0 ? void 0 : optionList.length) > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("select", {
|
|
99
|
+
id: "dropdown".concat(inputId) //disabled={!enableInputs}
|
|
100
|
+
,
|
|
101
|
+
onChange: function onChange(e) {
|
|
102
|
+
return onHandleChange(e);
|
|
103
|
+
},
|
|
104
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
105
|
+
value: "",
|
|
106
|
+
selected: true,
|
|
107
|
+
disabled: true,
|
|
108
|
+
children: description
|
|
109
|
+
}), JSON.parse(optionList || "[]").map(function (element) {
|
|
110
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
111
|
+
value: element,
|
|
112
|
+
selected: element === textValue.value ? "selected" : "",
|
|
113
|
+
children: element
|
|
114
|
+
}, element);
|
|
115
|
+
})]
|
|
116
|
+
}, "dropdownK".concat(inputId)) : inputType === "checkbox" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBox.CheckBox, {
|
|
97
117
|
id: inputId,
|
|
98
118
|
onChange: function onChange(e) {
|
|
99
119
|
return onHandleChange(e);
|
|
@@ -109,8 +129,8 @@ var GeneralInput = function GeneralInput(_ref) {
|
|
|
109
129
|
onInput: function onInput(e) {
|
|
110
130
|
return onHandleChange(e);
|
|
111
131
|
},
|
|
112
|
-
|
|
113
|
-
|
|
132
|
+
maxLength: maxChar,
|
|
133
|
+
required: isRequired
|
|
114
134
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputFormatter.InputFormatter, {
|
|
115
135
|
name: inputName,
|
|
116
136
|
inputId: inputId,
|
|
@@ -122,7 +142,9 @@ var GeneralInput = function GeneralInput(_ref) {
|
|
|
122
142
|
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
123
143
|
maxChar: maxChar,
|
|
124
144
|
isRequired: isRequired
|
|
125
|
-
})
|
|
145
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
146
|
+
children: description
|
|
147
|
+
})]
|
|
126
148
|
});
|
|
127
149
|
};
|
|
128
150
|
|
|
@@ -15,12 +15,15 @@ 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: 100%;\n\n > div {\n label {\n &:before {\n outline: 1px solid ", ";\n }\n }\n }\n\n input,\n textarea {\n width: 100%;\n border: 1px solid\n ", ";\n\n font-family: ", ";\n color: ", ";\n font-weight: normal;\n font-size: 12px;\n line-height: 15px;\n padding: 10px;\n outline: none;\n border-radius: 2px;\n resize: none;\n\n &:focus {\n border: 1px solid ", ";\n }\n }\n"])), function (_ref) {
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n\n > div {\n label {\n &:before {\n outline: 1px solid ", ";\n }\n }\n }\n\n input,\n textarea {\n width: 100%;\n border: 1px solid\n ", ";\n\n font-family: ", ";\n color: ", ";\n font-weight: normal;\n font-size: 12px;\n line-height: 15px;\n padding: 10px;\n outline: none;\n border-radius: 2px;\n resize: none;\n\n &:focus {\n border: 1px solid ", ";\n }\n }\n\n select {\n background: #fafafa;\n outline: none;\n border: 1px solid\n ", ";\n width: 100%;\n cursor: pointer;\n font-family: ", ";\n color: ", ";\n font-size: 12px;\n line-height: 21px;\n padding: 10px;\n border-right: 2px solid #e33aa9;\n\n &:focus {\n border: 1px solid ", ";\n }\n }\n\n p {\n font-family: ", ";\n font-size: 11px;\n color: ", ";\n }\n"])), function (_ref) {
|
|
19
19
|
var isRequired = _ref.isRequired;
|
|
20
20
|
return isRequired ? "red" : "none";
|
|
21
21
|
}, function (_ref2) {
|
|
22
22
|
var isRequired = _ref2.isRequired;
|
|
23
23
|
return isRequired ? "red" : "".concat(_variables.GlobalColors.s2);
|
|
24
|
-
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2)
|
|
24
|
+
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2, function (_ref3) {
|
|
25
|
+
var isRequired = _ref3.isRequired;
|
|
26
|
+
return isRequired ? "red" : "".concat(_variables.GlobalColors.s2);
|
|
27
|
+
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2, _variables.FontFamily.Raleway, _variables.GlobalColors.s4);
|
|
25
28
|
|
|
26
29
|
exports.Container = Container;
|
|
@@ -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 &: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) {
|
|
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 position: relative;\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 height: 19px;\n max-width: 100%;\n font-weight: 400;\n color: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\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;
|
|
@@ -37,8 +37,7 @@ var VerticalSideMenuMainPage = function VerticalSideMenuMainPage() {
|
|
|
37
37
|
trueBar = _useState2[0],
|
|
38
38
|
setTrueBar = _useState2[1];
|
|
39
39
|
|
|
40
|
-
var active = function active() {
|
|
41
|
-
console.log(window.location.href); //document.getElementById("slidea1").style.border= "1px solid rgb(227, 58, 169)";
|
|
40
|
+
var active = function active() {//document.getElementById("slidea1").style.border= "1px solid rgb(227, 58, 169)";
|
|
42
41
|
};
|
|
43
42
|
|
|
44
43
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
@@ -73,7 +73,7 @@ var LoginPasswordStrength = function LoginPasswordStrength(_ref) {
|
|
|
73
73
|
inputType: "password",
|
|
74
74
|
inputId: "newPasswordInput",
|
|
75
75
|
label: "Ingrese su nueva contraseña",
|
|
76
|
-
|
|
76
|
+
isRequired: required
|
|
77
77
|
}), emptyPassword && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
78
78
|
children: "La contrase\xF1a debe ser minimo de 8 caracteres"
|
|
79
79
|
})]
|
|
@@ -118,7 +118,7 @@ var LoginPasswordStrength = function LoginPasswordStrength(_ref) {
|
|
|
118
118
|
inputType: "password",
|
|
119
119
|
inputId: "confirmPasswordInput",
|
|
120
120
|
label: "Confirme la nueva contraseña",
|
|
121
|
-
|
|
121
|
+
isRequired: required
|
|
122
122
|
}), emptyConfirmPassword && !emptyPassword && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
123
123
|
children: "Confirme la contrase\xF1a"
|
|
124
124
|
}), !emptyConfirmPassword && !emptyPassword && !matchPasswords && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
@@ -62,7 +62,6 @@ var RegistrationSecondStep = function RegistrationSecondStep(props) {
|
|
|
62
62
|
!privacyCheck && (valid = false);
|
|
63
63
|
|
|
64
64
|
if (valid) {
|
|
65
|
-
console.log(valid);
|
|
66
65
|
nuevoUsuario.password = password;
|
|
67
66
|
sessionStorage.setItem("nuevoRegistro", JSON.stringify(nuevoUsuario));
|
|
68
67
|
valid && props.setPaso(3);
|
|
@@ -43,7 +43,8 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
43
43
|
askToDeleteImages = _ref.askToDeleteImages,
|
|
44
44
|
_ref$id = _ref.id,
|
|
45
45
|
id = _ref$id === void 0 ? "default-id" : _ref$id,
|
|
46
|
-
onClickSave = _ref.onClickSave
|
|
46
|
+
onClickSave = _ref.onClickSave,
|
|
47
|
+
showSaveButton = _ref.showSaveButton;
|
|
47
48
|
|
|
48
49
|
var _useState = (0, _react.useState)(false),
|
|
49
50
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -74,7 +75,7 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
74
75
|
}, [showAsignationPanel]);
|
|
75
76
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
76
77
|
id: id,
|
|
77
|
-
children: [
|
|
78
|
+
children: [showSaveButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
78
79
|
buttonType: "circular-button save-button",
|
|
79
80
|
onClick: onClickSave
|
|
80
81
|
}), imagesSection && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -31,13 +31,21 @@ var TagAndInput = function TagAndInput(_ref) {
|
|
|
31
31
|
inputCols = _ref.inputCols,
|
|
32
32
|
inputRows = _ref.inputRows,
|
|
33
33
|
maxChar = _ref.maxChar,
|
|
34
|
-
required = _ref.required
|
|
34
|
+
required = _ref.required,
|
|
35
|
+
optionList = _ref.optionList,
|
|
36
|
+
description = _ref.description;
|
|
35
37
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
36
38
|
inputType: inputType,
|
|
37
39
|
className: "input-container",
|
|
38
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
41
|
+
className: "title-container",
|
|
42
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
43
|
+
text: label,
|
|
44
|
+
headerType: "input-name-header"
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
46
|
+
className: "tooltip",
|
|
47
|
+
children: label
|
|
48
|
+
})]
|
|
41
49
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.GeneralInput, {
|
|
42
50
|
inputId: inputId,
|
|
43
51
|
inputType: inputType,
|
|
@@ -55,7 +63,9 @@ var TagAndInput = function TagAndInput(_ref) {
|
|
|
55
63
|
inputCols: inputCols,
|
|
56
64
|
inputRows: inputRows,
|
|
57
65
|
maxChar: maxChar,
|
|
58
|
-
required: required
|
|
66
|
+
required: required,
|
|
67
|
+
optionList: optionList,
|
|
68
|
+
description: description
|
|
59
69
|
})]
|
|
60
70
|
}, "generalTagInput-".concat(inputType));
|
|
61
71
|
};
|
|
@@ -11,11 +11,19 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
13
|
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
14
16
|
var _templateObject;
|
|
15
17
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n & > :first-child {\n & + * {\n margin-top: ", "px;\n }\n }\n"])), function (_ref) {
|
|
17
|
-
var
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .title-container {\n position: relative;\n\n .tooltip {\n display: none;\n position: absolute;\n background-color: ", ";\n color: ", ";\n font-family: ", ";\n font-size: 14px;\n line-height: 19px;\n left: 0;\n top: 0;\n height: fit-content;\n transition: display 2s;\n }\n\n &:hover {\n .tooltip {\n display: block;\n }\n }\n }\n\n & > :first-child {\n & + * {\n margin-top: ", "px;\n }\n }\n & + * {\n margin-top: ", "px;\n }\n"])), _variables.GlobalColors.white, function (_ref) {
|
|
19
|
+
var color = _ref.color;
|
|
20
|
+
return color ? color : _variables.GlobalColors.s5;
|
|
21
|
+
}, _variables.FontFamily.Raleway, function (_ref2) {
|
|
22
|
+
var inputType = _ref2.inputType;
|
|
18
23
|
return inputType !== "textarea" ? 4 : 15;
|
|
24
|
+
}, function (_ref3) {
|
|
25
|
+
var inputType = _ref3.inputType;
|
|
26
|
+
return inputType !== "textarea" ? 0 : 10;
|
|
19
27
|
});
|
|
20
28
|
|
|
21
29
|
exports.Container = Container;
|
|
@@ -148,7 +148,7 @@ var VerificationCodeResetPasswordLogin = function VerificationCodeResetPasswordL
|
|
|
148
148
|
validateInput: _utils.validateInput,
|
|
149
149
|
inputsArray: inputCodeVerificationAll,
|
|
150
150
|
position: position,
|
|
151
|
-
|
|
151
|
+
maxChar: 1
|
|
152
152
|
});
|
|
153
153
|
})
|
|
154
154
|
}), emptyVerificationCode && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
@@ -31,7 +31,8 @@ var FullTabsMenu = function FullTabsMenu(_ref) {
|
|
|
31
31
|
isRetailer = _ref.isRetailer,
|
|
32
32
|
downloadImages = _ref.downloadImages,
|
|
33
33
|
askToDeleteImages = _ref.askToDeleteImages,
|
|
34
|
-
onClickSave = _ref.onClickSave
|
|
34
|
+
onClickSave = _ref.onClickSave,
|
|
35
|
+
showSaveButton = _ref.showSaveButton;
|
|
35
36
|
|
|
36
37
|
var _useState = (0, _react.useState)(false),
|
|
37
38
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -53,7 +54,8 @@ var FullTabsMenu = function FullTabsMenu(_ref) {
|
|
|
53
54
|
isRetailer: isRetailer,
|
|
54
55
|
downloadImages: downloadImages,
|
|
55
56
|
onClickSave: onClickSave,
|
|
56
|
-
askToDeleteImages: askToDeleteImages
|
|
57
|
+
askToDeleteImages: askToDeleteImages,
|
|
58
|
+
showSaveButton: showSaveButton
|
|
57
59
|
})]
|
|
58
60
|
});
|
|
59
61
|
};
|
|
@@ -50,7 +50,7 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
50
50
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
51
51
|
className: "inputs-container",
|
|
52
52
|
children: inputGroup === null || inputGroup === void 0 ? void 0 : (_inputGroup$inputs = inputGroup.inputs) === null || _inputGroup$inputs === void 0 ? void 0 : _inputGroup$inputs.map(function (input, index) {
|
|
53
|
-
var _dataInputs$input, _dataInputs$input2, _dataInputs$input3, _dataInputs$input4, _dataInputs$input5, _dataInputs$input6, _dataInputs$input7, _dataInputs$input8, _dataInputs$input9, _dataInputs$input10;
|
|
53
|
+
var _dataInputs$input, _dataInputs$input2, _dataInputs$input3, _dataInputs$input4, _dataInputs$input5, _dataInputs$input6, _dataInputs$input7, _dataInputs$input8, _dataInputs$input9, _dataInputs$input10, _dataInputs$input11, _dataInputs$input12;
|
|
54
54
|
|
|
55
55
|
return activeSection === "Ficha técnica" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
56
56
|
inputId: (_dataInputs$input3 = dataInputs[input]) === null || _dataInputs$input3 === void 0 ? void 0 : _dataInputs$input3.id,
|
|
@@ -63,7 +63,9 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
63
63
|
isRequired: (_dataInputs$input8 = dataInputs[input]) === null || _dataInputs$input8 === void 0 ? void 0 : _dataInputs$input8.required,
|
|
64
64
|
updatedDatasheets: updatedDatasheets,
|
|
65
65
|
setUpdatedDatasheets: setUpdatedDatasheets,
|
|
66
|
-
maxChar: (_dataInputs$input9 = dataInputs[input]) !== null && _dataInputs$input9 !== void 0 && _dataInputs$input9.max_chars ? (_dataInputs$input10 = dataInputs[input]) === null || _dataInputs$input10 === void 0 ? void 0 : _dataInputs$input10.max_chars : 999
|
|
66
|
+
maxChar: (_dataInputs$input9 = dataInputs[input]) !== null && _dataInputs$input9 !== void 0 && _dataInputs$input9.max_chars ? (_dataInputs$input10 = dataInputs[input]) === null || _dataInputs$input10 === void 0 ? void 0 : _dataInputs$input10.max_chars : 999,
|
|
67
|
+
optionList: (_dataInputs$input11 = dataInputs[input]) === null || _dataInputs$input11 === void 0 ? void 0 : _dataInputs$input11.option_list,
|
|
68
|
+
description: (_dataInputs$input12 = dataInputs[input]) === null || _dataInputs$input12 === void 0 ? void 0 : _dataInputs$input12.description
|
|
67
69
|
}, index + "-" + ((_dataInputs$input = dataInputs[input]) === null || _dataInputs$input === void 0 ? void 0 : _dataInputs$input.value) + "-" + ((_dataInputs$input2 = dataInputs[input]) === null || _dataInputs$input2 === void 0 ? void 0 : _dataInputs$input2.id)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
68
70
|
inputId: input.id,
|
|
69
71
|
index: index,
|
|
@@ -77,7 +79,8 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
77
79
|
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
78
80
|
articleId: articleId,
|
|
79
81
|
version: version,
|
|
80
|
-
dinamicHeight: dinamicHeight
|
|
82
|
+
dinamicHeight: dinamicHeight,
|
|
83
|
+
description: input === null || input === void 0 ? void 0 : input.description
|
|
81
84
|
}, index + "-" + (input === null || input === void 0 ? void 0 : input.value));
|
|
82
85
|
})
|
|
83
86
|
})]
|
|
@@ -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 border: 1px solid ", ";\n border-radius: 6px;\n padding: 10px;\n width: 100%;\n\n .retailer-name-header {\n & + * {\n margin-top: 10px;\n }\n }\n &.datasheets-layout {\n padding-right: 0;\n\n .inputs-container {\n display: flex;\n flex-wrap: wrap;\n\n .input-container {\n flex: 1 1 20%;\n
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid ", ";\n border-radius: 6px;\n padding: 10px;\n width: 100%;\n\n .retailer-name-header {\n & + * {\n margin-top: 10px;\n }\n }\n &.datasheets-layout {\n padding-right: 0;\n\n .inputs-container {\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n gap: 5px;\n\n .input-container {\n flex: 1 1 20%;\n min-width: 227px;\n display: flex;\n flex-direction: column;\n }\n }\n }\n\n & + * {\n margin-top: 15px;\n }\n"])), _variables.GlobalColors.s2);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -1765,6 +1765,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1765
1765
|
assig: assig,
|
|
1766
1766
|
setAssignation: setAssignation,
|
|
1767
1767
|
isRetailer: isRetailer,
|
|
1768
|
+
showSaveButton: ["AP", "AC", "RC"].includes(product.version_status),
|
|
1768
1769
|
onClickSave: function onClickSave() {
|
|
1769
1770
|
switch (activeTab) {
|
|
1770
1771
|
case "Descripción":
|
|
@@ -36,53 +36,46 @@ RetailerProductEditionDefault.args = {
|
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
orderId: 152,
|
|
45
|
-
status: "ASSIGNED",
|
|
46
|
-
datasheet_status: "IN_PROGRESS",
|
|
39
|
+
orderId: 132,
|
|
40
|
+
id_category: "612",
|
|
41
|
+
status: "IN_PROGRESS",
|
|
42
|
+
datasheet_status: "QF",
|
|
47
43
|
prio: "none",
|
|
48
|
-
version:
|
|
44
|
+
version: 2,
|
|
49
45
|
description_status: "IN_PROGRESS",
|
|
50
46
|
images_status: "IN_PROGRESS",
|
|
47
|
+
brand: null,
|
|
48
|
+
missing: {
|
|
49
|
+
datasheet: 0,
|
|
50
|
+
descriptions: 0,
|
|
51
|
+
images: 0
|
|
52
|
+
},
|
|
51
53
|
article: {
|
|
52
|
-
|
|
53
|
-
id_category: "2898",
|
|
54
|
-
name: "Producto prueba dos ",
|
|
55
|
-
upc: "2004202212",
|
|
56
|
-
timestamp: "2022-04-20T17:01:17.000Z",
|
|
57
|
-
id_user: 28,
|
|
58
|
-
status: "NULL",
|
|
59
|
-
active: 1,
|
|
60
|
-
company_id: 1,
|
|
54
|
+
category: "ROPA, ACCESORIOS, FRAGANCIAS Y JOYERÍA|ACCESORIOS|COLLARES",
|
|
61
55
|
company_name: "COMPANY DEV",
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
id_description_facilitator: 52,
|
|
68
|
-
id_images_especialist: 55,
|
|
69
|
-
id_images_facilitator: 53,
|
|
70
|
-
id_auditor: 30,
|
|
71
|
-
id_recepcionist: null,
|
|
72
|
-
category: "HALLOWEN|DECORACIÓN E INFLABLES|DECORACIÓN E INFLABLES",
|
|
73
|
-
missingAttributes: null,
|
|
74
|
-
missingDescriptions: null,
|
|
75
|
-
missingImages: null
|
|
56
|
+
id_category: "612",
|
|
57
|
+
id_article: 109490,
|
|
58
|
+
name: "Collar con dije letra ",
|
|
59
|
+
timestamp: "2022-05-05T16:45:49.000Z",
|
|
60
|
+
upc: "123434"
|
|
76
61
|
},
|
|
77
62
|
retailers: [{
|
|
78
|
-
id:
|
|
79
|
-
name: "
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
63
|
+
id: 2,
|
|
64
|
+
name: "Walmart Mercancías Generales"
|
|
65
|
+
}],
|
|
66
|
+
services: {
|
|
67
|
+
datasheets: 1,
|
|
68
|
+
descriptions: 1,
|
|
69
|
+
images: 1
|
|
70
|
+
},
|
|
71
|
+
checked: false,
|
|
72
|
+
retailersAvailable: [{
|
|
73
|
+
id: 2,
|
|
74
|
+
name: "Walmart Mercancías Generales"
|
|
83
75
|
}],
|
|
84
|
-
|
|
85
|
-
|
|
76
|
+
id_article: 109490,
|
|
77
|
+
categoryName: "ROPA, ACCESORIOS, FRAGANCIAS Y JOYERÍA|ACCESORIOS|COLLARES",
|
|
78
|
+
version_status: "IN_PROGRESS"
|
|
86
79
|
},
|
|
87
80
|
location: {
|
|
88
81
|
product: {
|
|
@@ -1597,6 +1597,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1597
1597
|
assig: assig[activeTab],
|
|
1598
1598
|
setAssignation: setAssignation,
|
|
1599
1599
|
isRetailer: isRetailer,
|
|
1600
|
+
showSaveButton: true,
|
|
1600
1601
|
onClickSave: function onClickSave() {
|
|
1601
1602
|
var _product$services2, _product$services3, _product$services4;
|
|
1602
1603
|
|
|
@@ -73,7 +73,7 @@ var VerificationCodeResetPassword = function VerificationCodeResetPassword(_ref)
|
|
|
73
73
|
validateInput: _utils.validateInput,
|
|
74
74
|
inputsArray: inputCodeVerificationAll,
|
|
75
75
|
position: position,
|
|
76
|
-
|
|
76
|
+
maxChar: 1
|
|
77
77
|
});
|
|
78
78
|
})
|
|
79
79
|
}), emptyVerificationCode && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
@@ -271,7 +271,6 @@ var getNewStatus = function getNewStatus(statusArray) {
|
|
|
271
271
|
statusArray.forEach(function (element) {
|
|
272
272
|
return lookupString += element + "/";
|
|
273
273
|
});
|
|
274
|
-
console.log(lookupString, "productTemp");
|
|
275
274
|
if (lookupString.includes("RF")) return "RF";
|
|
276
275
|
if (lookupString.includes("RA")) return "RA";
|
|
277
276
|
if (lookupString.includes("RP")) return "RP";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.80",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@aws-amplify/auth": "^4.5.3",
|
|
6
6
|
"@aws-amplify/datastore": "^3.11.0",
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"@testing-library/jest-dom": "^5.11.4",
|
|
11
11
|
"@testing-library/react": "^11.1.0",
|
|
12
12
|
"@testing-library/user-event": "^12.1.10",
|
|
13
|
+
"aws-amplify": "^4.3.21",
|
|
13
14
|
"aws-sdk": "^2.1088.0",
|
|
14
15
|
"axios": "^0.25.0",
|
|
15
16
|
"babel-preset-react-app": "^10.0.1",
|
|
16
17
|
"chart.js": "^3.7.1",
|
|
18
|
+
"contentoh-components-library": "^21.0.18",
|
|
17
19
|
"draft-js": "^0.11.7",
|
|
18
20
|
"file-saver": "^2.0.5",
|
|
19
|
-
"contentoh-components-library": "^21.0.18",
|
|
20
|
-
"aws-amplify": "^4.3.21",
|
|
21
21
|
"js-base64": "^3.7.2",
|
|
22
22
|
"prop-types": "^15.7.2",
|
|
23
23
|
"react": "^17.0.2",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"react-dropzone": "^12.0.4",
|
|
28
28
|
"react-image-fallback": "^8.0.0",
|
|
29
29
|
"react-quill": "^1.3.5",
|
|
30
|
-
"react-router-dom": "^5.
|
|
30
|
+
"react-router-dom": "^5.3.3",
|
|
31
31
|
"styled-components": "^5.3.3",
|
|
32
32
|
"uuid": "^8.3.2",
|
|
33
33
|
"web-vitals": "^1.0.1"
|
|
@@ -21,7 +21,8 @@ export const GeneralInput = ({
|
|
|
21
21
|
maxChar,
|
|
22
22
|
isRequired,
|
|
23
23
|
version,
|
|
24
|
-
|
|
24
|
+
optionList = [],
|
|
25
|
+
description,
|
|
25
26
|
}) => {
|
|
26
27
|
const [textValue, setTextValue] = useState({
|
|
27
28
|
value: inputValue,
|
|
@@ -73,7 +74,27 @@ export const GeneralInput = ({
|
|
|
73
74
|
|
|
74
75
|
return (
|
|
75
76
|
<Container isRequired={requiredEmpty}>
|
|
76
|
-
{
|
|
77
|
+
{optionList?.length > 0 ? (
|
|
78
|
+
<select
|
|
79
|
+
key={`dropdownK${inputId}`}
|
|
80
|
+
id={`dropdown${inputId}`}
|
|
81
|
+
//disabled={!enableInputs}
|
|
82
|
+
onChange={(e) => onHandleChange(e)}
|
|
83
|
+
>
|
|
84
|
+
<option value="" selected disabled>
|
|
85
|
+
{description}
|
|
86
|
+
</option>
|
|
87
|
+
{JSON.parse(optionList || "[]").map((element) => (
|
|
88
|
+
<option
|
|
89
|
+
key={element}
|
|
90
|
+
value={element}
|
|
91
|
+
selected={element === textValue.value ? "selected" : ""}
|
|
92
|
+
>
|
|
93
|
+
{element}
|
|
94
|
+
</option>
|
|
95
|
+
))}
|
|
96
|
+
</select>
|
|
97
|
+
) : inputType === "checkbox" ? (
|
|
77
98
|
<CheckBox
|
|
78
99
|
id={inputId}
|
|
79
100
|
onChange={(e) => onHandleChange(e)}
|
|
@@ -88,8 +109,8 @@ export const GeneralInput = ({
|
|
|
88
109
|
placeholder={inputPlaceholder}
|
|
89
110
|
value={textValue.value}
|
|
90
111
|
onInput={(e) => onHandleChange(e)}
|
|
91
|
-
|
|
92
|
-
|
|
112
|
+
maxLength={maxChar}
|
|
113
|
+
required={isRequired}
|
|
93
114
|
/>
|
|
94
115
|
) : (
|
|
95
116
|
<InputFormatter
|
|
@@ -105,6 +126,7 @@ export const GeneralInput = ({
|
|
|
105
126
|
isRequired={isRequired}
|
|
106
127
|
/>
|
|
107
128
|
)}
|
|
129
|
+
<p>{description}</p>
|
|
108
130
|
</Container>
|
|
109
131
|
);
|
|
110
132
|
};
|
|
@@ -32,4 +32,29 @@ export const Container = styled.div`
|
|
|
32
32
|
border: 1px solid ${GlobalColors.magenta_s2};
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
+
|
|
36
|
+
select {
|
|
37
|
+
background: #fafafa;
|
|
38
|
+
outline: none;
|
|
39
|
+
border: 1px solid
|
|
40
|
+
${({ isRequired }) => (isRequired ? "red" : `${GlobalColors.s2}`)};
|
|
41
|
+
width: 100%;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
font-family: ${FontFamily.AvenirNext};
|
|
44
|
+
color: ${GlobalColors.s4};
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
line-height: 21px;
|
|
47
|
+
padding: 10px;
|
|
48
|
+
border-right: 2px solid #e33aa9;
|
|
49
|
+
|
|
50
|
+
&:focus {
|
|
51
|
+
border: 1px solid ${GlobalColors.magenta_s2};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
p {
|
|
56
|
+
font-family: ${FontFamily.Raleway};
|
|
57
|
+
font-size: 11px;
|
|
58
|
+
color: ${GlobalColors.s4};
|
|
59
|
+
}
|
|
35
60
|
`;
|
|
@@ -9,6 +9,7 @@ export const Container = styled.h2`
|
|
|
9
9
|
line-height: 42px;
|
|
10
10
|
font-feature-settings: "pnum" on, "lnum" on;
|
|
11
11
|
color: ${(props) => props.color};
|
|
12
|
+
position: relative;
|
|
12
13
|
|
|
13
14
|
&.with-bold-text {
|
|
14
15
|
span {
|
|
@@ -34,8 +35,12 @@ export const Container = styled.h2`
|
|
|
34
35
|
&.input-name-header {
|
|
35
36
|
font-size: 14px;
|
|
36
37
|
line-height: 19px;
|
|
38
|
+
height: 19px;
|
|
39
|
+
max-width: 100%;
|
|
37
40
|
font-weight: 400;
|
|
38
41
|
color: ${({ color }) => (color ? color : GlobalColors.s5)};
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
text-overflow: ellipsis;
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
&.date-header {
|
|
@@ -11,7 +11,6 @@ import React, { useState, useEffect, useCallback } from "react";
|
|
|
11
11
|
export const VerticalSideMenuMainPage = () => {
|
|
12
12
|
const [trueBar, setTrueBar] = useState(false);
|
|
13
13
|
const active = () => {
|
|
14
|
-
console.log(window.location.href);
|
|
15
14
|
//document.getElementById("slidea1").style.border= "1px solid rgb(227, 58, 169)";
|
|
16
15
|
};
|
|
17
16
|
return (
|
|
@@ -51,7 +51,7 @@ export const LoginPasswordStrength = ({
|
|
|
51
51
|
inputType={"password"}
|
|
52
52
|
inputId={"newPasswordInput"}
|
|
53
53
|
label={"Ingrese su nueva contraseña"}
|
|
54
|
-
|
|
54
|
+
isRequired={required}
|
|
55
55
|
/>
|
|
56
56
|
{emptyPassword && (
|
|
57
57
|
<label>La contraseña debe ser minimo de 8 caracteres</label>
|
|
@@ -80,7 +80,7 @@ export const LoginPasswordStrength = ({
|
|
|
80
80
|
inputType={"password"}
|
|
81
81
|
inputId={"confirmPasswordInput"}
|
|
82
82
|
label={"Confirme la nueva contraseña"}
|
|
83
|
-
|
|
83
|
+
isRequired={required}
|
|
84
84
|
/>
|
|
85
85
|
{emptyConfirmPassword && !emptyPassword && (
|
|
86
86
|
<label>Confirme la contraseña</label>
|
|
@@ -21,7 +21,6 @@ export const RegistrationSecondStep = (props) => {
|
|
|
21
21
|
!termsCheck && (valid = false);
|
|
22
22
|
!privacyCheck && (valid = false);
|
|
23
23
|
if (valid) {
|
|
24
|
-
console.log(valid)
|
|
25
24
|
nuevoUsuario.password = password;
|
|
26
25
|
sessionStorage.setItem("nuevoRegistro", JSON.stringify(nuevoUsuario));
|
|
27
26
|
valid && props.setPaso(3);
|
|
@@ -19,6 +19,7 @@ export const StatusAsignationInfo = ({
|
|
|
19
19
|
askToDeleteImages,
|
|
20
20
|
id = "default-id",
|
|
21
21
|
onClickSave,
|
|
22
|
+
showSaveButton,
|
|
22
23
|
}) => {
|
|
23
24
|
const [showAsignationPanel, setShowAsignationPanel] = useState(false);
|
|
24
25
|
const [layout, setLayout] = useState(false);
|
|
@@ -39,7 +40,7 @@ export const StatusAsignationInfo = ({
|
|
|
39
40
|
|
|
40
41
|
return (
|
|
41
42
|
<Container id={id}>
|
|
42
|
-
{
|
|
43
|
+
{showSaveButton && (
|
|
43
44
|
<Button
|
|
44
45
|
buttonType={"circular-button save-button"}
|
|
45
46
|
onClick={onClickSave}
|
|
@@ -21,6 +21,8 @@ export const TagAndInput = ({
|
|
|
21
21
|
inputRows,
|
|
22
22
|
maxChar,
|
|
23
23
|
required,
|
|
24
|
+
optionList,
|
|
25
|
+
description,
|
|
24
26
|
}) => {
|
|
25
27
|
return (
|
|
26
28
|
<Container
|
|
@@ -28,7 +30,10 @@ export const TagAndInput = ({
|
|
|
28
30
|
className={"input-container"}
|
|
29
31
|
key={`generalTagInput-${inputType}`}
|
|
30
32
|
>
|
|
31
|
-
<
|
|
33
|
+
<div className="title-container">
|
|
34
|
+
<ScreenHeader text={label} headerType={"input-name-header"} />
|
|
35
|
+
<span className="tooltip">{label}</span>
|
|
36
|
+
</div>
|
|
32
37
|
<GeneralInput
|
|
33
38
|
inputId={inputId}
|
|
34
39
|
inputType={inputType}
|
|
@@ -47,6 +52,8 @@ export const TagAndInput = ({
|
|
|
47
52
|
inputRows={inputRows}
|
|
48
53
|
maxChar={maxChar}
|
|
49
54
|
required={required}
|
|
55
|
+
optionList={optionList}
|
|
56
|
+
description={description}
|
|
50
57
|
/>
|
|
51
58
|
</Container>
|
|
52
59
|
);
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
+
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
2
3
|
|
|
3
4
|
export const Container = styled.div`
|
|
5
|
+
.title-container {
|
|
6
|
+
position: relative;
|
|
7
|
+
|
|
8
|
+
.tooltip {
|
|
9
|
+
display: none;
|
|
10
|
+
position: absolute;
|
|
11
|
+
background-color: ${GlobalColors.white};
|
|
12
|
+
color: ${({ color }) => (color ? color : GlobalColors.s5)};
|
|
13
|
+
font-family: ${FontFamily.Raleway};
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
line-height: 19px;
|
|
16
|
+
left: 0;
|
|
17
|
+
top: 0;
|
|
18
|
+
height: fit-content;
|
|
19
|
+
transition: display 2s;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
.tooltip {
|
|
24
|
+
display: block;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
4
29
|
& > :first-child {
|
|
5
30
|
& + * {
|
|
6
31
|
margin-top: ${({ inputType }) => (inputType !== "textarea" ? 4 : 15)}px;
|
|
7
32
|
}
|
|
8
33
|
}
|
|
34
|
+
& + * {
|
|
35
|
+
margin-top: ${({ inputType }) => (inputType !== "textarea" ? 0 : 10)}px;
|
|
36
|
+
}
|
|
9
37
|
`;
|
|
@@ -38,11 +38,11 @@ export const VerificationCodeResetPasswordLogin = (props) => {
|
|
|
38
38
|
}
|
|
39
39
|
sessionStorage.setItem("confirmationCode", JSON.stringify(code));
|
|
40
40
|
valid &&
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
!sessionStorage.getItem("resetPasswordProcess") &&
|
|
42
|
+
props.setPaso(6);
|
|
43
43
|
valid &&
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
sessionStorage.getItem("resetPasswordProcess") &&
|
|
45
|
+
props.setPaso(8);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
|
|
@@ -88,9 +88,9 @@ export const VerificationCodeResetPasswordLogin = (props) => {
|
|
|
88
88
|
)}
|
|
89
89
|
{!sessionStorage.getItem("email") && (
|
|
90
90
|
<ScreenHeader
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
text={`Ingrese código de verificación enviado a: ${
|
|
92
|
+
JSON.parse(sessionStorage.getItem("nuevoRegistro")).email
|
|
93
|
+
}`}
|
|
94
94
|
headerType={"input-name-header"}
|
|
95
95
|
/>
|
|
96
96
|
)}
|
|
@@ -103,7 +103,7 @@ export const VerificationCodeResetPasswordLogin = (props) => {
|
|
|
103
103
|
validateInput={validateInput}
|
|
104
104
|
inputsArray={inputCodeVerificationAll}
|
|
105
105
|
position={position}
|
|
106
|
-
|
|
106
|
+
maxChar={1}
|
|
107
107
|
/>
|
|
108
108
|
))}
|
|
109
109
|
</div>
|
|
@@ -156,7 +156,7 @@ export const VerificationCodeResetPasswordLogin = (props) => {
|
|
|
156
156
|
/>
|
|
157
157
|
</div>,
|
|
158
158
|
<div className="reset-password" key="6">
|
|
159
|
-
|
|
159
|
+
<p onClick={() => props.setPaso(10)}>Regresar...</p>
|
|
160
160
|
</div>,
|
|
161
161
|
];
|
|
162
162
|
return (
|
|
@@ -15,6 +15,7 @@ export const FullTabsMenu = ({
|
|
|
15
15
|
downloadImages,
|
|
16
16
|
askToDeleteImages,
|
|
17
17
|
onClickSave,
|
|
18
|
+
showSaveButton,
|
|
18
19
|
}) => {
|
|
19
20
|
const [imagesSection, setImagesSection] = useState(false);
|
|
20
21
|
|
|
@@ -36,6 +37,7 @@ export const FullTabsMenu = ({
|
|
|
36
37
|
downloadImages={downloadImages}
|
|
37
38
|
onClickSave={onClickSave}
|
|
38
39
|
askToDeleteImages={askToDeleteImages}
|
|
40
|
+
showSaveButton={showSaveButton}
|
|
39
41
|
/>
|
|
40
42
|
</Container>
|
|
41
43
|
);
|
|
@@ -67,6 +67,8 @@ export const InputGroup = ({
|
|
|
67
67
|
? dataInputs[input]?.max_chars
|
|
68
68
|
: 999
|
|
69
69
|
}
|
|
70
|
+
optionList={dataInputs[input]?.option_list}
|
|
71
|
+
description={dataInputs[input]?.description}
|
|
70
72
|
/>
|
|
71
73
|
) : (
|
|
72
74
|
<TagAndInput
|
|
@@ -84,6 +86,7 @@ export const InputGroup = ({
|
|
|
84
86
|
articleId={articleId}
|
|
85
87
|
version={version}
|
|
86
88
|
dinamicHeight={dinamicHeight}
|
|
89
|
+
description={input?.description}
|
|
87
90
|
/>
|
|
88
91
|
)
|
|
89
92
|
)}
|
|
@@ -18,14 +18,14 @@ export const Container = styled.div`
|
|
|
18
18
|
.inputs-container {
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-wrap: wrap;
|
|
21
|
+
width: 100%;
|
|
22
|
+
gap: 5px;
|
|
21
23
|
|
|
22
24
|
.input-container {
|
|
23
25
|
flex: 1 1 20%;
|
|
24
|
-
margin-right: 10px;
|
|
25
26
|
min-width: 227px;
|
|
26
27
|
display: flex;
|
|
27
28
|
flex-direction: column;
|
|
28
|
-
justify-content: space-between;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1234,6 +1234,7 @@ export const ProviderProductEdition = ({
|
|
|
1234
1234
|
assig={assig}
|
|
1235
1235
|
setAssignation={setAssignation}
|
|
1236
1236
|
isRetailer={isRetailer}
|
|
1237
|
+
showSaveButton={["AP", "AC", "RC"].includes(product.version_status)}
|
|
1237
1238
|
onClickSave={() => {
|
|
1238
1239
|
switch (activeTab) {
|
|
1239
1240
|
case "Descripción":
|
|
@@ -21,55 +21,50 @@ RetailerProductEditionDefault.args = {
|
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
orderId: 152,
|
|
30
|
-
status: "ASSIGNED",
|
|
31
|
-
datasheet_status: "IN_PROGRESS",
|
|
24
|
+
orderId: 132,
|
|
25
|
+
id_category: "612",
|
|
26
|
+
status: "IN_PROGRESS",
|
|
27
|
+
datasheet_status: "QF",
|
|
32
28
|
prio: "none",
|
|
33
|
-
version:
|
|
29
|
+
version: 2,
|
|
34
30
|
description_status: "IN_PROGRESS",
|
|
35
31
|
images_status: "IN_PROGRESS",
|
|
32
|
+
brand: null,
|
|
33
|
+
missing: {
|
|
34
|
+
datasheet: 0,
|
|
35
|
+
descriptions: 0,
|
|
36
|
+
images: 0,
|
|
37
|
+
},
|
|
36
38
|
article: {
|
|
37
|
-
|
|
38
|
-
id_category: "2898",
|
|
39
|
-
name: "Producto prueba dos ",
|
|
40
|
-
upc: "2004202212",
|
|
41
|
-
timestamp: "2022-04-20T17:01:17.000Z",
|
|
42
|
-
id_user: 28,
|
|
43
|
-
status: "NULL",
|
|
44
|
-
active: 1,
|
|
45
|
-
company_id: 1,
|
|
39
|
+
category: "ROPA, ACCESORIOS, FRAGANCIAS Y JOYERÍA|ACCESORIOS|COLLARES",
|
|
46
40
|
company_name: "COMPANY DEV",
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
id_description_facilitator: 52,
|
|
53
|
-
id_images_especialist: 55,
|
|
54
|
-
id_images_facilitator: 53,
|
|
55
|
-
id_auditor: 30,
|
|
56
|
-
id_recepcionist: null,
|
|
57
|
-
category: "HALLOWEN|DECORACIÓN E INFLABLES|DECORACIÓN E INFLABLES",
|
|
58
|
-
missingAttributes: null,
|
|
59
|
-
missingDescriptions: null,
|
|
60
|
-
missingImages: null,
|
|
41
|
+
id_category: "612",
|
|
42
|
+
id_article: 109490,
|
|
43
|
+
name: "Collar con dije letra ",
|
|
44
|
+
timestamp: "2022-05-05T16:45:49.000Z",
|
|
45
|
+
upc: "123434",
|
|
61
46
|
},
|
|
62
47
|
retailers: [
|
|
63
48
|
{
|
|
64
|
-
id:
|
|
65
|
-
name: "
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
49
|
+
id: 2,
|
|
50
|
+
name: "Walmart Mercancías Generales",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
services: {
|
|
54
|
+
datasheets: 1,
|
|
55
|
+
descriptions: 1,
|
|
56
|
+
images: 1,
|
|
57
|
+
},
|
|
58
|
+
checked: false,
|
|
59
|
+
retailersAvailable: [
|
|
60
|
+
{
|
|
61
|
+
id: 2,
|
|
62
|
+
name: "Walmart Mercancías Generales",
|
|
69
63
|
},
|
|
70
64
|
],
|
|
71
|
-
|
|
72
|
-
|
|
65
|
+
id_article: 109490,
|
|
66
|
+
categoryName: "ROPA, ACCESORIOS, FRAGANCIAS Y JOYERÍA|ACCESORIOS|COLLARES",
|
|
67
|
+
version_status: "IN_PROGRESS",
|
|
73
68
|
},
|
|
74
69
|
location: {
|
|
75
70
|
product: { articleId: 109485, versionId: 3 },
|
package/src/global-files/data.js
CHANGED
|
@@ -183,7 +183,6 @@ export const fetchUsers = async (auth) => {
|
|
|
183
183
|
export const getNewStatus = (statusArray) => {
|
|
184
184
|
let lookupString = "";
|
|
185
185
|
statusArray.forEach((element) => (lookupString += element + "/"));
|
|
186
|
-
console.log(lookupString, "productTemp");
|
|
187
186
|
if (lookupString.includes("RF")) return "RF";
|
|
188
187
|
if (lookupString.includes("RA")) return "RA";
|
|
189
188
|
if (lookupString.includes("RP")) return "RP";
|