contentoh-components-library 21.0.60 → 21.0.63
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/.env.development +18 -5
- package/.env.production +16 -3
- package/CHANGELOG.md +31 -33
- package/dist/assets/images/generalButton/downloadIcon.svg +3 -0
- package/dist/assets/images/modalsSVGs/attributesSent.svg +208 -0
- package/dist/assets/images/modalsSVGs/descriptionSent.svg +237 -0
- package/dist/assets/images/modalsSVGs/providerSent.svg +445 -0
- package/dist/assets/images/modalsSVGs/uploadingImages.svg +148 -0
- package/dist/components/atoms/AsignationOption/index.js +9 -5
- package/dist/components/atoms/AsignationOption/styles.js +1 -1
- package/dist/components/{molecules/SignInLogin/SignInLogin.stories.js → atoms/CharCounter/CharCounter.stories.js} +10 -7
- package/dist/components/atoms/CharCounter/index.js +22 -0
- package/dist/components/{molecules/LogoLoading → atoms/CharCounter}/styles.js +3 -1
- package/dist/components/atoms/CheckBox/index.js +4 -2
- package/dist/components/atoms/Commentary/Commentary.stories.js +1 -0
- package/dist/components/atoms/Commentary/index.js +23 -0
- package/dist/components/{organisms/ChangePassword → atoms/Commentary}/styles.js +6 -1
- package/dist/components/atoms/GeneralButton/index.js +5 -0
- package/dist/components/atoms/GeneralButton/styles.js +4 -2
- package/dist/components/atoms/GeneralInput/index.js +72 -25
- package/dist/components/atoms/GeneralInput/styles.js +7 -1
- package/dist/components/atoms/GenericModal/index.js +4 -2
- package/dist/components/atoms/GenericModal/styles.js +1 -1
- package/dist/components/atoms/GradientPanel/styles.js +1 -1
- package/dist/components/atoms/Input/index.js +26 -0
- package/dist/components/atoms/Input/style.js +26 -0
- package/dist/components/{organisms/ChangePassword/ChangePassword.stories.js → atoms/InputFormatter/Wysiwyg.stories.js} +9 -7
- package/dist/components/atoms/InputFormatter/index.js +184 -0
- package/dist/components/atoms/InputFormatter/styles.js +33 -0
- package/dist/components/atoms/LabelToInput/index.js +53 -0
- package/dist/components/atoms/LabelToInput/style.js +22 -0
- package/dist/components/atoms/Loading/index.js +0 -1
- package/dist/components/atoms/LogoImage/index.js +0 -1
- package/dist/components/atoms/Percent/Percent.stories.js +39 -0
- package/dist/components/atoms/Percent/index.js +39 -0
- package/dist/components/atoms/Percent/styles.js +20 -0
- package/dist/components/atoms/PriorityFlag/index.js +1 -1
- package/dist/components/atoms/ProductImage/styles.js +1 -1
- package/dist/components/atoms/ProgressBar/index.js +2 -2
- package/dist/components/atoms/ProgressBar/styles.js +3 -5
- package/dist/components/atoms/ScreenHeader/index.js +1 -1
- package/dist/components/atoms/ScreenHeader/styles.js +1 -1
- package/dist/components/atoms/Select/index.js +39 -0
- package/dist/components/atoms/Select/style.js +32 -0
- package/dist/components/atoms/StatusTag/index.js +37 -2
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/atoms/ValidationPanel/index.js +4 -3
- package/dist/components/molecules/AvatarAndValidation/index.js +17 -7
- package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +42 -40
- package/dist/components/molecules/FeaturesBar/index.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +80 -21
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/index.js +28 -6
- package/dist/components/molecules/GalleryHeader/styles.js +1 -1
- package/dist/components/molecules/ImageSelector/index.js +2 -4
- package/dist/components/molecules/LoginPasswordStrength/index.js +6 -6
- package/dist/components/molecules/LoginPasswordStrength/styles.js +1 -1
- package/dist/components/molecules/ProductNameHeader/index.js +1 -2
- package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +48 -0
- package/dist/components/molecules/RetailerSelector/index.js +74 -0
- package/dist/components/{atoms/MenuCommercialRetailers → molecules/RetailerSelector}/styles.js +1 -1
- package/dist/components/molecules/StatusAsignationInfo/index.js +46 -25
- package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
- package/dist/components/molecules/TableHeader/index.js +12 -5
- package/dist/components/molecules/TableHeader/styles.js +1 -1
- package/dist/components/molecules/TagAndInput/index.js +24 -2
- package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +31 -0
- package/dist/components/molecules/TextAndGradient/index.js +36 -0
- package/dist/components/molecules/TextAndGradient/styles.js +18 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +32 -8
- package/dist/components/organisms/FullTabsMenu/index.js +18 -5
- package/dist/components/organisms/ImageDataTable/index.js +90 -14
- package/dist/components/organisms/InputGroup/index.js +34 -13
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/organisms/ProductImageModal/index.js +15 -11
- package/dist/components/organisms/ProductImageModal/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +91 -347
- package/dist/components/pages/RetailerProductEdition/index.js +1608 -60
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +212 -53
- package/dist/global-files/global-styles.css +1 -0
- package/dist/global-files/variables.js +1 -0
- package/dist/index.js +30 -277
- package/package.json +12 -14
- package/src/assets/images/generalButton/downloadIcon.svg +3 -0
- package/src/assets/images/modalsSVGs/attributesSent.svg +208 -0
- package/src/assets/images/modalsSVGs/descriptionSent.svg +237 -0
- package/src/assets/images/modalsSVGs/providerSent.svg +445 -0
- package/src/assets/images/modalsSVGs/uploadingImages.svg +148 -0
- package/src/components/atoms/AsignationOption/index.js +7 -5
- package/src/components/atoms/AsignationOption/styles.js +9 -1
- package/src/components/atoms/CharCounter/CharCounter.stories.js +11 -0
- package/src/components/atoms/CharCounter/index.js +13 -0
- package/src/components/atoms/CharCounter/styles.js +10 -0
- package/src/components/atoms/CheckBox/index.js +8 -2
- package/src/components/atoms/Commentary/Commentary.stories.js +0 -0
- package/src/components/atoms/Commentary/index.js +9 -0
- package/src/components/atoms/Commentary/styles.js +16 -0
- package/src/components/atoms/GeneralButton/index.js +9 -2
- package/src/components/atoms/GeneralButton/styles.js +23 -0
- package/src/components/atoms/GeneralInput/index.js +71 -23
- package/src/components/atoms/GeneralInput/styles.js +11 -1
- package/src/components/atoms/GenericModal/index.js +2 -2
- package/src/components/atoms/GenericModal/styles.js +10 -2
- package/src/components/atoms/GradientPanel/styles.js +0 -1
- package/src/components/atoms/Input/index.js +15 -0
- package/src/components/atoms/Input/style.js +31 -0
- package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/InputFormatter/index.js +144 -0
- package/src/components/atoms/InputFormatter/styles.js +40 -0
- package/src/components/atoms/LabelToInput/index.js +26 -0
- package/src/components/atoms/LabelToInput/style.js +41 -0
- package/src/components/atoms/Loading/index.js +2 -3
- package/src/components/atoms/LogoImage/index.js +1 -1
- package/src/components/atoms/PriorityFlag/index.js +1 -1
- package/src/components/atoms/ProductImage/styles.js +1 -1
- package/src/components/atoms/ProgressBar/index.js +2 -2
- package/src/components/atoms/ProgressBar/styles.js +54 -3
- package/src/components/atoms/ScreenHeader/index.js +7 -3
- package/src/components/atoms/ScreenHeader/styles.js +9 -2
- package/src/components/atoms/Select/index.js +35 -0
- package/src/components/atoms/Select/style.js +76 -0
- package/src/components/atoms/StatusTag/index.js +30 -2
- package/src/components/atoms/StatusTag/styles.js +15 -3
- package/src/components/atoms/ValidationPanel/index.js +3 -3
- package/src/components/molecules/AvatarAndValidation/index.js +24 -6
- package/src/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/src/components/molecules/CarouselImagesLogin/index.js +37 -34
- package/src/components/molecules/FeaturesBar/index.js +10 -7
- package/src/components/molecules/GalleryElement/index.js +75 -36
- package/src/components/molecules/GalleryElement/styles.js +38 -11
- package/src/components/molecules/GalleryHeader/index.js +14 -8
- package/src/components/molecules/GalleryHeader/styles.js +16 -0
- package/src/components/molecules/ImageSelector/index.js +2 -3
- package/src/components/molecules/LoginPasswordStrength/index.js +3 -8
- package/src/components/molecules/LoginPasswordStrength/styles.js +0 -3
- package/src/components/molecules/ProductNameHeader/index.js +1 -2
- package/src/components/molecules/RetailerSelector/RetailerSelector.stories.js +35 -0
- package/src/components/molecules/RetailerSelector/index.js +63 -0
- package/src/components/molecules/RetailerSelector/styles.js +18 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +62 -38
- package/src/components/molecules/StatusAsignationInfo/styles.js +12 -2
- package/src/components/molecules/TableHeader/index.js +16 -3
- package/src/components/molecules/TableHeader/styles.js +5 -0
- package/src/components/molecules/TagAndInput/index.js +24 -2
- package/src/components/organisms/FullProductNameHeader/index.js +28 -7
- package/src/components/organisms/FullTabsMenu/index.js +15 -3
- package/src/components/organisms/ImageDataTable/index.js +89 -11
- package/src/components/organisms/InputGroup/index.js +46 -11
- package/src/components/organisms/InputGroup/styles.js +3 -0
- package/src/components/organisms/ProductImageModal/index.js +20 -12
- package/src/components/organisms/ProductImageModal/styles.js +3 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +91 -343
- package/src/components/pages/RetailerProductEdition/index.js +1238 -48
- package/src/components/pages/RetailerProductEdition/styles.js +67 -4
- package/src/global-files/data.js +156 -57
- package/src/global-files/global-styles.css +1 -0
- package/src/global-files/variables.js +1 -0
- package/src/index.js +1 -20
- package/dist/assets/images/carouselImagesLogin/login2.svg +0 -117
- package/dist/assets/images/carouselImagesLogin/login3.svg +0 -147
- package/dist/assets/images/carouselImagesLogin/loginImage.svg +0 -301
- package/dist/assets/images/sliderToolTip/infoIcon.svg +0 -4
- package/dist/assets/images/sliderToolTip/slide1.svg +0 -5
- package/dist/assets/images/sliderToolTip/slide2.svg +0 -9
- package/dist/assets/images/sliderToolTip/slide3.svg +0 -9
- package/dist/assets/images/sliderToolTip/slide4.svg +0 -9
- package/dist/assets/images/sliderToolTip/slide5.svg +0 -40
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -36
- package/dist/components/atoms/ListCommercialRetailers/index.js +0 -64
- package/dist/components/atoms/ListCommercialRetailers/styles.js +0 -20
- package/dist/components/atoms/Loading/Loading.stories.js +0 -28
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -37
- package/dist/components/atoms/MenuCommercialRetailers/index.js +0 -25
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -28
- package/dist/components/atoms/MenuProductImage/index.js +0 -88
- package/dist/components/atoms/MenuProductImage/styles.js +0 -20
- package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +0 -47
- package/dist/components/atoms/SliderToolTip/index.js +0 -200
- package/dist/components/atoms/SliderToolTip/styles.js +0 -24
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +0 -22
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +0 -49
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +0 -18
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -25
- package/dist/components/molecules/ApproveRejetPanel/index.js +0 -49
- package/dist/components/molecules/ApproveRejetPanel/styles.js +0 -18
- package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +0 -28
- package/dist/components/molecules/EmailResetPasswordLogin/index.js +0 -153
- package/dist/components/molecules/EmailResetPasswordLogin/styles.js +0 -20
- package/dist/components/molecules/LogoLoading/Loading.stories.js +0 -28
- package/dist/components/molecules/LogoLoading/index.js +0 -22
- package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationFirstStep/index.js +0 -308
- package/dist/components/molecules/RegistrationFirstStep/styles.js +0 -20
- package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationSecondStep/index.js +0 -169
- package/dist/components/molecules/RegistrationSecondStep/styles.js +0 -20
- package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationThirdStep/index.js +0 -155
- package/dist/components/molecules/RegistrationThirdStep/styles.js +0 -20
- package/dist/components/molecules/SignInLogin/index.js +0 -295
- package/dist/components/molecules/SignInLogin/styles.js +0 -20
- package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +0 -28
- package/dist/components/molecules/SignInLoginCreationApp/index.js +0 -270
- package/dist/components/molecules/SignInLoginCreationApp/styles.js +0 -20
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +0 -28
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +0 -210
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +0 -20
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +0 -69
- package/dist/components/organisms/ChangePassword/index.js +0 -123
- package/src/assets/images/sliderToolTip/infoIcon.svg +0 -4
- package/src/assets/images/sliderToolTip/slide1.svg +0 -5
- package/src/assets/images/sliderToolTip/slide2.svg +0 -9
- package/src/assets/images/sliderToolTip/slide3.svg +0 -9
- package/src/assets/images/sliderToolTip/slide4.svg +0 -9
- package/src/assets/images/sliderToolTip/slide5.svg +0 -40
- package/src/components/atoms/Loading/Loading.stories.js +0 -10
- package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +0 -23
- package/src/components/atoms/SliderToolTip/index.js +0 -182
- package/src/components/atoms/SliderToolTip/styles.js +0 -168
- package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +0 -11
- package/src/components/molecules/EmailResetPasswordLogin/index.js +0 -85
- package/src/components/molecules/EmailResetPasswordLogin/styles.js +0 -23
- package/src/components/molecules/LogoLoading/Loading.stories.js +0 -10
- package/src/components/molecules/LogoLoading/index.js +0 -12
- package/src/components/molecules/LogoLoading/styles.js +0 -16
- package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +0 -11
- package/src/components/molecules/RegistrationFirstStep/index.js +0 -227
- package/src/components/molecules/RegistrationFirstStep/styles.js +0 -87
- package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +0 -11
- package/src/components/molecules/RegistrationSecondStep/index.js +0 -130
- package/src/components/molecules/RegistrationSecondStep/styles.js +0 -59
- package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +0 -11
- package/src/components/molecules/RegistrationThirdStep/index.js +0 -130
- package/src/components/molecules/RegistrationThirdStep/styles.js +0 -44
- package/src/components/molecules/SignInLogin/SignInLogin.stories.js +0 -11
- package/src/components/molecules/SignInLogin/index.js +0 -210
- package/src/components/molecules/SignInLogin/styles.js +0 -79
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +0 -11
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +0 -170
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +0 -51
- package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +0 -54
- package/src/components/organisms/ChangePassword/ChangePassword.stories.js +0 -11
- package/src/components/organisms/ChangePassword/index.js +0 -76
- package/src/components/organisms/ChangePassword/styles.js +0 -13
|
@@ -0,0 +1,32 @@
|
|
|
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.SelectCustom = exports.Container = exports.BackgroundEnd = 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, _templateObject3;
|
|
15
|
+
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n height: 21px;\n line-height: 3;\n width: ", ";\n overflow: hidden;\n border-radius: 0.25em;\n &::after {\n border-left: 1px solid #e33aa9;\n border-top: 1px solid #e33aa9;\n width: 4px;\n content: \"\";\n height: 4px;\n position: absolute;\n right: 7px;\n -webkit-transform: rotate(-135deg);\n -ms-transform: rotate(-135deg);\n transform: rotate(-135deg);\n top: 35%;\n }\n &::before {\n border-left: 1px solid #e33aa9;\n width: 1px;\n content: \"\";\n height: 15px;\n right: 15px;\n position: absolute;\n z-index: 2;\n }\n"])), function (_ref) {
|
|
17
|
+
var width = _ref.width;
|
|
18
|
+
return width || "100%";
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
exports.Container = Container;
|
|
22
|
+
|
|
23
|
+
var BackgroundEnd = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n left: calc(100% - 18px);\n height: 100%;\n width: 18px;\n background-color: #fafafa;\n"])));
|
|
24
|
+
|
|
25
|
+
exports.BackgroundEnd = BackgroundEnd;
|
|
26
|
+
|
|
27
|
+
var SelectCustom = _styledComponents.default.select(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background: #fafafa;\n -webkit-appearance: none;\n -moz-appearance: none;\n -ms-appearance: none;\n appearance: none;\n outline: 0;\n box-shadow: none;\n border: 0 !important;\n background-image: none;\n width: ", ";\n cursor: pointer;\n height: 21px;\n font-family: Avenir Next;\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 21px;\n padding: 0 5px;\n box-sizing: border-box;\n &::-ms-expand {\n display: none;\n }\n option {\n &:disabled {\n color: #d4d1d7;\n }\n &:invalid {\n color: gray;\n }\n }\n"])), function (_ref2) {
|
|
28
|
+
var width = _ref2.width;
|
|
29
|
+
return width || "100%";
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
exports.SelectCustom = SelectCustom;
|
|
@@ -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 &.status-AF {\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;
|
|
@@ -20,7 +20,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
20
20
|
var ValidationPanel = function ValidationPanel(_ref) {
|
|
21
21
|
var id = _ref.id,
|
|
22
22
|
setOptionClicked = _ref.setOptionClicked,
|
|
23
|
-
setShowValidationPanel = _ref.setShowValidationPanel
|
|
23
|
+
setShowValidationPanel = _ref.setShowValidationPanel,
|
|
24
|
+
sendToFacilitator = _ref.sendToFacilitator;
|
|
24
25
|
|
|
25
26
|
var optionSelected = function optionSelected(option) {
|
|
26
27
|
setOptionClicked("".concat(option, "-button"));
|
|
@@ -31,7 +32,7 @@ var ValidationPanel = function ValidationPanel(_ref) {
|
|
|
31
32
|
id: id,
|
|
32
33
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
33
34
|
onClick: function onClick() {
|
|
34
|
-
|
|
35
|
+
sendToFacilitator("A");
|
|
35
36
|
},
|
|
36
37
|
className: "validation-option",
|
|
37
38
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
@@ -42,7 +43,7 @@ var ValidationPanel = function ValidationPanel(_ref) {
|
|
|
42
43
|
})]
|
|
43
44
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
44
45
|
onClick: function onClick() {
|
|
45
|
-
|
|
46
|
+
sendToFacilitator("R");
|
|
46
47
|
},
|
|
47
48
|
className: "validation-option",
|
|
48
49
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
@@ -21,12 +21,20 @@ var _GeneralButton = require("../../atoms/GeneralButton");
|
|
|
21
21
|
|
|
22
22
|
var _ValidationPanel = require("../../atoms/ValidationPanel");
|
|
23
23
|
|
|
24
|
+
var _RetailerSelector = require("../RetailerSelector");
|
|
25
|
+
|
|
24
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
27
|
|
|
26
28
|
//Components
|
|
27
29
|
var AvatarAndValidation = function AvatarAndValidation(_ref) {
|
|
28
|
-
var
|
|
29
|
-
validation = _ref.validation
|
|
30
|
+
var retailers = _ref.retailers,
|
|
31
|
+
validation = _ref.validation,
|
|
32
|
+
activeRetailer = _ref.activeRetailer,
|
|
33
|
+
setActiveRetailer = _ref.setActiveRetailer,
|
|
34
|
+
approveRejectButtons = _ref.approveRejectButtons,
|
|
35
|
+
sendToFacilitator = _ref.sendToFacilitator,
|
|
36
|
+
auditorAssigned = _ref.auditorAssigned,
|
|
37
|
+
userAssigned = _ref.userAssigned;
|
|
30
38
|
|
|
31
39
|
var _useState = (0, _react.useState)(false),
|
|
32
40
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -53,10 +61,11 @@ var AvatarAndValidation = function AvatarAndValidation(_ref) {
|
|
|
53
61
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
54
62
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
55
63
|
className: "buttons-container",
|
|
56
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
64
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_RetailerSelector.RetailerSelector, {
|
|
65
|
+
retailers: retailers,
|
|
66
|
+
activeRetailer: activeRetailer,
|
|
67
|
+
setActiveRetailer: setActiveRetailer
|
|
68
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_DropDownButton.DropDownButton, {}), approveRejectButtons() && (auditorAssigned() || userAssigned && userAssigned()) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
60
69
|
buttonType: "circular-button ".concat(buttonType),
|
|
61
70
|
onClick: function onClick() {
|
|
62
71
|
return setShowValidationPanel(true);
|
|
@@ -65,7 +74,8 @@ var AvatarAndValidation = function AvatarAndValidation(_ref) {
|
|
|
65
74
|
}), showValidationPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ValidationPanel.ValidationPanel, {
|
|
66
75
|
id: "validation-panel",
|
|
67
76
|
setOptionClicked: setButtonType,
|
|
68
|
-
setShowValidationPanel: setShowValidationPanel
|
|
77
|
+
setShowValidationPanel: setShowValidationPanel,
|
|
78
|
+
sendToFacilitator: sendToFacilitator
|
|
69
79
|
})]
|
|
70
80
|
});
|
|
71
81
|
};
|
|
@@ -13,6 +13,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n width: fit-content;\n\n .buttons-container {\n display: flex;\n align-items: center;\n\n * + * {\n margin-left: 3px;\n }\n }\n"])));
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n width: fit-content;\n\n .buttons-container {\n display: flex;\n align-items: center;\n\n > * + * {\n margin-left: 3px;\n }\n }\n"])));
|
|
17
17
|
|
|
18
18
|
exports.Container = Container;
|
|
@@ -22,48 +22,50 @@ var CarouselImagesLogin = function CarouselImagesLogin(_ref) {
|
|
|
22
22
|
panelColor = _ref.panelColor;
|
|
23
23
|
|
|
24
24
|
var carouselStart = function carouselStart() {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
img1.src = images[0];
|
|
39
|
-
var circulos = document.querySelectorAll(".circles");
|
|
40
|
-
circulos[0].classList.add("resaltado");
|
|
41
|
-
|
|
42
|
-
var slideshow = function slideshow() {
|
|
43
|
-
img2.src = images[i];
|
|
44
|
-
var circulo_actual = Array.from(circulos).find(function (el) {
|
|
45
|
-
return el.id == i;
|
|
46
|
-
});
|
|
47
|
-
Array.from(circulos).forEach(function (cir) {
|
|
48
|
-
return cir.classList.remove("resaltado");
|
|
49
|
-
});
|
|
50
|
-
circulo_actual.classList.add("resaltado");
|
|
51
|
-
img1.classList.add("right");
|
|
52
|
-
img2.classList.add("active");
|
|
53
|
-
i++;
|
|
54
|
-
|
|
55
|
-
if (i == images.length) {
|
|
56
|
-
i = 0;
|
|
25
|
+
addEventListener("DOMContentLoaded", function () {
|
|
26
|
+
var images = panelImg;
|
|
27
|
+
var i = 1;
|
|
28
|
+
var img1 = document.querySelector("#img1");
|
|
29
|
+
var img2 = document.querySelector("#img2");
|
|
30
|
+
var divIndicadores = document.querySelector("#indicadores");
|
|
31
|
+
|
|
32
|
+
for (var index = 0; index < images.length; index++) {
|
|
33
|
+
var div = document.createElement("div");
|
|
34
|
+
div.classList.add("circles");
|
|
35
|
+
div.id = index;
|
|
36
|
+
divIndicadores.appendChild(div);
|
|
57
37
|
}
|
|
58
38
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
39
|
+
img1.src = images[0];
|
|
40
|
+
var circulos = document.querySelectorAll(".circles");
|
|
41
|
+
circulos[0].classList.add("resaltado");
|
|
42
|
+
|
|
43
|
+
var slideshow = function slideshow() {
|
|
44
|
+
img2.src = images[i];
|
|
45
|
+
var circulo_actual = Array.from(circulos).find(function (el) {
|
|
46
|
+
return el.id == i;
|
|
47
|
+
});
|
|
48
|
+
Array.from(circulos).forEach(function (cir) {
|
|
49
|
+
return cir.classList.remove("resaltado");
|
|
50
|
+
});
|
|
51
|
+
circulo_actual.classList.add("resaltado");
|
|
52
|
+
img1.classList.add("right");
|
|
53
|
+
img2.classList.add("active");
|
|
54
|
+
i++;
|
|
55
|
+
|
|
56
|
+
if (i == images.length) {
|
|
57
|
+
i = 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
setTimeout(function () {
|
|
61
|
+
img1.src = img2.src;
|
|
62
|
+
img2.classList.remove("active");
|
|
63
|
+
img1.classList.remove("right");
|
|
64
|
+
}, 1000);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
setInterval(slideshow, 4000);
|
|
68
|
+
});
|
|
67
69
|
};
|
|
68
70
|
|
|
69
71
|
(0, _react.useEffect)(function () {
|
|
@@ -33,7 +33,7 @@ var FeaturesBar = function FeaturesBar(_ref) {
|
|
|
33
33
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
34
34
|
className: isIE ? "IEClass" : "gapClass",
|
|
35
35
|
children: features !== undefined && features.map(function (feature, index) {
|
|
36
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.FeatureTag, {
|
|
36
|
+
return feature.value && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.FeatureTag, {
|
|
37
37
|
feature: feature.feature,
|
|
38
38
|
value: feature.value
|
|
39
39
|
}, index);
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.GalleryElement = void 0;
|
|
9
9
|
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
|
11
|
-
|
|
12
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
13
11
|
|
|
14
12
|
var _styles = require("./styles");
|
|
@@ -23,6 +21,8 @@ var _ValidationPanel = require("../../atoms/ValidationPanel");
|
|
|
23
21
|
|
|
24
22
|
var _react = require("react");
|
|
25
23
|
|
|
24
|
+
var _Select = _interopRequireDefault(require("../../atoms/Select"));
|
|
25
|
+
|
|
26
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
27
|
|
|
28
28
|
var GalleryElement = function GalleryElement(_ref) {
|
|
@@ -33,7 +33,15 @@ var GalleryElement = function GalleryElement(_ref) {
|
|
|
33
33
|
gridLayout = _ref$gridLayout === void 0 ? false : _ref$gridLayout,
|
|
34
34
|
_ref$id = _ref.id,
|
|
35
35
|
id = _ref$id === void 0 ? "chk-default" : _ref$id,
|
|
36
|
-
label = _ref.label
|
|
36
|
+
label = _ref.label,
|
|
37
|
+
index = _ref.index,
|
|
38
|
+
imageInputs = _ref.imageInputs,
|
|
39
|
+
imageType = _ref.imageType,
|
|
40
|
+
imagePackagingType = _ref.imagePackagingType,
|
|
41
|
+
changeImage = _ref.changeImage,
|
|
42
|
+
selectedImages = _ref.selectedImages,
|
|
43
|
+
setSelectedImages = _ref.setSelectedImages,
|
|
44
|
+
setCheckAll = _ref.setCheckAll;
|
|
37
45
|
|
|
38
46
|
var _useState = (0, _react.useState)(validation),
|
|
39
47
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -52,6 +60,22 @@ var GalleryElement = function GalleryElement(_ref) {
|
|
|
52
60
|
}
|
|
53
61
|
};
|
|
54
62
|
|
|
63
|
+
var checkOnChange = function checkOnChange(e) {
|
|
64
|
+
var chkGlobal = document.getElementById("check-all-images");
|
|
65
|
+
var checkboxList = document.querySelectorAll("[id^='gallery-element-']");
|
|
66
|
+
var temp = selectedImages.slice();
|
|
67
|
+
e.target.checked ? temp.push(image) : temp = temp.filter(function (img) {
|
|
68
|
+
return image.id !== img.id;
|
|
69
|
+
});
|
|
70
|
+
var counter = 0;
|
|
71
|
+
checkboxList === null || checkboxList === void 0 ? void 0 : checkboxList.forEach(function (chk) {
|
|
72
|
+
return chk.checked && counter++;
|
|
73
|
+
});
|
|
74
|
+
chkGlobal.checked = checkboxList.length === counter;
|
|
75
|
+
setCheckAll(checkboxList.length === counter);
|
|
76
|
+
setSelectedImages(temp);
|
|
77
|
+
};
|
|
78
|
+
|
|
55
79
|
(0, _react.useEffect)(function () {
|
|
56
80
|
if (showValidationPanel) {
|
|
57
81
|
document.addEventListener("click", closeValidationPanel, false);
|
|
@@ -59,36 +83,71 @@ var GalleryElement = function GalleryElement(_ref) {
|
|
|
59
83
|
}, [showValidationPanel]);
|
|
60
84
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
61
85
|
className: gridLayout ? "grid-gallery" : "row-gallery",
|
|
62
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
86
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
63
87
|
className: "buttons-container",
|
|
64
|
-
children:
|
|
88
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBox.CheckBox, {
|
|
65
89
|
id: id,
|
|
66
|
-
label:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
onClick: function onClick() {
|
|
70
|
-
return setShowValidationPanel(true);
|
|
90
|
+
label: label,
|
|
91
|
+
onChange: function onChange(e) {
|
|
92
|
+
return checkOnChange(e);
|
|
71
93
|
}
|
|
72
|
-
})
|
|
73
|
-
id: "validation-panel",
|
|
74
|
-
setOptionClicked: setStatusValidation,
|
|
75
|
-
setShowValidationPanel: setShowValidationPanel
|
|
76
|
-
})]
|
|
94
|
+
})
|
|
77
95
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
78
96
|
className: "image-container",
|
|
79
97
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductImage.ProductImage, {
|
|
80
98
|
img: image === null || image === void 0 ? void 0 : image.src,
|
|
81
99
|
altText: image === null || image === void 0 ? void 0 : image.altText,
|
|
82
|
-
imageType: gridLayout ? "
|
|
100
|
+
imageType: "catalogue-image-".concat(gridLayout ? "big" : "small", "-size")
|
|
83
101
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
84
102
|
className: "information-container",
|
|
85
103
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
86
104
|
children: image === null || image === void 0 ? void 0 : image.name
|
|
87
|
-
}), !gridLayout && (
|
|
88
|
-
|
|
89
|
-
children:
|
|
90
|
-
},
|
|
91
|
-
|
|
105
|
+
}), !gridLayout && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
106
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
107
|
+
children: [image.width, "x", image.height]
|
|
108
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
109
|
+
children: image.ext
|
|
110
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
|
|
111
|
+
width: "100%",
|
|
112
|
+
placeholder: "Tipo de toma",
|
|
113
|
+
options: imageInputs,
|
|
114
|
+
valueSelected: image.image_id,
|
|
115
|
+
onChange: function onChange(e) {
|
|
116
|
+
changeImage({
|
|
117
|
+
action: "changeImageInfo",
|
|
118
|
+
attribute: "image_id",
|
|
119
|
+
value: +e.target.value,
|
|
120
|
+
index: index
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
|
|
124
|
+
width: "100%",
|
|
125
|
+
placeholder: "Tipo de imagen",
|
|
126
|
+
options: imageType,
|
|
127
|
+
valueSelected: image.image_type,
|
|
128
|
+
onChange: function onChange(e) {
|
|
129
|
+
changeImage({
|
|
130
|
+
action: "changeImageInfo",
|
|
131
|
+
attribute: "image_type",
|
|
132
|
+
value: +e.target.value,
|
|
133
|
+
index: index
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
|
|
137
|
+
width: "100%",
|
|
138
|
+
placeholder: "Tipo de empaque",
|
|
139
|
+
options: imagePackagingType,
|
|
140
|
+
valueSelected: image.packing_type,
|
|
141
|
+
onChange: function onChange(e) {
|
|
142
|
+
changeImage({
|
|
143
|
+
action: "changeImageInfo",
|
|
144
|
+
attribute: "packing_type",
|
|
145
|
+
value: +e.target.value,
|
|
146
|
+
index: index
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
})]
|
|
150
|
+
})]
|
|
92
151
|
})]
|
|
93
152
|
})]
|
|
94
153
|
});
|
|
@@ -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 &.grid-gallery {\n position: relative;\n width: 179px;\n border-radius: 3px;\n overflow: hidden;\n\n .buttons-container {\n position: absolute;\n top:
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n &.grid-gallery {\n position: relative;\n width: 179px;\n border-radius: 3px;\n overflow: hidden;\n\n .buttons-container {\n position: absolute;\n top: 5px;\n left: 5px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .image-container {\n border: 1px solid #f0eef2;\n\n .information-container {\n background-color: ", ";\n display: flex;\n justify-content: space-between;\n padding: 0 2px;\n\n p {\n font-family: ", ";\n color: ", ";\n font-size: 11px;\n line-height: 17px;\n }\n }\n }\n }\n\n &.row-gallery {\n display: flex;\n align-items: center;\n padding-right: 10px;\n\n .buttons-container {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .image-container {\n display: flex;\n align-items: center;\n flex: 1;\n .information-container {\n display: flex;\n flex: 1;\n\n p {\n font-family: ", ";\n color: ", ";\n font-size: 14px;\n line-height: 17px;\n text-align: center;\n\n &.highlighted-data {\n font-family: ", ";\n color: ", ";\n background-color: ", ";\n border-radius: 3px;\n font-weight: 600;\n font-size: 11px;\n line-height: 18px;\n padding: 0 10px;\n }\n\n &:nth-child(1) {\n //min-width: calc(20% - 76px);\n //flex: 1 0 20%;\n min-width: 22%;\n }\n\n &:nth-child(2),\n &:nth-child(3) {\n text-align: center;\n }\n &:nth-child(2) {\n max-width: 90px;\n min-width: 90px;\n }\n &:nth-child(3) {\n max-width: 60px;\n min-width: 60px;\n }\n /* &:nth-child(4) {\n max-width: 90px;\n min-width: 90px;\n }\n &:nth-child(5) {\n max-width: 80px;\n min-width: 80px;\n } */\n }\n\n & > * {\n flex: 1;\n padding: 5px;\n }\n }\n }\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.Lato, _variables.GlobalColors.s4, _variables.FontFamily.Lato, _variables.GlobalColors.s4, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.s2);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -11,26 +11,48 @@ var _CheckBox = require("../../atoms/CheckBox");
|
|
|
11
11
|
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
|
|
14
|
-
var GalleryHeader = function GalleryHeader() {
|
|
14
|
+
var GalleryHeader = function GalleryHeader(_ref) {
|
|
15
|
+
var setCheckAll = _ref.setCheckAll,
|
|
16
|
+
setSelectedImages = _ref.setSelectedImages;
|
|
17
|
+
|
|
18
|
+
var checkAll = function checkAll(e) {
|
|
19
|
+
var checkboxList = document.querySelectorAll("[id^='gallery-element-']");
|
|
20
|
+
checkboxList.forEach(function (chk) {
|
|
21
|
+
return chk.checked = e.target.checked;
|
|
22
|
+
});
|
|
23
|
+
setCheckAll(e.target.checked);
|
|
24
|
+
if (!e.target.checked) setSelectedImages([]);
|
|
25
|
+
};
|
|
26
|
+
|
|
15
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
16
28
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
17
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBox.CheckBox, {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
29
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBox.CheckBox, {
|
|
30
|
+
id: "check-all-images",
|
|
31
|
+
onChange: function onChange(e) {
|
|
32
|
+
return checkAll(e);
|
|
33
|
+
}
|
|
34
|
+
})
|
|
21
35
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
22
36
|
className: "image-header",
|
|
23
37
|
children: "Image"
|
|
24
38
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
39
|
+
className: "image-name",
|
|
25
40
|
children: "Nombre"
|
|
26
41
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
42
|
+
className: "image-size",
|
|
27
43
|
children: "Tama\xF1o"
|
|
28
44
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
45
|
+
className: "image-format",
|
|
29
46
|
children: "Formato"
|
|
30
47
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
48
|
+
className: "",
|
|
49
|
+
children: "Tipo de toma"
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
51
|
+
className: "",
|
|
31
52
|
children: "Tipo de imagen"
|
|
32
53
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
33
|
-
|
|
54
|
+
className: "",
|
|
55
|
+
children: "Tipo de empaque"
|
|
34
56
|
})]
|
|
35
57
|
});
|
|
36
58
|
};
|
|
@@ -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 padding: 10px;\n padding-left: 0;\n align-items: center;\n\n p {\n font-family: ", ";\n font-style: normal;\n font-weight: 600;\n font-size: 14px;\n line-height: 21px;\n letter-spacing: -0.015em;\n color: ", ";\n flex: 1;\n text-align: center;\n\n &.value-header {\n max-width: 60px;\n }\n\n &.image-header {\n max-width: 60px;\n }\n }\n"])), _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n padding: 10px;\n padding-left: 0;\n align-items: center;\n\n p {\n font-family: ", ";\n font-style: normal;\n font-weight: 600;\n font-size: 14px;\n line-height: 21px;\n letter-spacing: -0.015em;\n color: ", ";\n flex: 1;\n text-align: center;\n\n &.value-header {\n max-width: 60px;\n }\n\n &.image-header {\n max-width: 60px;\n }\n\n &.image-name {\n min-width: 20%;\n }\n\n &.image-format {\n max-width: 60px;\n }\n\n &.image-size {\n max-width: 90px;\n }\n\n &.image-identifier {\n max-width: 80px;\n }\n }\n"])), _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -9,8 +9,6 @@ var _styles = require("./styles");
|
|
|
9
9
|
|
|
10
10
|
var _index = require("../../atoms/ProductImage/index");
|
|
11
11
|
|
|
12
|
-
var _data = require("../../../global-files/data");
|
|
13
|
-
|
|
14
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
13
|
|
|
16
14
|
var ImageSelector = function ImageSelector(_ref) {
|
|
@@ -24,11 +22,11 @@ var ImageSelector = function ImageSelector(_ref) {
|
|
|
24
22
|
className: modalSelector && "modal-image-selector",
|
|
25
23
|
children: images === null || images === void 0 ? void 0 : (_images$values = images.values) === null || _images$values === void 0 ? void 0 : _images$values.map(function (image, index) {
|
|
26
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProductImage, {
|
|
27
|
-
img:
|
|
25
|
+
img: image.src,
|
|
28
26
|
altText: image.altText,
|
|
29
27
|
imageType: modalSelector ? "catalogue-modal-image" : "carousel-image",
|
|
30
28
|
onClick: function onClick() {
|
|
31
|
-
return setActiveImage(
|
|
29
|
+
return setActiveImage(index);
|
|
32
30
|
}
|
|
33
31
|
}, index);
|
|
34
32
|
})
|
|
@@ -20,8 +20,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
20
20
|
var LoginPasswordStrength = function LoginPasswordStrength(_ref) {
|
|
21
21
|
var emptyPassword = _ref.emptyPassword,
|
|
22
22
|
emptyConfirmPassword = _ref.emptyConfirmPassword,
|
|
23
|
-
matchPasswords = _ref.matchPasswords
|
|
24
|
-
required = _ref.required;
|
|
23
|
+
matchPasswords = _ref.matchPasswords;
|
|
25
24
|
|
|
26
25
|
var _useState = (0, _react.useState)(0),
|
|
27
26
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -61,6 +60,9 @@ var LoginPasswordStrength = function LoginPasswordStrength(_ref) {
|
|
|
61
60
|
});
|
|
62
61
|
break;
|
|
63
62
|
|
|
63
|
+
case "confirmPasswordInput":
|
|
64
|
+
break;
|
|
65
|
+
|
|
64
66
|
default:
|
|
65
67
|
return;
|
|
66
68
|
}
|
|
@@ -72,8 +74,7 @@ var LoginPasswordStrength = function LoginPasswordStrength(_ref) {
|
|
|
72
74
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
73
75
|
inputType: "password",
|
|
74
76
|
inputId: "newPasswordInput",
|
|
75
|
-
label: "Ingrese su nueva contraseña"
|
|
76
|
-
required: required
|
|
77
|
+
label: "Ingrese su nueva contraseña"
|
|
77
78
|
}), emptyPassword && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
78
79
|
children: "La contrase\xF1a debe ser minimo de 8 caracteres"
|
|
79
80
|
})]
|
|
@@ -117,8 +118,7 @@ var LoginPasswordStrength = function LoginPasswordStrength(_ref) {
|
|
|
117
118
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
118
119
|
inputType: "password",
|
|
119
120
|
inputId: "confirmPasswordInput",
|
|
120
|
-
label: "Confirme la nueva contraseña"
|
|
121
|
-
required: required
|
|
121
|
+
label: "Confirme la nueva contraseña"
|
|
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", {
|
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject, _templateObject2, _templateObject3;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n .divPasswordStrength {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 30px;\n & + * {\n margin-top: 40px;\n }\n }\n label {\n color: red;\n margin-top: 3px;\n margin-left: 15px;\n font-family: ", ";\n font-size: 11px;\n }\n
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n .divPasswordStrength {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 30px;\n & + * {\n margin-top: 40px;\n }\n }\n label {\n color: red;\n margin-top: 3px;\n margin-left: 15px;\n font-family: ", ";\n font-size: 11px;\n }\n"])), _variables.FontFamily.Raleway_700);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
21
21
|
|
|
@@ -21,7 +21,6 @@ var ProductNameHeader = function ProductNameHeader(_ref) {
|
|
|
21
21
|
var productName = _ref.productName,
|
|
22
22
|
statusType = _ref.statusType,
|
|
23
23
|
percent = _ref.percent,
|
|
24
|
-
backgroundColor = _ref.backgroundColor,
|
|
25
24
|
priority = _ref.priority,
|
|
26
25
|
date = _ref.date;
|
|
27
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
@@ -32,7 +31,7 @@ var ProductNameHeader = function ProductNameHeader(_ref) {
|
|
|
32
31
|
statusType: statusType
|
|
33
32
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.ProgressBar, {
|
|
34
33
|
percent: percent,
|
|
35
|
-
|
|
34
|
+
progressBarType: statusType
|
|
36
35
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.PriorityFlag, {
|
|
37
36
|
priority: priority
|
|
38
37
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|