@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.
Files changed (3) hide show
  1. package/luigi.js +20 -15
  2. package/luigi.js.map +1 -1
  3. 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) if (!l && n !== "replaceState") location.hash = v;
8384
- else {
8385
- let t = new CustomEvent("hashchange", e);
8386
- window.history[n]({ path: "/#" + v }, "", "/#" + v), window.dispatchEvent(t);
8387
- }
8388
- else {
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) && (f = H.findVirtualTreeRootNode(e));
8909
- let p = e.viewUrl ? W.get(Ci).applyDecorators(U.substituteViewUrl(e, u, l, t), e.decodeViewUrl ?? !1) : "";
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
- n.style.display = "none";
8913
- let e = t.getConfigValue("navigation.viewGroupSettings")?.[n.viewGroup];
8914
- e?.preloadUrl && (n.viewurl = e.preloadUrl, n.context = {}, n.nodeParams = {}, n.pathParams = {});
8915
- } else n.viewGroup || n.virtualTree && f === n.virtualTreeRootNode || !e.viewGroup && !e.isolateView && !e.webcomponent && n.viewurl && p && a.isSameUrl(n.viewurl, p) ? o = n : n.remove();
8916
- }), o && o._luigiPreloading && (o._luigiPreloading = !1, W.get(bi).viewGroupLoaded(o)), o) r || (o.style.display = "block", o.viewurl = p, o.nodeParams = l, o.pathParams = u, o.clientPermissions = e.clientPermissions, o.searchParams = d, o.locale = t.i18n().getCurrentLocale(), o.theme = t.theming().getCurrentTheme(), o.activeFeatureToggleList = t.featureToggles().getActiveFeatureToggleList(), o.userSettingsGroup = e.userSettingsGroup, o.userSettings = s, Ti(o, t), Ei(o, t)), i || o.updateContext(e.context || {}, { withoutSync: !1 });
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);