contentoh-components-library 21.2.105 → 21.2.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.development +5 -2
- package/.env.production +25 -25
- package/dist/assets/images/customSelect/starIcon.svg +14 -0
- package/dist/assets/images/defaultImages/Spinner.gif +0 -0
- package/dist/assets/images/defaultImages/notFound.svg +124 -0
- package/dist/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +72 -0
- package/dist/components/atoms/ButtonFileChooser/index.js +118 -0
- package/dist/components/atoms/ButtonFileChooser/styles.js +20 -0
- package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +66 -0
- package/dist/components/atoms/ButtonV2/index.js +110 -0
- package/dist/components/atoms/ButtonV2/styles.js +53 -0
- package/dist/components/atoms/CustomIcon/CustomIcon.stories.js +50 -0
- package/dist/components/atoms/CustomIcon/index.js +40 -0
- package/dist/components/atoms/CustomIcon/styles.js +33 -0
- package/dist/components/atoms/GeneralButton/index.js +2 -6
- package/dist/components/atoms/IconFile/IconFile.stories.js +48 -0
- package/dist/components/atoms/IconFile/index.js +249 -0
- package/dist/components/atoms/IconFile/styles.js +23 -0
- package/dist/components/atoms/Image/Image.stories.js +73 -0
- package/dist/components/atoms/Image/index.js +76 -0
- package/dist/components/atoms/Image/styles.js +43 -0
- package/dist/components/atoms/ImageLink/ImageLink.stories.js +63 -0
- package/dist/components/atoms/ImageLink/index.js +77 -0
- package/dist/components/atoms/ImageLink/styles.js +40 -0
- package/dist/components/atoms/ImagePreview/ImagePreview.stories.js +70 -0
- package/dist/components/atoms/ImagePreview/index.js +222 -0
- package/dist/components/atoms/ImagePreview/styles.js +44 -0
- package/dist/components/atoms/InputText/InputText.stories.js +60 -0
- package/dist/components/atoms/InputText/index.js +66 -0
- package/dist/components/atoms/InputText/styles.js +32 -0
- package/dist/components/atoms/NotFound/NotFound.stories.js +36 -0
- package/dist/components/atoms/NotFound/index.js +75 -0
- package/dist/components/atoms/NotFound/styles.js +20 -0
- package/dist/components/atoms/Select/VersionSelect.js +1 -2
- package/dist/components/atoms/SelectItemV2/SelectItemV2.stories.js +45 -0
- package/dist/components/atoms/SelectItemV2/index.js +57 -0
- package/dist/components/atoms/SelectItemV2/styles.js +30 -0
- package/dist/components/atoms/Tooltip/Tooltip.stories.js +66 -0
- package/dist/components/atoms/Tooltip/index.js +72 -0
- package/dist/components/atoms/Tooltip/styles.js +20 -0
- package/dist/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +66 -0
- package/dist/components/molecules/ButtonDownloadFile/index.js +179 -0
- package/dist/components/molecules/ButtonDownloadFile/styles.js +23 -0
- package/dist/components/molecules/CustomSelect/CustomSelect.stories.js +21 -22
- package/dist/components/molecules/CustomSelect/SelectItem.js +10 -1
- package/dist/components/molecules/Dropdown/Dropdown.stories.js +98 -0
- package/dist/components/molecules/Dropdown/index.js +150 -0
- package/dist/components/molecules/Dropdown/styles.js +26 -0
- package/dist/components/molecules/HeaderTop/index.js +10 -5
- package/dist/components/molecules/HeaderTop/styles.js +1 -1
- package/dist/components/molecules/ImageTooltip/ImageTooltip.stories.js +82 -0
- package/dist/components/molecules/ImageTooltip/index.js +85 -0
- package/dist/components/molecules/ImageTooltip/styles.js +33 -0
- package/dist/components/molecules/SelectV2/SelectV2.stories.js +119 -0
- package/dist/components/molecules/SelectV2/index.js +298 -0
- package/dist/components/molecules/SelectV2/styles.js +42 -0
- package/dist/components/organisms/Chat/Chat.stories.js +215 -0
- package/dist/components/organisms/Chat/ChatLists/ChatLists.stories.js +83 -0
- package/dist/components/organisms/Chat/ChatLists/index.js +160 -0
- package/dist/components/organisms/Chat/ChatLists/styles.js +29 -0
- package/dist/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +176 -0
- package/dist/components/organisms/Chat/ContainerItems/index.js +569 -0
- package/dist/components/organisms/Chat/ContainerItems/styles.js +20 -0
- package/dist/components/organisms/Chat/ContentChat/ContentChat.stories.js +142 -0
- package/dist/components/organisms/Chat/ContentChat/index.js +1422 -0
- package/dist/components/organisms/Chat/ContentChat/styles.js +20 -0
- package/dist/components/organisms/Chat/Footer/Footer.stories.js +43 -0
- package/dist/components/organisms/Chat/Footer/index.js +984 -0
- package/dist/components/organisms/Chat/Footer/styles.js +32 -0
- package/dist/components/organisms/Chat/Header/Header.stories.js +96 -0
- package/dist/components/organisms/Chat/Header/index.js +84 -0
- package/dist/components/organisms/Chat/Header/styles.js +20 -0
- package/dist/components/organisms/Chat/index.js +327 -0
- package/dist/components/organisms/Chat/styles.js +29 -0
- package/dist/components/organisms/CreateVersion/RenderChilds.js +11 -11
- package/dist/components/organisms/CreateVersion/index.js +89 -30
- package/dist/components/organisms/Modal/Modal.stories.js +66 -0
- package/dist/components/organisms/Modal/index.js +95 -0
- package/dist/components/organisms/Modal/styles.js +20 -0
- package/dist/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
- package/dist/components/organisms/OrderDetail/index.js +11 -20
- package/dist/components/organisms/OrderDetail/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/utils/Table/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/utils/Table/utils.js +15 -45
- package/dist/components/organisms/VersionSelector/index.js +2 -28
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +147 -69
- package/dist/components/pages/ProviderProductEdition/index.js +22 -2
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +67 -77
- package/dist/components/pages/RetailerProductEdition/index.js +24 -5
- package/dist/global-files/fonts.css +12 -0
- package/dist/global-files/handle_http.js +383 -0
- package/dist/global-files/utils.js +472 -0
- package/dist/global-files/variables.js +2 -0
- package/dist/index.js +254 -46
- package/package.json +12 -1
- package/src/assets/images/customSelect/starIcon.svg +14 -0
- package/src/assets/images/defaultImages/Spinner.gif +0 -0
- package/src/assets/images/defaultImages/notFound.svg +124 -0
- package/src/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +47 -0
- package/src/components/atoms/ButtonFileChooser/index.js +69 -0
- package/src/components/atoms/ButtonFileChooser/styles.js +4 -0
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +53 -0
- package/src/components/atoms/ButtonV2/index.js +85 -0
- package/src/components/atoms/ButtonV2/styles.js +217 -0
- package/src/components/atoms/CustomIcon/CustomIcon.stories.js +36 -0
- package/src/components/atoms/CustomIcon/index.js +41 -0
- package/src/components/atoms/CustomIcon/styles.js +85 -0
- package/src/components/atoms/GeneralButton/index.js +1 -4
- package/src/components/atoms/IconFile/IconFile.stories.js +35 -0
- package/src/components/atoms/IconFile/index.js +119 -0
- package/src/components/atoms/IconFile/styles.js +67 -0
- package/src/components/atoms/Image/Image.stories.js +51 -0
- package/src/components/atoms/Image/index.js +55 -0
- package/src/components/atoms/Image/styles.js +34 -0
- package/src/components/atoms/ImageLink/ImageLink.stories.js +43 -0
- package/src/components/atoms/ImageLink/index.js +57 -0
- package/src/components/atoms/ImageLink/styles.js +30 -0
- package/src/components/atoms/ImagePreview/ImagePreview.stories.js +52 -0
- package/src/components/atoms/ImagePreview/index.js +191 -0
- package/src/components/atoms/ImagePreview/styles.js +77 -0
- package/src/components/atoms/InputText/InputText.stories.js +39 -0
- package/src/components/atoms/InputText/index.js +61 -0
- package/src/components/atoms/InputText/styles.js +89 -0
- package/src/components/atoms/NotFound/NotFound.stories.js +19 -0
- package/src/components/atoms/NotFound/index.js +52 -0
- package/src/components/atoms/NotFound/styles.js +55 -0
- package/src/components/atoms/Select/VersionSelect.js +2 -4
- package/src/components/atoms/SelectItemV2/SelectItemV2.stories.js +26 -0
- package/src/components/atoms/SelectItemV2/index.js +61 -0
- package/src/components/atoms/SelectItemV2/styles.js +90 -0
- package/src/components/atoms/Tooltip/Tooltip.stories.js +51 -0
- package/src/components/atoms/Tooltip/index.js +59 -0
- package/src/components/atoms/Tooltip/styles.js +42 -0
- package/src/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +54 -0
- package/src/components/molecules/ButtonDownloadFile/index.js +111 -0
- package/src/components/molecules/ButtonDownloadFile/styles.js +66 -0
- package/src/components/molecules/CustomSelect/CustomSelect.stories.js +20 -12
- package/src/components/molecules/CustomSelect/SelectItem.js +7 -0
- package/src/components/molecules/Dropdown/Dropdown.stories.js +103 -0
- package/src/components/molecules/Dropdown/index.js +150 -0
- package/src/components/molecules/Dropdown/styles.js +75 -0
- package/src/components/molecules/HeaderTop/index.js +11 -6
- package/src/components/molecules/HeaderTop/styles.js +4 -0
- package/src/components/molecules/ImageTooltip/ImageTooltip.stories.js +68 -0
- package/src/components/molecules/ImageTooltip/index.js +63 -0
- package/src/components/molecules/ImageTooltip/styles.js +18 -0
- package/src/components/molecules/SelectV2/SelectV2.stories.js +114 -0
- package/src/components/molecules/SelectV2/index.js +335 -0
- package/src/components/molecules/SelectV2/styles.js +105 -0
- package/src/components/organisms/Chat/Chat.stories.js +199 -0
- package/src/components/organisms/Chat/ChatLists/ChatLists.stories.js +65 -0
- package/src/components/organisms/Chat/ChatLists/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chat/ChatLists/THD.png +0 -0
- package/src/components/organisms/Chat/ChatLists/index.js +141 -0
- package/src/components/organisms/Chat/ChatLists/styles.js +162 -0
- package/src/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +142 -0
- package/src/components/organisms/Chat/ContainerItems/index.js +549 -0
- package/src/components/organisms/Chat/ContainerItems/styles.js +328 -0
- package/src/components/organisms/Chat/ContentChat/ContentChat.stories.js +102 -0
- package/src/components/organisms/Chat/ContentChat/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chat/ContentChat/THD.png +0 -0
- package/src/components/organisms/Chat/ContentChat/index.js +900 -0
- package/src/components/organisms/Chat/ContentChat/styles.js +41 -0
- package/src/components/organisms/Chat/Footer/Footer.stories.js +22 -0
- package/src/components/organisms/Chat/Footer/index.js +669 -0
- package/src/components/organisms/Chat/Footer/styles.js +286 -0
- package/src/components/organisms/Chat/Header/Header.stories.js +66 -0
- package/src/components/organisms/Chat/Header/index.js +94 -0
- package/src/components/organisms/Chat/Header/styles.js +49 -0
- package/src/components/organisms/Chat/index.js +294 -0
- package/src/components/organisms/Chat/styles.js +42 -0
- package/src/components/organisms/CreateVersion/RenderChilds.js +34 -28
- package/src/components/organisms/CreateVersion/index.js +36 -16
- package/src/components/organisms/Modal/Modal.stories.js +55 -0
- package/src/components/organisms/Modal/index.js +97 -0
- package/src/components/organisms/Modal/styles.js +103 -0
- package/src/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
- package/src/components/organisms/OrderDetail/index.js +12 -19
- package/src/components/organisms/OrderDetail/styles.js +0 -1
- package/src/components/organisms/OrderDetail/utils/Table/styles.js +0 -26
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +15 -30
- package/src/components/organisms/VersionSelector/index.js +3 -18
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +166 -75
- package/src/components/pages/ProviderProductEdition/index.js +21 -2
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +67 -79
- package/src/components/pages/RetailerProductEdition/index.js +14 -2
- package/src/global-files/customHooks.js +2 -2
- package/src/global-files/fonts.css +12 -0
- package/src/global-files/handle_http.js +231 -0
- package/src/global-files/utils.js +300 -0
- package/src/global-files/variables.js +2 -0
- package/src/index.js +16 -0
|
@@ -16,96 +16,187 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: true,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5MmFiMWFkNS0zOWM4LTRhMjAtODFlNC02N2VjMTRmMzhmNDMiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjkyYWIxYWQ1LTM5YzgtNGEyMC04MWU0LTY3ZWMxNGYzOGY0MyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI4Y2U5MjYyMi0xYjZlLTQ1MWEtODUyYy04MjMxYzcwOTk5YTciLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2ODEwODQ1MiwibmFtZSI6IkVsaSBJbmRhIiwicGhvbmVfbnVtYmVyIjoiKzUyMzExMTkwODg2OCIsImV4cCI6MTY2ODExMjA1MiwiaWF0IjoxNjY4MTA4NDUyLCJlbWFpbCI6Im1hcnRoYTI1Lm1pb0BnbWFpbC5jb20ifQ.JbpinyPv_38xvwwT_td3M_vP3xEffZ6dI0Xl3B9EVjPF7uW4ctZ_B7nKydPyUcB6LTaYEzCI1RfAgZpUQUFbYTfFHJ3T9kgwa9b9mDeDx3kiy2GK3CdYIuWiii5ZivxVKK10gV871OvxDish4w-vEOsClXDncoTX2zAx3wDM4xO83UdI0ahECOTYszuGB3FRnkrHnWJO0b2dpsyhqAmhw0aEcw6gwbqP5l-spOjMM3lE-bGm89pK_9oLYcyRMr09vcGJartmk_ctUisCflrYudnwVgwTwCi1PRBkiaUoDywYeGr6HxRoU1zsiC3LwB-m9b2YnNhEZmPanLfPstKVbw",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
version:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
24
|
+
"orderId": 3366,
|
|
25
|
+
"article_status": "AP",
|
|
26
|
+
"datasheet_status": "NS",
|
|
27
|
+
"description_status": "NS",
|
|
28
|
+
"images_status": "AP",
|
|
29
|
+
"prio": "none",
|
|
30
|
+
"version": 3,
|
|
31
|
+
"brand": null,
|
|
32
|
+
"article": {
|
|
33
|
+
"category": "Iluminación|Lámparas|Lámparas de Mesa",
|
|
34
|
+
"company_name": "Norday",
|
|
35
|
+
"id_company": 810,
|
|
36
|
+
"country": "México",
|
|
37
|
+
"id_category": "2454",
|
|
38
|
+
"id_article": 84492,
|
|
39
|
+
"name": "prueba dos",
|
|
40
|
+
"upc": "8375"
|
|
41
|
+
},
|
|
42
|
+
"retailers": [
|
|
43
|
+
{
|
|
44
|
+
"id": 59,
|
|
45
|
+
"name": "The Home Depot Platinum"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"services": {
|
|
49
|
+
"datasheets": 0,
|
|
50
|
+
"descriptions": 0,
|
|
51
|
+
"images": 1
|
|
52
|
+
},
|
|
53
|
+
"statusByRetailer": {
|
|
54
|
+
"59": {
|
|
55
|
+
"images": "AP"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"retailersWithService": [
|
|
59
|
+
"59"
|
|
36
60
|
],
|
|
61
|
+
"id_article": 84492,
|
|
62
|
+
"retailersAvailable": [
|
|
63
|
+
{
|
|
64
|
+
"id": 59,
|
|
65
|
+
"name": "The Home Depot Platinum"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
37
68
|
},
|
|
38
69
|
productToEdit: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
product:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
70
|
+
"ArticleId": 84492,
|
|
71
|
+
"idCategory": "2454",
|
|
72
|
+
"product": {
|
|
73
|
+
"orderId": 3366,
|
|
74
|
+
"article_status": "AP",
|
|
75
|
+
"datasheet_status": "NS",
|
|
76
|
+
"description_status": "NS",
|
|
77
|
+
"images_status": "AP",
|
|
78
|
+
"prio": "none",
|
|
79
|
+
"version": 3,
|
|
80
|
+
"brand": null,
|
|
81
|
+
"article": {
|
|
82
|
+
"category": "Iluminación|Lámparas|Lámparas de Mesa",
|
|
83
|
+
"company_name": "Norday",
|
|
84
|
+
"id_company": 810,
|
|
85
|
+
"country": "México",
|
|
86
|
+
"id_category": "2454",
|
|
87
|
+
"id_article": 84492,
|
|
88
|
+
"name": "prueba dos",
|
|
89
|
+
"upc": "8375"
|
|
90
|
+
},
|
|
91
|
+
"retailers": [
|
|
92
|
+
{
|
|
93
|
+
"id": 59,
|
|
94
|
+
"name": "The Home Depot Platinum"
|
|
95
|
+
}
|
|
55
96
|
],
|
|
56
|
-
|
|
57
|
-
|
|
97
|
+
"services": {
|
|
98
|
+
"datasheets": 0,
|
|
99
|
+
"descriptions": 0,
|
|
100
|
+
"images": 1
|
|
101
|
+
},
|
|
102
|
+
"statusByRetailer": {
|
|
103
|
+
"59": {
|
|
104
|
+
"images": "AP"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"retailersWithService": [
|
|
108
|
+
"59"
|
|
109
|
+
],
|
|
110
|
+
"id_article": 84492,
|
|
111
|
+
"retailersAvailable": [
|
|
112
|
+
{
|
|
113
|
+
"id": 59,
|
|
114
|
+
"name": "The Home Depot Platinum"
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
58
118
|
},
|
|
59
119
|
location: {
|
|
60
120
|
state: { origin: "Contentoh" },
|
|
61
121
|
},
|
|
62
122
|
user: {
|
|
63
|
-
id_user:
|
|
64
|
-
name: "
|
|
65
|
-
last_name: "
|
|
66
|
-
email: "
|
|
67
|
-
position: "
|
|
68
|
-
telephone: "+523111366336",
|
|
69
|
-
country: "México",
|
|
70
|
-
id_company:
|
|
71
|
-
id_cognito: "
|
|
72
|
-
birth_Date: null,
|
|
73
|
-
about_me: "",
|
|
74
|
-
zip_code: "",
|
|
75
|
-
address: "",
|
|
76
|
-
job: "",
|
|
77
|
-
id_stripe: "
|
|
78
|
-
id_role: 0,
|
|
79
|
-
active: 1,
|
|
80
|
-
is_retailer:
|
|
81
|
-
email_notify: 0,
|
|
82
|
-
is_user_tech:
|
|
83
|
-
membership: {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
123
|
+
"id_user": 59,
|
|
124
|
+
"name": "The Home",
|
|
125
|
+
"last_name": "Depot",
|
|
126
|
+
"email": "cadena.ismael@allfreemail.net",
|
|
127
|
+
"position": "Admin",
|
|
128
|
+
"telephone": "+523111366336",
|
|
129
|
+
"country": "México",
|
|
130
|
+
"id_company": 817,
|
|
131
|
+
"id_cognito": "5884ae34-59d6-4454-b98e-821518bcc3a7",
|
|
132
|
+
"birth_Date": null,
|
|
133
|
+
"about_me": "",
|
|
134
|
+
"zip_code": "",
|
|
135
|
+
"address": "",
|
|
136
|
+
"job": "",
|
|
137
|
+
"id_stripe": "",
|
|
138
|
+
"id_role": 0,
|
|
139
|
+
"active": 1,
|
|
140
|
+
"is_retailer": 1,
|
|
141
|
+
"email_notify": 0,
|
|
142
|
+
"is_user_tech": null,
|
|
143
|
+
"membership": {
|
|
144
|
+
"id": 47,
|
|
145
|
+
"start_date": "2022-05-25T14:31:12.000Z",
|
|
146
|
+
"end_date": "2023-05-25T14:31:12.000Z",
|
|
147
|
+
"planID": 5,
|
|
148
|
+
"plan": "prod_Ktl6B5Ou2gqTB2",
|
|
149
|
+
"name": "Plan Pro",
|
|
150
|
+
"user_limit": "5",
|
|
151
|
+
"products_limit": "500",
|
|
152
|
+
"type": "PyMES"
|
|
93
153
|
},
|
|
94
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
154
|
+
"src": "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1668127460068"
|
|
95
155
|
},
|
|
96
156
|
company: {
|
|
97
|
-
id_company:
|
|
98
|
-
trade_name: "
|
|
99
|
-
company_name: "
|
|
100
|
-
rfc: "
|
|
101
|
-
adress: "
|
|
102
|
-
about_company:
|
|
103
|
-
telephone:
|
|
104
|
-
web_site:
|
|
105
|
-
zip_code:
|
|
106
|
-
email: null,
|
|
107
|
-
social_link:
|
|
108
|
-
is_retailer:
|
|
157
|
+
"id_company": 817,
|
|
158
|
+
"trade_name": "Retailer acc",
|
|
159
|
+
"company_name": "Retailer acc",
|
|
160
|
+
"rfc": "ASER12345",
|
|
161
|
+
"adress": "Av. Insurgentes",
|
|
162
|
+
"about_company": null,
|
|
163
|
+
"telephone": null,
|
|
164
|
+
"web_site": null,
|
|
165
|
+
"zip_code": null,
|
|
166
|
+
"email": null,
|
|
167
|
+
"social_link": null,
|
|
168
|
+
"is_retailer": 1,
|
|
169
|
+
"financedRetailers": [
|
|
170
|
+
{
|
|
171
|
+
"id": 68,
|
|
172
|
+
"name": "The Home Depot Merchants",
|
|
173
|
+
"country": "México",
|
|
174
|
+
"id_region": 1,
|
|
175
|
+
"active": 1
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"retailers": [
|
|
179
|
+
{
|
|
180
|
+
"id": 59,
|
|
181
|
+
"name": "The Home Depot Platinum",
|
|
182
|
+
"country": "México"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"id": 60,
|
|
186
|
+
"name": "The Home Depot Resizing",
|
|
187
|
+
"country": "México"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": 61,
|
|
191
|
+
"name": "Home Depot TAB",
|
|
192
|
+
"country": "México"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": 68,
|
|
196
|
+
"name": "The Home Depot Merchants",
|
|
197
|
+
"country": "México"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
109
200
|
},
|
|
110
|
-
showSurvey: (v) => v && alert(
|
|
201
|
+
showSurvey: (v) => v && alert('se muestra'),
|
|
111
202
|
};
|
|
@@ -42,6 +42,7 @@ import Slide1_4 from "../../../assets/images/sliderToolTip/slide4.svg";
|
|
|
42
42
|
import Slide1_5 from "../../../assets/images/sliderToolTip/slide5.svg";
|
|
43
43
|
import { VersionSelector } from "../../organisms/VersionSelector";
|
|
44
44
|
import { useCloseModal } from "../../../global-files/customHooks";
|
|
45
|
+
import { CreateVersion } from "../../organisms/CreateVersion";
|
|
45
46
|
|
|
46
47
|
const reducerImages = (state, action) => {
|
|
47
48
|
let { values, attrForImgs, inputsByRetailer } = state;
|
|
@@ -113,8 +114,8 @@ const S3_BUCKET = process.env.REACT_APP_IMAGES_BUCKET;
|
|
|
113
114
|
const REGION = "us-east-1";
|
|
114
115
|
|
|
115
116
|
AWS.config.update({
|
|
116
|
-
accessKeyId: process.env.
|
|
117
|
-
secretAccessKey: process.env.
|
|
117
|
+
accessKeyId: process.env.REACT_APP_KEY_UPLOAD_TO_S3,
|
|
118
|
+
secretAccessKey: process.env.REACT_APP_ACCESS_KEY_UPLOAD_TO_S3,
|
|
118
119
|
});
|
|
119
120
|
|
|
120
121
|
const myBucket = new AWS.S3({
|
|
@@ -251,6 +252,7 @@ export const ProviderProductEdition = ({
|
|
|
251
252
|
const [retailerStatus, setRetailerStatus] = useState(
|
|
252
253
|
product.statusByRetailer
|
|
253
254
|
);
|
|
255
|
+
const [showCreateVersion, setShowCreateVersion] = useState(false);
|
|
254
256
|
const [showVersionSelector, setShowVersionSelector] =
|
|
255
257
|
useCloseModal("version-selector");
|
|
256
258
|
|
|
@@ -270,6 +272,15 @@ export const ProviderProductEdition = ({
|
|
|
270
272
|
setServices(services);
|
|
271
273
|
await getServices();
|
|
272
274
|
|
|
275
|
+
// if (!originProp) {
|
|
276
|
+
// setActiveRetailer(
|
|
277
|
+
// product?.retailers
|
|
278
|
+
// ? product?.retailers[0]
|
|
279
|
+
// : product?.retailersAvailable[0]
|
|
280
|
+
// );
|
|
281
|
+
// }
|
|
282
|
+
|
|
283
|
+
// setActiveRetailer(product?.retailers[0]);
|
|
273
284
|
setImages({ action: "init", init: services[2] });
|
|
274
285
|
if (services[2]?.values?.length > 0) setActiveImage(0);
|
|
275
286
|
|
|
@@ -1486,10 +1497,18 @@ export const ProviderProductEdition = ({
|
|
|
1486
1497
|
setVersion={setVersion}
|
|
1487
1498
|
companyName={company.company_name}
|
|
1488
1499
|
currentVersion={version}
|
|
1500
|
+
setShowCreateVersion={setShowCreateVersion}
|
|
1489
1501
|
setShowVersionSelector={setShowVersionSelector}
|
|
1490
1502
|
jwt={token}
|
|
1491
1503
|
/>
|
|
1492
1504
|
)}
|
|
1505
|
+
{showCreateVersion && (
|
|
1506
|
+
<CreateVersion
|
|
1507
|
+
idArticle={product.id_article}
|
|
1508
|
+
version={version}
|
|
1509
|
+
setShowCreateVersion={setShowCreateVersion}
|
|
1510
|
+
/>
|
|
1511
|
+
)}
|
|
1493
1512
|
</Container>
|
|
1494
1513
|
);
|
|
1495
1514
|
};
|
|
@@ -16,116 +16,104 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"
|
|
19
|
+
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI4ZDAxMDIxNC01YmZhLTQzYzMtOTZmYi1jNTU2ZGMwNTc3NGIiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjhkMDEwMjE0LTViZmEtNDNjMy05NmZiLWM1NTZkYzA1Nzc0YiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiI2ZWY3Y2UxYy0xYjBjLTRkNGYtYTc3Yy1jMWIwYTk0ZjIwOWEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2NzMyMTQ5NCwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2NzMyNTA5NCwiaWF0IjoxNjY3MzIxNDk0LCJlbWFpbCI6ImthcmFmZTMyMThAbW9tMmtpZC5jb20ifQ.GjBtY-LW5eYzvNfrIJOdb9pDMU_CZlIxRAn1ZszjMfWNU9s8s_j6o4_2x0J7AyiSjgu9TaLRcRpF6FZ5pzwNGs8G5AxnO3r_PIg2mznM44QLnt5PTfdoFx2jJmU53UA8GZU1SFDvDlR1QZR-EtANz2wfNs8RqY_mKTz5WjY7RdGTFVkowTv-Y1Q9T7x_fpv_5o-nB5GzLBQoHwTLQ_vjguSLH17l2BUn0QxLi2WJVs-qWX4ze4QysADVxYOlMkAQql328oqoqdXRbZrntnxYxa5EMpmref1bGbSOFk4qgHax4qa3gD2_h291NLjCZS7IMGDSIhOk9r7irItbojM01Q",
|
|
20
20
|
productSelected: {
|
|
21
21
|
services: {
|
|
22
22
|
datasheets: 1,
|
|
23
23
|
descriptions: 1,
|
|
24
24
|
images: 1,
|
|
25
25
|
},
|
|
26
|
-
orderId:
|
|
26
|
+
orderId: 3321,
|
|
27
27
|
status: "PA",
|
|
28
|
-
datasheet_status: "
|
|
28
|
+
datasheet_status: "AC",
|
|
29
29
|
prio: "none",
|
|
30
|
-
version:
|
|
31
|
-
description_status: "
|
|
30
|
+
version: 2,
|
|
31
|
+
description_status: "AC",
|
|
32
32
|
images_status: "PA",
|
|
33
33
|
statusByRetailer: {
|
|
34
|
-
|
|
35
|
-
datasheet: "
|
|
36
|
-
description: "
|
|
37
|
-
images: "PA",
|
|
38
|
-
},
|
|
39
|
-
5: {
|
|
40
|
-
datasheet: "PA",
|
|
41
|
-
description: "PA",
|
|
42
|
-
images: "PA",
|
|
43
|
-
},
|
|
44
|
-
6: {
|
|
45
|
-
datasheet: "PA",
|
|
46
|
-
description: "PA",
|
|
34
|
+
58: {
|
|
35
|
+
datasheet: "AC",
|
|
36
|
+
description: "AC",
|
|
47
37
|
images: "PA",
|
|
48
38
|
},
|
|
49
39
|
},
|
|
50
40
|
article: {
|
|
51
|
-
id_article:
|
|
52
|
-
id_category: "
|
|
53
|
-
name: "
|
|
54
|
-
upc: "
|
|
55
|
-
timestamp: "2022-11-
|
|
56
|
-
id_user:
|
|
57
|
-
status:
|
|
41
|
+
id_article: 85655,
|
|
42
|
+
id_category: "2052",
|
|
43
|
+
name: "EXTENSION P/ EXTERIOR 3X10 AWG 10M ROJO",
|
|
44
|
+
upc: "165679",
|
|
45
|
+
timestamp: "2022-11-01T15:46:51.000Z",
|
|
46
|
+
id_user: 1436,
|
|
47
|
+
status: null,
|
|
58
48
|
active: 1,
|
|
59
|
-
company_id:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
49
|
+
company_id: 409,
|
|
50
|
+
SKU: null,
|
|
51
|
+
Descripcion: null,
|
|
52
|
+
Proveedor: null,
|
|
53
|
+
id_proveedor: 0,
|
|
54
|
+
company_name: "HIGHLINE-WARREN LLC",
|
|
55
|
+
country: null,
|
|
56
|
+
id_order: 3321,
|
|
57
|
+
id_datasheet_especialist: 1248,
|
|
58
|
+
id_datasheet_facilitator: null,
|
|
59
|
+
id_description_especialist: 1248,
|
|
60
|
+
id_description_facilitator: null,
|
|
61
|
+
id_images_especialist: null,
|
|
62
|
+
id_images_facilitator: null,
|
|
63
|
+
id_auditor: null,
|
|
70
64
|
id_recepcionist: null,
|
|
71
65
|
category:
|
|
72
|
-
"
|
|
73
|
-
missingAttributes:
|
|
74
|
-
missingDescriptions:
|
|
75
|
-
missingImages:
|
|
66
|
+
"Eléctrico|Extensiones y Multicontactos|Extensiones y Multicontactos",
|
|
67
|
+
missingAttributes: null,
|
|
68
|
+
missingDescriptions: null,
|
|
69
|
+
missingImages: null,
|
|
76
70
|
},
|
|
77
71
|
retailers: [
|
|
78
72
|
{
|
|
79
|
-
id:
|
|
80
|
-
name: "
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
name: "Chedraui",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
id: 6,
|
|
88
|
-
name: "HEB",
|
|
73
|
+
id: 58,
|
|
74
|
+
name: "The Home Depot Golden",
|
|
75
|
+
country: "México",
|
|
76
|
+
id_region: 1,
|
|
77
|
+
active: 1,
|
|
89
78
|
},
|
|
90
79
|
],
|
|
91
|
-
country:
|
|
92
|
-
upc: "
|
|
80
|
+
country: null,
|
|
81
|
+
upc: "165679",
|
|
93
82
|
},
|
|
94
83
|
location: {
|
|
95
84
|
product: { articleId: 109485, versionId: 3 },
|
|
96
85
|
},
|
|
97
86
|
user: {
|
|
98
|
-
id_user:
|
|
99
|
-
name: "
|
|
100
|
-
last_name: "",
|
|
101
|
-
email: "
|
|
102
|
-
position: "",
|
|
103
|
-
telephone:
|
|
104
|
-
country:
|
|
105
|
-
id_company:
|
|
106
|
-
id_cognito: "
|
|
87
|
+
id_user: 426,
|
|
88
|
+
name: "Especialista Textos",
|
|
89
|
+
last_name: " ",
|
|
90
|
+
email: "karafe3218@mom2kid.com",
|
|
91
|
+
position: "Tester",
|
|
92
|
+
telephone: null,
|
|
93
|
+
country: null,
|
|
94
|
+
id_company: 254,
|
|
95
|
+
id_cognito: "8d010214-5bfa-43c3-96fb-c556dc05774b",
|
|
107
96
|
birth_Date: null,
|
|
108
|
-
about_me:
|
|
109
|
-
zip_code:
|
|
110
|
-
address:
|
|
111
|
-
job:
|
|
112
|
-
id_stripe:
|
|
113
|
-
id_role:
|
|
97
|
+
about_me: null,
|
|
98
|
+
zip_code: null,
|
|
99
|
+
address: null,
|
|
100
|
+
job: null,
|
|
101
|
+
id_stripe: null,
|
|
102
|
+
id_role: 7,
|
|
114
103
|
active: 1,
|
|
115
104
|
is_retailer: 0,
|
|
116
|
-
email_notify:
|
|
117
|
-
is_user_tech: null,
|
|
105
|
+
email_notify: null,
|
|
118
106
|
membership: {
|
|
119
|
-
id:
|
|
120
|
-
start_date: "
|
|
121
|
-
end_date: "
|
|
122
|
-
planID:
|
|
123
|
-
plan: "
|
|
124
|
-
name: "Plan
|
|
125
|
-
user_limit: "
|
|
126
|
-
products_limit: "
|
|
127
|
-
type: "
|
|
107
|
+
id: 750,
|
|
108
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
109
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
110
|
+
planID: 6,
|
|
111
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
112
|
+
name: "Plan Small",
|
|
113
|
+
user_limit: "10",
|
|
114
|
+
products_limit: "1000",
|
|
115
|
+
type: "Enterprise",
|
|
128
116
|
},
|
|
129
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
117
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-426/426.png?1667321494598",
|
|
130
118
|
},
|
|
131
119
|
};
|
|
@@ -32,6 +32,7 @@ import succes from "../../../assets/images/genericModal/genericModalCheck.svg";
|
|
|
32
32
|
import errorModal from "../../../assets/images/genericModal/errorModal.svg";
|
|
33
33
|
import { VersionSelector } from "../../organisms/VersionSelector";
|
|
34
34
|
import { useCloseModal } from "../../../global-files/customHooks";
|
|
35
|
+
import { CreateVersion } from "../../organisms/CreateVersion";
|
|
35
36
|
|
|
36
37
|
const reducerImages = (state, action) => {
|
|
37
38
|
let { values, attrForImgs, inputsByRetailer } = state;
|
|
@@ -107,8 +108,8 @@ const S3_BUCKET = process.env.REACT_APP_IMAGES_BUCKET;
|
|
|
107
108
|
const REGION = "us-east-1";
|
|
108
109
|
|
|
109
110
|
AWS.config.update({
|
|
110
|
-
accessKeyId: process.env.
|
|
111
|
-
secretAccessKey: process.env.
|
|
111
|
+
accessKeyId: process.env.REACT_APP_KEY_UPLOAD_TO_S3,
|
|
112
|
+
secretAccessKey: process.env.REACT_APP_ACCESS_KEY_UPLOAD_TO_S3,
|
|
112
113
|
});
|
|
113
114
|
|
|
114
115
|
const myBucket = new AWS.S3({
|
|
@@ -205,7 +206,10 @@ export const RetailerProductEdition = ({
|
|
|
205
206
|
const [retailerStatus, setRetailerStatus] = useState("-");
|
|
206
207
|
const [statusArray, setStatusArray] = useState([]);
|
|
207
208
|
const [socketType, setSocketType] = useState(null);
|
|
209
|
+
const [servicesStatus, setServicesStatus] = useState([]);
|
|
208
210
|
const [saving, setSaving] = useState(loading);
|
|
211
|
+
const isAuditor = user.id_role === 6;
|
|
212
|
+
const [showCreateVersion, setShowCreateVersion] = useState(false);
|
|
209
213
|
const [showVersionSelector, setShowVersionSelector] =
|
|
210
214
|
useCloseModal("version-selector");
|
|
211
215
|
const shotThd = [58, 59, 60, 61].includes(activeRetailer.id);
|
|
@@ -1545,10 +1549,18 @@ export const RetailerProductEdition = ({
|
|
|
1545
1549
|
setVersion={setVersion}
|
|
1546
1550
|
companyName={product.article.company_name}
|
|
1547
1551
|
currentVersion={version}
|
|
1552
|
+
setShowCreateVersion={setShowCreateVersion}
|
|
1548
1553
|
setShowVersionSelector={setShowVersionSelector}
|
|
1549
1554
|
jwt={token}
|
|
1550
1555
|
/>
|
|
1551
1556
|
)}
|
|
1557
|
+
{showCreateVersion && (
|
|
1558
|
+
<CreateVersion
|
|
1559
|
+
idArticle={product.article.id_article}
|
|
1560
|
+
version={version}
|
|
1561
|
+
setShowCreateVersion={setShowCreateVersion}
|
|
1562
|
+
/>
|
|
1563
|
+
)}
|
|
1552
1564
|
</Container>
|
|
1553
1565
|
);
|
|
1554
1566
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { useState
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { useEffect } from "react";
|
|
2
3
|
|
|
3
4
|
export const useCloseModal = (id) => {
|
|
4
5
|
const [showModal, setShowModal] = useState(false);
|
|
@@ -10,7 +11,6 @@ export const useCloseModal = (id) => {
|
|
|
10
11
|
setShowModal(false);
|
|
11
12
|
}
|
|
12
13
|
};
|
|
13
|
-
|
|
14
14
|
useEffect(() => {
|
|
15
15
|
if (showModal) {
|
|
16
16
|
document.addEventListener("click", closeModal, false);
|
|
@@ -61,3 +61,15 @@
|
|
|
61
61
|
src: url("../assets/fonts/roboto/Roboto-Regular.ttf");
|
|
62
62
|
font-weight: 400;
|
|
63
63
|
}
|
|
64
|
+
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: "Roboto";
|
|
67
|
+
src: url("../assets/fonts/roboto/Roboto-Regular.ttf");
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.prueba {
|
|
72
|
+
color: #9e3e26;
|
|
73
|
+
color: #b42983;
|
|
74
|
+
color: #e7e7e7;
|
|
75
|
+
}
|