@esfaenza/core 19.2.83 → 19.2.84
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.
|
@@ -6,7 +6,7 @@ export declare abstract class BaseComponent extends ReactiveComponent {
|
|
|
6
6
|
protected CompletePath: string;
|
|
7
7
|
protected ComponentPath: string;
|
|
8
8
|
protected BasePath: string;
|
|
9
|
-
protected
|
|
9
|
+
protected NavigationParameters: {
|
|
10
10
|
[name: string]: string;
|
|
11
11
|
};
|
|
12
12
|
protected QueryParameters: {
|
|
@@ -1044,7 +1044,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
1044
1044
|
class BaseComponent extends ReactiveComponent {
|
|
1045
1045
|
constructor(injector) {
|
|
1046
1046
|
super();
|
|
1047
|
-
this.
|
|
1047
|
+
this.NavigationParameters = null;
|
|
1048
1048
|
this.QueryParameters = null;
|
|
1049
1049
|
let _activatedRoute = injector.get(ActivatedRoute);
|
|
1050
1050
|
let _state = injector.get(AppState);
|
|
@@ -1053,7 +1053,7 @@ class BaseComponent extends ReactiveComponent {
|
|
|
1053
1053
|
this._router = injector.get(Router);
|
|
1054
1054
|
_state.registerNavigationIfMeaningful(_activatedRoute.snapshot);
|
|
1055
1055
|
// Parametri in maniera "dinamica"
|
|
1056
|
-
_activatedRoute.params.pipe(takeUntil$1(this.destroyed$)).subscribe(t => { this.
|
|
1056
|
+
_activatedRoute.params.pipe(takeUntil$1(this.destroyed$)).subscribe(t => { this.NavigationParameters = t; });
|
|
1057
1057
|
_activatedRoute.queryParams.pipe(takeUntil$1(this.destroyed$)).subscribe(t => { this.QueryParameters = t; });
|
|
1058
1058
|
combineLatest([_activatedRoute.url, _activatedRoute.data]).subscribe((t) => {
|
|
1059
1059
|
this.gatherRouteInformations(null, t[1]);
|
|
@@ -1459,8 +1459,8 @@ class EmbeddingComponent extends BaseComponent {
|
|
|
1459
1459
|
requestAnimationFrame(() => {
|
|
1460
1460
|
this.Page = this.CompletePath.split("/").slice(4).join("/");
|
|
1461
1461
|
console.log("Page: " + this.Page);
|
|
1462
|
-
let navParKeys = Object.keys(this.
|
|
1463
|
-
this.Pars = (navParKeys?.length || 0) == 0 ? "" : ";" + navParKeys.map(t => `${t}=${this.
|
|
1462
|
+
let navParKeys = Object.keys(this.NavigationParameters)?.filter(p => p != "module");
|
|
1463
|
+
this.Pars = (navParKeys?.length || 0) == 0 ? "" : ";" + navParKeys.map(t => `${t}=${this.NavigationParameters[t]}`).join(";");
|
|
1464
1464
|
console.log("Pars: " + this.Pars);
|
|
1465
1465
|
let queryParKeys = Object.keys(this.QueryParameters);
|
|
1466
1466
|
this.QueryPars = (queryParKeys?.length || 0) == 0 ? "" : "?" + queryParKeys.map(t => `${t}=${this.QueryParameters[t]}`).join(";");
|