@seniorsistemas/angular-components 17.8.0 → 17.8.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 +23 -17
- 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-column/models/column.interface.d.ts +1 -0
- package/components/table/table-column/table-columns.component.d.ts +7 -6
- package/esm2015/components/table/table-column/models/column.interface.js +1 -1
- package/esm2015/components/table/table-column/table-columns.component.js +24 -18
- package/esm5/components/table/table-column/models/column.interface.js +1 -1
- package/esm5/components/table/table-column/table-columns.component.js +24 -18
- package/fesm2015/seniorsistemas-angular-components.js +23 -17
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +23 -17
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -8141,8 +8141,29 @@ var TableColumnsComponent = /** @class */ (function () {
|
|
|
8141
8141
|
}
|
|
8142
8142
|
TableColumnsComponent.prototype.ngOnChanges = function (changes) {
|
|
8143
8143
|
this.validateComponentAttributes(changes);
|
|
8144
|
+
if (changes.columns && changes.columns.currentValue !== changes.columns.previousValue) {
|
|
8145
|
+
this.columns = this.sortColumnsBySequence(changes.columns.currentValue);
|
|
8146
|
+
}
|
|
8144
8147
|
this.createColumnsTemplate(changes);
|
|
8145
8148
|
};
|
|
8149
|
+
TableColumnsComponent.prototype.isArray = function (value) {
|
|
8150
|
+
return Array.isArray(value);
|
|
8151
|
+
};
|
|
8152
|
+
TableColumnsComponent.prototype.getSplittedString = function (column) {
|
|
8153
|
+
var columnValue = column.columnValue, separator = column.separator, uninformed = column.uninformed;
|
|
8154
|
+
if (typeof columnValue === "string") {
|
|
8155
|
+
var splittedString_1 = columnValue.split(separator);
|
|
8156
|
+
return splittedString_1.map(function (string, index) {
|
|
8157
|
+
var isLastIndex = splittedString_1.length - 1 === index;
|
|
8158
|
+
return {
|
|
8159
|
+
value: string,
|
|
8160
|
+
isUninformed: string === uninformed,
|
|
8161
|
+
separator: !isLastIndex ? separator : ""
|
|
8162
|
+
};
|
|
8163
|
+
});
|
|
8164
|
+
}
|
|
8165
|
+
return null;
|
|
8166
|
+
};
|
|
8146
8167
|
TableColumnsComponent.prototype.validateComponentAttributes = function (changes) {
|
|
8147
8168
|
var _a, _b, _c;
|
|
8148
8169
|
if (!this.columns && !((_a = changes.columns) === null || _a === void 0 ? void 0 : _a.currentValue)) {
|
|
@@ -8324,23 +8345,8 @@ var TableColumnsComponent = /** @class */ (function () {
|
|
|
8324
8345
|
TableColumnsComponent.prototype.isLabelObjectArray = function (values) {
|
|
8325
8346
|
return values.filter(function (value) { return (value === null || value === void 0 ? void 0 : value.label) !== null && (value === null || value === void 0 ? void 0 : value.label) !== undefined; }).length === values.length;
|
|
8326
8347
|
};
|
|
8327
|
-
TableColumnsComponent.prototype.
|
|
8328
|
-
return
|
|
8329
|
-
};
|
|
8330
|
-
TableColumnsComponent.prototype.getSplittedString = function (column) {
|
|
8331
|
-
var columnValue = column.columnValue, separator = column.separator, uninformed = column.uninformed;
|
|
8332
|
-
if (typeof columnValue === "string") {
|
|
8333
|
-
var splittedString_1 = columnValue.split(separator);
|
|
8334
|
-
return splittedString_1.map(function (string, index) {
|
|
8335
|
-
var isLastIndex = splittedString_1.length - 1 === index;
|
|
8336
|
-
return {
|
|
8337
|
-
value: string,
|
|
8338
|
-
isUninformed: string === uninformed,
|
|
8339
|
-
separator: !isLastIndex ? separator : ""
|
|
8340
|
-
};
|
|
8341
|
-
});
|
|
8342
|
-
}
|
|
8343
|
-
return null;
|
|
8348
|
+
TableColumnsComponent.prototype.sortColumnsBySequence = function (columns) {
|
|
8349
|
+
return columns.sort(function (a, b) { return a.sequence - b.sequence; });
|
|
8344
8350
|
};
|
|
8345
8351
|
TableColumnsComponent.ctorParameters = function () { return [
|
|
8346
8352
|
{ type: ViewContainerRef },
|