contentoh-components-library 21.3.39 → 21.3.41

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 (23) hide show
  1. package/dist/components/atoms/ButtonV2/styles.js +1 -1
  2. package/dist/components/atoms/Status/styles.js +1 -1
  3. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +18 -23
  4. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +4 -4
  5. package/dist/components/organisms/GlobalModal/styles.js +1 -1
  6. package/dist/components/organisms/TableResizable/index.js +6 -10
  7. package/dist/components/pages/Dashboard/Dashboard.stories.js +31 -50
  8. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +138 -52
  9. package/dist/components/pages/ProviderProductEdition/index.js +191 -202
  10. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +82 -118
  11. package/dist/components/pages/RetailerProductEdition/index.js +1 -1
  12. package/package.json +1 -1
  13. package/src/components/atoms/ButtonV2/styles.js +1 -1
  14. package/src/components/atoms/Status/styles.js +4 -0
  15. package/src/components/atoms/VerticalSideMenuMainPage/index.js +18 -22
  16. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +3 -4
  17. package/src/components/organisms/GlobalModal/styles.js +10 -0
  18. package/src/components/organisms/TableResizable/index.js +0 -2
  19. package/src/components/pages/Dashboard/Dashboard.stories.js +31 -55
  20. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +157 -58
  21. package/src/components/pages/ProviderProductEdition/index.js +119 -121
  22. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +87 -127
  23. package/src/components/pages/RetailerProductEdition/index.js +1 -1
@@ -12,142 +12,102 @@ export const RetailerProductEditionDefault = Template.bind({});
12
12
  RetailerProductEditionDefault.args = {
13
13
  tabsSections: {
14
14
  Descripción: true,
15
- "Ficha técnica": true,
16
- Imágenes: true,
15
+ "Ficha técnica": false,
16
+ Imágenes: false,
17
17
  },
18
18
  token:
19
- "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70yMFEkyMGI9kQs_fz1gxrmrSc2FGefn3B_1Vymq3pQ_S1JrY_syYf88m_GtJKOywEnE6--Ef9lZhFBFKGtqRJ4H8JBa9Xb96uCjAKyEMCSURDlw37pk2RQdULlZPj17Zb6Xrqi2lwrhpI1ByptX3__UoTiZklnTXwIxM4JdU7yuhXLznaEH8NOSd2Jw-CV6FCUbYBHlnRYBQg7B5mwyVKtDQm6QpRgBTBPCvljJJpFjRKUcnon8WZiFXx1qVbkWPt2vCT1TZqqoSLdlP6lA",
20
20
  productSelected: {
21
- services: {
22
- datasheets: 1,
23
- descriptions: 1,
24
- images: 1,
21
+ "orderId": 15160,
22
+ "status": "SAC",
23
+ "datasheet_status": "SAC",
24
+ "prio": "none",
25
+ "version": 7,
26
+ "description_status": "SAC",
27
+ "images_status": "SAC",
28
+ "brand": null,
29
+ "retailerOrder": 1,
30
+ "missing": {
31
+ "datasheet": null,
32
+ "descriptions": null,
33
+ "images": null
25
34
  },
26
- orderId: 14606,
27
- status: "AS",
28
- datasheet_status: "CA",
29
- prio: "none",
30
- version: 3,
31
- description_status: "CA",
32
- images_status: "AS",
33
- statusByRetailer: {
34
- 4: {
35
- datasheet: "AC",
36
- description: "CA",
37
- images: "AS",
38
- },
39
- 5: {
40
- datasheet: "CA",
41
- description: "CA",
42
- images: "AS",
43
- },
44
- 6: {
45
- description: "CA",
46
- images: "AS",
47
- datasheet: "CA",
48
- },
49
- 12: {
50
- datasheet: "CA",
51
- description: "CA",
52
- images: "AS",
53
- },
54
- 17: {
55
- datasheet: "CA",
56
- description: "AC",
57
- images: "AS",
58
- },
35
+ "services": {
36
+ "datasheets": 1,
37
+ "descriptions": 1,
38
+ "images": 1
59
39
  },
60
- article: {
61
- id_article: 37317,
62
- id_category: "157",
63
- name: "Detergente lavatrastres líquido Axion Complete tricloro 1.1 l",
64
- upc: "7509546078915",
65
- timestamp: "2023-03-10T20:19:15.000Z",
66
- id_user: 28,
67
- status: "NULL",
68
- active: 1,
69
- company_id: 1005,
70
- SKU: null,
71
- Descripcion: null,
72
- Proveedor: null,
73
- id_proveedor: 0,
74
- company_name: "CRS Transformaciones",
75
- country: "México",
76
- id_order: 14606,
77
- id_datasheet_especialist: 54,
78
- id_datasheet_facilitator: 52,
79
- id_description_especialist: 54,
80
- id_description_facilitator: 52,
81
- id_images_especialist: 55,
82
- id_images_facilitator: 53,
83
- id_auditor: 37,
84
- id_recepcionist: null,
85
- category:
86
- "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
87
- missingAttributes: 0,
88
- missingDescriptions: 0,
89
- missingImages: 0,
40
+ "article": {
41
+ "category": "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
42
+ "company_name": "Demo",
43
+ "country": "México",
44
+ "id_category": "2366",
45
+ "id_datasheet_especialist": null,
46
+ "id_datasheet_facilitator": null,
47
+ "id_description_especialist": null,
48
+ "id_description_facilitator": null,
49
+ "id_images_especialist": null,
50
+ "id_images_facilitator": null,
51
+ "id_order": 15160,
52
+ "id_article": 39290,
53
+ "id_auditor": 37,
54
+ "name": "MOLDURA MARCO MODER 11X4X244 CM",
55
+ "timestamp": "2023-04-19T21:36:02.000Z",
56
+ "upc": "100030"
90
57
  },
91
- retailers: [
92
- {
93
- id: 4,
94
- name: "Walmart Super y Superama",
95
- },
96
- {
97
- id: 5,
98
- name: "Chedraui",
99
- },
100
- {
101
- id: 6,
102
- name: "HEB",
103
- },
104
- {
105
- id: 12,
106
- name: "La Comer",
107
- },
108
- {
109
- id: 17,
110
- name: "Genérico",
111
- },
58
+ "retailers": [
59
+ {
60
+ "id": 58,
61
+ "name": "The Home Depot Golden"
62
+ },
63
+ {
64
+ "id": 68,
65
+ "name": "The Home Depot Merchants"
66
+ }
112
67
  ],
113
- country: "México",
114
- upc: "7509546078915",
115
- },
68
+ "statusByRetailer": {
69
+ "58": {
70
+ "datasheet": "SAC",
71
+ "description": "SAC",
72
+ "images": "SAC"
73
+ }
74
+ }
75
+ },
116
76
  location: {
117
- product: { articleId: 354, versionId: 3 },
77
+ product: { articleId: 39290, versionId: 7 },
118
78
  },
119
79
  user: {
120
- id_user: 51,
121
- name: "ADMIN PRUEBA",
122
- last_name: "",
123
- email: "etc@contentoh.com",
124
- position: "",
125
- telephone: "",
126
- country: "",
127
- id_company: 2,
128
- id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
129
- birth_Date: null,
130
- about_me: "",
131
- zip_code: "",
132
- address: "",
133
- job: "",
134
- id_stripe: "",
135
- id_role: 1,
136
- active: 1,
137
- is_retailer: 0,
138
- email_notify: 1,
139
- is_user_tech: null,
140
- membership: {
141
- id: 750,
142
- start_date: "2022-01-07T21:32:54.000Z",
143
- end_date: "2023-01-07T21:32:54.000Z",
144
- planID: 6,
145
- plan: "prod_KvGd6YSTJyR3AP",
146
- name: "Plan Small",
147
- user_limit: "10",
148
- products_limit: "1000",
149
- type: "Enterprise",
80
+ "id_user": 51,
81
+ "name": "ADMIN PRUEBA",
82
+ "last_name": "",
83
+ "email": "etc@contentoh.com",
84
+ "position": "",
85
+ "telephone": "",
86
+ "country": "",
87
+ "id_company": 2,
88
+ "id_cognito": "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
89
+ "birth_Date": null,
90
+ "about_me": "",
91
+ "zip_code": "",
92
+ "address": "",
93
+ "job": "",
94
+ "id_stripe": "",
95
+ "id_role": 1,
96
+ "active": 1,
97
+ "is_retailer": 0,
98
+ "email_notify": 1,
99
+ "is_user_tech": null,
100
+ "membership": {
101
+ "id": 2,
102
+ "start_date": "2021-11-05T02:35:12.000Z",
103
+ "end_date": "2022-11-05T02:34:49.000Z",
104
+ "planID": 1,
105
+ "plan": "prod_KtkvuFFLpOdP6e",
106
+ "name": "Plan Free",
107
+ "user_limit": "1",
108
+ "products_limit": "3",
109
+ "type": "PyMES"
150
110
  },
151
- src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1678494637588",
152
- },
111
+ "src": "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1682016291518"
112
+ },
153
113
  };
@@ -752,7 +752,7 @@ export const RetailerProductEdition = ({
752
752
  const adminFacilitatorCanEvaluate =
753
753
  retailerStatus === "IE" && [1, 4, 5].includes(user.id_role);
754
754
  const adminAuditorCanEvaluate =
755
- ["AC", "RP", "RCA"].includes(retailerStatus) &&
755
+ ["AC", "RP", "RCA", "SAC"].includes(retailerStatus) &&
756
756
  [1, 6].includes(user.id_role);
757
757
  return adminFacilitatorCanEvaluate || adminAuditorCanEvaluate;
758
758
  };