web-mojo 2.1.812 → 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 +67 -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-C9qicT1E.js → ChatView-Dm-1ojKc.js} +2 -2
- package/dist/chunks/ChatView-Dm-1ojKc.js.map +1 -0
- package/dist/chunks/{ChatView-5qyKfc1C.js → ChatView-DsdSe1A5.js} +8 -10
- package/dist/chunks/ChatView-DsdSe1A5.js.map +1 -0
- package/dist/chunks/{ContextMenu-apPxoGN1.js → ContextMenu-6zcMDDiv.js} +2 -2
- package/dist/chunks/{ContextMenu-apPxoGN1.js.map → ContextMenu-6zcMDDiv.js.map} +1 -1
- package/dist/chunks/{ContextMenu-CSqcRPHG.js → ContextMenu-C7wfFMyp.js} +2 -2
- package/dist/chunks/{ContextMenu-CSqcRPHG.js.map → ContextMenu-C7wfFMyp.js.map} +1 -1
- package/dist/chunks/{DataView-Crm6ZVOz.js → DataView-BDxfTYf0.js} +2 -2
- package/dist/chunks/{DataView-Crm6ZVOz.js.map → DataView-BDxfTYf0.js.map} +1 -1
- package/dist/chunks/{DataView-DE0rl2J_.js → DataView-BJCAbOpx.js} +2 -2
- package/dist/chunks/{DataView-DE0rl2J_.js.map → DataView-BJCAbOpx.js.map} +1 -1
- package/dist/chunks/{Dialog-BPzVOTJH.js → Dialog-B8_iNgDO.js} +2 -2
- package/dist/chunks/{Dialog-BPzVOTJH.js.map → Dialog-B8_iNgDO.js.map} +1 -1
- package/dist/chunks/{Dialog-B2Gh9Rur.js → Dialog-CCnOsBBK.js} +5 -5
- package/dist/chunks/{Dialog-B2Gh9Rur.js.map → Dialog-CCnOsBBK.js.map} +1 -1
- package/dist/chunks/{FormView-DBdVvU6n.js → FormView-CHyzkf7A.js} +21 -2
- package/dist/chunks/{FormView-DBdVvU6n.js.map → FormView-CHyzkf7A.js.map} +1 -1
- package/dist/chunks/{FormView-DqEwvnj7.js → FormView-NYVaTwDE.js} +3 -3
- package/dist/chunks/{FormView-DqEwvnj7.js.map → FormView-NYVaTwDE.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-Ii6gwezj.js → MetricsMiniChartWidget-Co_cyqd4.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-Ii6gwezj.js.map → MetricsMiniChartWidget-Co_cyqd4.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-CELAfma7.js → MetricsMiniChartWidget-DkroX-HM.js} +3 -3
- package/dist/chunks/{MetricsMiniChartWidget-CELAfma7.js.map → MetricsMiniChartWidget-DkroX-HM.js.map} +1 -1
- package/dist/chunks/{PDFViewer-PmFm27UR.js → PDFViewer-CFbFrBdS.js} +2 -2
- package/dist/chunks/{PDFViewer-PmFm27UR.js.map → PDFViewer-CFbFrBdS.js.map} +1 -1
- package/dist/chunks/{PDFViewer-BXy_EBt0.js → PDFViewer-DLYyetM9.js} +3 -3
- package/dist/chunks/{PDFViewer-BXy_EBt0.js.map → PDFViewer-DLYyetM9.js.map} +1 -1
- package/dist/chunks/{Page-DYlm2EbO.js → Page-C1nY4u_3.js} +2 -2
- package/dist/chunks/{Page-DYlm2EbO.js.map → Page-C1nY4u_3.js.map} +1 -1
- package/dist/chunks/{Page-JZOabpe-.js → Page-kuadj0PG.js} +2 -2
- package/dist/chunks/{Page-JZOabpe-.js.map → Page-kuadj0PG.js.map} +1 -1
- package/dist/chunks/{TopNav-uR5vBvlP.js → TopNav-B40XDQjS.js} +2 -2
- package/dist/chunks/{TopNav-uR5vBvlP.js.map → TopNav-B40XDQjS.js.map} +1 -1
- package/dist/chunks/{TopNav-DcYlHnpj.js → TopNav-CkJNTimo.js} +5 -5
- package/dist/chunks/{TopNav-DcYlHnpj.js.map → TopNav-CkJNTimo.js.map} +1 -1
- package/dist/chunks/{WebApp-CmUTFAzu.js → WebApp-D0vBp8ks.js} +2 -2
- package/dist/chunks/{WebApp-CmUTFAzu.js.map → WebApp-D0vBp8ks.js.map} +1 -1
- package/dist/chunks/{WebApp-BZC1cBJT.js → WebApp-DT6XLijH.js} +13 -13
- package/dist/chunks/{WebApp-BZC1cBJT.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-5qyKfc1C.js.map +0 -1
- 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-
|
|
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: ["*/*"],
|
|
@@ -1463,7 +1463,7 @@ class FileTablePage extends TablePage {
|
|
|
1463
1463
|
*/
|
|
1464
1464
|
async onActionAdd(event, element) {
|
|
1465
1465
|
event.preventDefault();
|
|
1466
|
-
const Dialog2 = (await import("./chunks/Dialog-
|
|
1466
|
+
const Dialog2 = (await import("./chunks/Dialog-CCnOsBBK.js")).default;
|
|
1467
1467
|
const formData = await Dialog2.showForm({
|
|
1468
1468
|
title: "Upload File",
|
|
1469
1469
|
size: "md",
|
|
@@ -2431,6 +2431,10 @@ class IncidentTablePage extends TablePage {
|
|
|
2431
2431
|
header: false,
|
|
2432
2432
|
size: "xl"
|
|
2433
2433
|
},
|
|
2434
|
+
defaultQuery: {
|
|
2435
|
+
sort: "-id",
|
|
2436
|
+
status: "new"
|
|
2437
|
+
},
|
|
2434
2438
|
// Column definitions
|
|
2435
2439
|
columns: [
|
|
2436
2440
|
{
|
|
@@ -2440,6 +2444,14 @@ class IncidentTablePage extends TablePage {
|
|
|
2440
2444
|
sortable: true,
|
|
2441
2445
|
class: "text-muted"
|
|
2442
2446
|
},
|
|
2447
|
+
{
|
|
2448
|
+
key: "status",
|
|
2449
|
+
label: "Status",
|
|
2450
|
+
filter: {
|
|
2451
|
+
type: "select",
|
|
2452
|
+
options: ["new", "open", "paused", "resolved", "qa", "ignored"]
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2443
2455
|
{
|
|
2444
2456
|
key: "created",
|
|
2445
2457
|
label: "Created",
|
|
@@ -2478,13 +2490,11 @@ class IncidentTablePage extends TablePage {
|
|
|
2478
2490
|
// Batch actions
|
|
2479
2491
|
batchBarLocation: "top",
|
|
2480
2492
|
batchActions: [
|
|
2481
|
-
{ label: "
|
|
2482
|
-
{ label: "
|
|
2483
|
-
{ label: "
|
|
2484
|
-
{ label: "
|
|
2485
|
-
{ label: "Change
|
|
2486
|
-
{ label: "Export", icon: "bi bi-download", action: "batch-export" },
|
|
2487
|
-
{ 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" }
|
|
2488
2498
|
],
|
|
2489
2499
|
// Table display options
|
|
2490
2500
|
tableOptions: {
|
|
@@ -2495,6 +2505,42 @@ class IncidentTablePage extends TablePage {
|
|
|
2495
2505
|
}
|
|
2496
2506
|
});
|
|
2497
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
|
+
}
|
|
2498
2544
|
}
|
|
2499
2545
|
class JobStatsView extends View {
|
|
2500
2546
|
constructor(options = {}) {
|