@luigi-project/core-modular 0.0.11-dev.202607280645 → 0.0.11-dev.202607300047
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 +5 -3
- package/luigi.js.map +1 -1
- package/package.json +1 -1
- package/types/ux.d.ts +1 -1
package/luigi.js
CHANGED
|
@@ -8341,6 +8341,7 @@ var Ei = {
|
|
|
8341
8341
|
...f,
|
|
8342
8342
|
nodeParams: {}
|
|
8343
8343
|
} : f, _ = await this.buildPath(n, g || {});
|
|
8344
|
+
if (await this.shouldPreventNavigationForPath(n)) return;
|
|
8344
8345
|
if (!m) {
|
|
8345
8346
|
let e = U.get(Ai);
|
|
8346
8347
|
try {
|
|
@@ -9445,7 +9446,7 @@ var Ei = {
|
|
|
9445
9446
|
};
|
|
9446
9447
|
openAsModal = async (e, t, n) => {
|
|
9447
9448
|
if (e === "/") return console.warn("Navigation with an absolute path prevented."), Promise.reject(/* @__PURE__ */ Error("Navigation with an absolute path prevented."));
|
|
9448
|
-
if (!t?.keepPrevious && !await this.modalService.closeModalsWithDirtyCheck()) return;
|
|
9449
|
+
if (await this.navService.shouldPreventNavigationForPath(e) || !t?.keepPrevious && !await this.modalService.closeModalsWithDirtyCheck()) return;
|
|
9449
9450
|
let r = e.replace(/\/\/+/g, "/");
|
|
9450
9451
|
if (!await V.validatePathAndGetRedirect(r, this.luigi)) return;
|
|
9451
9452
|
let i = await this.navService.getCurrentNode(r), a = t || {};
|
|
@@ -9464,6 +9465,7 @@ var Ei = {
|
|
|
9464
9465
|
};
|
|
9465
9466
|
openAsDrawer = async (e, t, n) => {
|
|
9466
9467
|
if (e === "/") return console.warn("Navigation with an absolute path prevented."), Promise.reject(/* @__PURE__ */ Error("Navigation with an absolute path prevented."));
|
|
9468
|
+
if (await this.navService.shouldPreventNavigationForPath(e)) return;
|
|
9467
9469
|
let r = e.replace(/\/\/+/g, "/");
|
|
9468
9470
|
if (!await V.validatePathAndGetRedirect(r, this.luigi)) return;
|
|
9469
9471
|
let i = await this.navService.getCurrentNode(r), a = t || {};
|
|
@@ -9663,7 +9665,7 @@ var Ei = {
|
|
|
9663
9665
|
header: this.luigi.i18n().getTranslation(e.header || "luigi.confirmationModal.header"),
|
|
9664
9666
|
body: this.luigi.i18n().getTranslation(e.body || "luigi.confirmationModal.body"),
|
|
9665
9667
|
buttonDismiss: this.luigi.i18n().getTranslation(e.buttonDismiss || "luigi.button.dismiss"),
|
|
9666
|
-
buttonConfirm: this.luigi.i18n().getTranslation(e.buttonConfirm || "luigi.button.confirm")
|
|
9668
|
+
buttonConfirm: e.buttonConfirm === !1 ? !1 : this.luigi.i18n().getTranslation(e.buttonConfirm || "luigi.button.confirm")
|
|
9667
9669
|
}, new Promise((t, n) => {
|
|
9668
9670
|
this.luigi.getEngine()._connector?.renderConfirmationModal(e, {
|
|
9669
9671
|
confirm() {
|
|
@@ -11289,7 +11291,7 @@ var fc = {
|
|
|
11289
11291
|
header: mc.luigi.i18n().getTranslation(e.header || "luigi.confirmationModal.header"),
|
|
11290
11292
|
body: mc.luigi.i18n().getTranslation(e.body || "luigi.confirmationModal.body"),
|
|
11291
11293
|
buttonDismiss: mc.luigi.i18n().getTranslation(e.buttonDismiss || "luigi.button.dismiss"),
|
|
11292
|
-
buttonConfirm: mc.luigi.i18n().getTranslation(e.buttonConfirm || "luigi.button.confirm")
|
|
11294
|
+
buttonConfirm: e.buttonConfirm === !1 ? !1 : mc.luigi.i18n().getTranslation(e.buttonConfirm || "luigi.button.confirm")
|
|
11293
11295
|
}, mc.luigi.getEngine()._connector?.renderConfirmationModal(e, {
|
|
11294
11296
|
confirm() {
|
|
11295
11297
|
t.notifyConfirmationModalClosed(!0);
|