web-mojo 2.1.153 → 2.1.155

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 (68) 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 +4 -4
  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-DC6cvOTG.js → ContextMenu-BYqSqDnS.js} +2 -2
  10. package/dist/chunks/{ContextMenu-DC6cvOTG.js.map → ContextMenu-BYqSqDnS.js.map} +1 -1
  11. package/dist/chunks/{ContextMenu-DjJQN4sg.js → ContextMenu-CTiHhcC3.js} +2 -2
  12. package/dist/chunks/{ContextMenu-DjJQN4sg.js.map → ContextMenu-CTiHhcC3.js.map} +1 -1
  13. package/dist/chunks/{DataView-Dxv-vfX1.js → DataView-BPogz9nU.js} +2 -2
  14. package/dist/chunks/{DataView-Dxv-vfX1.js.map → DataView-BPogz9nU.js.map} +1 -1
  15. package/dist/chunks/{DataView-gWlnWjl9.js → DataView-_LXFoKxJ.js} +2 -2
  16. package/dist/chunks/{DataView-gWlnWjl9.js.map → DataView-_LXFoKxJ.js.map} +1 -1
  17. package/dist/chunks/{Dialog-D5es1Gad.js → Dialog-BIw4iz3W.js} +5 -5
  18. package/dist/chunks/{Dialog-D5es1Gad.js.map → Dialog-BIw4iz3W.js.map} +1 -1
  19. package/dist/chunks/{Dialog-CWVh4SHk.js → Dialog-BuQrTQ7_.js} +2 -2
  20. package/dist/chunks/{Dialog-CWVh4SHk.js.map → Dialog-BuQrTQ7_.js.map} +1 -1
  21. package/dist/chunks/{FilePreviewView-Dm857m5D.js → FilePreviewView-BYGLS-TT.js} +2 -2
  22. package/dist/chunks/{FilePreviewView-Dm857m5D.js.map → FilePreviewView-BYGLS-TT.js.map} +1 -1
  23. package/dist/chunks/{FilePreviewView-vZQ_R6L4.js → FilePreviewView-_FlzNVa5.js} +6 -6
  24. package/dist/chunks/{FilePreviewView-vZQ_R6L4.js.map → FilePreviewView-_FlzNVa5.js.map} +1 -1
  25. package/dist/chunks/{FormView-CXZOZA1L.js → FormView-B4u2x5sM.js} +2 -2
  26. package/dist/chunks/{FormView-CXZOZA1L.js.map → FormView-B4u2x5sM.js.map} +1 -1
  27. package/dist/chunks/{FormView-CV-j8reS.js → FormView-Bt15WWg9.js} +2 -2
  28. package/dist/chunks/{FormView-CV-j8reS.js.map → FormView-Bt15WWg9.js.map} +1 -1
  29. package/dist/chunks/{MetricsChart-QTPS6P4O.js → MetricsChart-BARLGpgM.js} +3 -3
  30. package/dist/chunks/{MetricsChart-QTPS6P4O.js.map → MetricsChart-BARLGpgM.js.map} +1 -1
  31. package/dist/chunks/{MetricsChart-CajyIntt.js → MetricsChart-Cb36lXZd.js} +2 -2
  32. package/dist/chunks/{MetricsChart-CajyIntt.js.map → MetricsChart-Cb36lXZd.js.map} +1 -1
  33. package/dist/chunks/{PDFViewer-Bkd4YKs1.js → PDFViewer-CaEB4guO.js} +2 -2
  34. package/dist/chunks/{PDFViewer-Bkd4YKs1.js.map → PDFViewer-CaEB4guO.js.map} +1 -1
  35. package/dist/chunks/{PDFViewer-DgLZTg1_.js → PDFViewer-DI-D8m_2.js} +3 -3
  36. package/dist/chunks/{PDFViewer-DgLZTg1_.js.map → PDFViewer-DI-D8m_2.js.map} +1 -1
  37. package/dist/chunks/{Page-CdPnQkJX.js → Page-BIFnANh8.js} +2 -2
  38. package/dist/chunks/{Page-CdPnQkJX.js.map → Page-BIFnANh8.js.map} +1 -1
  39. package/dist/chunks/{Page-vB6LUmsh.js → Page-z4XrwNu8.js} +2 -2
  40. package/dist/chunks/{Page-vB6LUmsh.js.map → Page-z4XrwNu8.js.map} +1 -1
  41. package/dist/chunks/{TokenManager-BXNva8Jk.js → TokenManager-5HHjYzTo.js} +103 -23
  42. package/dist/chunks/TokenManager-5HHjYzTo.js.map +1 -0
  43. package/dist/chunks/TokenManager-gp1JKXNd.js +2 -0
  44. package/dist/chunks/TokenManager-gp1JKXNd.js.map +1 -0
  45. package/dist/chunks/{TopNav-BvPqMucG.js → TopNav-BBQq3REa.js} +2 -2
  46. package/dist/chunks/{TopNav-BvPqMucG.js.map → TopNav-BBQq3REa.js.map} +1 -1
  47. package/dist/chunks/{TopNav-CT8MFVGL.js → TopNav-Jc0GCn3h.js} +2 -2
  48. package/dist/chunks/{TopNav-CT8MFVGL.js.map → TopNav-Jc0GCn3h.js.map} +1 -1
  49. package/dist/chunks/{User-DBBWSDuL.js → User-Bue4ln6z.js} +2 -2
  50. package/dist/chunks/{User-DBBWSDuL.js.map → User-Bue4ln6z.js.map} +1 -1
  51. package/dist/chunks/{User-E_SqtRtc.js → User-CsfPb7v8.js} +2 -2
  52. package/dist/chunks/{User-E_SqtRtc.js.map → User-CsfPb7v8.js.map} +1 -1
  53. package/dist/chunks/{WebApp-DgjEViGQ.js → WebApp-B4BbKCzq.js} +60 -12
  54. package/dist/chunks/{WebApp-DgjEViGQ.js.map → WebApp-B4BbKCzq.js.map} +1 -1
  55. package/dist/chunks/{WebApp-CIU7Jj60.js → WebApp-BV-wlnrW.js} +2 -2
  56. package/dist/chunks/{WebApp-CIU7Jj60.js.map → WebApp-BV-wlnrW.js.map} +1 -1
  57. package/dist/docit.cjs.js +1 -1
  58. package/dist/docit.es.js +7 -7
  59. package/dist/index.cjs.js +1 -1
  60. package/dist/index.cjs.js.map +1 -1
  61. package/dist/index.es.js +26 -19
  62. package/dist/index.es.js.map +1 -1
  63. package/dist/lightbox.cjs.js +1 -1
  64. package/dist/lightbox.es.js +4 -4
  65. package/package.json +1 -1
  66. package/dist/chunks/TokenManager-BXNva8Jk.js.map +0 -1
  67. package/dist/chunks/TokenManager-Bzn4guFm.js +0 -2
  68. package/dist/chunks/TokenManager-Bzn4guFm.js.map +0 -1
@@ -1,8 +1,8 @@
1
- const VERSION = "2.1.153";
1
+ const VERSION = "2.1.155";
2
2
  const VERSION_MAJOR = 2;
3
3
  const VERSION_MINOR = 1;
4
- const VERSION_REVISION = 153;
5
- const BUILD_TIME = "2025-09-18T16:21:46.478Z";
4
+ const VERSION_REVISION = 155;
5
+ const BUILD_TIME = "2025-09-19T16:03:52.431Z";
6
6
  const VERSION_INFO = {
7
7
  full: VERSION,
8
8
  major: VERSION_MAJOR,
@@ -4301,6 +4301,7 @@ class WebApp {
4301
4301
  window.MOJO = window.MOJO || {};
4302
4302
  window.MOJO.router = this.router;
4303
4303
  }
4304
+ this.setupFocusTracking();
4304
4305
  this.pageCache = /* @__PURE__ */ new Map();
4305
4306
  this.pageClasses = /* @__PURE__ */ new Map();
4306
4307
  this.componentClasses = /* @__PURE__ */ new Map();
@@ -4594,7 +4595,7 @@ class WebApp {
4594
4595
  */
4595
4596
  async showError(message) {
4596
4597
  try {
4597
- const Dialog = (await import("./Dialog-D5es1Gad.js")).default;
4598
+ const Dialog = (await import("./Dialog-BIw4iz3W.js")).default;
4598
4599
  await Dialog.alert(message, "Error", { size: "md", class: "text-danger" });
4599
4600
  } catch (e) {
4600
4601
  this.events.emit("notification", { message, type: "error" });
@@ -4611,7 +4612,7 @@ class WebApp {
4611
4612
  */
4612
4613
  async showSuccess(message) {
4613
4614
  try {
4614
- const Dialog = (await import("./Dialog-D5es1Gad.js")).default;
4615
+ const Dialog = (await import("./Dialog-BIw4iz3W.js")).default;
4615
4616
  await Dialog.alert(message, "Success", { size: "md", class: "text-success" });
4616
4617
  } catch (e) {
4617
4618
  this.events.emit("notification", { message, type: "success" });
@@ -4628,7 +4629,7 @@ class WebApp {
4628
4629
  */
4629
4630
  async showInfo(message) {
4630
4631
  try {
4631
- const Dialog = (await import("./Dialog-D5es1Gad.js")).default;
4632
+ const Dialog = (await import("./Dialog-BIw4iz3W.js")).default;
4632
4633
  await Dialog.alert(message, "Information", { size: "md", class: "text-info" });
4633
4634
  } catch (e) {
4634
4635
  this.events.emit("notification", { message, type: "info" });
@@ -4645,7 +4646,7 @@ class WebApp {
4645
4646
  */
4646
4647
  async showWarning(message) {
4647
4648
  try {
4648
- const Dialog = (await import("./Dialog-D5es1Gad.js")).default;
4649
+ const Dialog = (await import("./Dialog-BIw4iz3W.js")).default;
4649
4650
  await Dialog.alert(message, "Warning", { size: "md", class: "text-warning" });
4650
4651
  } catch (e) {
4651
4652
  this.events.emit("notification", { message, type: "warning" });
@@ -4671,7 +4672,7 @@ class WebApp {
4671
4672
  opts = { message: opts };
4672
4673
  }
4673
4674
  try {
4674
- const Dialog = (await import("./Dialog-D5es1Gad.js")).default;
4675
+ const Dialog = (await import("./Dialog-BIw4iz3W.js")).default;
4675
4676
  Dialog.showBusy(opts);
4676
4677
  } catch (e) {
4677
4678
  if (typeof window !== "undefined" && window?.console) {
@@ -4685,7 +4686,7 @@ class WebApp {
4685
4686
  */
4686
4687
  async hideLoading() {
4687
4688
  try {
4688
- const Dialog = (await import("./Dialog-D5es1Gad.js")).default;
4689
+ const Dialog = (await import("./Dialog-BIw4iz3W.js")).default;
4689
4690
  Dialog.hideBusy();
4690
4691
  } catch (e) {
4691
4692
  if (typeof window !== "undefined" && window?.console) {
@@ -4695,7 +4696,7 @@ class WebApp {
4695
4696
  }
4696
4697
  async showModelForm(options = {}) {
4697
4698
  try {
4698
- const Dialog = (await import("./Dialog-D5es1Gad.js")).default;
4699
+ const Dialog = (await import("./Dialog-BIw4iz3W.js")).default;
4699
4700
  return await Dialog.showModelForm(options);
4700
4701
  } catch (e) {
4701
4702
  if (typeof window !== "undefined" && window?.console) {
@@ -4706,7 +4707,7 @@ class WebApp {
4706
4707
  }
4707
4708
  async showForm(options = {}) {
4708
4709
  try {
4709
- const Dialog = (await import("./Dialog-D5es1Gad.js")).default;
4710
+ const Dialog = (await import("./Dialog-BIw4iz3W.js")).default;
4710
4711
  return await Dialog.showForm(options);
4711
4712
  } catch (e) {
4712
4713
  if (typeof window !== "undefined" && window?.console) {
@@ -4715,6 +4716,48 @@ class WebApp {
4715
4716
  throw e;
4716
4717
  }
4717
4718
  }
4719
+ /**
4720
+ * Setup browser focus/blur tracking
4721
+ */
4722
+ setupFocusTracking() {
4723
+ if (typeof window === "undefined") return;
4724
+ this.isFocused = !document.hidden;
4725
+ const handleVisibilityChange = () => {
4726
+ const wasFocused = this.isFocused;
4727
+ this.isFocused = !document.hidden;
4728
+ if (wasFocused !== this.isFocused) {
4729
+ if (this.isFocused) {
4730
+ console.log("🔥 Browser gained focus");
4731
+ this.events.emit("browser:focus");
4732
+ } else {
4733
+ console.log("💤 Browser lost focus");
4734
+ this.events.emit("browser:blur");
4735
+ }
4736
+ }
4737
+ };
4738
+ const handleFocus = () => {
4739
+ if (!this.isFocused) {
4740
+ this.isFocused = true;
4741
+ console.log("🔥 Browser gained focus");
4742
+ this.events.emit("browser:focus");
4743
+ }
4744
+ };
4745
+ const handleBlur = () => {
4746
+ if (this.isFocused) {
4747
+ this.isFocused = false;
4748
+ console.log("💤 Browser lost focus");
4749
+ this.events.emit("browser:blur");
4750
+ }
4751
+ };
4752
+ document.addEventListener("visibilitychange", handleVisibilityChange);
4753
+ window.addEventListener("focus", handleFocus);
4754
+ window.addEventListener("blur", handleBlur);
4755
+ this._focusHandlers = {
4756
+ visibilitychange: handleVisibilityChange,
4757
+ focus: handleFocus,
4758
+ blur: handleBlur
4759
+ };
4760
+ }
4718
4761
  /**
4719
4762
  * Setup global error handling
4720
4763
  */
@@ -4795,6 +4838,11 @@ class WebApp {
4795
4838
  if (this.router) {
4796
4839
  this.router.stop();
4797
4840
  }
4841
+ if (this._focusHandlers && typeof window !== "undefined") {
4842
+ document.removeEventListener("visibilitychange", this._focusHandlers.visibilitychange);
4843
+ window.removeEventListener("focus", this._focusHandlers.focus);
4844
+ window.removeEventListener("blur", this._focusHandlers.blur);
4845
+ }
4798
4846
  const pages = Array.from(this.pageCache.values());
4799
4847
  await Promise.allSettled(
4800
4848
  pages.map(async (page) => {
@@ -4922,4 +4970,4 @@ export {
4922
4970
  EventEmitter as i,
4923
4971
  rest as r
4924
4972
  };
4925
- //# sourceMappingURL=WebApp-DgjEViGQ.js.map
4973
+ //# sourceMappingURL=WebApp-B4BbKCzq.js.map