contentoh-components-library 21.0.94 → 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 +41 -100
- package/package.json +1 -1
- package/src/components/atoms/InputFormatter/index.js +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +45 -117
|
@@ -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,115 +36,56 @@ ProviderProductEditionDefault.args = {
|
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
company_id: 409,
|
|
50
|
-
id_category: "2520",
|
|
51
|
-
id_article: 1,
|
|
52
|
-
name: "SOPORTE PLANCHA-BURRO EN PUERTA",
|
|
53
|
-
upc: "339"
|
|
54
|
-
},
|
|
55
|
-
asignations: [62],
|
|
56
|
-
retailers: [{
|
|
57
|
-
id: 61,
|
|
58
|
-
name: "Home Depot TAB",
|
|
59
|
-
country: "México",
|
|
60
|
-
id_region: 1,
|
|
61
|
-
active: 1
|
|
62
|
-
}],
|
|
63
|
-
percentage: 0,
|
|
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",
|
|
64
49
|
retailersAvailable: [{
|
|
65
|
-
id:
|
|
66
|
-
name: "Home Depot
|
|
50
|
+
id: 58,
|
|
51
|
+
name: "The Home Depot Golden",
|
|
67
52
|
country: "México",
|
|
68
53
|
id_region: 1,
|
|
69
54
|
active: 1
|
|
70
55
|
}],
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
}]
|
|
56
|
+
missing: {
|
|
57
|
+
datasheet: 33,
|
|
58
|
+
description: 0,
|
|
59
|
+
image: 23
|
|
60
|
+
}
|
|
85
61
|
},
|
|
86
62
|
productToEdit: {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
product: {
|
|
90
|
-
|
|
91
|
-
id_category: "
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
datasheet: 33,
|
|
101
|
-
descriptions: 14,
|
|
102
|
-
images: 3
|
|
103
|
-
},
|
|
104
|
-
article: {
|
|
105
|
-
category: "SALUD Y BELLEZA|CUIDADO BUCAL|PASTAS DENTALES Y ASEO BUCAL",
|
|
106
|
-
company_name: "COMPANY DEV",
|
|
107
|
-
id_category: "684",
|
|
108
|
-
id_article: 33249,
|
|
109
|
-
name: "Crema dental ",
|
|
110
|
-
timestamp: "2022-06-14T23:24:08.000Z",
|
|
111
|
-
upc: "232435"
|
|
112
|
-
},
|
|
113
|
-
retailers: [{
|
|
114
|
-
id: 4,
|
|
115
|
-
name: "Walmart Super y Superama"
|
|
116
|
-
}, {
|
|
117
|
-
id: 9,
|
|
118
|
-
name: "Amazon"
|
|
119
|
-
}, {
|
|
120
|
-
id: 1013,
|
|
121
|
-
name: "Cencosud Colombia"
|
|
122
|
-
}, {
|
|
123
|
-
id: 2005,
|
|
124
|
-
name: "ClubCo"
|
|
125
|
-
}],
|
|
126
|
-
services: {
|
|
127
|
-
datasheets: 1,
|
|
128
|
-
descriptions: 1,
|
|
129
|
-
images: 1
|
|
130
|
-
},
|
|
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",
|
|
131
76
|
retailersAvailable: [{
|
|
132
|
-
id:
|
|
133
|
-
name: "
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}, {
|
|
138
|
-
id: 1013,
|
|
139
|
-
name: "Cencosud Colombia"
|
|
140
|
-
}, {
|
|
141
|
-
id: 2005,
|
|
142
|
-
name: "ClubCo"
|
|
77
|
+
id: 58,
|
|
78
|
+
name: "The Home Depot Golden",
|
|
79
|
+
country: "México",
|
|
80
|
+
id_region: 1,
|
|
81
|
+
active: 1
|
|
143
82
|
}],
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
83
|
+
missing: {
|
|
84
|
+
datasheet: 33,
|
|
85
|
+
description: 0,
|
|
86
|
+
image: 23
|
|
87
|
+
}
|
|
88
|
+
}]
|
|
148
89
|
},
|
|
149
90
|
location: {
|
|
150
91
|
product: {
|
package/package.json
CHANGED
|
@@ -60,7 +60,7 @@ export const InputFormatter = ({
|
|
|
60
60
|
value = valueFormater(value);
|
|
61
61
|
|
|
62
62
|
let idInput = inputId;
|
|
63
|
-
let dataSave = updatedDescriptions
|
|
63
|
+
let dataSave = updatedDescriptions?.slice();
|
|
64
64
|
if (dataSave.length > 0) {
|
|
65
65
|
if (dataSave.filter((e) => e.attributeId === idInput).length > 0) {
|
|
66
66
|
dataSave.forEach((e) => {
|
|
@@ -21,134 +21,62 @@ ProviderProductEditionDefault.args = {
|
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
company_name: "BROOKLITE MEXICO S DE RL DE CV",
|
|
35
|
-
company_id: 409,
|
|
36
|
-
id_category: "2520",
|
|
37
|
-
id_article: 1,
|
|
38
|
-
name: "SOPORTE PLANCHA-BURRO EN PUERTA",
|
|
39
|
-
upc: "339",
|
|
40
|
-
},
|
|
41
|
-
asignations: [62],
|
|
42
|
-
retailers: [
|
|
43
|
-
{
|
|
44
|
-
id: 61,
|
|
45
|
-
name: "Home Depot TAB",
|
|
46
|
-
country: "México",
|
|
47
|
-
id_region: 1,
|
|
48
|
-
active: 1,
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
percentage: 0,
|
|
24
|
+
id_article: 35319,
|
|
25
|
+
id_category: "2146",
|
|
26
|
+
name: "FOCO LED A19 (60W) LUZ AMARILLA",
|
|
27
|
+
upc: "120873",
|
|
28
|
+
timestamp: "2022-06-14T15:31:50.000Z",
|
|
29
|
+
status: "NULL",
|
|
30
|
+
categoryName: "ILUMINACIÓN|FOCOS|LEDS",
|
|
31
|
+
asignations: [],
|
|
32
|
+
version: 2,
|
|
33
|
+
version_status: "AA",
|
|
52
34
|
retailersAvailable: [
|
|
53
35
|
{
|
|
54
|
-
id:
|
|
55
|
-
name: "Home Depot
|
|
36
|
+
id: 58,
|
|
37
|
+
name: "The Home Depot Golden",
|
|
56
38
|
country: "México",
|
|
57
39
|
id_region: 1,
|
|
58
40
|
active: 1,
|
|
59
41
|
},
|
|
60
42
|
],
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
id_article: 1,
|
|
67
|
-
services: [
|
|
68
|
-
{
|
|
69
|
-
id_article: 1,
|
|
70
|
-
service: "datasheet",
|
|
71
|
-
quantity: 1,
|
|
72
|
-
price: 0,
|
|
73
|
-
id_user: 59,
|
|
74
|
-
datasheet_common: null,
|
|
75
|
-
discount: null,
|
|
76
|
-
},
|
|
77
|
-
],
|
|
43
|
+
missing: {
|
|
44
|
+
datasheet: 33,
|
|
45
|
+
description: 0,
|
|
46
|
+
image: 23,
|
|
47
|
+
},
|
|
78
48
|
},
|
|
79
49
|
productToEdit: {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
product:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
{
|
|
108
|
-
id: 4,
|
|
109
|
-
name: "Walmart Super y Superama",
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
id: 9,
|
|
113
|
-
name: "Amazon",
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
id: 1013,
|
|
117
|
-
name: "Cencosud Colombia",
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
id: 2005,
|
|
121
|
-
name: "ClubCo",
|
|
50
|
+
idCategory: "2146",
|
|
51
|
+
ArticleId: 35319,
|
|
52
|
+
product: [
|
|
53
|
+
{
|
|
54
|
+
id_article: 35319,
|
|
55
|
+
id_category: "2146",
|
|
56
|
+
name: "FOCO LED A19 (60W) LUZ AMARILLA",
|
|
57
|
+
upc: "120873",
|
|
58
|
+
timestamp: "2022-06-14T15:31:50.000Z",
|
|
59
|
+
status: "NULL",
|
|
60
|
+
categoryName: "ILUMINACIÓN|FOCOS|LEDS",
|
|
61
|
+
asignations: [],
|
|
62
|
+
version: 2,
|
|
63
|
+
version_status: "AA",
|
|
64
|
+
retailersAvailable: [
|
|
65
|
+
{
|
|
66
|
+
id: 58,
|
|
67
|
+
name: "The Home Depot Golden",
|
|
68
|
+
country: "México",
|
|
69
|
+
id_region: 1,
|
|
70
|
+
active: 1,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
missing: {
|
|
74
|
+
datasheet: 33,
|
|
75
|
+
description: 0,
|
|
76
|
+
image: 23,
|
|
122
77
|
},
|
|
123
|
-
],
|
|
124
|
-
services: {
|
|
125
|
-
datasheets: 1,
|
|
126
|
-
descriptions: 1,
|
|
127
|
-
images: 1,
|
|
128
78
|
},
|
|
129
|
-
|
|
130
|
-
{
|
|
131
|
-
id: 4,
|
|
132
|
-
name: "Walmart Super y Superama",
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
id: 9,
|
|
136
|
-
name: "Amazon",
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
id: 1013,
|
|
140
|
-
name: "Cencosud Colombia",
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
id: 2005,
|
|
144
|
-
name: "ClubCo",
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
id_article: 33249,
|
|
148
|
-
categoryName:
|
|
149
|
-
"SALUD Y BELLEZA|CUIDADO BUCAL|PASTAS DENTALES Y ASEO BUCAL",
|
|
150
|
-
version_status: "RECEPTION",
|
|
151
|
-
},
|
|
79
|
+
],
|
|
152
80
|
},
|
|
153
81
|
location: {
|
|
154
82
|
product: { articleId: 109485, versionId: 3 },
|