@esfaenza/core 19.2.86 → 19.2.87
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 Parameters: {
|
|
10
10
|
[name: string]: string;
|
|
11
11
|
};
|
|
12
12
|
protected QueryParameters: {
|
|
@@ -1044,7 +1044,8 @@ 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
|
-
|
|
1047
|
+
// Disallineato dalla versione NG15
|
|
1048
|
+
this.Parameters = null;
|
|
1048
1049
|
this.QueryParameters = null;
|
|
1049
1050
|
let _activatedRoute = injector.get(ActivatedRoute);
|
|
1050
1051
|
let _state = injector.get(AppState);
|
|
@@ -1053,7 +1054,7 @@ class BaseComponent extends ReactiveComponent {
|
|
|
1053
1054
|
this._router = injector.get(Router);
|
|
1054
1055
|
_state.registerNavigationIfMeaningful(_activatedRoute.snapshot);
|
|
1055
1056
|
// Parametri in maniera "dinamica"
|
|
1056
|
-
_activatedRoute.params.pipe(takeUntil$1(this.destroyed$)).subscribe(t => { this.
|
|
1057
|
+
_activatedRoute.params.pipe(takeUntil$1(this.destroyed$)).subscribe(t => { this.Parameters = t; });
|
|
1057
1058
|
_activatedRoute.queryParams.pipe(takeUntil$1(this.destroyed$)).subscribe(t => { this.QueryParameters = t; });
|
|
1058
1059
|
combineLatest([_activatedRoute.url, _activatedRoute.data]).subscribe((t) => {
|
|
1059
1060
|
this.gatherRouteInformations(null, t[1]);
|
|
@@ -1459,8 +1460,8 @@ class EmbeddingComponent extends BaseComponent {
|
|
|
1459
1460
|
requestAnimationFrame(() => {
|
|
1460
1461
|
this.Page = this.CompletePath.split("/").slice(4).join("/");
|
|
1461
1462
|
console.log("Page: " + this.Page);
|
|
1462
|
-
let navParKeys = Object.keys(this.
|
|
1463
|
-
this.Pars = (navParKeys?.length || 0) == 0 ? "" : ";" + navParKeys.map(t => `${t}=${this.
|
|
1463
|
+
let navParKeys = Object.keys(this.Parameters)?.filter(p => p != "module");
|
|
1464
|
+
this.Pars = (navParKeys?.length || 0) == 0 ? "" : ";" + navParKeys.map(t => `${t}=${this.Parameters[t]}`).join(";");
|
|
1464
1465
|
console.log("Pars: " + this.Pars);
|
|
1465
1466
|
let queryParKeys = Object.keys(this.QueryParameters);
|
|
1466
1467
|
this.QueryPars = (queryParKeys?.length || 0) == 0 ? "" : "?" + queryParKeys.map(t => `${t}=${this.QueryParameters[t]}`).join(";");
|