contentoh-components-library 21.0.91 → 21.0.96
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 +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +44 -114
- package/dist/components/pages/ProviderProductEdition/index.js +18 -16
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +23 -35
- package/dist/components/pages/RetailerProductEdition/index.js +172 -188
- package/package.json +1 -1
- package/src/components/atoms/InputFormatter/index.js +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +48 -133
- package/src/components/pages/ProviderProductEdition/index.js +16 -14
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +23 -37
- package/src/components/pages/RetailerProductEdition/index.js +17 -15
|
@@ -99,7 +99,7 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
99
99
|
setCharsCounter(h.getLength() - 1);
|
|
100
100
|
value = valueFormater(value);
|
|
101
101
|
var idInput = inputId;
|
|
102
|
-
var dataSave = updatedDescriptions.slice();
|
|
102
|
+
var dataSave = updatedDescriptions === null || updatedDescriptions === void 0 ? void 0 : updatedDescriptions.slice();
|
|
103
103
|
|
|
104
104
|
if (dataSave.length > 0) {
|
|
105
105
|
if (dataSave.filter(function (e) {
|
|
@@ -36,126 +36,56 @@ ProviderProductEditionDefault.args = {
|
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
id_category: "
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
datasheet: 33,
|
|
50
|
-
descriptions: 14,
|
|
51
|
-
images: 3
|
|
52
|
-
},
|
|
53
|
-
article: {
|
|
54
|
-
category: "SALUD Y BELLEZA|CUIDADO BUCAL|PASTAS DENTALES Y ASEO BUCAL",
|
|
55
|
-
company_name: "COMPANY DEV",
|
|
56
|
-
id_category: "684",
|
|
57
|
-
id_article: 33249,
|
|
58
|
-
name: "Crema dental ",
|
|
59
|
-
timestamp: "2022-06-14T23:24:08.000Z",
|
|
60
|
-
upc: "232435"
|
|
61
|
-
},
|
|
62
|
-
retailers: [{
|
|
63
|
-
id: 4,
|
|
64
|
-
name: "Walmart Super y Superama"
|
|
65
|
-
}, {
|
|
66
|
-
id: 9,
|
|
67
|
-
name: "Amazon"
|
|
68
|
-
}, {
|
|
69
|
-
id: 1013,
|
|
70
|
-
name: "Cencosud Colombia"
|
|
71
|
-
}, {
|
|
72
|
-
id: 2005,
|
|
73
|
-
name: "ClubCo"
|
|
74
|
-
}],
|
|
75
|
-
services: {
|
|
76
|
-
datasheets: 1,
|
|
77
|
-
descriptions: 1,
|
|
78
|
-
images: 1
|
|
79
|
-
},
|
|
39
|
+
id_article: 35319,
|
|
40
|
+
id_category: "2146",
|
|
41
|
+
name: "FOCO LED A19 (60W) LUZ AMARILLA",
|
|
42
|
+
upc: "120873",
|
|
43
|
+
timestamp: "2022-06-14T15:31:50.000Z",
|
|
44
|
+
status: "NULL",
|
|
45
|
+
categoryName: "ILUMINACIÓN|FOCOS|LEDS",
|
|
46
|
+
asignations: [],
|
|
47
|
+
version: 2,
|
|
48
|
+
version_status: "AA",
|
|
80
49
|
retailersAvailable: [{
|
|
81
|
-
id:
|
|
82
|
-
name: "
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}, {
|
|
87
|
-
id: 1013,
|
|
88
|
-
name: "Cencosud Colombia"
|
|
89
|
-
}, {
|
|
90
|
-
id: 2005,
|
|
91
|
-
name: "ClubCo"
|
|
50
|
+
id: 58,
|
|
51
|
+
name: "The Home Depot Golden",
|
|
52
|
+
country: "México",
|
|
53
|
+
id_region: 1,
|
|
54
|
+
active: 1
|
|
92
55
|
}],
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
56
|
+
missing: {
|
|
57
|
+
datasheet: 33,
|
|
58
|
+
description: 0,
|
|
59
|
+
image: 23
|
|
60
|
+
}
|
|
96
61
|
},
|
|
97
62
|
productToEdit: {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
product: {
|
|
101
|
-
|
|
102
|
-
id_category: "
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
datasheet: 33,
|
|
112
|
-
descriptions: 14,
|
|
113
|
-
images: 3
|
|
114
|
-
},
|
|
115
|
-
article: {
|
|
116
|
-
category: "SALUD Y BELLEZA|CUIDADO BUCAL|PASTAS DENTALES Y ASEO BUCAL",
|
|
117
|
-
company_name: "COMPANY DEV",
|
|
118
|
-
id_category: "684",
|
|
119
|
-
id_article: 33249,
|
|
120
|
-
name: "Crema dental ",
|
|
121
|
-
timestamp: "2022-06-14T23:24:08.000Z",
|
|
122
|
-
upc: "232435"
|
|
123
|
-
},
|
|
124
|
-
retailers: [{
|
|
125
|
-
id: 4,
|
|
126
|
-
name: "Walmart Super y Superama"
|
|
127
|
-
}, {
|
|
128
|
-
id: 9,
|
|
129
|
-
name: "Amazon"
|
|
130
|
-
}, {
|
|
131
|
-
id: 1013,
|
|
132
|
-
name: "Cencosud Colombia"
|
|
133
|
-
}, {
|
|
134
|
-
id: 2005,
|
|
135
|
-
name: "ClubCo"
|
|
136
|
-
}],
|
|
137
|
-
services: {
|
|
138
|
-
datasheets: 1,
|
|
139
|
-
descriptions: 1,
|
|
140
|
-
images: 1
|
|
141
|
-
},
|
|
63
|
+
idCategory: "2146",
|
|
64
|
+
ArticleId: 35319,
|
|
65
|
+
product: [{
|
|
66
|
+
id_article: 35319,
|
|
67
|
+
id_category: "2146",
|
|
68
|
+
name: "FOCO LED A19 (60W) LUZ AMARILLA",
|
|
69
|
+
upc: "120873",
|
|
70
|
+
timestamp: "2022-06-14T15:31:50.000Z",
|
|
71
|
+
status: "NULL",
|
|
72
|
+
categoryName: "ILUMINACIÓN|FOCOS|LEDS",
|
|
73
|
+
asignations: [],
|
|
74
|
+
version: 2,
|
|
75
|
+
version_status: "AA",
|
|
142
76
|
retailersAvailable: [{
|
|
143
|
-
id:
|
|
144
|
-
name: "
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}, {
|
|
149
|
-
id: 1013,
|
|
150
|
-
name: "Cencosud Colombia"
|
|
151
|
-
}, {
|
|
152
|
-
id: 2005,
|
|
153
|
-
name: "ClubCo"
|
|
77
|
+
id: 58,
|
|
78
|
+
name: "The Home Depot Golden",
|
|
79
|
+
country: "México",
|
|
80
|
+
id_region: 1,
|
|
81
|
+
active: 1
|
|
154
82
|
}],
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
83
|
+
missing: {
|
|
84
|
+
datasheet: 33,
|
|
85
|
+
description: 0,
|
|
86
|
+
image: 23
|
|
87
|
+
}
|
|
88
|
+
}]
|
|
159
89
|
},
|
|
160
90
|
location: {
|
|
161
91
|
product: {
|
|
@@ -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,66 +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-
|
|
57
|
-
id_user:
|
|
52
|
+
id_article: 35703,
|
|
53
|
+
id_category: "4",
|
|
54
|
+
name: "Manzana",
|
|
55
|
+
upc: "89898989",
|
|
56
|
+
timestamp: "2022-06-15T22:16:56.000Z",
|
|
57
|
+
id_user: 28,
|
|
58
58
|
status: "NULL",
|
|
59
59
|
active: 1,
|
|
60
60
|
company_id: 1,
|
|
61
|
-
company_name: "
|
|
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
82
|
active: 1
|
|
83
83
|
}, {
|
|
84
|
-
id:
|
|
85
|
-
name: "
|
|
86
|
-
country: "México",
|
|
87
|
-
id_region: 1,
|
|
88
|
-
active: 1
|
|
89
|
-
}, {
|
|
90
|
-
id: 60,
|
|
91
|
-
name: "The Home Depot Resizing",
|
|
92
|
-
country: "México",
|
|
93
|
-
id_region: 1,
|
|
94
|
-
active: 1
|
|
95
|
-
}, {
|
|
96
|
-
id: 61,
|
|
97
|
-
name: "Home Depot TAB",
|
|
84
|
+
id: 9,
|
|
85
|
+
name: "Amazon",
|
|
98
86
|
country: "México",
|
|
99
87
|
id_region: 1,
|
|
100
88
|
active: 1
|
|
101
89
|
}],
|
|
102
90
|
country: "México",
|
|
103
|
-
upc: "
|
|
91
|
+
upc: "89898989"
|
|
104
92
|
},
|
|
105
93
|
location: {
|
|
106
94
|
product: {
|