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.
@@ -1052,6 +1052,7 @@ class RecordTable extends FormElement {
1052
1052
  this.setAttr('globalSearch', (_f = tableReceived === null || tableReceived === void 0 ? void 0 : tableReceived.simpleFilter) !== null && _f !== void 0 ? _f : false);
1053
1053
  this.setAttr('sorting', { columnName: '', direction: '' });
1054
1054
  this.setAttr('recordsPerPage', formConfig.defaultRecordsPerPage);
1055
+ this.setAttr('layout', '');
1055
1056
  if (tableReceived.fields) {
1056
1057
  const columns = [];
1057
1058
  for (const columnReceived of tableReceived.fields) {
@@ -1096,6 +1097,8 @@ class RecordTable extends FormElement {
1096
1097
  get recordSelectionTrigger() { return this._recordSelectionTrigger; }
1097
1098
  get getDataTrigger() { return this._getDataTrigger; }
1098
1099
  get attributeChange() { return this._attributeChange; }
1100
+ getLayout(layout) { return this.layout; }
1101
+ setLayout(layout) { this.setAttr('layout', layout); }
1099
1102
  hasActions() { return (this._actions.length > 0); }
1100
1103
  getSelectedRecords() { return this.tableRecords.filter(rec => rec.selected).map(rec => rec.recordId); }
1101
1104
  activateGlobalSearch() { this.globalSearch = true; }
@@ -2533,11 +2536,12 @@ class BasicFormComponent {
2533
2536
  }
2534
2537
  subscribeSectionActivation() {
2535
2538
  const formSections = this._formStructure.sections;
2536
- if (Array.isArray(formSections)) {
2537
- formSections.forEach(section => {
2538
- section.activation.subscribe(code => this.launchSectionActivation(code));
2539
- section.inactivation.subscribe(code => this.launchSectionInactivation(code));
2540
- });
2539
+ const sectionNames = Object.keys(formSections);
2540
+ for (let index = 0; index < sectionNames.length; index++) {
2541
+ const sectionName = sectionNames[index];
2542
+ const section = formSections[sectionName];
2543
+ section.activation.subscribe(code => this.launchSectionActivation(code));
2544
+ section.inactivation.subscribe(code => this.launchSectionInactivation(code));
2541
2545
  }
2542
2546
  }
2543
2547
  subscribeFieldsSubjects() {