contentoh-components-library 21.3.53 → 21.3.54

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 (59) hide show
  1. package/.env.development +2 -0
  2. package/dist/components/atoms/ButtonV2/styles.js +1 -1
  3. package/dist/components/atoms/Status/styles.js +1 -1
  4. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +18 -23
  5. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +4 -4
  6. package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
  7. package/dist/components/molecules/HeaderTop/index.js +68 -11
  8. package/dist/components/organisms/Chat/Chat.stories.js +21 -1
  9. package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
  10. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  11. package/dist/components/organisms/Chat/ContentChat/index.js +343 -191
  12. package/dist/components/organisms/Chat/Footer/index.js +48 -39
  13. package/dist/components/organisms/Chat/index.js +48 -3
  14. package/dist/components/organisms/DashboardMetric/dashboardMetricUtils.js +27 -0
  15. package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
  16. package/dist/components/organisms/GlobalModal/styles.js +1 -1
  17. package/dist/components/organisms/OrderDetail/styles.js +1 -1
  18. package/dist/components/organisms/OrderDetail/utils/Table/styles.js +1 -1
  19. package/dist/components/pages/Dashboard/Dashboard.stories.js +31 -50
  20. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +198 -81
  21. package/dist/components/pages/ProviderProductEdition/index.js +725 -429
  22. package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
  23. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +72 -89
  24. package/dist/components/pages/RetailerProductEdition/index.js +267 -278
  25. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  26. package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
  27. package/dist/index.js +13 -0
  28. package/package.json +7 -6
  29. package/src/components/atoms/ButtonV2/styles.js +1 -1
  30. package/src/components/atoms/Status/styles.js +4 -0
  31. package/src/components/atoms/VerticalSideMenuMainPage/index.js +18 -22
  32. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +3 -4
  33. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  34. package/src/components/molecules/HeaderTop/index.js +52 -6
  35. package/src/components/organisms/Chat/Chat.stories.js +21 -0
  36. package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
  37. package/src/components/organisms/Chat/ContainerItems/styles.js +10 -2
  38. package/src/components/organisms/Chat/ContentChat/index.js +81 -6
  39. package/src/components/organisms/Chat/Footer/index.js +11 -0
  40. package/src/components/organisms/Chat/index.js +47 -3
  41. package/src/components/organisms/DashboardMetric/dashboardMetricUtils.js +18 -1
  42. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  43. package/src/components/organisms/GlobalModal/styles.js +10 -0
  44. package/src/components/organisms/OrderDetail/index.js +1 -0
  45. package/src/components/organisms/OrderDetail/styles.js +1 -1
  46. package/src/components/organisms/OrderDetail/utils/Table/styles.js +0 -1
  47. package/src/components/organisms/TableResizable/TableResizable.stories.js +17 -0
  48. package/src/components/organisms/TableResizable/index.js +119 -0
  49. package/src/components/organisms/TableResizable/styles.js +133 -0
  50. package/src/components/organisms/TableResizable/utils.js +46 -0
  51. package/src/components/pages/Dashboard/Dashboard.stories.js +31 -55
  52. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +214 -88
  53. package/src/components/pages/ProviderProductEdition/index.js +323 -160
  54. package/src/components/pages/ProviderProductEdition/styles.js +5 -1
  55. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +75 -91
  56. package/src/components/pages/RetailerProductEdition/index.js +111 -137
  57. package/src/components/pages/RetailerProductEdition/styles.js +4 -0
  58. package/src/components/pages/RetailerProductEdition/utils.js +37 -0
  59. package/src/index.js +1 -0
@@ -16,47 +16,195 @@ ProviderProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "ey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iJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
20
20
  articleId: 238,
21
21
  category: 846,
22
22
  version: 2,
23
23
  productSelected: {
24
- category: "Iluminación|Lámparas de Interior|Pie y Pedestal",
25
- company_name: "Demo",
26
- company_id: 923,
27
- id_category: "2676",
28
- id_article: 17163,
29
- name: "Eglo 95055",
30
- upc: "165033",
31
- version: 1,
24
+ orderId: 15142,
25
+ status: "AA",
26
+ datasheet_status: "AA",
27
+ prio: "none",
28
+ version: 3,
29
+ description_status: "AA",
30
+ images_status: "AA",
31
+ brand: "Garnier",
32
+ retailerOrder: 0,
33
+ missing: {
34
+ datasheet: null,
35
+ descriptions: null,
36
+ images: null,
37
+ },
38
+ services: {
39
+ datasheets: 1,
40
+ descriptions: 1,
41
+ images: 1,
42
+ },
43
+ article: {
44
+ category:
45
+ "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
46
+ company_name: "GRUPO BRAHMA",
47
+ country: "México",
48
+ id_category: "697",
49
+ id_datasheet_especialist: 54,
50
+ id_datasheet_facilitator: 52,
51
+ id_description_especialist: 54,
52
+ id_description_facilitator: 52,
53
+ id_images_especialist: 55,
54
+ id_images_facilitator: 53,
55
+ id_order: 15142,
56
+ id_article: 39270,
57
+ id_auditor: 37,
58
+ name: "Acondicionador Garnier Fructis 650 ml",
59
+ timestamp: "2023-03-27T18:37:48.000Z",
60
+ upc: "750955287656712",
61
+ },
62
+ retailers: [
63
+ {
64
+ id: 12,
65
+ name: "La Comer",
66
+ },
67
+ {
68
+ id: 29,
69
+ name: "Farmacias del Ahorro",
70
+ },
71
+ {
72
+ id: 63,
73
+ name: "DAX",
74
+ },
75
+ ],
76
+ statusByRetailer: {
77
+ 12: {
78
+ datasheet: "AA",
79
+ description: "AA",
80
+ images: "AA",
81
+ },
82
+ 29: {
83
+ datasheet: "AA",
84
+ description: "AA",
85
+ images: "AA",
86
+ },
87
+ 63: {
88
+ datasheet: "AA",
89
+ description: "AA",
90
+ images: "AA",
91
+ },
92
+ },
93
+ checked: false,
32
94
  retailersAvailable: [
33
95
  {
34
- id: 68,
35
- name: "The Home Depot Merchants",
96
+ id: 12,
97
+ name: "La Comer",
98
+ },
99
+ {
100
+ id: 29,
101
+ name: "Farmacias del Ahorro",
102
+ },
103
+ {
104
+ id: 63,
105
+ name: "DAX",
36
106
  },
37
107
  ],
108
+ categoryName:
109
+ "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
110
+ upc: "750955287656712",
111
+ id_article: 39270,
112
+ id_order: 15142,
38
113
  },
39
114
  productToEdit: {
40
- idCategory: "2676",
41
- ArticleId: 17163,
42
- product: [
43
- {
44
- category: "Iluminación|Lámparas de Interior|Pie y Pedestal",
45
- company_name: "Demo",
46
- company_id: 923,
47
- id_category: "2676",
48
- id_article: 17163,
49
- name: "Eglo 95055",
50
- upc: "165033",
51
- version: 1,
52
- retailersAvailable: [
53
- {
54
- id: 68,
55
- name: "The Home Depot Merchants",
56
- },
57
- ],
115
+ ArticleId: 39270,
116
+ idCategory: "697",
117
+ product: {
118
+ orderId: 15142,
119
+ status: "AA",
120
+ datasheet_status: "AA",
121
+ prio: "none",
122
+ version: 3,
123
+ description_status: "AA",
124
+ images_status: "AA",
125
+ brand: "Garnier",
126
+ retailerOrder: 0,
127
+ missing: {
128
+ datasheet: null,
129
+ descriptions: null,
130
+ images: null,
58
131
  },
59
- ],
132
+ services: {
133
+ datasheets: 1,
134
+ descriptions: 1,
135
+ images: 1,
136
+ },
137
+ article: {
138
+ category:
139
+ "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
140
+ company_name: "GRUPO BRAHMA",
141
+ country: "México",
142
+ id_category: "697",
143
+ id_datasheet_especialist: 54,
144
+ id_datasheet_facilitator: 52,
145
+ id_description_especialist: 54,
146
+ id_description_facilitator: 52,
147
+ id_images_especialist: 55,
148
+ id_images_facilitator: 53,
149
+ id_order: 15142,
150
+ id_article: 39270,
151
+ id_auditor: 37,
152
+ name: "Acondicionador Garnier Fructis 650 ml",
153
+ timestamp: "2023-03-27T18:37:48.000Z",
154
+ upc: "750955287656712",
155
+ },
156
+ retailers: [
157
+ {
158
+ id: 12,
159
+ name: "La Comer",
160
+ },
161
+ {
162
+ id: 29,
163
+ name: "Farmacias del Ahorro",
164
+ },
165
+ {
166
+ id: 63,
167
+ name: "DAX",
168
+ },
169
+ ],
170
+ statusByRetailer: {
171
+ 12: {
172
+ datasheet: "AA",
173
+ description: "AA",
174
+ images: "AA",
175
+ },
176
+ 29: {
177
+ datasheet: "AA",
178
+ description: "AA",
179
+ images: "AA",
180
+ },
181
+ 63: {
182
+ datasheet: "AA",
183
+ description: "AA",
184
+ images: "AA",
185
+ },
186
+ },
187
+ checked: false,
188
+ retailersAvailable: [
189
+ {
190
+ id: 12,
191
+ name: "La Comer",
192
+ },
193
+ {
194
+ id: 29,
195
+ name: "Farmacias del Ahorro",
196
+ },
197
+ {
198
+ id: 63,
199
+ name: "DAX",
200
+ },
201
+ ],
202
+ categoryName:
203
+ "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
204
+ upc: "750955287656712",
205
+ id_article: 39270,
206
+ id_order: 15142,
207
+ },
60
208
  },
61
209
  location: {
62
210
  pathname: "/EditProducts",
@@ -64,85 +212,63 @@ ProviderProductEditionDefault.args = {
64
212
  hash: "",
65
213
  state: {
66
214
  withChat: true,
215
+ chatType: "product_status",
216
+ origin: "RequestWithContentoh",
67
217
  },
68
218
  key: "24vwut",
69
219
  },
70
220
  user: {
71
- id_user: 59,
72
- name: "Cadena",
73
- last_name: "Comercial",
74
- email: "cadena.ismael@allfreemail.net",
75
- position: "Admin",
221
+ id_user: 28,
222
+ name: "Ismael",
223
+ last_name: "López",
224
+ email: "ilopez@contentoh.com",
225
+ position: "Test States",
76
226
  telephone: "+523111366336",
77
227
  country: "México",
78
- id_company: 817,
79
- id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
228
+ id_company: 1,
229
+ id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
80
230
  birth_Date: null,
81
231
  about_me: "",
82
232
  zip_code: "",
83
233
  address: "",
84
234
  job: "",
85
- id_stripe: "",
235
+ id_stripe: "cus_KuEt6R6vwmN09f",
86
236
  id_role: 0,
87
237
  active: 1,
88
- is_retailer: 1,
89
- email_notify: 0,
90
- is_user_tech: null,
238
+ is_retailer: 0,
239
+ email_notify: 1,
240
+ is_user_tech: "ADMIN-AS",
91
241
  membership: {
92
- id: 47,
93
- start_date: "2022-05-25T14:31:12.000Z",
94
- end_date: "2023-05-25T14:31:12.000Z",
95
- planID: 5,
96
- plan: "prod_Ktl6B5Ou2gqTB2",
242
+ id: 76,
243
+ start_date: "2022-01-18T17:25:35.000Z",
244
+ end_date: "2023-01-18T17:25:35.000Z",
245
+ planID: 8,
246
+ plan: "prod_KtlhECVSFG2iro",
97
247
  name: "Plan Pro",
98
- user_limit: "5",
99
- products_limit: "500",
100
- type: "PyMES",
248
+ user_limit: "20",
249
+ products_limit: "5000",
250
+ type: "Enterprise",
101
251
  },
102
- src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1680038627077",
252
+ src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1683926822779",
103
253
  },
104
254
  company: {
105
- id_company: 817,
106
- trade_name: "Retailer acc",
107
- company_name: "Retailer acc",
108
- rfc: "ASER12345",
109
- adress: "Av. Insurgentes",
110
- about_company: null,
111
- telephone: null,
112
- web_site: null,
113
- zip_code: null,
255
+ id_company: 1,
256
+ trade_name: "GRUPO BRAHMA",
257
+ company_name: "GRUPO BRAHMA",
258
+ rfc: "XAXX010101000",
259
+ adress: "AA",
260
+ about_company: "",
261
+ telephone: "",
262
+ web_site: "",
263
+ zip_code: "",
114
264
  email: null,
115
- social_link: null,
116
- is_retailer: 1,
117
- financedRetailers: [
118
- {
119
- id: 68,
120
- name: "The Home Depot Merchants",
121
- country: "México",
122
- id_region: 1,
123
- active: 1,
124
- },
125
- ],
265
+ social_link: "",
266
+ is_retailer: 0,
126
267
  retailers: [
127
268
  {
128
- id: 59,
129
- name: "The Home Depot Platinum",
130
- country: "México",
131
- },
132
- {
133
- id: 60,
134
- name: "The Home Depot Resizing",
135
- country: "México",
136
- },
137
- {
138
- id: 61,
139
- name: "Home Depot TAB",
140
- country: "México",
141
- },
142
- {
143
- id: 68,
144
- name: "The Home Depot Merchants",
145
- country: "México",
269
+ id: null,
270
+ name: null,
271
+ country: null,
146
272
  },
147
273
  ],
148
274
  },