tuain-ng-forms-lib 12.0.1 → 12.0.2

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.
@@ -3408,6 +3408,7 @@
3408
3408
  this._eventEmiter.subscribe(eventName, callback);
3409
3409
  };
3410
3410
  BasicFormComponent.prototype.openForm = function (name, data, backData, cleanStack) {
3411
+ if (data === void 0) { data = null; }
3411
3412
  if (backData === void 0) { backData = null; }
3412
3413
  if (cleanStack === void 0) { cleanStack = false; }
3413
3414
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -3502,13 +3503,13 @@
3502
3503
  BasicFormComponent.prototype.getSubject = function () { return this.formSubject; };
3503
3504
  BasicFormComponent.prototype.getformSubject = function () { return this.getSubject(); };
3504
3505
  BasicFormComponent.prototype.preocessInputParams = function (params) {
3505
- var _a, _b;
3506
- this.controlToken = (_a = params === null || params === void 0 ? void 0 : params[TOKEN].toString()) !== null && _a !== void 0 ? _a : null;
3506
+ var _a, _b, _c;
3507
+ this.controlToken = (_a = params === null || params === void 0 ? void 0 : params[TOKEN]) !== null && _a !== void 0 ? _a : null;
3507
3508
  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;
3508
3509
  if (!this.controlToken || this.controlToken !== token) {
3509
3510
  console.log("No se obtuvo un token v\u00E1lido para abrir el formulario " + this.controlToken + "->" + token);
3510
3511
  }
3511
- this.formSubject = (_b = params === null || params === void 0 ? void 0 : params[SUBJECT].toString()) !== null && _b !== void 0 ? _b : subject;
3512
+ 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;
3512
3513
  this.inputDataFields = fields;
3513
3514
  this.extraData = extra;
3514
3515
  this.originToken = originToken;