contentoh-components-library 21.2.6 → 21.2.7

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 (55) hide show
  1. package/.env.development +1 -3
  2. package/.env.production +1 -3
  3. package/dist/components/atoms/FeatureTag/styles.js +1 -1
  4. package/dist/components/atoms/Graphic/Graphic.stories.js +1 -9
  5. package/dist/components/atoms/Graphic/index.js +9 -4
  6. package/dist/components/atoms/Graphic/styles.js +1 -1
  7. package/dist/components/molecules/VersionItem/index.js +11 -1
  8. package/dist/components/organisms/FullProductNameHeader/index.js +1 -1
  9. package/dist/components/organisms/VersionSelector/index.js +2 -1
  10. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +121 -73
  11. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +55 -55
  12. package/dist/components/pages/RetailerProductEdition/index.js +3 -3
  13. package/dist/index.js +0 -13
  14. package/package.json +1 -2
  15. package/src/components/atoms/FeatureTag/styles.js +0 -6
  16. package/src/components/atoms/Graphic/Graphic.stories.js +0 -8
  17. package/src/components/atoms/Graphic/index.js +9 -3
  18. package/src/components/atoms/Graphic/styles.js +2 -1
  19. package/src/components/molecules/VersionItem/index.js +8 -0
  20. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  21. package/src/components/organisms/VersionSelector/index.js +2 -0
  22. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +146 -80
  23. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +58 -58
  24. package/src/components/pages/RetailerProductEdition/index.js +2 -3
  25. package/src/index.js +0 -1
  26. package/dist/components/atoms/MetricCard/MetricCard.stories.js +0 -31
  27. package/dist/components/atoms/MetricCard/index.js +0 -24
  28. package/dist/components/atoms/MetricCard/styles.js +0 -20
  29. package/dist/components/atoms/MetricSelect/MetricSelect.stories.js +0 -46
  30. package/dist/components/atoms/MetricSelect/index.js +0 -37
  31. package/dist/components/atoms/MetricSelect/styles.js +0 -20
  32. package/dist/components/organisms/Calendar/Calendar.stories.js +0 -28
  33. package/dist/components/organisms/Calendar/index.js +0 -33
  34. package/dist/components/organisms/Calendar/styles.js +0 -20
  35. package/dist/components/organisms/DashboardMetric/DashboardMetric.stories.js +0 -45
  36. package/dist/components/organisms/DashboardMetric/index.js +0 -168
  37. package/dist/components/organisms/DashboardMetric/styles.js +0 -20
  38. package/dist/components/pages/Dashboard/Dashboard.stories.js +0 -28
  39. package/dist/components/pages/Dashboard/index.js +0 -292
  40. package/dist/components/pages/Dashboard/styles.js +0 -18
  41. package/src/components/atoms/MetricCard/MetricCard.stories.js +0 -14
  42. package/src/components/atoms/MetricCard/index.js +0 -10
  43. package/src/components/atoms/MetricCard/styles.js +0 -30
  44. package/src/components/atoms/MetricSelect/MetricSelect.stories.js +0 -37
  45. package/src/components/atoms/MetricSelect/index.js +0 -22
  46. package/src/components/atoms/MetricSelect/styles.js +0 -20
  47. package/src/components/organisms/Calendar/Calendar.stories.js +0 -10
  48. package/src/components/organisms/Calendar/index.js +0 -17
  49. package/src/components/organisms/Calendar/styles.js +0 -851
  50. package/src/components/organisms/DashboardMetric/DashboardMetric.stories.js +0 -28
  51. package/src/components/organisms/DashboardMetric/index.js +0 -128
  52. package/src/components/organisms/DashboardMetric/styles.js +0 -60
  53. package/src/components/pages/Dashboard/Dashboard.stories.js +0 -10
  54. package/src/components/pages/Dashboard/index.js +0 -146
  55. package/src/components/pages/Dashboard/styles.js +0 -24
package/.env.development CHANGED
@@ -1,4 +1,5 @@
1
1
  REACT_APP_ARTICLE_DATA_ENDPOINT=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/articles-data
2
+
2
3
  REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/articles-data/datasheets
3
4
  REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/articles-data/descriptions
4
5
  REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/articles-data/images
@@ -15,9 +16,6 @@ REACT_APP_USER_TASKS_ENDPOINT = https://lqrc8jfjqi.execute-api.us-east-1.amazona
15
16
  REACT_APP_CART = https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/cart
16
17
  REACT_APP_RETAILER_REQUEST = https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/retailers-request
17
18
  REACT_APP_VERSIONS_ENDPOINT = https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/versions
18
- REACT_APP_RETAILER_ENDPOINT=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/retailers
19
- REACT_APP_READ_ORDERS_BY_STATUS=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/read-orders-by-status
20
- REACT_APP_READ_REQUIRED_ORDERS=https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/read-required-orders
21
19
 
22
20
  REACT_APP_IMAGES_BUCKET=content-management-images
23
21
  REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
package/.env.production CHANGED
@@ -1,4 +1,5 @@
1
1
  REACT_APP_ARTICLE_DATA_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data
2
+
2
3
  REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/datasheets
3
4
  REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/descriptions
4
5
  REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/images
@@ -15,9 +16,6 @@ REACT_APP_USER_TASKS_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazona
15
16
  REACT_APP_CART = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/cart
16
17
  REACT_APP_RETAILER_REQUEST = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/retailers-request
17
18
  REACT_APP_VERSIONS_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/versions
18
- REACT_APP_RETAILER_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/retailers
19
- REACT_APP_READ_ORDERS_BY_STATUS=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/read-orders-by-status
20
- REACT_APP_READ_REQUIRED_ORDERS=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/read-required-orders
21
19
 
22
20
  REACT_APP_IMAGES_BUCKET=content-management-images-prod
23
21
  REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
@@ -17,6 +17,6 @@ var _variables = require("../../../global-files/variables");
17
17
 
18
18
  var _templateObject;
19
19
 
20
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: #f0eef2;\n border-radius: 3px;\n display: flex;\n width: fit-content;\n height: 26px;\n padding: 5px;\n align-items: center;\n\n .feature-name {\n font-size: 14px;\n font-family: ", ";\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n line-height: 18px;\n color: ", ";\n\n & + * {\n margin-left: 5px;\n }\n }\n .feature-value {\n font-family: ", ";\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n height: 12px;\n letter-spacing: -0.015em;\n color: ", ";\n }\n\n &:last-of-type {\n p {\n font-size: 24px;\n }\n }\n"])), _variables.FontFamily.Raleway_500, _variables.GlobalColors.original_magenta, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
20
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: #f0eef2;\n border-radius: 3px;\n display: flex;\n width: fit-content;\n height: 26px;\n padding: 5px;\n align-items: center;\n\n .feature-name {\n font-size: 14px;\n font-family: ", ";\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n line-height: 18px;\n color: ", ";\n\n & + * {\n margin-left: 5px;\n }\n }\n .feature-value {\n font-family: ", ";\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n height: 12px;\n letter-spacing: -0.015em;\n color: ", ";\n }\n"])), _variables.FontFamily.Raleway_500, _variables.GlobalColors.original_magenta, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
21
21
 
22
22
  exports.Container = Container;
@@ -32,13 +32,5 @@ GraphicDefault.args = {
32
32
  data: [89, 11],
33
33
  backgroundColor: ["#FF0000", "blue"]
34
34
  }]
35
- },
36
- options: {
37
- plugins: {
38
- legend: {
39
- position: "left"
40
- }
41
- }
42
- },
43
- type: "doughnut"
35
+ }
44
36
  };
@@ -14,12 +14,17 @@ require("chart.js/auto");
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
 
16
16
  var Graphic = function Graphic(_ref) {
17
- var data = _ref.data,
18
- type = _ref.type,
19
- options = _ref.options;
17
+ var data = _ref.data;
18
+ var options = {
19
+ plugins: {
20
+ legend: {
21
+ position: "left"
22
+ }
23
+ }
24
+ };
20
25
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
21
26
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactChartjs.Chart, {
22
- type: type,
27
+ type: "doughnut",
23
28
  data: data,
24
29
  options: options
25
30
  })
@@ -13,6 +13,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
13
13
 
14
14
  var _templateObject;
15
15
 
16
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)([""])));
16
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n"])));
17
17
 
18
18
  exports.Container = Container;
@@ -32,7 +32,15 @@ var VersionItem = function VersionItem(_ref) {
32
32
  currentVersion = _ref.currentVersion,
33
33
  _ref$productOwner = _ref.productOwner,
34
34
  productOwner = _ref$productOwner === void 0 ? "owner test" : _ref$productOwner,
35
- setVersion = _ref.setVersion;
35
+ setVersion = _ref.setVersion,
36
+ timestamp = _ref.timestamp;
37
+ var textExportedDate = "";
38
+
39
+ if (timestamp !== null) {
40
+ var exportedDate = new Date(timestamp).toLocaleDateString();
41
+ textExportedDate = "\xD9ltima vez exportado: ".concat(exportedDate);
42
+ }
43
+
36
44
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
37
45
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
38
46
  className: "header",
@@ -52,6 +60,8 @@ var VersionItem = function VersionItem(_ref) {
52
60
  text: "Version " + version,
53
61
  headerType: "input-name-header",
54
62
  color: _variables.GlobalColors.magenta_s2
63
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
64
+ children: textExportedDate
55
65
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
56
66
  children: currentVersion ? "Version actual" : articleStatus ? "Edición Content-oh!" : "Version de " + productOwner
57
67
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
@@ -72,7 +72,7 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
72
72
  feature: "Prov",
73
73
  value: headerData === null || headerData === void 0 ? void 0 : (_headerData$article4 = headerData.article) === null || _headerData$article4 === void 0 ? void 0 : _headerData$article4.company_name
74
74
  }, {
75
- feature: "SKU",
75
+ feature: "UPC",
76
76
  value: (headerData === null || headerData === void 0 ? void 0 : (_headerData$article5 = headerData.article) === null || _headerData$article5 === void 0 ? void 0 : _headerData$article5.upc) || (headerData === null || headerData === void 0 ? void 0 : headerData.upc)
77
77
  }]
78
78
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_AvatarAndValidation.AvatarAndValidation, {
@@ -127,7 +127,8 @@ var VersionSelector = function VersionSelector(_ref) {
127
127
  articleStatus: item.article_status,
128
128
  currentVersion: item.version === currentVersion,
129
129
  productOwner: companyName,
130
- setVersion: setVersion
130
+ setVersion: setVersion,
131
+ timestamp: item.timestamp
131
132
  }, item.version);
132
133
  })
133
134
  })]
@@ -36,98 +36,146 @@ ProviderProductEditionDefault.args = {
36
36
  category: 846,
37
37
  version: 2,
38
38
  productSelected: {
39
- orderId: 2446,
40
- article_status: "AP",
41
- datasheet_status: "AP",
42
- description_status: "AP",
43
- images_status: "ACA",
44
- prio: "none",
45
- version: 2,
46
- brand: null,
39
+ articleStatus: "ACA",
40
+ version: 5,
41
+ missing: {},
47
42
  article: {
48
- category: "Organizadores y Closets|Accesorios de Lavandería|Organizadores de Lavandería",
49
- company_name: "WOMEX SA DE CV",
50
- id_company: 424,
51
- country: null,
52
- id_category: "2522",
53
- id_article: 78773,
54
- name: "RACK PARA ROPA DOBLE NEGRO",
55
- upc: "168462"
43
+ category: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
44
+ company_name: "SIKA MEXICANA S.A. DE C.V.",
45
+ company_id: 383,
46
+ id_category: "2249",
47
+ id_article: 29457,
48
+ name: "SIKA TECHO FRESCO SUPER 15",
49
+ upc: "111187"
56
50
  },
51
+ asignations: [],
57
52
  retailers: [{
58
53
  id: 58,
59
- name: "The Home Depot Golden"
54
+ name: "The Home Depot Golden",
55
+ country: "México",
56
+ id_region: 1,
57
+ active: 1
58
+ }, {
59
+ id: 59,
60
+ name: "The Home Depot Platinum",
61
+ country: "México",
62
+ id_region: 1,
63
+ active: 1
64
+ }, {
65
+ id: 61,
66
+ name: "Home Depot TAB",
67
+ country: "México",
68
+ id_region: 1,
69
+ active: 1
60
70
  }],
61
- services: {
62
- datasheets: 1,
63
- descriptions: 1,
64
- images: 1
65
- },
66
- statusByRetailer: {
67
- 58: {
68
- datasheet: "AP",
69
- description: "AP",
70
- images: "ACA"
71
- }
72
- },
73
- retailersWithService: ["58"],
74
- id_article: 78773,
71
+ percentage: 33.35,
75
72
  retailersAvailable: [{
76
73
  id: 58,
77
- name: "The Home Depot Golden"
74
+ name: "The Home Depot Golden",
75
+ country: "México",
76
+ id_region: 1,
77
+ active: 1
78
+ }, {
79
+ id: 59,
80
+ name: "The Home Depot Platinum",
81
+ country: "México",
82
+ id_region: 1,
83
+ active: 1
84
+ }, {
85
+ id: 61,
86
+ name: "Home Depot TAB",
87
+ country: "México",
88
+ id_region: 1,
89
+ active: 1
90
+ }],
91
+ upc: "111187",
92
+ name: "SIKA TECHO FRESCO SUPER 15",
93
+ categoryName: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
94
+ id_category: "2249",
95
+ id_article: 29457,
96
+ services: [{
97
+ id_article: 29457,
98
+ service: "datasheet",
99
+ quantity: 1,
100
+ price: 0,
101
+ id_user: 1237,
102
+ datasheet_common: null,
103
+ discount: null
78
104
  }]
79
105
  },
80
106
  productToEdit: {
81
- ArticleId: 78773,
82
- idCategory: "2522",
83
- product: {
84
- orderId: 2446,
85
- article_status: "AP",
86
- datasheet_status: "AP",
87
- description_status: "AP",
88
- images_status: "ACA",
89
- prio: "none",
90
- version: 2,
91
- brand: null,
107
+ idCategory: "2249",
108
+ ArticleId: 29457,
109
+ product: [{
110
+ articleStatus: "ACA",
111
+ version: 5,
112
+ missing: {},
92
113
  article: {
93
- category: "Organizadores y Closets|Accesorios de Lavandería|Organizadores de Lavandería",
94
- company_name: "WOMEX SA DE CV",
95
- id_company: 424,
96
- country: null,
97
- id_category: "2522",
98
- id_article: 78773,
99
- name: "RACK PARA ROPA DOBLE NEGRO",
100
- upc: "168462"
114
+ category: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
115
+ company_name: "SIKA MEXICANA S.A. DE C.V.",
116
+ company_id: 383,
117
+ id_category: "2249",
118
+ id_article: 29457,
119
+ name: "SIKA TECHO FRESCO SUPER 15",
120
+ upc: "111187"
101
121
  },
122
+ asignations: [],
102
123
  retailers: [{
103
124
  id: 58,
104
- name: "The Home Depot Golden"
125
+ name: "The Home Depot Golden",
126
+ country: "México",
127
+ id_region: 1,
128
+ active: 1
129
+ }, {
130
+ id: 59,
131
+ name: "The Home Depot Platinum",
132
+ country: "México",
133
+ id_region: 1,
134
+ active: 1
135
+ }, {
136
+ id: 61,
137
+ name: "Home Depot TAB",
138
+ country: "México",
139
+ id_region: 1,
140
+ active: 1
105
141
  }],
106
- services: {
107
- datasheets: 1,
108
- descriptions: 1,
109
- images: 1
110
- },
111
- statusByRetailer: {
112
- 58: {
113
- datasheet: "AP",
114
- description: "AP",
115
- images: "ACA"
116
- }
117
- },
118
- retailersWithService: ["58"],
119
- id_article: 78773,
142
+ percentage: 33.35,
120
143
  retailersAvailable: [{
121
144
  id: 58,
122
- name: "The Home Depot Golden"
145
+ name: "The Home Depot Golden",
146
+ country: "México",
147
+ id_region: 1,
148
+ active: 1
149
+ }, {
150
+ id: 59,
151
+ name: "The Home Depot Platinum",
152
+ country: "México",
153
+ id_region: 1,
154
+ active: 1
155
+ }, {
156
+ id: 61,
157
+ name: "Home Depot TAB",
158
+ country: "México",
159
+ id_region: 1,
160
+ active: 1
161
+ }],
162
+ upc: "111187",
163
+ name: "SIKA TECHO FRESCO SUPER 15",
164
+ categoryName: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
165
+ id_category: "2249",
166
+ id_article: 29457,
167
+ services: [{
168
+ id_article: 29457,
169
+ service: "datasheet",
170
+ quantity: 1,
171
+ price: 0,
172
+ id_user: 1237,
173
+ datasheet_common: null,
174
+ discount: null
123
175
  }]
124
- }
125
- },
126
- location: {
127
- state: {
128
- origin: "Contentoh"
129
- }
176
+ }]
130
177
  },
178
+ location: {},
131
179
  user: {
132
180
  id_user: 1237,
133
181
  name: "The Home",
@@ -31,59 +31,59 @@ RetailerProductEditionDefault.args = {
31
31
  "Ficha técnica": false,
32
32
  Imágenes: false
33
33
  },
34
- token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk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36
- "services": {
37
- "datasheets": 1,
38
- "descriptions": 1,
39
- "images": 1
36
+ services: {
37
+ datasheets: 0,
38
+ descriptions: 0,
39
+ images: 1
40
40
  },
41
- "orderId": 1810,
42
- "status": "RP",
43
- "datasheet_status": "RP",
44
- "prio": "none",
45
- "version": 2,
46
- "description_status": "RP",
47
- "images_status": "RP",
48
- "article": {
49
- "id_article": 68934,
50
- "id_category": "2290",
51
- "name": "SCOTCHBLUE  3PACK MASKING TAPE 24MMX55M",
52
- "upc": "167907",
53
- "timestamp": "2022-06-22T15:44:57.000Z",
54
- "id_user": 704,
55
- "status": "NULL",
56
- "active": 1,
57
- "company_id": 437,
58
- "SKU": null,
59
- "Descripcion": null,
60
- "Proveedor": null,
61
- "id_proveedor": 0,
62
- "company_name": "",
63
- "country": null,
64
- "id_order": 1810,
65
- "id_datasheet_especialist": 1248,
66
- "id_datasheet_facilitator": 1252,
67
- "id_description_especialist": 1248,
68
- "id_description_facilitator": 1252,
69
- "id_images_especialist": 1251,
70
- "id_images_facilitator": 1286,
71
- "id_auditor": 514,
72
- "id_recepcionist": null,
73
- "category": "Pinturas|Herramientas y accesorios para pintar|Cintas",
74
- "missingAttributes": null,
75
- "missingDescriptions": null,
76
- "missingImages": null
41
+ orderId: 1789,
42
+ status: "ACA",
43
+ datasheet_status: "NS",
44
+ prio: "none",
45
+ version: 2,
46
+ description_status: "NS",
47
+ images_status: "ACA",
48
+ article: {
49
+ id_article: 68865,
50
+ id_category: "2999",
51
+ name: "RESIZE",
52
+ upc: "169955",
53
+ timestamp: "2022-06-21T16:03:10.000Z",
54
+ id_user: 1238,
55
+ status: "NULL",
56
+ active: 0,
57
+ company_id: 819,
58
+ SKU: null,
59
+ Descripcion: null,
60
+ Proveedor: null,
61
+ id_proveedor: 0,
62
+ company_name: "The Home Depot Resize",
63
+ country: "México",
64
+ id_order: 1789,
65
+ id_datasheet_especialist: null,
66
+ id_datasheet_facilitator: null,
67
+ id_description_especialist: null,
68
+ id_description_facilitator: null,
69
+ id_images_especialist: 1250,
70
+ id_images_facilitator: 424,
71
+ id_auditor: null,
72
+ id_recepcionist: null,
73
+ category: "Resizing|Resizing|Resizing",
74
+ missingAttributes: null,
75
+ missingDescriptions: null,
76
+ missingImages: null
77
77
  },
78
- "retailers": [{
79
- "id": 58,
80
- "name": "The Home Depot Golden",
81
- "country": "México",
82
- "id_region": 1,
83
- "active": 1
78
+ retailers: [{
79
+ id: 60,
80
+ name: "The Home Depot Resizing",
81
+ country: "México",
82
+ id_region: 1,
83
+ active: 1
84
84
  }],
85
- "country": null,
86
- "upc": "167907"
85
+ country: "México",
86
+ upc: "169955"
87
87
  },
88
88
  location: {
89
89
  product: {
@@ -92,22 +92,22 @@ RetailerProductEditionDefault.args = {
92
92
  }
93
93
  },
94
94
  user: {
95
- id_user: 1248,
96
- name: "Facilitador Textos",
95
+ id_user: 425,
96
+ name: "Auditor QA",
97
97
  last_name: " ",
98
- email: "bayadi1538@mnqlm.com",
98
+ email: "ladiboh785@mi166.com",
99
99
  position: "Tester",
100
100
  telephone: null,
101
101
  country: null,
102
102
  id_company: 254,
103
- id_cognito: "0b66a4a9-7790-4034-a30a-c00808962867",
103
+ id_cognito: "23a3f496-4e38-4e12-9bf5-7f90b77a2f35",
104
104
  birth_Date: null,
105
105
  about_me: null,
106
106
  zip_code: null,
107
107
  address: null,
108
108
  job: null,
109
109
  id_stripe: null,
110
- id_role: 7,
110
+ id_role: 1,
111
111
  active: 1,
112
112
  is_retailer: 0,
113
113
  email_notify: null,
@@ -122,6 +122,6 @@ RetailerProductEditionDefault.args = {
122
122
  products_limit: "1000",
123
123
  type: "Enterprise"
124
124
  },
125
- src: "https://content-management-profile-prod.s3.amazonaws.com/id-423/423.png?1660182839373"
125
+ src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1659649029658"
126
126
  }
127
127
  };
@@ -118,7 +118,7 @@ var reducerImages = function reducerImages(state, action) {
118
118
 
119
119
  case "changeAttrValue":
120
120
  var index = attrForImgs.general.findIndex(function (f) {
121
- return f.id === action.id;
121
+ return f.id = action.id;
122
122
  });
123
123
 
124
124
  if (index !== -1) {
@@ -1101,7 +1101,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1101
1101
  return statusArray.includes(srvActive) && (["RA", "RC"].includes(product === null || product === void 0 ? void 0 : product.status) || srv.filter(function (serv) {
1102
1102
  var _serv$status;
1103
1103
 
1104
- return ["CA"].includes((_serv$status = serv.status) === null || _serv$status === void 0 ? void 0 : _serv$status.replace(/.*\//, ""));
1104
+ return statusArray.includes((_serv$status = serv.status) === null || _serv$status === void 0 ? void 0 : _serv$status.replace(/.*\//, ""));
1105
1105
  }).length === srv.length);
1106
1106
 
1107
1107
  case 4:
@@ -1897,7 +1897,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1897
1897
  headerType: "input-name-header"
1898
1898
  }))]
1899
1899
  })
1900
- }), console.log(userAssigned(activeTab), auditorAssigned()), (userAssigned(activeTab) || auditorAssigned()) && product["".concat(getConcept(activeTab), "_status")] !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1900
+ }), (userAssigned(activeTab) || auditorAssigned()) && product["".concat(getConcept(activeTab), "_status")] !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1901
1901
  className: "commentary-box",
1902
1902
  children: [!comment ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1903
1903
  className: "commentary",
package/dist/index.js CHANGED
@@ -758,19 +758,6 @@ Object.keys(_CustomerType).forEach(function (key) {
758
758
  });
759
759
  });
760
760
 
761
- var _Dashboard = require("./components/pages/Dashboard");
762
-
763
- Object.keys(_Dashboard).forEach(function (key) {
764
- if (key === "default" || key === "__esModule") return;
765
- if (key in exports && exports[key] === _Dashboard[key]) return;
766
- Object.defineProperty(exports, key, {
767
- enumerable: true,
768
- get: function get() {
769
- return _Dashboard[key];
770
- }
771
- });
772
- });
773
-
774
761
  var _EmailResetPassword = require("./components/pages/EmailResetPassword");
775
762
 
776
763
  Object.keys(_EmailResetPassword).forEach(function (key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.2.6",
3
+ "version": "21.2.7",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -22,7 +22,6 @@
22
22
  "prop-types": "^15.7.2",
23
23
  "react": "^17.0.2",
24
24
  "react-chartjs-2": "^4.0.1",
25
- "react-datepicker": "^4.8.0",
26
25
  "react-dom": "^17.0.2",
27
26
  "react-draft-wysiwyg": "^1.14.7",
28
27
  "react-dropzone": "^12.0.4",
@@ -34,10 +34,4 @@ export const Container = styled.div`
34
34
  letter-spacing: -0.015em;
35
35
  color: ${GlobalColors.s4};
36
36
  }
37
-
38
- &:last-of-type {
39
- p {
40
- font-size: 24px;
41
- }
42
- }
43
37
  `;
@@ -18,12 +18,4 @@ GraphicDefault.args = {
18
18
  },
19
19
  ],
20
20
  },
21
- options: {
22
- plugins: {
23
- legend: {
24
- position: "left",
25
- },
26
- },
27
- },
28
- type: "doughnut",
29
21
  };
@@ -2,11 +2,17 @@ import { Container } from "./styles";
2
2
  import { Chart } from "react-chartjs-2";
3
3
  import "chart.js/auto";
4
4
 
5
- export const Graphic = ({ data, type, options }) => {
6
-
5
+ export const Graphic = ({ data }) => {
6
+ const options = {
7
+ plugins: {
8
+ legend: {
9
+ position: "left",
10
+ },
11
+ },
12
+ };
7
13
  return (
8
14
  <Container>
9
- <Chart type={type} data={data} options={options} />
15
+ <Chart type="doughnut" data={data} options={options} />
10
16
  </Container>
11
17
  );
12
18
  };
@@ -1,3 +1,4 @@
1
1
  import styled from "styled-components";
2
2
 
3
- export const Container = styled.div``;
3
+ export const Container = styled.div`
4
+ `;
@@ -13,7 +13,14 @@ export const VersionItem = ({
13
13
  currentVersion,
14
14
  productOwner = "owner test",
15
15
  setVersion,
16
+ timestamp,
16
17
  }) => {
18
+ let textExportedDate = "";
19
+ if (timestamp !== null) {
20
+ const exportedDate = new Date(timestamp).toLocaleDateString();
21
+ textExportedDate = `Ùltima vez exportado: ${exportedDate}`;
22
+ }
23
+
17
24
  return (
18
25
  <Container>
19
26
  <div className="header">
@@ -33,6 +40,7 @@ export const VersionItem = ({
33
40
  headerType={"input-name-header"}
34
41
  color={GlobalColors.magenta_s2}
35
42
  />
43
+ <p>{textExportedDate}</p>
36
44
  <p>
37
45
  {currentVersion
38
46
  ? "Version actual"