contentoh-components-library 21.0.90 → 21.0.94
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/molecules/AvatarAndValidation/index.js +3 -2
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +37 -48
- package/dist/components/pages/ProviderProductEdition/index.js +18 -16
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +29 -31
- package/dist/components/pages/RetailerProductEdition/index.js +172 -188
- package/package.json +1 -1
- package/src/components/molecules/AvatarAndValidation/index.js +4 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +39 -52
- package/src/components/pages/ProviderProductEdition/index.js +16 -14
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +27 -30
- package/src/components/pages/RetailerProductEdition/index.js +17 -15
|
@@ -62,8 +62,9 @@ var AvatarAndValidation = function AvatarAndValidation(_ref) {
|
|
|
62
62
|
setActiveRetailer: setActiveRetailer
|
|
63
63
|
}), showValidationButtons && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
64
64
|
buttonType: "circular-button ".concat(buttonType),
|
|
65
|
-
onClick: function onClick() {
|
|
66
|
-
|
|
65
|
+
onClick: function onClick(e) {
|
|
66
|
+
e.stopPropagation();
|
|
67
|
+
setShowValidationPanel(true);
|
|
67
68
|
}
|
|
68
69
|
})]
|
|
69
70
|
}), showValidationPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ValidationPanel.ValidationPanel, {
|
|
@@ -36,63 +36,52 @@ ProviderProductEditionDefault.args = {
|
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
id_category: "684",
|
|
41
|
-
status: "RECEPTION",
|
|
42
|
-
datasheet_status: null,
|
|
43
|
-
prio: "none",
|
|
44
|
-
version: 4,
|
|
45
|
-
description_status: null,
|
|
46
|
-
images_status: null,
|
|
39
|
+
version: 1,
|
|
47
40
|
brand: null,
|
|
48
41
|
missing: {
|
|
49
|
-
datasheet:
|
|
50
|
-
descriptions:
|
|
51
|
-
images:
|
|
42
|
+
datasheet: null,
|
|
43
|
+
descriptions: null,
|
|
44
|
+
images: null
|
|
52
45
|
},
|
|
53
46
|
article: {
|
|
54
|
-
category: "
|
|
55
|
-
company_name: "
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
upc: "
|
|
47
|
+
category: "ORGANIZADORES Y CLOSETS|ACCESORIOS DE LAVANDERÍA|BURROS DE PLANCHAR",
|
|
48
|
+
company_name: "BROOKLITE MEXICO S DE RL DE CV",
|
|
49
|
+
company_id: 409,
|
|
50
|
+
id_category: "2520",
|
|
51
|
+
id_article: 1,
|
|
52
|
+
name: "SOPORTE PLANCHA-BURRO EN PUERTA",
|
|
53
|
+
upc: "339"
|
|
61
54
|
},
|
|
55
|
+
asignations: [62],
|
|
62
56
|
retailers: [{
|
|
63
|
-
id:
|
|
64
|
-
name: "
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}, {
|
|
69
|
-
id: 1013,
|
|
70
|
-
name: "Cencosud Colombia"
|
|
71
|
-
}, {
|
|
72
|
-
id: 2005,
|
|
73
|
-
name: "ClubCo"
|
|
57
|
+
id: 61,
|
|
58
|
+
name: "Home Depot TAB",
|
|
59
|
+
country: "México",
|
|
60
|
+
id_region: 1,
|
|
61
|
+
active: 1
|
|
74
62
|
}],
|
|
75
|
-
|
|
76
|
-
datasheets: 1,
|
|
77
|
-
descriptions: 1,
|
|
78
|
-
images: 1
|
|
79
|
-
},
|
|
63
|
+
percentage: 0,
|
|
80
64
|
retailersAvailable: [{
|
|
81
|
-
id:
|
|
82
|
-
name: "
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}, {
|
|
87
|
-
id: 1013,
|
|
88
|
-
name: "Cencosud Colombia"
|
|
89
|
-
}, {
|
|
90
|
-
id: 2005,
|
|
91
|
-
name: "ClubCo"
|
|
65
|
+
id: 61,
|
|
66
|
+
name: "Home Depot TAB",
|
|
67
|
+
country: "México",
|
|
68
|
+
id_region: 1,
|
|
69
|
+
active: 1
|
|
92
70
|
}],
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
71
|
+
upc: "339",
|
|
72
|
+
name: "SOPORTE PLANCHA-BURRO EN PUERTA",
|
|
73
|
+
categoryName: "ORGANIZADORES Y CLOSETS|ACCESORIOS DE LAVANDERÍA|BURROS DE PLANCHAR",
|
|
74
|
+
id_category: "2520",
|
|
75
|
+
id_article: 1,
|
|
76
|
+
services: [{
|
|
77
|
+
id_article: 1,
|
|
78
|
+
service: "datasheet",
|
|
79
|
+
quantity: 1,
|
|
80
|
+
price: 0,
|
|
81
|
+
id_user: 59,
|
|
82
|
+
datasheet_common: null,
|
|
83
|
+
discount: null
|
|
84
|
+
}]
|
|
96
85
|
},
|
|
97
86
|
productToEdit: {
|
|
98
87
|
ArticleId: 33249,
|
|
@@ -200,7 +200,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
200
200
|
|
|
201
201
|
reader.onload = /*#__PURE__*/function () {
|
|
202
202
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
203
|
-
var ext, img
|
|
203
|
+
var ext, img;
|
|
204
204
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
205
205
|
while (1) {
|
|
206
206
|
switch (_context.prev = _context.next) {
|
|
@@ -208,21 +208,23 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
208
208
|
ext = e.srcElement.fileName.split(".");
|
|
209
209
|
img = new Image();
|
|
210
210
|
img.src = e.target.result;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
211
|
+
setTimeout(function () {
|
|
212
|
+
var width = img.width;
|
|
213
|
+
var height = img.height;
|
|
214
|
+
var newImg = {
|
|
215
|
+
action: "addImg",
|
|
216
|
+
img: {
|
|
217
|
+
src: e.target.result,
|
|
218
|
+
name: e.target.fileName,
|
|
219
|
+
ext: ext[ext.length - 1],
|
|
220
|
+
width: width,
|
|
221
|
+
height: height
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
setImages(newImg);
|
|
225
|
+
}, 500);
|
|
224
226
|
|
|
225
|
-
case
|
|
227
|
+
case 4:
|
|
226
228
|
case "end":
|
|
227
229
|
return _context.stop();
|
|
228
230
|
}
|
|
@@ -694,7 +696,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
694
696
|
var thumbs = function thumbs() {
|
|
695
697
|
var _images$imageType, _images$imagePackagin, _images$values;
|
|
696
698
|
|
|
697
|
-
var imageInputs = socketType.slice();
|
|
699
|
+
var imageInputs = socketType === null || socketType === void 0 ? void 0 : socketType.slice();
|
|
698
700
|
var imageType = images === null || images === void 0 ? void 0 : (_images$imageType = images.imageType) === null || _images$imageType === void 0 ? void 0 : _images$imageType.map(function (e) {
|
|
699
701
|
return {
|
|
700
702
|
value: e === null || e === void 0 ? void 0 : e.id,
|
|
@@ -41,56 +41,54 @@ RetailerProductEditionDefault.args = {
|
|
|
41
41
|
descriptions: 1,
|
|
42
42
|
images: 1
|
|
43
43
|
},
|
|
44
|
-
orderId:
|
|
45
|
-
status: "
|
|
46
|
-
datasheet_status: "
|
|
44
|
+
orderId: 13,
|
|
45
|
+
status: "IN_PROGRESS",
|
|
46
|
+
datasheet_status: "IN_PROGRESS",
|
|
47
47
|
prio: "none",
|
|
48
48
|
version: 2,
|
|
49
|
-
description_status: "
|
|
50
|
-
images_status: "
|
|
49
|
+
description_status: "IN_PROGRESS",
|
|
50
|
+
images_status: "IN_PROGRESS",
|
|
51
51
|
article: {
|
|
52
|
-
id_article:
|
|
53
|
-
id_category: "
|
|
54
|
-
name: "
|
|
55
|
-
upc: "
|
|
56
|
-
timestamp: "2022-06-
|
|
52
|
+
id_article: 35703,
|
|
53
|
+
id_category: "4",
|
|
54
|
+
name: "Manzana",
|
|
55
|
+
upc: "89898989",
|
|
56
|
+
timestamp: "2022-06-15T22:16:56.000Z",
|
|
57
57
|
id_user: 28,
|
|
58
58
|
status: "NULL",
|
|
59
59
|
active: 1,
|
|
60
60
|
company_id: 1,
|
|
61
61
|
company_name: "COMPANY DEV",
|
|
62
62
|
country: "México",
|
|
63
|
-
id_order:
|
|
63
|
+
id_order: 13,
|
|
64
64
|
id_datasheet_especialist: 54,
|
|
65
65
|
id_datasheet_facilitator: 52,
|
|
66
66
|
id_description_especialist: 54,
|
|
67
67
|
id_description_facilitator: 52,
|
|
68
68
|
id_images_especialist: 55,
|
|
69
69
|
id_images_facilitator: 53,
|
|
70
|
-
id_auditor:
|
|
70
|
+
id_auditor: null,
|
|
71
71
|
id_recepcionist: null,
|
|
72
|
-
category: "
|
|
73
|
-
missingAttributes:
|
|
74
|
-
missingDescriptions:
|
|
75
|
-
missingImages:
|
|
72
|
+
category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
|
|
73
|
+
missingAttributes: -4,
|
|
74
|
+
missingDescriptions: 2,
|
|
75
|
+
missingImages: 2
|
|
76
76
|
},
|
|
77
77
|
retailers: [{
|
|
78
|
-
id:
|
|
79
|
-
name: "
|
|
78
|
+
id: 3,
|
|
79
|
+
name: "Sam´s Club",
|
|
80
80
|
country: "México",
|
|
81
81
|
id_region: 1,
|
|
82
|
-
active: 1
|
|
83
|
-
percentage: 100
|
|
82
|
+
active: 1
|
|
84
83
|
}, {
|
|
85
|
-
id:
|
|
86
|
-
name: "
|
|
84
|
+
id: 9,
|
|
85
|
+
name: "Amazon",
|
|
87
86
|
country: "México",
|
|
88
87
|
id_region: 1,
|
|
89
|
-
active: 1
|
|
90
|
-
percentage: 100
|
|
88
|
+
active: 1
|
|
91
89
|
}],
|
|
92
90
|
country: "México",
|
|
93
|
-
upc: "
|
|
91
|
+
upc: "89898989"
|
|
94
92
|
},
|
|
95
93
|
location: {
|
|
96
94
|
product: {
|
|
@@ -99,22 +97,22 @@ RetailerProductEditionDefault.args = {
|
|
|
99
97
|
}
|
|
100
98
|
},
|
|
101
99
|
user: {
|
|
102
|
-
id_user:
|
|
103
|
-
name: "FACILITADOR
|
|
100
|
+
id_user: 52,
|
|
101
|
+
name: "FACILITADOR TXT PRUEBA",
|
|
104
102
|
last_name: "",
|
|
105
|
-
email: "
|
|
103
|
+
email: "azarate@contentoh.com",
|
|
106
104
|
position: null,
|
|
107
105
|
telephone: null,
|
|
108
106
|
country: null,
|
|
109
107
|
id_company: 2,
|
|
110
|
-
id_cognito: "
|
|
108
|
+
id_cognito: "b2ce5b2a-609c-4e79-9ea9-2f74cff43889",
|
|
111
109
|
birth_Date: null,
|
|
112
110
|
about_me: null,
|
|
113
111
|
zip_code: null,
|
|
114
112
|
address: null,
|
|
115
113
|
job: null,
|
|
116
114
|
id_stripe: null,
|
|
117
|
-
id_role:
|
|
115
|
+
id_role: 4,
|
|
118
116
|
active: 1,
|
|
119
117
|
is_retailer: 0,
|
|
120
118
|
membership: {
|
|
@@ -128,6 +126,6 @@ RetailerProductEditionDefault.args = {
|
|
|
128
126
|
products_limit: "3",
|
|
129
127
|
type: "PyMES"
|
|
130
128
|
},
|
|
131
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
129
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-52/52.png?1655320339846"
|
|
132
130
|
}
|
|
133
131
|
};
|