contentoh-components-library 21.1.39 → 21.1.40
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 +2 -17
- 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 +119 -87
- package/dist/components/pages/ProviderProductEdition/index.js +380 -328
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +86 -41
- package/dist/components/pages/RetailerProductEdition/index.js +210 -197
- package/dist/global-files/data.js +10 -9
- package/dist/index.js +0 -13
- package/package.json +1 -1
- package/src/components/atoms/StatusTag/index.js +2 -12
- 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 +116 -92
- package/src/components/pages/ProviderProductEdition/index.js +218 -208
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +87 -38
- package/src/components/pages/RetailerProductEdition/index.js +140 -165
- package/src/global-files/data.js +10 -9
- package/src/index.js +0 -1
- package/dist/components/atoms/Percent/Percent.stories.js +0 -39
- package/dist/components/atoms/Percent/index.js +0 -39
- package/dist/components/atoms/Percent/styles.js +0 -20
- package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
- package/dist/components/molecules/TextAndGradient/index.js +0 -36
- package/dist/components/molecules/TextAndGradient/styles.js +0 -18
- 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
|
@@ -18,27 +18,12 @@ var StatusTag = function StatusTag(_ref) {
|
|
|
18
18
|
case "COMPLETED":
|
|
19
19
|
return "C";
|
|
20
20
|
|
|
21
|
-
case "RECEPTION":
|
|
22
|
-
return "Pr";
|
|
23
|
-
|
|
24
21
|
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";
|
|
22
|
+
return "--";
|
|
35
23
|
|
|
36
24
|
case "APPROVED":
|
|
37
25
|
return "Ap";
|
|
38
26
|
|
|
39
|
-
case "VALIDATING":
|
|
40
|
-
return "V";
|
|
41
|
-
|
|
42
27
|
case "PAID_OUT":
|
|
43
28
|
return "Po";
|
|
44
29
|
|
|
@@ -48,7 +33,7 @@ var StatusTag = function StatusTag(_ref) {
|
|
|
48
33
|
};
|
|
49
34
|
|
|
50
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
51
|
-
className: "status-".concat(getShortStatus(statusType), " ").concat(ovalForm && "oval-form"),
|
|
36
|
+
className: "status-".concat(getShortStatus(statusType === null || statusType === void 0 ? void 0 : statusType.replace(/\/.*/, "")), " ").concat(ovalForm && "oval-form"),
|
|
52
37
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
53
38
|
children: getShortStatus(statusType)
|
|
54
39
|
})
|
|
@@ -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-CA,\n &.status-IE {\n background-color: ", ";\n }\n\n &.status-R {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-ACA,\n &.status-AC {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RC,\n &.status-RP,\n &.status-RCA {\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 &.delThis {\n color: red;\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 : "R");
|
|
51
51
|
} else element.push("NA");
|
|
52
52
|
|
|
53
53
|
rt["services"] = element;
|
|
@@ -28,30 +28,50 @@ 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": true,
|
|
32
|
+
Imágenes: true
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
35
|
-
articleId:
|
|
36
|
-
category:
|
|
37
|
-
version:
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI2M2NhNWQ3ZS1hZTllLTQ3MWYtYmMxOS04NzVmNjM0NzUzNDIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1Njk3MjQxOSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NTY5NzYwMTksImlhdCI6MTY1Njk3MjQxOSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.e9mij3RmJhlQgtHb2EaddPhLyOu5aQoM5A_H7sIPxHdRVy3r_eNsBB3G-oWt36051JCIs1Hr9ViCgBR_6dl4KHcIPi22xvzZoWzH13ZyKq7plG1I0Xa1b5Uw3G1sUdQTuytYLHoSu23I36Q2ItjETAkxd1-4U6dIEF-4IkGRDdMuTwy8-zkOjZn3AHw0hl0WvbbUZBbE7j0CBdZM-KXHlUIuO9bLaoOM_cKLZaMeNzxJEAdAOIRRdiS3BPSjSPMzqzzLSnFVd6gUtjVbAWTDMh29t44v9T4smGrT7GdbSQz8q8B8M1jsHoOIvDDQJjvJGkqu63B-d5_G2vf2u_LfcQ",
|
|
35
|
+
articleId: 55154,
|
|
36
|
+
category: 2568,
|
|
37
|
+
version: 3,
|
|
38
38
|
productSelected: {
|
|
39
|
-
orderId:
|
|
40
|
-
|
|
41
|
-
datasheet_status: "
|
|
42
|
-
description_status: "AP",
|
|
43
|
-
images_status: "AP",
|
|
39
|
+
orderId: 96,
|
|
40
|
+
status: "AA",
|
|
41
|
+
datasheet_status: "AA",
|
|
44
42
|
prio: "none",
|
|
45
|
-
version:
|
|
43
|
+
version: 3,
|
|
44
|
+
description_status: "AA",
|
|
45
|
+
images_status: "AA",
|
|
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
|
+
},
|
|
47
58
|
article: {
|
|
48
|
-
category: "
|
|
49
|
-
company_name: "
|
|
59
|
+
category: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
|
|
60
|
+
company_name: "COMPANY DEV",
|
|
50
61
|
country: "México",
|
|
51
|
-
id_category: "
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
62
|
+
id_category: "2568",
|
|
63
|
+
id_datasheet_especialist: 54,
|
|
64
|
+
id_datasheet_facilitator: 52,
|
|
65
|
+
id_description_especialist: 54,
|
|
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"
|
|
55
75
|
},
|
|
56
76
|
retailers: [{
|
|
57
77
|
id: 58,
|
|
@@ -59,53 +79,69 @@ ProviderProductEditionDefault.args = {
|
|
|
59
79
|
}, {
|
|
60
80
|
id: 59,
|
|
61
81
|
name: "The Home Depot Platinum"
|
|
62
|
-
}, {
|
|
63
|
-
id: 60,
|
|
64
|
-
name: "The Home Depot Resizing"
|
|
65
|
-
}, {
|
|
66
|
-
id: 61,
|
|
67
|
-
name: "Home Depot TAB"
|
|
68
82
|
}],
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
83
|
+
statusByRetailer: {
|
|
84
|
+
58: {
|
|
85
|
+
datasheet: "AA",
|
|
86
|
+
description: "AA",
|
|
87
|
+
images: "AA"
|
|
88
|
+
},
|
|
89
|
+
59: {
|
|
90
|
+
images: "AA"
|
|
91
|
+
}
|
|
73
92
|
},
|
|
74
|
-
id_article: 55118,
|
|
75
93
|
retailersAvailable: [{
|
|
76
94
|
id: 58,
|
|
77
95
|
name: "The Home Depot Golden"
|
|
78
96
|
}, {
|
|
79
97
|
id: 59,
|
|
80
98
|
name: "The Home Depot Platinum"
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
name: "Home Depot TAB"
|
|
87
|
-
}]
|
|
99
|
+
}],
|
|
100
|
+
categoryName: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
|
|
101
|
+
upc: "977812",
|
|
102
|
+
id_article: 55154,
|
|
103
|
+
id_order: 96
|
|
88
104
|
},
|
|
89
105
|
productToEdit: {
|
|
90
|
-
ArticleId:
|
|
91
|
-
idCategory: "
|
|
106
|
+
ArticleId: 55154,
|
|
107
|
+
idCategory: "2568",
|
|
92
108
|
product: {
|
|
93
|
-
orderId:
|
|
94
|
-
|
|
95
|
-
datasheet_status: "
|
|
96
|
-
description_status: "AP",
|
|
97
|
-
images_status: "AP",
|
|
109
|
+
orderId: 96,
|
|
110
|
+
status: "AA",
|
|
111
|
+
datasheet_status: "AA",
|
|
98
112
|
prio: "none",
|
|
99
|
-
version:
|
|
113
|
+
version: 3,
|
|
114
|
+
description_status: "AA",
|
|
115
|
+
images_status: "AA",
|
|
100
116
|
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
|
+
},
|
|
101
128
|
article: {
|
|
102
|
-
category: "
|
|
103
|
-
company_name: "
|
|
129
|
+
category: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
|
|
130
|
+
company_name: "COMPANY DEV",
|
|
104
131
|
country: "México",
|
|
105
|
-
id_category: "
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
132
|
+
id_category: "2568",
|
|
133
|
+
id_datasheet_especialist: 54,
|
|
134
|
+
id_datasheet_facilitator: 52,
|
|
135
|
+
id_description_especialist: 54,
|
|
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"
|
|
109
145
|
},
|
|
110
146
|
retailers: [{
|
|
111
147
|
id: 58,
|
|
@@ -113,37 +149,33 @@ ProviderProductEditionDefault.args = {
|
|
|
113
149
|
}, {
|
|
114
150
|
id: 59,
|
|
115
151
|
name: "The Home Depot Platinum"
|
|
116
|
-
}, {
|
|
117
|
-
id: 60,
|
|
118
|
-
name: "The Home Depot Resizing"
|
|
119
|
-
}, {
|
|
120
|
-
id: 61,
|
|
121
|
-
name: "Home Depot TAB"
|
|
122
152
|
}],
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
153
|
+
statusByRetailer: {
|
|
154
|
+
58: {
|
|
155
|
+
datasheet: "AA",
|
|
156
|
+
description: "AA",
|
|
157
|
+
images: "AA"
|
|
158
|
+
},
|
|
159
|
+
59: {
|
|
160
|
+
images: "AA"
|
|
161
|
+
}
|
|
127
162
|
},
|
|
128
|
-
id_article: 55118,
|
|
129
163
|
retailersAvailable: [{
|
|
130
164
|
id: 58,
|
|
131
165
|
name: "The Home Depot Golden"
|
|
132
166
|
}, {
|
|
133
167
|
id: 59,
|
|
134
168
|
name: "The Home Depot Platinum"
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
name: "Home Depot TAB"
|
|
141
|
-
}]
|
|
169
|
+
}],
|
|
170
|
+
categoryName: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
|
|
171
|
+
upc: "977812",
|
|
172
|
+
id_article: 55154,
|
|
173
|
+
id_order: 96
|
|
142
174
|
}
|
|
143
175
|
},
|
|
144
176
|
location: {
|
|
145
177
|
product: {
|
|
146
|
-
articleId:
|
|
178
|
+
articleId: 55157,
|
|
147
179
|
versionId: 3
|
|
148
180
|
},
|
|
149
181
|
state: {
|
|
@@ -151,36 +183,36 @@ ProviderProductEditionDefault.args = {
|
|
|
151
183
|
}
|
|
152
184
|
},
|
|
153
185
|
user: {
|
|
154
|
-
id_user:
|
|
155
|
-
name: "
|
|
156
|
-
last_name: "
|
|
157
|
-
email: "
|
|
158
|
-
position: "Admin",
|
|
186
|
+
id_user: 28,
|
|
187
|
+
name: "Proveedor",
|
|
188
|
+
last_name: "Colgate",
|
|
189
|
+
email: "ilopez@contentoh.com",
|
|
190
|
+
position: "Prueba Admin",
|
|
159
191
|
telephone: "+523111366336",
|
|
160
192
|
country: "México",
|
|
161
|
-
id_company:
|
|
162
|
-
id_cognito: "
|
|
193
|
+
id_company: 1,
|
|
194
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
163
195
|
birth_Date: null,
|
|
164
196
|
about_me: null,
|
|
165
197
|
zip_code: null,
|
|
166
198
|
address: null,
|
|
167
199
|
job: null,
|
|
168
|
-
id_stripe: "",
|
|
200
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
169
201
|
id_role: 0,
|
|
170
202
|
active: 1,
|
|
171
203
|
is_retailer: 0,
|
|
172
|
-
email_notify:
|
|
204
|
+
email_notify: 0,
|
|
173
205
|
membership: {
|
|
174
|
-
id:
|
|
175
|
-
start_date: "
|
|
176
|
-
end_date: "
|
|
177
|
-
planID:
|
|
178
|
-
plan: "
|
|
179
|
-
name: "Plan
|
|
180
|
-
user_limit: "
|
|
181
|
-
products_limit: "
|
|
206
|
+
id: 38,
|
|
207
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
208
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
209
|
+
planID: 8,
|
|
210
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
211
|
+
name: "Plan Pro",
|
|
212
|
+
user_limit: "20",
|
|
213
|
+
products_limit: "5000",
|
|
182
214
|
type: "Enterprise"
|
|
183
215
|
},
|
|
184
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
216
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656972421501"
|
|
185
217
|
}
|
|
186
218
|
};
|