web-mojo 2.1.549 → 2.1.626

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 (66) hide show
  1. package/dist/admin.cjs.js +1 -1
  2. package/dist/admin.cjs.js.map +1 -1
  3. package/dist/admin.es.js +19 -10
  4. package/dist/admin.es.js.map +1 -1
  5. package/dist/auth.cjs.js +1 -1
  6. package/dist/auth.cjs.js.map +1 -1
  7. package/dist/auth.es.js +3 -3
  8. package/dist/auth.es.js.map +1 -1
  9. package/dist/charts.cjs.js +1 -1
  10. package/dist/charts.es.js +3 -3
  11. package/dist/chunks/{ChatView-S7z1axRn.js → ChatView-0e0k3QSK.js} +2 -2
  12. package/dist/chunks/{ChatView-S7z1axRn.js.map → ChatView-0e0k3QSK.js.map} +1 -1
  13. package/dist/chunks/{ChatView-DUmQtrvk.js → ChatView-BxbA5ob6.js} +6 -6
  14. package/dist/chunks/{ChatView-DUmQtrvk.js.map → ChatView-BxbA5ob6.js.map} +1 -1
  15. package/dist/chunks/{ContextMenu-DhbGpVSL.js → ContextMenu-ATInMbaI.js} +3 -3
  16. package/dist/chunks/{ContextMenu-DhbGpVSL.js.map → ContextMenu-ATInMbaI.js.map} +1 -1
  17. package/dist/chunks/{ContextMenu-BXCBFtAP.js → ContextMenu-Ckttp-rD.js} +10 -3
  18. package/dist/chunks/{ContextMenu-BXCBFtAP.js.map → ContextMenu-Ckttp-rD.js.map} +1 -1
  19. package/dist/chunks/{DataView-Ek4BYTEr.js → DataView-BQOKPprj.js} +2 -2
  20. package/dist/chunks/{DataView-Ek4BYTEr.js.map → DataView-BQOKPprj.js.map} +1 -1
  21. package/dist/chunks/{DataView-CbcfRwkD.js → DataView-BsWK0Ul7.js} +2 -2
  22. package/dist/chunks/{DataView-CbcfRwkD.js.map → DataView-BsWK0Ul7.js.map} +1 -1
  23. package/dist/chunks/{Dialog-B4CbgRxK.js → Dialog-aTTrQ6uW.js} +5 -5
  24. package/dist/chunks/{Dialog-B4CbgRxK.js.map → Dialog-aTTrQ6uW.js.map} +1 -1
  25. package/dist/chunks/{Dialog-sS4tcneL.js → Dialog-t4J3qOjC.js} +2 -2
  26. package/dist/chunks/{Dialog-sS4tcneL.js.map → Dialog-t4J3qOjC.js.map} +1 -1
  27. package/dist/chunks/{FormView-Nh9T4RYF.js → FormView-DjypPrEw.js} +2 -2
  28. package/dist/chunks/{FormView-Nh9T4RYF.js.map → FormView-DjypPrEw.js.map} +1 -1
  29. package/dist/chunks/{FormView-BochVM_E.js → FormView-DvKBq99H.js} +2 -2
  30. package/dist/chunks/{FormView-BochVM_E.js.map → FormView-DvKBq99H.js.map} +1 -1
  31. package/dist/chunks/{MetricsChart-BnAXZSYf.js → MetricsChart-BHB2dubV.js} +2 -2
  32. package/dist/chunks/{MetricsChart-BnAXZSYf.js.map → MetricsChart-BHB2dubV.js.map} +1 -1
  33. package/dist/chunks/{MetricsChart-DMAFQpiZ.js → MetricsChart-DJ_AMjGg.js} +3 -3
  34. package/dist/chunks/{MetricsChart-DMAFQpiZ.js.map → MetricsChart-DJ_AMjGg.js.map} +1 -1
  35. package/dist/chunks/{PDFViewer-UG4HgNRl.js → PDFViewer-DXoC6y5o.js} +2 -2
  36. package/dist/chunks/{PDFViewer-UG4HgNRl.js.map → PDFViewer-DXoC6y5o.js.map} +1 -1
  37. package/dist/chunks/{PDFViewer-DFGU5qEx.js → PDFViewer-kDd18mqo.js} +3 -3
  38. package/dist/chunks/{PDFViewer-DFGU5qEx.js.map → PDFViewer-kDd18mqo.js.map} +1 -1
  39. package/dist/chunks/{Page-3EI2SKd6.js → Page-BrWp1FsC.js} +2 -2
  40. package/dist/chunks/{Page-3EI2SKd6.js.map → Page-BrWp1FsC.js.map} +1 -1
  41. package/dist/chunks/{Page-x-paxTWR.js → Page-DgKaDD9p.js} +2 -2
  42. package/dist/chunks/{Page-x-paxTWR.js.map → Page-DgKaDD9p.js.map} +1 -1
  43. package/dist/chunks/TopNav-DGtRj5F4.js +1039 -0
  44. package/dist/chunks/TopNav-DGtRj5F4.js.map +1 -0
  45. package/dist/chunks/TopNav-DoAl9Rpd.js +2 -0
  46. package/dist/chunks/TopNav-DoAl9Rpd.js.map +1 -0
  47. package/dist/chunks/{WebApp-Co0le5eH.js → WebApp-DWIriU_w.js} +2 -2
  48. package/dist/chunks/{WebApp-Co0le5eH.js.map → WebApp-DWIriU_w.js.map} +1 -1
  49. package/dist/chunks/{WebApp-gPOds7Ie.js → WebApp-ciExPk0c.js} +30 -14
  50. package/dist/chunks/{WebApp-gPOds7Ie.js.map → WebApp-ciExPk0c.js.map} +1 -1
  51. package/dist/css/web-mojo.css +1 -1
  52. package/dist/docit.cjs.js +1 -1
  53. package/dist/docit.es.js +5 -5
  54. package/dist/index.cjs.js +1 -1
  55. package/dist/index.cjs.js.map +1 -1
  56. package/dist/index.es.js +237 -449
  57. package/dist/index.es.js.map +1 -1
  58. package/dist/lightbox.cjs.js +1 -1
  59. package/dist/lightbox.es.js +4 -4
  60. package/dist/portal.css +222 -0
  61. package/dist/table.css +0 -13
  62. package/package.json +1 -1
  63. package/dist/chunks/TopNav-BzW5Us7F.js +0 -2
  64. package/dist/chunks/TopNav-BzW5Us7F.js.map +0 -1
  65. package/dist/chunks/TopNav-cGCRUequ.js +0 -381
  66. package/dist/chunks/TopNav-cGCRUequ.js.map +0 -1
@@ -1,8 +1,8 @@
1
- const VERSION = "2.1.549";
1
+ const VERSION = "2.1.626";
2
2
  const VERSION_MAJOR = 2;
3
3
  const VERSION_MINOR = 1;
4
- const VERSION_REVISION = 549;
5
- const BUILD_TIME = "2025-10-01T20:22:53.481Z";
4
+ const VERSION_REVISION = 626;
5
+ const BUILD_TIME = "2025-10-03T00:17:52.034Z";
6
6
  const VERSION_INFO = {
7
7
  full: VERSION,
8
8
  major: VERSION_MAJOR,
@@ -4265,7 +4265,14 @@ class EventBus {
4265
4265
  }
4266
4266
  listeners.forEach((callback) => {
4267
4267
  try {
4268
- callback(data, event);
4268
+ if (callback(data, event)) {
4269
+ if (event.stopPropagation) {
4270
+ event.stopPropagation();
4271
+ }
4272
+ if (event.preventDefault) {
4273
+ event.preventDefault();
4274
+ }
4275
+ }
4269
4276
  } catch (error) {
4270
4277
  console.error(`Error in event listener for '${event}':`, error);
4271
4278
  this.emitError(error, event, callback);
@@ -4705,6 +4712,15 @@ class WebApp {
4705
4712
  getPage(pageName) {
4706
4713
  return this.pageCache.get(pageName);
4707
4714
  }
4715
+ getPagePermissions(pageName) {
4716
+ if (this.pageCache.has(pageName)) {
4717
+ return this.pageCache.get(pageName).permissions;
4718
+ }
4719
+ const pageInfo = this.pageClasses.get(pageName);
4720
+ const { PageClass, constructorOptions } = pageInfo;
4721
+ if (!constructorOptions) return null;
4722
+ return constructorOptions.permissions;
4723
+ }
4708
4724
  /**
4709
4725
  * Get or create page instance (with caching)
4710
4726
  */
@@ -4901,7 +4917,7 @@ class WebApp {
4901
4917
  */
4902
4918
  async showError(message) {
4903
4919
  try {
4904
- const Dialog = (await import("./Dialog-B4CbgRxK.js")).default;
4920
+ const Dialog = (await import("./Dialog-aTTrQ6uW.js")).default;
4905
4921
  await Dialog.alert(message, "Error", { size: "md", class: "text-danger" });
4906
4922
  } catch (e) {
4907
4923
  this.events.emit("notification", { message, type: "error" });
@@ -4918,7 +4934,7 @@ class WebApp {
4918
4934
  */
4919
4935
  async showSuccess(message) {
4920
4936
  try {
4921
- const Dialog = (await import("./Dialog-B4CbgRxK.js")).default;
4937
+ const Dialog = (await import("./Dialog-aTTrQ6uW.js")).default;
4922
4938
  await Dialog.alert(message, "Success", { size: "md", class: "text-success" });
4923
4939
  } catch (e) {
4924
4940
  this.events.emit("notification", { message, type: "success" });
@@ -4935,7 +4951,7 @@ class WebApp {
4935
4951
  */
4936
4952
  async showInfo(message) {
4937
4953
  try {
4938
- const Dialog = (await import("./Dialog-B4CbgRxK.js")).default;
4954
+ const Dialog = (await import("./Dialog-aTTrQ6uW.js")).default;
4939
4955
  await Dialog.alert(message, "Information", { size: "md", class: "text-info" });
4940
4956
  } catch (e) {
4941
4957
  this.events.emit("notification", { message, type: "info" });
@@ -4952,7 +4968,7 @@ class WebApp {
4952
4968
  */
4953
4969
  async showWarning(message) {
4954
4970
  try {
4955
- const Dialog = (await import("./Dialog-B4CbgRxK.js")).default;
4971
+ const Dialog = (await import("./Dialog-aTTrQ6uW.js")).default;
4956
4972
  await Dialog.alert(message, "Warning", { size: "md", class: "text-warning" });
4957
4973
  } catch (e) {
4958
4974
  this.events.emit("notification", { message, type: "warning" });
@@ -4978,7 +4994,7 @@ class WebApp {
4978
4994
  opts = { message: opts };
4979
4995
  }
4980
4996
  try {
4981
- const Dialog = (await import("./Dialog-B4CbgRxK.js")).default;
4997
+ const Dialog = (await import("./Dialog-aTTrQ6uW.js")).default;
4982
4998
  Dialog.showBusy(opts);
4983
4999
  } catch (e) {
4984
5000
  if (typeof window !== "undefined" && window?.console) {
@@ -4992,7 +5008,7 @@ class WebApp {
4992
5008
  */
4993
5009
  async hideLoading() {
4994
5010
  try {
4995
- const Dialog = (await import("./Dialog-B4CbgRxK.js")).default;
5011
+ const Dialog = (await import("./Dialog-aTTrQ6uW.js")).default;
4996
5012
  Dialog.hideBusy();
4997
5013
  } catch (e) {
4998
5014
  if (typeof window !== "undefined" && window?.console) {
@@ -5002,7 +5018,7 @@ class WebApp {
5002
5018
  }
5003
5019
  async showModelForm(options = {}) {
5004
5020
  try {
5005
- const Dialog = (await import("./Dialog-B4CbgRxK.js")).default;
5021
+ const Dialog = (await import("./Dialog-aTTrQ6uW.js")).default;
5006
5022
  return await Dialog.showModelForm(options);
5007
5023
  } catch (e) {
5008
5024
  if (typeof window !== "undefined" && window?.console) {
@@ -5013,7 +5029,7 @@ class WebApp {
5013
5029
  }
5014
5030
  async showForm(options = {}) {
5015
5031
  try {
5016
- const Dialog = (await import("./Dialog-B4CbgRxK.js")).default;
5032
+ const Dialog = (await import("./Dialog-aTTrQ6uW.js")).default;
5017
5033
  return await Dialog.showForm(options);
5018
5034
  } catch (e) {
5019
5035
  if (typeof window !== "undefined" && window?.console) {
@@ -5023,7 +5039,7 @@ class WebApp {
5023
5039
  }
5024
5040
  }
5025
5041
  async confirm(message, title = "Confirm", options = {}) {
5026
- const Dialog = (await import("./Dialog-B4CbgRxK.js")).default;
5042
+ const Dialog = (await import("./Dialog-aTTrQ6uW.js")).default;
5027
5043
  return await Dialog.confirm(message, title, options);
5028
5044
  }
5029
5045
  /**
@@ -5276,4 +5292,4 @@ export {
5276
5292
  EventEmitter as i,
5277
5293
  rest as r
5278
5294
  };
5279
- //# sourceMappingURL=WebApp-gPOds7Ie.js.map
5295
+ //# sourceMappingURL=WebApp-ciExPk0c.js.map