web-mojo 2.1.173 → 2.1.175

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.
Files changed (59) hide show
  1. package/dist/admin.cjs.js +1 -1
  2. package/dist/admin.es.js +11 -11
  3. package/dist/auth.cjs.js +1 -1
  4. package/dist/auth.cjs.js.map +1 -1
  5. package/dist/auth.es.js +3 -3
  6. package/dist/auth.es.js.map +1 -1
  7. package/dist/charts.cjs.js +1 -1
  8. package/dist/charts.es.js +2 -2
  9. package/dist/chunks/{ContextMenu-XScF-J5w.js → ContextMenu-CuTbtePk.js} +2 -2
  10. package/dist/chunks/{ContextMenu-XScF-J5w.js.map → ContextMenu-CuTbtePk.js.map} +1 -1
  11. package/dist/chunks/{ContextMenu-CEPcuHvB.js → ContextMenu-CvFe_-pA.js} +2 -2
  12. package/dist/chunks/{ContextMenu-CEPcuHvB.js.map → ContextMenu-CvFe_-pA.js.map} +1 -1
  13. package/dist/chunks/{DataView-Dsn28svE.js → DataView-BwZajXhu.js} +2 -2
  14. package/dist/chunks/{DataView-Dsn28svE.js.map → DataView-BwZajXhu.js.map} +1 -1
  15. package/dist/chunks/{DataView-AbatBxDa.js → DataView-UjG66gmW.js} +2 -2
  16. package/dist/chunks/{DataView-AbatBxDa.js.map → DataView-UjG66gmW.js.map} +1 -1
  17. package/dist/chunks/{Dialog-CA6K0Bp6.js → Dialog-BmvpkgLD.js} +2 -2
  18. package/dist/chunks/{Dialog-CA6K0Bp6.js.map → Dialog-BmvpkgLD.js.map} +1 -1
  19. package/dist/chunks/{Dialog-BuSE_Yxs.js → Dialog-eoLNdg-d.js} +5 -5
  20. package/dist/chunks/{Dialog-BuSE_Yxs.js.map → Dialog-eoLNdg-d.js.map} +1 -1
  21. package/dist/chunks/{FilePreviewView-azzgpElT.js → FilePreviewView-Crpalaos.js} +6 -6
  22. package/dist/chunks/{FilePreviewView-azzgpElT.js.map → FilePreviewView-Crpalaos.js.map} +1 -1
  23. package/dist/chunks/{FilePreviewView-D8GD3ZnI.js → FilePreviewView-CxplM_0z.js} +2 -2
  24. package/dist/chunks/{FilePreviewView-D8GD3ZnI.js.map → FilePreviewView-CxplM_0z.js.map} +1 -1
  25. package/dist/chunks/{FormView-CiCYDQrl.js → FormView-BDBRWOlR.js} +2 -2
  26. package/dist/chunks/{FormView-CiCYDQrl.js.map → FormView-BDBRWOlR.js.map} +1 -1
  27. package/dist/chunks/{FormView-mbCL2Uk6.js → FormView-fUbbKQQU.js} +42 -8
  28. package/dist/chunks/{FormView-mbCL2Uk6.js.map → FormView-fUbbKQQU.js.map} +1 -1
  29. package/dist/chunks/{MetricsChart-DZQU53zP.js → MetricsChart-B_KuNFD-.js} +2 -2
  30. package/dist/chunks/{MetricsChart-DZQU53zP.js.map → MetricsChart-B_KuNFD-.js.map} +1 -1
  31. package/dist/chunks/{MetricsChart-BoFkKO44.js → MetricsChart-DY1w4wC-.js} +3 -3
  32. package/dist/chunks/{MetricsChart-BoFkKO44.js.map → MetricsChart-DY1w4wC-.js.map} +1 -1
  33. package/dist/chunks/{PDFViewer-CXIjlS_J.js → PDFViewer-CYaI8u8I.js} +3 -3
  34. package/dist/chunks/{PDFViewer-CXIjlS_J.js.map → PDFViewer-CYaI8u8I.js.map} +1 -1
  35. package/dist/chunks/{PDFViewer-B_5NUuII.js → PDFViewer-D5SmAaQD.js} +2 -2
  36. package/dist/chunks/{PDFViewer-B_5NUuII.js.map → PDFViewer-D5SmAaQD.js.map} +1 -1
  37. package/dist/chunks/{Page-C_qCzB63.js → Page-D5kSAjt8.js} +2 -2
  38. package/dist/chunks/{Page-C_qCzB63.js.map → Page-D5kSAjt8.js.map} +1 -1
  39. package/dist/chunks/{Page-QvMzLei0.js → Page-tbcVc_Wl.js} +2 -2
  40. package/dist/chunks/{Page-QvMzLei0.js.map → Page-tbcVc_Wl.js.map} +1 -1
  41. package/dist/chunks/{TopNav-DLyLLMfe.js → TopNav-DlHcfQbu.js} +2 -2
  42. package/dist/chunks/{TopNav-DLyLLMfe.js.map → TopNav-DlHcfQbu.js.map} +1 -1
  43. package/dist/chunks/{TopNav-BMD8KNHL.js → TopNav-mQvYJp04.js} +2 -2
  44. package/dist/chunks/{TopNav-BMD8KNHL.js.map → TopNav-mQvYJp04.js.map} +1 -1
  45. package/dist/chunks/{User-B2CwuTPN.js → User-CvWFN0ul.js} +2 -2
  46. package/dist/chunks/{User-B2CwuTPN.js.map → User-CvWFN0ul.js.map} +1 -1
  47. package/dist/chunks/{User-jVST-CWx.js → User-DI3U4oRV.js} +2 -2
  48. package/dist/chunks/{User-jVST-CWx.js.map → User-DI3U4oRV.js.map} +1 -1
  49. package/dist/chunks/{WebApp-BZOqcjoi.js → WebApp-B2r2EDj7.js} +12 -12
  50. package/dist/chunks/{WebApp-BZOqcjoi.js.map → WebApp-B2r2EDj7.js.map} +1 -1
  51. package/dist/chunks/{WebApp-BsLUEjBm.js → WebApp-sKJf8j1s.js} +2 -2
  52. package/dist/chunks/{WebApp-BsLUEjBm.js.map → WebApp-sKJf8j1s.js.map} +1 -1
  53. package/dist/docit.cjs.js +1 -1
  54. package/dist/docit.es.js +6 -6
  55. package/dist/index.cjs.js +1 -1
  56. package/dist/index.es.js +11 -11
  57. package/dist/lightbox.cjs.js +1 -1
  58. package/dist/lightbox.es.js +4 -4
  59. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { M as Mustache, h as MOJOUtils, V as View } from "./WebApp-BZOqcjoi.js";
1
+ import { M as Mustache, h as MOJOUtils, V as View } from "./WebApp-B2r2EDj7.js";
2
2
  class FormBuilder {
3
3
  constructor(config = {}) {
4
4
  this.fields = config.fields || [];
@@ -4365,6 +4365,7 @@ class FormView extends View {
4365
4365
  fileInput.dispatchEvent(new Event("change", { bubbles: true }));
4366
4366
  }
4367
4367
  delete this.data[fieldName];
4368
+ this.emit("change", { field: fieldName, value: null, form: this });
4368
4369
  await this.updateField(fieldName);
4369
4370
  }
4370
4371
  /**
@@ -4392,6 +4393,11 @@ class FormView extends View {
4392
4393
  value,
4393
4394
  form: this
4394
4395
  });
4396
+ this.emit("change", {
4397
+ field: fieldName,
4398
+ value,
4399
+ form: this
4400
+ });
4395
4401
  this.emit("form:changed", await this.getFormData());
4396
4402
  }
4397
4403
  /**
@@ -4420,6 +4426,11 @@ class FormView extends View {
4420
4426
  value: selectedValues,
4421
4427
  form: this
4422
4428
  });
4429
+ this.emit("change", {
4430
+ field: fieldName,
4431
+ value: selectedValues,
4432
+ form: this
4433
+ });
4423
4434
  this.emit("form:changed", await this.getFormData());
4424
4435
  }
4425
4436
  // ========================================
@@ -4451,6 +4462,11 @@ class FormView extends View {
4451
4462
  checked: element.checked,
4452
4463
  form: this
4453
4464
  });
4465
+ this.emit("change", {
4466
+ field: fieldName,
4467
+ value: element.checked,
4468
+ form: this
4469
+ });
4454
4470
  }
4455
4471
  }
4456
4472
  /**
@@ -4490,6 +4506,11 @@ class FormView extends View {
4490
4506
  cropData: result.cropData,
4491
4507
  form: this
4492
4508
  });
4509
+ this.emit("change", {
4510
+ field: fieldName,
4511
+ value: croppedFile,
4512
+ form: this
4513
+ });
4493
4514
  } else {
4494
4515
  element.value = "";
4495
4516
  }
@@ -4502,6 +4523,11 @@ class FormView extends View {
4502
4523
  file,
4503
4524
  form: this
4504
4525
  });
4526
+ this.emit("change", {
4527
+ field: fieldName,
4528
+ value: file,
4529
+ form: this
4530
+ });
4505
4531
  }
4506
4532
  } else {
4507
4533
  this.data[fieldName] = file;
@@ -4524,6 +4550,11 @@ class FormView extends View {
4524
4550
  files,
4525
4551
  form: this
4526
4552
  });
4553
+ this.emit("change", {
4554
+ field: element.name,
4555
+ value: files,
4556
+ form: this
4557
+ });
4527
4558
  }
4528
4559
  /**
4529
4560
  * Handle range value changes
@@ -4541,6 +4572,11 @@ class FormView extends View {
4541
4572
  value: element.value,
4542
4573
  form: this
4543
4574
  });
4575
+ this.emit("change", {
4576
+ field: element.name,
4577
+ value: element.value,
4578
+ form: this
4579
+ });
4544
4580
  }
4545
4581
  /**
4546
4582
  * Handle search/filter operations
@@ -4701,12 +4737,10 @@ class FormView extends View {
4701
4737
  return data;
4702
4738
  }
4703
4739
  }
4704
- /**
4705
- * Set model (updates the model reference and rebuilds form)
4706
- * @param {*} newModel - Model to set
4707
- */
4708
- setModel(newModel) {
4709
- this.model = newModel;
4740
+ _onModelChange() {
4741
+ if (this.isMounted()) {
4742
+ this.refreshForm();
4743
+ }
4710
4744
  }
4711
4745
  /**
4712
4746
  * Set defaults (updates defaults and rebuilds form)
@@ -5185,4 +5219,4 @@ export {
5185
5219
  applyFileDropMixin as a,
5186
5220
  FormView$1 as b
5187
5221
  };
5188
- //# sourceMappingURL=FormView-mbCL2Uk6.js.map
5222
+ //# sourceMappingURL=FormView-fUbbKQQU.js.map