web-mojo 2.1.701 → 2.1.703
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.es.js +10 -10
- package/dist/auth.cjs.js +1 -1
- package/dist/auth.cjs.js.map +1 -1
- package/dist/auth.es.js +3 -3
- 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-B-ALlbsJ.js +2 -0
- package/dist/chunks/ChatView-B-ALlbsJ.js.map +1 -0
- package/dist/chunks/{ChatView-B7yJCx17.js → ChatView-CzcjZ6QP.js} +51 -6
- package/dist/chunks/ChatView-CzcjZ6QP.js.map +1 -0
- package/dist/chunks/{ContextMenu-CWyVdD0T.js → ContextMenu-3XJxQeJC.js} +2 -2
- package/dist/chunks/{ContextMenu-CWyVdD0T.js.map → ContextMenu-3XJxQeJC.js.map} +1 -1
- package/dist/chunks/{ContextMenu-BiDmTQZo.js → ContextMenu-BLLaTKfb.js} +2 -2
- package/dist/chunks/{ContextMenu-BiDmTQZo.js.map → ContextMenu-BLLaTKfb.js.map} +1 -1
- package/dist/chunks/{DataView-Da5d73mm.js → DataView-NYvpXEiu.js} +2 -2
- package/dist/chunks/{DataView-Da5d73mm.js.map → DataView-NYvpXEiu.js.map} +1 -1
- package/dist/chunks/{DataView-CEdYpR2R.js → DataView-aE9jvYh1.js} +2 -2
- package/dist/chunks/{DataView-CEdYpR2R.js.map → DataView-aE9jvYh1.js.map} +1 -1
- package/dist/chunks/{Dialog-INdmGoDn.js → Dialog-BKMpiDdL.js} +2 -2
- package/dist/chunks/{Dialog-INdmGoDn.js.map → Dialog-BKMpiDdL.js.map} +1 -1
- package/dist/chunks/{Dialog-BvZ2fvRX.js → Dialog-DKYQBU7p.js} +5 -5
- package/dist/chunks/{Dialog-BvZ2fvRX.js.map → Dialog-DKYQBU7p.js.map} +1 -1
- package/dist/chunks/{FormView-D09jIpPW.js → FormView-DVBIrh9Q.js} +2 -2
- package/dist/chunks/{FormView-D09jIpPW.js.map → FormView-DVBIrh9Q.js.map} +1 -1
- package/dist/chunks/{FormView-DrvOoQIv.js → FormView-DV_HKp0B.js} +2 -2
- package/dist/chunks/{FormView-DrvOoQIv.js.map → FormView-DV_HKp0B.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-ZTG7qeuN.js → MetricsMiniChartWidget-k3WKOCxR.js} +3 -3
- package/dist/chunks/{MetricsMiniChartWidget-ZTG7qeuN.js.map → MetricsMiniChartWidget-k3WKOCxR.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-BPzkJlms.js → MetricsMiniChartWidget-lOwyTz8v.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-BPzkJlms.js.map → MetricsMiniChartWidget-lOwyTz8v.js.map} +1 -1
- package/dist/chunks/{PDFViewer-XPdHx5lU.js → PDFViewer-89y-uAXH.js} +3 -3
- package/dist/chunks/{PDFViewer-XPdHx5lU.js.map → PDFViewer-89y-uAXH.js.map} +1 -1
- package/dist/chunks/{PDFViewer-iUPvg3Pk.js → PDFViewer-BYcD9j5q.js} +2 -2
- package/dist/chunks/{PDFViewer-iUPvg3Pk.js.map → PDFViewer-BYcD9j5q.js.map} +1 -1
- package/dist/chunks/{Page-DjEZe6Y8.js → Page-CqYpkV9V.js} +2 -2
- package/dist/chunks/{Page-DjEZe6Y8.js.map → Page-CqYpkV9V.js.map} +1 -1
- package/dist/chunks/{Page-DaVKtn-L.js → Page-yJn8PtJJ.js} +2 -2
- package/dist/chunks/{Page-DaVKtn-L.js.map → Page-yJn8PtJJ.js.map} +1 -1
- package/dist/chunks/{TopNav-dQWeQUAc.js → TopNav-CfNvkf5T.js} +5 -5
- package/dist/chunks/{TopNav-dQWeQUAc.js.map → TopNav-CfNvkf5T.js.map} +1 -1
- package/dist/chunks/{TopNav-BnnxvlpA.js → TopNav-D_J-xBQS.js} +2 -2
- package/dist/chunks/{TopNav-BnnxvlpA.js.map → TopNav-D_J-xBQS.js.map} +1 -1
- package/dist/chunks/WebApp-Bjz0wkVk.js +2 -0
- package/dist/chunks/WebApp-Bjz0wkVk.js.map +1 -0
- package/dist/chunks/{WebApp-Di6aAIhF.js → WebApp-BxWFN9k7.js} +38 -13
- package/dist/chunks/WebApp-BxWFN9k7.js.map +1 -0
- 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-B7yJCx17.js.map +0 -1
- package/dist/chunks/ChatView-DdifP25v.js +0 -2
- package/dist/chunks/ChatView-DdifP25v.js.map +0 -1
- package/dist/chunks/WebApp-Di6aAIhF.js.map +0 -1
- package/dist/chunks/WebApp-jb7JVJWT.js +0 -2
- package/dist/chunks/WebApp-jb7JVJWT.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Model, C as Collection, T as ToastService, G as GroupList, d as UserList } from "./ContextMenu-
|
|
2
|
-
import { r as rest, V as View, d as dataFormatter, M as Mustache } from "./WebApp-
|
|
3
|
-
import { P as Page } from "./Page-
|
|
4
|
-
import Dialog from "./Dialog-
|
|
5
|
-
import { F as FormView, a as applyFileDropMixin } from "./FormView-
|
|
1
|
+
import { M as Model, C as Collection, T as ToastService, G as GroupList, d as UserList } from "./ContextMenu-3XJxQeJC.js";
|
|
2
|
+
import { r as rest, V as View, d as dataFormatter, M as Mustache } from "./WebApp-BxWFN9k7.js";
|
|
3
|
+
import { P as Page } from "./Page-yJn8PtJJ.js";
|
|
4
|
+
import Dialog from "./Dialog-DKYQBU7p.js";
|
|
5
|
+
import { F as FormView, a as applyFileDropMixin } from "./FormView-DV_HKp0B.js";
|
|
6
6
|
class S3Bucket extends Model {
|
|
7
7
|
constructor(data = {}) {
|
|
8
8
|
super(data, {
|
|
@@ -3293,6 +3293,7 @@ class TableRow extends ListViewItem {
|
|
|
3293
3293
|
} else if (typeof action === "object") {
|
|
3294
3294
|
return `
|
|
3295
3295
|
<button class="btn btn-sm ${action.class || "btn-outline-primary"}"
|
|
3296
|
+
data-id="${this.model.id}"
|
|
3296
3297
|
data-action="${action.action}"
|
|
3297
3298
|
title="${action.label || ""}">
|
|
3298
3299
|
${action.icon ? `<i class="${action.icon}"></i>` : ""}
|
|
@@ -3794,6 +3795,7 @@ class TableView extends ListView {
|
|
|
3794
3795
|
this.rowAction = options.rowAction || "row-click";
|
|
3795
3796
|
this.batchBarLocation = options.batchBarLocation || "bottom";
|
|
3796
3797
|
this.options.addButtonLabel = options.addButtonLabel || "Add";
|
|
3798
|
+
this.toolbarButtons = options.toolbarButtons || [];
|
|
3797
3799
|
this.tableOptions = {
|
|
3798
3800
|
striped: true,
|
|
3799
3801
|
bordered: false,
|
|
@@ -4107,6 +4109,39 @@ class TableView extends ListView {
|
|
|
4107
4109
|
`);
|
|
4108
4110
|
}
|
|
4109
4111
|
}
|
|
4112
|
+
if (this.toolbarButtons && this.toolbarButtons.length > 0) {
|
|
4113
|
+
this.toolbarButtons.forEach((button, index) => {
|
|
4114
|
+
const {
|
|
4115
|
+
label = "Button",
|
|
4116
|
+
icon = "",
|
|
4117
|
+
action = "",
|
|
4118
|
+
handler = null,
|
|
4119
|
+
variant = "outline-secondary",
|
|
4120
|
+
title = label,
|
|
4121
|
+
className = "",
|
|
4122
|
+
permissions = null
|
|
4123
|
+
} = button;
|
|
4124
|
+
if (permissions && !this.checkPermissions(permissions)) {
|
|
4125
|
+
return;
|
|
4126
|
+
}
|
|
4127
|
+
const iconHtml = icon ? `<i class="${icon} me-1"></i>` : "";
|
|
4128
|
+
const labelHtml = `<span class="d-none d-lg-inline">${label}</span>`;
|
|
4129
|
+
let dataAttrs = "";
|
|
4130
|
+
if (handler) {
|
|
4131
|
+
dataAttrs = `data-action="custom-toolbar-button" data-button-index="${index}"`;
|
|
4132
|
+
} else if (action) {
|
|
4133
|
+
dataAttrs = `data-action="${action}"`;
|
|
4134
|
+
}
|
|
4135
|
+
const btnClass = `btn btn-sm btn-${variant} ${className}`.trim();
|
|
4136
|
+
buttons.push(`
|
|
4137
|
+
<button class="${btnClass}"
|
|
4138
|
+
${dataAttrs}
|
|
4139
|
+
title="${title}">
|
|
4140
|
+
${iconHtml}${labelHtml}
|
|
4141
|
+
</button>
|
|
4142
|
+
`);
|
|
4143
|
+
});
|
|
4144
|
+
}
|
|
4110
4145
|
return buttons.join("");
|
|
4111
4146
|
}
|
|
4112
4147
|
/**
|
|
@@ -5574,6 +5609,16 @@ class TableView extends ListView {
|
|
|
5574
5609
|
this.clearSelection();
|
|
5575
5610
|
this.updateBatchActionsPanel();
|
|
5576
5611
|
}
|
|
5612
|
+
/**
|
|
5613
|
+
* Handle custom toolbar button with handler function
|
|
5614
|
+
*/
|
|
5615
|
+
async onActionCustomToolbarButton(event, element) {
|
|
5616
|
+
const buttonIndex = parseInt(element.getAttribute("data-button-index"), 10);
|
|
5617
|
+
const button = this.toolbarButtons[buttonIndex];
|
|
5618
|
+
if (button && typeof button.handler === "function") {
|
|
5619
|
+
await button.handler.call(this, event, element);
|
|
5620
|
+
}
|
|
5621
|
+
}
|
|
5577
5622
|
}
|
|
5578
5623
|
class TablePage extends Page {
|
|
5579
5624
|
constructor(options = {}) {
|
|
@@ -7238,4 +7283,4 @@ export {
|
|
|
7238
7283
|
FileList as y,
|
|
7239
7284
|
FileForms as z
|
|
7240
7285
|
};
|
|
7241
|
-
//# sourceMappingURL=ChatView-
|
|
7286
|
+
//# sourceMappingURL=ChatView-CzcjZ6QP.js.map
|