contentoh-components-library 21.4.74 → 21.4.75
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/addv2.svg +8 -0
- package/dist/assets/images/Icons/checkv2.svg +8 -0
- package/dist/assets/images/Icons/options.svg +3 -0
- package/dist/assets/images/Icons/trash.svg +8 -0
- package/dist/assets/images/Icons/undo.svg +8 -0
- package/dist/assets/images/Icons/warningv2.svg +3 -0
- package/dist/assets/images/checkBox/checkrosa.svg +3 -0
- package/dist/assets/images/checkBox/checkverde.svg +3 -0
- package/dist/components/atoms/Avatar/index.js +3 -2
- package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +1 -1
- package/dist/components/atoms/ButtonV2/index.js +1 -1
- package/dist/components/atoms/ButtonV2/styles.js +1 -1
- package/dist/components/atoms/CheckBox/CheckBox.stories.js +8 -1
- package/dist/components/atoms/CheckBox/index.js +8 -0
- package/dist/components/atoms/CheckBox/styles.js +8 -1
- package/dist/components/atoms/GeneralButton/styles.js +6 -2
- package/dist/components/atoms/InputFormatter/styles.js +3 -3
- package/dist/components/atoms/SliderToolTip/styles.js +1 -1
- package/dist/components/molecules/BoxAttribute/index.js +3 -3
- package/dist/components/molecules/BoxAttribute/styles.js +1 -1
- package/dist/components/molecules/BoxButtons/index.js +0 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/GroupSelect/GroupSelect.stories.js +53 -0
- package/dist/components/molecules/GroupSelect/SelectItem.js +142 -0
- package/dist/components/molecules/GroupSelect/index.js +254 -0
- package/dist/components/molecules/GroupSelect/styles.js +25 -0
- package/dist/components/molecules/HeaderTop/index.js +68 -11
- package/dist/components/molecules/Phase/index.js +205 -43
- package/dist/components/molecules/Phase/styles.js +1 -1
- package/dist/components/molecules/SignInLogin/index.js +36 -28
- package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +1 -2
- package/dist/components/organisms/Chat/Chat.stories.js +27 -8
- package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +350 -197
- package/dist/components/organisms/Chat/Footer/index.js +48 -39
- package/dist/components/organisms/Chat/index.js +49 -4
- package/dist/components/organisms/Chat/styles.js +1 -1
- package/dist/components/organisms/DashboardMetric/index.js +12 -6
- package/dist/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +26 -1
- package/dist/components/organisms/DragAndDropPhases/index.js +262 -32
- package/dist/components/organisms/DragAndDropPhases/styles.js +8 -4
- package/dist/components/organisms/EditGroup/EditGroup.stories.js +39 -0
- package/dist/components/organisms/EditGroup/index.js +242 -0
- package/dist/components/organisms/EditGroup/styles.js +36 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/InputGroup/index.js +1 -10
- package/dist/components/organisms/Modal/Modal.stories.js +2 -1
- package/dist/components/organisms/Modal/index.js +6 -1
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/organisms/VersionSelector/index.js +2 -4
- package/dist/components/pages/Dashboard/Dashboard.stories.js +33 -36
- package/dist/components/pages/Dashboard/index.js +37 -9
- package/dist/components/pages/ProviderProductEdition/index.js +120 -144
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +4 -0
- package/dist/components/pages/RetailerProductEdition/index.js +278 -273
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
- package/dist/global-files/data.js +11 -3
- package/dist/global-files/variables.js +7 -1
- package/dist/index.js +201 -58
- package/package.json +2 -1
- package/src/assets/images/Icons/addv2.svg +8 -0
- package/src/assets/images/Icons/checkv2.svg +8 -0
- package/src/assets/images/Icons/infoNR.svg +8 -0
- package/src/assets/images/Icons/options.svg +3 -0
- package/src/assets/images/Icons/trash.svg +8 -0
- package/src/assets/images/Icons/undo.svg +8 -0
- package/src/assets/images/Icons/warningv2.svg +3 -0
- package/src/assets/images/checkBox/checkrosa.svg +3 -0
- package/src/assets/images/checkBox/checkverde.svg +3 -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/Avatar/index.js +8 -2
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +1 -0
- package/src/components/atoms/ButtonV2/index.js +1 -0
- package/src/components/atoms/ButtonV2/styles.js +16 -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/CheckBox/CheckBox.stories.js +5 -0
- package/src/components/atoms/CheckBox/index.js +5 -1
- package/src/components/atoms/CheckBox/styles.js +9 -3
- 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/ImageCarousel/ImgeSlider.stories.js +76 -0
- package/src/components/atoms/ImageCarousel/index.js +103 -0
- package/src/components/atoms/ImageCarousel/styles.js +79 -0
- package/src/components/atoms/InputFormatter/styles.js +9 -4
- 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/PercentTag/PercentTag.stories.js +7 -0
- package/src/components/atoms/PercentTag/index.js +9 -0
- package/src/components/atoms/PercentTag/styles.js +69 -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/RatingStars/RatingStars.stories.js +10 -0
- package/src/components/atoms/RatingStars/index.js +31 -0
- package/src/components/atoms/RatingStars/styles.js +28 -0
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +36 -0
- package/src/components/atoms/RetailerCatalog/index.js +49 -0
- package/src/components/atoms/RetailerCatalog/styles.js +30 -0
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +15 -0
- package/src/components/atoms/RetailerOption/index.js +53 -0
- package/src/components/atoms/RetailerOption/styles.js +41 -0
- package/src/components/atoms/RetailersList/RetailersList.stories.js +33 -0
- package/src/components/atoms/RetailersList/index.js +20 -0
- package/src/components/atoms/RetailersList/styles.js +19 -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/SliderToolTip/styles.js +1 -1
- package/src/components/atoms/TabSection/index.js +1 -1
- package/src/components/atoms/TabSection/styles.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/UserCatalog/UserCatalog.stories.js +67 -0
- package/src/components/atoms/UserCatalog/index.js +100 -0
- package/src/components/atoms/UserCatalog/styles.js +24 -0
- package/src/components/atoms/UserOption/UserOption.stories.js +25 -0
- package/src/components/atoms/UserOption/index.js +95 -0
- package/src/components/atoms/UserOption/styles.js +61 -0
- package/src/components/atoms/UserSelector/UserSelector.stories.js +25 -0
- package/src/components/atoms/UserSelector/index.js +86 -0
- package/src/components/atoms/UserSelector/styles.js +55 -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/BoxAttribute/index.js +32 -25
- package/src/components/molecules/BoxAttribute/styles.js +1 -1
- package/src/components/molecules/BoxButtons/index.js +23 -22
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- 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/GridItem/GridItem.stories.js +126 -0
- package/src/components/molecules/GridItem/index.js +105 -0
- package/src/components/molecules/GridItem/styles.js +104 -0
- package/src/components/molecules/GroupSelect/GroupSelect.stories.js +35 -0
- package/src/components/molecules/GroupSelect/SelectItem.js +105 -0
- package/src/components/molecules/GroupSelect/index.js +190 -0
- package/src/components/molecules/GroupSelect/styles.js +124 -0
- package/src/components/molecules/HeaderItem/ColumnItem.js +9 -0
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +24 -0
- package/src/components/molecules/HeaderItem/index.js +26 -0
- package/src/components/molecules/HeaderItem/styles.js +27 -0
- package/src/components/molecules/HeaderTop/index.js +52 -6
- 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 +185 -0
- package/src/components/molecules/Phase/styles.js +91 -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/RowItem/ColumnItem.js +9 -0
- package/src/components/molecules/RowItem/RowItem.stories.js +5660 -0
- package/src/components/molecules/RowItem/index.js +45 -0
- package/src/components/molecules/RowItem/styles.js +40 -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/SignInLogin/index.js +11 -11
- 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/StripeCardSelector/CardSelector.stories.js +1 -2
- 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/TagAndInput/index.js +6 -5
- 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/Chat/Chat.stories.js +27 -7
- package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
- package/src/components/organisms/Chat/ContainerItems/styles.js +14 -2
- package/src/components/organisms/Chat/ContentChat/index.js +88 -12
- package/src/components/organisms/Chat/Footer/index.js +11 -0
- package/src/components/organisms/Chat/index.js +46 -4
- package/src/components/organisms/Chat/styles.js +4 -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/DashboardMetric/index.js +6 -3
- package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +40 -0
- package/src/components/organisms/DragAndDropPhases/index.js +236 -0
- package/src/components/organisms/DragAndDropPhases/styles.js +69 -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/EditGroup/EditGroup.stories.js +18 -0
- package/src/components/organisms/EditGroup/index.js +168 -0
- package/src/components/organisms/EditGroup/styles.js +115 -0
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- 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/GridProducts/GridProducts.stories.js +5485 -0
- package/src/components/organisms/GridProducts/index.js +50 -0
- package/src/components/organisms/GridProducts/styles.js +14 -0
- package/src/components/organisms/GridProducts/utils.js +111 -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/InputGroup/index.js +131 -119
- 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/Modal/Modal.stories.js +2 -1
- package/src/components/organisms/Modal/index.js +8 -1
- package/src/components/organisms/Modal/styles.js +8 -1
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +6 -16
- 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/Dashboard/Dashboard.stories.js +33 -38
- package/src/components/pages/Dashboard/index.js +36 -7
- 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/index.js +100 -131
- package/src/components/pages/ProviderProductEdition/styles.js +5 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +4 -0
- package/src/components/pages/RetailerProductEdition/index.js +106 -135
- package/src/components/pages/RetailerProductEdition/styles.js +4 -0
- package/src/components/pages/RetailerProductEdition/utils.js +37 -0
- package/src/global-files/data.js +6 -10
- package/src/global-files/variables.js +6 -0
- package/src/index.js +11 -0
- package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
|
@@ -21,7 +21,7 @@ export const InputGroup = ({
|
|
|
21
21
|
compare,
|
|
22
22
|
groupData = [],
|
|
23
23
|
setUpdatedBoxData,
|
|
24
|
-
activeRetailer
|
|
24
|
+
activeRetailer,
|
|
25
25
|
}) => {
|
|
26
26
|
const inputTypeValue = (type) => {
|
|
27
27
|
switch (type) {
|
|
@@ -41,7 +41,11 @@ export const InputGroup = ({
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
useEffect(() => {
|
|
44
|
-
if (
|
|
44
|
+
if (
|
|
45
|
+
inputGroup.groupId === "16" &&
|
|
46
|
+
activeRetailer &&
|
|
47
|
+
activeRetailer?.retailer?.id
|
|
48
|
+
) {
|
|
45
49
|
if (activeRetailer?.retailer?.id === 68) {
|
|
46
50
|
setShowBox(true);
|
|
47
51
|
} else {
|
|
@@ -50,127 +54,127 @@ export const InputGroup = ({
|
|
|
50
54
|
}
|
|
51
55
|
}, [activeRetailer, inputGroup.groupId]);
|
|
52
56
|
|
|
53
|
-
// useEffect(() => {
|
|
54
|
-
// if (showBox) {
|
|
55
|
-
// // Realiza la acción que deseas cuando showBox es true
|
|
56
|
-
// console.log("showBox es true");
|
|
57
|
-
// } else {
|
|
58
|
-
// // Realiza la acción que deseas cuando showBox es false
|
|
59
|
-
// console.log("showBox es false");
|
|
60
|
-
// }
|
|
61
|
-
// }, [showBox]);
|
|
62
|
-
|
|
63
57
|
return (
|
|
64
58
|
<>
|
|
65
59
|
{inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 68 && (
|
|
66
60
|
<Container
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/>
|
|
78
|
-
</Container>
|
|
79
|
-
)}
|
|
80
|
-
{(inputGroup.groupId !== "16") && (
|
|
81
|
-
<Container
|
|
82
|
-
className={
|
|
83
|
-
activeSection === "Ficha técnica"
|
|
84
|
-
? "datasheets-layout"
|
|
85
|
-
: "descriptions-layout"
|
|
86
|
-
}
|
|
87
|
-
>
|
|
88
|
-
{inputGroup?.dataGroup && (
|
|
89
|
-
<ScreenHeader
|
|
90
|
-
headerType={"retailer-name-header"}
|
|
91
|
-
text={`${inputGroup?.dataGroup}`}
|
|
61
|
+
className={
|
|
62
|
+
activeSection === "Ficha técnica"
|
|
63
|
+
? "datasheets-layout"
|
|
64
|
+
: "descriptions-layout"
|
|
65
|
+
}
|
|
66
|
+
>
|
|
67
|
+
<Box
|
|
68
|
+
inputGroup={inputGroup}
|
|
69
|
+
dataInputs={dataInputs}
|
|
70
|
+
onChange={setUpdatedBoxData}
|
|
92
71
|
/>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
//disabled={input === 40001}
|
|
109
|
-
disabled={false}
|
|
110
|
-
inputId={dataInputs[input]?.id}
|
|
111
|
-
version={version}
|
|
112
|
-
inputType={inputTypeValue(dataInputs[input]?.type)}
|
|
113
|
-
label={
|
|
114
|
-
dataInputs[input]?.name +
|
|
115
|
-
(dataInputs[input]?.required ? "*" : "")
|
|
116
|
-
}
|
|
117
|
-
value={
|
|
118
|
-
compare ? auditInputs[input]?.value : dataInputs[input]?.value
|
|
119
|
-
}
|
|
120
|
-
inputPlaceHolder={input?.placeholder}
|
|
121
|
-
articleId={articleId}
|
|
122
|
-
isRequired={dataInputs[input]?.required}
|
|
123
|
-
updatedDatasheets={updatedDatasheets}
|
|
124
|
-
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
125
|
-
maxChar={
|
|
126
|
-
dataInputs[input]?.max_chars
|
|
127
|
-
? dataInputs[input]?.max_chars
|
|
128
|
-
: 999
|
|
129
|
-
}
|
|
130
|
-
optionList={dataInputs[input]?.option_list}
|
|
131
|
-
description={dataInputs[input]?.description}
|
|
132
|
-
showTooltip={true}
|
|
133
|
-
auditClass={
|
|
134
|
-
compare &&
|
|
135
|
-
!isEquals(dataInputs[input].value, auditInputs[input].value)
|
|
136
|
-
? "audit-class"
|
|
137
|
-
: ""
|
|
138
|
-
}
|
|
139
|
-
/>
|
|
140
|
-
</>
|
|
141
|
-
) : (
|
|
142
|
-
<TagAndInput
|
|
143
|
-
key={index + "-" + input?.value + "-" + compare}
|
|
144
|
-
inputId={input.id}
|
|
145
|
-
index={index}
|
|
146
|
-
inputType={"textarea"}
|
|
147
|
-
label={input?.name + (input.required ? "*" : "")}
|
|
148
|
-
value={
|
|
149
|
-
compare ? auditInputGroup?.inputs[index]?.value : input?.value
|
|
150
|
-
}
|
|
151
|
-
isRequired={input.required}
|
|
152
|
-
maxChar={input.max_chars}
|
|
153
|
-
inputPlaceHolder={input?.placeholder}
|
|
154
|
-
updatedDescriptions={updatedDescriptions}
|
|
155
|
-
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
156
|
-
articleId={articleId}
|
|
157
|
-
version={version}
|
|
158
|
-
dinamicHeight={dinamicHeight}
|
|
159
|
-
description={input?.description}
|
|
160
|
-
showTooltip={true}
|
|
161
|
-
auditClass={
|
|
162
|
-
compare &&
|
|
163
|
-
!isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
|
|
164
|
-
? "audit-class"
|
|
165
|
-
: ""
|
|
166
|
-
}
|
|
167
|
-
/>
|
|
168
|
-
)
|
|
72
|
+
</Container>
|
|
73
|
+
)}
|
|
74
|
+
{inputGroup.groupId !== "16" && (
|
|
75
|
+
<Container
|
|
76
|
+
className={
|
|
77
|
+
activeSection === "Ficha técnica"
|
|
78
|
+
? "datasheets-layout"
|
|
79
|
+
: "descriptions-layout"
|
|
80
|
+
}
|
|
81
|
+
>
|
|
82
|
+
{inputGroup?.dataGroup && (
|
|
83
|
+
<ScreenHeader
|
|
84
|
+
headerType={"retailer-name-header"}
|
|
85
|
+
text={`${inputGroup?.dataGroup}`}
|
|
86
|
+
/>
|
|
169
87
|
)}
|
|
170
|
-
|
|
171
|
-
|
|
88
|
+
<div className="inputs-container">
|
|
89
|
+
{inputGroup?.inputs?.map((input, index) =>
|
|
90
|
+
activeSection === "Ficha técnica" ? (
|
|
91
|
+
<>
|
|
92
|
+
<TagAndInput
|
|
93
|
+
key={
|
|
94
|
+
index +
|
|
95
|
+
"-" +
|
|
96
|
+
dataInputs[input]?.value +
|
|
97
|
+
"-" +
|
|
98
|
+
dataInputs[input]?.id +
|
|
99
|
+
"-" +
|
|
100
|
+
compare
|
|
101
|
+
}
|
|
102
|
+
//disabled={input === 40001}
|
|
103
|
+
disabled={false}
|
|
104
|
+
inputId={dataInputs[input]?.id}
|
|
105
|
+
version={version}
|
|
106
|
+
inputType={inputTypeValue(dataInputs[input]?.type)}
|
|
107
|
+
label={
|
|
108
|
+
dataInputs[input]?.name +
|
|
109
|
+
(dataInputs[input]?.required ? "*" : "")
|
|
110
|
+
}
|
|
111
|
+
value={
|
|
112
|
+
compare
|
|
113
|
+
? auditInputs[input]?.value
|
|
114
|
+
: dataInputs[input]?.value
|
|
115
|
+
}
|
|
116
|
+
inputPlaceHolder={input?.placeholder}
|
|
117
|
+
articleId={articleId}
|
|
118
|
+
isRequired={dataInputs[input]?.required}
|
|
119
|
+
updatedDatasheets={updatedDatasheets}
|
|
120
|
+
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
121
|
+
maxChar={
|
|
122
|
+
dataInputs[input]?.max_chars
|
|
123
|
+
? dataInputs[input]?.max_chars
|
|
124
|
+
: 999
|
|
125
|
+
}
|
|
126
|
+
optionList={dataInputs[input]?.option_list}
|
|
127
|
+
description={dataInputs[input]?.description}
|
|
128
|
+
showTooltip={true}
|
|
129
|
+
auditClass={
|
|
130
|
+
compare &&
|
|
131
|
+
!isEquals(
|
|
132
|
+
dataInputs[input].value,
|
|
133
|
+
auditInputs[input].value
|
|
134
|
+
)
|
|
135
|
+
? "audit-class"
|
|
136
|
+
: ""
|
|
137
|
+
}
|
|
138
|
+
/>
|
|
139
|
+
</>
|
|
140
|
+
) : (
|
|
141
|
+
<TagAndInput
|
|
142
|
+
key={index + "-" + input?.value + "-" + compare}
|
|
143
|
+
inputId={input.id}
|
|
144
|
+
index={index}
|
|
145
|
+
inputType={"textarea"}
|
|
146
|
+
label={input?.name + (input.required ? "*" : "")}
|
|
147
|
+
value={
|
|
148
|
+
compare
|
|
149
|
+
? auditInputGroup?.inputs[index]?.value
|
|
150
|
+
: input?.value
|
|
151
|
+
}
|
|
152
|
+
isRequired={input.required}
|
|
153
|
+
maxChar={input.max_chars}
|
|
154
|
+
inputPlaceHolder={input?.placeholder}
|
|
155
|
+
updatedDescriptions={updatedDescriptions}
|
|
156
|
+
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
157
|
+
articleId={articleId}
|
|
158
|
+
version={version}
|
|
159
|
+
dinamicHeight={dinamicHeight}
|
|
160
|
+
description={input?.description}
|
|
161
|
+
showTooltip={true}
|
|
162
|
+
auditClass={
|
|
163
|
+
compare &&
|
|
164
|
+
!isEquals(
|
|
165
|
+
input?.value,
|
|
166
|
+
auditInputGroup?.inputs[index]?.value
|
|
167
|
+
)
|
|
168
|
+
? "audit-class"
|
|
169
|
+
: ""
|
|
170
|
+
}
|
|
171
|
+
/>
|
|
172
|
+
)
|
|
173
|
+
)}
|
|
174
|
+
</div>
|
|
175
|
+
</Container>
|
|
172
176
|
)}
|
|
173
|
-
|
|
177
|
+
{inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 74 && (
|
|
174
178
|
<Container
|
|
175
179
|
className={
|
|
176
180
|
activeSection === "Ficha técnica"
|
|
@@ -230,7 +234,10 @@ export const InputGroup = ({
|
|
|
230
234
|
onChange={setUpdatedBoxData}
|
|
231
235
|
auditClass={
|
|
232
236
|
compare &&
|
|
233
|
-
!isEquals(
|
|
237
|
+
!isEquals(
|
|
238
|
+
dataInputs[input].value,
|
|
239
|
+
auditInputs[input].value
|
|
240
|
+
)
|
|
234
241
|
? "audit-class"
|
|
235
242
|
: ""
|
|
236
243
|
}
|
|
@@ -244,7 +251,9 @@ export const InputGroup = ({
|
|
|
244
251
|
inputType={"textarea"}
|
|
245
252
|
label={input?.name + (input.required ? "*" : "")}
|
|
246
253
|
value={
|
|
247
|
-
compare
|
|
254
|
+
compare
|
|
255
|
+
? auditInputGroup?.inputs[index]?.value
|
|
256
|
+
: input?.value
|
|
248
257
|
}
|
|
249
258
|
isRequired={input.required}
|
|
250
259
|
maxChar={input.max_chars}
|
|
@@ -258,7 +267,10 @@ export const InputGroup = ({
|
|
|
258
267
|
showTooltip={true}
|
|
259
268
|
auditClass={
|
|
260
269
|
compare &&
|
|
261
|
-
!isEquals(
|
|
270
|
+
!isEquals(
|
|
271
|
+
input?.value,
|
|
272
|
+
auditInputGroup?.inputs[index]?.value
|
|
273
|
+
)
|
|
262
274
|
? "audit-class"
|
|
263
275
|
: ""
|
|
264
276
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { InputGroupv2 } from "./index";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/organisms/InputGroupv2",
|
|
5
|
+
component: InputGroupv2,
|
|
6
|
+
argTypes: {
|
|
7
|
+
activeSection: {
|
|
8
|
+
options: [true, false],
|
|
9
|
+
control: { type: "boolean" },
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const Template = (args) => <InputGroupv2 {...args} />;
|
|
15
|
+
|
|
16
|
+
export const InputGroupDefault = Template.bind({});
|
|
17
|
+
InputGroupDefault.args = {
|
|
18
|
+
InputGroupv2: {
|
|
19
|
+
name: "Información básica del producto",
|
|
20
|
+
inputs: [
|
|
21
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
22
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
23
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
24
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
25
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
26
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
27
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
28
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { Container } from "./styles";
|
|
2
|
+
import { TagAndInputv2 } from "../../molecules/TagAndInputv2";
|
|
3
|
+
import { ScreenHeaderv2 } from "../../atoms/ScreenHeaderv2";
|
|
4
|
+
import { useState, useEffect } from "react";
|
|
5
|
+
import { Box } from "../Box";
|
|
6
|
+
|
|
7
|
+
export const InputGroupv2 = ({
|
|
8
|
+
inputGroup = {},
|
|
9
|
+
auditInputGroup,
|
|
10
|
+
activeSection,
|
|
11
|
+
dataInputs = {},
|
|
12
|
+
auditInputs = {},
|
|
13
|
+
updatedDescriptions,
|
|
14
|
+
setUpdatedDescriptions,
|
|
15
|
+
updatedDatasheets,
|
|
16
|
+
setUpdatedDatasheets,
|
|
17
|
+
articleId,
|
|
18
|
+
version,
|
|
19
|
+
dinamicHeight,
|
|
20
|
+
compare,
|
|
21
|
+
activeRetailer,
|
|
22
|
+
setUpdatedBoxData,
|
|
23
|
+
showMissingChars,
|
|
24
|
+
}) => {
|
|
25
|
+
const inputTypeValue = (type) => {
|
|
26
|
+
switch (type) {
|
|
27
|
+
case "Booleano":
|
|
28
|
+
return "checkbox";
|
|
29
|
+
case "Numérico":
|
|
30
|
+
return "number";
|
|
31
|
+
default:
|
|
32
|
+
return "text";
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const [showBox, setShowBox] = useState(false);
|
|
36
|
+
|
|
37
|
+
const isEquals = (dataInputsVal, auditInputsVal) => {
|
|
38
|
+
const result = dataInputsVal === auditInputsVal;
|
|
39
|
+
return result;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (inputGroup.groupId === "16" && activeRetailer && activeRetailer?.retailer?.id) {
|
|
45
|
+
if (activeRetailer?.retailer?.id === 68) {
|
|
46
|
+
setShowBox(true);
|
|
47
|
+
} else {
|
|
48
|
+
setShowBox(false);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, [activeRetailer, inputGroup.groupId]);
|
|
52
|
+
|
|
53
|
+
// useEffect(() => {
|
|
54
|
+
// if (showBox) {
|
|
55
|
+
// // Realiza la acción que deseas cuando showBox es true
|
|
56
|
+
// console.log("showBox es true");
|
|
57
|
+
// } else {
|
|
58
|
+
// // Realiza la acción que deseas cuando showBox es false
|
|
59
|
+
// console.log("showBox es false");
|
|
60
|
+
// }
|
|
61
|
+
// }, [showBox]);
|
|
62
|
+
// console.log("dataInputs",dataInputs);
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<>
|
|
66
|
+
{inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 68 && (
|
|
67
|
+
<Container
|
|
68
|
+
className={
|
|
69
|
+
activeSection === "Ficha técnica"
|
|
70
|
+
? "datasheets-layout"
|
|
71
|
+
: "descriptions-layout"
|
|
72
|
+
}
|
|
73
|
+
>
|
|
74
|
+
<Box
|
|
75
|
+
inputGroup={inputGroup}
|
|
76
|
+
dataInputs={dataInputs}
|
|
77
|
+
onChange={setUpdatedBoxData}
|
|
78
|
+
/>
|
|
79
|
+
</Container>
|
|
80
|
+
)}
|
|
81
|
+
{(inputGroup.groupId !== "16") && (
|
|
82
|
+
<Container
|
|
83
|
+
className={
|
|
84
|
+
activeSection === "Ficha técnica"
|
|
85
|
+
? "datasheets-layout"
|
|
86
|
+
: "descriptions-layout"
|
|
87
|
+
}
|
|
88
|
+
>
|
|
89
|
+
{inputGroup?.dataGroup && (
|
|
90
|
+
<ScreenHeaderv2
|
|
91
|
+
headerType={"retailer-name-header"}
|
|
92
|
+
text={`${inputGroup?.dataGroup}`}
|
|
93
|
+
/>
|
|
94
|
+
)}
|
|
95
|
+
<div className="inputs-container">
|
|
96
|
+
{inputGroup?.inputs?.map((input, index) =>
|
|
97
|
+
activeSection === "Ficha técnica" ? (
|
|
98
|
+
<>
|
|
99
|
+
<TagAndInputv2
|
|
100
|
+
key={
|
|
101
|
+
index +
|
|
102
|
+
"-" +
|
|
103
|
+
dataInputs[input]?.value +
|
|
104
|
+
"-" +
|
|
105
|
+
dataInputs[input]?.id +
|
|
106
|
+
"-" +
|
|
107
|
+
compare
|
|
108
|
+
}
|
|
109
|
+
//disabled={input === 40001}
|
|
110
|
+
disabled={false}
|
|
111
|
+
inputId={dataInputs[input]?.id}
|
|
112
|
+
version={version}
|
|
113
|
+
inputType={inputTypeValue(dataInputs[input]?.type)}
|
|
114
|
+
label={
|
|
115
|
+
dataInputs[input]?.name +
|
|
116
|
+
(dataInputs[input]?.required ? "*" : "")
|
|
117
|
+
}
|
|
118
|
+
value={
|
|
119
|
+
compare
|
|
120
|
+
? auditInputs[input]?.value
|
|
121
|
+
: dataInputs[input]?.value
|
|
122
|
+
}
|
|
123
|
+
inputPlaceHolder={input?.placeholder}
|
|
124
|
+
articleId={articleId}
|
|
125
|
+
isRequired={dataInputs[input]?.required}
|
|
126
|
+
required={dataInputs[input]?.required}
|
|
127
|
+
minWords={dataInputs[input]?.min_words}
|
|
128
|
+
maxWords={dataInputs[input]?.max_words}
|
|
129
|
+
minChar={dataInputs[input]?.min_chars}
|
|
130
|
+
updatedDatasheets={updatedDatasheets}
|
|
131
|
+
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
132
|
+
maxChar={
|
|
133
|
+
dataInputs[input]?.max_chars
|
|
134
|
+
? dataInputs[input]?.max_chars
|
|
135
|
+
: 999
|
|
136
|
+
}
|
|
137
|
+
optionList={dataInputs[input]?.option_list}
|
|
138
|
+
description={dataInputs[input]?.description}
|
|
139
|
+
showTooltip={true}
|
|
140
|
+
auditClass={
|
|
141
|
+
compare &&
|
|
142
|
+
!isEquals(dataInputs[input].value, auditInputs[input].value)
|
|
143
|
+
? "audit-class"
|
|
144
|
+
: ""
|
|
145
|
+
}
|
|
146
|
+
showMissingChars={showMissingChars}
|
|
147
|
+
/>
|
|
148
|
+
</>
|
|
149
|
+
) : (
|
|
150
|
+
<TagAndInputv2
|
|
151
|
+
key={index + "-" + input?.value + "-" + compare}
|
|
152
|
+
inputId={input.id}
|
|
153
|
+
index={index}
|
|
154
|
+
inputType={"textarea"}
|
|
155
|
+
label={input?.name + (input.required ? "*" : "")}
|
|
156
|
+
value={
|
|
157
|
+
compare ? auditInputGroup?.inputs[index]?.value : input?.value
|
|
158
|
+
}
|
|
159
|
+
isRequired={input.required}
|
|
160
|
+
required={input.required}
|
|
161
|
+
minWords={input?.min_words}
|
|
162
|
+
maxWords={input?.max_words}
|
|
163
|
+
minChar={input?.min_chars}
|
|
164
|
+
maxChar={input.max_chars}
|
|
165
|
+
inputPlaceHolder={input?.placeholder}
|
|
166
|
+
updatedDescriptions={updatedDescriptions}
|
|
167
|
+
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
168
|
+
articleId={articleId}
|
|
169
|
+
version={version}
|
|
170
|
+
dinamicHeight={dinamicHeight}
|
|
171
|
+
description={input?.description}
|
|
172
|
+
showTooltip={true}
|
|
173
|
+
auditClass={
|
|
174
|
+
compare &&
|
|
175
|
+
!isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
|
|
176
|
+
? "audit-class"
|
|
177
|
+
: ""
|
|
178
|
+
}
|
|
179
|
+
showMissingChars={showMissingChars}
|
|
180
|
+
/>
|
|
181
|
+
)
|
|
182
|
+
)}
|
|
183
|
+
</div>
|
|
184
|
+
</Container>
|
|
185
|
+
)}
|
|
186
|
+
{(inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 74) && (
|
|
187
|
+
<Container
|
|
188
|
+
className={
|
|
189
|
+
activeSection === "Ficha técnica"
|
|
190
|
+
? "datasheets-layout"
|
|
191
|
+
: "descriptions-layout"
|
|
192
|
+
}
|
|
193
|
+
>
|
|
194
|
+
{inputGroup?.dataGroup && (
|
|
195
|
+
<ScreenHeaderv2
|
|
196
|
+
headerType={"retailer-name-header"}
|
|
197
|
+
text={`${inputGroup?.dataGroup}`}
|
|
198
|
+
/>
|
|
199
|
+
)}
|
|
200
|
+
<div className="inputs-container">
|
|
201
|
+
{inputGroup?.inputs?.map((input, index) =>
|
|
202
|
+
activeSection === "Ficha técnica" ? (
|
|
203
|
+
<>
|
|
204
|
+
<TagAndInputv2
|
|
205
|
+
key={
|
|
206
|
+
index +
|
|
207
|
+
"-" +
|
|
208
|
+
dataInputs[input]?.value +
|
|
209
|
+
"-" +
|
|
210
|
+
dataInputs[input]?.id +
|
|
211
|
+
"-" +
|
|
212
|
+
compare
|
|
213
|
+
}
|
|
214
|
+
//disabled={input === 40001}
|
|
215
|
+
disabled={false}
|
|
216
|
+
inputId={dataInputs[input]?.id}
|
|
217
|
+
version={version}
|
|
218
|
+
inputType={inputTypeValue(dataInputs[input]?.type)}
|
|
219
|
+
label={
|
|
220
|
+
dataInputs[input]?.name +
|
|
221
|
+
(dataInputs[input]?.required ? "*" : "")
|
|
222
|
+
}
|
|
223
|
+
value={
|
|
224
|
+
compare
|
|
225
|
+
? auditInputs[input]?.value
|
|
226
|
+
: dataInputs[input]?.value
|
|
227
|
+
}
|
|
228
|
+
inputPlaceHolder={input?.placeholder}
|
|
229
|
+
articleId={articleId}
|
|
230
|
+
isRequired={dataInputs[input]?.required}
|
|
231
|
+
required={input.required}
|
|
232
|
+
minWords={input?.min_words}
|
|
233
|
+
maxWords={input?.max_words}
|
|
234
|
+
minChar={input?.min_chars}
|
|
235
|
+
updatedDatasheets={updatedDatasheets}
|
|
236
|
+
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
237
|
+
maxChar={
|
|
238
|
+
dataInputs[input]?.max_chars
|
|
239
|
+
? dataInputs[input]?.max_chars
|
|
240
|
+
: 999
|
|
241
|
+
}
|
|
242
|
+
optionList={dataInputs[input]?.option_list}
|
|
243
|
+
description={dataInputs[input]?.description}
|
|
244
|
+
showTooltip={true}
|
|
245
|
+
inputGroup={inputGroup}
|
|
246
|
+
dataInputs={dataInputs}
|
|
247
|
+
onChange={setUpdatedBoxData}
|
|
248
|
+
auditClass={
|
|
249
|
+
compare &&
|
|
250
|
+
!isEquals(dataInputs[input].value, auditInputs[input].value)
|
|
251
|
+
? "audit-class"
|
|
252
|
+
: ""
|
|
253
|
+
}
|
|
254
|
+
showMissingChars={showMissingChars}
|
|
255
|
+
/>
|
|
256
|
+
</>
|
|
257
|
+
) : (
|
|
258
|
+
<TagAndInputv2
|
|
259
|
+
key={index + "-" + input?.value + "-" + compare}
|
|
260
|
+
inputId={input.id}
|
|
261
|
+
index={index}
|
|
262
|
+
inputType={"textarea"}
|
|
263
|
+
label={input?.name + (input.required ? "*" : "")}
|
|
264
|
+
value={
|
|
265
|
+
compare ? auditInputGroup?.inputs[index]?.value : input?.value
|
|
266
|
+
}
|
|
267
|
+
isRequired={input.required}
|
|
268
|
+
required={input.required}
|
|
269
|
+
minWords={input?.min_words}
|
|
270
|
+
maxWords={input?.max_words}
|
|
271
|
+
minChar={input?.min_chars}
|
|
272
|
+
maxChar={input.max_chars}
|
|
273
|
+
inputPlaceHolder={input?.placeholder}
|
|
274
|
+
updatedDescriptions={updatedDescriptions}
|
|
275
|
+
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
276
|
+
articleId={articleId}
|
|
277
|
+
version={version}
|
|
278
|
+
dinamicHeight={dinamicHeight}
|
|
279
|
+
description={input?.description}
|
|
280
|
+
showTooltip={true}
|
|
281
|
+
auditClass={
|
|
282
|
+
compare &&
|
|
283
|
+
!isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
|
|
284
|
+
? "audit-class"
|
|
285
|
+
: ""
|
|
286
|
+
}
|
|
287
|
+
showMissingChars={showMissingChars}
|
|
288
|
+
/>
|
|
289
|
+
)
|
|
290
|
+
)}
|
|
291
|
+
</div>
|
|
292
|
+
</Container>
|
|
293
|
+
)}
|
|
294
|
+
</>
|
|
295
|
+
);
|
|
296
|
+
}
|