contentoh-components-library 21.1.89 → 21.1.92
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/components/atoms/InputFormatter/index.js +4 -3
- package/dist/components/atoms/Status/styles.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +150 -77
- package/dist/components/pages/ProviderProductEdition/index.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +58 -84
- package/dist/components/pages/RetailerProductEdition/index.js +3 -1
- package/package.json +1 -1
- package/src/components/atoms/InputFormatter/index.js +4 -7
- package/src/components/atoms/Status/styles.js +2 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +156 -78
- package/src/components/pages/ProviderProductEdition/index.js +3 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +58 -96
- package/src/components/pages/RetailerProductEdition/index.js +3 -2
- package/dist/components/atoms/StatusTag/StatusTag.stories.js +0 -48
- package/dist/components/atoms/StatusTag/index.js +0 -58
- package/dist/components/atoms/StatusTag/styles.js +0 -20
- package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -37
- package/dist/components/pages/RegistrationLoginFirstStep/index.js +0 -269
- package/dist/components/pages/RegistrationLoginFirstStep/styles.js +0 -20
|
@@ -16,82 +16,138 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: true,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhYmUxODhlMi0yNWIxLTRhMTktODY3Mi0wZDRiYzExYTliZjIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImFiZTE4OGUyLTI1YjEtNGExOS04NjcyLTBkNGJjMTFhOWJmMiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiJiZTE5OWE0ZS1lYTYwLTQwYTktODIwNC02ODZlOWI1ODczMGQiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1OTUzOTczMiwibmFtZSI6IlJldGFpbGVyIEFjYyIsInBob25lX251bWJlciI6Iis1MjMxMTExMTExMTEiLCJleHAiOjE2NTk1NDMzMzIsImlhdCI6MTY1OTUzOTczMiwiZW1haWwiOiJyZXRhaWxlclRoZEBBbGxGcmVlTWFpbC5uZXQifQ.HSIFFKD5jkoRPzh9uxNUnXkkp6IX7iKeOqRePrzin-XlG7KauuoHvv7M-dWGJB_xRg-C1uGIG7gKOFP7oM3BGuVqrlIzs-z3uKNSBz0raq3-tRUHRMKo30HGwdh9Q8X8F9RAEZ0-lpIoTCoMS4ua6OJVG_qPRGJHVF2_mzAxof81oHHj5tv-SC6lrJYc5UqDj97y_e-rGakVyVV7VXeKAJlnmw4y52_WDlbOq3W2e_wI8NuNiiEBYXgWSm5j_rzB4-BuF3nUNheKpimZEn1wTULHLo-Izj_WPdPS1l5yTi9oF09QZht_Te0o3SZliBPKgVcH8cycReoACukbY2BPPQ",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
version:
|
|
34
|
-
|
|
35
|
-
|
|
24
|
+
services: {
|
|
25
|
+
datasheets: 1,
|
|
26
|
+
descriptions: 1,
|
|
27
|
+
images: 1,
|
|
28
|
+
},
|
|
29
|
+
orderId: 2437,
|
|
30
|
+
status: "AS",
|
|
31
|
+
datasheet_status: "AS",
|
|
32
|
+
prio: "none",
|
|
33
|
+
version: 2,
|
|
34
|
+
description_status: "AS",
|
|
35
|
+
images_status: "AS",
|
|
36
|
+
article: {
|
|
37
|
+
id_article: 78748,
|
|
38
|
+
id_category: "684",
|
|
39
|
+
name: "TP COLG Luminous White Lovers Wine 4x70g",
|
|
40
|
+
upc: "7509546681603",
|
|
41
|
+
timestamp: "2022-08-02T14:31:07.000Z",
|
|
42
|
+
id_user: 1258,
|
|
43
|
+
status: "NULL",
|
|
44
|
+
active: 1,
|
|
45
|
+
company_id: 226,
|
|
46
|
+
SKU: null,
|
|
47
|
+
Descripcion: null,
|
|
48
|
+
Proveedor: null,
|
|
49
|
+
id_proveedor: 0,
|
|
50
|
+
company_name: "COLGATE PALMOLIVE S.A. DE C.V.",
|
|
51
|
+
country: null,
|
|
52
|
+
id_order: 2437,
|
|
53
|
+
id_datasheet_especialist: 405,
|
|
54
|
+
id_datasheet_facilitator: 158,
|
|
55
|
+
id_description_especialist: 405,
|
|
56
|
+
id_description_facilitator: 158,
|
|
57
|
+
id_images_especialist: 381,
|
|
58
|
+
id_images_facilitator: 160,
|
|
59
|
+
id_auditor: 9,
|
|
60
|
+
id_recepcionist: null,
|
|
61
|
+
category: "Salud y Belleza|Cuidado Bucal|Pastas Dentales y Aseo Bucal",
|
|
62
|
+
missingAttributes: 47,
|
|
63
|
+
missingDescriptions: 2,
|
|
64
|
+
missingImages: 4,
|
|
65
|
+
},
|
|
66
|
+
retailers: [
|
|
67
|
+
{
|
|
68
|
+
id: 3,
|
|
69
|
+
name: "Sam´s Club",
|
|
70
|
+
country: "México",
|
|
71
|
+
id_region: 1,
|
|
72
|
+
active: 1,
|
|
73
|
+
},
|
|
36
74
|
{
|
|
37
|
-
id:
|
|
38
|
-
name: "
|
|
75
|
+
id: 19,
|
|
76
|
+
name: "Costco",
|
|
39
77
|
country: "México",
|
|
40
78
|
id_region: 1,
|
|
41
79
|
active: 1,
|
|
42
80
|
},
|
|
43
81
|
],
|
|
44
|
-
|
|
82
|
+
country: null,
|
|
83
|
+
upc: "7509546681603",
|
|
45
84
|
},
|
|
46
85
|
productToEdit: {
|
|
47
|
-
idCategory: "
|
|
48
|
-
ArticleId:
|
|
86
|
+
idCategory: "684",
|
|
87
|
+
ArticleId: 78748,
|
|
49
88
|
product: [
|
|
50
89
|
{
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
90
|
+
services: {
|
|
91
|
+
datasheets: 1,
|
|
92
|
+
descriptions: 1,
|
|
93
|
+
images: 1,
|
|
94
|
+
},
|
|
95
|
+
orderId: 2437,
|
|
96
|
+
status: "AS",
|
|
97
|
+
datasheet_status: "AS",
|
|
55
98
|
prio: "none",
|
|
56
99
|
version: 2,
|
|
57
|
-
description_status: "
|
|
58
|
-
images_status: "
|
|
59
|
-
brand: null,
|
|
60
|
-
missing: {
|
|
61
|
-
datasheet: 0,
|
|
62
|
-
descriptions: 0,
|
|
63
|
-
images: 0,
|
|
64
|
-
},
|
|
100
|
+
description_status: "AS",
|
|
101
|
+
images_status: "AS",
|
|
65
102
|
article: {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
103
|
+
id_article: 78748,
|
|
104
|
+
id_category: "684",
|
|
105
|
+
name: "TP COLG Luminous White Lovers Wine 4x70g",
|
|
106
|
+
upc: "7509546681603",
|
|
107
|
+
timestamp: "2022-08-02T14:31:07.000Z",
|
|
108
|
+
id_user: 1258,
|
|
109
|
+
status: "NULL",
|
|
110
|
+
active: 1,
|
|
111
|
+
company_id: 226,
|
|
112
|
+
SKU: null,
|
|
113
|
+
Descripcion: null,
|
|
114
|
+
Proveedor: null,
|
|
115
|
+
id_proveedor: 0,
|
|
116
|
+
company_name: "COLGATE PALMOLIVE S.A. DE C.V.",
|
|
117
|
+
country: null,
|
|
118
|
+
id_order: 2437,
|
|
119
|
+
id_datasheet_especialist: 405,
|
|
120
|
+
id_datasheet_facilitator: 158,
|
|
121
|
+
id_description_especialist: 405,
|
|
122
|
+
id_description_facilitator: 158,
|
|
123
|
+
id_images_especialist: 381,
|
|
124
|
+
id_images_facilitator: 160,
|
|
125
|
+
id_auditor: 9,
|
|
126
|
+
id_recepcionist: null,
|
|
127
|
+
category:
|
|
128
|
+
"Salud y Belleza|Cuidado Bucal|Pastas Dentales y Aseo Bucal",
|
|
129
|
+
missingAttributes: 47,
|
|
130
|
+
missingDescriptions: 2,
|
|
131
|
+
missingImages: 4,
|
|
73
132
|
},
|
|
74
133
|
retailers: [
|
|
75
134
|
{
|
|
76
|
-
id:
|
|
77
|
-
name: "
|
|
135
|
+
id: 3,
|
|
136
|
+
name: "Sam´s Club",
|
|
137
|
+
country: "México",
|
|
138
|
+
id_region: 1,
|
|
139
|
+
active: 1,
|
|
78
140
|
},
|
|
79
|
-
],
|
|
80
|
-
services: {
|
|
81
|
-
datasheets: 0,
|
|
82
|
-
descriptions: 0,
|
|
83
|
-
images: 1,
|
|
84
|
-
},
|
|
85
|
-
checked: false,
|
|
86
|
-
retailersAvailable: [
|
|
87
141
|
{
|
|
88
|
-
id:
|
|
89
|
-
name: "
|
|
142
|
+
id: 19,
|
|
143
|
+
name: "Costco",
|
|
144
|
+
country: "México",
|
|
145
|
+
id_region: 1,
|
|
146
|
+
active: 1,
|
|
90
147
|
},
|
|
91
148
|
],
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
version_status: "AC",
|
|
149
|
+
country: null,
|
|
150
|
+
upc: "7509546681603",
|
|
95
151
|
},
|
|
96
152
|
],
|
|
97
153
|
},
|
|
@@ -99,29 +155,29 @@ ProviderProductEditionDefault.args = {
|
|
|
99
155
|
state: { origin: "Contentoh" },
|
|
100
156
|
},
|
|
101
157
|
user: {
|
|
102
|
-
id_user:
|
|
103
|
-
name: "
|
|
104
|
-
last_name: "
|
|
105
|
-
email: "
|
|
106
|
-
position: "
|
|
107
|
-
telephone:
|
|
158
|
+
id_user: 460,
|
|
159
|
+
name: "Ismael",
|
|
160
|
+
last_name: "López",
|
|
161
|
+
email: "ilopez@contentoh.com",
|
|
162
|
+
position: "Desarrollador",
|
|
163
|
+
telephone: null,
|
|
108
164
|
country: "México",
|
|
109
|
-
id_company:
|
|
110
|
-
id_cognito: "
|
|
111
|
-
birth_Date:
|
|
165
|
+
id_company: 254,
|
|
166
|
+
id_cognito: "9d0cc5c8-a89e-4bdd-9e2d-358a01cc9a62",
|
|
167
|
+
birth_Date: "1997-08-15T00:00:00.000Z",
|
|
112
168
|
about_me: null,
|
|
113
169
|
zip_code: null,
|
|
114
170
|
address: null,
|
|
115
171
|
job: null,
|
|
116
172
|
id_stripe: null,
|
|
117
|
-
id_role:
|
|
173
|
+
id_role: 1,
|
|
118
174
|
active: 1,
|
|
119
175
|
is_retailer: 0,
|
|
120
|
-
email_notify:
|
|
176
|
+
email_notify: null,
|
|
121
177
|
membership: {
|
|
122
|
-
id:
|
|
123
|
-
start_date: "2022-
|
|
124
|
-
end_date: "2023-
|
|
178
|
+
id: 750,
|
|
179
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
180
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
125
181
|
planID: 6,
|
|
126
182
|
plan: "prod_KvGd6YSTJyR3AP",
|
|
127
183
|
name: "Plan Small",
|
|
@@ -129,20 +185,42 @@ ProviderProductEditionDefault.args = {
|
|
|
129
185
|
products_limit: "1000",
|
|
130
186
|
type: "Enterprise",
|
|
131
187
|
},
|
|
132
|
-
src: "https://content-management-profile-prod.s3.amazonaws.com/id-
|
|
188
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-460/460.png?1659303790385",
|
|
133
189
|
},
|
|
134
190
|
company: {
|
|
135
|
-
id_company:
|
|
136
|
-
trade_name: "
|
|
137
|
-
company_name: "
|
|
138
|
-
rfc:
|
|
139
|
-
adress: "",
|
|
140
|
-
about_company:
|
|
141
|
-
telephone:
|
|
142
|
-
web_site:
|
|
143
|
-
zip_code:
|
|
191
|
+
id_company: 817,
|
|
192
|
+
trade_name: "Retailer acc",
|
|
193
|
+
company_name: "Retailer acc",
|
|
194
|
+
rfc: "ASER12345",
|
|
195
|
+
adress: "Av. Insurgentes",
|
|
196
|
+
about_company: null,
|
|
197
|
+
telephone: null,
|
|
198
|
+
web_site: null,
|
|
199
|
+
zip_code: null,
|
|
144
200
|
email: null,
|
|
145
|
-
social_link:
|
|
146
|
-
is_retailer:
|
|
201
|
+
social_link: null,
|
|
202
|
+
is_retailer: 1,
|
|
203
|
+
retailers: [
|
|
204
|
+
{
|
|
205
|
+
id: 58,
|
|
206
|
+
name: "The Home Depot Golden",
|
|
207
|
+
country: "México",
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
id: 59,
|
|
211
|
+
name: "The Home Depot Platinum",
|
|
212
|
+
country: "México",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
id: 60,
|
|
216
|
+
name: "The Home Depot Resizing",
|
|
217
|
+
country: "México",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
id: 61,
|
|
221
|
+
name: "Home Depot TAB",
|
|
222
|
+
country: "México",
|
|
223
|
+
},
|
|
224
|
+
],
|
|
147
225
|
},
|
|
148
226
|
};
|
|
@@ -1209,7 +1209,9 @@ export const ProviderProductEdition = ({
|
|
|
1209
1209
|
<FullTabsMenu
|
|
1210
1210
|
tabsSections={tabsSections}
|
|
1211
1211
|
status={
|
|
1212
|
-
activeRetailer
|
|
1212
|
+
activeRetailer?.id &&
|
|
1213
|
+
retailerStatus &&
|
|
1214
|
+
retailerStatus[activeRetailer.id]
|
|
1213
1215
|
? retailerStatus[activeRetailer?.id][getConcept(activeTab)] ||
|
|
1214
1216
|
"NS"
|
|
1215
1217
|
: "-"
|
|
@@ -16,113 +16,75 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"
|
|
19
|
+
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIyM2EzZjQ5Ni00ZTM4LTRlMTItOWJmNS03ZjkwYjc3YTJmMzUiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjIzYTNmNDk2LTRlMzgtNGUxMi05YmY1LTdmOTBiNzdhMmYzNSIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiJiYjY1ODZhYS02MzQ5LTQ2ZDgtOTk1Ni00ZGQ3NGEzY2FmODYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1OTY0OTAyOCwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY1OTY1MjYyOCwiaWF0IjoxNjU5NjQ5MDI4LCJlbWFpbCI6ImxhZGlib2g3ODVAbWkxNjYuY29tIn0.OWVf7QX5rQpQAPmqhwGG14kDJhuG051MjYdv6TVMoEi5LrwmamTk8RJiDqgLTOZOgadlQoAHq27w5LnbYqDfQRqJYfj0kh0qTg2lA7xIZCCd-ljvvMtW6XGmd2_XoEhGkrjnZkniBiOaYSpNW_qTV0FiuWNh4enI7k4kl3x48QEPG9Jd7-4q4I21xVEBD1hy_TYhKQzS7H0FP487W89qOMZhOfmyVQkEQjjuzfedJTunm5SmF1AVA7Dvt2bcBMQOPrcB3c5veUtsxf7ta9yS9wGlb8vfcizczNaN5OLATNjdfHMnEUdOYiEBmnOXzcsnnz4mykearBqYEwp3-3XijA",
|
|
20
20
|
productSelected: {
|
|
21
21
|
services: {
|
|
22
|
-
datasheets:
|
|
23
|
-
descriptions:
|
|
22
|
+
datasheets: 1,
|
|
23
|
+
descriptions: 1,
|
|
24
24
|
images: 1,
|
|
25
25
|
},
|
|
26
|
-
orderId:
|
|
27
|
-
status: "
|
|
28
|
-
datasheet_status: "
|
|
26
|
+
orderId: 2012,
|
|
27
|
+
status: "ACA",
|
|
28
|
+
datasheet_status: "ACA",
|
|
29
29
|
prio: "none",
|
|
30
30
|
version: 2,
|
|
31
|
-
description_status: "
|
|
32
|
-
images_status: "
|
|
31
|
+
description_status: "ACA",
|
|
32
|
+
images_status: "ACA",
|
|
33
33
|
article: {
|
|
34
|
-
id_article:
|
|
35
|
-
id_category: "
|
|
36
|
-
name: "
|
|
37
|
-
upc: "
|
|
38
|
-
timestamp: "2022-
|
|
39
|
-
id_user:
|
|
34
|
+
id_article: 77106,
|
|
35
|
+
id_category: "2898",
|
|
36
|
+
name: "INFLABLE CATRINA 2.13M HALLOWEEN",
|
|
37
|
+
upc: "163556",
|
|
38
|
+
timestamp: "2022-07-07T17:01:17.000Z",
|
|
39
|
+
id_user: 1195,
|
|
40
40
|
status: "NULL",
|
|
41
41
|
active: 1,
|
|
42
|
-
company_id:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
company_id: 657,
|
|
43
|
+
SKU: null,
|
|
44
|
+
Descripcion: null,
|
|
45
|
+
Proveedor: null,
|
|
46
|
+
id_proveedor: 0,
|
|
47
|
+
company_name: "",
|
|
48
|
+
country: null,
|
|
49
|
+
id_order: 2012,
|
|
50
|
+
id_datasheet_especialist: 1248,
|
|
51
|
+
id_datasheet_facilitator: 1252,
|
|
52
|
+
id_description_especialist: 334,
|
|
53
|
+
id_description_facilitator: 1252,
|
|
54
|
+
id_images_especialist: 1250,
|
|
55
|
+
id_images_facilitator: 1286,
|
|
56
|
+
id_auditor: 1254,
|
|
53
57
|
id_recepcionist: null,
|
|
54
|
-
category:
|
|
55
|
-
|
|
56
|
-
missingAttributes: 0,
|
|
58
|
+
category: "Hallowen|Decoración e Inflables|Decoración e Inflables",
|
|
59
|
+
missingAttributes: 3,
|
|
57
60
|
missingDescriptions: 0,
|
|
58
|
-
missingImages:
|
|
61
|
+
missingImages: -2,
|
|
59
62
|
},
|
|
60
63
|
retailers: [
|
|
61
64
|
{
|
|
62
|
-
id:
|
|
63
|
-
name: "
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
name: "Walmart Super y Superama",
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
id: 5,
|
|
71
|
-
name: "Chedraui",
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
id: 6,
|
|
75
|
-
name: "HEB",
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
id: 12,
|
|
79
|
-
name: "La Comer",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
id: 13,
|
|
83
|
-
name: "Soriana",
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
id: 17,
|
|
87
|
-
name: "Genérico",
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
id: 20,
|
|
91
|
-
name: "Cornershop",
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
id: 26,
|
|
95
|
-
name: "Mercado Libre",
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
id: 34,
|
|
99
|
-
name: "San Pablo",
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
id: 38,
|
|
103
|
-
name: "Del Sol",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
id: 64,
|
|
107
|
-
name: "Cali",
|
|
65
|
+
id: 58,
|
|
66
|
+
name: "The Home Depot Golden",
|
|
67
|
+
country: "México",
|
|
68
|
+
id_region: 1,
|
|
69
|
+
active: 1,
|
|
108
70
|
},
|
|
109
71
|
],
|
|
110
|
-
country:
|
|
111
|
-
upc: "
|
|
72
|
+
country: null,
|
|
73
|
+
upc: "163556",
|
|
112
74
|
},
|
|
113
75
|
location: {
|
|
114
76
|
product: { articleId: 109485, versionId: 3 },
|
|
115
77
|
},
|
|
116
78
|
user: {
|
|
117
|
-
id_user:
|
|
118
|
-
name: "
|
|
119
|
-
last_name: "
|
|
120
|
-
email: "
|
|
121
|
-
position: "
|
|
79
|
+
id_user: 425,
|
|
80
|
+
name: "Auditor QA",
|
|
81
|
+
last_name: " ",
|
|
82
|
+
email: "ladiboh785@mi166.com",
|
|
83
|
+
position: "Tester",
|
|
122
84
|
telephone: null,
|
|
123
|
-
country:
|
|
124
|
-
id_company:
|
|
125
|
-
id_cognito: "
|
|
85
|
+
country: null,
|
|
86
|
+
id_company: 254,
|
|
87
|
+
id_cognito: "23a3f496-4e38-4e12-9bf5-7f90b77a2f35",
|
|
126
88
|
birth_Date: null,
|
|
127
89
|
about_me: null,
|
|
128
90
|
zip_code: null,
|
|
@@ -132,18 +94,18 @@ RetailerProductEditionDefault.args = {
|
|
|
132
94
|
id_role: 1,
|
|
133
95
|
active: 1,
|
|
134
96
|
is_retailer: 0,
|
|
135
|
-
email_notify:
|
|
97
|
+
email_notify: null,
|
|
136
98
|
membership: {
|
|
137
|
-
id:
|
|
138
|
-
start_date: "
|
|
139
|
-
end_date: "
|
|
140
|
-
planID:
|
|
141
|
-
plan: "
|
|
142
|
-
name: "Plan
|
|
143
|
-
user_limit: "
|
|
144
|
-
products_limit: "
|
|
145
|
-
type: "
|
|
99
|
+
id: 750,
|
|
100
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
101
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
102
|
+
planID: 6,
|
|
103
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
104
|
+
name: "Plan Small",
|
|
105
|
+
user_limit: "10",
|
|
106
|
+
products_limit: "1000",
|
|
107
|
+
type: "Enterprise",
|
|
146
108
|
},
|
|
147
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
109
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1659649029658",
|
|
148
110
|
},
|
|
149
111
|
};
|
|
@@ -640,8 +640,9 @@ export const RetailerProductEdition = ({
|
|
|
640
640
|
return (
|
|
641
641
|
statusArray.includes(srvActive) &&
|
|
642
642
|
(["RA", "RC"].includes(product?.status) ||
|
|
643
|
-
srv.filter((serv) =>
|
|
644
|
-
|
|
643
|
+
srv.filter((serv) =>
|
|
644
|
+
statusArray.includes(serv.status?.replace(/.*\//, ""))
|
|
645
|
+
).length === srv.length)
|
|
645
646
|
);
|
|
646
647
|
case 4:
|
|
647
648
|
case 5:
|
|
@@ -1,48 +0,0 @@
|
|
|
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.default = exports.StatusTagDefault = void 0;
|
|
9
|
-
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
|
-
var _index = require("./index");
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
|
|
18
|
-
var status = _variables.GlobalStatus;
|
|
19
|
-
var _default = {
|
|
20
|
-
title: "Components/atoms/StatusTag",
|
|
21
|
-
component: _index.StatusTag,
|
|
22
|
-
argTypes: {
|
|
23
|
-
statusType: {
|
|
24
|
-
options: status,
|
|
25
|
-
control: {
|
|
26
|
-
type: "select"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
ovalForm: {
|
|
30
|
-
options: [true, false],
|
|
31
|
-
control: {
|
|
32
|
-
type: "boolean"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.default = _default;
|
|
38
|
-
|
|
39
|
-
var Template = function Template(args) {
|
|
40
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StatusTag, (0, _objectSpread2.default)({}, args));
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
var StatusTagDefault = Template.bind({});
|
|
44
|
-
exports.StatusTagDefault = StatusTagDefault;
|
|
45
|
-
StatusTagDefault.args = {
|
|
46
|
-
statusType: "-",
|
|
47
|
-
ovalForm: false
|
|
48
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.StatusTag = void 0;
|
|
7
|
-
|
|
8
|
-
var _styles = require("./styles");
|
|
9
|
-
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
|
|
12
|
-
var StatusTag = function StatusTag(_ref) {
|
|
13
|
-
var statusType = _ref.statusType,
|
|
14
|
-
ovalForm = _ref.ovalForm;
|
|
15
|
-
|
|
16
|
-
var getShortStatus = function getShortStatus(status) {
|
|
17
|
-
switch (status) {
|
|
18
|
-
case "COMPLETED":
|
|
19
|
-
return "C";
|
|
20
|
-
|
|
21
|
-
case "RECEPTION":
|
|
22
|
-
return "Pr";
|
|
23
|
-
|
|
24
|
-
case "NULL":
|
|
25
|
-
return "-";
|
|
26
|
-
|
|
27
|
-
case "RECEIVED":
|
|
28
|
-
return "Rc";
|
|
29
|
-
|
|
30
|
-
case "IN_PROGRESS":
|
|
31
|
-
return "P";
|
|
32
|
-
|
|
33
|
-
case "ASSIGNED":
|
|
34
|
-
return "As";
|
|
35
|
-
|
|
36
|
-
case "APPROVED":
|
|
37
|
-
return "Ap";
|
|
38
|
-
|
|
39
|
-
case "VALIDATING":
|
|
40
|
-
return "V";
|
|
41
|
-
|
|
42
|
-
case "PAID_OUT":
|
|
43
|
-
return "Po";
|
|
44
|
-
|
|
45
|
-
default:
|
|
46
|
-
return status;
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
51
|
-
className: "status-".concat(getShortStatus(statusType), " ").concat(ovalForm && "oval-form"),
|
|
52
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
53
|
-
children: getShortStatus(statusType)
|
|
54
|
-
})
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
exports.StatusTag = StatusTag;
|
|
@@ -1,20 +0,0 @@
|
|
|
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 width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-As,\n &.status-P,\n &.status-IN_PROGRESS,\n &.status-QF {\n background-color: ", ";\n }\n\n &.status-Pr,\n &.status-Rr,\n &.status-Rc {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-AF {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
19
|
-
|
|
20
|
-
exports.Container = Container;
|