web-mojo 2.3.5 → 2.3.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 (62) hide show
  1. package/CHANGELOG.md +63 -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-D3WCWj5q.js → AssistantPanelView-B5tMna_t.js} +2 -2
  9. package/dist/chunks/{AssistantPanelView-D3WCWj5q.js.map → AssistantPanelView-B5tMna_t.js.map} +1 -1
  10. package/dist/chunks/{AssistantPanelView-CvjzGGS8.js → AssistantPanelView-BOdIQuqK.js} +2 -2
  11. package/dist/chunks/{AssistantPanelView-CvjzGGS8.js.map → AssistantPanelView-BOdIQuqK.js.map} +1 -1
  12. package/dist/chunks/{ChatView-B-2JVhM3.js → ChatView-BquP2SP_.js} +2 -2
  13. package/dist/chunks/{ChatView-B-2JVhM3.js.map → ChatView-BquP2SP_.js.map} +1 -1
  14. package/dist/chunks/{ChatView-oZ9FggEo.js → ChatView-rWg4ZSJy.js} +2 -2
  15. package/dist/chunks/{ChatView-oZ9FggEo.js.map → ChatView-rWg4ZSJy.js.map} +1 -1
  16. package/dist/chunks/Passkeys-C1m6avHh.js +2 -0
  17. package/dist/chunks/Passkeys-C1m6avHh.js.map +1 -0
  18. package/dist/chunks/Passkeys-Dx5bduZJ.js +2 -0
  19. package/dist/chunks/Passkeys-Dx5bduZJ.js.map +1 -0
  20. package/dist/chunks/UserProfileView-AhUCUowp.js +2 -0
  21. package/dist/chunks/UserProfileView-AhUCUowp.js.map +1 -0
  22. package/dist/chunks/UserProfileView-CJKQNzSj.js +2 -0
  23. package/dist/chunks/UserProfileView-CJKQNzSj.js.map +1 -0
  24. package/dist/chunks/{admin-CXA-Vkhf.js → admin-Beq0Eckn.js} +2 -2
  25. package/dist/chunks/admin-Beq0Eckn.js.map +1 -0
  26. package/dist/chunks/{admin-DcLy2QC2.js → admin-D2CqCMaa.js} +2 -2
  27. package/dist/chunks/{admin-CXA-Vkhf.js.map → admin-D2CqCMaa.js.map} +1 -1
  28. package/dist/chunks/{exportChart-BQXkqsxe.js → exportChart-Cn6owWxP.js} +2 -2
  29. package/dist/chunks/{exportChart-BQXkqsxe.js.map → exportChart-Cn6owWxP.js.map} +1 -1
  30. package/dist/chunks/{exportChart-UQ5nq_mR.js → exportChart-DqydcfXz.js} +2 -2
  31. package/dist/chunks/{exportChart-UQ5nq_mR.js.map → exportChart-DqydcfXz.js.map} +1 -1
  32. package/dist/chunks/{index-TqW1pAMX.js → index-BKR6vFMH.js} +2 -2
  33. package/dist/chunks/{index-TqW1pAMX.js.map → index-BKR6vFMH.js.map} +1 -1
  34. package/dist/chunks/{index-C9wf7N-j.js → index-CMKYMKaH.js} +2 -2
  35. package/dist/chunks/{index-C9wf7N-j.js.map → index-CMKYMKaH.js.map} +1 -1
  36. package/dist/chunks/{version-xpJSWoyH.js → version-CBjwNXEK.js} +2 -2
  37. package/dist/chunks/{version-xpJSWoyH.js.map → version-CBjwNXEK.js.map} +1 -1
  38. package/dist/chunks/{version-Bdrq2emC.js → version-DQwtLRjN.js} +2 -2
  39. package/dist/chunks/{version-Bdrq2emC.js.map → version-DQwtLRjN.js.map} +1 -1
  40. package/dist/css/web-mojo.css +1 -1
  41. package/dist/docit.cjs.js +1 -1
  42. package/dist/docit.es.js +1 -1
  43. package/dist/index.cjs.js +1 -1
  44. package/dist/index.es.js +1 -1
  45. package/dist/lightbox.cjs.js +1 -1
  46. package/dist/lightbox.es.js +1 -1
  47. package/dist/user-profile.cjs.js +1 -1
  48. package/dist/user-profile.es.js +1 -1
  49. package/dist/web-mojo.lite.iife.js +31 -6
  50. package/dist/web-mojo.lite.iife.js.map +1 -1
  51. package/dist/web-mojo.lite.iife.min.js +58 -58
  52. package/dist/web-mojo.lite.iife.min.js.map +1 -1
  53. package/package.json +1 -1
  54. package/dist/chunks/Passkeys-8ko7Rg8G.js +0 -2
  55. package/dist/chunks/Passkeys-8ko7Rg8G.js.map +0 -1
  56. package/dist/chunks/Passkeys-CD8RKUl8.js +0 -2
  57. package/dist/chunks/Passkeys-CD8RKUl8.js.map +0 -1
  58. package/dist/chunks/UserProfileView-DC70hRer.js +0 -2
  59. package/dist/chunks/UserProfileView-DC70hRer.js.map +0 -1
  60. package/dist/chunks/UserProfileView-TQ9BqUE2.js +0 -2
  61. package/dist/chunks/UserProfileView-TQ9BqUE2.js.map +0 -1
  62. package/dist/chunks/admin-DcLy2QC2.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/UserProfileView-DC70hRer.js"),i=require("./chunks/index-TqW1pAMX.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-CJKQNzSj.js"),i=require("./chunks/index-BKR6vFMH.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 S,U as l}from"./chunks/UserProfileView-TQ9BqUE2.js";import{ProfileActivitySection as p}from"./chunks/index-C9wf7N-j.js";export{e as PasskeySetupView,p 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,S as ProfileSessionsSection,l 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 S,U as l}from"./chunks/UserProfileView-AhUCUowp.js";import{ProfileActivitySection as p}from"./chunks/index-CMKYMKaH.js";export{e as PasskeySetupView,p 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,S as ProfileSessionsSection,l as UserProfileView};
2
2
  //# sourceMappingURL=user-profile.es.js.map
@@ -20390,7 +20390,8 @@ var MOJO = (function(exports) {
20390
20390
  const cellClass = column.class || column.className || "";
20391
20391
  const responsiveClasses = this.getResponsiveClasses(column.visibility);
20392
20392
  const editableClass = column.editable ? "editable-cell" : "";
20393
- const combinedClasses = [cellClass, responsiveClasses, editableClass].filter((c) => c).join(" ");
20393
+ const alignClass = this.tableView && this.tableView.getAlignClass ? this.tableView.getAlignClass(column.align) : "";
20394
+ const combinedClasses = [cellClass, responsiveClasses, editableClass, alignClass].filter((c) => c).join(" ");
20394
20395
  const cellContent = this.buildCellTemplate(column, columnIndex);
20395
20396
  let cellAction = column.action;
20396
20397
  if (!cellAction && column.editable) {
@@ -21204,6 +21205,27 @@ var MOJO = (function(exports) {
21204
21205
  }
21205
21206
  return "";
21206
21207
  }
21208
+ /**
21209
+ * Get Bootstrap text-alignment class for a column.
21210
+ * Accepts 'left', 'center', 'right' (and 'start'/'end' aliases).
21211
+ * Returns '' when no align is set.
21212
+ */
21213
+ getAlignClass(align) {
21214
+ if (!align) return "";
21215
+ const map = {
21216
+ left: "text-start",
21217
+ start: "text-start",
21218
+ center: "text-center",
21219
+ right: "text-end",
21220
+ end: "text-end"
21221
+ };
21222
+ const cls = map[String(align).toLowerCase()];
21223
+ if (!cls) {
21224
+ console.warn(`Invalid column align: ${align}. Valid options are: left, center, right`);
21225
+ return "";
21226
+ }
21227
+ return cls;
21228
+ }
21207
21229
  /**
21208
21230
  * Extract column key and formatter from combined key (e.g., "sales_amount|currency")
21209
21231
  */
@@ -21684,9 +21706,11 @@ var MOJO = (function(exports) {
21684
21706
  </ul>
21685
21707
  </div>
21686
21708
  ` : "";
21709
+ const alignClass = this.getAlignClass(column.align);
21710
+ const headerJustify = alignClass === "text-center" ? "justify-content-center" : alignClass === "text-end" ? "justify-content-end" : "";
21687
21711
  headerCells += `
21688
- <th class="${sortable ? "sortable" : ""} ${responsiveClasses}">
21689
- <div class="d-flex align-items-center">
21712
+ <th class="${sortable ? "sortable" : ""} ${responsiveClasses} ${alignClass}">
21713
+ <div class="d-flex align-items-center ${headerJustify}">
21690
21714
  <span>${label}</span>
21691
21715
  ${sortDropdown}
21692
21716
  </div>
@@ -21717,6 +21741,7 @@ var MOJO = (function(exports) {
21717
21741
  let totalColumnIndex = 0;
21718
21742
  this.columns.forEach((column, index) => {
21719
21743
  const responsiveClasses = this.getResponsiveClasses(column.visibility);
21744
+ const alignClass = this.getAlignClass(column.align);
21720
21745
  if (column.footer_total) {
21721
21746
  const safeKey = `col_${totalColumnIndex}`;
21722
21747
  const formatter = this.parseColumnKey(column.key).formatter || column.formatter;
@@ -21726,12 +21751,12 @@ var MOJO = (function(exports) {
21726
21751
  } else {
21727
21752
  cellContent = `{{footerTotals.${safeKey}.value}}`;
21728
21753
  }
21729
- footerCells += `<td class="table-footer-total ${responsiveClasses}" data-total-column="${safeKey}">${cellContent}</td>`;
21754
+ footerCells += `<td class="table-footer-total ${responsiveClasses} ${alignClass}" data-total-column="${safeKey}">${cellContent}</td>`;
21730
21755
  totalColumnIndex++;
21731
21756
  } else if (index === 0) {
21732
- footerCells += `<td class="table-footer-label ${responsiveClasses}"><strong>Totals</strong></td>`;
21757
+ footerCells += `<td class="table-footer-label ${responsiveClasses} ${alignClass}"><strong>Totals</strong></td>`;
21733
21758
  } else {
21734
- footerCells += `<td class="${responsiveClasses}"></td>`;
21759
+ footerCells += `<td class="${responsiveClasses} ${alignClass}"></td>`;
21735
21760
  }
21736
21761
  });
21737
21762
  if (this.actions) {