web-mojo 2.1.1097 → 2.1.1099
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 +18 -17
- package/dist/admin.es.js.map +1 -1
- package/dist/auth.cjs.js +1 -1
- package/dist/auth.es.js +1 -1
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +3 -3
- package/dist/chunks/{ChatView-Bfkrpr1K.js → ChatView-BMOwUJvp.js} +21 -6
- package/dist/chunks/ChatView-BMOwUJvp.js.map +1 -0
- package/dist/chunks/ChatView-C7sLr2J4.js +2 -0
- package/dist/chunks/ChatView-C7sLr2J4.js.map +1 -0
- package/dist/chunks/{Collection-CsAk0UhA.js → Collection-DpdzB_n7.js} +2 -2
- package/dist/chunks/{Collection-CsAk0UhA.js.map → Collection-DpdzB_n7.js.map} +1 -1
- package/dist/chunks/{ContextMenu-Dfdrnd0f.js → ContextMenu-CLRRrCUp.js} +2 -2
- package/dist/chunks/{ContextMenu-Dfdrnd0f.js.map → ContextMenu-CLRRrCUp.js.map} +1 -1
- package/dist/chunks/{Dialog-ua-xN2r0.js → Dialog-B2JUzeMM.js} +2 -2
- package/dist/chunks/{Dialog-ua-xN2r0.js.map → Dialog-B2JUzeMM.js.map} +1 -1
- package/dist/chunks/{Dialog-CJI-4RvO.js → Dialog-VNV1BoVO.js} +3 -3
- package/dist/chunks/{Dialog-CJI-4RvO.js.map → Dialog-VNV1BoVO.js.map} +1 -1
- package/dist/chunks/{FormView-Cd20wDM9.js → FormView-D5FEA-Nu.js} +3 -3
- package/dist/chunks/{FormView-Cd20wDM9.js.map → FormView-D5FEA-Nu.js.map} +1 -1
- package/dist/chunks/{FormView-kvFr4UJs.js → FormView-DRiG4b10.js} +15 -5
- package/dist/chunks/{FormView-kvFr4UJs.js.map → FormView-DRiG4b10.js.map} +1 -1
- package/dist/chunks/{ListView-BGJG4GYH.js → ListView-B2gyVSMW.js} +2 -2
- package/dist/chunks/{ListView-BGJG4GYH.js.map → ListView-B2gyVSMW.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-Dt_tkyLi.js → MetricsMiniChartWidget-CYENExa2.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-Dt_tkyLi.js.map → MetricsMiniChartWidget-CYENExa2.js.map} +1 -1
- package/dist/chunks/{MetricsMiniChartWidget-B-DkwhEe.js → MetricsMiniChartWidget-DNNWwpp0.js} +2 -2
- package/dist/chunks/{MetricsMiniChartWidget-B-DkwhEe.js.map → MetricsMiniChartWidget-DNNWwpp0.js.map} +1 -1
- package/dist/chunks/{PDFViewer-etF76Hp4.js → PDFViewer-Ci7vFBlz.js} +2 -2
- package/dist/chunks/{PDFViewer-etF76Hp4.js.map → PDFViewer-Ci7vFBlz.js.map} +1 -1
- package/dist/chunks/{PDFViewer-TJVI4Fk_.js → PDFViewer-DG345H4m.js} +2 -2
- package/dist/chunks/{PDFViewer-TJVI4Fk_.js.map → PDFViewer-DG345H4m.js.map} +1 -1
- package/dist/chunks/{TokenManager-BnoRHJWF.js → TokenManager-BJa_JUI4.js} +4 -4
- package/dist/chunks/{TokenManager-BnoRHJWF.js.map → TokenManager-BJa_JUI4.js.map} +1 -1
- package/dist/chunks/{TokenManager-DVaAsp-g.js → TokenManager-DpzgbkN4.js} +2 -2
- package/dist/chunks/{TokenManager-DVaAsp-g.js.map → TokenManager-DpzgbkN4.js.map} +1 -1
- package/dist/chunks/{version-DTTHrOII.js → version-CGkPXReu.js} +4 -4
- package/dist/chunks/{version-DTTHrOII.js.map → version-CGkPXReu.js.map} +1 -1
- package/dist/chunks/{version-BRhCB2Bv.js → version-Dv-LRsJ8.js} +2 -2
- package/dist/chunks/{version-BRhCB2Bv.js.map → version-Dv-LRsJ8.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/dist/map.es.js +1 -1
- package/dist/timeline.es.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/ChatView-Bfkrpr1K.js.map +0 -1
- package/dist/chunks/ChatView-Bx3GEAk-.js +0 -2
- package/dist/chunks/ChatView-Bx3GEAk-.js.map +0 -1
|
@@ -6198,15 +6198,24 @@ class FormView extends View {
|
|
|
6198
6198
|
*/
|
|
6199
6199
|
async executeBatchSave() {
|
|
6200
6200
|
if (this.isSaving || this.pendingSaveFields.size === 0) return;
|
|
6201
|
+
const changes = Object.fromEntries(this.pendingSaveFields);
|
|
6202
|
+
const fieldNames = Array.from(this.pendingSaveFields.keys());
|
|
6201
6203
|
try {
|
|
6202
6204
|
this.isSaving = true;
|
|
6203
|
-
const changes = Object.fromEntries(this.pendingSaveFields);
|
|
6204
|
-
const fieldNames = Array.from(this.pendingSaveFields.keys());
|
|
6205
6205
|
this.pendingSaveFields.clear();
|
|
6206
6206
|
this.batchSaveTimeout = null;
|
|
6207
6207
|
this._isFormDrivenChange = true;
|
|
6208
6208
|
if (typeof this.model.save === "function") {
|
|
6209
|
-
await this.model.save(changes);
|
|
6209
|
+
const resp = await this.model.save(changes);
|
|
6210
|
+
if (!resp || !resp.success || resp.data && !resp.data.status) {
|
|
6211
|
+
const errorMsg = resp?.data?.error || resp?.error || resp?.message || "Save failed";
|
|
6212
|
+
this.getApp()?.toast?.error(errorMsg);
|
|
6213
|
+
fieldNames.forEach((fieldName) => {
|
|
6214
|
+
const statusManager = this.getFieldStatusManager(fieldName);
|
|
6215
|
+
statusManager.showStatus("error", { message: errorMsg });
|
|
6216
|
+
});
|
|
6217
|
+
return;
|
|
6218
|
+
}
|
|
6210
6219
|
} else {
|
|
6211
6220
|
Object.entries(changes).forEach(([key, val]) => {
|
|
6212
6221
|
this.model.set(key, val);
|
|
@@ -6218,7 +6227,8 @@ class FormView extends View {
|
|
|
6218
6227
|
});
|
|
6219
6228
|
} catch (error) {
|
|
6220
6229
|
console.error("Batch save error:", error);
|
|
6221
|
-
|
|
6230
|
+
this.getApp()?.toast?.error(error.message || "An error occurred while saving");
|
|
6231
|
+
fieldNames.forEach((fieldName) => {
|
|
6222
6232
|
const statusManager = this.getFieldStatusManager(fieldName);
|
|
6223
6233
|
statusManager.showStatus("error", { message: error.message });
|
|
6224
6234
|
});
|
|
@@ -7784,4 +7794,4 @@ export {
|
|
|
7784
7794
|
applyFileDropMixin as a,
|
|
7785
7795
|
FormView$1 as b
|
|
7786
7796
|
};
|
|
7787
|
-
//# sourceMappingURL=FormView-
|
|
7797
|
+
//# sourceMappingURL=FormView-DRiG4b10.js.map
|