tuain-ng-forms-lib 12.0.72 → 12.0.76

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.
@@ -1567,6 +1567,7 @@
1567
1567
  _this.setAttr('globalSearch', (_f = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.simpleFilter) !== null && _f !== void 0 ? _f : false);
1568
1568
  _this.setAttr('sorting', { columnName: '', direction: '' });
1569
1569
  _this.setAttr('recordsPerPage', formConfig.defaultRecordsPerPage);
1570
+ _this.setAttr('layout', '');
1570
1571
  if (tableReceived.fields) {
1571
1572
  var columns = [];
1572
1573
  try {
@@ -1660,6 +1661,8 @@
1660
1661
  enumerable: false,
1661
1662
  configurable: true
1662
1663
  });
1664
+ RecordTable.prototype.getLayout = function (layout) { return this.layout; };
1665
+ RecordTable.prototype.setLayout = function (layout) { this.setAttr('layout', layout); };
1663
1666
  RecordTable.prototype.hasActions = function () { return (this._actions.length > 0); };
1664
1667
  RecordTable.prototype.getSelectedRecords = function () { return this.tableRecords.filter(function (rec) { return rec.selected; }).map(function (rec) { return rec.recordId; }); };
1665
1668
  RecordTable.prototype.activateGlobalSearch = function () { this.globalSearch = true; };
@@ -3427,11 +3430,12 @@
3427
3430
  BasicFormComponent.prototype.subscribeSectionActivation = function () {
3428
3431
  var _this = this;
3429
3432
  var formSections = this._formStructure.sections;
3430
- if (Array.isArray(formSections)) {
3431
- formSections.forEach(function (section) {
3432
- section.activation.subscribe(function (code) { return _this.launchSectionActivation(code); });
3433
- section.inactivation.subscribe(function (code) { return _this.launchSectionInactivation(code); });
3434
- });
3433
+ var sectionNames = Object.keys(formSections);
3434
+ for (var index = 0; index < sectionNames.length; index++) {
3435
+ var sectionName = sectionNames[index];
3436
+ var section = formSections[sectionName];
3437
+ section.activation.subscribe(function (code) { return _this.launchSectionActivation(code); });
3438
+ section.inactivation.subscribe(function (code) { return _this.launchSectionInactivation(code); });
3435
3439
  }
3436
3440
  };
3437
3441
  BasicFormComponent.prototype.subscribeFieldsSubjects = function () {