@luigi-project/core-modular 0.0.17-dev.20261090057 → 0.0.18

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 +14 -3
  2. package/luigi.js.map +1 -1
  3. package/package.json +1 -1
package/luigi.js CHANGED
@@ -8393,7 +8393,18 @@ var fi = {
8393
8393
  }
8394
8394
  }
8395
8395
  let v = _.replace(/\/\/+/g, "/"), y = d ? "replaceState" : "pushState", { path: b, query: x } = U.getCurrentPath(this.luigi, p), S = b + (x ? "?" + x : "");
8396
- if (!(!(o || s) && a.trimLeadingSlash(S) === a.trimLeadingSlash(v))) if (o || s) if (o) h && Object.keys(h).length > 0 && (o.nodeParams = h), this.luigi.navigation().openAsDrawer(v, o, t);
8396
+ if (!(o || s) && a.trimLeadingSlash(S) === a.trimLeadingSlash(v)) {
8397
+ let e = this.luigi.getEngine()._connector?.getContainerWrapper();
8398
+ if (e?.childNodes) {
8399
+ let t = [...e.childNodes].find((e) => e.tagName?.indexOf("LUIGI-") === 0 && e.style?.display !== "none");
8400
+ t && (t.remove(), G.routingService.handleRouteChange({
8401
+ path: b,
8402
+ query: x
8403
+ }));
8404
+ }
8405
+ return;
8406
+ }
8407
+ if (o || s) if (o) h && Object.keys(h).length > 0 && (o.nodeParams = h), this.luigi.navigation().openAsDrawer(v, o, t);
8397
8408
  else {
8398
8409
  if (!s.keepPrevious && !await this.getModalService().closeModalsWithDirtyCheck()) return;
8399
8410
  h && Object.keys(h).length > 0 && (s.nodeParams = h), this.luigi.navigation().openAsModal(v, s, t);
@@ -9545,7 +9556,7 @@ var fi = {
9545
9556
  let r = e.replace(/\/\/+/g, "/");
9546
9557
  if (!await H.validatePathAndGetRedirect(r, this.luigi)) return;
9547
9558
  let i = await this.navService.getCurrentNode(r), a = t || {};
9548
- a.title ||= i?.label;
9559
+ a.title ||= i?.label, a.size ||= "l", a.closebtn_data_testid ||= `lui-modal-index-${this.modalService.getModalStackLength()}`;
9549
9560
  let o = a.nodeParams || this.options.nodeParams || {}, s = r;
9550
9561
  if (o && Object.keys(o).length > 0) {
9551
9562
  let e = U.getContentViewParamPrefix(this.luigi), t = Object.entries(o).map(([t, n]) => e + encodeURIComponent(t) + "=" + encodeURIComponent(n)).join("&");
@@ -9568,7 +9579,7 @@ var fi = {
9568
9579
  let e = await U.getNodeLabel(i, this.luigi) || "";
9569
9580
  a.header && Object.keys(a.header).length ? a.header.title = e : a.header = { title: e };
9570
9581
  }
9571
- a.overlap === void 0 && (a.overlap = !0);
9582
+ a.overlap === void 0 && (a.overlap = !0), a.size ||= "s";
9572
9583
  let o = a.nodeParams || this.options.nodeParams || {};
9573
9584
  this.luigi.getEngine()._ui.openDrawer(this.luigi, i, a, n, {
9574
9585
  nodeParams: o,