@seniorsistemas/angular-components 17.17.12 → 17.17.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.
@@ -10316,9 +10316,7 @@
10316
10316
  */
10317
10317
  TablePagingComponent.prototype.mapNumberFormatOptionsExport = function (columns, tableData) {
10318
10318
  var hasNumberFormatOptionsColumns = columns.some(function (column) { return column.numberFormatOptions; });
10319
- var hasNumberFormatOptionsRows = tableData.some(function (rowData) {
10320
- return Object.keys(rowData).some(function (key) { var _a; return (_a = rowData[key].options) === null || _a === void 0 ? void 0 : _a.numberFormatOptions; });
10321
- });
10319
+ var hasNumberFormatOptionsRows = tableData.some(function (rowData) { return Object.keys(rowData).some(function (key) { var _a, _b; return (_b = (_a = rowData[key]) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.numberFormatOptions; }); });
10322
10320
  if (!hasNumberFormatOptionsColumns && !hasNumberFormatOptionsRows)
10323
10321
  return tableData;
10324
10322
  var mappedTableData = __spread(tableData);
@@ -10334,8 +10332,9 @@
10334
10332
  try {
10335
10333
  for (var attributes_1 = (e_2 = void 0, __values(attributes)), attributes_1_1 = attributes_1.next(); !attributes_1_1.done; attributes_1_1 = attributes_1.next()) {
10336
10334
  var attribute = attributes_1_1.value;
10337
- if ((_c = row[attribute].options) === null || _c === void 0 ? void 0 : _c.numberFormatOptions)
10335
+ if ((_c = row[attribute].options) === null || _c === void 0 ? void 0 : _c.numberFormatOptions) {
10338
10336
  continue;
10337
+ }
10339
10338
  var value = row[attribute];
10340
10339
  var mappedValue = numberFormatOptions.style === "percent" ? new BigNumber__default(value).times(100) : new BigNumber__default(value);
10341
10340
  var numberFormat = new Intl.NumberFormat("en-US", __assign(__assign({}, numberFormatOptions), { style: "decimal", useGrouping: false }));
@@ -10365,7 +10364,8 @@
10365
10364
  mappedTableData = tableData.map(function (rowData) {
10366
10365
  var e_3, _a;
10367
10366
  var row = __assign({}, rowData);
10368
- var keysWithNumberFormatOptions = Object.keys(row).filter(function (key) { var _a; return (_a = row[key].options) === null || _a === void 0 ? void 0 : _a.numberFormatOptions; });
10367
+ var keysWithNumberFormatOptions = Object.keys(row)
10368
+ .filter(function (key) { var _a, _b; return (_b = (_a = row[key]) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.numberFormatOptions; });
10369
10369
  try {
10370
10370
  for (var keysWithNumberFormatOptions_1 = __values(keysWithNumberFormatOptions), keysWithNumberFormatOptions_1_1 = keysWithNumberFormatOptions_1.next(); !keysWithNumberFormatOptions_1_1.done; keysWithNumberFormatOptions_1_1 = keysWithNumberFormatOptions_1.next()) {
10371
10371
  var key = keysWithNumberFormatOptions_1_1.value;