@ssplib/react-components 0.0.168 → 0.0.169

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.
@@ -222,6 +222,7 @@ function Table({ columns, fetchFunc, emptyMsg = {
222
222
  });
223
223
  Object.keys(obj).forEach((objKey) => {
224
224
  const values = [];
225
+ console.log("===== downloadCSV ==== 1");
225
226
  obj[objKey].forEach((x) => {
226
227
  let include = true;
227
228
  originalKeys.forEach((k) => {
@@ -233,6 +234,8 @@ function Table({ columns, fetchFunc, emptyMsg = {
233
234
  if (include) {
234
235
  const value = keys
235
236
  .map((k) => {
237
+ console.log(" DADOS 1 ");
238
+ console.log(x);
236
239
  if (k === 'tbRa')
237
240
  return x[k]['NO_CIDADE'];
238
241
  if (k === 'rlEventoData')
@@ -272,6 +275,7 @@ function Table({ columns, fetchFunc, emptyMsg = {
272
275
  const keys = originalKeys.filter((k) => !csvExcludeKeysCSV.includes(k));
273
276
  const header = keys.map((k) => (csvCustomKeyNames[k] ? csvCustomKeyNames[k] : k)).join(',') + '\n';
274
277
  const values = [];
278
+ console.log("===== downloadCSV ==== 2");
275
279
  list.forEach((x) => {
276
280
  let include = true;
277
281
  originalKeys.forEach((k) => {
@@ -283,6 +287,8 @@ function Table({ columns, fetchFunc, emptyMsg = {
283
287
  if (include) {
284
288
  const value = keys
285
289
  .map((k) => {
290
+ console.log(" DADOS 2 ");
291
+ console.log(x);
286
292
  if (k === 'tbRa')
287
293
  return x[k]['NO_CIDADE'];
288
294
  if (k === 'rlEventoData')
@@ -341,10 +347,13 @@ function Table({ columns, fetchFunc, emptyMsg = {
341
347
  return;
342
348
  const keys = Object.keys(list[0]).filter((k) => !csvExcludeKeysAll.includes(k));
343
349
  const header = keys.join(',') + '\n';
350
+ console.log("===== downloadCSVAll ==== 3");
344
351
  const values = list
345
352
  .map((x) => {
346
353
  return keys
347
354
  .map((k) => {
355
+ console.log(" DADOS 3 ");
356
+ console.log(x);
348
357
  if (k === 'tbRa')
349
358
  return x[k]['NO_CIDADE'];
350
359
  if (k === 'rlEventoData')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssplib/react-components",
3
- "version": "0.0.168",
3
+ "version": "0.0.169",
4
4
  "description": "SSP React Components",
5
5
  "main": "index.js",
6
6
  "author": "Pedro Henrique <sr.hudrick@gmail.com>",