@seniorsistemas/angular-components 17.30.0 → 17.30.1
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 +16 -10
- 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/utils/utils.d.ts +1 -0
- package/esm2015/components/table/table-column/table-columns.component.js +8 -8
- package/esm2015/components/table/table-paging/table-paging.component.js +4 -4
- package/esm2015/components/utils/utils.js +8 -3
- package/esm5/components/table/table-column/table-columns.component.js +8 -8
- package/esm5/components/table/table-paging/table-paging.component.js +4 -4
- package/esm5/components/utils/utils.js +8 -3
- package/fesm2015/seniorsistemas-angular-components.js +16 -11
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +16 -11
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
elementHeight: elementHeight,
|
|
608
608
|
elementWidth: elementWidth,
|
|
609
609
|
elementVerticalCenter: elementVerticalCenter,
|
|
610
|
-
elementHorizontalCenter: elementHorizontalCenter
|
|
610
|
+
elementHorizontalCenter: elementHorizontalCenter,
|
|
611
611
|
};
|
|
612
612
|
};
|
|
613
613
|
var getElementLeftoverContentAvailable = function (element) {
|
|
@@ -621,9 +621,14 @@
|
|
|
621
621
|
freeDistanceToBottom: freeDistanceToBottom,
|
|
622
622
|
freeDistanceToTop: freeDistanceToTop,
|
|
623
623
|
freeDistanceToLeft: freeDistanceToLeft,
|
|
624
|
-
freeDistanceToRight: freeDistanceToRight
|
|
624
|
+
freeDistanceToRight: freeDistanceToRight,
|
|
625
625
|
};
|
|
626
626
|
};
|
|
627
|
+
var deepClone = function (obj) {
|
|
628
|
+
if (typeof structuredClone === "function")
|
|
629
|
+
return structuredClone(obj);
|
|
630
|
+
return JSON.parse(JSON.stringify(obj));
|
|
631
|
+
};
|
|
627
632
|
|
|
628
633
|
var MobileBehavior;
|
|
629
634
|
(function (MobileBehavior) {
|
|
@@ -10377,11 +10382,11 @@
|
|
|
10377
10382
|
};
|
|
10378
10383
|
TableColumnsComponent.prototype.createColumnsTemplate = function (changes) {
|
|
10379
10384
|
var _this = this;
|
|
10380
|
-
var _a, _b, _c;
|
|
10385
|
+
var _a, _b, _c, _d;
|
|
10381
10386
|
this.viewContainerRef.clear();
|
|
10382
10387
|
var columns = ((_a = changes.columns) === null || _a === void 0 ? void 0 : _a.currentValue) || this.columns;
|
|
10383
|
-
var rowValue = ((_b = changes.rowValue) === null || _b === void 0 ? void 0 : _b.currentValue)
|
|
10384
|
-
var locale = ((
|
|
10388
|
+
var rowValue = deepClone((_c = (_b = changes.rowValue) === null || _b === void 0 ? void 0 : _b.currentValue) !== null && _c !== void 0 ? _c : this.rowValue);
|
|
10389
|
+
var locale = ((_d = changes.locale) === null || _d === void 0 ? void 0 : _d.currentValue) || this.locale;
|
|
10385
10390
|
this.formattedColumns = columns.map(function (column) { return _this.getColumnValue(column, rowValue, locale); });
|
|
10386
10391
|
this.cellsData = this.formattedColumns.map(function (column) { return _this.getCellData(column); });
|
|
10387
10392
|
this.viewContainerRef.createEmbeddedView(this.columnsTemplate);
|
|
@@ -10512,14 +10517,14 @@
|
|
|
10512
10517
|
};
|
|
10513
10518
|
TableColumnsComponent.prototype.getColumnScale = function (scale) {
|
|
10514
10519
|
if (typeof scale === "function") {
|
|
10515
|
-
return scale(this.rowValue);
|
|
10520
|
+
return scale(deepClone(this.rowValue));
|
|
10516
10521
|
}
|
|
10517
10522
|
return scale;
|
|
10518
10523
|
};
|
|
10519
10524
|
TableColumnsComponent.prototype.getColumnInfoSign = function (infoSign) {
|
|
10520
10525
|
if (infoSign !== undefined && infoSign !== null) {
|
|
10521
10526
|
if (typeof infoSign === "function") {
|
|
10522
|
-
return infoSign(this.rowValue);
|
|
10527
|
+
return infoSign(deepClone(this.rowValue));
|
|
10523
10528
|
}
|
|
10524
10529
|
return infoSign;
|
|
10525
10530
|
}
|
|
@@ -10528,7 +10533,7 @@
|
|
|
10528
10533
|
TableColumnsComponent.prototype.getColumnTooltip = function (tooltip) {
|
|
10529
10534
|
if (tooltip !== undefined && tooltip !== null) {
|
|
10530
10535
|
if (typeof tooltip === "function") {
|
|
10531
|
-
return tooltip(this.rowValue);
|
|
10536
|
+
return tooltip(deepClone(this.rowValue));
|
|
10532
10537
|
}
|
|
10533
10538
|
return tooltip;
|
|
10534
10539
|
}
|
|
@@ -10743,7 +10748,7 @@
|
|
|
10743
10748
|
});
|
|
10744
10749
|
};
|
|
10745
10750
|
TablePagingComponent.prototype.getCurrentPageRowsToExport = function (columns) {
|
|
10746
|
-
var tableData = this.table.value;
|
|
10751
|
+
var tableData = deepClone(this.table.value);
|
|
10747
10752
|
if (this.loadCurrentPageRecords) {
|
|
10748
10753
|
tableData = this.loadCurrentPageRecords();
|
|
10749
10754
|
}
|
|
@@ -10752,7 +10757,7 @@
|
|
|
10752
10757
|
return this.mapColumnsTranslations(columns, tableData);
|
|
10753
10758
|
};
|
|
10754
10759
|
TablePagingComponent.prototype.getSelectedRowsToExport = function (columns) {
|
|
10755
|
-
var tableData = this.table.selection;
|
|
10760
|
+
var tableData = deepClone(this.table.selection);
|
|
10756
10761
|
if (this.loadSelectedRecords) {
|
|
10757
10762
|
tableData = this.loadSelectedRecords();
|
|
10758
10763
|
}
|
|
@@ -24376,6 +24381,7 @@
|
|
|
24376
24381
|
exports.WorkspaceSwitchModule = WorkspaceSwitchModule;
|
|
24377
24382
|
exports.convertToMomentDateFormat = convertToMomentDateFormat;
|
|
24378
24383
|
exports.countries = countries;
|
|
24384
|
+
exports.deepClone = deepClone;
|
|
24379
24385
|
exports.fallback = fallback;
|
|
24380
24386
|
exports.getElementLeftoverContentAvailable = getElementLeftoverContentAvailable;
|
|
24381
24387
|
exports.getElementPositionInfo = getElementPositionInfo;
|