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.
@@ -2511,7 +2511,7 @@ class BasicFormComponent {
2511
2511
  subscribeAppEvent(eventName, callback) {
2512
2512
  this._eventEmiter.subscribe(eventName, callback);
2513
2513
  }
2514
- openForm(name, data, backData = null, cleanStack = false) {
2514
+ openForm(name, data = null, backData = null, cleanStack = false) {
2515
2515
  var _a, _b, _c, _d, _e, _f, _g, _h;
2516
2516
  let origin = null;
2517
2517
  if (!cleanStack) {
@@ -2591,13 +2591,13 @@ class BasicFormComponent {
2591
2591
  getSubject() { return this.formSubject; }
2592
2592
  getformSubject() { return this.getSubject(); }
2593
2593
  preocessInputParams(params) {
2594
- var _a, _b;
2595
- this.controlToken = (_a = params === null || params === void 0 ? void 0 : params[TOKEN].toString()) !== null && _a !== void 0 ? _a : null;
2594
+ var _a, _b, _c;
2595
+ this.controlToken = (_a = params === null || params === void 0 ? void 0 : params[TOKEN]) !== null && _a !== void 0 ? _a : null;
2596
2596
  const { token, subject, state, fields, extra, originToken } = this.formManagerService.getFormInfo(this.controlToken);
2597
2597
  if (!this.controlToken || this.controlToken !== token) {
2598
2598
  console.log(`No se obtuvo un token válido para abrir el formulario ${this.controlToken}->${token}`);
2599
2599
  }
2600
- this.formSubject = (_b = params === null || params === void 0 ? void 0 : params[SUBJECT].toString()) !== null && _b !== void 0 ? _b : subject;
2600
+ 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;
2601
2601
  this.inputDataFields = fields;
2602
2602
  this.extraData = extra;
2603
2603
  this.originToken = originToken;