contentoh-components-library 12.0.0 → 12.1.17
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 +8 -2
- package/.env.production +8 -2
- package/CHANGELOG.md +39 -0
- package/dist/assets/images/carouselImagesLogin/login2.svg +117 -0
- package/dist/assets/images/carouselImagesLogin/login3.svg +147 -0
- package/dist/assets/images/carouselImagesLogin/loginImage.svg +301 -0
- package/dist/assets/images/editField/showPassword.png +0 -0
- package/dist/assets/images/generalButton/downloadIcon.svg +3 -0
- package/dist/assets/images/genericModal/closeWhite.svg +3 -0
- package/dist/assets/images/genericModal/errorModal.svg +3 -0
- package/dist/assets/images/genericModal/yellowAlert.svg +12 -0
- package/dist/assets/images/sliderToolTip/infoIcon.svg +4 -0
- package/dist/assets/images/sliderToolTip/slide1.svg +5 -0
- package/dist/assets/images/sliderToolTip/slide2.svg +9 -0
- package/dist/assets/images/sliderToolTip/slide3.svg +9 -0
- package/dist/assets/images/sliderToolTip/slide4.svg +9 -0
- package/dist/assets/images/sliderToolTip/slide5.svg +40 -0
- package/dist/assets/images/verticalSideMenuMainPage/closeMenu.svg +4 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconFAQS.svg +12 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconGroup.svg +3 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconLogo.svg +12 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg +15 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconProduct.svg +3 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconSpeedometer.svg +12 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconTask.svg +10 -0
- package/dist/assets/images/verticalSideMenuMainPage/openMenu.svg +4 -0
- package/dist/components/atoms/AsignationOption/index.js +24 -2
- package/dist/components/atoms/AsignationOption/styles.js +1 -1
- package/dist/components/atoms/CharCounter/CharCounter.stories.js +31 -0
- package/dist/components/atoms/CharCounter/index.js +22 -0
- package/dist/components/atoms/CharCounter/styles.js +20 -0
- package/dist/components/atoms/CheckBox/index.js +4 -2
- package/dist/components/atoms/DropDownButton/styles.js +1 -1
- package/dist/components/atoms/GeneralButton/styles.js +4 -2
- package/dist/components/atoms/GeneralInput/index.js +121 -65
- package/dist/components/atoms/GeneralInput/styles.js +8 -2
- 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 +2 -2
- package/dist/components/atoms/Input/index.js +1 -1
- package/dist/components/atoms/Input/style.js +4 -4
- package/dist/components/atoms/InputFormatter/Wysiwyg.stories.js +30 -0
- package/dist/components/atoms/InputFormatter/index.js +187 -0
- package/dist/components/atoms/InputFormatter/styles.js +33 -0
- package/dist/components/atoms/LabelToInput/index.js +0 -1
- package/dist/components/atoms/LabelToInput/style.js +3 -3
- package/dist/components/atoms/Loading/Loading.stories.js +28 -0
- package/dist/components/atoms/Loading/index.js +27 -0
- package/dist/components/atoms/Loading/styles.js +22 -0
- package/dist/components/atoms/LogoImage/index.js +1 -0
- package/dist/components/atoms/ProductPercentCard/Percent.stories.js +41 -0
- package/dist/components/atoms/ProductPercentCard/index.js +45 -0
- package/dist/components/atoms/ProductPercentCard/styles.js +20 -0
- package/dist/components/atoms/ProgressBar/styles.js +1 -1
- 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 +4 -2
- package/dist/components/atoms/Select/style.js +1 -1
- package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +47 -0
- package/dist/components/atoms/SliderToolTip/index.js +200 -0
- package/dist/components/atoms/SliderToolTip/styles.js +24 -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/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +28 -0
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +98 -0
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +24 -0
- package/dist/components/molecules/AvatarAndValidation/index.js +9 -12
- package/dist/components/molecules/CarouselImagesLogin/CarouselImagesLogin.stories.js +37 -0
- package/dist/components/molecules/CarouselImagesLogin/index.js +92 -0
- package/dist/components/molecules/CarouselImagesLogin/styles.js +21 -0
- package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/EmailResetPasswordLogin/index.js +153 -0
- package/dist/components/molecules/EmailResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/GalleryElement/index.js +32 -7
- package/dist/components/molecules/GalleryHeader/index.js +19 -2
- package/dist/components/molecules/LoginPasswordStrength/LoginPasswordStrength.stories.js +28 -0
- package/dist/components/molecules/LoginPasswordStrength/index.js +126 -0
- package/dist/components/molecules/LoginPasswordStrength/styles.js +78 -0
- package/dist/components/molecules/LogoLoading/Loading.stories.js +28 -0
- package/dist/components/molecules/LogoLoading/index.js +22 -0
- package/dist/components/molecules/LogoLoading/styles.js +18 -0
- package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationFirstStep/index.js +308 -0
- package/dist/components/molecules/RegistrationFirstStep/styles.js +20 -0
- package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationSecondStep/index.js +172 -0
- package/dist/components/molecules/RegistrationSecondStep/styles.js +20 -0
- package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationThirdStep/index.js +155 -0
- package/dist/components/molecules/RegistrationThirdStep/styles.js +20 -0
- package/dist/components/molecules/RetailerSelector/index.js +11 -3
- package/dist/components/molecules/RetailerSelector/styles.js +1 -1
- package/dist/components/molecules/SignInLogin/SignInLogin.stories.js +28 -0
- package/dist/components/molecules/SignInLogin/index.js +315 -0
- package/dist/components/molecules/SignInLogin/styles.js +20 -0
- package/dist/components/molecules/StatusAsignationInfo/index.js +19 -33
- package/dist/components/molecules/TableHeader/index.js +7 -3
- package/dist/components/molecules/TableHeader/styles.js +1 -1
- package/dist/components/molecules/TagAndInput/index.js +23 -5
- package/dist/components/molecules/TagAndInput/styles.js +10 -2
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +211 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +69 -0
- package/dist/components/organisms/ChangePassword/ChangePassword.stories.js +28 -0
- package/dist/components/organisms/ChangePassword/index.js +124 -0
- package/dist/components/organisms/ChangePassword/styles.js +18 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +40 -15
- package/dist/components/organisms/FullTabsMenu/index.js +11 -11
- package/dist/components/organisms/GlobalModal/index.js +73 -0
- package/dist/components/organisms/GlobalModal/styles.js +66 -0
- package/dist/components/organisms/ImageDataTable/index.js +19 -13
- package/dist/components/organisms/InputGroup/index.js +17 -12
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/organisms/ProductImageModal/index.js +3 -6
- package/dist/components/organisms/ProductImageModal/styles.js +1 -1
- package/dist/components/pages/ChangePasswordLogin/ChangePasswordLogin.stories.js +38 -0
- package/dist/components/pages/ChangePasswordLogin/index.js +108 -0
- package/dist/components/pages/ChangePasswordLogin/styles.js +18 -0
- package/dist/components/pages/EmailResetPassword/EmailResetPassword.stories.js +37 -0
- package/dist/components/pages/EmailResetPassword/index.js +130 -0
- package/dist/components/pages/EmailResetPassword/styles.js +20 -0
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +175 -0
- package/dist/components/pages/ProviderProductEdition/index.js +1800 -0
- package/dist/components/pages/ProviderProductEdition/styles.js +23 -0
- package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +37 -0
- package/dist/components/pages/RegistrationLoginFirstStep/index.js +269 -0
- package/dist/components/pages/RegistrationLoginFirstStep/styles.js +20 -0
- package/dist/components/pages/RegistrationLoginSecondStep/RegistrationLoginSecondStep.stories.js +38 -0
- package/dist/components/pages/RegistrationLoginSecondStep/index.js +176 -0
- package/dist/components/pages/RegistrationLoginSecondStep/styles.js +20 -0
- package/dist/components/pages/RegistrationLoginThirdStep/RegistrationLoginThirdStep.stories.js +37 -0
- package/dist/components/pages/RegistrationLoginThirdStep/index.js +178 -0
- package/dist/components/pages/RegistrationLoginThirdStep/styles.js +20 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +34 -75
- package/dist/components/pages/RetailerProductEdition/index.js +937 -641
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/VerificationCodeResetPassword/VerificationCodeResetPassword.stories.js +37 -0
- package/dist/components/pages/VerificationCodeResetPassword/index.js +121 -0
- package/dist/components/pages/VerificationCodeResetPassword/styles.js +20 -0
- package/dist/components/pages/VerificationCodeResetPassword/utils.js +69 -0
- package/dist/global-files/data.js +36 -12
- package/dist/index.js +316 -100
- package/package.json +21 -8
- package/src/assets/images/carouselImagesLogin/login2.svg +117 -0
- package/src/assets/images/carouselImagesLogin/login3.svg +147 -0
- package/src/assets/images/carouselImagesLogin/loginImage.svg +301 -0
- package/src/assets/images/editField/showPassword.png +0 -0
- package/src/assets/images/generalButton/downloadIcon.svg +3 -0
- package/src/assets/images/genericModal/closeWhite.svg +3 -0
- package/src/assets/images/genericModal/errorModal.svg +3 -0
- package/src/assets/images/genericModal/yellowAlert.svg +12 -0
- package/src/assets/images/sliderToolTip/infoIcon.svg +4 -0
- package/src/assets/images/sliderToolTip/slide1.svg +5 -0
- package/src/assets/images/sliderToolTip/slide2.svg +9 -0
- package/src/assets/images/sliderToolTip/slide3.svg +9 -0
- package/src/assets/images/sliderToolTip/slide4.svg +9 -0
- package/src/assets/images/sliderToolTip/slide5.svg +40 -0
- package/src/assets/images/verticalSideMenuMainPage/closeMenu.svg +4 -0
- package/src/assets/images/verticalSideMenuMainPage/iconFAQS.svg +12 -0
- package/src/assets/images/verticalSideMenuMainPage/iconGroup.svg +3 -0
- package/src/assets/images/verticalSideMenuMainPage/iconLogo.svg +12 -0
- package/src/assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg +15 -0
- package/src/assets/images/verticalSideMenuMainPage/iconProduct.svg +3 -0
- package/src/assets/images/verticalSideMenuMainPage/iconSpeedometer.svg +12 -0
- package/src/assets/images/verticalSideMenuMainPage/iconTask.svg +10 -0
- package/src/assets/images/verticalSideMenuMainPage/openMenu.svg +4 -0
- package/src/components/atoms/AsignationOption/index.js +17 -0
- package/src/components/atoms/AsignationOption/styles.js +13 -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/DropDownButton/styles.js +6 -0
- package/src/components/atoms/GeneralButton/styles.js +14 -0
- package/src/components/atoms/GeneralInput/index.js +109 -68
- package/src/components/atoms/GeneralInput/styles.js +34 -0
- package/src/components/atoms/GenericModal/index.js +2 -2
- package/src/components/atoms/GenericModal/styles.js +11 -3
- package/src/components/atoms/GradientPanel/styles.js +8 -1
- package/src/components/atoms/Input/index.js +2 -1
- package/src/components/atoms/Input/style.js +9 -5
- package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/InputFormatter/index.js +146 -0
- package/src/components/atoms/InputFormatter/styles.js +41 -0
- package/src/components/atoms/LabelToInput/index.js +0 -1
- package/src/components/atoms/LabelToInput/style.js +15 -4
- package/src/components/atoms/Loading/Loading.stories.js +10 -0
- package/src/components/atoms/Loading/index.js +13 -0
- package/src/components/atoms/Loading/styles.js +57 -0
- package/src/components/atoms/LogoImage/index.js +1 -1
- package/src/components/atoms/ProductPercentCard/Percent.stories.js +41 -0
- package/src/components/atoms/ProductPercentCard/index.js +23 -0
- package/src/components/atoms/{Percent → ProductPercentCard}/styles.js +11 -7
- package/src/components/atoms/ProgressBar/styles.js +2 -1
- package/src/components/atoms/ScreenHeader/index.js +7 -3
- package/src/components/atoms/ScreenHeader/styles.js +14 -2
- package/src/components/atoms/Select/index.js +3 -1
- package/src/components/atoms/Select/style.js +1 -2
- package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +23 -0
- package/src/components/atoms/SliderToolTip/index.js +182 -0
- package/src/components/atoms/SliderToolTip/styles.js +168 -0
- package/src/components/atoms/StatusTag/index.js +30 -2
- package/src/components/atoms/StatusTag/styles.js +9 -4
- package/src/components/atoms/ValidationPanel/index.js +4 -3
- package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +12 -0
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +54 -0
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +45 -0
- package/src/components/molecules/AvatarAndValidation/index.js +14 -15
- package/src/components/molecules/CarouselImagesLogin/CarouselImagesLogin.stories.js +17 -0
- package/src/components/molecules/CarouselImagesLogin/index.js +65 -0
- package/src/components/molecules/CarouselImagesLogin/styles.js +60 -0
- package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/EmailResetPasswordLogin/index.js +85 -0
- package/src/components/molecules/EmailResetPasswordLogin/styles.js +23 -0
- package/src/components/molecules/GalleryElement/index.js +26 -6
- package/src/components/molecules/GalleryHeader/index.js +8 -2
- package/src/components/molecules/LoginPasswordStrength/LoginPasswordStrength.stories.js +8 -0
- package/src/components/molecules/LoginPasswordStrength/index.js +84 -0
- package/src/components/molecules/LoginPasswordStrength/styles.js +91 -0
- package/src/components/molecules/LogoLoading/Loading.stories.js +10 -0
- package/src/components/molecules/LogoLoading/index.js +12 -0
- package/src/components/molecules/LogoLoading/styles.js +16 -0
- package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +11 -0
- package/src/components/molecules/RegistrationFirstStep/index.js +227 -0
- package/src/components/molecules/RegistrationFirstStep/styles.js +87 -0
- package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +11 -0
- package/src/components/molecules/RegistrationSecondStep/index.js +135 -0
- package/src/components/molecules/RegistrationSecondStep/styles.js +64 -0
- package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +11 -0
- package/src/components/molecules/RegistrationThirdStep/index.js +130 -0
- package/src/components/molecules/RegistrationThirdStep/styles.js +44 -0
- package/src/components/molecules/RetailerSelector/index.js +7 -1
- package/src/components/molecules/RetailerSelector/styles.js +3 -0
- package/src/components/molecules/SignInLogin/SignInLogin.stories.js +11 -0
- package/src/components/molecules/SignInLogin/index.js +226 -0
- package/src/components/molecules/SignInLogin/styles.js +120 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +23 -30
- package/src/components/molecules/TableHeader/index.js +5 -1
- package/src/components/molecules/TableHeader/styles.js +8 -0
- package/src/components/molecules/TagAndInput/index.js +19 -1
- package/src/components/molecules/TagAndInput/styles.js +28 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +171 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +54 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +54 -0
- package/src/components/organisms/ChangePassword/ChangePassword.stories.js +11 -0
- package/src/components/organisms/ChangePassword/index.js +77 -0
- package/src/components/organisms/ChangePassword/styles.js +13 -0
- package/src/components/organisms/FullProductNameHeader/index.js +47 -16
- package/src/components/organisms/FullTabsMenu/index.js +9 -9
- package/src/components/organisms/GlobalModal/index.js +68 -0
- package/src/components/organisms/GlobalModal/styles.js +113 -0
- package/src/components/organisms/ImageDataTable/index.js +25 -8
- package/src/components/organisms/InputGroup/index.js +28 -8
- package/src/components/organisms/InputGroup/styles.js +2 -2
- package/src/components/organisms/ProductImageModal/index.js +8 -5
- package/src/components/organisms/ProductImageModal/styles.js +3 -0
- package/src/components/pages/ChangePasswordLogin/ChangePasswordLogin.stories.js +18 -0
- package/src/components/pages/ChangePasswordLogin/index.js +77 -0
- package/src/components/pages/ChangePasswordLogin/styles.js +20 -0
- package/src/components/pages/EmailResetPassword/EmailResetPassword.stories.js +17 -0
- package/src/components/pages/EmailResetPassword/index.js +77 -0
- package/src/components/pages/EmailResetPassword/styles.js +27 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +172 -0
- package/src/components/pages/ProviderProductEdition/index.js +1275 -0
- package/src/components/pages/ProviderProductEdition/styles.js +118 -0
- package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +17 -0
- package/src/components/pages/RegistrationLoginFirstStep/index.js +160 -0
- package/src/components/pages/RegistrationLoginFirstStep/styles.js +85 -0
- package/src/components/pages/RegistrationLoginSecondStep/RegistrationLoginSecondStep.stories.js +18 -0
- package/src/components/pages/RegistrationLoginSecondStep/index.js +111 -0
- package/src/components/pages/RegistrationLoginSecondStep/styles.js +64 -0
- package/src/components/pages/RegistrationLoginThirdStep/RegistrationLoginThirdStep.stories.js +17 -0
- package/src/components/pages/RegistrationLoginThirdStep/index.js +106 -0
- package/src/components/pages/RegistrationLoginThirdStep/styles.js +48 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +31 -66
- package/src/components/pages/RetailerProductEdition/index.js +790 -448
- package/src/components/pages/RetailerProductEdition/styles.js +13 -3
- package/src/components/pages/VerificationCodeResetPassword/VerificationCodeResetPassword.stories.js +17 -0
- package/src/components/pages/VerificationCodeResetPassword/index.js +92 -0
- package/src/components/pages/VerificationCodeResetPassword/styles.js +54 -0
- package/src/components/pages/VerificationCodeResetPassword/utils.js +56 -0
- package/src/global-files/data.js +27 -6
- package/src/index.js +23 -8
- package/src/components/atoms/Percent/Percent.stories.js +0 -38
- package/src/components/atoms/Percent/index.js +0 -15
|
@@ -0,0 +1,124 @@
|
|
|
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.ChangePassword = void 0;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
+
|
|
14
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
15
|
+
|
|
16
|
+
var _styles = require("./styles");
|
|
17
|
+
|
|
18
|
+
var _LoginPasswordStrength = require("../../molecules/LoginPasswordStrength");
|
|
19
|
+
|
|
20
|
+
var _react = require("react");
|
|
21
|
+
|
|
22
|
+
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
23
|
+
|
|
24
|
+
var _LogoImage = require("../../atoms/LogoImage");
|
|
25
|
+
|
|
26
|
+
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
27
|
+
|
|
28
|
+
var _variables = require("../../../global-files/variables");
|
|
29
|
+
|
|
30
|
+
var _GradientPanel = require("../../atoms/GradientPanel");
|
|
31
|
+
|
|
32
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
|
+
|
|
34
|
+
var ChangePassword = function ChangePassword(props) {
|
|
35
|
+
var _useState = (0, _react.useState)(false),
|
|
36
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
37
|
+
emptyPassword = _useState2[0],
|
|
38
|
+
setEmptyPassword = _useState2[1];
|
|
39
|
+
|
|
40
|
+
var _useState3 = (0, _react.useState)(false),
|
|
41
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
42
|
+
emptyConfirmPassword = _useState4[0],
|
|
43
|
+
setEmptyConfirmPassword = _useState4[1];
|
|
44
|
+
|
|
45
|
+
var _useState5 = (0, _react.useState)(true),
|
|
46
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
47
|
+
matchPasswords = _useState6[0],
|
|
48
|
+
setMatchPasswords = _useState6[1];
|
|
49
|
+
|
|
50
|
+
var validate = /*#__PURE__*/function () {
|
|
51
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
52
|
+
var password, confirmPassword, valid;
|
|
53
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
54
|
+
while (1) {
|
|
55
|
+
switch (_context.prev = _context.next) {
|
|
56
|
+
case 0:
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
password = document.querySelector("#newPasswordInput").value;
|
|
59
|
+
password.length < 8 ? setEmptyPassword(true) : setEmptyPassword(false);
|
|
60
|
+
confirmPassword = document.querySelector("#confirmPasswordInput").value;
|
|
61
|
+
confirmPassword === "" ? setEmptyConfirmPassword(true) : setEmptyConfirmPassword(false);
|
|
62
|
+
|
|
63
|
+
if (password === confirmPassword) {
|
|
64
|
+
setMatchPasswords(true);
|
|
65
|
+
} else {
|
|
66
|
+
setMatchPasswords(false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
valid = true;
|
|
70
|
+
|
|
71
|
+
if (password.length < 8 || confirmPassword === "" || password !== confirmPassword) {
|
|
72
|
+
valid = false;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (valid) {
|
|
76
|
+
sessionStorage.setItem("newPassword", JSON.stringify(password));
|
|
77
|
+
!sessionStorage.getItem("resetPasswordProcess") ? props.setPaso(9) : props.setPaso(11);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
case 9:
|
|
81
|
+
case "end":
|
|
82
|
+
return _context.stop();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}, _callee);
|
|
86
|
+
}));
|
|
87
|
+
|
|
88
|
+
return function validate(_x) {
|
|
89
|
+
return _ref.apply(this, arguments);
|
|
90
|
+
};
|
|
91
|
+
}();
|
|
92
|
+
|
|
93
|
+
var loginRight = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoImage.LogoImage, {}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
94
|
+
className: "credenciales",
|
|
95
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
96
|
+
fontFamily: _variables.FontFamily.AvenirNext,
|
|
97
|
+
color: _variables.GlobalColors.s5,
|
|
98
|
+
text: "Ingresa tus credenciales"
|
|
99
|
+
})
|
|
100
|
+
}, "2"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LoginPasswordStrength.LoginPasswordStrength, {
|
|
101
|
+
emptyPassword: emptyPassword,
|
|
102
|
+
emptyConfirmPassword: emptyConfirmPassword,
|
|
103
|
+
matchPasswords: matchPasswords,
|
|
104
|
+
textTittle: "Ingresa tus credenciales"
|
|
105
|
+
}, "3"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
106
|
+
className: "button-center",
|
|
107
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
108
|
+
buttonType: "general-default-button",
|
|
109
|
+
label: "Enviar",
|
|
110
|
+
onClick: function onClick(e) {
|
|
111
|
+
return validate(e);
|
|
112
|
+
}
|
|
113
|
+
})
|
|
114
|
+
}, "4")];
|
|
115
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
116
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
117
|
+
panelColor: _variables.GlobalColors.white,
|
|
118
|
+
componentsArray: loginRight,
|
|
119
|
+
panelType: "home-login"
|
|
120
|
+
})
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
exports.ChangePassword = ChangePassword;
|
|
@@ -0,0 +1,18 @@
|
|
|
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.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;
|
|
15
|
+
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 50%;\n height: 100vh;\n .button-center {\n display: flex;\n justify-content: center;\n .general-default-button {\n width: 160px;\n }\n }\n"])));
|
|
17
|
+
|
|
18
|
+
exports.Container = Container;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.FullProductNameHeader = void 0;
|
|
7
9
|
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
8
12
|
var _styles = require("./styles");
|
|
9
13
|
|
|
10
14
|
var _ProductNameHeader = require("../../molecules/ProductNameHeader");
|
|
@@ -13,6 +17,8 @@ var _FeaturesBar = require("../../molecules/FeaturesBar");
|
|
|
13
17
|
|
|
14
18
|
var _AvatarAndValidation = require("../../molecules/AvatarAndValidation");
|
|
15
19
|
|
|
20
|
+
var _react = require("react");
|
|
21
|
+
|
|
16
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
23
|
|
|
18
24
|
var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
@@ -22,40 +28,59 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
|
22
28
|
percent = _ref.percent,
|
|
23
29
|
activeRetailer = _ref.activeRetailer,
|
|
24
30
|
setActiveRetailer = _ref.setActiveRetailer,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
showValidationButtons = _ref.showValidationButtons,
|
|
32
|
+
approve = _ref.approve,
|
|
33
|
+
reject = _ref.reject,
|
|
34
|
+
servicesData = _ref.servicesData;
|
|
35
|
+
|
|
36
|
+
var _useState = (0, _react.useState)([]),
|
|
37
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
38
|
+
retailers = _useState2[0],
|
|
39
|
+
setRetailers = _useState2[1];
|
|
40
|
+
|
|
41
|
+
(0, _react.useEffect)(function () {
|
|
42
|
+
var rtls = (headerData === null || headerData === void 0 ? void 0 : headerData.retailers) || (headerData === null || headerData === void 0 ? void 0 : headerData.retailersAvailable);
|
|
43
|
+
servicesData && rtls.forEach(function (rt) {
|
|
44
|
+
var element = [];
|
|
45
|
+
servicesData.forEach(function (sd) {
|
|
46
|
+
if (sd.id_retailer === rt.id) {
|
|
47
|
+
element.push(sd.status ? sd.status : "RECEIVED");
|
|
48
|
+
} else element.push("NA");
|
|
49
|
+
|
|
50
|
+
rt["services"] = element;
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
setRetailers(rtls);
|
|
54
|
+
}, [servicesData]);
|
|
29
55
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
30
56
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductNameHeader.ProductNameHeader, {
|
|
31
|
-
productName: headerData === null || headerData === void 0 ? void 0 : (_headerData$article = headerData.article) === null || _headerData$article === void 0 ? void 0 : _headerData$article.name,
|
|
32
|
-
statusType: headerData === null || headerData === void 0 ? void 0 : headerData.status,
|
|
33
|
-
percent: percent,
|
|
57
|
+
productName: (headerData === null || headerData === void 0 ? void 0 : (_headerData$article = headerData.article) === null || _headerData$article === void 0 ? void 0 : _headerData$article.name) || (headerData === null || headerData === void 0 ? void 0 : headerData.name),
|
|
58
|
+
statusType: (headerData === null || headerData === void 0 ? void 0 : headerData.version_status) || (headerData === null || headerData === void 0 ? void 0 : headerData.status) || (headerData === null || headerData === void 0 ? void 0 : headerData.article_status),
|
|
59
|
+
percent: percent === null || percent === void 0 ? void 0 : percent.toFixed(0),
|
|
34
60
|
priority: headerData === null || headerData === void 0 ? void 0 : headerData.prio,
|
|
35
|
-
date: new Date(headerData === null || headerData === void 0 ? void 0 : (_headerData$article2 = headerData.article) === null || _headerData$article2 === void 0 ? void 0 : _headerData$article2.timestamp).toLocaleDateString()
|
|
61
|
+
date: new Date((headerData === null || headerData === void 0 ? void 0 : (_headerData$article2 = headerData.article) === null || _headerData$article2 === void 0 ? void 0 : _headerData$article2.timestamp) || (headerData === null || headerData === void 0 ? void 0 : headerData.timestamp)).toLocaleDateString()
|
|
36
62
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
37
63
|
className: "features-bar-container",
|
|
38
64
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_FeaturesBar.FeaturesBar, {
|
|
39
65
|
features: [{
|
|
40
66
|
feature: "Categoría",
|
|
41
|
-
value: headerData === null || headerData === void 0 ? void 0 : (_headerData$article3 = headerData.article) === null || _headerData$article3 === void 0 ? void 0 : _headerData$article3.category
|
|
67
|
+
value: (headerData === null || headerData === void 0 ? void 0 : (_headerData$article3 = headerData.article) === null || _headerData$article3 === void 0 ? void 0 : _headerData$article3.category) || (headerData === null || headerData === void 0 ? void 0 : headerData.categoryName)
|
|
42
68
|
}, {
|
|
43
69
|
feature: "Prov",
|
|
44
70
|
value: headerData === null || headerData === void 0 ? void 0 : (_headerData$article4 = headerData.article) === null || _headerData$article4 === void 0 ? void 0 : _headerData$article4.company_name
|
|
45
71
|
}, {
|
|
46
72
|
feature: "UPC",
|
|
47
|
-
value: headerData === null || headerData === void 0 ? void 0 : (_headerData$article5 = headerData.article) === null || _headerData$article5 === void 0 ? void 0 : _headerData$article5.upc
|
|
73
|
+
value: (headerData === null || headerData === void 0 ? void 0 : (_headerData$article5 = headerData.article) === null || _headerData$article5 === void 0 ? void 0 : _headerData$article5.upc) || (headerData === null || headerData === void 0 ? void 0 : headerData.upc)
|
|
48
74
|
}]
|
|
49
75
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_AvatarAndValidation.AvatarAndValidation, {
|
|
50
|
-
retailers:
|
|
76
|
+
retailers: retailers,
|
|
51
77
|
avatarData: headerData === null || headerData === void 0 ? void 0 : headerData.avatarData,
|
|
52
78
|
validation: headerData === null || headerData === void 0 ? void 0 : headerData.validation,
|
|
53
79
|
activeRetailer: activeRetailer,
|
|
54
80
|
setActiveRetailer: setActiveRetailer,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
userAssigned: userAssigned
|
|
81
|
+
showValidationButtons: showValidationButtons,
|
|
82
|
+
approve: approve,
|
|
83
|
+
reject: reject
|
|
59
84
|
})]
|
|
60
85
|
})]
|
|
61
86
|
});
|
|
@@ -23,16 +23,16 @@ var FullTabsMenu = function FullTabsMenu(_ref) {
|
|
|
23
23
|
var tabsSections = _ref.tabsSections,
|
|
24
24
|
_ref$status = _ref.status,
|
|
25
25
|
status = _ref$status === void 0 ? "" : _ref$status,
|
|
26
|
-
profileImage = _ref.profileImage,
|
|
27
26
|
activeTab = _ref.activeTab,
|
|
28
27
|
setActiveTab = _ref.setActiveTab,
|
|
29
28
|
setImageLayout = _ref.setImageLayout,
|
|
30
|
-
saveDatasheets = _ref.saveDatasheets,
|
|
31
|
-
saveDescriptions = _ref.saveDescriptions,
|
|
32
|
-
updateImages = _ref.updateImages,
|
|
33
29
|
assig = _ref.assig,
|
|
34
30
|
setAssignation = _ref.setAssignation,
|
|
35
|
-
isRetailer = _ref.isRetailer
|
|
31
|
+
isRetailer = _ref.isRetailer,
|
|
32
|
+
downloadImages = _ref.downloadImages,
|
|
33
|
+
askToDeleteImages = _ref.askToDeleteImages,
|
|
34
|
+
onClickSave = _ref.onClickSave,
|
|
35
|
+
showSaveButton = _ref.showSaveButton;
|
|
36
36
|
|
|
37
37
|
var _useState = (0, _react.useState)(false),
|
|
38
38
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -45,17 +45,17 @@ var FullTabsMenu = function FullTabsMenu(_ref) {
|
|
|
45
45
|
setImagesSection: setImagesSection,
|
|
46
46
|
setActiveTab: setActiveTab
|
|
47
47
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusAsignationInfo, {
|
|
48
|
-
status: status
|
|
48
|
+
status: status,
|
|
49
49
|
activeTab: activeTab,
|
|
50
|
-
image: profileImage,
|
|
51
50
|
setImageLayout: setImageLayout,
|
|
52
51
|
imagesSection: imagesSection,
|
|
53
|
-
saveDatasheets: saveDatasheets,
|
|
54
|
-
saveDescriptions: saveDescriptions,
|
|
55
|
-
updateImages: updateImages,
|
|
56
52
|
assignationsImages: assig,
|
|
57
53
|
setAssignation: setAssignation,
|
|
58
|
-
isRetailer: isRetailer
|
|
54
|
+
isRetailer: isRetailer,
|
|
55
|
+
downloadImages: downloadImages,
|
|
56
|
+
onClickSave: onClickSave,
|
|
57
|
+
askToDeleteImages: askToDeleteImages,
|
|
58
|
+
showSaveButton: showSaveButton
|
|
59
59
|
})]
|
|
60
60
|
});
|
|
61
61
|
};
|
|
@@ -0,0 +1,73 @@
|
|
|
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.GlobalModal = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _reactImageFallback = _interopRequireDefault(require("react-image-fallback"));
|
|
13
|
+
|
|
14
|
+
var _styles = require("./styles");
|
|
15
|
+
|
|
16
|
+
var _yellowAlert = _interopRequireDefault(require("../../../assets/images/genericModal/yellowAlert.svg"));
|
|
17
|
+
|
|
18
|
+
var _closeWhite = _interopRequireDefault(require("../../../assets/images/genericModal/closeWhite.svg"));
|
|
19
|
+
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
props (* required):
|
|
24
|
+
- *close: function to quit pop up e.g close={() => setShow(!show)}
|
|
25
|
+
- button1/button2: name and action button e.g. button1={{ name: 'Cancelar', action: () => console.log('Cancelar') }}
|
|
26
|
+
- img: source image
|
|
27
|
+
- *message: message to show (like title)
|
|
28
|
+
- detail: message detail
|
|
29
|
+
- withoutImg: if the value is "true" the icon will not be displayed, if this attribute is ignored or has the value of "false" the icon will be displayed
|
|
30
|
+
- customComponent: contains a custom component
|
|
31
|
+
*/
|
|
32
|
+
var GlobalModal = function GlobalModal(props) {
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.MainContainer, {
|
|
34
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.MessageContainer, {
|
|
35
|
+
height: props.button1 || props.button2,
|
|
36
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Header, {
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Icon, {
|
|
38
|
+
widthImg: props.widthImg,
|
|
39
|
+
heightImg: props.heightImg,
|
|
40
|
+
children: !props.withoutImg && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactImageFallback.default, {
|
|
41
|
+
src: props.img,
|
|
42
|
+
fallbackImage: _yellowAlert.default,
|
|
43
|
+
alt: ""
|
|
44
|
+
})
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Close, {
|
|
46
|
+
onClick: props.close,
|
|
47
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
48
|
+
src: _closeWhite.default,
|
|
49
|
+
alt: "Cerrar"
|
|
50
|
+
})
|
|
51
|
+
})]
|
|
52
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Message, {
|
|
53
|
+
children: [props.bold && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.BoldText, {
|
|
54
|
+
children: props.bold
|
|
55
|
+
}), " ", props.message]
|
|
56
|
+
}), props.detail && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Detail, {
|
|
57
|
+
children: "".concat(props.detail, " ")
|
|
58
|
+
}), props.textArea && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.TextArea, {
|
|
59
|
+
id: "area"
|
|
60
|
+
}), props.customComponent && props.customComponent, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.ContainerButtons, {
|
|
61
|
+
children: [props.button1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.FirstButton, {
|
|
62
|
+
onClick: props.button1.action,
|
|
63
|
+
children: props.button1.name
|
|
64
|
+
}), props.button2 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Button, {
|
|
65
|
+
onClick: props.button2.action,
|
|
66
|
+
children: props.button2.name
|
|
67
|
+
})]
|
|
68
|
+
})]
|
|
69
|
+
})
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
exports.GlobalModal = GlobalModal;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.TextArea = exports.MessageContainer = exports.Message = exports.MainContainer = exports.Icon = exports.Header = exports.FirstButton = exports.Detail = exports.ContainerButtons = exports.Close = exports.Button = exports.BoldText = 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, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
15
|
+
|
|
16
|
+
var MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n background: #281f3366;\n z-index: 15;\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
|
|
17
|
+
|
|
18
|
+
exports.MainContainer = MainContainer;
|
|
19
|
+
|
|
20
|
+
var Header = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 100%;\n justify-content: center;\n"])));
|
|
21
|
+
|
|
22
|
+
exports.Header = Header;
|
|
23
|
+
|
|
24
|
+
var MessageContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n padding: 40px 20px;\n box-sizing: border-box;\n width: 600px;\n min-height: ", ";\n background: #281f33;\n border-radius: 39px;\n"])), function (props) {
|
|
25
|
+
return props.height ? "300px" : "190px";
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
exports.MessageContainer = MessageContainer;
|
|
29
|
+
|
|
30
|
+
var TextArea = _styledComponents.default.textarea(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n width: 479px;\n height: 84px;\n background: #f0eef2;\n border-radius: 4px;\n color: #817393;\n margin-bottom: 10px;\n"])));
|
|
31
|
+
|
|
32
|
+
exports.TextArea = TextArea;
|
|
33
|
+
|
|
34
|
+
var Close = _styledComponents.default.figure(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n cursor: pointer;\n right: 45px;\n > img {\n width: 14px;\n height: 14px;\n }\n"])));
|
|
35
|
+
|
|
36
|
+
exports.Close = Close;
|
|
37
|
+
|
|
38
|
+
var Icon = _styledComponents.default.figure(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin-bottom: 10px;\n height: ", ";\n > img {\n width: ", ";\n height: ", ";\n }\n"])), function (props) {
|
|
39
|
+
return props.heightImg && props.heightImg;
|
|
40
|
+
}, function (props) {
|
|
41
|
+
return props.widthImg ? props.widthImg : "85px";
|
|
42
|
+
}, function (props) {
|
|
43
|
+
return props.heightImg ? props.heightImg : "85px";
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
exports.Icon = Icon;
|
|
47
|
+
|
|
48
|
+
var BoldText = _styledComponents.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 600;\n"])));
|
|
49
|
+
|
|
50
|
+
exports.BoldText = BoldText;
|
|
51
|
+
|
|
52
|
+
var Message = _styledComponents.default.p(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n font-family: Raleway;\n font-style: normal;\n font-weight: normal;\n font-size: 24px;\n text-align: center;\n color: #f7f7f7;\n margin: 20px 0px;\n"])));
|
|
53
|
+
|
|
54
|
+
exports.Message = Message;
|
|
55
|
+
|
|
56
|
+
var ContainerButtons = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-around;\n"])));
|
|
57
|
+
|
|
58
|
+
exports.ContainerButtons = ContainerButtons;
|
|
59
|
+
|
|
60
|
+
var FirstButton = _styledComponents.default.p(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n padding: 0 40px;\n border: 1px solid #f0eef2;\n box-sizing: border-box;\n border-radius: 30px;\n font-family: Avenir Next;\n font-style: normal;\n font-weight: 500;\n font-size: 18px;\n color: #f0eef2;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n"])));
|
|
61
|
+
|
|
62
|
+
exports.FirstButton = FirstButton;
|
|
63
|
+
var Button = (0, _styledComponents.default)(FirstButton)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n border: 0;\n background: #e33aa9;\n cursor: pointer;\n"])));
|
|
64
|
+
exports.Button = Button;
|
|
65
|
+
var Detail = (0, _styledComponents.default)(Message)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: bold;\n font-size: 18px;\n white-space: normal;\n"])));
|
|
66
|
+
exports.Detail = Detail;
|
|
@@ -30,7 +30,9 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
30
30
|
assignationsImages = _ref.assignationsImages,
|
|
31
31
|
imagesStatus = _ref.imagesStatus,
|
|
32
32
|
setAssignation = _ref.setAssignation,
|
|
33
|
-
isRetailer = _ref.isRetailer
|
|
33
|
+
isRetailer = _ref.isRetailer,
|
|
34
|
+
onClickSave = _ref.onClickSave,
|
|
35
|
+
showSaveButton = _ref.showSaveButton;
|
|
34
36
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
35
37
|
darkMode: darkMode,
|
|
36
38
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TableHeader.TableHeader, {
|
|
@@ -38,16 +40,18 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
38
40
|
activeImage: activeImage,
|
|
39
41
|
assignationsImages: assignationsImages,
|
|
40
42
|
setAssignation: setAssignation,
|
|
41
|
-
isRetailer: isRetailer
|
|
43
|
+
isRetailer: isRetailer,
|
|
44
|
+
showSaveButton: showSaveButton,
|
|
45
|
+
onClickSave: onClickSave
|
|
42
46
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
43
47
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
44
48
|
headerType: "table-row-text",
|
|
45
49
|
text: "Tipo de toma"
|
|
46
50
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
47
51
|
headerType: "table-row-text gray-table-row",
|
|
48
|
-
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) {
|
|
52
|
+
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) {
|
|
49
53
|
return f.id === +(activeImage === null || activeImage === void 0 ? void 0 : activeImage.image_id);
|
|
50
|
-
})) === null || _lists$inputs$find === void 0 ? void 0 : _lists$inputs$find.name
|
|
54
|
+
})) === null || _lists$inputs$find === void 0 ? void 0 : _lists$inputs$find.name) || "-"
|
|
51
55
|
})]
|
|
52
56
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
53
57
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
@@ -55,9 +59,9 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
55
59
|
text: "Tipo de empaque"
|
|
56
60
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
57
61
|
headerType: "table-row-text gray-table-row",
|
|
58
|
-
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) {
|
|
62
|
+
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) {
|
|
59
63
|
return f.id === +(activeImage === null || activeImage === void 0 ? void 0 : activeImage.packing_type);
|
|
60
|
-
})) === null || _lists$imagePackaging2 === void 0 ? void 0 : _lists$imagePackaging2.name
|
|
64
|
+
})) === null || _lists$imagePackaging2 === void 0 ? void 0 : _lists$imagePackaging2.name) || "-"
|
|
61
65
|
})]
|
|
62
66
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
63
67
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
@@ -65,9 +69,9 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
65
69
|
text: "Tipo de imagen"
|
|
66
70
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
67
71
|
headerType: "table-row-text gray-table-row",
|
|
68
|
-
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) {
|
|
72
|
+
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) {
|
|
69
73
|
return f.id === +(activeImage === null || activeImage === void 0 ? void 0 : activeImage.image_type);
|
|
70
|
-
})) === null || _lists$imageType$find === void 0 ? void 0 : _lists$imageType$find.name
|
|
74
|
+
})) === null || _lists$imageType$find === void 0 ? void 0 : _lists$imageType$find.name) || "-"
|
|
71
75
|
})]
|
|
72
76
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
73
77
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
@@ -75,7 +79,7 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
75
79
|
text: "Formato"
|
|
76
80
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
77
81
|
headerType: "table-row-text",
|
|
78
|
-
text: activeImage === null || activeImage === void 0 ? void 0 : activeImage.ext
|
|
82
|
+
text: (activeImage === null || activeImage === void 0 ? void 0 : activeImage.ext) || "-"
|
|
79
83
|
})]
|
|
80
84
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
81
85
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
@@ -83,13 +87,13 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
83
87
|
text: "Tama\xF1o de imagen"
|
|
84
88
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
85
89
|
headerType: "table-row-text",
|
|
86
|
-
text: "".concat(activeImage === null || activeImage === void 0 ? void 0 : activeImage.width, "x").concat(activeImage === null || activeImage === void 0 ? void 0 : activeImage.height, "px")
|
|
90
|
+
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") : "-"
|
|
87
91
|
})]
|
|
88
92
|
}), 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) {
|
|
89
93
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
90
94
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
91
95
|
headerType: "table-row-text",
|
|
92
|
-
text: attr === null || attr === void 0 ? void 0 : attr.name
|
|
96
|
+
text: (attr === null || attr === void 0 ? void 0 : attr.name) || "-"
|
|
93
97
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LabelToInput.default, {
|
|
94
98
|
width: "100px",
|
|
95
99
|
defaultValue: attr === null || attr === void 0 ? void 0 : attr.value,
|
|
@@ -98,11 +102,13 @@ var ImageDataTable = function ImageDataTable(_ref) {
|
|
|
98
102
|
action: "changeAttrValue",
|
|
99
103
|
retailer: retailerSelected,
|
|
100
104
|
index: index,
|
|
101
|
-
value: e.target.value
|
|
105
|
+
value: e.target.value || "-",
|
|
106
|
+
name: attr.name,
|
|
107
|
+
retailersId: Object.keys(lists.attrForImgs).slice(0, -1)
|
|
102
108
|
});
|
|
103
109
|
}
|
|
104
110
|
})]
|
|
105
|
-
}, "row-" + index);
|
|
111
|
+
}, "row-" + index + "-" + (attr === null || attr === void 0 ? void 0 : attr.name));
|
|
106
112
|
}))]
|
|
107
113
|
});
|
|
108
114
|
};
|
|
@@ -44,38 +44,43 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
44
44
|
|
|
45
45
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
46
46
|
className: activeSection === "Ficha técnica" ? "datasheets-layout" : "descriptions-layout",
|
|
47
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
47
|
+
children: [(inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.dataGroup) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
48
48
|
headerType: "retailer-name-header",
|
|
49
49
|
text: inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.dataGroup
|
|
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;
|
|
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
|
-
inputId: (_dataInputs$
|
|
56
|
+
inputId: (_dataInputs$input3 = dataInputs[input]) === null || _dataInputs$input3 === void 0 ? void 0 : _dataInputs$input3.id,
|
|
57
57
|
version: version,
|
|
58
|
-
inputType: inputTypeValue((_dataInputs$
|
|
59
|
-
label: (_dataInputs$
|
|
60
|
-
value: (_dataInputs$
|
|
58
|
+
inputType: inputTypeValue((_dataInputs$input4 = dataInputs[input]) === null || _dataInputs$input4 === void 0 ? void 0 : _dataInputs$input4.type),
|
|
59
|
+
label: ((_dataInputs$input5 = dataInputs[input]) === null || _dataInputs$input5 === void 0 ? void 0 : _dataInputs$input5.name) + ((_dataInputs$input6 = dataInputs[input]) !== null && _dataInputs$input6 !== void 0 && _dataInputs$input6.required ? "*" : ""),
|
|
60
|
+
value: (_dataInputs$input7 = dataInputs[input]) === null || _dataInputs$input7 === void 0 ? void 0 : _dataInputs$input7.value,
|
|
61
61
|
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
62
62
|
articleId: articleId,
|
|
63
|
-
isRequired: (_dataInputs$
|
|
63
|
+
isRequired: (_dataInputs$input8 = dataInputs[input]) === null || _dataInputs$input8 === void 0 ? void 0 : _dataInputs$input8.required,
|
|
64
64
|
updatedDatasheets: updatedDatasheets,
|
|
65
|
-
setUpdatedDatasheets: setUpdatedDatasheets
|
|
66
|
-
|
|
67
|
-
|
|
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,
|
|
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
|
|
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, {
|
|
70
|
+
inputId: input.id,
|
|
68
71
|
index: index,
|
|
69
72
|
inputType: "textarea",
|
|
70
|
-
label: input === null || input === void 0 ? void 0 : input.name,
|
|
73
|
+
label: (input === null || input === void 0 ? void 0 : input.name) + (input.required ? "*" : ""),
|
|
71
74
|
value: input === null || input === void 0 ? void 0 : input.value,
|
|
72
75
|
isRequired: input.required,
|
|
76
|
+
maxChar: input.max_chars,
|
|
73
77
|
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
74
78
|
updatedDescriptions: updatedDescriptions,
|
|
75
79
|
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
76
80
|
articleId: articleId,
|
|
77
81
|
version: version,
|
|
78
|
-
dinamicHeight: dinamicHeight
|
|
82
|
+
dinamicHeight: dinamicHeight,
|
|
83
|
+
description: input === null || input === void 0 ? void 0 : input.description
|
|
79
84
|
}, index + "-" + (input === null || input === void 0 ? void 0 : input.value));
|
|
80
85
|
})
|
|
81
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;
|
|
@@ -23,8 +23,6 @@ var _ValidationPanel = require("../../atoms/ValidationPanel");
|
|
|
23
23
|
|
|
24
24
|
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
25
25
|
|
|
26
|
-
var _data = require("../../../global-files/data");
|
|
27
|
-
|
|
28
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
27
|
|
|
30
28
|
var ProductImageModal = function ProductImageModal(_ref) {
|
|
@@ -35,8 +33,7 @@ var ProductImageModal = function ProductImageModal(_ref) {
|
|
|
35
33
|
headerInfo = _ref.headerInfo,
|
|
36
34
|
validation = _ref.validation,
|
|
37
35
|
setShowModal = _ref.setShowModal,
|
|
38
|
-
sendToFacilitator = _ref.sendToFacilitator
|
|
39
|
-
approveRejectButtons = _ref.approveRejectButtons;
|
|
36
|
+
sendToFacilitator = _ref.sendToFacilitator;
|
|
40
37
|
|
|
41
38
|
var _useState = (0, _react.useState)(0),
|
|
42
39
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -71,7 +68,7 @@ var ProductImageModal = function ProductImageModal(_ref) {
|
|
|
71
68
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
72
69
|
className: "modal-image-container",
|
|
73
70
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductImage.ProductImage, {
|
|
74
|
-
img: images === null || images === void 0 ? void 0 : (_images$values$active = images.values[activeImage]) === null || _images$values$active === void 0 ? void 0 : _images$values$active.
|
|
71
|
+
img: "https://" + process.env.REACT_APP_IMAGES_BUCKET + ".s3.amazonaws.com/" + (images === null || images === void 0 ? void 0 : (_images$values$active = images.values[activeImage]) === null || _images$values$active === void 0 ? void 0 : _images$values$active.srcDB),
|
|
75
72
|
altText: images === null || images === void 0 ? void 0 : (_images$values$active2 = images.values[activeImage]) === null || _images$values$active2 === void 0 ? void 0 : _images$values$active2.name,
|
|
76
73
|
imageType: "expanded-modal-image"
|
|
77
74
|
})
|
|
@@ -81,7 +78,7 @@ var ProductImageModal = function ProductImageModal(_ref) {
|
|
|
81
78
|
className: "validation-and-table-container",
|
|
82
79
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
83
80
|
className: "validation-panel",
|
|
84
|
-
children: [
|
|
81
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
85
82
|
buttonType: "circular-button ".concat(buttonType),
|
|
86
83
|
onClick: function onClick() {
|
|
87
84
|
return setShowValidationPanel(true);
|