@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.
@@ -10171,9 +10171,7 @@ var TablePagingComponent = /** @class */ (function () {
10171
10171
  */
10172
10172
  TablePagingComponent.prototype.mapNumberFormatOptionsExport = function (columns, tableData) {
10173
10173
  var hasNumberFormatOptionsColumns = columns.some(function (column) { return column.numberFormatOptions; });
10174
- var hasNumberFormatOptionsRows = tableData.some(function (rowData) {
10175
- return Object.keys(rowData).some(function (key) { var _a; return (_a = rowData[key].options) === null || _a === void 0 ? void 0 : _a.numberFormatOptions; });
10176
- });
10174
+ 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; }); });
10177
10175
  if (!hasNumberFormatOptionsColumns && !hasNumberFormatOptionsRows)
10178
10176
  return tableData;
10179
10177
  var mappedTableData = __spread(tableData);
@@ -10189,8 +10187,9 @@ var TablePagingComponent = /** @class */ (function () {
10189
10187
  try {
10190
10188
  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()) {
10191
10189
  var attribute = attributes_1_1.value;
10192
- if ((_c = row[attribute].options) === null || _c === void 0 ? void 0 : _c.numberFormatOptions)
10190
+ if ((_c = row[attribute].options) === null || _c === void 0 ? void 0 : _c.numberFormatOptions) {
10193
10191
  continue;
10192
+ }
10194
10193
  var value = row[attribute];
10195
10194
  var mappedValue = numberFormatOptions.style === "percent" ? new BigNumber(value).times(100) : new BigNumber(value);
10196
10195
  var numberFormat = new Intl.NumberFormat("en-US", __assign(__assign({}, numberFormatOptions), { style: "decimal", useGrouping: false }));
@@ -10220,7 +10219,8 @@ var TablePagingComponent = /** @class */ (function () {
10220
10219
  mappedTableData = tableData.map(function (rowData) {
10221
10220
  var e_3, _a;
10222
10221
  var row = __assign({}, rowData);
10223
- var keysWithNumberFormatOptions = Object.keys(row).filter(function (key) { var _a; return (_a = row[key].options) === null || _a === void 0 ? void 0 : _a.numberFormatOptions; });
10222
+ var keysWithNumberFormatOptions = Object.keys(row)
10223
+ .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; });
10224
10224
  try {
10225
10225
  for (var keysWithNumberFormatOptions_1 = __values(keysWithNumberFormatOptions), keysWithNumberFormatOptions_1_1 = keysWithNumberFormatOptions_1.next(); !keysWithNumberFormatOptions_1_1.done; keysWithNumberFormatOptions_1_1 = keysWithNumberFormatOptions_1.next()) {
10226
10226
  var key = keysWithNumberFormatOptions_1_1.value;