contentoh-components-library 21.4.69 → 21.4.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/images/Icons/infoNR.svg +8 -0
- package/dist/assets/images/flagsv2/highPriority.svg +3 -0
- package/dist/assets/images/flagsv2/lowPriority.svg +3 -0
- package/dist/assets/images/flagsv2/mediumPriority.svg +3 -0
- package/dist/assets/images/flagsv2/noPriority.svg +3 -0
- package/dist/assets/images/generalButton/closeIconWhite.svg +4 -0
- package/dist/assets/images/generalButton/closeIconv2.svg +4 -0
- package/dist/components/atoms/CharsMissing/Wysiwyg.stories.js +30 -0
- package/dist/components/atoms/CharsMissing/index.js +89 -0
- package/dist/components/atoms/CharsMissing/styles.js +33 -0
- package/dist/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +32 -0
- package/dist/components/atoms/FeatureTagv2/index.js +29 -0
- package/dist/components/atoms/FeatureTagv2/styles.js +22 -0
- package/dist/components/atoms/GeneralButton/styles.js +6 -2
- package/dist/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +50 -0
- package/dist/components/atoms/GeneralInputv2/index.js +188 -0
- package/dist/components/atoms/GeneralInputv2/styles.js +29 -0
- package/dist/components/atoms/InputFormatter/styles.js +3 -3
- package/dist/components/atoms/InputFormatterv2/Wysiwyg.stories.js +30 -0
- package/dist/components/atoms/InputFormatterv2/index.js +182 -0
- package/dist/components/atoms/InputFormatterv2/styles.js +33 -0
- package/dist/components/atoms/InputImages/InputImages.stories.js +34 -0
- package/dist/components/atoms/InputImages/index.js +46 -0
- package/dist/components/atoms/InputImages/styles.js +20 -0
- package/dist/components/atoms/NumberMandatory/NumberMandatory.stories.js +34 -0
- package/dist/components/atoms/NumberMandatory/index.js +35 -0
- package/dist/components/atoms/NumberMandatory/styles.js +20 -0
- package/dist/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +38 -0
- package/dist/components/atoms/PriorityFlagv2/index.js +37 -0
- package/dist/components/atoms/PriorityFlagv2/styles.js +18 -0
- package/dist/components/atoms/ProductImagev2/ProductImagev2.stories.js +39 -0
- package/dist/components/atoms/ProductImagev2/index.js +34 -0
- package/dist/components/atoms/ProductImagev2/styles.js +18 -0
- package/dist/components/atoms/Progress/Progress.stories.js +49 -0
- package/dist/components/atoms/Progress/index.js +74 -0
- package/dist/components/atoms/Progress/styles.js +30 -0
- package/dist/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +67 -0
- package/dist/components/atoms/ScreenHeaderv2/index.js +169 -0
- package/dist/components/atoms/ScreenHeaderv2/styles.js +40 -0
- package/dist/components/atoms/Selectv2/VersionSelect.js +38 -0
- package/dist/components/atoms/Selectv2/index.js +40 -0
- package/dist/components/atoms/Selectv2/style.js +38 -0
- package/dist/components/atoms/TabSectionv2/TabSection.stories.js +39 -0
- package/dist/components/atoms/TabSectionv2/index.js +26 -0
- package/dist/components/atoms/TabSectionv2/styles.js +20 -0
- package/dist/components/atoms/TooltipLight/Tooltip.stories.js +36 -0
- package/dist/components/atoms/TooltipLight/index.js +117 -0
- package/dist/components/atoms/TooltipLight/styles.js +23 -0
- package/dist/components/atoms/WordsMissing/Wysiwyg.stories.js +30 -0
- package/dist/components/atoms/WordsMissing/index.js +89 -0
- package/dist/components/atoms/WordsMissing/styles.js +20 -0
- package/dist/components/molecules/AsignationInfo/AsignationInfo.stories.js +34 -0
- package/dist/components/molecules/AsignationInfo/index.js +137 -0
- package/dist/components/molecules/AsignationInfo/styles.js +20 -0
- package/dist/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +28 -0
- package/dist/components/molecules/EditionActiveImagev2/index.js +34 -0
- package/dist/components/molecules/EditionActiveImagev2/styles.js +18 -0
- package/dist/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +45 -0
- package/dist/components/molecules/FeaturesBarv2/index.js +49 -0
- package/dist/components/molecules/FeaturesBarv2/styles.js +18 -0
- package/dist/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +45 -0
- package/dist/components/molecules/GalleryElementv2/index.js +164 -0
- package/dist/components/molecules/GalleryElementv2/styles.js +20 -0
- package/dist/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +28 -0
- package/dist/components/molecules/GalleryHeaderv2/index.js +61 -0
- package/dist/components/molecules/GalleryHeaderv2/styles.js +20 -0
- package/dist/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +27 -0
- package/dist/components/molecules/HeaderTopv2/index.js +123 -0
- package/dist/components/molecules/HeaderTopv2/styles.js +18 -0
- package/dist/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +55 -0
- package/dist/components/molecules/ImageSelectorv2/index.js +36 -0
- package/dist/components/molecules/ImageSelectorv2/styles.js +18 -0
- package/dist/components/molecules/Phase/Phase.stories.js +65 -0
- package/dist/components/molecules/Phase/index.js +104 -0
- package/dist/components/molecules/Phase/styles.js +24 -0
- package/dist/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +65 -0
- package/dist/components/molecules/ProductNameHeaderv2/index.js +24 -0
- package/dist/components/molecules/ProductNameHeaderv2/styles.js +18 -0
- package/dist/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +65 -0
- package/dist/components/molecules/ProductSkuStatus/index.js +36 -0
- package/dist/components/molecules/ProductSkuStatus/styles.js +18 -0
- package/dist/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +48 -0
- package/dist/components/molecules/RetailerSelectorv2/index.js +109 -0
- package/dist/components/molecules/RetailerSelectorv2/styles.js +20 -0
- package/dist/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +99 -0
- package/dist/components/molecules/ServiceDataValidator/index.js +57 -0
- package/dist/components/molecules/ServiceDataValidator/styles.js +20 -0
- package/dist/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +34 -0
- package/dist/components/molecules/StatusRetailer/index.js +74 -0
- package/dist/components/molecules/StatusRetailer/styles.js +20 -0
- package/dist/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +35 -0
- package/dist/components/molecules/TabsMenuv2/index.js +145 -0
- package/dist/components/molecules/TabsMenuv2/styles.js +18 -0
- package/dist/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +41 -0
- package/dist/components/molecules/TagAndInputv2/index.js +92 -0
- package/dist/components/molecules/TagAndInputv2/styles.js +29 -0
- package/dist/components/molecules/Validation/Validation.stories.js +28 -0
- package/dist/components/molecules/Validation/index.js +89 -0
- package/dist/components/molecules/Validation/styles.js +18 -0
- package/dist/components/molecules/VersionItemv2/VersionItemv2.stories.js +28 -0
- package/dist/components/molecules/VersionItemv2/index.js +74 -0
- package/dist/components/molecules/VersionItemv2/styles.js +20 -0
- package/dist/components/organisms/BarButtons/BarButtons.stories.js +30 -0
- package/dist/components/organisms/BarButtons/index.js +186 -0
- package/dist/components/organisms/BarButtons/styles.js +24 -0
- package/dist/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +83 -0
- package/dist/components/organisms/Chatv2/ChatLists/index.js +160 -0
- package/dist/components/organisms/Chatv2/ChatLists/styles.js +29 -0
- package/dist/components/organisms/Chatv2/Chatv2.stories.js +194 -0
- package/dist/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +176 -0
- package/dist/components/organisms/Chatv2/ContainerItems/index.js +556 -0
- package/dist/components/organisms/Chatv2/ContainerItems/styles.js +20 -0
- package/dist/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +142 -0
- package/dist/components/organisms/Chatv2/ContentChat/index.js +1679 -0
- package/dist/components/organisms/Chatv2/ContentChat/styles.js +20 -0
- package/dist/components/organisms/Chatv2/Footer/Footer.stories.js +43 -0
- package/dist/components/organisms/Chatv2/Footer/index.js +984 -0
- package/dist/components/organisms/Chatv2/Footer/styles.js +32 -0
- package/dist/components/organisms/Chatv2/Header/Header.stories.js +96 -0
- package/dist/components/organisms/Chatv2/Header/index.js +83 -0
- package/dist/components/organisms/Chatv2/Header/styles.js +20 -0
- package/dist/components/organisms/Chatv2/index.js +306 -0
- package/dist/components/organisms/Chatv2/styles.js +34 -0
- package/dist/components/organisms/CompleteServices/CompleteServices.stories.js +100 -0
- package/dist/components/organisms/CompleteServices/index.js +93 -0
- package/dist/components/organisms/CompleteServices/styles.js +20 -0
- package/dist/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +28 -0
- package/dist/components/organisms/DragAndDropPhases/index.js +110 -0
- package/dist/components/organisms/DragAndDropPhases/styles.js +20 -0
- package/dist/components/organisms/DragPrueba/DragPrueba.stories.js +28 -0
- package/dist/components/organisms/DragPrueba/index.js +95 -0
- package/dist/components/organisms/DragPrueba/styles.js +20 -0
- package/dist/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +54 -0
- package/dist/components/organisms/FullProductNamev2/index.js +112 -0
- package/dist/components/organisms/FullProductNamev2/styles.js +20 -0
- package/dist/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +39 -0
- package/dist/components/organisms/FullTabsMenuv2/index.js +168 -0
- package/dist/components/organisms/FullTabsMenuv2/styles.js +18 -0
- package/dist/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +50 -0
- package/dist/components/organisms/ImageDataTablev2/index.js +128 -0
- package/dist/components/organisms/ImageDataTablev2/styles.js +26 -0
- package/dist/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +48 -0
- package/dist/components/organisms/ImagePreviewerv2/index.js +36 -0
- package/dist/components/organisms/ImagePreviewerv2/styles.js +18 -0
- package/dist/components/organisms/InputGroupv2/InputGroupv2.stories.js +73 -0
- package/dist/components/organisms/InputGroupv2/index.js +228 -0
- package/dist/components/organisms/InputGroupv2/styles.js +28 -0
- package/dist/components/organisms/MandatoryBar/MandatoryBar.stories.js +31 -0
- package/dist/components/organisms/MandatoryBar/index.js +38 -0
- package/dist/components/organisms/MandatoryBar/styles.js +20 -0
- package/dist/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +153 -0
- package/dist/components/organisms/ProductImageModalv2/index.js +106 -0
- package/dist/components/organisms/ProductImageModalv2/styles.js +20 -0
- package/dist/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +31 -0
- package/dist/components/organisms/RenameImagesBar/index.js +38 -0
- package/dist/components/organisms/RenameImagesBar/styles.js +20 -0
- package/dist/components/organisms/VersionSelector/index.js +2 -4
- package/dist/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +32 -0
- package/dist/components/organisms/VersionSelectorv2/index.js +166 -0
- package/dist/components/organisms/VersionSelectorv2/styles.js +20 -0
- package/dist/components/pages/ProductEditionv2/ProductEditionv2.stories.js +222 -0
- package/dist/components/pages/ProductEditionv2/index.js +2495 -0
- package/dist/components/pages/ProductEditionv2/styles.js +23 -0
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +34 -38
- package/dist/components/pages/ProviderProductEdition/index.js +63 -52
- package/dist/global-files/variables.js +3 -1
- package/package.json +1 -1
- package/src/assets/images/Icons/infoNR.svg +8 -0
- package/src/assets/images/flagsv2/highPriority.svg +3 -0
- package/src/assets/images/flagsv2/lowPriority.svg +3 -0
- package/src/assets/images/flagsv2/mediumPriority.svg +3 -0
- package/src/assets/images/flagsv2/noPriority.svg +3 -0
- package/src/assets/images/generalButton/closeIconWhite.svg +4 -0
- package/src/assets/images/generalButton/closeIconv2.svg +4 -0
- package/src/components/atoms/CharsMissing/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/CharsMissing/index.js +60 -0
- package/src/components/atoms/CharsMissing/styles.js +44 -0
- package/src/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +16 -0
- package/src/components/atoms/FeatureTagv2/index.js +10 -0
- package/src/components/atoms/FeatureTagv2/styles.js +56 -0
- package/src/components/atoms/GeneralButton/styles.js +46 -0
- package/src/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +33 -0
- package/src/components/atoms/GeneralInputv2/index.js +155 -0
- package/src/components/atoms/GeneralInputv2/styles.js +67 -0
- package/src/components/atoms/InputFormatter/styles.js +7 -3
- package/src/components/atoms/InputFormatterv2/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/InputFormatterv2/index.js +148 -0
- package/src/components/atoms/InputFormatterv2/styles.js +39 -0
- package/src/components/atoms/InputImages/InputImages.stories.js +19 -0
- package/src/components/atoms/InputImages/index.js +25 -0
- package/src/components/atoms/InputImages/styles.js +17 -0
- package/src/components/atoms/NumberMandatory/NumberMandatory.stories.js +19 -0
- package/src/components/atoms/NumberMandatory/index.js +16 -0
- package/src/components/atoms/NumberMandatory/styles.js +11 -0
- package/src/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +20 -0
- package/src/components/atoms/PriorityFlagv2/index.js +20 -0
- package/src/components/atoms/PriorityFlagv2/styles.js +6 -0
- package/src/components/atoms/ProductImagev2/ProductImagev2.stories.js +28 -0
- package/src/components/atoms/ProductImagev2/index.js +16 -0
- package/src/components/atoms/ProductImagev2/styles.js +62 -0
- package/src/components/atoms/Progress/Progress.stories.js +25 -0
- package/src/components/atoms/Progress/index.js +74 -0
- package/src/components/atoms/Progress/styles.js +98 -0
- package/src/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +53 -0
- package/src/components/atoms/ScreenHeaderv2/index.js +134 -0
- package/src/components/atoms/ScreenHeaderv2/styles.js +103 -0
- package/src/components/atoms/Selectv2/VersionSelect.js +27 -0
- package/src/components/atoms/Selectv2/index.js +35 -0
- package/src/components/atoms/Selectv2/style.js +93 -0
- package/src/components/atoms/TabSection/index.js +1 -1
- package/src/components/atoms/TabSectionv2/TabSection.stories.js +25 -0
- package/src/components/atoms/TabSectionv2/index.js +9 -0
- package/src/components/atoms/TabSectionv2/styles.js +20 -0
- package/src/components/atoms/TooltipLight/Tooltip.stories.js +20 -0
- package/src/components/atoms/TooltipLight/index.js +46 -0
- package/src/components/atoms/TooltipLight/styles.js +65 -0
- package/src/components/atoms/WordsMissing/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/WordsMissing/index.js +60 -0
- package/src/components/atoms/WordsMissing/styles.js +10 -0
- package/src/components/molecules/AsignationInfo/AsignationInfo.stories.js +17 -0
- package/src/components/molecules/AsignationInfo/index.js +108 -0
- package/src/components/molecules/AsignationInfo/styles.js +86 -0
- package/src/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +12 -0
- package/src/components/molecules/EditionActiveImagev2/index.js +15 -0
- package/src/components/molecules/EditionActiveImagev2/styles.js +7 -0
- package/src/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +20 -0
- package/src/components/molecules/FeaturesBarv2/index.js +32 -0
- package/src/components/molecules/FeaturesBarv2/styles.js +17 -0
- package/src/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +30 -0
- package/src/components/molecules/GalleryElementv2/index.js +142 -0
- package/src/components/molecules/GalleryElementv2/styles.js +119 -0
- package/src/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +10 -0
- package/src/components/molecules/GalleryHeaderv2/index.js +25 -0
- package/src/components/molecules/GalleryHeaderv2/styles.js +47 -0
- package/src/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +10 -0
- package/src/components/molecules/HeaderTopv2/index.js +100 -0
- package/src/components/molecules/HeaderTopv2/styles.js +33 -0
- package/src/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +46 -0
- package/src/components/molecules/ImageSelectorv2/index.js +22 -0
- package/src/components/molecules/ImageSelectorv2/styles.js +15 -0
- package/src/components/molecules/Phase/Phase.stories.js +37 -0
- package/src/components/molecules/Phase/index.js +56 -0
- package/src/components/molecules/Phase/styles.js +82 -0
- package/src/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +37 -0
- package/src/components/molecules/ProductNameHeaderv2/index.js +12 -0
- package/src/components/molecules/ProductNameHeaderv2/styles.js +10 -0
- package/src/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +37 -0
- package/src/components/molecules/ProductSkuStatus/index.js +26 -0
- package/src/components/molecules/ProductSkuStatus/styles.js +7 -0
- package/src/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +35 -0
- package/src/components/molecules/RetailerSelectorv2/index.js +80 -0
- package/src/components/molecules/RetailerSelectorv2/styles.js +21 -0
- package/src/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +90 -0
- package/src/components/molecules/ServiceDataValidator/index.js +49 -0
- package/src/components/molecules/ServiceDataValidator/styles.js +36 -0
- package/src/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +17 -0
- package/src/components/molecules/StatusRetailer/index.js +55 -0
- package/src/components/molecules/StatusRetailer/styles.js +85 -0
- package/src/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +19 -0
- package/src/components/molecules/TabsMenuv2/index.js +112 -0
- package/src/components/molecules/TabsMenuv2/styles.js +19 -0
- package/src/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +24 -0
- package/src/components/molecules/TagAndInputv2/index.js +86 -0
- package/src/components/molecules/TagAndInputv2/styles.js +35 -0
- package/src/components/molecules/Validation/Validation.stories.js +12 -0
- package/src/components/molecules/Validation/index.js +77 -0
- package/src/components/molecules/Validation/styles.js +19 -0
- package/src/components/molecules/VersionItemv2/VersionItemv2.stories.js +14 -0
- package/src/components/molecules/VersionItemv2/index.js +59 -0
- package/src/components/molecules/VersionItemv2/styles.js +47 -0
- package/src/components/organisms/BarButtons/BarButtons.stories.js +13 -0
- package/src/components/organisms/BarButtons/index.js +150 -0
- package/src/components/organisms/BarButtons/styles.js +54 -0
- package/src/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +65 -0
- package/src/components/organisms/Chatv2/ChatLists/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chatv2/ChatLists/THD.png +0 -0
- package/src/components/organisms/Chatv2/ChatLists/index.js +141 -0
- package/src/components/organisms/Chatv2/ChatLists/styles.js +162 -0
- package/src/components/organisms/Chatv2/Chatv2.stories.js +184 -0
- package/src/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +142 -0
- package/src/components/organisms/Chatv2/ContainerItems/index.js +538 -0
- package/src/components/organisms/Chatv2/ContainerItems/styles.js +360 -0
- package/src/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +102 -0
- package/src/components/organisms/Chatv2/ContentChat/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chatv2/ContentChat/THD.png +0 -0
- package/src/components/organisms/Chatv2/ContentChat/index.js +1016 -0
- package/src/components/organisms/Chatv2/ContentChat/styles.js +44 -0
- package/src/components/organisms/Chatv2/Footer/Footer.stories.js +22 -0
- package/src/components/organisms/Chatv2/Footer/index.js +668 -0
- package/src/components/organisms/Chatv2/Footer/styles.js +290 -0
- package/src/components/organisms/Chatv2/Header/Header.stories.js +66 -0
- package/src/components/organisms/Chatv2/Header/index.js +93 -0
- package/src/components/organisms/Chatv2/Header/styles.js +49 -0
- package/src/components/organisms/Chatv2/index.js +281 -0
- package/src/components/organisms/Chatv2/styles.js +85 -0
- package/src/components/organisms/CompleteServices/CompleteServices.stories.js +91 -0
- package/src/components/organisms/CompleteServices/index.js +82 -0
- package/src/components/organisms/CompleteServices/styles.js +35 -0
- package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +12 -0
- package/src/components/organisms/DragAndDropPhases/index.js +67 -0
- package/src/components/organisms/DragAndDropPhases/styles.js +20 -0
- package/src/components/organisms/DragPrueba/DragPrueba.stories.js +12 -0
- package/src/components/organisms/DragPrueba/index.js +57 -0
- package/src/components/organisms/DragPrueba/styles.js +8 -0
- package/src/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +28 -0
- package/src/components/organisms/FullProductNamev2/index.js +101 -0
- package/src/components/organisms/FullProductNamev2/styles.js +49 -0
- package/src/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +22 -0
- package/src/components/organisms/FullTabsMenuv2/index.js +142 -0
- package/src/components/organisms/FullTabsMenuv2/styles.js +47 -0
- package/src/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +24 -0
- package/src/components/organisms/ImageDataTablev2/index.js +124 -0
- package/src/components/organisms/ImageDataTablev2/styles.js +18 -0
- package/src/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +38 -0
- package/src/components/organisms/ImagePreviewerv2/index.js +22 -0
- package/src/components/organisms/ImagePreviewerv2/styles.js +7 -0
- package/src/components/organisms/InputGroupv2/InputGroupv2.stories.js +31 -0
- package/src/components/organisms/InputGroupv2/index.js +296 -0
- package/src/components/organisms/InputGroupv2/styles.js +90 -0
- package/src/components/organisms/MandatoryBar/MandatoryBar.stories.js +18 -0
- package/src/components/organisms/MandatoryBar/index.js +31 -0
- package/src/components/organisms/MandatoryBar/styles.js +12 -0
- package/src/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +90 -0
- package/src/components/organisms/ProductImageModalv2/index.js +105 -0
- package/src/components/organisms/ProductImageModalv2/styles.js +71 -0
- package/src/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +18 -0
- package/src/components/organisms/RenameImagesBar/index.js +30 -0
- package/src/components/organisms/RenameImagesBar/styles.js +12 -0
- package/src/components/organisms/VersionSelector/index.js +1 -2
- package/src/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +15 -0
- package/src/components/organisms/VersionSelectorv2/index.js +105 -0
- package/src/components/organisms/VersionSelectorv2/styles.js +45 -0
- package/src/components/pages/ProductEditionv2/ProductEditionv2.stories.js +213 -0
- package/src/components/pages/ProductEditionv2/index.js +1758 -0
- package/src/components/pages/ProductEditionv2/styles.js +154 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +39 -29
- package/src/components/pages/ProviderProductEdition/index.js +29 -21
- package/src/global-files/data.js +1 -3
- package/src/global-files/variables.js +2 -0
|
@@ -0,0 +1,23 @@
|
|
|
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 _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex-direction:row-reverse;\n flex: 0%;\n height: calc(100% - ", "px);\n margin-top:15px;\n .image-data-panel {\n width: 192px;\n height: 192px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 100%;\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n padding: 0 20px;\n }\n\n .product-information-image{\n display:flex;\n width: 100%;\n margin-bottom:10px;\n }\n\n .product-image{\n display:flex;\n flex-direction: column;\n justify-content: space-between;\n padding: 0 20px;\n gap:20px;\n width:100%;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n\n .required-inputs-message {\n font-family: ", ";\n font-size: 13px;\n color: ", ";\n padding: 10px;\n display: flex;\n align-items: center;\n\n p + * {\n margin-top: 10px;\n }\n\n button {\n min-width: fit-content;\n }\n }\n }\n }\n #modal-message-box {\n width: 400px;\n height: 100px;\n }\n .container {\n width: 100%;\n height: auto;\n border:1px solid ", ";\n .dropzone {\n height: 100%;\n width: 100%;\n }\n }\n\n .container-imagesM{\n display:flex;\n flex-direction: column;\n gap: 12px;\n }\n\n .container-bars{\n display:flex;\n gap:20px;\n margin:10px 0;\n }\n"])), function (_ref) {
|
|
19
|
+
var headerTop = _ref.headerTop;
|
|
20
|
+
return headerTop;
|
|
21
|
+
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.gray_light);
|
|
22
|
+
|
|
23
|
+
exports.Container = Container;
|
|
@@ -36,43 +36,45 @@ ProviderProductEditionDefault.args = {
|
|
|
36
36
|
category: 287,
|
|
37
37
|
version: 1,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
category: "Accesorios Decorativos|Accesorios Decorativos",
|
|
40
|
+
company_name: "Demo",
|
|
41
|
+
company_id: 923,
|
|
42
|
+
id_category: "2028",
|
|
43
|
+
id_article: 118465,
|
|
44
|
+
name: "VELA AROMA 18 OZ MAN/CAN",
|
|
45
|
+
upc: "Modelo6",
|
|
46
|
+
isVisible: 1,
|
|
47
|
+
retailers: [{
|
|
48
|
+
id: 68,
|
|
49
|
+
name: "The Home Depot Onboarding"
|
|
50
|
+
}],
|
|
45
51
|
version: 1,
|
|
46
52
|
retailersAvailable: [{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
name: "The Home Depot Onboarding",
|
|
51
|
-
id: 68
|
|
52
|
-
}],
|
|
53
|
-
percentage: "89"
|
|
53
|
+
id: 68,
|
|
54
|
+
name: "The Home Depot Onboarding"
|
|
55
|
+
}]
|
|
54
56
|
},
|
|
55
57
|
productToEdit: {
|
|
56
|
-
idCategory:
|
|
57
|
-
ArticleId:
|
|
58
|
+
idCategory: "2028",
|
|
59
|
+
ArticleId: 118465,
|
|
58
60
|
product: [{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
category: "Accesorios Decorativos|Accesorios Decorativos",
|
|
62
|
+
company_name: "Demo",
|
|
63
|
+
company_id: 923,
|
|
64
|
+
id_category: "2028",
|
|
65
|
+
id_article: 118465,
|
|
66
|
+
name: "VELA AROMA 18 OZ MAN/CAN",
|
|
67
|
+
upc: "Modelo6",
|
|
68
|
+
isVisible: 1,
|
|
69
|
+
retailers: [{
|
|
70
|
+
id: 68,
|
|
71
|
+
name: "The Home Depot Onboarding"
|
|
72
|
+
}],
|
|
65
73
|
version: 1,
|
|
66
74
|
retailersAvailable: [{
|
|
67
|
-
name: "The Home Depot Golden",
|
|
68
|
-
id: 58,
|
|
69
|
-
percentage: 100
|
|
70
|
-
}, {
|
|
71
|
-
name: "The Home Depot Onboarding",
|
|
72
75
|
id: 68,
|
|
73
|
-
|
|
74
|
-
}]
|
|
75
|
-
percentage: "89"
|
|
76
|
+
name: "The Home Depot Onboarding"
|
|
77
|
+
}]
|
|
76
78
|
}]
|
|
77
79
|
},
|
|
78
80
|
location: {
|
|
@@ -118,7 +120,7 @@ ProviderProductEditionDefault.args = {
|
|
|
118
120
|
products_limit: "5000",
|
|
119
121
|
type: "Enterprise"
|
|
120
122
|
},
|
|
121
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-191/191.png?
|
|
123
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-191/191.png?1701729602068"
|
|
122
124
|
},
|
|
123
125
|
company: {
|
|
124
126
|
id_company: 923,
|
|
@@ -136,18 +138,12 @@ ProviderProductEditionDefault.args = {
|
|
|
136
138
|
financedRetailers: [{
|
|
137
139
|
id: 68,
|
|
138
140
|
name: "The Home Depot Onboarding",
|
|
139
|
-
country: "México"
|
|
140
|
-
id_region: 1,
|
|
141
|
-
active: 1,
|
|
142
|
-
flow: 1
|
|
141
|
+
country: "México"
|
|
143
142
|
}],
|
|
144
143
|
retailers: [{
|
|
145
144
|
id: 68,
|
|
146
145
|
name: "The Home Depot Onboarding",
|
|
147
|
-
country: "México"
|
|
148
|
-
id_region: 1,
|
|
149
|
-
active: 1,
|
|
150
|
-
flow: 1
|
|
146
|
+
country: "México"
|
|
151
147
|
}]
|
|
152
148
|
},
|
|
153
149
|
showSurvey: function showSurvey(v) {
|
|
@@ -162,29 +162,37 @@ var reducerImages = function reducerImages(state, action) {
|
|
|
162
162
|
|
|
163
163
|
case "orderImages":
|
|
164
164
|
{
|
|
165
|
-
var
|
|
165
|
+
var _state$inputsByRetail = state.inputsByRetailer,
|
|
166
|
+
_inputsByRetailer = _state$inputsByRetail === void 0 ? {} : _state$inputsByRetail,
|
|
166
167
|
valuesInitial = state.valuesInitial,
|
|
167
168
|
inputsInitial = state.inputsInitial,
|
|
168
169
|
inputs = state.inputs;
|
|
169
170
|
|
|
170
171
|
try {
|
|
171
|
-
var _inputsByRetailer$act;
|
|
172
|
-
|
|
173
172
|
var orderedImages = [];
|
|
174
173
|
var imageIdArray = [];
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
174
|
+
|
|
175
|
+
if (action !== null && action !== void 0 && action.retailerId && !_inputsByRetailer[action.retailerId]) {
|
|
176
|
+
_inputsByRetailer[action.retailerId] = [];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (action.retailerId) {
|
|
180
|
+
var _inputsByRetailer$act;
|
|
181
|
+
|
|
182
|
+
(_inputsByRetailer$act = _inputsByRetailer[action.retailerId]) === null || _inputsByRetailer$act === void 0 ? void 0 : _inputsByRetailer$act.filter(function (input) {
|
|
183
|
+
imageIdArray.push(input.id_image);
|
|
184
|
+
valuesInitial.forEach(function (value) {
|
|
185
|
+
if (value.image_id === input.id_image) orderedImages.push(value);
|
|
186
|
+
});
|
|
180
187
|
});
|
|
181
|
-
}
|
|
188
|
+
}
|
|
189
|
+
|
|
182
190
|
inputs = inputsInitial === null || inputsInitial === void 0 ? void 0 : inputsInitial.filter(function (input) {
|
|
183
191
|
return imageIdArray.includes(input.id);
|
|
184
192
|
});
|
|
185
193
|
values = orderedImages.length > 0 ? orderedImages : [];
|
|
186
194
|
} catch (error) {
|
|
187
|
-
console.log(error);
|
|
195
|
+
console.log(action.action, error);
|
|
188
196
|
}
|
|
189
197
|
|
|
190
198
|
return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, state), {}, {
|
|
@@ -887,7 +895,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
887
895
|
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
888
896
|
var _product$article, _product$article2, _product$article3, _services$, _services$$values;
|
|
889
897
|
|
|
890
|
-
var services;
|
|
898
|
+
var services, data;
|
|
891
899
|
return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
892
900
|
while (1) {
|
|
893
901
|
switch (_context8.prev = _context8.next) {
|
|
@@ -908,14 +916,20 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
908
916
|
init: services[2]
|
|
909
917
|
});
|
|
910
918
|
if (((_services$ = services[2]) === null || _services$ === void 0 ? void 0 : (_services$$values = _services$.values) === null || _services$$values === void 0 ? void 0 : _services$$values.length) > 0) setActiveImage(0);
|
|
919
|
+
data = [(0, _objectSpread3.default)((0, _objectSpread3.default)({}, product), {}, {
|
|
920
|
+
retailersAvailable: product.retailersAvailable.map(function (_ref7) {
|
|
921
|
+
var id = _ref7.id;
|
|
922
|
+
return id;
|
|
923
|
+
})
|
|
924
|
+
})];
|
|
911
925
|
(0, _data.getPercentage)({
|
|
912
|
-
data:
|
|
926
|
+
data: data
|
|
913
927
|
}).then(function (res) {
|
|
914
|
-
|
|
928
|
+
setPercentages(res[0]);
|
|
915
929
|
});
|
|
916
930
|
setLoading(false);
|
|
917
931
|
|
|
918
|
-
case
|
|
932
|
+
case 11:
|
|
919
933
|
case "end":
|
|
920
934
|
return _context8.stop();
|
|
921
935
|
}
|
|
@@ -929,7 +943,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
929
943
|
}();
|
|
930
944
|
|
|
931
945
|
var getServices = /*#__PURE__*/function () {
|
|
932
|
-
var
|
|
946
|
+
var _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
|
933
947
|
var _product$article4;
|
|
934
948
|
|
|
935
949
|
var productInOrder, idArticle, retailers, active, _product$id_order, _servicesResponse$dat, servicesResponse, parsedResponse, retailerResponse;
|
|
@@ -974,7 +988,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
974
988
|
}));
|
|
975
989
|
|
|
976
990
|
return function getServices() {
|
|
977
|
-
return
|
|
991
|
+
return _ref8.apply(this, arguments);
|
|
978
992
|
};
|
|
979
993
|
}();
|
|
980
994
|
|
|
@@ -1004,14 +1018,16 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1004
1018
|
};
|
|
1005
1019
|
|
|
1006
1020
|
var getCart = /*#__PURE__*/function () {
|
|
1007
|
-
var
|
|
1021
|
+
var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
|
|
1022
|
+
var _Object$values;
|
|
1023
|
+
|
|
1008
1024
|
var res, arr;
|
|
1009
1025
|
return _regenerator.default.wrap(function _callee10$(_context10) {
|
|
1010
1026
|
while (1) {
|
|
1011
1027
|
switch (_context10.prev = _context10.next) {
|
|
1012
1028
|
case 0:
|
|
1013
1029
|
_context10.next = 2;
|
|
1014
|
-
return _axios.default.get(process.env.REACT_APP_CART, {
|
|
1030
|
+
return _axios.default.get("".concat(process.env.REACT_APP_CART, "/general/"), {
|
|
1015
1031
|
headers: {
|
|
1016
1032
|
Authorization: token
|
|
1017
1033
|
}
|
|
@@ -1019,9 +1035,9 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1019
1035
|
|
|
1020
1036
|
case 2:
|
|
1021
1037
|
res = _context10.sent;
|
|
1022
|
-
arr = JSON.parse(res.data.body).data.map(function (e) {
|
|
1038
|
+
arr = (_Object$values = Object.values(JSON.parse(res.data.body).data)) === null || _Object$values === void 0 ? void 0 : _Object$values.map(function (e) {
|
|
1023
1039
|
return e.article_id;
|
|
1024
|
-
});
|
|
1040
|
+
}).filter(Boolean);
|
|
1025
1041
|
setInCart(arr.some(function (e) {
|
|
1026
1042
|
return e.articleId === product.id_article;
|
|
1027
1043
|
}));
|
|
@@ -1035,7 +1051,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1035
1051
|
}));
|
|
1036
1052
|
|
|
1037
1053
|
return function getCart() {
|
|
1038
|
-
return
|
|
1054
|
+
return _ref9.apply(this, arguments);
|
|
1039
1055
|
};
|
|
1040
1056
|
}();
|
|
1041
1057
|
|
|
@@ -1148,11 +1164,13 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1148
1164
|
var _images$inputs;
|
|
1149
1165
|
|
|
1150
1166
|
var imageInputs = images === null || images === void 0 ? void 0 : (_images$inputs = images.inputs) === null || _images$inputs === void 0 ? void 0 : _images$inputs.map(function (e) {
|
|
1167
|
+
var _images$values2;
|
|
1168
|
+
|
|
1151
1169
|
return {
|
|
1152
1170
|
value: e === null || e === void 0 ? void 0 : e.id,
|
|
1153
1171
|
name: e === null || e === void 0 ? void 0 : e.name,
|
|
1154
1172
|
required: e === null || e === void 0 ? void 0 : e.required,
|
|
1155
|
-
active: images === null || images === void 0 ? void 0 : images.values.some(function (value) {
|
|
1173
|
+
active: images === null || images === void 0 ? void 0 : (_images$values2 = images.values) === null || _images$values2 === void 0 ? void 0 : _images$values2.some(function (value) {
|
|
1156
1174
|
return (value === null || value === void 0 ? void 0 : value.image_id) === (e === null || e === void 0 ? void 0 : e.id);
|
|
1157
1175
|
})
|
|
1158
1176
|
};
|
|
@@ -1161,7 +1179,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1161
1179
|
}, [images]);
|
|
1162
1180
|
|
|
1163
1181
|
var saveDescriptions = /*#__PURE__*/function () {
|
|
1164
|
-
var
|
|
1182
|
+
var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {
|
|
1165
1183
|
var dataObject, res;
|
|
1166
1184
|
return _regenerator.default.wrap(function _callee11$(_context11) {
|
|
1167
1185
|
while (1) {
|
|
@@ -1212,21 +1230,21 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1212
1230
|
}));
|
|
1213
1231
|
|
|
1214
1232
|
return function saveDescriptions() {
|
|
1215
|
-
return
|
|
1233
|
+
return _ref10.apply(this, arguments);
|
|
1216
1234
|
};
|
|
1217
1235
|
}();
|
|
1218
1236
|
|
|
1219
1237
|
var saveDatasheets = /*#__PURE__*/function () {
|
|
1220
|
-
var
|
|
1238
|
+
var _ref11 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
|
|
1221
1239
|
var parseBoxData, dataObject, res;
|
|
1222
1240
|
return _regenerator.default.wrap(function _callee12$(_context12) {
|
|
1223
1241
|
while (1) {
|
|
1224
1242
|
switch (_context12.prev = _context12.next) {
|
|
1225
1243
|
case 0:
|
|
1226
1244
|
parseBoxData = [];
|
|
1227
|
-
Object.entries(boxData).forEach(function (
|
|
1228
|
-
var
|
|
1229
|
-
box =
|
|
1245
|
+
Object.entries(boxData).forEach(function (_ref12, index) {
|
|
1246
|
+
var _ref13 = (0, _slicedToArray2.default)(_ref12, 2),
|
|
1247
|
+
box = _ref13[1];
|
|
1230
1248
|
|
|
1231
1249
|
var value = box.value;
|
|
1232
1250
|
var attributesIds = Object.keys(value);
|
|
@@ -1278,9 +1296,6 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1278
1296
|
console.log(_context12.t0);
|
|
1279
1297
|
|
|
1280
1298
|
case 18:
|
|
1281
|
-
console.log(dataObject);
|
|
1282
|
-
|
|
1283
|
-
case 19:
|
|
1284
1299
|
case "end":
|
|
1285
1300
|
return _context12.stop();
|
|
1286
1301
|
}
|
|
@@ -1289,12 +1304,12 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1289
1304
|
}));
|
|
1290
1305
|
|
|
1291
1306
|
return function saveDatasheets() {
|
|
1292
|
-
return
|
|
1307
|
+
return _ref11.apply(this, arguments);
|
|
1293
1308
|
};
|
|
1294
1309
|
}();
|
|
1295
1310
|
|
|
1296
1311
|
var updateImages = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
|
|
1297
|
-
var _images$
|
|
1312
|
+
var _images$values3, _data$articleData, _data$articleData2, _data$updateImages;
|
|
1298
1313
|
|
|
1299
1314
|
var imagesList, imagesListTemp, duplicated, attrForImgs, data, valid, _data$updateImages2, _data$articleData3, _data$articleData4, _data$articleData5, promiseArray;
|
|
1300
1315
|
|
|
@@ -1302,7 +1317,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1302
1317
|
while (1) {
|
|
1303
1318
|
switch (_context13.prev = _context13.next) {
|
|
1304
1319
|
case 0:
|
|
1305
|
-
imagesList = images === null || images === void 0 ? void 0 : (_images$
|
|
1320
|
+
imagesList = images === null || images === void 0 ? void 0 : (_images$values3 = images.values) === null || _images$values3 === void 0 ? void 0 : _images$values3.slice();
|
|
1306
1321
|
imagesListTemp = imagesList === null || imagesList === void 0 ? void 0 : imagesList.reduce(function (acc, image) {
|
|
1307
1322
|
acc[image === null || image === void 0 ? void 0 : image.image_id] = ++acc[image === null || image === void 0 ? void 0 : image.image_id] || 0;
|
|
1308
1323
|
return acc;
|
|
@@ -1484,7 +1499,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1484
1499
|
};
|
|
1485
1500
|
|
|
1486
1501
|
var createComment = /*#__PURE__*/function () {
|
|
1487
|
-
var
|
|
1502
|
+
var _ref16 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
|
|
1488
1503
|
var messages,
|
|
1489
1504
|
retailerId,
|
|
1490
1505
|
data,
|
|
@@ -1519,7 +1534,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1519
1534
|
}));
|
|
1520
1535
|
|
|
1521
1536
|
return function createComment() {
|
|
1522
|
-
return
|
|
1537
|
+
return _ref16.apply(this, arguments);
|
|
1523
1538
|
};
|
|
1524
1539
|
}();
|
|
1525
1540
|
|
|
@@ -1528,7 +1543,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1528
1543
|
}, [activeTab]);
|
|
1529
1544
|
|
|
1530
1545
|
var commentRevised = /*#__PURE__*/function () {
|
|
1531
|
-
var
|
|
1546
|
+
var _ref17 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
|
|
1532
1547
|
var data;
|
|
1533
1548
|
return _regenerator.default.wrap(function _callee16$(_context16) {
|
|
1534
1549
|
while (1) {
|
|
@@ -1556,12 +1571,12 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1556
1571
|
}));
|
|
1557
1572
|
|
|
1558
1573
|
return function commentRevised() {
|
|
1559
|
-
return
|
|
1574
|
+
return _ref17.apply(this, arguments);
|
|
1560
1575
|
};
|
|
1561
1576
|
}();
|
|
1562
1577
|
|
|
1563
1578
|
var setAssignation = /*#__PURE__*/function () {
|
|
1564
|
-
var
|
|
1579
|
+
var _ref18 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(assignationType, assignationId) {
|
|
1565
1580
|
var concept, productTemp, data;
|
|
1566
1581
|
return _regenerator.default.wrap(function _callee17$(_context17) {
|
|
1567
1582
|
while (1) {
|
|
@@ -1618,18 +1633,18 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1618
1633
|
}));
|
|
1619
1634
|
|
|
1620
1635
|
return function setAssignation(_x4, _x5) {
|
|
1621
|
-
return
|
|
1636
|
+
return _ref18.apply(this, arguments);
|
|
1622
1637
|
};
|
|
1623
1638
|
}();
|
|
1624
1639
|
|
|
1625
1640
|
var downloadImages = function downloadImages() {
|
|
1626
|
-
var _images$
|
|
1641
|
+
var _images$values4;
|
|
1627
1642
|
|
|
1628
1643
|
selectedImages.length > 0 ? selectedImages.forEach(function (e) {
|
|
1629
1644
|
if (e.id) {
|
|
1630
1645
|
(0, _fileSaver.saveAs)("https://".concat(process.env.REACT_APP_IMAGES_BUCKET, ".s3.amazonaws.com/").concat(e.srcDB), "".concat(product.upc || product.article.upc, "_").concat(e.name, ".").concat(e.ext));
|
|
1631
1646
|
}
|
|
1632
|
-
}) : images === null || images === void 0 ? void 0 : (_images$
|
|
1647
|
+
}) : images === null || images === void 0 ? void 0 : (_images$values4 = images.values) === null || _images$values4 === void 0 ? void 0 : _images$values4.forEach(function (e) {
|
|
1633
1648
|
if (e.id) {
|
|
1634
1649
|
(0, _fileSaver.saveAs)("https://".concat(process.env.REACT_APP_IMAGES_BUCKET, ".s3.amazonaws.com/").concat(e.srcDB), "".concat(product.upc || product.article.upc, "_").concat(e.name, ".").concat(e.ext));
|
|
1635
1650
|
}
|
|
@@ -1702,7 +1717,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1702
1717
|
};
|
|
1703
1718
|
|
|
1704
1719
|
var sendEvaluation = /*#__PURE__*/function () {
|
|
1705
|
-
var
|
|
1720
|
+
var _ref19 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(result) {
|
|
1706
1721
|
var _productTemp$id_order2;
|
|
1707
1722
|
|
|
1708
1723
|
var concept, productTemp, articleId, orderId, sectionStatusKey, evalStatus, data, retailerId, res, newStatuses, orderStatus, serviceStatus, newProductEdit, showSurveyByProvider, showSurveyByRetailer, _JSON$parse, newArticleStatus, newServiceStatus, newStatus, retailerStatusCopy, status;
|
|
@@ -1807,12 +1822,12 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1807
1822
|
}));
|
|
1808
1823
|
|
|
1809
1824
|
return function sendEvaluation(_x6) {
|
|
1810
|
-
return
|
|
1825
|
+
return _ref19.apply(this, arguments);
|
|
1811
1826
|
};
|
|
1812
1827
|
}();
|
|
1813
1828
|
|
|
1814
1829
|
var validateAll = /*#__PURE__*/function () {
|
|
1815
|
-
var
|
|
1830
|
+
var _ref20 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(result) {
|
|
1816
1831
|
var _product$id_order2, evaluationArray, conceptArray, dataGeneral, userType, productTemp, status, retailerStatusCopy;
|
|
1817
1832
|
|
|
1818
1833
|
return _regenerator.default.wrap(function _callee19$(_context19) {
|
|
@@ -1898,12 +1913,12 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1898
1913
|
}));
|
|
1899
1914
|
|
|
1900
1915
|
return function validateAll(_x7) {
|
|
1901
|
-
return
|
|
1916
|
+
return _ref20.apply(this, arguments);
|
|
1902
1917
|
};
|
|
1903
1918
|
}();
|
|
1904
1919
|
|
|
1905
1920
|
var evaluationToRetailer = /*#__PURE__*/function () {
|
|
1906
|
-
var
|
|
1921
|
+
var _ref21 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(result) {
|
|
1907
1922
|
var data, prod, statusComplete;
|
|
1908
1923
|
return _regenerator.default.wrap(function _callee20$(_context20) {
|
|
1909
1924
|
while (1) {
|
|
@@ -1945,7 +1960,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1945
1960
|
}));
|
|
1946
1961
|
|
|
1947
1962
|
return function evaluationToRetailer(_x8) {
|
|
1948
|
-
return
|
|
1963
|
+
return _ref21.apply(this, arguments);
|
|
1949
1964
|
};
|
|
1950
1965
|
}();
|
|
1951
1966
|
|
|
@@ -1989,10 +2004,6 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1989
2004
|
}];
|
|
1990
2005
|
|
|
1991
2006
|
var sendToEvaluation = function sendToEvaluation(result) {
|
|
1992
|
-
console.log({
|
|
1993
|
-
result: result
|
|
1994
|
-
});
|
|
1995
|
-
|
|
1996
2007
|
if (result === "A") {
|
|
1997
2008
|
if (origin[activeTab] === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
|
|
1998
2009
|
setDataGenericModal(function (prev) {
|
package/package.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_37_379" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="8" height="8">
|
|
3
|
+
<rect width="8" height="8" fill="#D9D9D9"/>
|
|
4
|
+
</mask>
|
|
5
|
+
<g mask="url(#mask0_37_379)">
|
|
6
|
+
<path d="M3.63807 5.98825H4.40893V3.62867H3.63807V5.98825ZM3.99596 3.07403C4.124 3.07403 4.2311 3.03169 4.31727 2.947C4.40345 2.86232 4.44653 2.75738 4.44653 2.6322C4.44653 2.49463 4.40331 2.38347 4.31685 2.29871C4.2304 2.21394 4.12327 2.17156 3.99547 2.17156C3.86061 2.17156 3.75166 2.21394 3.66863 2.29871C3.58559 2.38347 3.54407 2.49307 3.54407 2.6275C3.54407 2.7566 3.58737 2.8633 3.67398 2.94759C3.7606 3.03188 3.86792 3.07403 3.99596 3.07403ZM3.9991 8C3.44212 8 2.92156 7.89633 2.43741 7.68899C1.95324 7.48165 1.52964 7.19646 1.16659 6.83341C0.803541 6.47036 0.518349 6.04696 0.311013 5.5632C0.103671 5.07943 0 4.5588 0 4.0013C0 3.44379 0.103671 2.92273 0.311013 2.4381C0.518349 1.95348 0.803049 1.53104 1.16511 1.1708C1.52718 0.810554 1.95032 0.525358 2.43455 0.315215C2.91877 0.105072 3.43989 0 3.99792 0C4.55595 0 5.07764 0.10483 5.56301 0.314491C6.04837 0.524146 6.47094 0.80868 6.83072 1.16809C7.1905 1.52751 7.47533 1.95015 7.6852 2.43603C7.89507 2.92191 8 3.44396 8 4.0022C8 4.56004 7.89493 5.08098 7.68479 5.56504C7.47464 6.04909 7.18945 6.47169 6.8292 6.83282C6.46896 7.19395 6.04646 7.47876 5.56169 7.68726C5.07694 7.89575 4.55607 8 3.9991 8ZM4 7.11633C4.86173 7.11633 5.59499 6.81435 6.19977 6.21037C6.80454 5.60639 7.10693 4.8696 7.10693 4C7.10693 3.13827 6.80513 2.40501 6.20153 1.80024C5.59793 1.19546 4.86095 0.893067 3.9906 0.893067C3.12887 0.893067 2.39561 1.19487 1.79083 1.79847C1.18606 2.40207 0.883666 3.13905 0.883666 4.0094C0.883666 4.87113 1.18565 5.60439 1.78963 6.20917C2.39361 6.81394 3.1304 7.11633 4 7.11633Z" fill="#707070"/>
|
|
7
|
+
</g>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6 16H7.375V11H10L11 13H16V7H13L12 5H6V16ZM10 20C8.63333 20 7.34167 19.7375 6.125 19.2125C4.90833 18.6875 3.84583 17.9708 2.9375 17.0625C2.02917 16.1542 1.3125 15.0917 0.7875 13.875C0.2625 12.6583 0 11.3667 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.02917 3.825 2.9375 2.925C3.84583 2.025 4.90833 1.3125 6.125 0.7875C7.34167 0.2625 8.63333 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3667 19.7375 12.6583 19.2125 13.875C18.6875 15.0917 17.975 16.1542 17.075 17.0625C16.175 17.9708 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z" fill="#FC3030"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6 16H7.375V11H10L11 13H16V7H13L12 5H6V16ZM10 20C8.63333 20 7.34167 19.7375 6.125 19.2125C4.90833 18.6875 3.84583 17.9708 2.9375 17.0625C2.02917 16.1542 1.3125 15.0917 0.7875 13.875C0.2625 12.6583 0 11.3667 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.02917 3.825 2.9375 2.925C3.84583 2.025 4.90833 1.3125 6.125 0.7875C7.34167 0.2625 8.63333 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3667 19.7375 12.6583 19.2125 13.875C18.6875 15.0917 17.975 16.1542 17.075 17.0625C16.175 17.9708 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z" fill="#71DE56"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6 16H7.375V11H10L11 13H16V7H13L12 5H6V16ZM10 20C8.63333 20 7.34167 19.7375 6.125 19.2125C4.90833 18.6875 3.84583 17.9708 2.9375 17.0625C2.02917 16.1542 1.3125 15.0917 0.7875 13.875C0.2625 12.6583 0 11.3667 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.02917 3.825 2.9375 2.925C3.84583 2.025 4.90833 1.3125 6.125 0.7875C7.34167 0.2625 8.63333 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3667 19.7375 12.6583 19.2125 13.875C18.6875 15.0917 17.975 16.1542 17.075 17.0625C16.175 17.9708 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z" fill="#EFD963"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6 16H7.375V11H10L11 13H16V7H13L12 5H6V16ZM10 20C8.63333 20 7.34167 19.7375 6.125 19.2125C4.90833 18.6875 3.84583 17.9708 2.9375 17.0625C2.02917 16.1542 1.3125 15.0917 0.7875 13.875C0.2625 12.6583 0 11.3667 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.02917 3.825 2.9375 2.925C3.84583 2.025 4.90833 1.3125 6.125 0.7875C7.34167 0.2625 8.63333 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3667 19.7375 12.6583 19.2125 13.875C18.6875 15.0917 17.975 16.1542 17.075 17.0625C16.175 17.9708 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z" fill="#CBCBCB"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<line x1="13.3585" y1="12.1333" x2="39.8661" y2="38.641" stroke="#FFFFFF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M39.8672 12.1333L13.8672 38.1333" stroke="#FFFFFF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<line x1="13.3585" y1="12.1333" x2="39.8661" y2="38.641" stroke="#707070" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M39.8672 12.1333L13.8672 38.1333" stroke="#707070" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CharsMissing } from "./index";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/atoms/CharsMissing",
|
|
5
|
+
component: CharsMissing,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Template = (args) => <CharsMissing {...args} />;
|
|
9
|
+
|
|
10
|
+
export const DefaultCharsMissing = Template.bind({});
|
|
11
|
+
|
|
12
|
+
DefaultCharsMissing.args = { text: "hola mundo" };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import ReactQuill from "react-quill";
|
|
2
|
+
import "react-quill/dist/quill.snow.css";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { Container } from "./styles";
|
|
5
|
+
|
|
6
|
+
export const CharsMissing = ({
|
|
7
|
+
mainValue = "",
|
|
8
|
+
inputId,
|
|
9
|
+
articleId,
|
|
10
|
+
updatedDescriptions,
|
|
11
|
+
setUpdatedDescriptions,
|
|
12
|
+
isRequired,
|
|
13
|
+
maxChar,
|
|
14
|
+
}) => {
|
|
15
|
+
const [inputValue, setInputValue] = useState(mainValue);
|
|
16
|
+
const [selection, setSelection] = useState(false);
|
|
17
|
+
const [position, setPosition] = useState({ left: 0, top: 0 });
|
|
18
|
+
const [charsCounter, setCharsCounter] = useState(0);
|
|
19
|
+
const [quillState, setQuillState] = useState({});
|
|
20
|
+
const maxLength = maxChar ? maxChar : 999;
|
|
21
|
+
|
|
22
|
+
const getValue = (value) => {
|
|
23
|
+
let temp = value
|
|
24
|
+
.replace(/\n/gm, "<br>")
|
|
25
|
+
.replace(/\ /gm, " ")
|
|
26
|
+
.replace(/\&/gm, "&");
|
|
27
|
+
return temp;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
//const quillRef = useRef();
|
|
31
|
+
const setQuill = (ref) => {
|
|
32
|
+
if (!ref || ref === null) return;
|
|
33
|
+
if (typeof ref.getEditor !== "function") return;
|
|
34
|
+
setQuillState(ref.getEditor());
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const valueFormater = (value) => {
|
|
38
|
+
return value
|
|
39
|
+
.replace(/<\/p><p>/gm, "\n")
|
|
40
|
+
.replace(/<\/?br>|<\/?p>/gm, "")
|
|
41
|
+
.replace(/\ /gm, " ")
|
|
42
|
+
.replace(/\&/gm, "&");
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<Container
|
|
48
|
+
isRequired={
|
|
49
|
+
isRequired &&
|
|
50
|
+
(inputValue.replace(/<.*?>/gm, "").length === 0 || !inputValue)
|
|
51
|
+
}
|
|
52
|
+
selection={selection}
|
|
53
|
+
position={position}
|
|
54
|
+
>
|
|
55
|
+
<p className="description-limit">
|
|
56
|
+
C. {charsCounter}/{maxLength}
|
|
57
|
+
</p>
|
|
58
|
+
</Container>
|
|
59
|
+
);
|
|
60
|
+
};
|