tuain-ng-forms-lib 12.0.7 → 12.0.8

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.
@@ -1869,6 +1869,9 @@ class FormStructureAndData {
1869
1869
  getSections() {
1870
1870
  return this._sections;
1871
1871
  }
1872
+ get visibleSections() {
1873
+ return this._sections.filter(sec => sec.visible);
1874
+ }
1872
1875
  numSections() {
1873
1876
  return this._sections.length;
1874
1877
  }
@@ -2484,6 +2487,7 @@ class BasicFormComponent {
2484
2487
  disableActions(actionArray) { return this.formStructure.disableActions(actionArray); }
2485
2488
  getStates() { return this.formStructure.getStates(); }
2486
2489
  getSections() { return this.formStructure.getSections(); }
2490
+ get visibleSections() { return this.formStructure.visibleSections; }
2487
2491
  getSection(sectionCode) { return this.formStructure.getSection(sectionCode); }
2488
2492
  activateSection(sectionCode) { return this.formStructure.activateSection(sectionCode); }
2489
2493
  getSubSection(sectionCode, subsectionCode) { return this.formStructure.getSubSection(sectionCode, subsectionCode); }
@@ -2568,7 +2572,6 @@ class BasicFormComponent {
2568
2572
  this.controlToken = (_a = params === null || params === void 0 ? void 0 : params[TOKEN]) !== null && _a !== void 0 ? _a : null;
2569
2573
  const { token, subject, state, fields, extra, originToken } = this.formManagerService.getFormInfo(this.controlToken);
2570
2574
  if (!this.controlToken || this.controlToken !== token) {
2571
- console.log(`No se obtuvo un token válido para abrir el formulario ${this.name}:${this.controlToken}->${token}`);
2572
2575
  return;
2573
2576
  }
2574
2577
  this.formSubject = (_c = (_b = params === null || params === void 0 ? void 0 : params[SUBJECT]) !== null && _b !== void 0 ? _b : subject) !== null && _c !== void 0 ? _c : null;