@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.
@@ -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.isArray = function (value) {
8328
- return Array.isArray(value);
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 },