@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
|
@@ -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)
|
|
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;
|