web-mojo 2.1.702 → 2.1.715
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-WPdz1xrn.js → ChatView-7Tl6j0_F.js} +50 -6
- package/dist/chunks/ChatView-7Tl6j0_F.js.map +1 -0
- package/dist/chunks/ChatView-CE-aPq-f.js +2 -0
- package/dist/chunks/ChatView-CE-aPq-f.js.map +1 -0
- package/dist/chunks/{ContextMenu-4qZryVwF.js → ContextMenu-Cii4P-GY.js} +2 -2
- package/dist/chunks/{ContextMenu-4qZryVwF.js.map → ContextMenu-Cii4P-GY.js.map} +1 -1
- package/dist/chunks/{ContextMenu-DwVTBvQh.js → ContextMenu-CvnzcVHB.js} +2 -2
- package/dist/chunks/{ContextMenu-DwVTBvQh.js.map → ContextMenu-CvnzcVHB.js.map} +1 -1
- package/dist/chunks/{DataView-t4xn3OKw.js → DataView-CcrHGiuV.js} +2 -2
- package/dist/chunks/{DataView-t4xn3OKw.js.map → DataView-CcrHGiuV.js.map} +1 -1
- package/dist/chunks/{DataView-C4ZOVg1Z.js → DataView-ZL2WzpAF.js} +2 -2
- package/dist/chunks/{DataView-C4ZOVg1Z.js.map → DataView-ZL2WzpAF.js.map} +1 -1
- package/dist/chunks/{Dialog-DF_TAFuB.js → Dialog-BN3tLJrQ.js} +5 -5
- package/dist/chunks/{Dialog-DF_TAFuB.js.map → Dialog-BN3tLJrQ.js.map} +1 -1
- package/dist/chunks/{Dialog-C3lIXUFh.js → Dialog-C6aTVGxC.js} +2 -2
- package/dist/chunks/{Dialog-C3lIXUFh.js.map → Dialog-C6aTVGxC.js.map} +1 -1
- package/dist/chunks/FormView-DtnOoMzi.js +3 -0
- package/dist/chunks/FormView-DtnOoMzi.js.map +1 -0
- package/dist/chunks/{FormView-D0mZGFTl.js → FormView-sG1KQVJ8.js} +349 -2
- package/dist/chunks/FormView-sG1KQVJ8.js.map +1 -0
- package/dist/chunks/{MetricsMiniChartWidget-CvwygZui.js → MetricsMiniChartWidget-CUDzMBUf.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-CvwygZui.js.map → MetricsMiniChartWidget-CUDzMBUf.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-CSU1dVMB.js → MetricsMiniChartWidget-Yaiay78O.js} +3 -3
- package/dist/chunks/{MetricsMiniChartWidget-CSU1dVMB.js.map → MetricsMiniChartWidget-Yaiay78O.js.map} +1 -1
- package/dist/chunks/{PDFViewer-Cu5DbPEO.js → PDFViewer-BGkd1E_i.js} +2 -2
- package/dist/chunks/{PDFViewer-Cu5DbPEO.js.map → PDFViewer-BGkd1E_i.js.map} +1 -1
- package/dist/chunks/{PDFViewer-98TZg0zr.js → PDFViewer-BpxaCqau.js} +3 -3
- package/dist/chunks/{PDFViewer-98TZg0zr.js.map → PDFViewer-BpxaCqau.js.map} +1 -1
- package/dist/chunks/{Page-BlmcwDFg.js → Page-DCQIIrE5.js} +2 -2
- package/dist/chunks/{Page-BlmcwDFg.js.map → Page-DCQIIrE5.js.map} +1 -1
- package/dist/chunks/{Page-D6A8Hbz2.js → Page-bKLxXw4z.js} +2 -2
- package/dist/chunks/{Page-D6A8Hbz2.js.map → Page-bKLxXw4z.js.map} +1 -1
- package/dist/chunks/{TopNav-BjEeUu6T.js → TopNav-CPyGSny9.js} +5 -5
- package/dist/chunks/{TopNav-BjEeUu6T.js.map → TopNav-CPyGSny9.js.map} +1 -1
- package/dist/chunks/{TopNav-BBkd-H-U.js → TopNav-LA4BgF6l.js} +2 -2
- package/dist/chunks/{TopNav-BBkd-H-U.js.map → TopNav-LA4BgF6l.js.map} +1 -1
- package/dist/chunks/{WebApp-7Fr4mkh7.js → WebApp-CPQTGurF.js} +38 -13
- package/dist/chunks/WebApp-CPQTGurF.js.map +1 -0
- package/dist/chunks/WebApp-PnDZlAh-.js +2 -0
- package/dist/chunks/WebApp-PnDZlAh-.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-C1lQFygO.js +0 -2
- package/dist/chunks/ChatView-C1lQFygO.js.map +0 -1
- package/dist/chunks/ChatView-WPdz1xrn.js.map +0 -1
- package/dist/chunks/FormView-BtymZpex.js +0 -3
- package/dist/chunks/FormView-BtymZpex.js.map +0 -1
- package/dist/chunks/FormView-D0mZGFTl.js.map +0 -1
- package/dist/chunks/WebApp-7Fr4mkh7.js.map +0 -1
- package/dist/chunks/WebApp-QKsHG8Dw.js +0 -2
- package/dist/chunks/WebApp-QKsHG8Dw.js.map +0 -1
package/dist/charts.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/MetricsMiniChartWidget-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/MetricsMiniChartWidget-CUDzMBUf.js"),r=require("./chunks/WebApp-PnDZlAh-.js");exports.BaseChart=e.BaseChart,exports.MetricsChart=e.MetricsChart,exports.MetricsMiniChart=e.MetricsMiniChart,exports.MetricsMiniChartWidget=e.MetricsMiniChartWidget,exports.MiniChart=e.MiniChart,exports.PieChart=e.PieChart,exports.SeriesChart=e.SeriesChart,exports.BUILD_TIME=r.BUILD_TIME,exports.VERSION=r.VERSION,exports.VERSION_INFO=r.VERSION_INFO,exports.VERSION_MAJOR=r.VERSION_MAJOR,exports.VERSION_MINOR=r.VERSION_MINOR,exports.VERSION_REVISION=r.VERSION_REVISION,exports.WebApp=r.WebApp;
|
|
2
2
|
//# sourceMappingURL=charts.cjs.js.map
|
package/dist/charts.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B, M, b, c, a, P, S } from "./chunks/MetricsMiniChartWidget-
|
|
2
|
-
import { B as B2, b as b2, a as a2, c as c2, e, f, W } from "./chunks/WebApp-
|
|
1
|
+
import { B, M, b, c, a, P, S } from "./chunks/MetricsMiniChartWidget-Yaiay78O.js";
|
|
2
|
+
import { B as B2, b as b2, a as a2, c as c2, e, f, W } from "./chunks/WebApp-CPQTGurF.js";
|
|
3
3
|
export {
|
|
4
4
|
B2 as BUILD_TIME,
|
|
5
5
|
B as BaseChart,
|
|
@@ -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-Cii4P-GY.js";
|
|
2
|
+
import { r as rest, V as View, d as dataFormatter, M as Mustache } from "./WebApp-CPQTGurF.js";
|
|
3
|
+
import { P as Page } from "./Page-bKLxXw4z.js";
|
|
4
|
+
import Dialog from "./Dialog-BN3tLJrQ.js";
|
|
5
|
+
import { F as FormView, a as applyFileDropMixin } from "./FormView-sG1KQVJ8.js";
|
|
6
6
|
class S3Bucket extends Model {
|
|
7
7
|
constructor(data = {}) {
|
|
8
8
|
super(data, {
|
|
@@ -3795,6 +3795,7 @@ class TableView extends ListView {
|
|
|
3795
3795
|
this.rowAction = options.rowAction || "row-click";
|
|
3796
3796
|
this.batchBarLocation = options.batchBarLocation || "bottom";
|
|
3797
3797
|
this.options.addButtonLabel = options.addButtonLabel || "Add";
|
|
3798
|
+
this.toolbarButtons = options.toolbarButtons || [];
|
|
3798
3799
|
this.tableOptions = {
|
|
3799
3800
|
striped: true,
|
|
3800
3801
|
bordered: false,
|
|
@@ -4108,6 +4109,39 @@ class TableView extends ListView {
|
|
|
4108
4109
|
`);
|
|
4109
4110
|
}
|
|
4110
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
|
+
}
|
|
4111
4145
|
return buttons.join("");
|
|
4112
4146
|
}
|
|
4113
4147
|
/**
|
|
@@ -5575,6 +5609,16 @@ class TableView extends ListView {
|
|
|
5575
5609
|
this.clearSelection();
|
|
5576
5610
|
this.updateBatchActionsPanel();
|
|
5577
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
|
+
}
|
|
5578
5622
|
}
|
|
5579
5623
|
class TablePage extends Page {
|
|
5580
5624
|
constructor(options = {}) {
|
|
@@ -7239,4 +7283,4 @@ export {
|
|
|
7239
7283
|
FileList as y,
|
|
7240
7284
|
FileForms as z
|
|
7241
7285
|
};
|
|
7242
|
-
//# sourceMappingURL=ChatView-
|
|
7286
|
+
//# sourceMappingURL=ChatView-7Tl6j0_F.js.map
|