@seniorsistemas/angular-components 17.3.12 → 17.3.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 +8 -6
- 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/esm2015/components/table/table-column/table-columns.component.js +9 -7
- package/esm5/components/table/table-column/table-columns.component.js +9 -7
- package/fesm2015/seniorsistemas-angular-components.js +8 -6
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +8 -6
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -7762,22 +7762,24 @@
|
|
|
7762
7762
|
};
|
|
7763
7763
|
TableColumnsComponent.prototype.validateComponentAttributes = function (changes) {
|
|
7764
7764
|
var _a, _b, _c;
|
|
7765
|
-
if (!((_a = changes.columns) === null || _a === void 0 ? void 0 : _a.currentValue)) {
|
|
7765
|
+
if (!this.columns && !((_a = changes.columns) === null || _a === void 0 ? void 0 : _a.currentValue)) {
|
|
7766
7766
|
throw new Error("The 'columns' attribute must be informed!");
|
|
7767
7767
|
}
|
|
7768
|
-
if (!((_b = changes.rowValue) === null || _b === void 0 ? void 0 : _b.currentValue)) {
|
|
7768
|
+
if (!this.rowValue && !((_b = changes.rowValue) === null || _b === void 0 ? void 0 : _b.currentValue)) {
|
|
7769
7769
|
throw new Error("The 'rowValue' attribute must be informed!");
|
|
7770
7770
|
}
|
|
7771
|
-
if (!((_c = changes.locale) === null || _c === void 0 ? void 0 : _c.currentValue)) {
|
|
7771
|
+
if (!this.locale && !((_c = changes.locale) === null || _c === void 0 ? void 0 : _c.currentValue)) {
|
|
7772
7772
|
throw new Error("The 'locale' attribute must be informed!");
|
|
7773
7773
|
}
|
|
7774
7774
|
};
|
|
7775
7775
|
TableColumnsComponent.prototype.createColumnsTemplate = function (changes) {
|
|
7776
7776
|
var _this = this;
|
|
7777
|
+
var _a, _b, _c;
|
|
7777
7778
|
this.viewContainerRef.clear();
|
|
7778
|
-
var columns = changes.columns.currentValue;
|
|
7779
|
-
var rowValue = changes.rowValue.currentValue;
|
|
7780
|
-
var locale = changes.locale.currentValue;
|
|
7779
|
+
var columns = ((_a = changes.columns) === null || _a === void 0 ? void 0 : _a.currentValue) || this.columns;
|
|
7780
|
+
var rowValue = ((_b = changes.rowValue) === null || _b === void 0 ? void 0 : _b.currentValue) || this.rowValue;
|
|
7781
|
+
var locale = ((_c = changes.locale) === null || _c === void 0 ? void 0 : _c.currentValue) || this.locale;
|
|
7782
|
+
this.formattedColumns = [];
|
|
7781
7783
|
columns.forEach(function (column) { return _this.formattedColumns.push(_this.getColumnValue(column, rowValue, locale)); });
|
|
7782
7784
|
this.viewContainerRef.createEmbeddedView(this.columnsTemplate);
|
|
7783
7785
|
};
|