@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.
- package/bundles/seniorsistemas-angular-components.umd.js +5 -5
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/table/table-paging/table-paging.component.d.ts +9 -12
- package/esm2015/components/table/table-paging/table-paging.component.js +6 -4
- package/esm5/components/table/table-paging/table-paging.component.js +6 -6
- package/fesm2015/seniorsistemas-angular-components.js +5 -3
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +5 -5
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -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)
|
|
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;
|