tuain-ng-forms-lib 12.0.70 → 12.0.74

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.
@@ -987,7 +987,7 @@ class TableRecordData {
987
987
  if (operator === operators.LE && fieldValue > values[0]) {
988
988
  return false;
989
989
  }
990
- if (operator === operators.IN && !values.include(fieldValue)) {
990
+ if (operator === operators.IN && !values.includes(fieldValue)) {
991
991
  return false;
992
992
  }
993
993
  if (operator === operators.EQ) {
@@ -1264,10 +1264,16 @@ class RecordTable extends FormElement {
1264
1264
  }
1265
1265
  // Filtros
1266
1266
  setFilterById(id) {
1267
+ if (this.restrictedId === id) {
1268
+ return;
1269
+ }
1267
1270
  this.restrictedId = id;
1268
1271
  this.updateVisibleRecords();
1269
1272
  }
1270
1273
  cleanIdFilter() {
1274
+ if (this.restrictedId === null) {
1275
+ return;
1276
+ }
1271
1277
  this.restrictedId = null;
1272
1278
  this.updateVisibleRecords();
1273
1279
  }
@@ -2527,11 +2533,12 @@ class BasicFormComponent {
2527
2533
  }
2528
2534
  subscribeSectionActivation() {
2529
2535
  const formSections = this._formStructure.sections;
2530
- if (Array.isArray(formSections)) {
2531
- formSections.forEach(section => {
2532
- section.activation.subscribe(code => this.launchSectionActivation(code));
2533
- section.inactivation.subscribe(code => this.launchSectionInactivation(code));
2534
- });
2536
+ const sectionNames = Object.keys(formSections);
2537
+ for (let index = 0; index < sectionNames.length; index++) {
2538
+ const sectionName = sectionNames[index];
2539
+ const section = formSections[sectionName];
2540
+ section.activation.subscribe(code => this.launchSectionActivation(code));
2541
+ section.inactivation.subscribe(code => this.launchSectionInactivation(code));
2535
2542
  }
2536
2543
  }
2537
2544
  subscribeFieldsSubjects() {