contentoh-components-library 21.3.11 → 21.3.13

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 (125) hide show
  1. package/.env.development +0 -5
  2. package/dist/assets/images/generalButton/closeIcon.svg +2 -2
  3. package/dist/components/atoms/ButtonFileChooser/index.js +25 -33
  4. package/dist/components/atoms/ImagePreview/index.js +0 -14
  5. package/dist/components/atoms/ProgressBar/index.js +6 -36
  6. package/dist/components/atoms/ProgressBar/styles.js +3 -11
  7. package/dist/components/molecules/ButtonDownloadFile/index.js +2 -2
  8. package/dist/components/molecules/CustomSelect/CustomSelect.stories.js +22 -21
  9. package/dist/components/molecules/CustomSelect/SelectItem.js +1 -10
  10. package/dist/components/molecules/HeaderTop/index.js +6 -23
  11. package/dist/components/molecules/HeaderTop/styles.js +1 -1
  12. package/dist/components/molecules/ProductNameHeader/index.js +4 -6
  13. package/dist/components/organisms/Chat/ContainerItems/index.js +15 -49
  14. package/dist/components/organisms/Chat/ContentChat/index.js +81 -131
  15. package/dist/components/organisms/Chat/Footer/index.js +25 -33
  16. package/dist/components/organisms/FullProductNameHeader/index.js +0 -1
  17. package/dist/components/pages/Dashboard/index.js +21 -13
  18. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +50 -65
  19. package/dist/components/pages/ProviderProductEdition/index.js +11 -15
  20. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +86 -60
  21. package/dist/components/pages/RetailerProductEdition/index.js +12 -13
  22. package/dist/global-files/fonts.css +0 -6
  23. package/dist/global-files/handle_http.js +7 -9
  24. package/dist/global-files/utils.js +3 -9
  25. package/dist/global-files/variables.js +0 -2
  26. package/dist/index.js +46 -267
  27. package/package.json +1 -12
  28. package/src/assets/images/generalButton/closeIcon.svg +2 -2
  29. package/src/components/atoms/ProgressBar/index.js +5 -40
  30. package/src/components/atoms/ProgressBar/styles.js +0 -24
  31. package/src/components/molecules/CustomSelect/CustomSelect.stories.js +12 -20
  32. package/src/components/molecules/CustomSelect/SelectItem.js +0 -7
  33. package/src/components/molecules/HeaderTop/index.js +8 -29
  34. package/src/components/molecules/HeaderTop/styles.js +0 -4
  35. package/src/components/molecules/ProductNameHeader/index.js +2 -7
  36. package/src/components/organisms/FullProductNameHeader/index.js +0 -1
  37. package/src/components/pages/Dashboard/index.js +37 -31
  38. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +49 -67
  39. package/src/components/pages/ProviderProductEdition/index.js +7 -16
  40. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +85 -62
  41. package/src/components/pages/RetailerProductEdition/index.js +10 -12
  42. package/src/global-files/fonts.css +0 -6
  43. package/src/global-files/variables.js +0 -2
  44. package/src/index.js +0 -17
  45. package/src/assets/images/customSelect/starIcon.svg +0 -14
  46. package/src/assets/images/defaultImages/Spinner.gif +0 -0
  47. package/src/assets/images/defaultImages/notFound.svg +0 -124
  48. package/src/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +0 -47
  49. package/src/components/atoms/ButtonFileChooser/index.js +0 -69
  50. package/src/components/atoms/ButtonFileChooser/styles.js +0 -4
  51. package/src/components/atoms/ButtonV2/ButtonV2.stories.js +0 -53
  52. package/src/components/atoms/ButtonV2/index.js +0 -85
  53. package/src/components/atoms/ButtonV2/styles.js +0 -217
  54. package/src/components/atoms/CustomIcon/CustomIcon.stories.js +0 -36
  55. package/src/components/atoms/CustomIcon/index.js +0 -41
  56. package/src/components/atoms/CustomIcon/styles.js +0 -85
  57. package/src/components/atoms/IconFile/IconFile.stories.js +0 -35
  58. package/src/components/atoms/IconFile/index.js +0 -119
  59. package/src/components/atoms/IconFile/styles.js +0 -67
  60. package/src/components/atoms/Image/Image.stories.js +0 -51
  61. package/src/components/atoms/Image/index.js +0 -55
  62. package/src/components/atoms/Image/styles.js +0 -34
  63. package/src/components/atoms/ImageLink/ImageLink.stories.js +0 -43
  64. package/src/components/atoms/ImageLink/index.js +0 -57
  65. package/src/components/atoms/ImageLink/styles.js +0 -30
  66. package/src/components/atoms/ImagePreview/ImagePreview.stories.js +0 -52
  67. package/src/components/atoms/ImagePreview/index.js +0 -191
  68. package/src/components/atoms/ImagePreview/styles.js +0 -77
  69. package/src/components/atoms/InputText/InputText.stories.js +0 -39
  70. package/src/components/atoms/InputText/index.js +0 -61
  71. package/src/components/atoms/InputText/styles.js +0 -89
  72. package/src/components/atoms/NotFound/NotFound.stories.js +0 -19
  73. package/src/components/atoms/NotFound/index.js +0 -52
  74. package/src/components/atoms/NotFound/styles.js +0 -55
  75. package/src/components/atoms/SelectItemV2/SelectItemV2.stories.js +0 -26
  76. package/src/components/atoms/SelectItemV2/index.js +0 -61
  77. package/src/components/atoms/SelectItemV2/styles.js +0 -90
  78. package/src/components/atoms/Tooltip/Tooltip.stories.js +0 -51
  79. package/src/components/atoms/Tooltip/index.js +0 -59
  80. package/src/components/atoms/Tooltip/styles.js +0 -42
  81. package/src/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +0 -54
  82. package/src/components/molecules/ButtonDownloadFile/index.js +0 -111
  83. package/src/components/molecules/ButtonDownloadFile/styles.js +0 -66
  84. package/src/components/molecules/Dropdown/Dropdown.stories.js +0 -103
  85. package/src/components/molecules/Dropdown/index.js +0 -150
  86. package/src/components/molecules/Dropdown/styles.js +0 -75
  87. package/src/components/molecules/ImageTooltip/ImageTooltip.stories.js +0 -68
  88. package/src/components/molecules/ImageTooltip/index.js +0 -63
  89. package/src/components/molecules/ImageTooltip/styles.js +0 -18
  90. package/src/components/molecules/SelectV2/SelectV2.stories.js +0 -115
  91. package/src/components/molecules/SelectV2/index.js +0 -357
  92. package/src/components/molecules/SelectV2/styles.js +0 -105
  93. package/src/components/molecules/SelectV2/test.js +0 -61
  94. package/src/components/molecules/SelectV2/test.stories.js +0 -10
  95. package/src/components/organisms/Chat/Chat.stories.js +0 -147
  96. package/src/components/organisms/Chat/ChatLists/ChatLists.stories.js +0 -65
  97. package/src/components/organisms/Chat/ChatLists/Rotoplas.jpeg +0 -0
  98. package/src/components/organisms/Chat/ChatLists/THD.png +0 -0
  99. package/src/components/organisms/Chat/ChatLists/index.js +0 -141
  100. package/src/components/organisms/Chat/ChatLists/styles.js +0 -162
  101. package/src/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +0 -142
  102. package/src/components/organisms/Chat/ContainerItems/index.js +0 -550
  103. package/src/components/organisms/Chat/ContainerItems/styles.js +0 -328
  104. package/src/components/organisms/Chat/ContentChat/ContentChat.stories.js +0 -102
  105. package/src/components/organisms/Chat/ContentChat/Rotoplas.jpeg +0 -0
  106. package/src/components/organisms/Chat/ContentChat/THD.png +0 -0
  107. package/src/components/organisms/Chat/ContentChat/index.js +0 -947
  108. package/src/components/organisms/Chat/ContentChat/styles.js +0 -41
  109. package/src/components/organisms/Chat/Footer/Footer.stories.js +0 -22
  110. package/src/components/organisms/Chat/Footer/index.js +0 -669
  111. package/src/components/organisms/Chat/Footer/styles.js +0 -286
  112. package/src/components/organisms/Chat/Header/Header.stories.js +0 -66
  113. package/src/components/organisms/Chat/Header/index.js +0 -94
  114. package/src/components/organisms/Chat/Header/styles.js +0 -49
  115. package/src/components/organisms/Chat/index.js +0 -235
  116. package/src/components/organisms/Chat/styles.js +0 -42
  117. package/src/components/organisms/Modal/Modal.stories.js +0 -55
  118. package/src/components/organisms/Modal/index.js +0 -97
  119. package/src/components/organisms/Modal/styles.js +0 -103
  120. package/src/components/organisms/RangeCalendar/RangeCalendar.stories.js +0 -16
  121. package/src/components/organisms/RangeCalendar/index.js +0 -121
  122. package/src/components/organisms/RangeCalendar/styles.js +0 -883
  123. package/src/global-files/handle_http.js +0 -231
  124. package/src/global-files/handle_userTech.js +0 -7
  125. package/src/global-files/utils.js +0 -322
@@ -28,91 +28,117 @@ exports.RetailerProductEditionDefault = RetailerProductEditionDefault;
28
28
  RetailerProductEditionDefault.args = {
29
29
  tabsSections: {
30
30
  Descripción: true,
31
- "Ficha técnica": true,
32
- Imágenes: true
31
+ "Ficha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V0Y0Bjb250ZW50b2guY29tIn0.Mv1hFVjkF2y__7XP0bXzU2Yq8YMc0go9OgB7all5F4HvfK62I0l9rNRqddlaLjDSCmjvyYI-M8WFwHtdlOL1-liazZr8hhu7_9SciapRzkuuHlWwu0g3EEK54NuHR3-YYRax85hKyN9YoV1MY_fTzT9WUVXWoqf4UPj2SH79g_A0l0lm18ODzzdhXFSpubuI8-Ml7MbXUh8klzl7T55S16sj8zPONpesrA01WsG1PWGqfRZI2g37edj_en2_fIcfi49tQjbSjnQOVOPnkO5TPiyoMtZdS53Rx75iSI8-fP-Z7kD-5TI_KK6vK35PHoG1B-N3EzDUjXek4MowNswnGA",
35
35
  productSelected: {
36
- articleStatus: "AA",
36
+ services: {
37
+ datasheets: 1,
38
+ descriptions: 1,
39
+ images: 1
40
+ },
41
+ orderId: 123,
42
+ status: "PA",
43
+ datasheet_status: "PA",
44
+ prio: "none",
37
45
  version: 3,
38
- missing: {},
46
+ description_status: "PA",
47
+ images_status: "PA",
48
+ statusByRetailer: {
49
+ 4: {
50
+ datasheet: "PA",
51
+ description: "PA",
52
+ images: "PA"
53
+ },
54
+ 5: {
55
+ datasheet: "PA",
56
+ description: "PA",
57
+ images: "PA"
58
+ },
59
+ 6: {
60
+ datasheet: "PA",
61
+ description: "PA",
62
+ images: "PA"
63
+ }
64
+ },
39
65
  article: {
40
- category: "Ventilación y Calefacción|Ventiladores de Techo|Ventiladores de Techo",
41
- company_name: "GRUPO BRAHMA",
66
+ id_article: 127,
67
+ id_category: "700",
68
+ name: "prueba prod flujo",
69
+ upc: "34234353324",
70
+ timestamp: "2022-11-23T23:12:30.000Z",
71
+ id_user: 28,
72
+ status: "NULL",
73
+ active: 1,
42
74
  company_id: 1,
43
- id_category: "2416",
44
- id_article: 221,
45
- name: 'DEMO VENTILADOR DE TECHO TRIBECA 52"',
46
- upc: "147259"
75
+ company_name: "GRUPO BRAHMA",
76
+ country: "México",
77
+ id_order: 123,
78
+ id_datasheet_especialist: 54,
79
+ id_datasheet_facilitator: 52,
80
+ id_description_especialist: 54,
81
+ id_description_facilitator: 52,
82
+ id_images_especialist: 55,
83
+ id_images_facilitator: 53,
84
+ id_auditor: 37,
85
+ id_recepcionist: null,
86
+ category: "Salud y Belleza|Cuidado Facial|Cremas, Mascarillas y Tratamientos",
87
+ missingAttributes: 0,
88
+ missingDescriptions: 0,
89
+ missingImages: 0
47
90
  },
48
- asignations: [],
49
91
  retailers: [{
50
- id: 59,
51
- name: "The Home Depot Platinum",
52
- country: "México",
53
- id_region: 1,
54
- active: 1
55
- }],
56
- retailersAvailable: [{
57
- id: 59,
58
- name: "The Home Depot Platinum",
59
- country: "México",
60
- id_region: 1,
61
- active: 1
92
+ id: 4,
93
+ name: "Walmart Super y Superama"
94
+ }, {
95
+ id: 5,
96
+ name: "Chedraui"
97
+ }, {
98
+ id: 6,
99
+ name: "HEB"
62
100
  }],
63
- upc: "147259",
64
- name: 'DEMO VENTILADOR DE TECHO TRIBECA 52"',
65
- categoryName: "Ventilación y Calefacción|Ventiladores de Techo|Ventiladores de Techo",
66
- id_category: "2416",
67
- id_article: 221,
68
- services: [{
69
- id_article: 221,
70
- service: "datasheet",
71
- quantity: 1,
72
- price: 0,
73
- id_user: 59,
74
- datasheet_common: null,
75
- discount: null
76
- }]
101
+ country: "México",
102
+ upc: "34234353324"
77
103
  },
78
104
  location: {
79
105
  product: {
80
- articleId: 221,
106
+ articleId: 109485,
81
107
  versionId: 3
82
108
  }
83
109
  },
84
110
  user: {
85
- id_user: 59,
86
- name: "The Home",
87
- last_name: "Depot",
88
- email: "cadena.ismael@allfreemail.net",
89
- position: "Admin",
90
- telephone: "+523111366336",
91
- country: "México",
92
- id_company: 817,
93
- id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
111
+ id_user: 51,
112
+ name: "ADMIN PRUEBA",
113
+ last_name: "",
114
+ email: "etc@contentoh.com",
115
+ position: "",
116
+ telephone: "",
117
+ country: "",
118
+ id_company: 2,
119
+ id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
94
120
  birth_Date: null,
95
121
  about_me: "",
96
122
  zip_code: "",
97
123
  address: "",
98
124
  job: "",
99
125
  id_stripe: "",
100
- id_role: 0,
126
+ id_role: 1,
101
127
  active: 1,
102
- is_retailer: 1,
103
- email_notify: 0,
128
+ is_retailer: 0,
129
+ email_notify: 1,
104
130
  is_user_tech: null,
105
131
  membership: {
106
- id: 47,
107
- start_date: "2022-05-25T14:31:12.000Z",
108
- end_date: "2023-05-25T14:31:12.000Z",
109
- planID: 5,
110
- plan: "prod_Ktl6B5Ou2gqTB2",
111
- name: "Plan Pro",
112
- user_limit: "5",
113
- products_limit: "500",
132
+ id: 2,
133
+ start_date: "2021-11-05T02:35:12.000Z",
134
+ end_date: "2022-11-05T02:34:49.000Z",
135
+ planID: 1,
136
+ plan: "prod_KtkvuFFLpOdP6e",
137
+ name: "Plan Free",
138
+ user_limit: "1",
139
+ products_limit: "3",
114
140
  type: "PyMES"
115
141
  },
116
- src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1671735033010"
142
+ src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1669928511679"
117
143
  }
118
144
  };
@@ -318,8 +318,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
318
318
  })),
319
319
  _useState24 = (0, _slicedToArray2.default)(_useState23, 2),
320
320
  percentages = _useState24[0],
321
- setPercentages = _useState24[1]; // const [percentages, setPercentages] = useState([{ retailers: {} }]);
322
-
321
+ setPercentages = _useState24[1];
323
322
 
324
323
  var _useState25 = (0, _react.useState)(0),
325
324
  _useState26 = (0, _slicedToArray2.default)(_useState25, 2),
@@ -463,7 +462,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
463
462
  _services = _context.sent;
464
463
  //Converts the data inside the datasheets object to array
465
464
  setServices(_services);
466
- getServices();
465
+ getServices(); // setActiveRetailer(product?.retailers[0]);
466
+
467
467
  setImages({
468
468
  action: "init",
469
469
  init: _services[2]
@@ -472,7 +472,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
472
472
  (0, _data.getPercentage)({
473
473
  data: [product]
474
474
  }).then(function (res) {
475
- return setPercentages(res[0]);
475
+ return setPercentages(res);
476
476
  });
477
477
  setLoading(false);
478
478
  _context.next = 15;
@@ -681,17 +681,16 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
681
681
  loadAssignations(product);
682
682
  }, [userGroups]);
683
683
  (0, _react.useEffect)(function () {
684
- var _Object$keys, _percentages$retailer, _retailers$;
684
+ var _product$retailers2, _product$retailers$;
685
685
 
686
- var retailers = (product === null || product === void 0 ? void 0 : product.retailersAvailable) || (product === null || product === void 0 ? void 0 : product.retailers);
686
+ product === null || product === void 0 ? void 0 : (_product$retailers2 = product.retailers) === null || _product$retailers2 === void 0 ? void 0 : _product$retailers2.forEach(function (retailer) {
687
+ var _percentages$filter$;
687
688
 
688
- if (((_Object$keys = Object.keys((_percentages$retailer = percentages === null || percentages === void 0 ? void 0 : percentages.retailers) !== null && _percentages$retailer !== void 0 ? _percentages$retailer : {})) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) > 0) {
689
- retailers === null || retailers === void 0 ? void 0 : retailers.forEach(function (retailer) {
690
- retailer["percentage"] = Number(percentages === null || percentages === void 0 ? void 0 : percentages.retailers[retailer.id].percentageRequired);
691
- });
692
- }
693
-
694
- setActivePercentage((_retailers$ = retailers[0]) === null || _retailers$ === void 0 ? void 0 : _retailers$.percentage);
689
+ retailer["percentage"] = percentages === null || percentages === void 0 ? void 0 : (_percentages$filter$ = percentages.filter(function (percent) {
690
+ return (retailer === null || retailer === void 0 ? void 0 : retailer.id) === (percent === null || percent === void 0 ? void 0 : percent.id_retailer);
691
+ })[0]) === null || _percentages$filter$ === void 0 ? void 0 : _percentages$filter$.percentage;
692
+ });
693
+ setActivePercentage(product === null || product === void 0 ? void 0 : (_product$retailers$ = product.retailers[0]) === null || _product$retailers$ === void 0 ? void 0 : _product$retailers$.percentage);
695
694
  }, [percentages]);
696
695
  (0, _react.useEffect)(function () {
697
696
  if (services.length > 0) {
@@ -61,9 +61,3 @@
61
61
  src: url("../assets/fonts/roboto/Roboto-Regular.ttf");
62
62
  font-weight: 400;
63
63
  }
64
-
65
- .prueba {
66
- color: #9e3e26;
67
- color: #b42983;
68
- color: #e7e7e7;
69
- }
@@ -50,8 +50,7 @@ var fetchGET = function fetchGET() {
50
50
  } else {
51
51
  URL += "&".concat(key, "=").concat(paramsQuery[key]);
52
52
  }
53
- }); //console.log("URL:", URL);
54
-
53
+ });
55
54
  _context.next = 6;
56
55
  return _axios.default.get(URL, {
57
56
  headers: paramsHeaders
@@ -164,35 +163,34 @@ var fetchPOST = function fetchPOST() {
164
163
  body = JSON.parse(respHTTPjson.data.body); // verificar si existe error desde el backend
165
164
 
166
165
  if (!(respHTTPjson.data.statusCode !== 200)) {
167
- _context2.next = 10;
166
+ _context2.next = 9;
168
167
  break;
169
168
  }
170
169
 
171
- console.log(body);
172
170
  return _context2.abrupt("return", response({
173
171
  message: (_body$message2 = body.message) !== null && _body$message2 !== void 0 ? _body$message2 : "",
174
172
  errorDetail: (_body$errorDetail2 = body.errorDetail) !== null && _body$errorDetail2 !== void 0 ? _body$errorDetail2 : ""
175
173
  }));
176
174
 
177
- case 10:
175
+ case 9:
178
176
  return _context2.abrupt("return", response({
179
177
  body: body
180
178
  }));
181
179
 
182
- case 13:
183
- _context2.prev = 13;
180
+ case 12:
181
+ _context2.prev = 12;
184
182
  _context2.t0 = _context2["catch"](0);
185
183
  return _context2.abrupt("return", response({
186
184
  message: "Error al guardar los datos",
187
185
  errorDetail: _context2.t0.message
188
186
  }));
189
187
 
190
- case 16:
188
+ case 15:
191
189
  case "end":
192
190
  return _context2.stop();
193
191
  }
194
192
  }
195
- }, _callee2, null, [[0, 13]]);
193
+ }, _callee2, null, [[0, 12]]);
196
194
  }));
197
195
 
198
196
  return function (_x2) {
@@ -226,14 +226,7 @@ obtener el nuevo <height> de la imagen
226
226
  exports.getImageSize = getImageSize;
227
227
 
228
228
  var getResizeImgHeight = function getResizeImgHeight(originalWidth, originalHeight, newWidth) {
229
- /*
230
- console.log(`==================
231
- original width: ${originalWidth}
232
- original height: ${originalHeight}
233
- newWidth: ${newWidth}`);
234
- */
235
- var scale = newWidth * 100 / originalWidth / 100; //console.log("scale:", scale);
236
-
229
+ var scale = newWidth * 100 / originalWidth / 100;
237
230
  return Math.ceil(originalHeight * scale);
238
231
  };
239
232
  /*====================================================================
@@ -397,7 +390,8 @@ exports.getCustomDate = getCustomDate;
397
390
 
398
391
  var getTime = function getTime() {
399
392
  var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
400
- if ([undefined, null, ""].includes(time)) return (0, _moment.default)(new Date()).format("LT");else return (0, _moment.default)(time).format("LT");
393
+ if ([undefined, null, ""].includes(time)) return (0, _moment.default)(new Date()).format("LT");
394
+ return (0, _moment.default)(time).format("LT");
401
395
  };
402
396
  /*====================================================================
403
397
  UTILERIAS PARA EL MANEJO DE VALIDACIONES
@@ -32,8 +32,6 @@ var FontFamily = {
32
32
  Raleway_700: "Raleway-700",
33
33
  Raleway_800: "Raleway-800",
34
34
  Raleway_900: "Raleway-900",
35
- RobotoMedium: "RobotoMedium",
36
- RobotoRegular: "RobotoRegular",
37
35
  Roboto: "Roboto"
38
36
  };
39
37
  exports.FontFamily = FontFamily;