@luigi-project/core-modular 0.0.12-dev.20260850047 → 0.0.12-dev.20260870125
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.
- package/luigi.js +20 -15
- package/luigi.js.map +1 -1
- package/package.json +1 -1
package/luigi.js
CHANGED
|
@@ -8380,12 +8380,14 @@ var fi = {
|
|
|
8380
8380
|
return;
|
|
8381
8381
|
}
|
|
8382
8382
|
let n = this.luigi.getConfigValue("routing.disableBrowserHistory") ? "replaceState" : y;
|
|
8383
|
-
if (p)
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8383
|
+
if (p) {
|
|
8384
|
+
let t = a.addLeadingSlash(v);
|
|
8385
|
+
if (!l && n !== "replaceState") location.hash = t;
|
|
8386
|
+
else {
|
|
8387
|
+
let r = new CustomEvent("hashchange", e);
|
|
8388
|
+
window.history[n]({ path: "/#" + t }, "", "/#" + t), window.dispatchEvent(r);
|
|
8389
|
+
}
|
|
8390
|
+
} else {
|
|
8389
8391
|
let t = new CustomEvent("popstate", e);
|
|
8390
8392
|
window.history[n]({ path: v }, "", v), window.dispatchEvent(t);
|
|
8391
8393
|
}
|
|
@@ -8904,16 +8906,19 @@ var fi = {
|
|
|
8904
8906
|
t.getEngine()._connector?.hideLoadingIndicator(c);
|
|
8905
8907
|
let l = n?.nodeParams || {}, u = n?.pathParams || {}, d = n?.searchParams || {};
|
|
8906
8908
|
if (e && c) {
|
|
8907
|
-
let o, f;
|
|
8908
|
-
(e.virtualTree || e._virtualTree) && (
|
|
8909
|
-
let
|
|
8909
|
+
let o, f, p;
|
|
8910
|
+
(e.virtualTree || e._virtualTree) && (p = H.findVirtualTreeRootNode(e));
|
|
8911
|
+
let m = e.viewUrl ? W.get(Ci).applyDecorators(U.substituteViewUrl(e, u, l, t), e.decodeViewUrl ?? !1) : "";
|
|
8910
8912
|
if ([...c.childNodes].forEach((n) => {
|
|
8911
|
-
if (n.tagName?.indexOf("LUIGI-") === 0) if (n.viewGroup && e.viewGroup !== n.viewGroup) {
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8913
|
+
if (n.tagName?.indexOf("LUIGI-") === 0) if (r && (o = n), n.viewGroup && e.viewGroup !== n.viewGroup) {
|
|
8914
|
+
if (!r) {
|
|
8915
|
+
n.style.display = "none";
|
|
8916
|
+
let e = t.getConfigValue("navigation.viewGroupSettings")?.[n.viewGroup];
|
|
8917
|
+
e?.preloadUrl && (n.viewurl = e.preloadUrl, n.context = {}, n.nodeParams = {}, n.pathParams = {});
|
|
8918
|
+
}
|
|
8919
|
+
} else n.viewGroup || n.virtualTree && p === n.virtualTreeRootNode || !e.viewGroup && !e.isolateView && !e.webcomponent && n.viewurl && m && a.isSameUrl(n.viewurl, m) ? f = n : r || n.remove();
|
|
8920
|
+
}), f && f._luigiPreloading && (f._luigiPreloading = !1, W.get(bi).viewGroupLoaded(f)), f) r || (f.style.display = "block", f.viewurl = m, f.nodeParams = l, f.pathParams = u, f.clientPermissions = e.clientPermissions, f.searchParams = d, f.locale = t.i18n().getCurrentLocale(), f.theme = t.theming().getCurrentTheme(), f.activeFeatureToggleList = t.featureToggles().getActiveFeatureToggleList(), f.userSettingsGroup = e.userSettingsGroup, f.userSettings = s, Ti(f, t), Ei(f, t)), i || f.updateContext(e.context || {}, { withoutSync: !1 });
|
|
8921
|
+
else if (r) !i && o && o.updateContext(e.context || {}, { withoutSync: r });
|
|
8917
8922
|
else {
|
|
8918
8923
|
let r = await wi(e, t, n, "main");
|
|
8919
8924
|
c?.appendChild(r);
|