@ssplib/react-components 0.0.167 → 0.0.168

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.
@@ -242,6 +242,14 @@ function Table({ columns, fetchFunc, emptyMsg = {
242
242
  item = normalize ? item.normalize('NFD').replace(/[\u0300-\u036f]/g, '') : item;
243
243
  return removeQuotes ? `${item}` : `"${item}"`;
244
244
  }
245
+ else if (typeof x[k] === 'object' &&
246
+ !Array.isArray(x[k]) &&
247
+ x[k] !== null) {
248
+ let strItemAsObject = transformArrayObjectInString(x[k]).slice(1, -1); // k: label (Ex.: jsNaturezaEvento)
249
+ let item = csvUpper && !csvExcludeUpper.includes(k) ? strItemAsObject.toUpperCase() : strItemAsObject;
250
+ item = normalize ? item.normalize('NFD').replace(/[\u0300-\u036f]/g, '') : item;
251
+ return removeQuotes ? `${item}` : `"${item}"`;
252
+ }
245
253
  return x[k];
246
254
  })
247
255
  .join(',');
@@ -346,6 +354,14 @@ function Table({ columns, fetchFunc, emptyMsg = {
346
354
  item = normalize ? item.normalize('NFD').replace(/[\u0300-\u036f]/g, '') : item;
347
355
  return removeQuotes ? `${item}` : `"${item}"`;
348
356
  }
357
+ else if (typeof x[k] === 'object' &&
358
+ !Array.isArray(x[k]) &&
359
+ x[k] !== null) {
360
+ let strItemAsObject = transformArrayObjectInString(x[k]).slice(1, -1); // k: label (Ex.: jsNaturezaEvento)
361
+ let item = csvUpper && !csvExcludeUpper.includes(k) ? strItemAsObject.toUpperCase() : strItemAsObject;
362
+ item = normalize ? item.normalize('NFD').replace(/[\u0300-\u036f]/g, '') : item;
363
+ return removeQuotes ? `${item}` : `"${item}"`;
364
+ }
349
365
  return x[k];
350
366
  })
351
367
  .join(',');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssplib/react-components",
3
- "version": "0.0.167",
3
+ "version": "0.0.168",
4
4
  "description": "SSP React Components",
5
5
  "main": "index.js",
6
6
  "author": "Pedro Henrique <sr.hudrick@gmail.com>",