web-mojo 2.1.811 → 2.1.824
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.
- package/dist/admin.cjs.js +1 -1
- package/dist/admin.cjs.js.map +1 -1
- package/dist/admin.es.js +68 -21
- package/dist/admin.es.js.map +1 -1
- package/dist/auth.cjs.js +1 -1
- package/dist/auth.cjs.js.map +1 -1
- package/dist/auth.es.js +32 -15
- package/dist/auth.es.js.map +1 -1
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +2 -2
- package/dist/chunks/{ChatView-ClzTkaOU.js → ChatView-Dm-1ojKc.js} +2 -2
- package/dist/chunks/ChatView-Dm-1ojKc.js.map +1 -0
- package/dist/chunks/{ChatView-BOWKLcbM.js → ChatView-DsdSe1A5.js} +8 -10
- package/dist/chunks/ChatView-DsdSe1A5.js.map +1 -0
- package/dist/chunks/{ContextMenu-CW5SJtd0.js → ContextMenu-6zcMDDiv.js} +2 -2
- package/dist/chunks/{ContextMenu-CW5SJtd0.js.map → ContextMenu-6zcMDDiv.js.map} +1 -1
- package/dist/chunks/{ContextMenu-D7798ql5.js → ContextMenu-C7wfFMyp.js} +2 -2
- package/dist/chunks/{ContextMenu-D7798ql5.js.map → ContextMenu-C7wfFMyp.js.map} +1 -1
- package/dist/chunks/{DataView-BO_3CKit.js → DataView-BDxfTYf0.js} +2 -2
- package/dist/chunks/{DataView-BO_3CKit.js.map → DataView-BDxfTYf0.js.map} +1 -1
- package/dist/chunks/{DataView-BXc0ng8n.js → DataView-BJCAbOpx.js} +2 -2
- package/dist/chunks/{DataView-BXc0ng8n.js.map → DataView-BJCAbOpx.js.map} +1 -1
- package/dist/chunks/{Dialog-S8KdrNk8.js → Dialog-B8_iNgDO.js} +2 -2
- package/dist/chunks/{Dialog-S8KdrNk8.js.map → Dialog-B8_iNgDO.js.map} +1 -1
- package/dist/chunks/{Dialog-DPM6giEy.js → Dialog-CCnOsBBK.js} +5 -5
- package/dist/chunks/{Dialog-DPM6giEy.js.map → Dialog-CCnOsBBK.js.map} +1 -1
- package/dist/chunks/{FormView-kO6LzlPt.js → FormView-CHyzkf7A.js} +26 -2
- package/dist/chunks/{FormView-kO6LzlPt.js.map → FormView-CHyzkf7A.js.map} +1 -1
- package/dist/chunks/{FormView-Dnv2RKTt.js → FormView-NYVaTwDE.js} +3 -3
- package/dist/chunks/{FormView-Dnv2RKTt.js.map → FormView-NYVaTwDE.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-D4rAxlWS.js → MetricsMiniChartWidget-Co_cyqd4.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-D4rAxlWS.js.map → MetricsMiniChartWidget-Co_cyqd4.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-aVmfCf4Q.js → MetricsMiniChartWidget-DkroX-HM.js} +3 -3
- package/dist/chunks/{MetricsMiniChartWidget-aVmfCf4Q.js.map → MetricsMiniChartWidget-DkroX-HM.js.map} +1 -1
- package/dist/chunks/{PDFViewer-Po0eI8C8.js → PDFViewer-CFbFrBdS.js} +2 -2
- package/dist/chunks/{PDFViewer-Po0eI8C8.js.map → PDFViewer-CFbFrBdS.js.map} +1 -1
- package/dist/chunks/{PDFViewer-BQiFwPVS.js → PDFViewer-DLYyetM9.js} +3 -3
- package/dist/chunks/{PDFViewer-BQiFwPVS.js.map → PDFViewer-DLYyetM9.js.map} +1 -1
- package/dist/chunks/{Page-JZMEpEA3.js → Page-C1nY4u_3.js} +2 -2
- package/dist/chunks/{Page-JZMEpEA3.js.map → Page-C1nY4u_3.js.map} +1 -1
- package/dist/chunks/{Page-BVQ0kGQe.js → Page-kuadj0PG.js} +2 -2
- package/dist/chunks/{Page-BVQ0kGQe.js.map → Page-kuadj0PG.js.map} +1 -1
- package/dist/chunks/{TopNav-CEUCxmaH.js → TopNav-B40XDQjS.js} +2 -2
- package/dist/chunks/{TopNav-CEUCxmaH.js.map → TopNav-B40XDQjS.js.map} +1 -1
- package/dist/chunks/{TopNav-CXEa9ca5.js → TopNav-CkJNTimo.js} +5 -5
- package/dist/chunks/{TopNav-CXEa9ca5.js.map → TopNav-CkJNTimo.js.map} +1 -1
- package/dist/chunks/{WebApp-DjJ8JIKq.js → WebApp-D0vBp8ks.js} +2 -2
- package/dist/chunks/{WebApp-DjJ8JIKq.js.map → WebApp-D0vBp8ks.js.map} +1 -1
- package/dist/chunks/{WebApp-BLvli-X8.js → WebApp-DT6XLijH.js} +13 -13
- package/dist/chunks/{WebApp-BLvli-X8.js.map → WebApp-DT6XLijH.js.map} +1 -1
- package/dist/docit.cjs.js +1 -1
- package/dist/docit.es.js +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +11 -11
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +4 -4
- package/package.json +1 -1
- package/dist/chunks/ChatView-BOWKLcbM.js.map +0 -1
- package/dist/chunks/ChatView-ClzTkaOU.js.map +0 -1
package/dist/admin.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { P as Page } from "./chunks/Page-
|
|
2
|
-
import { V as View, h as MOJOUtils } from "./chunks/WebApp-
|
|
3
|
-
import { B, b, a, c, e, f, W } from "./chunks/WebApp-
|
|
4
|
-
import Dialog$1 from "./chunks/Dialog-
|
|
5
|
-
import { M as MetricsChart, c as MetricsMiniChartWidget, P as PieChart } from "./chunks/MetricsMiniChartWidget-
|
|
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-
|
|
7
|
-
import DataView from "./chunks/DataView-
|
|
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-
|
|
9
|
-
import { L as LightboxGallery, P as PDFViewer } from "./chunks/PDFViewer-
|
|
10
|
-
import { a as applyFileDropMixin, F as FormView } from "./chunks/FormView-
|
|
1
|
+
import { P as Page } from "./chunks/Page-kuadj0PG.js";
|
|
2
|
+
import { V as View, h as MOJOUtils } from "./chunks/WebApp-DT6XLijH.js";
|
|
3
|
+
import { B, b, a, c, e, f, W } from "./chunks/WebApp-DT6XLijH.js";
|
|
4
|
+
import Dialog$1 from "./chunks/Dialog-CCnOsBBK.js";
|
|
5
|
+
import { M as MetricsChart, c as MetricsMiniChartWidget, P as PieChart } from "./chunks/MetricsMiniChartWidget-DkroX-HM.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-DsdSe1A5.js";
|
|
7
|
+
import DataView from "./chunks/DataView-BJCAbOpx.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-6zcMDDiv.js";
|
|
9
|
+
import { L as LightboxGallery, P as PDFViewer } from "./chunks/PDFViewer-DLYyetM9.js";
|
|
10
|
+
import { a as applyFileDropMixin, F as FormView } from "./chunks/FormView-CHyzkf7A.js";
|
|
11
11
|
class AdminHeaderView extends View {
|
|
12
12
|
constructor(options = {}) {
|
|
13
13
|
super({
|
|
@@ -1372,7 +1372,6 @@ File.VIEW_CLASS = FileView;
|
|
|
1372
1372
|
class FileTablePage extends TablePage {
|
|
1373
1373
|
constructor(options = {}) {
|
|
1374
1374
|
super({
|
|
1375
|
-
...options,
|
|
1376
1375
|
name: "admin_files",
|
|
1377
1376
|
pageName: "Manage Files",
|
|
1378
1377
|
router: "admin/files",
|
|
@@ -1407,7 +1406,7 @@ class FileTablePage extends TablePage {
|
|
|
1407
1406
|
formatter: "filesize"
|
|
1408
1407
|
},
|
|
1409
1408
|
{
|
|
1410
|
-
key: "group",
|
|
1409
|
+
key: "group.name",
|
|
1411
1410
|
label: "Group",
|
|
1412
1411
|
formatter: "default('No Group')"
|
|
1413
1412
|
},
|
|
@@ -1447,7 +1446,8 @@ class FileTablePage extends TablePage {
|
|
|
1447
1446
|
bordered: false,
|
|
1448
1447
|
hover: true,
|
|
1449
1448
|
responsive: false
|
|
1450
|
-
}
|
|
1449
|
+
},
|
|
1450
|
+
...options
|
|
1451
1451
|
});
|
|
1452
1452
|
this.enableFileDrop({
|
|
1453
1453
|
acceptedTypes: ["*/*"],
|
|
@@ -1462,7 +1462,8 @@ class FileTablePage extends TablePage {
|
|
|
1462
1462
|
* This ensures both button clicks and drag-drop use the same upload flow
|
|
1463
1463
|
*/
|
|
1464
1464
|
async onActionAdd(event, element) {
|
|
1465
|
-
|
|
1465
|
+
event.preventDefault();
|
|
1466
|
+
const Dialog2 = (await import("./chunks/Dialog-CCnOsBBK.js")).default;
|
|
1466
1467
|
const formData = await Dialog2.showForm({
|
|
1467
1468
|
title: "Upload File",
|
|
1468
1469
|
size: "md",
|
|
@@ -2430,6 +2431,10 @@ class IncidentTablePage extends TablePage {
|
|
|
2430
2431
|
header: false,
|
|
2431
2432
|
size: "xl"
|
|
2432
2433
|
},
|
|
2434
|
+
defaultQuery: {
|
|
2435
|
+
sort: "-id",
|
|
2436
|
+
status: "new"
|
|
2437
|
+
},
|
|
2433
2438
|
// Column definitions
|
|
2434
2439
|
columns: [
|
|
2435
2440
|
{
|
|
@@ -2439,6 +2444,14 @@ class IncidentTablePage extends TablePage {
|
|
|
2439
2444
|
sortable: true,
|
|
2440
2445
|
class: "text-muted"
|
|
2441
2446
|
},
|
|
2447
|
+
{
|
|
2448
|
+
key: "status",
|
|
2449
|
+
label: "Status",
|
|
2450
|
+
filter: {
|
|
2451
|
+
type: "select",
|
|
2452
|
+
options: ["new", "open", "paused", "resolved", "qa", "ignored"]
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2442
2455
|
{
|
|
2443
2456
|
key: "created",
|
|
2444
2457
|
label: "Created",
|
|
@@ -2477,13 +2490,11 @@ class IncidentTablePage extends TablePage {
|
|
|
2477
2490
|
// Batch actions
|
|
2478
2491
|
batchBarLocation: "top",
|
|
2479
2492
|
batchActions: [
|
|
2480
|
-
{ label: "
|
|
2481
|
-
{ label: "
|
|
2482
|
-
{ label: "
|
|
2483
|
-
{ label: "
|
|
2484
|
-
{ label: "Change
|
|
2485
|
-
{ label: "Export", icon: "bi bi-download", action: "batch-export" },
|
|
2486
|
-
{ label: "Delete", icon: "bi bi-trash", action: "batch-delete" }
|
|
2493
|
+
{ label: "Open", icon: "bi bi-folder2-open", action: "open" },
|
|
2494
|
+
{ label: "Resolve", icon: "bi bi-check-circle", action: "resolve" },
|
|
2495
|
+
{ label: "Pause", icon: "bi bi-pause-circle", action: "pause" },
|
|
2496
|
+
{ label: "Ignore", icon: "bi bi-x-circle", action: "ignored" },
|
|
2497
|
+
{ label: "Change Status", icon: "bi bi-arrow-repeat", action: "status" }
|
|
2487
2498
|
],
|
|
2488
2499
|
// Table display options
|
|
2489
2500
|
tableOptions: {
|
|
@@ -2494,6 +2505,42 @@ class IncidentTablePage extends TablePage {
|
|
|
2494
2505
|
}
|
|
2495
2506
|
});
|
|
2496
2507
|
}
|
|
2508
|
+
async onActionBatchResolve(event, element) {
|
|
2509
|
+
const selected = this.tableView.getSelectedItems();
|
|
2510
|
+
if (!selected.length) return;
|
|
2511
|
+
const app = this.getApp();
|
|
2512
|
+
const result = await app.confirm(`Are you sure you want to close ${selected.length} incidents?`);
|
|
2513
|
+
if (!result) return;
|
|
2514
|
+
await Promise.all(selected.map((item) => item.model.save({ status: "resolved" })));
|
|
2515
|
+
this.tableView.collection.fetch();
|
|
2516
|
+
}
|
|
2517
|
+
async onActionBatchOpen(event, element) {
|
|
2518
|
+
const selected = this.tableView.getSelectedItems();
|
|
2519
|
+
if (!selected.length) return;
|
|
2520
|
+
const app = this.getApp();
|
|
2521
|
+
const result = await app.confirm(`Are you sure you want to open ${selected.length} incidents?`);
|
|
2522
|
+
if (!result) return;
|
|
2523
|
+
await Promise.all(selected.map((item) => item.model.save({ status: "open" })));
|
|
2524
|
+
this.tableView.collection.fetch();
|
|
2525
|
+
}
|
|
2526
|
+
async onActionBatchPause(event, element) {
|
|
2527
|
+
const selected = this.tableView.getSelectedItems();
|
|
2528
|
+
if (!selected.length) return;
|
|
2529
|
+
const app = this.getApp();
|
|
2530
|
+
const result = await app.confirm(`Are you sure you want to pause ${selected.length} incidents?`);
|
|
2531
|
+
if (!result) return;
|
|
2532
|
+
await Promise.all(selected.map((item) => item.model.save({ status: "paused" })));
|
|
2533
|
+
this.tableView.collection.fetch();
|
|
2534
|
+
}
|
|
2535
|
+
async onActionBatchIgnore(event, element) {
|
|
2536
|
+
const selected = this.tableView.getSelectedItems();
|
|
2537
|
+
if (!selected.length) return;
|
|
2538
|
+
const app = this.getApp();
|
|
2539
|
+
const result = await app.confirm(`Are you sure you want to ignore ${selected.length} incidents?`);
|
|
2540
|
+
if (!result) return;
|
|
2541
|
+
await Promise.all(selected.map((item) => item.model.save({ status: "ignored" })));
|
|
2542
|
+
this.tableView.collection.fetch();
|
|
2543
|
+
}
|
|
2497
2544
|
}
|
|
2498
2545
|
class JobStatsView extends View {
|
|
2499
2546
|
constructor(options = {}) {
|