contentoh-components-library 21.1.46 → 21.1.47
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/organisms/FullProductNameHeader/index.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +75 -69
- 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/package.json +2 -2
- 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 +66 -68
- 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/components/atoms/StatusTag/index.js +0 -37
- package/src/components/atoms/StatusTag/styles.js +0 -76
|
@@ -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,122 +28,128 @@ 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: "eyJraWQiOiJkQWJkZC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K9lmbszn-WfeNjf1y01q3LOdMDwCK4-Vp4D-BW5b-ZfSGMCoA4lWTw_ES98LJsOSqvnqq_G-lQim56UbhgQ-85cphHxci24IO-cCkz6a9-OoBHOccF9O0LiKszKbTZajjum3z1-rpEg2SdIXqqbk92kanWlC9F2Y-0U-POlY9i97Dlb_ISF2UTmaWneceMNz3p3WVpKomIFx_njMxORr7Ufl_WO-yRHMq1hNE0a2tUpQ_QUbwaYpwUE5YTfasml_UpoNJSCDcgn29O4O55wxD2vVE0Mni6vbhDftsOWbsCjyU9A8d1Zubb9jVVnamRWxxLW28ZGYue_UlSg",
|
|
35
|
+
articleId: 55154,
|
|
36
|
+
category: 2568,
|
|
37
|
+
version: 3,
|
|
38
38
|
productSelected: {
|
|
39
|
-
orderId:
|
|
39
|
+
orderId: 96,
|
|
40
40
|
article_status: "AP",
|
|
41
|
-
datasheet_status: "
|
|
42
|
-
description_status: "
|
|
43
|
-
images_status: "
|
|
41
|
+
datasheet_status: "ACA",
|
|
42
|
+
description_status: "ACA",
|
|
43
|
+
images_status: "ACA",
|
|
44
44
|
prio: "none",
|
|
45
|
-
version:
|
|
45
|
+
version: 3,
|
|
46
46
|
brand: null,
|
|
47
47
|
article: {
|
|
48
|
-
category: "
|
|
49
|
-
company_name: "
|
|
48
|
+
category: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
|
|
49
|
+
company_name: "COMPANY DEV",
|
|
50
50
|
country: "México",
|
|
51
|
-
id_category: "
|
|
52
|
-
id_article:
|
|
53
|
-
name: "
|
|
54
|
-
upc: "
|
|
51
|
+
id_category: "2568",
|
|
52
|
+
id_article: 55154,
|
|
53
|
+
name: "Prueba 12312",
|
|
54
|
+
upc: "977812"
|
|
55
55
|
},
|
|
56
56
|
retailers: [{
|
|
57
57
|
id: 58,
|
|
58
|
-
name: "The Home Depot Golden"
|
|
58
|
+
name: "The Home Depot Golden",
|
|
59
|
+
services: ["ACA", "ACA", "ACA", "NA"]
|
|
59
60
|
}, {
|
|
60
61
|
id: 59,
|
|
61
|
-
name: "The Home Depot Platinum"
|
|
62
|
-
|
|
63
|
-
id: 60,
|
|
64
|
-
name: "The Home Depot Resizing"
|
|
65
|
-
}, {
|
|
66
|
-
id: 61,
|
|
67
|
-
name: "Home Depot TAB"
|
|
62
|
+
name: "The Home Depot Platinum",
|
|
63
|
+
services: ["NA", "NA", "NA", "AP"]
|
|
68
64
|
}],
|
|
69
65
|
services: {
|
|
70
66
|
datasheets: 1,
|
|
71
67
|
descriptions: 1,
|
|
72
68
|
images: 1
|
|
73
69
|
},
|
|
74
|
-
|
|
70
|
+
statusByRetailer: {
|
|
71
|
+
58: {
|
|
72
|
+
datasheet: "ACA",
|
|
73
|
+
description: "ACA",
|
|
74
|
+
images: "ACA"
|
|
75
|
+
},
|
|
76
|
+
59: {
|
|
77
|
+
images: "ACA"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
id_article: 55154,
|
|
75
81
|
retailersAvailable: [{
|
|
76
82
|
id: 58,
|
|
77
|
-
name: "The Home Depot Golden"
|
|
83
|
+
name: "The Home Depot Golden",
|
|
84
|
+
percentage: 100
|
|
78
85
|
}, {
|
|
79
86
|
id: 59,
|
|
80
|
-
name: "The Home Depot Platinum"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}, {
|
|
85
|
-
id: 61,
|
|
86
|
-
name: "Home Depot TAB"
|
|
87
|
-
}]
|
|
87
|
+
name: "The Home Depot Platinum",
|
|
88
|
+
percentage: 100
|
|
89
|
+
}],
|
|
90
|
+
status: "ACA"
|
|
88
91
|
},
|
|
89
92
|
productToEdit: {
|
|
90
|
-
ArticleId:
|
|
91
|
-
idCategory: "
|
|
93
|
+
ArticleId: 55154,
|
|
94
|
+
idCategory: "2568",
|
|
92
95
|
product: {
|
|
93
|
-
orderId:
|
|
96
|
+
orderId: 96,
|
|
94
97
|
article_status: "AP",
|
|
95
|
-
datasheet_status: "
|
|
96
|
-
description_status: "
|
|
97
|
-
images_status: "
|
|
98
|
+
datasheet_status: "ACA",
|
|
99
|
+
description_status: "ACA",
|
|
100
|
+
images_status: "ACA",
|
|
98
101
|
prio: "none",
|
|
99
|
-
version:
|
|
102
|
+
version: 3,
|
|
100
103
|
brand: null,
|
|
101
104
|
article: {
|
|
102
|
-
category: "
|
|
103
|
-
company_name: "
|
|
105
|
+
category: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
|
|
106
|
+
company_name: "COMPANY DEV",
|
|
104
107
|
country: "México",
|
|
105
|
-
id_category: "
|
|
106
|
-
id_article:
|
|
107
|
-
name: "
|
|
108
|
-
upc: "
|
|
108
|
+
id_category: "2568",
|
|
109
|
+
id_article: 55154,
|
|
110
|
+
name: "Prueba 12312",
|
|
111
|
+
upc: "977812"
|
|
109
112
|
},
|
|
110
113
|
retailers: [{
|
|
111
114
|
id: 58,
|
|
112
|
-
name: "The Home Depot Golden"
|
|
115
|
+
name: "The Home Depot Golden",
|
|
116
|
+
services: ["ACA", "ACA", "ACA", "NA"]
|
|
113
117
|
}, {
|
|
114
118
|
id: 59,
|
|
115
|
-
name: "The Home Depot Platinum"
|
|
116
|
-
|
|
117
|
-
id: 60,
|
|
118
|
-
name: "The Home Depot Resizing"
|
|
119
|
-
}, {
|
|
120
|
-
id: 61,
|
|
121
|
-
name: "Home Depot TAB"
|
|
119
|
+
name: "The Home Depot Platinum",
|
|
120
|
+
services: ["NA", "NA", "NA", "AP"]
|
|
122
121
|
}],
|
|
123
122
|
services: {
|
|
124
123
|
datasheets: 1,
|
|
125
124
|
descriptions: 1,
|
|
126
125
|
images: 1
|
|
127
126
|
},
|
|
128
|
-
|
|
127
|
+
statusByRetailer: {
|
|
128
|
+
58: {
|
|
129
|
+
datasheet: "ACA",
|
|
130
|
+
description: "ACA",
|
|
131
|
+
images: "ACA"
|
|
132
|
+
},
|
|
133
|
+
59: {
|
|
134
|
+
images: "ACA"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
id_article: 55154,
|
|
129
138
|
retailersAvailable: [{
|
|
130
139
|
id: 58,
|
|
131
|
-
name: "The Home Depot Golden"
|
|
140
|
+
name: "The Home Depot Golden",
|
|
141
|
+
percentage: 100
|
|
132
142
|
}, {
|
|
133
143
|
id: 59,
|
|
134
|
-
name: "The Home Depot Platinum"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}, {
|
|
139
|
-
id: 61,
|
|
140
|
-
name: "Home Depot TAB"
|
|
141
|
-
}]
|
|
144
|
+
name: "The Home Depot Platinum",
|
|
145
|
+
percentage: 100
|
|
146
|
+
}],
|
|
147
|
+
status: "ACA"
|
|
142
148
|
}
|
|
143
149
|
},
|
|
144
150
|
location: {
|
|
145
151
|
product: {
|
|
146
|
-
articleId:
|
|
152
|
+
articleId: 55157,
|
|
147
153
|
versionId: 3
|
|
148
154
|
},
|
|
149
155
|
state: {
|
|
@@ -168,7 +174,7 @@ ProviderProductEditionDefault.args = {
|
|
|
168
174
|
id_stripe: "",
|
|
169
175
|
id_role: 0,
|
|
170
176
|
active: 1,
|
|
171
|
-
is_retailer:
|
|
177
|
+
is_retailer: 1,
|
|
172
178
|
email_notify: 1,
|
|
173
179
|
membership: {
|
|
174
180
|
id: 24,
|
|
@@ -181,6 +187,6 @@ ProviderProductEditionDefault.args = {
|
|
|
181
187
|
products_limit: "10000",
|
|
182
188
|
type: "Enterprise"
|
|
183
189
|
},
|
|
184
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?
|
|
190
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1657069378649"
|
|
185
191
|
}
|
|
186
192
|
};
|