web-mojo 2.1.812 → 2.1.827

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 (59) 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 +80 -21
  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 +32 -15
  8. package/dist/auth.es.js.map +1 -1
  9. package/dist/charts.cjs.js +1 -1
  10. package/dist/charts.es.js +2 -2
  11. package/dist/chunks/{ChatView-C9qicT1E.js → ChatView-CM0ATZID.js} +2 -2
  12. package/dist/chunks/ChatView-CM0ATZID.js.map +1 -0
  13. package/dist/chunks/{ChatView-5qyKfc1C.js → ChatView-DJK49g8O.js} +8 -10
  14. package/dist/chunks/ChatView-DJK49g8O.js.map +1 -0
  15. package/dist/chunks/{ContextMenu-apPxoGN1.js → ContextMenu-CRwv6-gc.js} +2 -2
  16. package/dist/chunks/{ContextMenu-apPxoGN1.js.map → ContextMenu-CRwv6-gc.js.map} +1 -1
  17. package/dist/chunks/{ContextMenu-CSqcRPHG.js → ContextMenu-K8sVV2Sf.js} +2 -2
  18. package/dist/chunks/{ContextMenu-CSqcRPHG.js.map → ContextMenu-K8sVV2Sf.js.map} +1 -1
  19. package/dist/chunks/{DataView-DE0rl2J_.js → DataView-3iqbZ_4y.js} +2 -2
  20. package/dist/chunks/{DataView-DE0rl2J_.js.map → DataView-3iqbZ_4y.js.map} +1 -1
  21. package/dist/chunks/{DataView-Crm6ZVOz.js → DataView-DoKRJHii.js} +2 -2
  22. package/dist/chunks/{DataView-Crm6ZVOz.js.map → DataView-DoKRJHii.js.map} +1 -1
  23. package/dist/chunks/{Dialog-B2Gh9Rur.js → Dialog-Bup1WdQn.js} +5 -5
  24. package/dist/chunks/{Dialog-B2Gh9Rur.js.map → Dialog-Bup1WdQn.js.map} +1 -1
  25. package/dist/chunks/{Dialog-BPzVOTJH.js → Dialog-CEEzQOVl.js} +2 -2
  26. package/dist/chunks/{Dialog-BPzVOTJH.js.map → Dialog-CEEzQOVl.js.map} +1 -1
  27. package/dist/chunks/{FormView-DqEwvnj7.js → FormView-BEIw_LH9.js} +3 -3
  28. package/dist/chunks/{FormView-DqEwvnj7.js.map → FormView-BEIw_LH9.js.map} +1 -1
  29. package/dist/chunks/{FormView-DBdVvU6n.js → FormView-C4Po3Q3z.js} +21 -2
  30. package/dist/chunks/{FormView-DBdVvU6n.js.map → FormView-C4Po3Q3z.js.map} +1 -1
  31. package/dist/chunks/{MetricsMiniChartWidget-CELAfma7.js → MetricsMiniChartWidget-CK6K9Kh6.js} +3 -3
  32. package/dist/chunks/{MetricsMiniChartWidget-CELAfma7.js.map → MetricsMiniChartWidget-CK6K9Kh6.js.map} +1 -1
  33. package/dist/chunks/{MetricsMiniChartWidget-Ii6gwezj.js → MetricsMiniChartWidget-CxTnMgp6.js} +2 -2
  34. package/dist/chunks/{MetricsMiniChartWidget-Ii6gwezj.js.map → MetricsMiniChartWidget-CxTnMgp6.js.map} +1 -1
  35. package/dist/chunks/{PDFViewer-PmFm27UR.js → PDFViewer-BvBw9BNk.js} +2 -2
  36. package/dist/chunks/{PDFViewer-PmFm27UR.js.map → PDFViewer-BvBw9BNk.js.map} +1 -1
  37. package/dist/chunks/{PDFViewer-BXy_EBt0.js → PDFViewer-DgXB4rR9.js} +3 -3
  38. package/dist/chunks/{PDFViewer-BXy_EBt0.js.map → PDFViewer-DgXB4rR9.js.map} +1 -1
  39. package/dist/chunks/{Page-DYlm2EbO.js → Page-BJxsE5Os.js} +2 -2
  40. package/dist/chunks/{Page-DYlm2EbO.js.map → Page-BJxsE5Os.js.map} +1 -1
  41. package/dist/chunks/{Page-JZOabpe-.js → Page-DaptCfWp.js} +2 -2
  42. package/dist/chunks/{Page-JZOabpe-.js.map → Page-DaptCfWp.js.map} +1 -1
  43. package/dist/chunks/{TopNav-DcYlHnpj.js → TopNav-BjJojcF7.js} +5 -5
  44. package/dist/chunks/{TopNav-DcYlHnpj.js.map → TopNav-BjJojcF7.js.map} +1 -1
  45. package/dist/chunks/{TopNav-uR5vBvlP.js → TopNav-BkpUjJB2.js} +2 -2
  46. package/dist/chunks/{TopNav-uR5vBvlP.js.map → TopNav-BkpUjJB2.js.map} +1 -1
  47. package/dist/chunks/{WebApp-CmUTFAzu.js → WebApp-9L0mkLAO.js} +2 -2
  48. package/dist/chunks/{WebApp-CmUTFAzu.js.map → WebApp-9L0mkLAO.js.map} +1 -1
  49. package/dist/chunks/{WebApp-BZC1cBJT.js → WebApp-Cd21W4Hv.js} +13 -13
  50. package/dist/chunks/{WebApp-BZC1cBJT.js.map → WebApp-Cd21W4Hv.js.map} +1 -1
  51. package/dist/docit.cjs.js +1 -1
  52. package/dist/docit.es.js +5 -5
  53. package/dist/index.cjs.js +1 -1
  54. package/dist/index.es.js +11 -11
  55. package/dist/lightbox.cjs.js +1 -1
  56. package/dist/lightbox.es.js +4 -4
  57. package/package.json +1 -1
  58. package/dist/chunks/ChatView-5qyKfc1C.js.map +0 -1
  59. package/dist/chunks/ChatView-C9qicT1E.js.map +0 -1
package/dist/admin.es.js CHANGED
@@ -1,13 +1,13 @@
1
- import { P as Page } from "./chunks/Page-JZOabpe-.js";
2
- import { V as View, h as MOJOUtils } from "./chunks/WebApp-BZC1cBJT.js";
3
- import { B, b, a, c, e, f, W } from "./chunks/WebApp-BZC1cBJT.js";
4
- import Dialog$1 from "./chunks/Dialog-B2Gh9Rur.js";
5
- import { M as MetricsChart, c as MetricsMiniChartWidget, P as PieChart } from "./chunks/MetricsMiniChartWidget-CELAfma7.js";
6
- import { b as TablePage, k as EmailDomainForms, j as EmailDomainList, E as EmailDomain, n as MailboxForms, m as MailboxList, l as Mailbox, r as EmailTemplate, d as TabView, t as EmailTemplateForms, s as EmailTemplateList, I as IncidentEvent, B as IncidentEventForms, A as IncidentEventList, w as FileManagerForms, v as FileManagerList, x as File, T as TableView, z as FileForms, y as FileList, ap as GeoLocatedIP, aq as GeoLocatedIPList, aa as MemberList, a9 as LogList, as as TicketList, G as IncidentList, Y as IncidentStats, R as IncidentHistoryList, Q as IncidentHistory, D as Incident, C as ChatView, H as IncidentForms, Z as Job, a3 as JobEventList, a1 as JobLogList, $ as JobForms, _ as JobList, a6 as JobRunnerList, a4 as JobsEngineStats, a7 as JobRunnerForms, a5 as JobRunner, a8 as Log, M as Member, ab as MemberForms, ac as MetricsPermission, ae as MetricsForms, ad as MetricsPermissionList, an as PushConfigForms, ak as PushConfigList, am as PushDeliveryList, ag as PushDeviceList, ao as PushTemplateForms, ai as PushTemplateList, U as RuleSet, X as RuleList, V as RuleSetList, i as S3BucketForms, h as S3BucketList, o as SentMessage, p as SentMessageList, au as TicketNoteList, at as TicketNote, ar as Ticket, av as TicketForms, aw as TicketCategories } from "./chunks/ChatView-5qyKfc1C.js";
7
- import DataView from "./chunks/DataView-DE0rl2J_.js";
8
- import { b as ContextMenu, C as Collection, a as Group, G as GroupList, c as GroupForms, g as UserDevice, j as UserDeviceLocationList, h as UserDeviceList, U as User, f as UserDataView, e as UserForms, d as UserList } from "./chunks/ContextMenu-apPxoGN1.js";
9
- import { L as LightboxGallery, P as PDFViewer } from "./chunks/PDFViewer-BXy_EBt0.js";
10
- import { a as applyFileDropMixin, F as FormView } from "./chunks/FormView-DBdVvU6n.js";
1
+ import { P as Page } from "./chunks/Page-DaptCfWp.js";
2
+ import { V as View, h as MOJOUtils } from "./chunks/WebApp-Cd21W4Hv.js";
3
+ import { B, b, a, c, e, f, W } from "./chunks/WebApp-Cd21W4Hv.js";
4
+ import Dialog$1 from "./chunks/Dialog-Bup1WdQn.js";
5
+ import { M as MetricsChart, c as MetricsMiniChartWidget, P as PieChart } from "./chunks/MetricsMiniChartWidget-CK6K9Kh6.js";
6
+ import { b as TablePage, k as EmailDomainForms, j as EmailDomainList, E as EmailDomain, n as MailboxForms, m as MailboxList, l as Mailbox, r as EmailTemplate, d as TabView, t as EmailTemplateForms, s as EmailTemplateList, I as IncidentEvent, B as IncidentEventForms, A as IncidentEventList, w as FileManagerForms, v as FileManagerList, x as File, T as TableView, z as FileForms, y as FileList, ap as GeoLocatedIP, aq as GeoLocatedIPList, aa as MemberList, a9 as LogList, as as TicketList, G as IncidentList, Y as IncidentStats, R as IncidentHistoryList, Q as IncidentHistory, D as Incident, C as ChatView, H as IncidentForms, Z as Job, a3 as JobEventList, a1 as JobLogList, $ as JobForms, _ as JobList, a6 as JobRunnerList, a4 as JobsEngineStats, a7 as JobRunnerForms, a5 as JobRunner, a8 as Log, M as Member, ab as MemberForms, ac as MetricsPermission, ae as MetricsForms, ad as MetricsPermissionList, an as PushConfigForms, ak as PushConfigList, am as PushDeliveryList, ag as PushDeviceList, ao as PushTemplateForms, ai as PushTemplateList, U as RuleSet, X as RuleList, V as RuleSetList, i as S3BucketForms, h as S3BucketList, o as SentMessage, p as SentMessageList, au as TicketNoteList, at as TicketNote, ar as Ticket, av as TicketForms, aw as TicketCategories } from "./chunks/ChatView-DJK49g8O.js";
7
+ import DataView from "./chunks/DataView-3iqbZ_4y.js";
8
+ import { b as ContextMenu, C as Collection, a as Group, G as GroupList, c as GroupForms, g as UserDevice, j as UserDeviceLocationList, h as UserDeviceList, U as User, f as UserDataView, e as UserForms, d as UserList } from "./chunks/ContextMenu-CRwv6-gc.js";
9
+ import { L as LightboxGallery, P as PDFViewer } from "./chunks/PDFViewer-DgXB4rR9.js";
10
+ import { a as applyFileDropMixin, F as FormView } from "./chunks/FormView-C4Po3Q3z.js";
11
11
  class AdminHeaderView extends View {
12
12
  constructor(options = {}) {
13
13
  super({
@@ -798,6 +798,10 @@ class EmailTemplateTablePage extends TablePage {
798
798
  size: "xl",
799
799
  scrollable: true
800
800
  },
801
+ formDialogConfig: {
802
+ // Dialog options for forms
803
+ size: "xl"
804
+ },
801
805
  // Table columns
802
806
  columns: [
803
807
  { key: "id", label: "ID", width: "70px", sortable: true, class: "text-muted" },
@@ -1372,7 +1376,6 @@ File.VIEW_CLASS = FileView;
1372
1376
  class FileTablePage extends TablePage {
1373
1377
  constructor(options = {}) {
1374
1378
  super({
1375
- ...options,
1376
1379
  name: "admin_files",
1377
1380
  pageName: "Manage Files",
1378
1381
  router: "admin/files",
@@ -1407,7 +1410,7 @@ class FileTablePage extends TablePage {
1407
1410
  formatter: "filesize"
1408
1411
  },
1409
1412
  {
1410
- key: "group",
1413
+ key: "group.name",
1411
1414
  label: "Group",
1412
1415
  formatter: "default('No Group')"
1413
1416
  },
@@ -1447,7 +1450,8 @@ class FileTablePage extends TablePage {
1447
1450
  bordered: false,
1448
1451
  hover: true,
1449
1452
  responsive: false
1450
- }
1453
+ },
1454
+ ...options
1451
1455
  });
1452
1456
  this.enableFileDrop({
1453
1457
  acceptedTypes: ["*/*"],
@@ -1463,7 +1467,7 @@ class FileTablePage extends TablePage {
1463
1467
  */
1464
1468
  async onActionAdd(event, element) {
1465
1469
  event.preventDefault();
1466
- const Dialog2 = (await import("./chunks/Dialog-B2Gh9Rur.js")).default;
1470
+ const Dialog2 = (await import("./chunks/Dialog-Bup1WdQn.js")).default;
1467
1471
  const formData = await Dialog2.showForm({
1468
1472
  title: "Upload File",
1469
1473
  size: "md",
@@ -1916,6 +1920,10 @@ class GroupTablePage extends TablePage {
1916
1920
  viewDialogOptions: {
1917
1921
  header: false
1918
1922
  },
1923
+ defaultQuery: {
1924
+ sort: "-id",
1925
+ is_active: 1
1926
+ },
1919
1927
  // Column definitions
1920
1928
  columns: [
1921
1929
  {
@@ -1925,6 +1933,11 @@ class GroupTablePage extends TablePage {
1925
1933
  sortable: true,
1926
1934
  class: "text-muted"
1927
1935
  },
1936
+ {
1937
+ key: "is_active|yesnoicon",
1938
+ label: "Enabled",
1939
+ visibility: "lg"
1940
+ },
1928
1941
  {
1929
1942
  label: "Avatar",
1930
1943
  key: 'avatar|avatar("sm", "rounded")',
@@ -2431,6 +2444,10 @@ class IncidentTablePage extends TablePage {
2431
2444
  header: false,
2432
2445
  size: "xl"
2433
2446
  },
2447
+ defaultQuery: {
2448
+ sort: "-id",
2449
+ status: "new"
2450
+ },
2434
2451
  // Column definitions
2435
2452
  columns: [
2436
2453
  {
@@ -2440,6 +2457,14 @@ class IncidentTablePage extends TablePage {
2440
2457
  sortable: true,
2441
2458
  class: "text-muted"
2442
2459
  },
2460
+ {
2461
+ key: "status",
2462
+ label: "Status",
2463
+ filter: {
2464
+ type: "select",
2465
+ options: ["new", "open", "paused", "resolved", "qa", "ignored"]
2466
+ }
2467
+ },
2443
2468
  {
2444
2469
  key: "created",
2445
2470
  label: "Created",
@@ -2478,13 +2503,11 @@ class IncidentTablePage extends TablePage {
2478
2503
  // Batch actions
2479
2504
  batchBarLocation: "top",
2480
2505
  batchActions: [
2481
- { label: "Resolve", icon: "bi bi-check-circle", action: "batch-resolve" },
2482
- { label: "Close", icon: "bi bi-x-circle", action: "batch-close" },
2483
- { label: "Assign", icon: "bi bi-person-plus", action: "batch-assign" },
2484
- { label: "Set Priority", icon: "bi bi-flag", action: "batch-priority" },
2485
- { label: "Change State", icon: "bi bi-arrow-repeat", action: "batch-state" },
2486
- { label: "Export", icon: "bi bi-download", action: "batch-export" },
2487
- { label: "Delete", icon: "bi bi-trash", action: "batch-delete" }
2506
+ { label: "Open", icon: "bi bi-folder2-open", action: "open" },
2507
+ { label: "Resolve", icon: "bi bi-check-circle", action: "resolve" },
2508
+ { label: "Pause", icon: "bi bi-pause-circle", action: "pause" },
2509
+ { label: "Ignore", icon: "bi bi-x-circle", action: "ignore" },
2510
+ { label: "Change Status", icon: "bi bi-arrow-repeat", action: "status" }
2488
2511
  ],
2489
2512
  // Table display options
2490
2513
  tableOptions: {
@@ -2495,6 +2518,42 @@ class IncidentTablePage extends TablePage {
2495
2518
  }
2496
2519
  });
2497
2520
  }
2521
+ async onActionBatchResolve(event, element) {
2522
+ const selected = this.tableView.getSelectedItems();
2523
+ if (!selected.length) return;
2524
+ const app = this.getApp();
2525
+ const result = await app.confirm(`Are you sure you want to close ${selected.length} incidents?`);
2526
+ if (!result) return;
2527
+ await Promise.all(selected.map((item) => item.model.save({ status: "resolved" })));
2528
+ this.tableView.collection.fetch();
2529
+ }
2530
+ async onActionBatchOpen(event, element) {
2531
+ const selected = this.tableView.getSelectedItems();
2532
+ if (!selected.length) return;
2533
+ const app = this.getApp();
2534
+ const result = await app.confirm(`Are you sure you want to open ${selected.length} incidents?`);
2535
+ if (!result) return;
2536
+ await Promise.all(selected.map((item) => item.model.save({ status: "open" })));
2537
+ this.tableView.collection.fetch();
2538
+ }
2539
+ async onActionBatchPause(event, element) {
2540
+ const selected = this.tableView.getSelectedItems();
2541
+ if (!selected.length) return;
2542
+ const app = this.getApp();
2543
+ const result = await app.confirm(`Are you sure you want to pause ${selected.length} incidents?`);
2544
+ if (!result) return;
2545
+ await Promise.all(selected.map((item) => item.model.save({ status: "paused" })));
2546
+ this.tableView.collection.fetch();
2547
+ }
2548
+ async onActionBatchIgnore(event, element) {
2549
+ const selected = this.tableView.getSelectedItems();
2550
+ if (!selected.length) return;
2551
+ const app = this.getApp();
2552
+ const result = await app.confirm(`Are you sure you want to ignore ${selected.length} incidents?`);
2553
+ if (!result) return;
2554
+ await Promise.all(selected.map((item) => item.model.save({ status: "ignored" })));
2555
+ this.tableView.collection.fetch();
2556
+ }
2498
2557
  }
2499
2558
  class JobStatsView extends View {
2500
2559
  constructor(options = {}) {