tuain-ng-forms-lib 12.0.71 → 12.0.75

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.
@@ -1490,7 +1490,7 @@
1490
1490
  if (operator === operators.LE && fieldValue > values[0]) {
1491
1491
  return false;
1492
1492
  }
1493
- if (operator === operators.IN && !values.include(fieldValue)) {
1493
+ if (operator === operators.IN && !values.includes(fieldValue)) {
1494
1494
  return false;
1495
1495
  }
1496
1496
  if (operator === operators.EQ) {
@@ -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,7 @@
1660
1661
  enumerable: false,
1661
1662
  configurable: true
1662
1663
  });
1664
+ RecordTable.prototype.setLayout = function (layout) { this.setAttr('layout', layout); };
1663
1665
  RecordTable.prototype.hasActions = function () { return (this._actions.length > 0); };
1664
1666
  RecordTable.prototype.getSelectedRecords = function () { return this.tableRecords.filter(function (rec) { return rec.selected; }).map(function (rec) { return rec.recordId; }); };
1665
1667
  RecordTable.prototype.activateGlobalSearch = function () { this.globalSearch = true; };
@@ -3427,11 +3429,12 @@
3427
3429
  BasicFormComponent.prototype.subscribeSectionActivation = function () {
3428
3430
  var _this = this;
3429
3431
  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
- });
3432
+ var sectionNames = Object.keys(formSections);
3433
+ for (var index = 0; index < sectionNames.length; index++) {
3434
+ var sectionName = sectionNames[index];
3435
+ var section = formSections[sectionName];
3436
+ section.activation.subscribe(function (code) { return _this.launchSectionActivation(code); });
3437
+ section.inactivation.subscribe(function (code) { return _this.launchSectionInactivation(code); });
3435
3438
  }
3436
3439
  };
3437
3440
  BasicFormComponent.prototype.subscribeFieldsSubjects = function () {