@luigi-project/core-modular 0.0.10-dev.202606300110 → 0.0.11

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 CHANGED
@@ -8076,6 +8076,11 @@ var Ti = {
8076
8076
  };
8077
8077
  }
8078
8078
  async navItemClick(e, t) {
8079
+ if (e.openNodeInModal) {
8080
+ let n = a.replaceVars(H.getNodePath(e), t?.pathParams || {}, ":", !1);
8081
+ this.luigi.navigation().openAsModal(n, e.openNodeInModal === !0 ? {} : e.openNodeInModal);
8082
+ return;
8083
+ }
8079
8084
  if (await U.get(Ai).getUnsavedChangesModalPromise(), e.externalLink?.url) {
8080
8085
  Ei.openExternalLink(e.externalLink, t?.pathParams);
8081
8086
  return;
@@ -8587,7 +8592,11 @@ var Ti = {
8587
8592
  nodeParams: u
8588
8593
  };
8589
8594
  let f = l?.selectedNode ?? await this.getNavigationService().getCurrentNode(r), p = f?.viewUrl || "";
8590
- if (f && this.previousPathData && await this.handleViewUrlMisconfigured(f, p, this.previousPathData, d) || await this.handlePageNotFound(f, p, l, r, d)) return;
8595
+ if (f && await this.handleViewUrlMisconfigured(f, p, this.previousPathData, d) || await this.handlePageNotFound(f, p, l, r, d)) {
8596
+ let e = this.luigi.getEngine()._connector;
8597
+ e?.renderLeftNav(await this.getNavigationService().getLeftNavData(r, l)), e?.renderTabNav(await this.getNavigationService().getTabNavData(r, l));
8598
+ return;
8599
+ }
8591
8600
  let m = this.luigi.getEngine()._connector;
8592
8601
  if (m?.renderTopNav(await this.getNavigationService().getTopNavData(r, l)), m?.renderLeftNav(await this.getNavigationService().getLeftNavData(r, l)), m?.renderTabNav(await this.getNavigationService().getTabNavData(r, l)), m?.renderBreadcrumbs(await this.getNavigationService().getBreadcrumbData(r, l, (e) => {
8593
8602
  m?.renderBreadcrumbs(e);
@@ -8737,7 +8746,7 @@ var Ti = {
8737
8746
  if (!o && t.trim() === "" && !s && !a) {
8738
8747
  if (console.warn("The intended target route can't be accessed since it has neither a viewUrl nor children. This is most likely a misconfiguration."), !(n && (n.selectedNode?.viewUrl || n.selectedNode && n.selectedNode.compound))) {
8739
8748
  let e = await this.getNavigationService().getPathData("/"), t = await H.getDefaultChildNode(e);
8740
- this.showPageNotFoundError(t, r, !1), this.getNavigationService().handleNavigationRequest({ path: t });
8749
+ this.showPageNotFoundError(t, r, !1);
8741
8750
  }
8742
8751
  return !0;
8743
8752
  }