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.
@@ -2601,6 +2601,13 @@
2601
2601
  FormStructureAndData.prototype.getSections = function () {
2602
2602
  return this._sections;
2603
2603
  };
2604
+ Object.defineProperty(FormStructureAndData.prototype, "visibleSections", {
2605
+ get: function () {
2606
+ return this._sections.filter(function (sec) { return sec.visible; });
2607
+ },
2608
+ enumerable: false,
2609
+ configurable: true
2610
+ });
2604
2611
  FormStructureAndData.prototype.numSections = function () {
2605
2612
  return this._sections.length;
2606
2613
  };
@@ -3393,6 +3400,11 @@
3393
3400
  BasicFormComponent.prototype.disableActions = function (actionArray) { return this.formStructure.disableActions(actionArray); };
3394
3401
  BasicFormComponent.prototype.getStates = function () { return this.formStructure.getStates(); };
3395
3402
  BasicFormComponent.prototype.getSections = function () { return this.formStructure.getSections(); };
3403
+ Object.defineProperty(BasicFormComponent.prototype, "visibleSections", {
3404
+ get: function () { return this.formStructure.visibleSections; },
3405
+ enumerable: false,
3406
+ configurable: true
3407
+ });
3396
3408
  BasicFormComponent.prototype.getSection = function (sectionCode) { return this.formStructure.getSection(sectionCode); };
3397
3409
  BasicFormComponent.prototype.activateSection = function (sectionCode) { return this.formStructure.activateSection(sectionCode); };
3398
3410
  BasicFormComponent.prototype.getSubSection = function (sectionCode, subsectionCode) { return this.formStructure.getSubSection(sectionCode, subsectionCode); };
@@ -3492,7 +3504,6 @@
3492
3504
  this.controlToken = (_a = params === null || params === void 0 ? void 0 : params[TOKEN]) !== null && _a !== void 0 ? _a : null;
3493
3505
  var _j = this.formManagerService.getFormInfo(this.controlToken), token = _j.token, subject = _j.subject, state = _j.state, fields = _j.fields, extra = _j.extra, originToken = _j.originToken;
3494
3506
  if (!this.controlToken || this.controlToken !== token) {
3495
- console.log("No se obtuvo un token v\u00E1lido para abrir el formulario " + this.name + ":" + this.controlToken + "->" + token);
3496
3507
  return;
3497
3508
  }
3498
3509
  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;