contentoh-components-library 21.3.41 → 21.3.43
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/organisms/DashboardMetric/dashboardMetricUtils.js +27 -0
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +63 -77
- package/dist/components/pages/ProviderProductEdition/index.js +453 -205
- package/package.json +1 -1
- package/src/components/organisms/DashboardMetric/dashboardMetricUtils.js +18 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +63 -83
- package/src/components/pages/ProviderProductEdition/index.js +138 -23
|
@@ -56,6 +56,21 @@ var getFullStatus = function getFullStatus(status) {
|
|
|
56
56
|
|
|
57
57
|
case "NS":
|
|
58
58
|
return "No solicitado";
|
|
59
|
+
|
|
60
|
+
case "SAC":
|
|
61
|
+
return "Solicitud Auditoría Content-oh!";
|
|
62
|
+
|
|
63
|
+
case "AAC":
|
|
64
|
+
return "Aprobado Auditoría Content-oh!";
|
|
65
|
+
|
|
66
|
+
case "RAC":
|
|
67
|
+
return "Rechazado Auditoría Content-oh!";
|
|
68
|
+
|
|
69
|
+
case "FAP":
|
|
70
|
+
return "Finalización Auditoría por Proveedor";
|
|
71
|
+
|
|
72
|
+
default:
|
|
73
|
+
return "";
|
|
59
74
|
}
|
|
60
75
|
};
|
|
61
76
|
|
|
@@ -113,6 +128,18 @@ var getStatusColor = function getStatusColor(status) {
|
|
|
113
128
|
case "Ex":
|
|
114
129
|
return "#09CAD8";
|
|
115
130
|
|
|
131
|
+
case "SAC":
|
|
132
|
+
return "#2471A3";
|
|
133
|
+
|
|
134
|
+
case "AAC":
|
|
135
|
+
return "#1ABC9C";
|
|
136
|
+
|
|
137
|
+
case "RAC":
|
|
138
|
+
return "#229954";
|
|
139
|
+
|
|
140
|
+
case "FAP":
|
|
141
|
+
return "#F1C40F";
|
|
142
|
+
|
|
116
143
|
default:
|
|
117
144
|
return "white";
|
|
118
145
|
}
|
|
@@ -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I0NjI3ODQsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.ebKSsnTxKoNfWDoKGFJRlLWgNulGj4KrDe0EgsqLEIVx3Qu0lgmg43UY5tZ3FUlRE8XO2UGq0XxEgdbGOe_4nbTRYigdvxP3bh3cPQ0s68hlTDfhPRvxVJYlaO4s0rhk9rt_VVteTyLfhPHFCymrkFYYDB8bVvKnxUUCX_nJvqGQkl48JiYgvYVLpuus5FvRkGwi1u-jTtMoKiUK-jw9MxI18hD0FWXVnJr-q9ftf2d0bv4JRv4XJ_tRh1N6jps5n3c_KKZswqRfGLU-8MS2X3DU6pDqEP2BZAGXksiFYXYH_uHE6BKJAl7EEhkDTqZsx_jWtVSXTdDg_QDKrOw0Kg",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
orderId:
|
|
40
|
-
article_status: "
|
|
39
|
+
orderId: 15165,
|
|
40
|
+
article_status: "AAC",
|
|
41
41
|
datasheet_status: "AAC",
|
|
42
|
-
description_status: "
|
|
43
|
-
images_status: "
|
|
42
|
+
description_status: "FAP",
|
|
43
|
+
images_status: "FAP",
|
|
44
44
|
prio: "none",
|
|
45
|
-
version:
|
|
45
|
+
version: 3,
|
|
46
46
|
brand: null,
|
|
47
47
|
article: {
|
|
48
48
|
category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
49
49
|
company_name: "Demo",
|
|
50
|
-
id_company:
|
|
50
|
+
id_company: 923,
|
|
51
51
|
country: "México",
|
|
52
52
|
id_category: "2366",
|
|
53
|
-
id_article:
|
|
54
|
-
name: "
|
|
55
|
-
upc: "
|
|
53
|
+
id_article: 39336,
|
|
54
|
+
name: "Prueba Auditoria",
|
|
55
|
+
upc: "100030124"
|
|
56
56
|
},
|
|
57
57
|
retailers: [{
|
|
58
58
|
id: 58,
|
|
59
59
|
name: "The Home Depot Golden"
|
|
60
60
|
}, {
|
|
61
61
|
id: 68,
|
|
62
|
-
name: "The Home Depot
|
|
62
|
+
name: "The Home Depot Dropship"
|
|
63
63
|
}],
|
|
64
64
|
services: {
|
|
65
65
|
datasheets: 1,
|
|
@@ -69,48 +69,48 @@ ProviderProductEditionDefault.args = {
|
|
|
69
69
|
statusByRetailer: {
|
|
70
70
|
58: {
|
|
71
71
|
datasheet: "AAC",
|
|
72
|
-
description: "
|
|
73
|
-
images: "
|
|
72
|
+
description: "FAP",
|
|
73
|
+
images: "FAP"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
retailersWithService: ["58"],
|
|
77
|
-
id_article:
|
|
77
|
+
id_article: 39336,
|
|
78
78
|
retailersAvailable: [{
|
|
79
79
|
id: 58,
|
|
80
80
|
name: "The Home Depot Golden"
|
|
81
81
|
}, {
|
|
82
82
|
id: 68,
|
|
83
|
-
name: "The Home Depot
|
|
83
|
+
name: "The Home Depot Dropship"
|
|
84
84
|
}]
|
|
85
85
|
},
|
|
86
86
|
productToEdit: {
|
|
87
|
-
ArticleId:
|
|
87
|
+
ArticleId: 39336,
|
|
88
88
|
idCategory: "2366",
|
|
89
89
|
product: {
|
|
90
|
-
orderId:
|
|
91
|
-
article_status: "
|
|
90
|
+
orderId: 15165,
|
|
91
|
+
article_status: "AAC",
|
|
92
92
|
datasheet_status: "AAC",
|
|
93
|
-
description_status: "
|
|
94
|
-
images_status: "
|
|
93
|
+
description_status: "FAP",
|
|
94
|
+
images_status: "FAP",
|
|
95
95
|
prio: "none",
|
|
96
|
-
version:
|
|
96
|
+
version: 3,
|
|
97
97
|
brand: null,
|
|
98
98
|
article: {
|
|
99
99
|
category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
100
100
|
company_name: "Demo",
|
|
101
|
-
id_company:
|
|
101
|
+
id_company: 923,
|
|
102
102
|
country: "México",
|
|
103
103
|
id_category: "2366",
|
|
104
|
-
id_article:
|
|
105
|
-
name: "
|
|
106
|
-
upc: "
|
|
104
|
+
id_article: 39336,
|
|
105
|
+
name: "Prueba Auditoria",
|
|
106
|
+
upc: "100030124"
|
|
107
107
|
},
|
|
108
108
|
retailers: [{
|
|
109
109
|
id: 58,
|
|
110
110
|
name: "The Home Depot Golden"
|
|
111
111
|
}, {
|
|
112
112
|
id: 68,
|
|
113
|
-
name: "The Home Depot
|
|
113
|
+
name: "The Home Depot Dropship"
|
|
114
114
|
}],
|
|
115
115
|
services: {
|
|
116
116
|
datasheets: 1,
|
|
@@ -120,18 +120,18 @@ ProviderProductEditionDefault.args = {
|
|
|
120
120
|
statusByRetailer: {
|
|
121
121
|
58: {
|
|
122
122
|
datasheet: "AAC",
|
|
123
|
-
description: "
|
|
124
|
-
images: "
|
|
123
|
+
description: "FAP",
|
|
124
|
+
images: "FAP"
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
retailersWithService: ["58"],
|
|
128
|
-
id_article:
|
|
128
|
+
id_article: 39336,
|
|
129
129
|
retailersAvailable: [{
|
|
130
130
|
id: 58,
|
|
131
131
|
name: "The Home Depot Golden"
|
|
132
132
|
}, {
|
|
133
133
|
id: 68,
|
|
134
|
-
name: "The Home Depot
|
|
134
|
+
name: "The Home Depot Dropship"
|
|
135
135
|
}]
|
|
136
136
|
}
|
|
137
137
|
},
|
|
@@ -145,52 +145,38 @@ ProviderProductEditionDefault.args = {
|
|
|
145
145
|
key: "24vwut"
|
|
146
146
|
},
|
|
147
147
|
user: {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
statusByRetailer: {
|
|
179
|
-
58: {
|
|
180
|
-
datasheet: "AAC",
|
|
181
|
-
description: "RAC",
|
|
182
|
-
images: "AAC"
|
|
183
|
-
}
|
|
148
|
+
id_user: 59,
|
|
149
|
+
name: "Cadena",
|
|
150
|
+
last_name: "Comercial",
|
|
151
|
+
email: "cadena.ismael@allfreemail.net",
|
|
152
|
+
position: "Admin",
|
|
153
|
+
telephone: "+523111366336",
|
|
154
|
+
country: "México",
|
|
155
|
+
id_company: 817,
|
|
156
|
+
id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
|
|
157
|
+
birth_Date: null,
|
|
158
|
+
about_me: "",
|
|
159
|
+
zip_code: "",
|
|
160
|
+
address: "",
|
|
161
|
+
job: "",
|
|
162
|
+
id_stripe: "",
|
|
163
|
+
id_role: 0,
|
|
164
|
+
active: 1,
|
|
165
|
+
is_retailer: 1,
|
|
166
|
+
email_notify: 0,
|
|
167
|
+
is_user_tech: null,
|
|
168
|
+
membership: {
|
|
169
|
+
id: 47,
|
|
170
|
+
start_date: "2022-05-25T14:31:12.000Z",
|
|
171
|
+
end_date: "2023-05-25T14:31:12.000Z",
|
|
172
|
+
planID: 5,
|
|
173
|
+
plan: "prod_Ktl6B5Ou2gqTB2",
|
|
174
|
+
name: "Plan Pro",
|
|
175
|
+
user_limit: "5",
|
|
176
|
+
products_limit: "500",
|
|
177
|
+
type: "PyMES"
|
|
184
178
|
},
|
|
185
|
-
|
|
186
|
-
id_article: 39290,
|
|
187
|
-
retailersAvailable: [{
|
|
188
|
-
id: 58,
|
|
189
|
-
name: "The Home Depot Golden"
|
|
190
|
-
}, {
|
|
191
|
-
id: 68,
|
|
192
|
-
name: "The Home Depot Merchants"
|
|
193
|
-
}]
|
|
179
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1682462786497"
|
|
194
180
|
},
|
|
195
181
|
company: {
|
|
196
182
|
id_company: 817,
|
|
@@ -207,7 +193,7 @@ ProviderProductEditionDefault.args = {
|
|
|
207
193
|
is_retailer: 1,
|
|
208
194
|
financedRetailers: [{
|
|
209
195
|
id: 68,
|
|
210
|
-
name: "The Home Depot
|
|
196
|
+
name: "The Home Depot Dropship",
|
|
211
197
|
country: "México",
|
|
212
198
|
id_region: 1,
|
|
213
199
|
active: 1
|
|
@@ -226,7 +212,7 @@ ProviderProductEditionDefault.args = {
|
|
|
226
212
|
country: "México"
|
|
227
213
|
}, {
|
|
228
214
|
id: 68,
|
|
229
|
-
name: "The Home Depot
|
|
215
|
+
name: "The Home Depot Dropship",
|
|
230
216
|
country: "México"
|
|
231
217
|
}, {
|
|
232
218
|
id: 58,
|