contentoh-components-library 21.1.40 → 21.1.44
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/StatusTag/index.js +17 -2
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/organisms/FullProductNameHeader/index.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +87 -119
- package/dist/components/pages/ProviderProductEdition/index.js +328 -380
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +41 -86
- package/dist/components/pages/RetailerProductEdition/index.js +201 -214
- package/dist/global-files/data.js +9 -10
- package/dist/index.js +13 -0
- package/package.json +1 -1
- package/src/components/atoms/StatusTag/index.js +12 -2
- package/src/components/atoms/StatusTag/styles.js +11 -11
- package/src/components/molecules/StatusAsignationInfo/index.js +1 -1
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +92 -116
- package/src/components/pages/ProviderProductEdition/index.js +208 -218
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +38 -87
- package/src/components/pages/RetailerProductEdition/index.js +168 -143
- package/src/global-files/data.js +9 -10
- package/src/index.js +1 -0
|
@@ -18,12 +18,27 @@ var StatusTag = function StatusTag(_ref) {
|
|
|
18
18
|
case "COMPLETED":
|
|
19
19
|
return "C";
|
|
20
20
|
|
|
21
|
+
case "RECEPTION":
|
|
22
|
+
return "Pr";
|
|
23
|
+
|
|
21
24
|
case "NULL":
|
|
22
|
-
return "
|
|
25
|
+
return "-";
|
|
26
|
+
|
|
27
|
+
case "RECEIVED":
|
|
28
|
+
return "Rc";
|
|
29
|
+
|
|
30
|
+
case "IN_PROGRESS":
|
|
31
|
+
return "P";
|
|
32
|
+
|
|
33
|
+
case "ASSIGNED":
|
|
34
|
+
return "As";
|
|
23
35
|
|
|
24
36
|
case "APPROVED":
|
|
25
37
|
return "Ap";
|
|
26
38
|
|
|
39
|
+
case "VALIDATING":
|
|
40
|
+
return "V";
|
|
41
|
+
|
|
27
42
|
case "PAID_OUT":
|
|
28
43
|
return "Po";
|
|
29
44
|
|
|
@@ -33,7 +48,7 @@ var StatusTag = function StatusTag(_ref) {
|
|
|
33
48
|
};
|
|
34
49
|
|
|
35
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
36
|
-
className: "status-".concat(getShortStatus(statusType
|
|
51
|
+
className: "status-".concat(getShortStatus(statusType), " ").concat(ovalForm && "oval-form"),
|
|
37
52
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
38
53
|
children: getShortStatus(statusType)
|
|
39
54
|
})
|
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
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-
|
|
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
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -47,7 +47,7 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
|
47
47
|
var element = [];
|
|
48
48
|
servicesData.forEach(function (sd) {
|
|
49
49
|
if (sd.id_retailer === rt.id) {
|
|
50
|
-
element.push(sd.status ? sd.status : "
|
|
50
|
+
element.push(sd.status ? sd.status : "RECEIVED");
|
|
51
51
|
} else element.push("NA");
|
|
52
52
|
|
|
53
53
|
rt["services"] = element;
|
|
@@ -28,50 +28,30 @@ exports.ProviderProductEditionDefault = ProviderProductEditionDefault;
|
|
|
28
28
|
ProviderProductEditionDefault.args = {
|
|
29
29
|
tabsSections: {
|
|
30
30
|
Descripción: true,
|
|
31
|
-
"Ficha técnica":
|
|
32
|
-
Imágenes:
|
|
31
|
+
"Ficha técnica": false,
|
|
32
|
+
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
35
|
-
articleId:
|
|
36
|
-
category:
|
|
37
|
-
version:
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveV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W2JJ0sayRDuNchy2S6FQoyIWhsP3oaKTvJGDKCaJxwkFEKk-3antoMtfua9H8V4p2Kkqa_eDbFk8pLYGaYgImLlaia2orGgETkHZIWEMr4WJq1V_7qOg4lYq2BUUuMhWdmK6XUL_Jhmv05TUJ3Rp_Ti4_J2WE4zQqhbfQ",
|
|
35
|
+
articleId: 238,
|
|
36
|
+
category: 846,
|
|
37
|
+
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
orderId:
|
|
40
|
-
|
|
41
|
-
datasheet_status: "
|
|
39
|
+
orderId: 55,
|
|
40
|
+
article_status: "AP",
|
|
41
|
+
datasheet_status: "AP",
|
|
42
|
+
description_status: "AP",
|
|
43
|
+
images_status: "AP",
|
|
42
44
|
prio: "none",
|
|
43
|
-
version:
|
|
44
|
-
description_status: "AA",
|
|
45
|
-
images_status: "AA",
|
|
45
|
+
version: 2,
|
|
46
46
|
brand: null,
|
|
47
|
-
retailerOrder: 0,
|
|
48
|
-
missing: {
|
|
49
|
-
datasheet: null,
|
|
50
|
-
descriptions: null,
|
|
51
|
-
images: null
|
|
52
|
-
},
|
|
53
|
-
services: {
|
|
54
|
-
datasheets: 1,
|
|
55
|
-
descriptions: 1,
|
|
56
|
-
images: 1
|
|
57
|
-
},
|
|
58
47
|
article: {
|
|
59
|
-
category: "
|
|
60
|
-
company_name: "
|
|
48
|
+
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
49
|
+
company_name: "THD Proveedor",
|
|
61
50
|
country: "México",
|
|
62
|
-
id_category: "
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
id_description_facilitator: 52,
|
|
67
|
-
id_images_especialist: 55,
|
|
68
|
-
id_images_facilitator: 53,
|
|
69
|
-
id_order: 96,
|
|
70
|
-
id_article: 55154,
|
|
71
|
-
id_auditor: 37,
|
|
72
|
-
name: "Prueba 12312",
|
|
73
|
-
timestamp: "2022-07-04T22:17:43.000Z",
|
|
74
|
-
upc: "977812"
|
|
51
|
+
id_category: "2143",
|
|
52
|
+
id_article: 55118,
|
|
53
|
+
name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
|
|
54
|
+
upc: "145582"
|
|
75
55
|
},
|
|
76
56
|
retailers: [{
|
|
77
57
|
id: 58,
|
|
@@ -79,69 +59,53 @@ ProviderProductEditionDefault.args = {
|
|
|
79
59
|
}, {
|
|
80
60
|
id: 59,
|
|
81
61
|
name: "The Home Depot Platinum"
|
|
62
|
+
}, {
|
|
63
|
+
id: 60,
|
|
64
|
+
name: "The Home Depot Resizing"
|
|
65
|
+
}, {
|
|
66
|
+
id: 61,
|
|
67
|
+
name: "Home Depot TAB"
|
|
82
68
|
}],
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
images: "AA"
|
|
88
|
-
},
|
|
89
|
-
59: {
|
|
90
|
-
images: "AA"
|
|
91
|
-
}
|
|
69
|
+
services: {
|
|
70
|
+
datasheets: 1,
|
|
71
|
+
descriptions: 1,
|
|
72
|
+
images: 1
|
|
92
73
|
},
|
|
74
|
+
id_article: 55118,
|
|
93
75
|
retailersAvailable: [{
|
|
94
76
|
id: 58,
|
|
95
77
|
name: "The Home Depot Golden"
|
|
96
78
|
}, {
|
|
97
79
|
id: 59,
|
|
98
80
|
name: "The Home Depot Platinum"
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
81
|
+
}, {
|
|
82
|
+
id: 60,
|
|
83
|
+
name: "The Home Depot Resizing"
|
|
84
|
+
}, {
|
|
85
|
+
id: 61,
|
|
86
|
+
name: "Home Depot TAB"
|
|
87
|
+
}]
|
|
104
88
|
},
|
|
105
89
|
productToEdit: {
|
|
106
|
-
ArticleId:
|
|
107
|
-
idCategory: "
|
|
90
|
+
ArticleId: 55118,
|
|
91
|
+
idCategory: "2143",
|
|
108
92
|
product: {
|
|
109
|
-
orderId:
|
|
110
|
-
|
|
111
|
-
datasheet_status: "
|
|
93
|
+
orderId: 55,
|
|
94
|
+
article_status: "AP",
|
|
95
|
+
datasheet_status: "AP",
|
|
96
|
+
description_status: "AP",
|
|
97
|
+
images_status: "AP",
|
|
112
98
|
prio: "none",
|
|
113
|
-
version:
|
|
114
|
-
description_status: "AA",
|
|
115
|
-
images_status: "AA",
|
|
99
|
+
version: 2,
|
|
116
100
|
brand: null,
|
|
117
|
-
retailerOrder: 0,
|
|
118
|
-
missing: {
|
|
119
|
-
datasheet: null,
|
|
120
|
-
descriptions: null,
|
|
121
|
-
images: null
|
|
122
|
-
},
|
|
123
|
-
services: {
|
|
124
|
-
datasheets: 1,
|
|
125
|
-
descriptions: 1,
|
|
126
|
-
images: 1
|
|
127
|
-
},
|
|
128
101
|
article: {
|
|
129
|
-
category: "
|
|
130
|
-
company_name: "
|
|
102
|
+
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
103
|
+
company_name: "THD Proveedor",
|
|
131
104
|
country: "México",
|
|
132
|
-
id_category: "
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
id_description_facilitator: 52,
|
|
137
|
-
id_images_especialist: 55,
|
|
138
|
-
id_images_facilitator: 53,
|
|
139
|
-
id_order: 96,
|
|
140
|
-
id_article: 55154,
|
|
141
|
-
id_auditor: 37,
|
|
142
|
-
name: "Prueba 12312",
|
|
143
|
-
timestamp: "2022-07-04T22:17:43.000Z",
|
|
144
|
-
upc: "977812"
|
|
105
|
+
id_category: "2143",
|
|
106
|
+
id_article: 55118,
|
|
107
|
+
name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
|
|
108
|
+
upc: "145582"
|
|
145
109
|
},
|
|
146
110
|
retailers: [{
|
|
147
111
|
id: 58,
|
|
@@ -149,33 +113,37 @@ ProviderProductEditionDefault.args = {
|
|
|
149
113
|
}, {
|
|
150
114
|
id: 59,
|
|
151
115
|
name: "The Home Depot Platinum"
|
|
116
|
+
}, {
|
|
117
|
+
id: 60,
|
|
118
|
+
name: "The Home Depot Resizing"
|
|
119
|
+
}, {
|
|
120
|
+
id: 61,
|
|
121
|
+
name: "Home Depot TAB"
|
|
152
122
|
}],
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
images: "AA"
|
|
158
|
-
},
|
|
159
|
-
59: {
|
|
160
|
-
images: "AA"
|
|
161
|
-
}
|
|
123
|
+
services: {
|
|
124
|
+
datasheets: 1,
|
|
125
|
+
descriptions: 1,
|
|
126
|
+
images: 1
|
|
162
127
|
},
|
|
128
|
+
id_article: 55118,
|
|
163
129
|
retailersAvailable: [{
|
|
164
130
|
id: 58,
|
|
165
131
|
name: "The Home Depot Golden"
|
|
166
132
|
}, {
|
|
167
133
|
id: 59,
|
|
168
134
|
name: "The Home Depot Platinum"
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
135
|
+
}, {
|
|
136
|
+
id: 60,
|
|
137
|
+
name: "The Home Depot Resizing"
|
|
138
|
+
}, {
|
|
139
|
+
id: 61,
|
|
140
|
+
name: "Home Depot TAB"
|
|
141
|
+
}]
|
|
174
142
|
}
|
|
175
143
|
},
|
|
176
144
|
location: {
|
|
177
145
|
product: {
|
|
178
|
-
articleId:
|
|
146
|
+
articleId: 109485,
|
|
179
147
|
versionId: 3
|
|
180
148
|
},
|
|
181
149
|
state: {
|
|
@@ -183,36 +151,36 @@ ProviderProductEditionDefault.args = {
|
|
|
183
151
|
}
|
|
184
152
|
},
|
|
185
153
|
user: {
|
|
186
|
-
id_user:
|
|
187
|
-
name: "
|
|
188
|
-
last_name: "
|
|
189
|
-
email: "
|
|
190
|
-
position: "
|
|
154
|
+
id_user: 59,
|
|
155
|
+
name: "The Home",
|
|
156
|
+
last_name: "Depot",
|
|
157
|
+
email: "cadena.ismael@allfreemail.net",
|
|
158
|
+
position: "Admin",
|
|
191
159
|
telephone: "+523111366336",
|
|
192
160
|
country: "México",
|
|
193
|
-
id_company:
|
|
194
|
-
id_cognito: "
|
|
161
|
+
id_company: 7,
|
|
162
|
+
id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
|
|
195
163
|
birth_Date: null,
|
|
196
164
|
about_me: null,
|
|
197
165
|
zip_code: null,
|
|
198
166
|
address: null,
|
|
199
167
|
job: null,
|
|
200
|
-
id_stripe: "
|
|
168
|
+
id_stripe: "",
|
|
201
169
|
id_role: 0,
|
|
202
170
|
active: 1,
|
|
203
171
|
is_retailer: 0,
|
|
204
|
-
email_notify:
|
|
172
|
+
email_notify: 1,
|
|
205
173
|
membership: {
|
|
206
|
-
id:
|
|
207
|
-
start_date: "
|
|
208
|
-
end_date: "
|
|
209
|
-
planID:
|
|
210
|
-
plan: "
|
|
211
|
-
name: "Plan
|
|
212
|
-
user_limit: "
|
|
213
|
-
products_limit: "
|
|
174
|
+
id: 24,
|
|
175
|
+
start_date: "2021-11-23T03:35:50.000Z",
|
|
176
|
+
end_date: "2022-11-23T03:35:50.000Z",
|
|
177
|
+
planID: 9,
|
|
178
|
+
plan: "prod_KtlkzZVGq6bRTO",
|
|
179
|
+
name: "Plan Enterprise Full",
|
|
180
|
+
user_limit: "30",
|
|
181
|
+
products_limit: "10000",
|
|
214
182
|
type: "Enterprise"
|
|
215
183
|
},
|
|
216
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
184
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1656113146885"
|
|
217
185
|
}
|
|
218
186
|
};
|