web-mojo 2.1.379 → 2.1.381
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/{ContextMenu-jd9XHorC.js → ContextMenu-D7MrKGO7.js} +2 -2
- package/dist/chunks/{ContextMenu-jd9XHorC.js.map → ContextMenu-D7MrKGO7.js.map} +1 -1
- package/dist/chunks/{ContextMenu-jer972eJ.js → ContextMenu-DoiC5aBP.js} +2 -2
- package/dist/chunks/{ContextMenu-jer972eJ.js.map → ContextMenu-DoiC5aBP.js.map} +1 -1
- package/dist/chunks/{DataView-CN_p0YbE.js → DataView-BkYIt0kh.js} +2 -2
- package/dist/chunks/{DataView-CN_p0YbE.js.map → DataView-BkYIt0kh.js.map} +1 -1
- package/dist/chunks/{DataView-ChNpDhxW.js → DataView-CBdDVkrM.js} +2 -2
- package/dist/chunks/{DataView-ChNpDhxW.js.map → DataView-CBdDVkrM.js.map} +1 -1
- package/dist/chunks/{Dialog-CkRozcqm.js → Dialog-C2ku3o7e.js} +2 -2
- package/dist/chunks/{Dialog-CkRozcqm.js.map → Dialog-C2ku3o7e.js.map} +1 -1
- package/dist/chunks/{Dialog-CqUJLhaj.js → Dialog-CL5v9LoA.js} +5 -5
- package/dist/chunks/{Dialog-CqUJLhaj.js.map → Dialog-CL5v9LoA.js.map} +1 -1
- package/dist/chunks/{FilePreviewView-C6E1UpLP.js → FilePreviewView-JVRNaQew.js} +6 -6
- package/dist/chunks/{FilePreviewView-C6E1UpLP.js.map → FilePreviewView-JVRNaQew.js.map} +1 -1
- package/dist/chunks/{FilePreviewView-BxSfHgVu.js → FilePreviewView-PBLBpsc2.js} +2 -2
- package/dist/chunks/{FilePreviewView-BxSfHgVu.js.map → FilePreviewView-PBLBpsc2.js.map} +1 -1
- package/dist/chunks/{FormView-Cp1Dx-wN.js → FormView-B7UZBs0x.js} +2 -2
- package/dist/chunks/FormView-B7UZBs0x.js.map +1 -0
- package/dist/chunks/{FormView-BxSIJ_E_.js → FormView-BoxBaXnl.js} +18 -11
- package/dist/chunks/FormView-BoxBaXnl.js.map +1 -0
- package/dist/chunks/{MetricsChart-CCUd_4rl.js → MetricsChart-Dzkzbf7f.js} +2 -2
- package/dist/chunks/{MetricsChart-CCUd_4rl.js.map → MetricsChart-Dzkzbf7f.js.map} +1 -1
- package/dist/chunks/{MetricsChart-fbYECZor.js → MetricsChart-cZ4Dx3bJ.js} +3 -3
- package/dist/chunks/{MetricsChart-fbYECZor.js.map → MetricsChart-cZ4Dx3bJ.js.map} +1 -1
- package/dist/chunks/{PDFViewer-BqLwEA9I.js → PDFViewer-C3CBpSEM.js} +3 -3
- package/dist/chunks/{PDFViewer-BqLwEA9I.js.map → PDFViewer-C3CBpSEM.js.map} +1 -1
- package/dist/chunks/{PDFViewer-BlVqUSUu.js → PDFViewer-CeW32Luz.js} +2 -2
- package/dist/chunks/{PDFViewer-BlVqUSUu.js.map → PDFViewer-CeW32Luz.js.map} +1 -1
- package/dist/chunks/{Page-CZQtHgzc.js → Page-CySYnXIy.js} +2 -2
- package/dist/chunks/{Page-CZQtHgzc.js.map → Page-CySYnXIy.js.map} +1 -1
- package/dist/chunks/{Page-D2MLDNoL.js → Page-Dv1wCWd3.js} +2 -2
- package/dist/chunks/{Page-D2MLDNoL.js.map → Page-Dv1wCWd3.js.map} +1 -1
- package/dist/chunks/{TopNav-De_0Ljqr.js → TopNav-0VwJTJYX.js} +2 -2
- package/dist/chunks/{TopNav-De_0Ljqr.js.map → TopNav-0VwJTJYX.js.map} +1 -1
- package/dist/chunks/{TopNav-CfdhPogz.js → TopNav-60lav94N.js} +2 -2
- package/dist/chunks/{TopNav-CfdhPogz.js.map → TopNav-60lav94N.js.map} +1 -1
- package/dist/chunks/{WebApp-DN8DgOwI.js → WebApp-DOjTfhdO.js} +2 -2
- package/dist/chunks/{WebApp-DN8DgOwI.js.map → WebApp-DOjTfhdO.js.map} +1 -1
- package/dist/chunks/{WebApp-DGEbMf2Q.js → WebApp-DoFA_eUd.js} +12 -12
- package/dist/chunks/{WebApp-DGEbMf2Q.js.map → WebApp-DoFA_eUd.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/FormView-BxSIJ_E_.js.map +0 -1
- package/dist/chunks/FormView-Cp1Dx-wN.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Mustache, h as MOJOUtils, V as View } from "./WebApp-
|
|
1
|
+
import { M as Mustache, h as MOJOUtils, V as View } from "./WebApp-DoFA_eUd.js";
|
|
2
2
|
class FormBuilder {
|
|
3
3
|
constructor(config = {}) {
|
|
4
4
|
this.fields = config.fields || [];
|
|
@@ -4247,15 +4247,20 @@ class FormView extends View {
|
|
|
4247
4247
|
*/
|
|
4248
4248
|
populateFormValues() {
|
|
4249
4249
|
if (!this.element || !this.formConfig?.fields) return;
|
|
4250
|
-
this.
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4250
|
+
this._isPopulating = true;
|
|
4251
|
+
try {
|
|
4252
|
+
this.formConfig.fields.forEach((field) => {
|
|
4253
|
+
if (field.type === "group" && field.fields) {
|
|
4254
|
+
field.fields.forEach((groupField) => {
|
|
4255
|
+
this.populateFieldValue(groupField);
|
|
4256
|
+
});
|
|
4257
|
+
} else {
|
|
4258
|
+
this.populateFieldValue(field);
|
|
4259
|
+
}
|
|
4260
|
+
});
|
|
4261
|
+
} finally {
|
|
4262
|
+
this._isPopulating = false;
|
|
4263
|
+
}
|
|
4259
4264
|
}
|
|
4260
4265
|
/**
|
|
4261
4266
|
* Populate a single field with its value from data
|
|
@@ -4323,6 +4328,7 @@ class FormView extends View {
|
|
|
4323
4328
|
return;
|
|
4324
4329
|
}
|
|
4325
4330
|
input.addEventListener("change", (event) => {
|
|
4331
|
+
if (this._isPopulating) return;
|
|
4326
4332
|
const fieldName = input.name;
|
|
4327
4333
|
if (fieldName) {
|
|
4328
4334
|
let value = input.value;
|
|
@@ -4338,6 +4344,7 @@ class FormView extends View {
|
|
|
4338
4344
|
});
|
|
4339
4345
|
if (input.type === "text" || input.type === "email" || input.type === "url" || input.tagName === "TEXTAREA") {
|
|
4340
4346
|
input.addEventListener("input", (event) => {
|
|
4347
|
+
if (this._isPopulating) return;
|
|
4341
4348
|
const fieldName = input.name;
|
|
4342
4349
|
if (fieldName) {
|
|
4343
4350
|
this.handleFieldChange(fieldName, input.value);
|
|
@@ -5931,4 +5938,4 @@ export {
|
|
|
5931
5938
|
applyFileDropMixin as a,
|
|
5932
5939
|
FormView$1 as b
|
|
5933
5940
|
};
|
|
5934
|
-
//# sourceMappingURL=FormView-
|
|
5941
|
+
//# sourceMappingURL=FormView-BoxBaXnl.js.map
|