tuain-ng-forms-lib 12.0.64 → 12.0.65

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.
@@ -1300,6 +1300,7 @@
1300
1300
  this.fieldAlignment = (recTableColReceived.alignment != null) ? recTableColReceived.alignment.toLowerCase() : defaultTypeAlignment;
1301
1301
  this.visible = (_a = recTableColReceived === null || recTableColReceived === void 0 ? void 0 : recTableColReceived.visible) !== null && _a !== void 0 ? _a : true;
1302
1302
  this.sortable = (_b = recTableColReceived === null || recTableColReceived === void 0 ? void 0 : recTableColReceived.sortable) !== null && _b !== void 0 ? _b : false;
1303
+ this.sortDirections = (this.sortable) ? ['ascend', 'descend', null] : [null];
1303
1304
  this.fieldFormat = recTableColReceived.format || '';
1304
1305
  this.customAttributes = (_c = recTableColReceived === null || recTableColReceived === void 0 ? void 0 : recTableColReceived.customAttributes) !== null && _c !== void 0 ? _c : {};
1305
1306
  }
@@ -1346,6 +1347,15 @@
1346
1347
  enumerable: false,
1347
1348
  configurable: true
1348
1349
  });
1350
+ RecordTableColumn.prototype.serSortDirections = function (ascend, descend) {
1351
+ this.sortDirections = [null];
1352
+ if (ascend) {
1353
+ this.sortDirections.unshift('ascend');
1354
+ }
1355
+ if (descend) {
1356
+ this.sortDirections.unshift('descend');
1357
+ }
1358
+ };
1349
1359
  return RecordTableColumn;
1350
1360
  }());
1351
1361