contentoh-components-library 21.1.1 → 21.1.4
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/pages/ProviderProductEdition/ProviderProductEdition.stories.js +96 -98
- package/dist/components/pages/ProviderProductEdition/index.js +1 -1
- package/package.json +1 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +94 -108
- package/src/components/pages/ProviderProductEdition/index.js +1 -3
|
@@ -36,109 +36,107 @@ ProviderProductEditionDefault.args = {
|
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
orderId:
|
|
40
|
-
|
|
41
|
-
datasheet_status: "
|
|
42
|
-
description_status: "AC",
|
|
43
|
-
images_status: "AP",
|
|
39
|
+
orderId: 47,
|
|
40
|
+
status: "AP",
|
|
41
|
+
datasheet_status: "AP",
|
|
44
42
|
prio: "none",
|
|
45
43
|
version: 2,
|
|
44
|
+
description_status: "AP",
|
|
45
|
+
images_status: "AP",
|
|
46
46
|
brand: null,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
id_article: 35705,
|
|
53
|
-
name: "FOCO LED A19 (60W) LUZ AMARILLA",
|
|
54
|
-
upc: "12087311111"
|
|
47
|
+
retailerOrder: 0,
|
|
48
|
+
missing: {
|
|
49
|
+
datasheet: 0,
|
|
50
|
+
descriptions: 1,
|
|
51
|
+
images: 0
|
|
55
52
|
},
|
|
56
|
-
retailers: [{
|
|
57
|
-
id: 58,
|
|
58
|
-
name: "The Home Depot Golden"
|
|
59
|
-
}, {
|
|
60
|
-
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"
|
|
68
|
-
}],
|
|
69
53
|
services: {
|
|
70
54
|
datasheets: 1,
|
|
71
55
|
descriptions: 1,
|
|
72
56
|
images: 1
|
|
73
57
|
},
|
|
74
|
-
|
|
58
|
+
article: {
|
|
59
|
+
category: "ABARROTES|ABARROTES SECOS|GALLETAS",
|
|
60
|
+
company_name: "COMPANY DEV",
|
|
61
|
+
country: "México",
|
|
62
|
+
id_category: "12",
|
|
63
|
+
id_datasheet_especialist: 54,
|
|
64
|
+
id_datasheet_facilitator: 52,
|
|
65
|
+
id_description_especialist: 54,
|
|
66
|
+
id_description_facilitator: 52,
|
|
67
|
+
id_images_especialist: 55,
|
|
68
|
+
id_images_facilitator: 53,
|
|
69
|
+
id_order: 47,
|
|
70
|
+
id_article: 55115,
|
|
71
|
+
id_auditor: 30,
|
|
72
|
+
name: "Galletas Oreo",
|
|
73
|
+
upc: "42334242"
|
|
74
|
+
},
|
|
75
|
+
retailers: [{
|
|
76
|
+
id: 4,
|
|
77
|
+
name: "Walmart Super y Superama"
|
|
78
|
+
}],
|
|
75
79
|
retailersAvailable: [{
|
|
76
|
-
id:
|
|
77
|
-
name: "
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
name: "The Home Depot Resizing"
|
|
84
|
-
}, {
|
|
85
|
-
id: 61,
|
|
86
|
-
name: "Home Depot TAB"
|
|
87
|
-
}]
|
|
80
|
+
id: 4,
|
|
81
|
+
name: "Walmart Super y Superama"
|
|
82
|
+
}],
|
|
83
|
+
categoryName: "ABARROTES|ABARROTES SECOS|GALLETAS",
|
|
84
|
+
upc: "42334242",
|
|
85
|
+
id_article: 55115,
|
|
86
|
+
id_order: 47
|
|
88
87
|
},
|
|
89
88
|
productToEdit: {
|
|
90
|
-
ArticleId:
|
|
91
|
-
idCategory: "
|
|
89
|
+
ArticleId: 55115,
|
|
90
|
+
idCategory: "12",
|
|
92
91
|
product: {
|
|
93
|
-
orderId:
|
|
94
|
-
|
|
95
|
-
datasheet_status: "
|
|
96
|
-
description_status: "AC",
|
|
97
|
-
images_status: "AP",
|
|
92
|
+
orderId: 47,
|
|
93
|
+
status: "AP",
|
|
94
|
+
datasheet_status: "AP",
|
|
98
95
|
prio: "none",
|
|
99
96
|
version: 2,
|
|
97
|
+
description_status: "AP",
|
|
98
|
+
images_status: "AP",
|
|
100
99
|
brand: null,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
id_article: 35705,
|
|
107
|
-
name: "FOCO LED A19 (60W) LUZ AMARILLA",
|
|
108
|
-
upc: "12087311111"
|
|
100
|
+
retailerOrder: 0,
|
|
101
|
+
missing: {
|
|
102
|
+
datasheet: 0,
|
|
103
|
+
descriptions: 1,
|
|
104
|
+
images: 0
|
|
109
105
|
},
|
|
110
|
-
retailers: [{
|
|
111
|
-
id: 58,
|
|
112
|
-
name: "The Home Depot Golden"
|
|
113
|
-
}, {
|
|
114
|
-
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"
|
|
122
|
-
}],
|
|
123
106
|
services: {
|
|
124
107
|
datasheets: 1,
|
|
125
108
|
descriptions: 1,
|
|
126
109
|
images: 1
|
|
127
110
|
},
|
|
128
|
-
|
|
111
|
+
article: {
|
|
112
|
+
category: "ABARROTES|ABARROTES SECOS|GALLETAS",
|
|
113
|
+
company_name: "COMPANY DEV",
|
|
114
|
+
country: "México",
|
|
115
|
+
id_category: "12",
|
|
116
|
+
id_datasheet_especialist: 54,
|
|
117
|
+
id_datasheet_facilitator: 52,
|
|
118
|
+
id_description_especialist: 54,
|
|
119
|
+
id_description_facilitator: 52,
|
|
120
|
+
id_images_especialist: 55,
|
|
121
|
+
id_images_facilitator: 53,
|
|
122
|
+
id_order: 47,
|
|
123
|
+
id_article: 55115,
|
|
124
|
+
id_auditor: 30,
|
|
125
|
+
name: "Galletas Oreo",
|
|
126
|
+
upc: "42334242"
|
|
127
|
+
},
|
|
128
|
+
retailers: [{
|
|
129
|
+
id: 4,
|
|
130
|
+
name: "Walmart Super y Superama"
|
|
131
|
+
}],
|
|
129
132
|
retailersAvailable: [{
|
|
130
|
-
id:
|
|
131
|
-
name: "
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
name: "The Home Depot Resizing"
|
|
138
|
-
}, {
|
|
139
|
-
id: 61,
|
|
140
|
-
name: "Home Depot TAB"
|
|
141
|
-
}]
|
|
133
|
+
id: 4,
|
|
134
|
+
name: "Walmart Super y Superama"
|
|
135
|
+
}],
|
|
136
|
+
categoryName: "ABARROTES|ABARROTES SECOS|GALLETAS",
|
|
137
|
+
upc: "42334242",
|
|
138
|
+
id_article: 55115,
|
|
139
|
+
id_order: 47
|
|
142
140
|
}
|
|
143
141
|
},
|
|
144
142
|
location: {
|
|
@@ -151,35 +149,35 @@ ProviderProductEditionDefault.args = {
|
|
|
151
149
|
}
|
|
152
150
|
},
|
|
153
151
|
user: {
|
|
154
|
-
id_user:
|
|
155
|
-
name: "
|
|
156
|
-
last_name: "
|
|
157
|
-
email: "
|
|
158
|
-
position: "Admin",
|
|
152
|
+
id_user: 28,
|
|
153
|
+
name: "Proveedor",
|
|
154
|
+
last_name: "Colgate",
|
|
155
|
+
email: "ilopez@contentoh.com",
|
|
156
|
+
position: "Prueba Admin",
|
|
159
157
|
telephone: "+523111366336",
|
|
160
158
|
country: "México",
|
|
161
|
-
id_company:
|
|
162
|
-
id_cognito: "
|
|
159
|
+
id_company: 1,
|
|
160
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
163
161
|
birth_Date: null,
|
|
164
162
|
about_me: null,
|
|
165
163
|
zip_code: null,
|
|
166
164
|
address: null,
|
|
167
165
|
job: null,
|
|
168
|
-
id_stripe: "",
|
|
166
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
169
167
|
id_role: 0,
|
|
170
168
|
active: 1,
|
|
171
|
-
is_retailer:
|
|
169
|
+
is_retailer: 0,
|
|
172
170
|
membership: {
|
|
173
|
-
id:
|
|
174
|
-
start_date: "
|
|
175
|
-
end_date: "
|
|
176
|
-
planID:
|
|
177
|
-
plan: "
|
|
178
|
-
name: "Plan
|
|
179
|
-
user_limit: "
|
|
180
|
-
products_limit: "
|
|
171
|
+
id: 38,
|
|
172
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
173
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
174
|
+
planID: 8,
|
|
175
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
176
|
+
name: "Plan Pro",
|
|
177
|
+
user_limit: "20",
|
|
178
|
+
products_limit: "5000",
|
|
181
179
|
type: "Enterprise"
|
|
182
180
|
},
|
|
183
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
181
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1655613379760"
|
|
184
182
|
}
|
|
185
183
|
};
|
|
@@ -1445,7 +1445,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1445
1445
|
return item.service === concept;
|
|
1446
1446
|
});
|
|
1447
1447
|
|
|
1448
|
-
if (["RequestWithContentoh", "RequestWithoutContentoh"].includes(origin[
|
|
1448
|
+
if (["RequestWithContentoh", "RequestWithoutContentoh"].includes(origin[tab])) {
|
|
1449
1449
|
serv = serv.filter(function (f) {
|
|
1450
1450
|
return f.id_retailer === product.retailer_id;
|
|
1451
1451
|
});
|
package/package.json
CHANGED
|
@@ -21,129 +21,115 @@ ProviderProductEditionDefault.args = {
|
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
orderId:
|
|
25
|
-
|
|
26
|
-
datasheet_status: "
|
|
27
|
-
description_status: "AC",
|
|
28
|
-
images_status: "AP",
|
|
24
|
+
orderId: 47,
|
|
25
|
+
status: "AP",
|
|
26
|
+
datasheet_status: "AP",
|
|
29
27
|
prio: "none",
|
|
30
28
|
version: 2,
|
|
29
|
+
description_status: "AP",
|
|
30
|
+
images_status: "AP",
|
|
31
31
|
brand: null,
|
|
32
|
+
retailerOrder: 0,
|
|
33
|
+
missing: {
|
|
34
|
+
datasheet: 0,
|
|
35
|
+
descriptions: 1,
|
|
36
|
+
images: 0,
|
|
37
|
+
},
|
|
38
|
+
services: {
|
|
39
|
+
datasheets: 1,
|
|
40
|
+
descriptions: 1,
|
|
41
|
+
images: 1,
|
|
42
|
+
},
|
|
32
43
|
article: {
|
|
33
|
-
category: "
|
|
44
|
+
category: "ABARROTES|ABARROTES SECOS|GALLETAS",
|
|
34
45
|
company_name: "COMPANY DEV",
|
|
35
46
|
country: "México",
|
|
36
|
-
id_category: "
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
47
|
+
id_category: "12",
|
|
48
|
+
id_datasheet_especialist: 54,
|
|
49
|
+
id_datasheet_facilitator: 52,
|
|
50
|
+
id_description_especialist: 54,
|
|
51
|
+
id_description_facilitator: 52,
|
|
52
|
+
id_images_especialist: 55,
|
|
53
|
+
id_images_facilitator: 53,
|
|
54
|
+
id_order: 47,
|
|
55
|
+
id_article: 55115,
|
|
56
|
+
id_auditor: 30,
|
|
57
|
+
name: "Galletas Oreo",
|
|
58
|
+
upc: "42334242",
|
|
40
59
|
},
|
|
41
60
|
retailers: [
|
|
42
61
|
{
|
|
43
|
-
id:
|
|
44
|
-
name: "
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
id: 59,
|
|
48
|
-
name: "The Home Depot Platinum",
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: 60,
|
|
52
|
-
name: "The Home Depot Resizing",
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
id: 61,
|
|
56
|
-
name: "Home Depot TAB",
|
|
62
|
+
id: 4,
|
|
63
|
+
name: "Walmart Super y Superama",
|
|
57
64
|
},
|
|
58
65
|
],
|
|
59
|
-
services: {
|
|
60
|
-
datasheets: 1,
|
|
61
|
-
descriptions: 1,
|
|
62
|
-
images: 1,
|
|
63
|
-
},
|
|
64
|
-
id_article: 35705,
|
|
65
66
|
retailersAvailable: [
|
|
66
67
|
{
|
|
67
|
-
id:
|
|
68
|
-
name: "
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
id: 59,
|
|
72
|
-
name: "The Home Depot Platinum",
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: 60,
|
|
76
|
-
name: "The Home Depot Resizing",
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: 61,
|
|
80
|
-
name: "Home Depot TAB",
|
|
68
|
+
id: 4,
|
|
69
|
+
name: "Walmart Super y Superama",
|
|
81
70
|
},
|
|
82
71
|
],
|
|
72
|
+
categoryName: "ABARROTES|ABARROTES SECOS|GALLETAS",
|
|
73
|
+
upc: "42334242",
|
|
74
|
+
id_article: 55115,
|
|
75
|
+
id_order: 47,
|
|
83
76
|
},
|
|
84
77
|
productToEdit: {
|
|
85
|
-
ArticleId:
|
|
86
|
-
idCategory: "
|
|
78
|
+
ArticleId: 55115,
|
|
79
|
+
idCategory: "12",
|
|
87
80
|
product: {
|
|
88
|
-
orderId:
|
|
89
|
-
|
|
90
|
-
datasheet_status: "
|
|
91
|
-
description_status: "AC",
|
|
92
|
-
images_status: "AP",
|
|
81
|
+
orderId: 47,
|
|
82
|
+
status: "AP",
|
|
83
|
+
datasheet_status: "AP",
|
|
93
84
|
prio: "none",
|
|
94
85
|
version: 2,
|
|
86
|
+
description_status: "AP",
|
|
87
|
+
images_status: "AP",
|
|
95
88
|
brand: null,
|
|
89
|
+
retailerOrder: 0,
|
|
90
|
+
missing: {
|
|
91
|
+
datasheet: 0,
|
|
92
|
+
descriptions: 1,
|
|
93
|
+
images: 0,
|
|
94
|
+
},
|
|
95
|
+
services: {
|
|
96
|
+
datasheets: 1,
|
|
97
|
+
descriptions: 1,
|
|
98
|
+
images: 1,
|
|
99
|
+
},
|
|
96
100
|
article: {
|
|
97
|
-
category: "
|
|
101
|
+
category: "ABARROTES|ABARROTES SECOS|GALLETAS",
|
|
98
102
|
company_name: "COMPANY DEV",
|
|
99
103
|
country: "México",
|
|
100
|
-
id_category: "
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
id_category: "12",
|
|
105
|
+
id_datasheet_especialist: 54,
|
|
106
|
+
id_datasheet_facilitator: 52,
|
|
107
|
+
id_description_especialist: 54,
|
|
108
|
+
id_description_facilitator: 52,
|
|
109
|
+
id_images_especialist: 55,
|
|
110
|
+
id_images_facilitator: 53,
|
|
111
|
+
id_order: 47,
|
|
112
|
+
id_article: 55115,
|
|
113
|
+
id_auditor: 30,
|
|
114
|
+
name: "Galletas Oreo",
|
|
115
|
+
upc: "42334242",
|
|
104
116
|
},
|
|
105
117
|
retailers: [
|
|
106
118
|
{
|
|
107
|
-
id:
|
|
108
|
-
name: "
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
id: 59,
|
|
112
|
-
name: "The Home Depot Platinum",
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
id: 60,
|
|
116
|
-
name: "The Home Depot Resizing",
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
id: 61,
|
|
120
|
-
name: "Home Depot TAB",
|
|
119
|
+
id: 4,
|
|
120
|
+
name: "Walmart Super y Superama",
|
|
121
121
|
},
|
|
122
122
|
],
|
|
123
|
-
services: {
|
|
124
|
-
datasheets: 1,
|
|
125
|
-
descriptions: 1,
|
|
126
|
-
images: 1,
|
|
127
|
-
},
|
|
128
|
-
id_article: 35705,
|
|
129
123
|
retailersAvailable: [
|
|
130
124
|
{
|
|
131
|
-
id:
|
|
132
|
-
name: "
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
id: 59,
|
|
136
|
-
name: "The Home Depot Platinum",
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
id: 60,
|
|
140
|
-
name: "The Home Depot Resizing",
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
id: 61,
|
|
144
|
-
name: "Home Depot TAB",
|
|
125
|
+
id: 4,
|
|
126
|
+
name: "Walmart Super y Superama",
|
|
145
127
|
},
|
|
146
128
|
],
|
|
129
|
+
categoryName: "ABARROTES|ABARROTES SECOS|GALLETAS",
|
|
130
|
+
upc: "42334242",
|
|
131
|
+
id_article: 55115,
|
|
132
|
+
id_order: 47,
|
|
147
133
|
},
|
|
148
134
|
},
|
|
149
135
|
location: {
|
|
@@ -151,35 +137,35 @@ ProviderProductEditionDefault.args = {
|
|
|
151
137
|
state: { origin: "Contentoh" },
|
|
152
138
|
},
|
|
153
139
|
user: {
|
|
154
|
-
id_user:
|
|
155
|
-
name: "
|
|
156
|
-
last_name: "
|
|
157
|
-
email: "
|
|
158
|
-
position: "Admin",
|
|
140
|
+
id_user: 28,
|
|
141
|
+
name: "Proveedor",
|
|
142
|
+
last_name: "Colgate",
|
|
143
|
+
email: "ilopez@contentoh.com",
|
|
144
|
+
position: "Prueba Admin",
|
|
159
145
|
telephone: "+523111366336",
|
|
160
146
|
country: "México",
|
|
161
|
-
id_company:
|
|
162
|
-
id_cognito: "
|
|
147
|
+
id_company: 1,
|
|
148
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
163
149
|
birth_Date: null,
|
|
164
150
|
about_me: null,
|
|
165
151
|
zip_code: null,
|
|
166
152
|
address: null,
|
|
167
153
|
job: null,
|
|
168
|
-
id_stripe: "",
|
|
154
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
169
155
|
id_role: 0,
|
|
170
156
|
active: 1,
|
|
171
|
-
is_retailer:
|
|
157
|
+
is_retailer: 0,
|
|
172
158
|
membership: {
|
|
173
|
-
id:
|
|
174
|
-
start_date: "
|
|
175
|
-
end_date: "
|
|
176
|
-
planID:
|
|
177
|
-
plan: "
|
|
178
|
-
name: "Plan
|
|
179
|
-
user_limit: "
|
|
180
|
-
products_limit: "
|
|
159
|
+
id: 38,
|
|
160
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
161
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
162
|
+
planID: 8,
|
|
163
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
164
|
+
name: "Plan Pro",
|
|
165
|
+
user_limit: "20",
|
|
166
|
+
products_limit: "5000",
|
|
181
167
|
type: "Enterprise",
|
|
182
168
|
},
|
|
183
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
169
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1655613379760",
|
|
184
170
|
},
|
|
185
171
|
};
|
|
@@ -946,9 +946,7 @@ export const ProviderProductEdition = ({
|
|
|
946
946
|
const concept = getConcept(tab);
|
|
947
947
|
let serv = servicesData.filter((item) => item.service === concept);
|
|
948
948
|
if (
|
|
949
|
-
["RequestWithContentoh", "RequestWithoutContentoh"].includes(
|
|
950
|
-
origin[concept]
|
|
951
|
-
)
|
|
949
|
+
["RequestWithContentoh", "RequestWithoutContentoh"].includes(origin[tab])
|
|
952
950
|
) {
|
|
953
951
|
serv = serv.filter((f) => f.id_retailer === product.retailer_id);
|
|
954
952
|
}
|