@esfaenza/core 15.2.280 → 15.2.281

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.
@@ -1327,7 +1327,6 @@ class EmbeddingComponent extends BaseComponent {
1327
1327
  this.EmbeddingSuccesfull = true;
1328
1328
  }
1329
1329
  ngOnInit() {
1330
- debugger;
1331
1330
  let route = this.injector.get(ActivatedRoute);
1332
1331
  this.Module = route.snapshot.params["module"];
1333
1332
  this.Localhost = this.LocalhostModuleMap[this.Module];
@@ -1342,23 +1341,27 @@ class EmbeddingComponent extends BaseComponent {
1342
1341
  });
1343
1342
  }
1344
1343
  assignPageLoadParameters() {
1345
- var _a;
1346
1344
  // Esempio di Complete path: "/pages/embed/crm/leads/leads_search"
1347
1345
  // Esempio di slices: ["", "pages", "embed", "crm", "leads", "leads_search"]
1348
1346
  // Io devo sostanzialmente prendere dal nome del modulo ("crm") in poi. Nome del modulo embeddato eslcuso
1349
1347
  console.log("Embedding...");
1350
- this.Page = this.CompletePath.split("/").slice(4).join("/");
1351
- console.log("Page: " + this.Page);
1352
- let navParKeys = (_a = Object.keys(this.NavigationParameters)) === null || _a === void 0 ? void 0 : _a.filter(p => p != "module");
1353
- this.Pars = ((navParKeys === null || navParKeys === void 0 ? void 0 : navParKeys.length) || 0) == 0 ? "" : ";" + navParKeys.map(t => `${t}=${this.NavigationParameters[t]}`).join(";");
1354
- console.log("Pars: " + this.Pars);
1355
- let queryParKeys = Object.keys(this.QueryParameters);
1356
- this.QueryPars = ((queryParKeys === null || queryParKeys === void 0 ? void 0 : queryParKeys.length) || 0) == 0 ? "" : "?" + queryParKeys.map(t => `${t}=${this.QueryParameters[t]}`).join(";");
1357
- console.log("QueryPars: " + this.QueryPars);
1358
- let QueryPAramsWithoutIgnoreStorage = queryParKeys.map(t => t == "ignoreStorage" ? null : `${t}=${this.QueryParameters[t]}`).filter(t => !!t).join(";");
1359
- // Per rimuovere eventuali ignoreStorage se sto navigando a una ricerca
1360
- this.location.replaceState(this.CompletePath + this.Pars + (QueryPAramsWithoutIgnoreStorage ? '?' + QueryPAramsWithoutIgnoreStorage : ""));
1361
- this.EmbeddingSuccesfull = !!this.Page && !!this.Module && !!this.Localhost;
1348
+ this.EmbeddingSuccesfull = false;
1349
+ // Per seccare e ricreare il componente che altrimenti non prenderebbe gli input nuovi
1350
+ requestAnimationFrame(() => {
1351
+ var _a;
1352
+ this.Page = this.CompletePath.split("/").slice(4).join("/");
1353
+ console.log("Page: " + this.Page);
1354
+ let navParKeys = (_a = Object.keys(this.NavigationParameters)) === null || _a === void 0 ? void 0 : _a.filter(p => p != "module");
1355
+ this.Pars = ((navParKeys === null || navParKeys === void 0 ? void 0 : navParKeys.length) || 0) == 0 ? "" : ";" + navParKeys.map(t => `${t}=${this.NavigationParameters[t]}`).join(";");
1356
+ console.log("Pars: " + this.Pars);
1357
+ let queryParKeys = Object.keys(this.QueryParameters);
1358
+ this.QueryPars = ((queryParKeys === null || queryParKeys === void 0 ? void 0 : queryParKeys.length) || 0) == 0 ? "" : "?" + queryParKeys.map(t => `${t}=${this.QueryParameters[t]}`).join(";");
1359
+ console.log("QueryPars: " + this.QueryPars);
1360
+ let QueryPAramsWithoutIgnoreStorage = queryParKeys.map(t => t == "ignoreStorage" ? null : `${t}=${this.QueryParameters[t]}`).filter(t => !!t).join(";");
1361
+ // Per rimuovere eventuali ignoreStorage se sto navigando a una ricerca
1362
+ this.location.replaceState(this.CompletePath + this.Pars + (QueryPAramsWithoutIgnoreStorage ? '?' + QueryPAramsWithoutIgnoreStorage : ""));
1363
+ this.EmbeddingSuccesfull = !!this.Page && !!this.Module && !!this.Localhost;
1364
+ });
1362
1365
  }
1363
1366
  }
1364
1367
  EmbeddingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EmbeddingComponent, deps: [{ token: i0.Injector }, { token: i4.AppEmbeddingExtensions }, { token: i2.Location }], target: i0.ɵɵFactoryTarget.Component });