web-mojo 2.1.116 → 2.1.147
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/dist/admin.cjs.js +1 -1
- package/dist/admin.es.js +11 -11
- package/dist/auth.cjs.js +1 -1
- package/dist/auth.cjs.js.map +1 -1
- package/dist/auth.es.js +3 -3
- package/dist/auth.es.js.map +1 -1
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +2 -2
- package/dist/chunks/{ContextMenu-DRp4XFcC.js → ContextMenu-CPIEKhAe.js} +2 -2
- package/dist/chunks/{ContextMenu-DRp4XFcC.js.map → ContextMenu-CPIEKhAe.js.map} +1 -1
- package/dist/chunks/{ContextMenu-CUvwhX0l.js → ContextMenu-CvfjL2Tm.js} +2 -2
- package/dist/chunks/{ContextMenu-CUvwhX0l.js.map → ContextMenu-CvfjL2Tm.js.map} +1 -1
- package/dist/chunks/{DataView-DsSzhNcH.js → DataView-BzZORYgB.js} +2 -2
- package/dist/chunks/{DataView-DsSzhNcH.js.map → DataView-BzZORYgB.js.map} +1 -1
- package/dist/chunks/{DataView-D4K18g9k.js → DataView-DfNl1VoV.js} +2 -2
- package/dist/chunks/{DataView-D4K18g9k.js.map → DataView-DfNl1VoV.js.map} +1 -1
- package/dist/chunks/{Dialog-DXrIEti_.js → Dialog-BF8UHMNy.js} +5 -5
- package/dist/chunks/{Dialog-DXrIEti_.js.map → Dialog-BF8UHMNy.js.map} +1 -1
- package/dist/chunks/{Dialog--4J9O60R.js → Dialog-DniGRMw_.js} +2 -2
- package/dist/chunks/{Dialog--4J9O60R.js.map → Dialog-DniGRMw_.js.map} +1 -1
- package/dist/chunks/{FilePreviewView-NeIc7I0M.js → FilePreviewView-BxZefCLj.js} +2 -2
- package/dist/chunks/{FilePreviewView-NeIc7I0M.js.map → FilePreviewView-BxZefCLj.js.map} +1 -1
- package/dist/chunks/{FilePreviewView-HtW6KRdR.js → FilePreviewView-_ECi-fEk.js} +6 -6
- package/dist/chunks/{FilePreviewView-HtW6KRdR.js.map → FilePreviewView-_ECi-fEk.js.map} +1 -1
- package/dist/chunks/FormView-C_lQKxCQ.js +2 -0
- package/dist/chunks/FormView-C_lQKxCQ.js.map +1 -0
- package/dist/chunks/{FormView-CIa1o6FC.js → FormView-DGHRC7wG.js} +53 -6
- package/dist/chunks/FormView-DGHRC7wG.js.map +1 -0
- package/dist/chunks/{MetricsChart-DemSixLu.js → MetricsChart-4PvN69Bv.js} +2 -2
- package/dist/chunks/{MetricsChart-DemSixLu.js.map → MetricsChart-4PvN69Bv.js.map} +1 -1
- package/dist/chunks/{MetricsChart-Dx66dFfT.js → MetricsChart-onWZGQmb.js} +3 -3
- package/dist/chunks/{MetricsChart-Dx66dFfT.js.map → MetricsChart-onWZGQmb.js.map} +1 -1
- package/dist/chunks/{PDFViewer-rK7woJFy.js → PDFViewer-R3eSNkMi.js} +2 -2
- package/dist/chunks/{PDFViewer-rK7woJFy.js.map → PDFViewer-R3eSNkMi.js.map} +1 -1
- package/dist/chunks/{PDFViewer-vqSk5_Md.js → PDFViewer-dRczotpR.js} +3 -3
- package/dist/chunks/{PDFViewer-vqSk5_Md.js.map → PDFViewer-dRczotpR.js.map} +1 -1
- package/dist/chunks/{Page-BetG0u0h.js → Page-CGYufWec.js} +2 -2
- package/dist/chunks/{Page-BetG0u0h.js.map → Page-CGYufWec.js.map} +1 -1
- package/dist/chunks/{Page-B88l1hS3.js → Page-DUxSoIUM.js} +2 -2
- package/dist/chunks/{Page-B88l1hS3.js.map → Page-DUxSoIUM.js.map} +1 -1
- package/dist/chunks/{TopNav-aS3Dyowj.js → TopNav-Cd1xa-tK.js} +2 -2
- package/dist/chunks/{TopNav-aS3Dyowj.js.map → TopNav-Cd1xa-tK.js.map} +1 -1
- package/dist/chunks/{TopNav-B-ox8ef4.js → TopNav-DvLNJ72o.js} +2 -2
- package/dist/chunks/{TopNav-B-ox8ef4.js.map → TopNav-DvLNJ72o.js.map} +1 -1
- package/dist/chunks/{User-Bi9SbbzB.js → User-B9hllSGN.js} +2 -2
- package/dist/chunks/{User-Bi9SbbzB.js.map → User-B9hllSGN.js.map} +1 -1
- package/dist/chunks/{User-B3Iz5PQD.js → User-CdCiF7nV.js} +2 -2
- package/dist/chunks/{User-B3Iz5PQD.js.map → User-CdCiF7nV.js.map} +1 -1
- package/dist/chunks/{WebApp-Bdehjb5l.js → WebApp-BY8mVIDV.js} +34 -28
- package/dist/chunks/WebApp-BY8mVIDV.js.map +1 -0
- package/dist/chunks/WebApp-CSME0_mA.js +2 -0
- package/dist/chunks/WebApp-CSME0_mA.js.map +1 -0
- package/dist/css/web-mojo.css +1 -1
- package/dist/docit.cjs.js +1 -1
- package/dist/docit.es.js +6 -6
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +10 -10
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +4 -4
- package/dist/portal.css +8 -0
- package/package.json +1 -1
- package/dist/chunks/FormView-CIa1o6FC.js.map +0 -1
- package/dist/chunks/FormView-CTGzaTJ0.js +0 -2
- package/dist/chunks/FormView-CTGzaTJ0.js.map +0 -1
- package/dist/chunks/WebApp-Bdehjb5l.js.map +0 -1
- package/dist/chunks/WebApp-DGWgRFwF.js +0 -2
- package/dist/chunks/WebApp-DGWgRFwF.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const VERSION = "2.1.
|
|
1
|
+
const VERSION = "2.1.147";
|
|
2
2
|
const VERSION_MAJOR = 2;
|
|
3
3
|
const VERSION_MINOR = 1;
|
|
4
|
-
const VERSION_REVISION =
|
|
5
|
-
const BUILD_TIME = "2025-09-
|
|
4
|
+
const VERSION_REVISION = 147;
|
|
5
|
+
const BUILD_TIME = "2025-09-12T23:18:10.766Z";
|
|
6
6
|
const VERSION_INFO = {
|
|
7
7
|
full: VERSION,
|
|
8
8
|
major: VERSION_MAJOR,
|
|
@@ -2070,18 +2070,24 @@ class EventDelegate {
|
|
|
2070
2070
|
}, debounceMs);
|
|
2071
2071
|
this.debounceTimers.set(timerId, timer);
|
|
2072
2072
|
};
|
|
2073
|
-
const
|
|
2074
|
-
if (event.
|
|
2073
|
+
const onKeyDown = (event) => {
|
|
2074
|
+
if (event.target.matches('[data-filter="search"]')) return;
|
|
2075
2075
|
const el = event.target.closest("[data-change-action]");
|
|
2076
2076
|
if (!el || !this.shouldHandle(el, event)) return;
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2077
|
+
let changeKeys = ["Enter"];
|
|
2078
|
+
if (el.getAttribute("data-change-keys")) {
|
|
2079
|
+
changeKeys = el.getAttribute("data-change-keys").split(",").map((key) => key.trim());
|
|
2080
|
+
}
|
|
2081
|
+
if (changeKeys.includes(event.key)) {
|
|
2082
|
+
event.preventDefault();
|
|
2083
|
+
const action = el.getAttribute("data-change-action");
|
|
2084
|
+
this.dispatch(action, event, el).then((handled) => {
|
|
2085
|
+
if (handled) {
|
|
2086
|
+
event.stopPropagation();
|
|
2087
|
+
event.handledByChild = true;
|
|
2088
|
+
}
|
|
2089
|
+
});
|
|
2090
|
+
}
|
|
2085
2091
|
};
|
|
2086
2092
|
const onSubmit = (event) => {
|
|
2087
2093
|
const form = event.target.closest("form[data-action]");
|
|
@@ -2093,13 +2099,13 @@ class EventDelegate {
|
|
|
2093
2099
|
rootEl.addEventListener("click", onClick);
|
|
2094
2100
|
rootEl.addEventListener("change", onChange);
|
|
2095
2101
|
rootEl.addEventListener("input", onInput);
|
|
2096
|
-
rootEl.addEventListener("keydown",
|
|
2102
|
+
rootEl.addEventListener("keydown", onKeyDown);
|
|
2097
2103
|
rootEl.addEventListener("submit", onSubmit);
|
|
2098
2104
|
this.domListeners.push(
|
|
2099
2105
|
{ el: rootEl, type: "click", fn: onClick },
|
|
2100
2106
|
{ el: rootEl, type: "change", fn: onChange },
|
|
2101
2107
|
{ el: rootEl, type: "input", fn: onInput },
|
|
2102
|
-
{ el: rootEl, type: "keydown", fn:
|
|
2108
|
+
{ el: rootEl, type: "keydown", fn: onKeyDown },
|
|
2103
2109
|
{ el: rootEl, type: "submit", fn: onSubmit }
|
|
2104
2110
|
);
|
|
2105
2111
|
}
|
|
@@ -2493,7 +2499,7 @@ class View {
|
|
|
2493
2499
|
this.lastRenderTime = now2;
|
|
2494
2500
|
try {
|
|
2495
2501
|
if (!this.initialized) await this.onInitView();
|
|
2496
|
-
this.
|
|
2502
|
+
this.unbindEvents();
|
|
2497
2503
|
await this.onBeforeRender();
|
|
2498
2504
|
if (this.getViewData) {
|
|
2499
2505
|
this.data = await this.getViewData();
|
|
@@ -2505,7 +2511,7 @@ class View {
|
|
|
2505
2511
|
}
|
|
2506
2512
|
await this._renderChildren();
|
|
2507
2513
|
await this.onAfterRender();
|
|
2508
|
-
this.
|
|
2514
|
+
this.bindEvents();
|
|
2509
2515
|
} catch (e) {
|
|
2510
2516
|
View._warn(`Render error in ${this.id}`, e);
|
|
2511
2517
|
} finally {
|
|
@@ -4438,8 +4444,6 @@ class WebApp {
|
|
|
4438
4444
|
await pageInstance.onEnter();
|
|
4439
4445
|
}
|
|
4440
4446
|
pageInstance.syncUrl();
|
|
4441
|
-
await pageInstance.render();
|
|
4442
|
-
this.currentPage = pageInstance;
|
|
4443
4447
|
this.events.emit("page:show", {
|
|
4444
4448
|
page: pageInstance,
|
|
4445
4449
|
pageName: pageInstance.pageName,
|
|
@@ -4447,6 +4451,8 @@ class WebApp {
|
|
|
4447
4451
|
query,
|
|
4448
4452
|
fromRouter
|
|
4449
4453
|
});
|
|
4454
|
+
await pageInstance.render();
|
|
4455
|
+
this.currentPage = pageInstance;
|
|
4450
4456
|
console.log(`✅ Showing page: ${pageInstance.pageName}`, { query, params });
|
|
4451
4457
|
} catch (error) {
|
|
4452
4458
|
console.error("Error in showPage:", error);
|
|
@@ -4565,7 +4571,7 @@ class WebApp {
|
|
|
4565
4571
|
*/
|
|
4566
4572
|
async showError(message) {
|
|
4567
4573
|
try {
|
|
4568
|
-
const Dialog = (await import("./Dialog-
|
|
4574
|
+
const Dialog = (await import("./Dialog-BF8UHMNy.js")).default;
|
|
4569
4575
|
await Dialog.alert(message, "Error", { size: "md", class: "text-danger" });
|
|
4570
4576
|
} catch (e) {
|
|
4571
4577
|
this.events.emit("notification", { message, type: "error" });
|
|
@@ -4582,7 +4588,7 @@ class WebApp {
|
|
|
4582
4588
|
*/
|
|
4583
4589
|
async showSuccess(message) {
|
|
4584
4590
|
try {
|
|
4585
|
-
const Dialog = (await import("./Dialog-
|
|
4591
|
+
const Dialog = (await import("./Dialog-BF8UHMNy.js")).default;
|
|
4586
4592
|
await Dialog.alert(message, "Success", { size: "md", class: "text-success" });
|
|
4587
4593
|
} catch (e) {
|
|
4588
4594
|
this.events.emit("notification", { message, type: "success" });
|
|
@@ -4599,7 +4605,7 @@ class WebApp {
|
|
|
4599
4605
|
*/
|
|
4600
4606
|
async showInfo(message) {
|
|
4601
4607
|
try {
|
|
4602
|
-
const Dialog = (await import("./Dialog-
|
|
4608
|
+
const Dialog = (await import("./Dialog-BF8UHMNy.js")).default;
|
|
4603
4609
|
await Dialog.alert(message, "Information", { size: "md", class: "text-info" });
|
|
4604
4610
|
} catch (e) {
|
|
4605
4611
|
this.events.emit("notification", { message, type: "info" });
|
|
@@ -4616,7 +4622,7 @@ class WebApp {
|
|
|
4616
4622
|
*/
|
|
4617
4623
|
async showWarning(message) {
|
|
4618
4624
|
try {
|
|
4619
|
-
const Dialog = (await import("./Dialog-
|
|
4625
|
+
const Dialog = (await import("./Dialog-BF8UHMNy.js")).default;
|
|
4620
4626
|
await Dialog.alert(message, "Warning", { size: "md", class: "text-warning" });
|
|
4621
4627
|
} catch (e) {
|
|
4622
4628
|
this.events.emit("notification", { message, type: "warning" });
|
|
@@ -4642,7 +4648,7 @@ class WebApp {
|
|
|
4642
4648
|
opts = { message: opts };
|
|
4643
4649
|
}
|
|
4644
4650
|
try {
|
|
4645
|
-
const Dialog = (await import("./Dialog-
|
|
4651
|
+
const Dialog = (await import("./Dialog-BF8UHMNy.js")).default;
|
|
4646
4652
|
Dialog.showBusy(opts);
|
|
4647
4653
|
} catch (e) {
|
|
4648
4654
|
if (typeof window !== "undefined" && window?.console) {
|
|
@@ -4656,7 +4662,7 @@ class WebApp {
|
|
|
4656
4662
|
*/
|
|
4657
4663
|
async hideLoading() {
|
|
4658
4664
|
try {
|
|
4659
|
-
const Dialog = (await import("./Dialog-
|
|
4665
|
+
const Dialog = (await import("./Dialog-BF8UHMNy.js")).default;
|
|
4660
4666
|
Dialog.hideBusy();
|
|
4661
4667
|
} catch (e) {
|
|
4662
4668
|
if (typeof window !== "undefined" && window?.console) {
|
|
@@ -4666,7 +4672,7 @@ class WebApp {
|
|
|
4666
4672
|
}
|
|
4667
4673
|
async showModelForm(options = {}) {
|
|
4668
4674
|
try {
|
|
4669
|
-
const Dialog = (await import("./Dialog-
|
|
4675
|
+
const Dialog = (await import("./Dialog-BF8UHMNy.js")).default;
|
|
4670
4676
|
return await Dialog.showModelForm(options);
|
|
4671
4677
|
} catch (e) {
|
|
4672
4678
|
if (typeof window !== "undefined" && window?.console) {
|
|
@@ -4677,7 +4683,7 @@ class WebApp {
|
|
|
4677
4683
|
}
|
|
4678
4684
|
async showForm(options = {}) {
|
|
4679
4685
|
try {
|
|
4680
|
-
const Dialog = (await import("./Dialog-
|
|
4686
|
+
const Dialog = (await import("./Dialog-BF8UHMNy.js")).default;
|
|
4681
4687
|
return await Dialog.showForm(options);
|
|
4682
4688
|
} catch (e) {
|
|
4683
4689
|
if (typeof window !== "undefined" && window?.console) {
|
|
@@ -4893,4 +4899,4 @@ export {
|
|
|
4893
4899
|
EventEmitter as i,
|
|
4894
4900
|
rest as r
|
|
4895
4901
|
};
|
|
4896
|
-
//# sourceMappingURL=WebApp-
|
|
4902
|
+
//# sourceMappingURL=WebApp-BY8mVIDV.js.map
|