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
|
@@ -62,7 +62,8 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
62
62
|
var maxLength = maxChar ? maxChar : 999;
|
|
63
63
|
|
|
64
64
|
var getValue = function getValue(value) {
|
|
65
|
-
|
|
65
|
+
console.log(value);
|
|
66
|
+
var temp = value.replace(/\n/gm, "<br>").replace(/\&(nbsp;|amp;)/gm, " ");
|
|
66
67
|
return temp;
|
|
67
68
|
}; //const quillRef = useRef();
|
|
68
69
|
|
|
@@ -74,7 +75,7 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
74
75
|
};
|
|
75
76
|
|
|
76
77
|
var valueFormater = function valueFormater(value) {
|
|
77
|
-
return value.replace(/<\/p><p>/gm, "\n").replace(/<\/?br>|<\/?p>/gm, "").replace(
|
|
78
|
+
return value.replace(/<\/p><p>/gm, "\n").replace(/<\/?br>|<\/?p>/gm, "").replace(/\&(nbsp;|amp;)/gm, " ");
|
|
78
79
|
};
|
|
79
80
|
|
|
80
81
|
var _onChange = function onChange(valueInput, delta, user, h) {
|
|
@@ -82,7 +83,7 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
82
83
|
|
|
83
84
|
try {
|
|
84
85
|
if (h.getLength() - 1 <= maxLength) {
|
|
85
|
-
var unformattedText = valueInput.replace(/<li.*?>/gm, " - ").replace(/<\/li>/gm, "\n").replace(/<\/p><p>/gm, "\n").replaceAll(/<\/?(?!\/?strong).*?>/gm, "").replace(
|
|
86
|
+
var unformattedText = valueInput.replace(/<li.*?>/gm, " - ").replace(/<\/li>/gm, "\n").replace(/<\/p><p>/gm, "\n").replaceAll(/<\/?(?!\/?strong).*?>/gm, "").replace(/\&(nbsp;|amp;)/gm, " ");
|
|
86
87
|
setInputValue(valueInput);
|
|
87
88
|
value = unformattedText;
|
|
88
89
|
} else {
|
|
@@ -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-CA,\n &.status-IE {\n background-color: ", ";\n }\n\n &.status-R,\n &.status-AS {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-ACA {\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"])), _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);
|
|
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-CA,\n &.status-IE {\n background-color: ", ";\n }\n\n &.status-R,\n &.status-AS,\n &.status-PA {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-ACA {\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"])), _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;
|
|
@@ -31,74 +31,130 @@ ProviderProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": true,
|
|
32
32
|
Imágenes: true
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhYmUxODhlMi0yNWIxLTRhMTktODY3Mi0wZDRiYzExYTliZjIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImFiZTE4OGUyLTI1YjEtNGExOS04NjcyLTBkNGJjMTFhOWJmMiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiJiZTE5OWE0ZS1lYTYwLTQwYTktODIwNC02ODZlOWI1ODczMGQiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1OTUzOTczMiwibmFtZSI6IlJldGFpbGVyIEFjYyIsInBob25lX251bWJlciI6Iis1MjMxMTExMTExMTEiLCJleHAiOjE2NTk1NDMzMzIsImlhdCI6MTY1OTUzOTczMiwiZW1haWwiOiJyZXRhaWxlclRoZEBBbGxGcmVlTWFpbC5uZXQifQ.HSIFFKD5jkoRPzh9uxNUnXkkp6IX7iKeOqRePrzin-XlG7KauuoHvv7M-dWGJB_xRg-C1uGIG7gKOFP7oM3BGuVqrlIzs-z3uKNSBz0raq3-tRUHRMKo30HGwdh9Q8X8F9RAEZ0-lpIoTCoMS4ua6OJVG_qPRGJHVF2_mzAxof81oHHj5tv-SC6lrJYc5UqDj97y_e-rGakVyVV7VXeKAJlnmw4y52_WDlbOq3W2e_wI8NuNiiEBYXgWSm5j_rzB4-BuF3nUNheKpimZEn1wTULHLo-Izj_WPdPS1l5yTi9oF09QZht_Te0o3SZliBPKgVcH8cycReoACukbY2BPPQ",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
39
|
+
services: {
|
|
40
|
+
datasheets: 1,
|
|
41
|
+
descriptions: 1,
|
|
42
|
+
images: 1
|
|
43
|
+
},
|
|
44
|
+
orderId: 2437,
|
|
45
|
+
status: "AS",
|
|
46
|
+
datasheet_status: "AS",
|
|
47
|
+
prio: "none",
|
|
48
|
+
version: 2,
|
|
49
|
+
description_status: "AS",
|
|
50
|
+
images_status: "AS",
|
|
51
|
+
article: {
|
|
52
|
+
id_article: 78748,
|
|
53
|
+
id_category: "684",
|
|
54
|
+
name: "TP COLG Luminous White Lovers Wine 4x70g",
|
|
55
|
+
upc: "7509546681603",
|
|
56
|
+
timestamp: "2022-08-02T14:31:07.000Z",
|
|
57
|
+
id_user: 1258,
|
|
58
|
+
status: "NULL",
|
|
59
|
+
active: 1,
|
|
60
|
+
company_id: 226,
|
|
61
|
+
SKU: null,
|
|
62
|
+
Descripcion: null,
|
|
63
|
+
Proveedor: null,
|
|
64
|
+
id_proveedor: 0,
|
|
65
|
+
company_name: "COLGATE PALMOLIVE S.A. DE C.V.",
|
|
66
|
+
country: null,
|
|
67
|
+
id_order: 2437,
|
|
68
|
+
id_datasheet_especialist: 405,
|
|
69
|
+
id_datasheet_facilitator: 158,
|
|
70
|
+
id_description_especialist: 405,
|
|
71
|
+
id_description_facilitator: 158,
|
|
72
|
+
id_images_especialist: 381,
|
|
73
|
+
id_images_facilitator: 160,
|
|
74
|
+
id_auditor: 9,
|
|
75
|
+
id_recepcionist: null,
|
|
76
|
+
category: "Salud y Belleza|Cuidado Bucal|Pastas Dentales y Aseo Bucal",
|
|
77
|
+
missingAttributes: 47,
|
|
78
|
+
missingDescriptions: 2,
|
|
79
|
+
missingImages: 4
|
|
80
|
+
},
|
|
81
|
+
retailers: [{
|
|
82
|
+
id: 3,
|
|
83
|
+
name: "Sam´s Club",
|
|
84
|
+
country: "México",
|
|
85
|
+
id_region: 1,
|
|
86
|
+
active: 1
|
|
87
|
+
}, {
|
|
88
|
+
id: 19,
|
|
89
|
+
name: "Costco",
|
|
52
90
|
country: "México",
|
|
53
91
|
id_region: 1,
|
|
54
92
|
active: 1
|
|
55
93
|
}],
|
|
56
|
-
|
|
94
|
+
country: null,
|
|
95
|
+
upc: "7509546681603"
|
|
57
96
|
},
|
|
58
97
|
productToEdit: {
|
|
59
|
-
idCategory: "
|
|
60
|
-
ArticleId:
|
|
98
|
+
idCategory: "684",
|
|
99
|
+
ArticleId: 78748,
|
|
61
100
|
product: [{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
101
|
+
services: {
|
|
102
|
+
datasheets: 1,
|
|
103
|
+
descriptions: 1,
|
|
104
|
+
images: 1
|
|
105
|
+
},
|
|
106
|
+
orderId: 2437,
|
|
107
|
+
status: "AS",
|
|
108
|
+
datasheet_status: "AS",
|
|
66
109
|
prio: "none",
|
|
67
110
|
version: 2,
|
|
68
|
-
description_status: "
|
|
69
|
-
images_status: "
|
|
70
|
-
brand: null,
|
|
71
|
-
missing: {
|
|
72
|
-
datasheet: 0,
|
|
73
|
-
descriptions: 0,
|
|
74
|
-
images: 0
|
|
75
|
-
},
|
|
111
|
+
description_status: "AS",
|
|
112
|
+
images_status: "AS",
|
|
76
113
|
article: {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
114
|
+
id_article: 78748,
|
|
115
|
+
id_category: "684",
|
|
116
|
+
name: "TP COLG Luminous White Lovers Wine 4x70g",
|
|
117
|
+
upc: "7509546681603",
|
|
118
|
+
timestamp: "2022-08-02T14:31:07.000Z",
|
|
119
|
+
id_user: 1258,
|
|
120
|
+
status: "NULL",
|
|
121
|
+
active: 1,
|
|
122
|
+
company_id: 226,
|
|
123
|
+
SKU: null,
|
|
124
|
+
Descripcion: null,
|
|
125
|
+
Proveedor: null,
|
|
126
|
+
id_proveedor: 0,
|
|
127
|
+
company_name: "COLGATE PALMOLIVE S.A. DE C.V.",
|
|
128
|
+
country: null,
|
|
129
|
+
id_order: 2437,
|
|
130
|
+
id_datasheet_especialist: 405,
|
|
131
|
+
id_datasheet_facilitator: 158,
|
|
132
|
+
id_description_especialist: 405,
|
|
133
|
+
id_description_facilitator: 158,
|
|
134
|
+
id_images_especialist: 381,
|
|
135
|
+
id_images_facilitator: 160,
|
|
136
|
+
id_auditor: 9,
|
|
137
|
+
id_recepcionist: null,
|
|
138
|
+
category: "Salud y Belleza|Cuidado Bucal|Pastas Dentales y Aseo Bucal",
|
|
139
|
+
missingAttributes: 47,
|
|
140
|
+
missingDescriptions: 2,
|
|
141
|
+
missingImages: 4
|
|
84
142
|
},
|
|
85
143
|
retailers: [{
|
|
86
|
-
id:
|
|
87
|
-
name: "
|
|
144
|
+
id: 3,
|
|
145
|
+
name: "Sam´s Club",
|
|
146
|
+
country: "México",
|
|
147
|
+
id_region: 1,
|
|
148
|
+
active: 1
|
|
149
|
+
}, {
|
|
150
|
+
id: 19,
|
|
151
|
+
name: "Costco",
|
|
152
|
+
country: "México",
|
|
153
|
+
id_region: 1,
|
|
154
|
+
active: 1
|
|
88
155
|
}],
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
descriptions: 0,
|
|
92
|
-
images: 1
|
|
93
|
-
},
|
|
94
|
-
checked: false,
|
|
95
|
-
retailersAvailable: [{
|
|
96
|
-
id: 60,
|
|
97
|
-
name: "The Home Depot Resizing"
|
|
98
|
-
}],
|
|
99
|
-
id_article: 69031,
|
|
100
|
-
categoryName: "RESIZING|RESIZING|RESIZING",
|
|
101
|
-
version_status: "AC"
|
|
156
|
+
country: null,
|
|
157
|
+
upc: "7509546681603"
|
|
102
158
|
}]
|
|
103
159
|
},
|
|
104
160
|
location: {
|
|
@@ -107,29 +163,29 @@ ProviderProductEditionDefault.args = {
|
|
|
107
163
|
}
|
|
108
164
|
},
|
|
109
165
|
user: {
|
|
110
|
-
id_user:
|
|
111
|
-
name: "
|
|
112
|
-
last_name: "
|
|
113
|
-
email: "
|
|
114
|
-
position: "
|
|
115
|
-
telephone:
|
|
166
|
+
id_user: 460,
|
|
167
|
+
name: "Ismael",
|
|
168
|
+
last_name: "López",
|
|
169
|
+
email: "ilopez@contentoh.com",
|
|
170
|
+
position: "Desarrollador",
|
|
171
|
+
telephone: null,
|
|
116
172
|
country: "México",
|
|
117
|
-
id_company:
|
|
118
|
-
id_cognito: "
|
|
119
|
-
birth_Date:
|
|
173
|
+
id_company: 254,
|
|
174
|
+
id_cognito: "9d0cc5c8-a89e-4bdd-9e2d-358a01cc9a62",
|
|
175
|
+
birth_Date: "1997-08-15T00:00:00.000Z",
|
|
120
176
|
about_me: null,
|
|
121
177
|
zip_code: null,
|
|
122
178
|
address: null,
|
|
123
179
|
job: null,
|
|
124
180
|
id_stripe: null,
|
|
125
|
-
id_role:
|
|
181
|
+
id_role: 1,
|
|
126
182
|
active: 1,
|
|
127
183
|
is_retailer: 0,
|
|
128
|
-
email_notify:
|
|
184
|
+
email_notify: null,
|
|
129
185
|
membership: {
|
|
130
|
-
id:
|
|
131
|
-
start_date: "2022-
|
|
132
|
-
end_date: "2023-
|
|
186
|
+
id: 750,
|
|
187
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
188
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
133
189
|
planID: 6,
|
|
134
190
|
plan: "prod_KvGd6YSTJyR3AP",
|
|
135
191
|
name: "Plan Small",
|
|
@@ -137,20 +193,37 @@ ProviderProductEditionDefault.args = {
|
|
|
137
193
|
products_limit: "1000",
|
|
138
194
|
type: "Enterprise"
|
|
139
195
|
},
|
|
140
|
-
src: "https://content-management-profile-prod.s3.amazonaws.com/id-
|
|
196
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-460/460.png?1659303790385"
|
|
141
197
|
},
|
|
142
198
|
company: {
|
|
143
|
-
id_company:
|
|
144
|
-
trade_name: "
|
|
145
|
-
company_name: "
|
|
146
|
-
rfc:
|
|
147
|
-
adress: "",
|
|
148
|
-
about_company:
|
|
149
|
-
telephone:
|
|
150
|
-
web_site:
|
|
151
|
-
zip_code:
|
|
199
|
+
id_company: 817,
|
|
200
|
+
trade_name: "Retailer acc",
|
|
201
|
+
company_name: "Retailer acc",
|
|
202
|
+
rfc: "ASER12345",
|
|
203
|
+
adress: "Av. Insurgentes",
|
|
204
|
+
about_company: null,
|
|
205
|
+
telephone: null,
|
|
206
|
+
web_site: null,
|
|
207
|
+
zip_code: null,
|
|
152
208
|
email: null,
|
|
153
|
-
social_link:
|
|
154
|
-
is_retailer:
|
|
209
|
+
social_link: null,
|
|
210
|
+
is_retailer: 1,
|
|
211
|
+
retailers: [{
|
|
212
|
+
id: 58,
|
|
213
|
+
name: "The Home Depot Golden",
|
|
214
|
+
country: "México"
|
|
215
|
+
}, {
|
|
216
|
+
id: 59,
|
|
217
|
+
name: "The Home Depot Platinum",
|
|
218
|
+
country: "México"
|
|
219
|
+
}, {
|
|
220
|
+
id: 60,
|
|
221
|
+
name: "The Home Depot Resizing",
|
|
222
|
+
country: "México"
|
|
223
|
+
}, {
|
|
224
|
+
id: 61,
|
|
225
|
+
name: "Home Depot TAB",
|
|
226
|
+
country: "México"
|
|
227
|
+
}]
|
|
155
228
|
}
|
|
156
229
|
};
|
|
@@ -1820,7 +1820,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullTabsMenu.FullTabsMenu, {
|
|
1822
1822
|
tabsSections: tabsSections,
|
|
1823
|
-
status: activeRetailer.id && retailerStatus ? retailerStatus[activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id][getConcept(activeTab)] || "NS" : "-",
|
|
1823
|
+
status: activeRetailer !== null && activeRetailer !== void 0 && activeRetailer.id && retailerStatus && retailerStatus[activeRetailer.id] ? retailerStatus[activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id][getConcept(activeTab)] || "NS" : "-",
|
|
1824
1824
|
activeTab: activeTab,
|
|
1825
1825
|
setActiveTab: setActiveTab,
|
|
1826
1826
|
setImageLayout: setImageLayout,
|
|
@@ -31,85 +31,59 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIyM2EzZjQ5Ni00ZTM4LTRlMTItOWJmNS03ZjkwYjc3YTJmMzUiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjIzYTNmNDk2LTRlMzgtNGUxMi05YmY1LTdmOTBiNzdhMmYzNSIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiJiYjY1ODZhYS02MzQ5LTQ2ZDgtOTk1Ni00ZGQ3NGEzY2FmODYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1OTY0OTAyOCwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY1OTY1MjYyOCwiaWF0IjoxNjU5NjQ5MDI4LCJlbWFpbCI6ImxhZGlib2g3ODVAbWkxNjYuY29tIn0.OWVf7QX5rQpQAPmqhwGG14kDJhuG051MjYdv6TVMoEi5LrwmamTk8RJiDqgLTOZOgadlQoAHq27w5LnbYqDfQRqJYfj0kh0qTg2lA7xIZCCd-ljvvMtW6XGmd2_XoEhGkrjnZkniBiOaYSpNW_qTV0FiuWNh4enI7k4kl3x48QEPG9Jd7-4q4I21xVEBD1hy_TYhKQzS7H0FP487W89qOMZhOfmyVQkEQjjuzfedJTunm5SmF1AVA7Dvt2bcBMQOPrcB3c5veUtsxf7ta9yS9wGlb8vfcizczNaN5OLATNjdfHMnEUdOYiEBmnOXzcsnnz4mykearBqYEwp3-3XijA",
|
|
35
35
|
productSelected: {
|
|
36
36
|
services: {
|
|
37
|
-
datasheets:
|
|
38
|
-
descriptions:
|
|
37
|
+
datasheets: 1,
|
|
38
|
+
descriptions: 1,
|
|
39
39
|
images: 1
|
|
40
40
|
},
|
|
41
|
-
orderId:
|
|
42
|
-
status: "
|
|
43
|
-
datasheet_status: "
|
|
41
|
+
orderId: 2012,
|
|
42
|
+
status: "ACA",
|
|
43
|
+
datasheet_status: "ACA",
|
|
44
44
|
prio: "none",
|
|
45
45
|
version: 2,
|
|
46
|
-
description_status: "
|
|
47
|
-
images_status: "
|
|
46
|
+
description_status: "ACA",
|
|
47
|
+
images_status: "ACA",
|
|
48
48
|
article: {
|
|
49
|
-
id_article:
|
|
50
|
-
id_category: "
|
|
51
|
-
name: "
|
|
52
|
-
upc: "
|
|
53
|
-
timestamp: "2022-
|
|
54
|
-
id_user:
|
|
49
|
+
id_article: 77106,
|
|
50
|
+
id_category: "2898",
|
|
51
|
+
name: "INFLABLE CATRINA 2.13M HALLOWEEN",
|
|
52
|
+
upc: "163556",
|
|
53
|
+
timestamp: "2022-07-07T17:01:17.000Z",
|
|
54
|
+
id_user: 1195,
|
|
55
55
|
status: "NULL",
|
|
56
56
|
active: 1,
|
|
57
|
-
company_id:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
company_id: 657,
|
|
58
|
+
SKU: null,
|
|
59
|
+
Descripcion: null,
|
|
60
|
+
Proveedor: null,
|
|
61
|
+
id_proveedor: 0,
|
|
62
|
+
company_name: "",
|
|
63
|
+
country: null,
|
|
64
|
+
id_order: 2012,
|
|
65
|
+
id_datasheet_especialist: 1248,
|
|
66
|
+
id_datasheet_facilitator: 1252,
|
|
67
|
+
id_description_especialist: 334,
|
|
68
|
+
id_description_facilitator: 1252,
|
|
69
|
+
id_images_especialist: 1250,
|
|
70
|
+
id_images_facilitator: 1286,
|
|
71
|
+
id_auditor: 1254,
|
|
68
72
|
id_recepcionist: null,
|
|
69
|
-
category: "
|
|
70
|
-
missingAttributes:
|
|
73
|
+
category: "Hallowen|Decoración e Inflables|Decoración e Inflables",
|
|
74
|
+
missingAttributes: 3,
|
|
71
75
|
missingDescriptions: 0,
|
|
72
|
-
missingImages:
|
|
76
|
+
missingImages: -2
|
|
73
77
|
},
|
|
74
78
|
retailers: [{
|
|
75
|
-
id:
|
|
76
|
-
name: "
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}, {
|
|
81
|
-
id: 5,
|
|
82
|
-
name: "Chedraui"
|
|
83
|
-
}, {
|
|
84
|
-
id: 6,
|
|
85
|
-
name: "HEB"
|
|
86
|
-
}, {
|
|
87
|
-
id: 12,
|
|
88
|
-
name: "La Comer"
|
|
89
|
-
}, {
|
|
90
|
-
id: 13,
|
|
91
|
-
name: "Soriana"
|
|
92
|
-
}, {
|
|
93
|
-
id: 17,
|
|
94
|
-
name: "Genérico"
|
|
95
|
-
}, {
|
|
96
|
-
id: 20,
|
|
97
|
-
name: "Cornershop"
|
|
98
|
-
}, {
|
|
99
|
-
id: 26,
|
|
100
|
-
name: "Mercado Libre"
|
|
101
|
-
}, {
|
|
102
|
-
id: 34,
|
|
103
|
-
name: "San Pablo"
|
|
104
|
-
}, {
|
|
105
|
-
id: 38,
|
|
106
|
-
name: "Del Sol"
|
|
107
|
-
}, {
|
|
108
|
-
id: 64,
|
|
109
|
-
name: "Cali"
|
|
79
|
+
id: 58,
|
|
80
|
+
name: "The Home Depot Golden",
|
|
81
|
+
country: "México",
|
|
82
|
+
id_region: 1,
|
|
83
|
+
active: 1
|
|
110
84
|
}],
|
|
111
|
-
country:
|
|
112
|
-
upc: "
|
|
85
|
+
country: null,
|
|
86
|
+
upc: "163556"
|
|
113
87
|
},
|
|
114
88
|
location: {
|
|
115
89
|
product: {
|
|
@@ -118,15 +92,15 @@ RetailerProductEditionDefault.args = {
|
|
|
118
92
|
}
|
|
119
93
|
},
|
|
120
94
|
user: {
|
|
121
|
-
id_user:
|
|
122
|
-
name: "
|
|
123
|
-
last_name: "
|
|
124
|
-
email: "
|
|
125
|
-
position: "
|
|
95
|
+
id_user: 425,
|
|
96
|
+
name: "Auditor QA",
|
|
97
|
+
last_name: " ",
|
|
98
|
+
email: "ladiboh785@mi166.com",
|
|
99
|
+
position: "Tester",
|
|
126
100
|
telephone: null,
|
|
127
|
-
country:
|
|
128
|
-
id_company:
|
|
129
|
-
id_cognito: "
|
|
101
|
+
country: null,
|
|
102
|
+
id_company: 254,
|
|
103
|
+
id_cognito: "23a3f496-4e38-4e12-9bf5-7f90b77a2f35",
|
|
130
104
|
birth_Date: null,
|
|
131
105
|
about_me: null,
|
|
132
106
|
zip_code: null,
|
|
@@ -136,18 +110,18 @@ RetailerProductEditionDefault.args = {
|
|
|
136
110
|
id_role: 1,
|
|
137
111
|
active: 1,
|
|
138
112
|
is_retailer: 0,
|
|
139
|
-
email_notify:
|
|
113
|
+
email_notify: null,
|
|
140
114
|
membership: {
|
|
141
|
-
id:
|
|
142
|
-
start_date: "
|
|
143
|
-
end_date: "
|
|
144
|
-
planID:
|
|
145
|
-
plan: "
|
|
146
|
-
name: "Plan
|
|
147
|
-
user_limit: "
|
|
148
|
-
products_limit: "
|
|
149
|
-
type: "
|
|
115
|
+
id: 750,
|
|
116
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
117
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
118
|
+
planID: 6,
|
|
119
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
120
|
+
name: "Plan Small",
|
|
121
|
+
user_limit: "10",
|
|
122
|
+
products_limit: "1000",
|
|
123
|
+
type: "Enterprise"
|
|
150
124
|
},
|
|
151
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
125
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1659649029658"
|
|
152
126
|
}
|
|
153
127
|
};
|
|
@@ -1092,7 +1092,9 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1092
1092
|
case 7:
|
|
1093
1093
|
case 8:
|
|
1094
1094
|
return statusArray.includes(srvActive) && (["RA", "RC"].includes(product === null || product === void 0 ? void 0 : product.status) || srv.filter(function (serv) {
|
|
1095
|
-
|
|
1095
|
+
var _serv$status;
|
|
1096
|
+
|
|
1097
|
+
return statusArray.includes((_serv$status = serv.status) === null || _serv$status === void 0 ? void 0 : _serv$status.replace(/.*\//, ""));
|
|
1096
1098
|
}).length === srv.length);
|
|
1097
1099
|
|
|
1098
1100
|
case 4:
|
package/package.json
CHANGED
|
@@ -22,10 +22,8 @@ export const InputFormatter = ({
|
|
|
22
22
|
const maxLength = maxChar ? maxChar : 999;
|
|
23
23
|
|
|
24
24
|
const getValue = (value) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.replace(/&/gm, "&")
|
|
28
|
-
.replace(/ /gm, " ");
|
|
25
|
+
console.log(value);
|
|
26
|
+
let temp = value.replace(/\n/gm, "<br>").replace(/\&(nbsp;|amp;)/gm, " ");
|
|
29
27
|
return temp;
|
|
30
28
|
};
|
|
31
29
|
|
|
@@ -40,8 +38,7 @@ export const InputFormatter = ({
|
|
|
40
38
|
return value
|
|
41
39
|
.replace(/<\/p><p>/gm, "\n")
|
|
42
40
|
.replace(/<\/?br>|<\/?p>/gm, "")
|
|
43
|
-
.replace(
|
|
44
|
-
.replace(/ /gm, " ");
|
|
41
|
+
.replace(/\&(nbsp;|amp;)/gm, " ");
|
|
45
42
|
};
|
|
46
43
|
|
|
47
44
|
const onChange = (valueInput, delta, user, h) => {
|
|
@@ -53,7 +50,7 @@ export const InputFormatter = ({
|
|
|
53
50
|
.replace(/<\/li>/gm, "\n")
|
|
54
51
|
.replace(/<\/p><p>/gm, "\n")
|
|
55
52
|
.replaceAll(/<\/?(?!\/?strong).*?>/gm, "")
|
|
56
|
-
.replace(
|
|
53
|
+
.replace(/\&(nbsp;|amp;)/gm, " ");
|
|
57
54
|
setInputValue(valueInput);
|
|
58
55
|
value = unformattedText;
|
|
59
56
|
} else {
|