web-mojo 2.4.5 → 2.4.7

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 (60) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/admin.cjs.js +1 -1
  3. package/dist/admin.es.js +1 -1
  4. package/dist/auth.cjs.js +1 -1
  5. package/dist/auth.es.js +1 -1
  6. package/dist/charts.cjs.js +1 -1
  7. package/dist/charts.es.js +1 -1
  8. package/dist/chunks/{AssistantPanelView-DlBgWeM_.js → AssistantPanelView-DmlaVMvK.js} +2 -2
  9. package/dist/chunks/{AssistantPanelView-DlBgWeM_.js.map → AssistantPanelView-DmlaVMvK.js.map} +1 -1
  10. package/dist/chunks/{AssistantPanelView-C4ZyIQoH.js → AssistantPanelView-rkVX6wky.js} +2 -2
  11. package/dist/chunks/{AssistantPanelView-C4ZyIQoH.js.map → AssistantPanelView-rkVX6wky.js.map} +1 -1
  12. package/dist/chunks/ChatView-D2WOSxPu.js +2 -0
  13. package/dist/chunks/ChatView-D2WOSxPu.js.map +1 -0
  14. package/dist/chunks/ChatView-kWguc444.js +2 -0
  15. package/dist/chunks/ChatView-kWguc444.js.map +1 -0
  16. package/dist/chunks/Passkeys-B1-Z4-16.js +2 -0
  17. package/dist/chunks/Passkeys-B1-Z4-16.js.map +1 -0
  18. package/dist/chunks/Passkeys-BlHx11-5.js +2 -0
  19. package/dist/chunks/Passkeys-BlHx11-5.js.map +1 -0
  20. package/dist/chunks/{TicketPanelView-if4ogL_D.js → TicketPanelView-BGQZ6q2B.js} +2 -2
  21. package/dist/chunks/{TicketPanelView-if4ogL_D.js.map → TicketPanelView-BGQZ6q2B.js.map} +1 -1
  22. package/dist/chunks/{TicketPanelView-DeeANyKv.js → TicketPanelView-BZ8e66o1.js} +2 -2
  23. package/dist/chunks/{TicketPanelView-DeeANyKv.js.map → TicketPanelView-BZ8e66o1.js.map} +1 -1
  24. package/dist/chunks/{UserProfileView-BPjz7uIp.js → UserProfileView-DDflzpTa.js} +2 -2
  25. package/dist/chunks/{UserProfileView-BPjz7uIp.js.map → UserProfileView-DDflzpTa.js.map} +1 -1
  26. package/dist/chunks/{UserProfileView-udbSWe1S.js → UserProfileView-cUF8ED9n.js} +2 -2
  27. package/dist/chunks/{UserProfileView-udbSWe1S.js.map → UserProfileView-cUF8ED9n.js.map} +1 -1
  28. package/dist/chunks/{admin-C3-HqQvC.js → admin-CmyeTstQ.js} +2 -2
  29. package/dist/chunks/{admin-C3-HqQvC.js.map → admin-CmyeTstQ.js.map} +1 -1
  30. package/dist/chunks/{admin-DrFBTXnB.js → admin-D6gHOojO.js} +2 -2
  31. package/dist/chunks/{admin-DrFBTXnB.js.map → admin-D6gHOojO.js.map} +1 -1
  32. package/dist/chunks/{index-dFX91Gwz.js → index-Cxffar1o.js} +2 -2
  33. package/dist/chunks/{index-dFX91Gwz.js.map → index-Cxffar1o.js.map} +1 -1
  34. package/dist/chunks/{index-Byf1pa3Z.js → index-DsID1QpB.js} +2 -2
  35. package/dist/chunks/{index-Byf1pa3Z.js.map → index-DsID1QpB.js.map} +1 -1
  36. package/dist/chunks/{version-CjNfmLdK.js → version-DdqQDDOW.js} +2 -2
  37. package/dist/chunks/{version-CjNfmLdK.js.map → version-DdqQDDOW.js.map} +1 -1
  38. package/dist/chunks/{version-C9vC8_Oy.js → version-NEBZhkhG.js} +2 -2
  39. package/dist/chunks/{version-C9vC8_Oy.js.map → version-NEBZhkhG.js.map} +1 -1
  40. package/dist/docit.cjs.js +1 -1
  41. package/dist/docit.es.js +1 -1
  42. package/dist/index.cjs.js +1 -1
  43. package/dist/index.es.js +1 -1
  44. package/dist/lightbox.cjs.js +1 -1
  45. package/dist/lightbox.es.js +1 -1
  46. package/dist/user-profile.cjs.js +1 -1
  47. package/dist/user-profile.es.js +1 -1
  48. package/dist/web-mojo.lite.iife.js +13 -0
  49. package/dist/web-mojo.lite.iife.js.map +1 -1
  50. package/dist/web-mojo.lite.iife.min.js +44 -44
  51. package/dist/web-mojo.lite.iife.min.js.map +1 -1
  52. package/package.json +1 -1
  53. package/dist/chunks/ChatView-CcR1GR30.js +0 -2
  54. package/dist/chunks/ChatView-CcR1GR30.js.map +0 -1
  55. package/dist/chunks/ChatView-ChyTcmrd.js +0 -2
  56. package/dist/chunks/ChatView-ChyTcmrd.js.map +0 -1
  57. package/dist/chunks/Passkeys-DJn9yy-0.js +0 -2
  58. package/dist/chunks/Passkeys-DJn9yy-0.js.map +0 -1
  59. package/dist/chunks/Passkeys-WWAg5tKf.js +0 -2
  60. package/dist/chunks/Passkeys-WWAg5tKf.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/UserProfileView-udbSWe1S.js"),i=require("./chunks/index-dFX91Gwz.js");exports.PasskeySetupView=e.PasskeySetupView,exports.ProfileApiKeysSection=e.ProfileApiKeysSection,exports.ProfileConnectedSection=e.ProfileConnectedSection,exports.ProfileDevicesSection=e.ProfileDevicesSection,exports.ProfileGroupsSection=e.ProfileGroupsSection,exports.ProfileNotificationsSection=e.ProfileNotificationsSection,exports.ProfileOverviewSection=e.ProfileOverviewSection,exports.ProfilePermissionsSection=e.ProfilePermissionsSection,exports.ProfilePersonalSection=e.ProfilePersonalSection,exports.ProfileSecurityEventsSection=e.ProfileSecurityEventsSection,exports.ProfileSecuritySection=e.ProfileSecuritySection,exports.ProfileSessionsSection=e.ProfileSessionsSection,exports.UserProfileView=e.UserProfileView,exports.ProfileActivitySection=i.ProfileActivitySection;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/UserProfileView-cUF8ED9n.js"),i=require("./chunks/index-Cxffar1o.js");exports.PasskeySetupView=e.PasskeySetupView,exports.ProfileApiKeysSection=e.ProfileApiKeysSection,exports.ProfileConnectedSection=e.ProfileConnectedSection,exports.ProfileDevicesSection=e.ProfileDevicesSection,exports.ProfileGroupsSection=e.ProfileGroupsSection,exports.ProfileNotificationsSection=e.ProfileNotificationsSection,exports.ProfileOverviewSection=e.ProfileOverviewSection,exports.ProfilePermissionsSection=e.ProfilePermissionsSection,exports.ProfilePersonalSection=e.ProfilePersonalSection,exports.ProfileSecurityEventsSection=e.ProfileSecurityEventsSection,exports.ProfileSecuritySection=e.ProfileSecuritySection,exports.ProfileSessionsSection=e.ProfileSessionsSection,exports.UserProfileView=e.UserProfileView,exports.ProfileActivitySection=i.ProfileActivitySection;
2
2
  //# sourceMappingURL=user-profile.cjs.js.map
@@ -1,2 +1,2 @@
1
- import{P as e,a as i,b as o,c as s,d as r,e as n,f as t,g as c,h as a,i as f,j as P,k as l,U as S}from"./chunks/UserProfileView-BPjz7uIp.js";import{ProfileActivitySection as m}from"./chunks/index-Byf1pa3Z.js";export{e as PasskeySetupView,m as ProfileActivitySection,i as ProfileApiKeysSection,o as ProfileConnectedSection,s as ProfileDevicesSection,r as ProfileGroupsSection,n as ProfileNotificationsSection,t as ProfileOverviewSection,c as ProfilePermissionsSection,a as ProfilePersonalSection,f as ProfileSecurityEventsSection,P as ProfileSecuritySection,l as ProfileSessionsSection,S as UserProfileView};
1
+ import{P as e,a as i,b as o,c as s,d as r,e as n,f as t,g as c,h as a,i as f,j as P,k as l,U as S}from"./chunks/UserProfileView-DDflzpTa.js";import{ProfileActivitySection as m}from"./chunks/index-DsID1QpB.js";export{e as PasskeySetupView,m as ProfileActivitySection,i as ProfileApiKeysSection,o as ProfileConnectedSection,s as ProfileDevicesSection,r as ProfileGroupsSection,n as ProfileNotificationsSection,t as ProfileOverviewSection,c as ProfilePermissionsSection,a as ProfilePersonalSection,f as ProfileSecurityEventsSection,P as ProfileSecuritySection,l as ProfileSessionsSection,S as UserProfileView};
2
2
  //# sourceMappingURL=user-profile.es.js.map
@@ -23044,6 +23044,7 @@ var MOJO = (function(exports) {
23044
23044
  this.filterable = options.filterable !== false;
23045
23045
  this.paginated = options.paginated !== false;
23046
23046
  this.clickAction = options.clickAction || "view";
23047
+ this.fetchOnView = options.fetchOnView !== false;
23047
23048
  this.itemView = options.itemView;
23048
23049
  this.addForm = options.addForm;
23049
23050
  this.editForm = options.editForm;
@@ -23959,6 +23960,18 @@ var MOJO = (function(exports) {
23959
23960
  await this.options.onItemView(event.model, event.event);
23960
23961
  return;
23961
23962
  }
23963
+ if (this.fetchOnView) {
23964
+ try {
23965
+ Modal.loading();
23966
+ await event.model.fetch();
23967
+ } catch (error) {
23968
+ Modal.hideLoading(true);
23969
+ Modal.showError(error?.data?.error || error?.message || "Failed to load item details");
23970
+ return;
23971
+ } finally {
23972
+ Modal.hideLoading(true);
23973
+ }
23974
+ }
23962
23975
  const ViewClass = this.getItemViewClass(event.model);
23963
23976
  if (ViewClass) {
23964
23977
  const viewInstance = new ViewClass({ model: event.model, collection: this.collection });