@esfaenza/core 15.2.212 → 15.2.213

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.
@@ -1332,18 +1332,20 @@ class EmbeddingComponent extends BaseComponent {
1332
1332
  });
1333
1333
  }
1334
1334
  assignPageLoadParameters() {
1335
- var _a, _b;
1335
+ var _a;
1336
1336
  // Esempio di Complete path: "/pages/embed/crm/leads/leads_search"
1337
1337
  // Esempio di slices: ["", "pages", "embed", "crm", "leads", "leads_search"]
1338
1338
  // Io devo sostanzialmente prendere dal nome del modulo ("crm") in poi. Nome del modulo embeddato eslcuso
1339
1339
  console.log("Embedding...");
1340
1340
  this.Page = this.CompletePath.split("/").slice(4).join("/");
1341
1341
  console.log("Page: " + this.Page);
1342
- this.Pars = (((_a = Object.keys(this.NavigationParameters)) === null || _a === void 0 ? void 0 : _a.length) || 0) == 0 ? "" : ";" + Object.keys(this.NavigationParameters).filter(p => p != "module").map(t => `${t}=${this.NavigationParameters[t]}`).join(";");
1342
+ let navParKeys = (_a = Object.keys(this.NavigationParameters)) === null || _a === void 0 ? void 0 : _a.filter(p => p != "module");
1343
+ this.Pars = ((navParKeys === null || navParKeys === void 0 ? void 0 : navParKeys.length) || 0) == 0 ? "" : ";" + navParKeys.map(t => `${t}=${this.NavigationParameters[t]}`).join(";");
1343
1344
  console.log("Pars: " + this.Pars);
1344
- this.QueryPars = (((_b = Object.keys(this.QueryParameters)) === null || _b === void 0 ? void 0 : _b.length) || 0) == 0 ? "" : "?" + Object.keys(this.QueryParameters).map(t => `${t}=${this.QueryParameters[t]}`).join(";");
1345
+ let queryParKeys = Object.keys(this.QueryParameters);
1346
+ this.QueryPars = ((queryParKeys === null || queryParKeys === void 0 ? void 0 : queryParKeys.length) || 0) == 0 ? "" : "?" + queryParKeys.map(t => `${t}=${this.QueryParameters[t]}`).join(";");
1345
1347
  console.log("QueryPars: " + this.QueryPars);
1346
- let QueryPAramsWithoutIgnoreStorage = Object.keys(this.QueryParameters).map(t => t == "ignoreStorage" ? null : `${t}=${this.QueryParameters[t]}`).filter(t => !!t).join(";");
1348
+ let QueryPAramsWithoutIgnoreStorage = queryParKeys.map(t => t == "ignoreStorage" ? null : `${t}=${this.QueryParameters[t]}`).filter(t => !!t).join(";");
1347
1349
  // Per rimuovere eventuali ignoreStorage se sto navigando a una ricerca
1348
1350
  this.location.replaceState(this.CompletePath + this.Pars + (QueryPAramsWithoutIgnoreStorage ? '?' + QueryPAramsWithoutIgnoreStorage : ""));
1349
1351
  this.EmbeddingSuccesfull = !!this.Page && !!this.Module && !!this.Localhost;