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.
Files changed (339) hide show
  1. package/dist/assets/images/Icons/infoNR.svg +8 -0
  2. package/dist/assets/images/flagsv2/highPriority.svg +3 -0
  3. package/dist/assets/images/flagsv2/lowPriority.svg +3 -0
  4. package/dist/assets/images/flagsv2/mediumPriority.svg +3 -0
  5. package/dist/assets/images/flagsv2/noPriority.svg +3 -0
  6. package/dist/assets/images/generalButton/closeIconWhite.svg +4 -0
  7. package/dist/assets/images/generalButton/closeIconv2.svg +4 -0
  8. package/dist/components/atoms/CharsMissing/Wysiwyg.stories.js +30 -0
  9. package/dist/components/atoms/CharsMissing/index.js +89 -0
  10. package/dist/components/atoms/CharsMissing/styles.js +33 -0
  11. package/dist/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +32 -0
  12. package/dist/components/atoms/FeatureTagv2/index.js +29 -0
  13. package/dist/components/atoms/FeatureTagv2/styles.js +22 -0
  14. package/dist/components/atoms/GeneralButton/styles.js +6 -2
  15. package/dist/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +50 -0
  16. package/dist/components/atoms/GeneralInputv2/index.js +188 -0
  17. package/dist/components/atoms/GeneralInputv2/styles.js +29 -0
  18. package/dist/components/atoms/InputFormatter/styles.js +3 -3
  19. package/dist/components/atoms/InputFormatterv2/Wysiwyg.stories.js +30 -0
  20. package/dist/components/atoms/InputFormatterv2/index.js +182 -0
  21. package/dist/components/atoms/InputFormatterv2/styles.js +33 -0
  22. package/dist/components/atoms/InputImages/InputImages.stories.js +34 -0
  23. package/dist/components/atoms/InputImages/index.js +46 -0
  24. package/dist/components/atoms/InputImages/styles.js +20 -0
  25. package/dist/components/atoms/NumberMandatory/NumberMandatory.stories.js +34 -0
  26. package/dist/components/atoms/NumberMandatory/index.js +35 -0
  27. package/dist/components/atoms/NumberMandatory/styles.js +20 -0
  28. package/dist/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +38 -0
  29. package/dist/components/atoms/PriorityFlagv2/index.js +37 -0
  30. package/dist/components/atoms/PriorityFlagv2/styles.js +18 -0
  31. package/dist/components/atoms/ProductImagev2/ProductImagev2.stories.js +39 -0
  32. package/dist/components/atoms/ProductImagev2/index.js +34 -0
  33. package/dist/components/atoms/ProductImagev2/styles.js +18 -0
  34. package/dist/components/atoms/Progress/Progress.stories.js +49 -0
  35. package/dist/components/atoms/Progress/index.js +74 -0
  36. package/dist/components/atoms/Progress/styles.js +30 -0
  37. package/dist/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +67 -0
  38. package/dist/components/atoms/ScreenHeaderv2/index.js +169 -0
  39. package/dist/components/atoms/ScreenHeaderv2/styles.js +40 -0
  40. package/dist/components/atoms/Selectv2/VersionSelect.js +38 -0
  41. package/dist/components/atoms/Selectv2/index.js +40 -0
  42. package/dist/components/atoms/Selectv2/style.js +38 -0
  43. package/dist/components/atoms/TabSectionv2/TabSection.stories.js +39 -0
  44. package/dist/components/atoms/TabSectionv2/index.js +26 -0
  45. package/dist/components/atoms/TabSectionv2/styles.js +20 -0
  46. package/dist/components/atoms/TooltipLight/Tooltip.stories.js +36 -0
  47. package/dist/components/atoms/TooltipLight/index.js +117 -0
  48. package/dist/components/atoms/TooltipLight/styles.js +23 -0
  49. package/dist/components/atoms/WordsMissing/Wysiwyg.stories.js +30 -0
  50. package/dist/components/atoms/WordsMissing/index.js +89 -0
  51. package/dist/components/atoms/WordsMissing/styles.js +20 -0
  52. package/dist/components/molecules/AsignationInfo/AsignationInfo.stories.js +34 -0
  53. package/dist/components/molecules/AsignationInfo/index.js +137 -0
  54. package/dist/components/molecules/AsignationInfo/styles.js +20 -0
  55. package/dist/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +28 -0
  56. package/dist/components/molecules/EditionActiveImagev2/index.js +34 -0
  57. package/dist/components/molecules/EditionActiveImagev2/styles.js +18 -0
  58. package/dist/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +45 -0
  59. package/dist/components/molecules/FeaturesBarv2/index.js +49 -0
  60. package/dist/components/molecules/FeaturesBarv2/styles.js +18 -0
  61. package/dist/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +45 -0
  62. package/dist/components/molecules/GalleryElementv2/index.js +164 -0
  63. package/dist/components/molecules/GalleryElementv2/styles.js +20 -0
  64. package/dist/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +28 -0
  65. package/dist/components/molecules/GalleryHeaderv2/index.js +61 -0
  66. package/dist/components/molecules/GalleryHeaderv2/styles.js +20 -0
  67. package/dist/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +27 -0
  68. package/dist/components/molecules/HeaderTopv2/index.js +123 -0
  69. package/dist/components/molecules/HeaderTopv2/styles.js +18 -0
  70. package/dist/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +55 -0
  71. package/dist/components/molecules/ImageSelectorv2/index.js +36 -0
  72. package/dist/components/molecules/ImageSelectorv2/styles.js +18 -0
  73. package/dist/components/molecules/Phase/Phase.stories.js +65 -0
  74. package/dist/components/molecules/Phase/index.js +104 -0
  75. package/dist/components/molecules/Phase/styles.js +24 -0
  76. package/dist/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +65 -0
  77. package/dist/components/molecules/ProductNameHeaderv2/index.js +24 -0
  78. package/dist/components/molecules/ProductNameHeaderv2/styles.js +18 -0
  79. package/dist/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +65 -0
  80. package/dist/components/molecules/ProductSkuStatus/index.js +36 -0
  81. package/dist/components/molecules/ProductSkuStatus/styles.js +18 -0
  82. package/dist/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +48 -0
  83. package/dist/components/molecules/RetailerSelectorv2/index.js +109 -0
  84. package/dist/components/molecules/RetailerSelectorv2/styles.js +20 -0
  85. package/dist/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +99 -0
  86. package/dist/components/molecules/ServiceDataValidator/index.js +57 -0
  87. package/dist/components/molecules/ServiceDataValidator/styles.js +20 -0
  88. package/dist/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +34 -0
  89. package/dist/components/molecules/StatusRetailer/index.js +74 -0
  90. package/dist/components/molecules/StatusRetailer/styles.js +20 -0
  91. package/dist/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +35 -0
  92. package/dist/components/molecules/TabsMenuv2/index.js +145 -0
  93. package/dist/components/molecules/TabsMenuv2/styles.js +18 -0
  94. package/dist/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +41 -0
  95. package/dist/components/molecules/TagAndInputv2/index.js +92 -0
  96. package/dist/components/molecules/TagAndInputv2/styles.js +29 -0
  97. package/dist/components/molecules/Validation/Validation.stories.js +28 -0
  98. package/dist/components/molecules/Validation/index.js +89 -0
  99. package/dist/components/molecules/Validation/styles.js +18 -0
  100. package/dist/components/molecules/VersionItemv2/VersionItemv2.stories.js +28 -0
  101. package/dist/components/molecules/VersionItemv2/index.js +74 -0
  102. package/dist/components/molecules/VersionItemv2/styles.js +20 -0
  103. package/dist/components/organisms/BarButtons/BarButtons.stories.js +30 -0
  104. package/dist/components/organisms/BarButtons/index.js +186 -0
  105. package/dist/components/organisms/BarButtons/styles.js +24 -0
  106. package/dist/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +83 -0
  107. package/dist/components/organisms/Chatv2/ChatLists/index.js +160 -0
  108. package/dist/components/organisms/Chatv2/ChatLists/styles.js +29 -0
  109. package/dist/components/organisms/Chatv2/Chatv2.stories.js +194 -0
  110. package/dist/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +176 -0
  111. package/dist/components/organisms/Chatv2/ContainerItems/index.js +556 -0
  112. package/dist/components/organisms/Chatv2/ContainerItems/styles.js +20 -0
  113. package/dist/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +142 -0
  114. package/dist/components/organisms/Chatv2/ContentChat/index.js +1679 -0
  115. package/dist/components/organisms/Chatv2/ContentChat/styles.js +20 -0
  116. package/dist/components/organisms/Chatv2/Footer/Footer.stories.js +43 -0
  117. package/dist/components/organisms/Chatv2/Footer/index.js +984 -0
  118. package/dist/components/organisms/Chatv2/Footer/styles.js +32 -0
  119. package/dist/components/organisms/Chatv2/Header/Header.stories.js +96 -0
  120. package/dist/components/organisms/Chatv2/Header/index.js +83 -0
  121. package/dist/components/organisms/Chatv2/Header/styles.js +20 -0
  122. package/dist/components/organisms/Chatv2/index.js +306 -0
  123. package/dist/components/organisms/Chatv2/styles.js +34 -0
  124. package/dist/components/organisms/CompleteServices/CompleteServices.stories.js +100 -0
  125. package/dist/components/organisms/CompleteServices/index.js +93 -0
  126. package/dist/components/organisms/CompleteServices/styles.js +20 -0
  127. package/dist/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +28 -0
  128. package/dist/components/organisms/DragAndDropPhases/index.js +110 -0
  129. package/dist/components/organisms/DragAndDropPhases/styles.js +20 -0
  130. package/dist/components/organisms/DragPrueba/DragPrueba.stories.js +28 -0
  131. package/dist/components/organisms/DragPrueba/index.js +95 -0
  132. package/dist/components/organisms/DragPrueba/styles.js +20 -0
  133. package/dist/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +54 -0
  134. package/dist/components/organisms/FullProductNamev2/index.js +112 -0
  135. package/dist/components/organisms/FullProductNamev2/styles.js +20 -0
  136. package/dist/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +39 -0
  137. package/dist/components/organisms/FullTabsMenuv2/index.js +168 -0
  138. package/dist/components/organisms/FullTabsMenuv2/styles.js +18 -0
  139. package/dist/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +50 -0
  140. package/dist/components/organisms/ImageDataTablev2/index.js +128 -0
  141. package/dist/components/organisms/ImageDataTablev2/styles.js +26 -0
  142. package/dist/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +48 -0
  143. package/dist/components/organisms/ImagePreviewerv2/index.js +36 -0
  144. package/dist/components/organisms/ImagePreviewerv2/styles.js +18 -0
  145. package/dist/components/organisms/InputGroupv2/InputGroupv2.stories.js +73 -0
  146. package/dist/components/organisms/InputGroupv2/index.js +228 -0
  147. package/dist/components/organisms/InputGroupv2/styles.js +28 -0
  148. package/dist/components/organisms/MandatoryBar/MandatoryBar.stories.js +31 -0
  149. package/dist/components/organisms/MandatoryBar/index.js +38 -0
  150. package/dist/components/organisms/MandatoryBar/styles.js +20 -0
  151. package/dist/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +153 -0
  152. package/dist/components/organisms/ProductImageModalv2/index.js +106 -0
  153. package/dist/components/organisms/ProductImageModalv2/styles.js +20 -0
  154. package/dist/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +31 -0
  155. package/dist/components/organisms/RenameImagesBar/index.js +38 -0
  156. package/dist/components/organisms/RenameImagesBar/styles.js +20 -0
  157. package/dist/components/organisms/VersionSelector/index.js +2 -4
  158. package/dist/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +32 -0
  159. package/dist/components/organisms/VersionSelectorv2/index.js +166 -0
  160. package/dist/components/organisms/VersionSelectorv2/styles.js +20 -0
  161. package/dist/components/pages/ProductEditionv2/ProductEditionv2.stories.js +222 -0
  162. package/dist/components/pages/ProductEditionv2/index.js +2495 -0
  163. package/dist/components/pages/ProductEditionv2/styles.js +23 -0
  164. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +34 -38
  165. package/dist/components/pages/ProviderProductEdition/index.js +63 -52
  166. package/dist/global-files/variables.js +3 -1
  167. package/package.json +1 -1
  168. package/src/assets/images/Icons/infoNR.svg +8 -0
  169. package/src/assets/images/flagsv2/highPriority.svg +3 -0
  170. package/src/assets/images/flagsv2/lowPriority.svg +3 -0
  171. package/src/assets/images/flagsv2/mediumPriority.svg +3 -0
  172. package/src/assets/images/flagsv2/noPriority.svg +3 -0
  173. package/src/assets/images/generalButton/closeIconWhite.svg +4 -0
  174. package/src/assets/images/generalButton/closeIconv2.svg +4 -0
  175. package/src/components/atoms/CharsMissing/Wysiwyg.stories.js +12 -0
  176. package/src/components/atoms/CharsMissing/index.js +60 -0
  177. package/src/components/atoms/CharsMissing/styles.js +44 -0
  178. package/src/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +16 -0
  179. package/src/components/atoms/FeatureTagv2/index.js +10 -0
  180. package/src/components/atoms/FeatureTagv2/styles.js +56 -0
  181. package/src/components/atoms/GeneralButton/styles.js +46 -0
  182. package/src/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +33 -0
  183. package/src/components/atoms/GeneralInputv2/index.js +155 -0
  184. package/src/components/atoms/GeneralInputv2/styles.js +67 -0
  185. package/src/components/atoms/InputFormatter/styles.js +7 -3
  186. package/src/components/atoms/InputFormatterv2/Wysiwyg.stories.js +12 -0
  187. package/src/components/atoms/InputFormatterv2/index.js +148 -0
  188. package/src/components/atoms/InputFormatterv2/styles.js +39 -0
  189. package/src/components/atoms/InputImages/InputImages.stories.js +19 -0
  190. package/src/components/atoms/InputImages/index.js +25 -0
  191. package/src/components/atoms/InputImages/styles.js +17 -0
  192. package/src/components/atoms/NumberMandatory/NumberMandatory.stories.js +19 -0
  193. package/src/components/atoms/NumberMandatory/index.js +16 -0
  194. package/src/components/atoms/NumberMandatory/styles.js +11 -0
  195. package/src/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +20 -0
  196. package/src/components/atoms/PriorityFlagv2/index.js +20 -0
  197. package/src/components/atoms/PriorityFlagv2/styles.js +6 -0
  198. package/src/components/atoms/ProductImagev2/ProductImagev2.stories.js +28 -0
  199. package/src/components/atoms/ProductImagev2/index.js +16 -0
  200. package/src/components/atoms/ProductImagev2/styles.js +62 -0
  201. package/src/components/atoms/Progress/Progress.stories.js +25 -0
  202. package/src/components/atoms/Progress/index.js +74 -0
  203. package/src/components/atoms/Progress/styles.js +98 -0
  204. package/src/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +53 -0
  205. package/src/components/atoms/ScreenHeaderv2/index.js +134 -0
  206. package/src/components/atoms/ScreenHeaderv2/styles.js +103 -0
  207. package/src/components/atoms/Selectv2/VersionSelect.js +27 -0
  208. package/src/components/atoms/Selectv2/index.js +35 -0
  209. package/src/components/atoms/Selectv2/style.js +93 -0
  210. package/src/components/atoms/TabSection/index.js +1 -1
  211. package/src/components/atoms/TabSectionv2/TabSection.stories.js +25 -0
  212. package/src/components/atoms/TabSectionv2/index.js +9 -0
  213. package/src/components/atoms/TabSectionv2/styles.js +20 -0
  214. package/src/components/atoms/TooltipLight/Tooltip.stories.js +20 -0
  215. package/src/components/atoms/TooltipLight/index.js +46 -0
  216. package/src/components/atoms/TooltipLight/styles.js +65 -0
  217. package/src/components/atoms/WordsMissing/Wysiwyg.stories.js +12 -0
  218. package/src/components/atoms/WordsMissing/index.js +60 -0
  219. package/src/components/atoms/WordsMissing/styles.js +10 -0
  220. package/src/components/molecules/AsignationInfo/AsignationInfo.stories.js +17 -0
  221. package/src/components/molecules/AsignationInfo/index.js +108 -0
  222. package/src/components/molecules/AsignationInfo/styles.js +86 -0
  223. package/src/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +12 -0
  224. package/src/components/molecules/EditionActiveImagev2/index.js +15 -0
  225. package/src/components/molecules/EditionActiveImagev2/styles.js +7 -0
  226. package/src/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +20 -0
  227. package/src/components/molecules/FeaturesBarv2/index.js +32 -0
  228. package/src/components/molecules/FeaturesBarv2/styles.js +17 -0
  229. package/src/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +30 -0
  230. package/src/components/molecules/GalleryElementv2/index.js +142 -0
  231. package/src/components/molecules/GalleryElementv2/styles.js +119 -0
  232. package/src/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +10 -0
  233. package/src/components/molecules/GalleryHeaderv2/index.js +25 -0
  234. package/src/components/molecules/GalleryHeaderv2/styles.js +47 -0
  235. package/src/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +10 -0
  236. package/src/components/molecules/HeaderTopv2/index.js +100 -0
  237. package/src/components/molecules/HeaderTopv2/styles.js +33 -0
  238. package/src/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +46 -0
  239. package/src/components/molecules/ImageSelectorv2/index.js +22 -0
  240. package/src/components/molecules/ImageSelectorv2/styles.js +15 -0
  241. package/src/components/molecules/Phase/Phase.stories.js +37 -0
  242. package/src/components/molecules/Phase/index.js +56 -0
  243. package/src/components/molecules/Phase/styles.js +82 -0
  244. package/src/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +37 -0
  245. package/src/components/molecules/ProductNameHeaderv2/index.js +12 -0
  246. package/src/components/molecules/ProductNameHeaderv2/styles.js +10 -0
  247. package/src/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +37 -0
  248. package/src/components/molecules/ProductSkuStatus/index.js +26 -0
  249. package/src/components/molecules/ProductSkuStatus/styles.js +7 -0
  250. package/src/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +35 -0
  251. package/src/components/molecules/RetailerSelectorv2/index.js +80 -0
  252. package/src/components/molecules/RetailerSelectorv2/styles.js +21 -0
  253. package/src/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +90 -0
  254. package/src/components/molecules/ServiceDataValidator/index.js +49 -0
  255. package/src/components/molecules/ServiceDataValidator/styles.js +36 -0
  256. package/src/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +17 -0
  257. package/src/components/molecules/StatusRetailer/index.js +55 -0
  258. package/src/components/molecules/StatusRetailer/styles.js +85 -0
  259. package/src/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +19 -0
  260. package/src/components/molecules/TabsMenuv2/index.js +112 -0
  261. package/src/components/molecules/TabsMenuv2/styles.js +19 -0
  262. package/src/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +24 -0
  263. package/src/components/molecules/TagAndInputv2/index.js +86 -0
  264. package/src/components/molecules/TagAndInputv2/styles.js +35 -0
  265. package/src/components/molecules/Validation/Validation.stories.js +12 -0
  266. package/src/components/molecules/Validation/index.js +77 -0
  267. package/src/components/molecules/Validation/styles.js +19 -0
  268. package/src/components/molecules/VersionItemv2/VersionItemv2.stories.js +14 -0
  269. package/src/components/molecules/VersionItemv2/index.js +59 -0
  270. package/src/components/molecules/VersionItemv2/styles.js +47 -0
  271. package/src/components/organisms/BarButtons/BarButtons.stories.js +13 -0
  272. package/src/components/organisms/BarButtons/index.js +150 -0
  273. package/src/components/organisms/BarButtons/styles.js +54 -0
  274. package/src/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +65 -0
  275. package/src/components/organisms/Chatv2/ChatLists/Rotoplas.jpeg +0 -0
  276. package/src/components/organisms/Chatv2/ChatLists/THD.png +0 -0
  277. package/src/components/organisms/Chatv2/ChatLists/index.js +141 -0
  278. package/src/components/organisms/Chatv2/ChatLists/styles.js +162 -0
  279. package/src/components/organisms/Chatv2/Chatv2.stories.js +184 -0
  280. package/src/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +142 -0
  281. package/src/components/organisms/Chatv2/ContainerItems/index.js +538 -0
  282. package/src/components/organisms/Chatv2/ContainerItems/styles.js +360 -0
  283. package/src/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +102 -0
  284. package/src/components/organisms/Chatv2/ContentChat/Rotoplas.jpeg +0 -0
  285. package/src/components/organisms/Chatv2/ContentChat/THD.png +0 -0
  286. package/src/components/organisms/Chatv2/ContentChat/index.js +1016 -0
  287. package/src/components/organisms/Chatv2/ContentChat/styles.js +44 -0
  288. package/src/components/organisms/Chatv2/Footer/Footer.stories.js +22 -0
  289. package/src/components/organisms/Chatv2/Footer/index.js +668 -0
  290. package/src/components/organisms/Chatv2/Footer/styles.js +290 -0
  291. package/src/components/organisms/Chatv2/Header/Header.stories.js +66 -0
  292. package/src/components/organisms/Chatv2/Header/index.js +93 -0
  293. package/src/components/organisms/Chatv2/Header/styles.js +49 -0
  294. package/src/components/organisms/Chatv2/index.js +281 -0
  295. package/src/components/organisms/Chatv2/styles.js +85 -0
  296. package/src/components/organisms/CompleteServices/CompleteServices.stories.js +91 -0
  297. package/src/components/organisms/CompleteServices/index.js +82 -0
  298. package/src/components/organisms/CompleteServices/styles.js +35 -0
  299. package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +12 -0
  300. package/src/components/organisms/DragAndDropPhases/index.js +67 -0
  301. package/src/components/organisms/DragAndDropPhases/styles.js +20 -0
  302. package/src/components/organisms/DragPrueba/DragPrueba.stories.js +12 -0
  303. package/src/components/organisms/DragPrueba/index.js +57 -0
  304. package/src/components/organisms/DragPrueba/styles.js +8 -0
  305. package/src/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +28 -0
  306. package/src/components/organisms/FullProductNamev2/index.js +101 -0
  307. package/src/components/organisms/FullProductNamev2/styles.js +49 -0
  308. package/src/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +22 -0
  309. package/src/components/organisms/FullTabsMenuv2/index.js +142 -0
  310. package/src/components/organisms/FullTabsMenuv2/styles.js +47 -0
  311. package/src/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +24 -0
  312. package/src/components/organisms/ImageDataTablev2/index.js +124 -0
  313. package/src/components/organisms/ImageDataTablev2/styles.js +18 -0
  314. package/src/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +38 -0
  315. package/src/components/organisms/ImagePreviewerv2/index.js +22 -0
  316. package/src/components/organisms/ImagePreviewerv2/styles.js +7 -0
  317. package/src/components/organisms/InputGroupv2/InputGroupv2.stories.js +31 -0
  318. package/src/components/organisms/InputGroupv2/index.js +296 -0
  319. package/src/components/organisms/InputGroupv2/styles.js +90 -0
  320. package/src/components/organisms/MandatoryBar/MandatoryBar.stories.js +18 -0
  321. package/src/components/organisms/MandatoryBar/index.js +31 -0
  322. package/src/components/organisms/MandatoryBar/styles.js +12 -0
  323. package/src/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +90 -0
  324. package/src/components/organisms/ProductImageModalv2/index.js +105 -0
  325. package/src/components/organisms/ProductImageModalv2/styles.js +71 -0
  326. package/src/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +18 -0
  327. package/src/components/organisms/RenameImagesBar/index.js +30 -0
  328. package/src/components/organisms/RenameImagesBar/styles.js +12 -0
  329. package/src/components/organisms/VersionSelector/index.js +1 -2
  330. package/src/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +15 -0
  331. package/src/components/organisms/VersionSelectorv2/index.js +105 -0
  332. package/src/components/organisms/VersionSelectorv2/styles.js +45 -0
  333. package/src/components/pages/ProductEditionv2/ProductEditionv2.stories.js +213 -0
  334. package/src/components/pages/ProductEditionv2/index.js +1758 -0
  335. package/src/components/pages/ProductEditionv2/styles.js +154 -0
  336. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +39 -29
  337. package/src/components/pages/ProviderProductEdition/index.js +29 -21
  338. package/src/global-files/data.js +1 -3
  339. 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
- id_article: 39550,
40
- upc: 43654697,
41
- name: "Campana de Cocina",
42
- timestamp: "2023-08-04T22:23:40.000Z",
43
- categoryName: "Ferretería|Ferretería General|Tornillos, Tuercas y Arandelas",
44
- id_category: 287,
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
- name: "The Home Depot Golden",
48
- id: 58
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: 287,
57
- ArticleId: 39550,
58
+ idCategory: "2028",
59
+ ArticleId: 118465,
58
60
  product: [{
59
- id_article: 39550,
60
- upc: 43654697,
61
- name: "Campana de Cocina",
62
- timestamp: "2023-08-04T22:23:40.000Z",
63
- categoryName: "Ferretería|Ferretería General|Tornillos, Tuercas y Arandelas",
64
- id_category: 287,
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
- percentage: 78
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?1697171804447"
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 _inputsByRetailer = state.inputsByRetailer,
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
- if (action !== null && action !== void 0 && action.retailerId && !_inputsByRetailer[action.retailerId]) _inputsByRetailer[action.retailerId] = [];
176
- action.retailerId && ((_inputsByRetailer$act = _inputsByRetailer[action.retailerId]) === null || _inputsByRetailer$act === void 0 ? void 0 : _inputsByRetailer$act.filter(function (input) {
177
- imageIdArray.push(input.id_image);
178
- valuesInitial.forEach(function (value) {
179
- if (value.image_id === input.id_image) orderedImages.push(value);
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: [product]
926
+ data: data
913
927
  }).then(function (res) {
914
- return setPercentages(res[0]);
928
+ setPercentages(res[0]);
915
929
  });
916
930
  setLoading(false);
917
931
 
918
- case 10:
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 _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
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 _ref7.apply(this, arguments);
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 _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
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 _ref8.apply(this, arguments);
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 _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {
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 _ref9.apply(this, arguments);
1233
+ return _ref10.apply(this, arguments);
1216
1234
  };
1217
1235
  }();
1218
1236
 
1219
1237
  var saveDatasheets = /*#__PURE__*/function () {
1220
- var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
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 (_ref11, index) {
1228
- var _ref12 = (0, _slicedToArray2.default)(_ref11, 2),
1229
- box = _ref12[1];
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 _ref10.apply(this, arguments);
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$values2, _data$articleData, _data$articleData2, _data$updateImages;
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$values2 = images.values) === null || _images$values2 === void 0 ? void 0 : _images$values2.slice();
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 _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
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 _ref15.apply(this, arguments);
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 _ref16 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
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 _ref16.apply(this, arguments);
1574
+ return _ref17.apply(this, arguments);
1560
1575
  };
1561
1576
  }();
1562
1577
 
1563
1578
  var setAssignation = /*#__PURE__*/function () {
1564
- var _ref17 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(assignationType, assignationId) {
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 _ref17.apply(this, arguments);
1636
+ return _ref18.apply(this, arguments);
1622
1637
  };
1623
1638
  }();
1624
1639
 
1625
1640
  var downloadImages = function downloadImages() {
1626
- var _images$values3;
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$values3 = images.values) === null || _images$values3 === void 0 ? void 0 : _images$values3.forEach(function (e) {
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 _ref18 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(result) {
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 _ref18.apply(this, arguments);
1825
+ return _ref19.apply(this, arguments);
1811
1826
  };
1812
1827
  }();
1813
1828
 
1814
1829
  var validateAll = /*#__PURE__*/function () {
1815
- var _ref19 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(result) {
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 _ref19.apply(this, arguments);
1916
+ return _ref20.apply(this, arguments);
1902
1917
  };
1903
1918
  }();
1904
1919
 
1905
1920
  var evaluationToRetailer = /*#__PURE__*/function () {
1906
- var _ref20 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(result) {
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 _ref20.apply(this, arguments);
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) {
@@ -24,7 +24,9 @@ var GlobalColors = {
24
24
  gray_light: "#F0F0F0",
25
25
  gray: "#707070",
26
26
  blue_light: "#F7F7FC",
27
- purple: "#8A6CAA"
27
+ purple: "#8A6CAA",
28
+ gray_medium: "#CBCBCB",
29
+ black: "#262626"
28
30
  };
29
31
  exports.GlobalColors = GlobalColors;
30
32
  var FontFamily = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.4.69",
3
+ "version": "21.4.71",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -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(/\&nbsp;/gm, " ")
26
+ .replace(/\&amp;/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(/\&nbsp;/gm, " ")
42
+ .replace(/\&amp;/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
+ };