@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.
@@ -8287,8 +8287,29 @@
8287
8287
  }
8288
8288
  TableColumnsComponent.prototype.ngOnChanges = function (changes) {
8289
8289
  this.validateComponentAttributes(changes);
8290
+ if (changes.columns && changes.columns.currentValue !== changes.columns.previousValue) {
8291
+ this.columns = this.sortColumnsBySequence(changes.columns.currentValue);
8292
+ }
8290
8293
  this.createColumnsTemplate(changes);
8291
8294
  };
8295
+ TableColumnsComponent.prototype.isArray = function (value) {
8296
+ return Array.isArray(value);
8297
+ };
8298
+ TableColumnsComponent.prototype.getSplittedString = function (column) {
8299
+ var columnValue = column.columnValue, separator = column.separator, uninformed = column.uninformed;
8300
+ if (typeof columnValue === "string") {
8301
+ var splittedString_1 = columnValue.split(separator);
8302
+ return splittedString_1.map(function (string, index) {
8303
+ var isLastIndex = splittedString_1.length - 1 === index;
8304
+ return {
8305
+ value: string,
8306
+ isUninformed: string === uninformed,
8307
+ separator: !isLastIndex ? separator : ""
8308
+ };
8309
+ });
8310
+ }
8311
+ return null;
8312
+ };
8292
8313
  TableColumnsComponent.prototype.validateComponentAttributes = function (changes) {
8293
8314
  var _a, _b, _c;
8294
8315
  if (!this.columns && !((_a = changes.columns) === null || _a === void 0 ? void 0 : _a.currentValue)) {
@@ -8470,23 +8491,8 @@
8470
8491
  TableColumnsComponent.prototype.isLabelObjectArray = function (values) {
8471
8492
  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;
8472
8493
  };
8473
- TableColumnsComponent.prototype.isArray = function (value) {
8474
- return Array.isArray(value);
8475
- };
8476
- TableColumnsComponent.prototype.getSplittedString = function (column) {
8477
- var columnValue = column.columnValue, separator = column.separator, uninformed = column.uninformed;
8478
- if (typeof columnValue === "string") {
8479
- var splittedString_1 = columnValue.split(separator);
8480
- return splittedString_1.map(function (string, index) {
8481
- var isLastIndex = splittedString_1.length - 1 === index;
8482
- return {
8483
- value: string,
8484
- isUninformed: string === uninformed,
8485
- separator: !isLastIndex ? separator : ""
8486
- };
8487
- });
8488
- }
8489
- return null;
8494
+ TableColumnsComponent.prototype.sortColumnsBySequence = function (columns) {
8495
+ return columns.sort(function (a, b) { return a.sequence - b.sequence; });
8490
8496
  };
8491
8497
  TableColumnsComponent.ctorParameters = function () { return [
8492
8498
  { type: core.ViewContainerRef },