web-mojo 2.1.116 → 2.1.144

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 (65) hide show
  1. package/dist/admin.cjs.js +1 -1
  2. package/dist/admin.es.js +11 -11
  3. package/dist/auth.cjs.js +1 -1
  4. package/dist/auth.cjs.js.map +1 -1
  5. package/dist/auth.es.js +3 -3
  6. package/dist/auth.es.js.map +1 -1
  7. package/dist/charts.cjs.js +1 -1
  8. package/dist/charts.es.js +2 -2
  9. package/dist/chunks/{ContextMenu-DRp4XFcC.js → ContextMenu-CBsEWxms.js} +2 -2
  10. package/dist/chunks/{ContextMenu-DRp4XFcC.js.map → ContextMenu-CBsEWxms.js.map} +1 -1
  11. package/dist/chunks/{ContextMenu-CUvwhX0l.js → ContextMenu-Dp2L51_O.js} +2 -2
  12. package/dist/chunks/{ContextMenu-CUvwhX0l.js.map → ContextMenu-Dp2L51_O.js.map} +1 -1
  13. package/dist/chunks/{DataView-D4K18g9k.js → DataView-CP1qLEAn.js} +2 -2
  14. package/dist/chunks/{DataView-D4K18g9k.js.map → DataView-CP1qLEAn.js.map} +1 -1
  15. package/dist/chunks/{DataView-DsSzhNcH.js → DataView-DYXd8IT_.js} +2 -2
  16. package/dist/chunks/{DataView-DsSzhNcH.js.map → DataView-DYXd8IT_.js.map} +1 -1
  17. package/dist/chunks/{Dialog-DXrIEti_.js → Dialog-BJgl27dz.js} +5 -5
  18. package/dist/chunks/{Dialog-DXrIEti_.js.map → Dialog-BJgl27dz.js.map} +1 -1
  19. package/dist/chunks/{Dialog--4J9O60R.js → Dialog-C7eQM655.js} +2 -2
  20. package/dist/chunks/{Dialog--4J9O60R.js.map → Dialog-C7eQM655.js.map} +1 -1
  21. package/dist/chunks/{FilePreviewView-NeIc7I0M.js → FilePreviewView-BsX81q61.js} +2 -2
  22. package/dist/chunks/{FilePreviewView-NeIc7I0M.js.map → FilePreviewView-BsX81q61.js.map} +1 -1
  23. package/dist/chunks/{FilePreviewView-HtW6KRdR.js → FilePreviewView-rWCKXhwS.js} +6 -6
  24. package/dist/chunks/{FilePreviewView-HtW6KRdR.js.map → FilePreviewView-rWCKXhwS.js.map} +1 -1
  25. package/dist/chunks/{FormView-CIa1o6FC.js → FormView-Da3OHCwQ.js} +53 -6
  26. package/dist/chunks/FormView-Da3OHCwQ.js.map +1 -0
  27. package/dist/chunks/FormView-zirMC01H.js +2 -0
  28. package/dist/chunks/FormView-zirMC01H.js.map +1 -0
  29. package/dist/chunks/{MetricsChart-DemSixLu.js → MetricsChart-BFZhPmLN.js} +2 -2
  30. package/dist/chunks/{MetricsChart-DemSixLu.js.map → MetricsChart-BFZhPmLN.js.map} +1 -1
  31. package/dist/chunks/{MetricsChart-Dx66dFfT.js → MetricsChart-Dx3EUpkC.js} +3 -3
  32. package/dist/chunks/{MetricsChart-Dx66dFfT.js.map → MetricsChart-Dx3EUpkC.js.map} +1 -1
  33. package/dist/chunks/{PDFViewer-vqSk5_Md.js → PDFViewer-Cvn5uIzK.js} +3 -3
  34. package/dist/chunks/{PDFViewer-vqSk5_Md.js.map → PDFViewer-Cvn5uIzK.js.map} +1 -1
  35. package/dist/chunks/{PDFViewer-rK7woJFy.js → PDFViewer-DFPUg3Q2.js} +2 -2
  36. package/dist/chunks/{PDFViewer-rK7woJFy.js.map → PDFViewer-DFPUg3Q2.js.map} +1 -1
  37. package/dist/chunks/{Page-BetG0u0h.js → Page-CSdWY0RU.js} +2 -2
  38. package/dist/chunks/{Page-BetG0u0h.js.map → Page-CSdWY0RU.js.map} +1 -1
  39. package/dist/chunks/{Page-B88l1hS3.js → Page-jLcH5oU3.js} +2 -2
  40. package/dist/chunks/{Page-B88l1hS3.js.map → Page-jLcH5oU3.js.map} +1 -1
  41. package/dist/chunks/{TopNav-B-ox8ef4.js → TopNav-BRMYx23E.js} +2 -2
  42. package/dist/chunks/{TopNav-B-ox8ef4.js.map → TopNav-BRMYx23E.js.map} +1 -1
  43. package/dist/chunks/{TopNav-aS3Dyowj.js → TopNav-CXtXM9fQ.js} +2 -2
  44. package/dist/chunks/{TopNav-aS3Dyowj.js.map → TopNav-CXtXM9fQ.js.map} +1 -1
  45. package/dist/chunks/{User-B3Iz5PQD.js → User-BhmqIo3p.js} +2 -2
  46. package/dist/chunks/{User-B3Iz5PQD.js.map → User-BhmqIo3p.js.map} +1 -1
  47. package/dist/chunks/{User-Bi9SbbzB.js → User-DSQo0K5v.js} +2 -2
  48. package/dist/chunks/{User-Bi9SbbzB.js.map → User-DSQo0K5v.js.map} +1 -1
  49. package/dist/chunks/WebApp-0BphS1GM.js +2 -0
  50. package/dist/chunks/WebApp-0BphS1GM.js.map +1 -0
  51. package/dist/chunks/{WebApp-Bdehjb5l.js → WebApp-Cs-c1f0h.js} +32 -26
  52. package/dist/chunks/WebApp-Cs-c1f0h.js.map +1 -0
  53. package/dist/docit.cjs.js +1 -1
  54. package/dist/docit.es.js +6 -6
  55. package/dist/index.cjs.js +1 -1
  56. package/dist/index.es.js +10 -10
  57. package/dist/lightbox.cjs.js +1 -1
  58. package/dist/lightbox.es.js +4 -4
  59. package/package.json +1 -1
  60. package/dist/chunks/FormView-CIa1o6FC.js.map +0 -1
  61. package/dist/chunks/FormView-CTGzaTJ0.js +0 -2
  62. package/dist/chunks/FormView-CTGzaTJ0.js.map +0 -1
  63. package/dist/chunks/WebApp-Bdehjb5l.js.map +0 -1
  64. package/dist/chunks/WebApp-DGWgRFwF.js +0 -2
  65. package/dist/chunks/WebApp-DGWgRFwF.js.map +0 -1
@@ -1,8 +1,8 @@
1
- const VERSION = "2.1.115";
1
+ const VERSION = "2.1.143";
2
2
  const VERSION_MAJOR = 2;
3
3
  const VERSION_MINOR = 1;
4
- const VERSION_REVISION = 115;
5
- const BUILD_TIME = "2025-09-09T02:35:07.643Z";
4
+ const VERSION_REVISION = 143;
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 onEnterKey = (event) => {
2074
- if (event.key !== "Enter" || !event.target.matches('[data-filter="search"]')) return;
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
- event.preventDefault();
2078
- const action = el.getAttribute("data-change-action");
2079
- this.dispatch(action, event, el).then((handled) => {
2080
- if (handled) {
2081
- event.stopPropagation();
2082
- event.handledByChild = true;
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", onEnterKey);
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: onEnterKey },
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.events.unbind();
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.events.bind(this.element);
2514
+ this.bindEvents();
2509
2515
  } catch (e) {
2510
2516
  View._warn(`Render error in ${this.id}`, e);
2511
2517
  } finally {
@@ -4565,7 +4571,7 @@ class WebApp {
4565
4571
  */
4566
4572
  async showError(message) {
4567
4573
  try {
4568
- const Dialog = (await import("./Dialog-DXrIEti_.js")).default;
4574
+ const Dialog = (await import("./Dialog-BJgl27dz.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-DXrIEti_.js")).default;
4591
+ const Dialog = (await import("./Dialog-BJgl27dz.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-DXrIEti_.js")).default;
4608
+ const Dialog = (await import("./Dialog-BJgl27dz.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-DXrIEti_.js")).default;
4625
+ const Dialog = (await import("./Dialog-BJgl27dz.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-DXrIEti_.js")).default;
4651
+ const Dialog = (await import("./Dialog-BJgl27dz.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-DXrIEti_.js")).default;
4665
+ const Dialog = (await import("./Dialog-BJgl27dz.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-DXrIEti_.js")).default;
4675
+ const Dialog = (await import("./Dialog-BJgl27dz.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-DXrIEti_.js")).default;
4686
+ const Dialog = (await import("./Dialog-BJgl27dz.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-Bdehjb5l.js.map
4902
+ //# sourceMappingURL=WebApp-Cs-c1f0h.js.map