contentoh-components-library 21.2.16 → 21.2.17

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.
Files changed (20) hide show
  1. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +195 -53
  2. package/dist/components/pages/RetailerProductEdition/index.js +4 -4
  3. package/package.json +1 -1
  4. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +497 -52
  5. package/src/components/pages/RetailerProductEdition/index.js +4 -3
  6. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -36
  7. package/dist/components/atoms/ListCommercialRetailers/index.js +0 -64
  8. package/dist/components/atoms/ListCommercialRetailers/styles.js +0 -20
  9. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -37
  10. package/dist/components/atoms/MenuCommercialRetailers/index.js +0 -25
  11. package/dist/components/atoms/MenuCommercialRetailers/styles.js +0 -20
  12. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -28
  13. package/dist/components/atoms/MenuProductImage/index.js +0 -88
  14. package/dist/components/atoms/MenuProductImage/styles.js +0 -20
  15. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -25
  16. package/dist/components/molecules/ApproveRejetPanel/index.js +0 -49
  17. package/dist/components/molecules/ApproveRejetPanel/styles.js +0 -18
  18. package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +0 -28
  19. package/dist/components/molecules/SignInLoginCreationApp/index.js +0 -270
  20. package/dist/components/molecules/SignInLoginCreationApp/styles.js +0 -20
@@ -31,55 +31,197 @@ RetailerProductEditionDefault.args = {
31
31
  "Ficha técnica": false,
32
32
  Imágenes: false
33
33
  },
34
- token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI3MTNhNzQ1Ny1m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9ejV7ULoWPO7AJr8MTZh1CVGkAYs1LmCWDAuHw",
35
35
  productSelected: {
36
36
  services: {
37
- datasheets: 1,
38
- descriptions: 1,
37
+ datasheets: 0,
38
+ descriptions: 0,
39
39
  images: 1
40
40
  },
41
- orderId: 127,
42
- status: "AS",
43
- datasheet_status: "AS",
41
+ orderId: 2612,
42
+ status: "CA",
43
+ datasheet_status: "NS",
44
44
  prio: "none",
45
45
  version: 2,
46
- description_status: "AS",
47
- images_status: "AS",
46
+ description_status: "NS",
47
+ images_status: "IE",
48
48
  article: {
49
- id_article: 76186,
50
- id_category: "399",
51
- name: "Croquetas Dog Chow",
52
- upc: "4535354",
53
- timestamp: "2022-07-21T15:20:25.000Z",
54
- id_user: 28,
49
+ id_article: 79732,
50
+ id_category: "42",
51
+ name: "Bolos Naviesferas 6p 96g Bolsa RIC",
52
+ upc: "7500810012130",
53
+ timestamp: "2022-08-22T19:34:16.000Z",
54
+ id_user: 467,
55
55
  status: "NULL",
56
56
  active: 1,
57
- company_id: 1,
58
- company_name: "COMPANY DEV",
59
- country: "México",
60
- id_order: 127,
61
- id_datasheet_especialist: 54,
62
- id_datasheet_facilitator: 52,
63
- id_description_especialist: 54,
64
- id_description_facilitator: 52,
65
- id_images_especialist: 55,
66
- id_images_facilitator: 53,
67
- id_auditor: 30,
57
+ company_id: 229,
58
+ SKU: null,
59
+ Descripcion: null,
60
+ Proveedor: null,
61
+ id_proveedor: 0,
62
+ company_name: "BIMBO SA DE CV",
63
+ country: null,
64
+ id_order: 2612,
65
+ id_datasheet_especialist: null,
66
+ id_datasheet_facilitator: null,
67
+ id_description_especialist: null,
68
+ id_description_facilitator: null,
69
+ id_images_especialist: 427,
70
+ id_images_facilitator: 160,
71
+ id_auditor: 9,
68
72
  id_recepcionist: null,
69
- category: "Mascotas|Alimentos y Premios|Alimento para Perros",
70
- missingAttributes: null,
71
- missingDescriptions: null,
72
- missingImages: null
73
+ category: "Abarrotes|Botanas, Golosinas y Chocolates|Confitería",
74
+ missingAttributes: 208,
75
+ missingDescriptions: 9,
76
+ missingImages: 8
73
77
  },
74
78
  retailers: [{
75
- id: 2,
76
- name: "Walmart Mercancías Generales",
79
+ id: 4,
80
+ name: "Walmart Super y Superama",
81
+ country: "México",
82
+ id_region: 1,
83
+ active: 1,
84
+ percentage: 37.5,
85
+ image: "https://content-management-images.s3.amazonaws.com/retailers/4.png",
86
+ services: ["IE", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
87
+ }, {
88
+ id: 5,
89
+ name: "Chedraui",
90
+ country: "México",
91
+ id_region: 1,
92
+ active: 1,
93
+ percentage: 35.29411764705882,
94
+ image: "https://content-management-images.s3.amazonaws.com/retailers/5.png",
95
+ services: ["NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
96
+ }, {
97
+ id: 6,
98
+ name: "HEB",
99
+ country: "México",
100
+ id_region: 1,
101
+ active: 1,
102
+ percentage: 38.46153846153846,
103
+ image: "https://content-management-images.s3.amazonaws.com/retailers/6.png",
104
+ services: ["NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
105
+ }, {
106
+ id: 9,
107
+ name: "Amazon",
108
+ country: "México",
109
+ id_region: 1,
110
+ active: 1,
111
+ percentage: 34.72222222222222,
112
+ image: "https://content-management-images.s3.amazonaws.com/retailers/9.png",
113
+ services: ["NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
114
+ }, {
115
+ id: 13,
116
+ name: "Soriana",
117
+ country: "México",
118
+ id_region: 1,
119
+ active: 1,
120
+ percentage: 40,
121
+ image: "https://content-management-images.s3.amazonaws.com/retailers/13.png",
122
+ services: ["NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
123
+ }, {
124
+ id: 16,
125
+ name: "Rappi",
126
+ country: "México",
127
+ id_region: 1,
128
+ active: 1,
129
+ percentage: 36.666666666666664,
130
+ image: "https://content-management-images.s3.amazonaws.com/retailers/16.png",
131
+ services: ["NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
132
+ }, {
133
+ id: 17,
134
+ name: "Genérico",
135
+ country: "México",
136
+ id_region: 1,
137
+ active: 1,
138
+ percentage: 34.78260869565217,
139
+ image: "https://content-management-images.s3.amazonaws.com/retailers/17.png",
140
+ services: ["NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
141
+ }, {
142
+ id: 24,
143
+ name: "Alsuper",
77
144
  country: "México",
78
145
  id_region: 1,
79
- active: 1
146
+ active: 1,
147
+ percentage: 37.5,
148
+ image: "https://content-management-images.s3.amazonaws.com/retailers/24.png",
149
+ services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
150
+ }, {
151
+ id: 25,
152
+ name: "Merqueo(México)",
153
+ country: "México",
154
+ id_region: 1,
155
+ active: 1,
156
+ percentage: 100,
157
+ image: "https://content-management-images.s3.amazonaws.com/retailers/25.png",
158
+ services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
159
+ }, {
160
+ id: 28,
161
+ name: "Farmacias Benavides",
162
+ country: "México",
163
+ id_region: 1,
164
+ active: 1,
165
+ percentage: 100,
166
+ image: "https://content-management-images.s3.amazonaws.com/retailers/28.png",
167
+ services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA", "NA"]
168
+ }, {
169
+ id: 39,
170
+ name: "Justo",
171
+ country: "México",
172
+ id_region: 1,
173
+ active: 1,
174
+ percentage: 35.416666666666664,
175
+ image: "https://content-management-images.s3.amazonaws.com/retailers/39.png",
176
+ services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA", "NA"]
177
+ }, {
178
+ id: 44,
179
+ name: "Calimax",
180
+ country: "México",
181
+ id_region: 1,
182
+ active: 1,
183
+ percentage: 100,
184
+ image: "https://content-management-images.s3.amazonaws.com/retailers/44.png",
185
+ services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA", "NA"]
186
+ }, {
187
+ id: 45,
188
+ name: "Casa Ley",
189
+ country: "México",
190
+ id_region: 1,
191
+ active: 1,
192
+ percentage: 100,
193
+ image: "https://content-management-images.s3.amazonaws.com/retailers/45.png",
194
+ services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA", "NA"]
195
+ }, {
196
+ id: 46,
197
+ name: "S-Mart",
198
+ country: "México",
199
+ id_region: 1,
200
+ active: 1,
201
+ percentage: 100,
202
+ image: "https://content-management-images.s3.amazonaws.com/retailers/46.png",
203
+ services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA", "NA"]
204
+ }, {
205
+ id: 56,
206
+ name: "JOKR",
207
+ country: "Mexico",
208
+ id_region: 1,
209
+ active: 1,
210
+ percentage: 100,
211
+ image: "https://content-management-images.s3.amazonaws.com/retailers/56.png",
212
+ services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA", "NA"]
213
+ }, {
214
+ id: 65,
215
+ name: "Súper Aki",
216
+ country: "México",
217
+ id_region: 1,
218
+ active: 1,
219
+ percentage: 100,
220
+ image: "https://content-management-images.s3.amazonaws.com/retailers/65.png",
221
+ services: ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "CA"]
80
222
  }],
81
- country: "México",
82
- upc: "4535354"
223
+ country: null,
224
+ upc: "7500810012130"
83
225
  },
84
226
  location: {
85
227
  product: {
@@ -88,36 +230,36 @@ RetailerProductEditionDefault.args = {
88
230
  }
89
231
  },
90
232
  user: {
91
- id_user: 65,
92
- name: "Oscar",
93
- last_name: "Arenas",
94
- email: "oarenas@contentoh.com",
95
- position: null,
233
+ id_user: 427,
234
+ name: "Especialista Edición",
235
+ last_name: " ",
236
+ email: "kikije1467@mtlcz.com",
237
+ position: "Tester",
96
238
  telephone: null,
97
239
  country: null,
98
- id_company: 2,
99
- id_cognito: "73cc8d40-c841-422a-a2f2-e69d7fe26ebf",
240
+ id_company: 254,
241
+ id_cognito: "c7e5a6a4-2b3f-4d54-af98-9e09a4cbc01e",
100
242
  birth_Date: null,
101
243
  about_me: null,
102
244
  zip_code: null,
103
245
  address: null,
104
246
  job: null,
105
247
  id_stripe: null,
106
- id_role: 1,
248
+ id_role: 8,
107
249
  active: 1,
108
250
  is_retailer: 0,
109
- email_notify: 0,
251
+ email_notify: null,
110
252
  membership: {
111
- id: 2,
112
- start_date: "2021-11-05T02:35:12.000Z",
113
- end_date: "2022-11-05T02:34:49.000Z",
114
- planID: 1,
115
- plan: "prod_KtkvuFFLpOdP6e",
116
- name: "Plan Free",
117
- user_limit: "1",
118
- products_limit: "3",
119
- type: "PyMES"
253
+ id: 750,
254
+ start_date: "2022-01-07T21:32:54.000Z",
255
+ end_date: "2023-01-07T21:32:54.000Z",
256
+ planID: 6,
257
+ plan: "prod_KvGd6YSTJyR3AP",
258
+ name: "Plan Small",
259
+ user_limit: "10",
260
+ products_limit: "1000",
261
+ type: "Enterprise"
120
262
  },
121
- src: "https://content-management-profile.s3.amazonaws.com/id-65/65.png?1661554813155"
263
+ src: "https://content-management-profile-prod.s3.amazonaws.com/id-427/427.png?1661898636177"
122
264
  }
123
265
  };
@@ -1184,7 +1184,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1184
1184
 
1185
1185
  var sendToFacilitator = /*#__PURE__*/function () {
1186
1186
  var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(result) {
1187
- var concept, productTemp, evalStatus, _articleId, orderId, data, res, _message, specialistDone, _JSON$parse5, newStatus, newOrderStatus;
1187
+ var concept, productTemp, evalStatus, _articleId, orderId, data, res, _message, specialistDone, _JSON$parse5, newStatus, newOrderStatus, newArticleStatus;
1188
1188
 
1189
1189
  return _regenerator.default.wrap(function _callee9$(_context9) {
1190
1190
  while (1) {
@@ -1251,8 +1251,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1251
1251
  break;
1252
1252
  }
1253
1253
 
1254
- _JSON$parse5 = JSON.parse(res.data.body), newStatus = _JSON$parse5.newStatus, newOrderStatus = _JSON$parse5.newOrderStatus;
1255
- if (newOrderStatus) productTemp.status = newOrderStatus[orderId];
1254
+ _JSON$parse5 = JSON.parse(res.data.body), newStatus = _JSON$parse5.newStatus, newOrderStatus = _JSON$parse5.newOrderStatus, newArticleStatus = _JSON$parse5.newArticleStatus;
1255
+ if (newOrderStatus) productTemp.status = newArticleStatus[_articleId];
1256
1256
  productTemp["".concat(concept, "_status")] = newStatus;
1257
1257
  _context9.next = 27;
1258
1258
  return loadData();
@@ -1914,7 +1914,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1914
1914
  headerType: "input-name-header"
1915
1915
  }))]
1916
1916
  })
1917
- }), console.log(userAssigned(activeTab), auditorAssigned()), (userAssigned(activeTab) || auditorAssigned()) && product["".concat(getConcept(activeTab), "_status")] !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1917
+ }), (userAssigned(activeTab) || auditorAssigned()) && product["".concat(getConcept(activeTab), "_status")] !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1918
1918
  className: "commentary-box",
1919
1919
  children: [!comment ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1920
1920
  className: "commentary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.2.16",
3
+ "version": "21.2.17",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",