@luigi-project/core-modular 0.0.16-dev.20261020053 → 0.0.17-dev.202610100057

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
@@ -7969,6 +7969,16 @@ var fi = {
7969
7969
  }, i = n?.pathParams ? n.pathParams : {};
7970
7970
  c.url = U.substituteViewUrl(r, i, void 0, this.luigi), l = c.url;
7971
7971
  }
7972
+ if (s.statusBadge) {
7973
+ let e = {
7974
+ critical: "Critical",
7975
+ informative: "Information",
7976
+ negative: "Negative",
7977
+ neutral: "Neutral",
7978
+ positive: "Positive"
7979
+ };
7980
+ s.statusBadge.type = e[s.statusBadge.type] || "Neutral";
7981
+ }
7972
7982
  let d = s.category && (typeof s.category == "string" || s.category.id || s.category.label);
7973
7983
  if (d) {
7974
7984
  let n = s.category.id || s.category.label || s.category, a = this.luigi.i18n().getTranslation(s.category.label || s.category.id || s.category), o = r[n];
@@ -9535,7 +9545,7 @@ var fi = {
9535
9545
  let r = e.replace(/\/\/+/g, "/");
9536
9546
  if (!await H.validatePathAndGetRedirect(r, this.luigi)) return;
9537
9547
  let i = await this.navService.getCurrentNode(r), a = t || {};
9538
- a.title ||= i?.label;
9548
+ a.title ||= i?.label, a.size ||= "l", a.closebtn_data_testid ||= `lui-modal-index-${this.modalService.getModalStackLength()}`;
9539
9549
  let o = a.nodeParams || this.options.nodeParams || {}, s = r;
9540
9550
  if (o && Object.keys(o).length > 0) {
9541
9551
  let e = U.getContentViewParamPrefix(this.luigi), t = Object.entries(o).map(([t, n]) => e + encodeURIComponent(t) + "=" + encodeURIComponent(n)).join("&");
@@ -9558,7 +9568,7 @@ var fi = {
9558
9568
  let e = await U.getNodeLabel(i, this.luigi) || "";
9559
9569
  a.header && Object.keys(a.header).length ? a.header.title = e : a.header = { title: e };
9560
9570
  }
9561
- a.overlap === void 0 && (a.overlap = !0);
9571
+ a.overlap === void 0 && (a.overlap = !0), a.size ||= "s";
9562
9572
  let o = a.nodeParams || this.options.nodeParams || {};
9563
9573
  this.luigi.getEngine()._ui.openDrawer(this.luigi, i, a, n, {
9564
9574
  nodeParams: o,