web-mojo 2.1.337 → 2.1.339

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 (60) hide show
  1. package/dist/admin.cjs.js +1 -1
  2. package/dist/admin.cjs.js.map +1 -1
  3. package/dist/admin.es.js +44 -38
  4. package/dist/admin.es.js.map +1 -1
  5. package/dist/auth.cjs.js +1 -1
  6. package/dist/auth.cjs.js.map +1 -1
  7. package/dist/auth.es.js +3 -3
  8. package/dist/auth.es.js.map +1 -1
  9. package/dist/charts.cjs.js +1 -1
  10. package/dist/charts.es.js +2 -2
  11. package/dist/chunks/{ContextMenu-Dl5BF8QJ.js → ContextMenu-BT3vN7aw.js} +2 -2
  12. package/dist/chunks/{ContextMenu-Dl5BF8QJ.js.map → ContextMenu-BT3vN7aw.js.map} +1 -1
  13. package/dist/chunks/{ContextMenu-98dg4R2t.js → ContextMenu-BqOWkQTt.js} +2 -2
  14. package/dist/chunks/{ContextMenu-98dg4R2t.js.map → ContextMenu-BqOWkQTt.js.map} +1 -1
  15. package/dist/chunks/{DataView-DZ2kF47b.js → DataView-DdcSHghg.js} +2 -2
  16. package/dist/chunks/{DataView-DZ2kF47b.js.map → DataView-DdcSHghg.js.map} +1 -1
  17. package/dist/chunks/{DataView-CTF7BN4B.js → DataView-NZ1_P0Uf.js} +2 -2
  18. package/dist/chunks/{DataView-CTF7BN4B.js.map → DataView-NZ1_P0Uf.js.map} +1 -1
  19. package/dist/chunks/{Dialog-1GfD6-3r.js → Dialog-B71VE40z.js} +5 -5
  20. package/dist/chunks/{Dialog-1GfD6-3r.js.map → Dialog-B71VE40z.js.map} +1 -1
  21. package/dist/chunks/{Dialog-BgaP4o1D.js → Dialog-CCDZACXQ.js} +2 -2
  22. package/dist/chunks/{Dialog-BgaP4o1D.js.map → Dialog-CCDZACXQ.js.map} +1 -1
  23. package/dist/chunks/FilePreviewView-BGOBqhUE.js +2 -0
  24. package/dist/chunks/FilePreviewView-BGOBqhUE.js.map +1 -0
  25. package/dist/chunks/{FilePreviewView-CiAkm9fN.js → FilePreviewView-WjbdoWrT.js} +14 -13
  26. package/dist/chunks/FilePreviewView-WjbdoWrT.js.map +1 -0
  27. package/dist/chunks/{FormView-CglUjQ3E.js → FormView-BljGVlOM.js} +2 -2
  28. package/dist/chunks/{FormView-CglUjQ3E.js.map → FormView-BljGVlOM.js.map} +1 -1
  29. package/dist/chunks/{FormView-eLjHQ4Yy.js → FormView-D3_d_L41.js} +2 -2
  30. package/dist/chunks/{FormView-eLjHQ4Yy.js.map → FormView-D3_d_L41.js.map} +1 -1
  31. package/dist/chunks/{MetricsChart-tsjbYCBw.js → MetricsChart-C2Wr4Vom.js} +2 -2
  32. package/dist/chunks/{MetricsChart-tsjbYCBw.js.map → MetricsChart-C2Wr4Vom.js.map} +1 -1
  33. package/dist/chunks/{MetricsChart-Dr4iyfAI.js → MetricsChart-qAL4Xpge.js} +3 -3
  34. package/dist/chunks/{MetricsChart-Dr4iyfAI.js.map → MetricsChart-qAL4Xpge.js.map} +1 -1
  35. package/dist/chunks/{PDFViewer-7CGUMEOl.js → PDFViewer-DZjz2YPF.js} +2 -2
  36. package/dist/chunks/{PDFViewer-7CGUMEOl.js.map → PDFViewer-DZjz2YPF.js.map} +1 -1
  37. package/dist/chunks/{PDFViewer-Cyn2wZdi.js → PDFViewer-iEMG_tQF.js} +3 -3
  38. package/dist/chunks/{PDFViewer-Cyn2wZdi.js.map → PDFViewer-iEMG_tQF.js.map} +1 -1
  39. package/dist/chunks/{Page-BV2Ym7gu.js → Page-B9zFcwAg.js} +2 -2
  40. package/dist/chunks/{Page-BV2Ym7gu.js.map → Page-B9zFcwAg.js.map} +1 -1
  41. package/dist/chunks/{Page-BQkfWPCI.js → Page-BK3BbbvR.js} +2 -2
  42. package/dist/chunks/{Page-BQkfWPCI.js.map → Page-BK3BbbvR.js.map} +1 -1
  43. package/dist/chunks/{TopNav-a99nWNlO.js → TopNav-B4-mTytV.js} +2 -2
  44. package/dist/chunks/{TopNav-a99nWNlO.js.map → TopNav-B4-mTytV.js.map} +1 -1
  45. package/dist/chunks/{TopNav-BqAMFlyI.js → TopNav-C38znvne.js} +2 -2
  46. package/dist/chunks/{TopNav-BqAMFlyI.js.map → TopNav-C38znvne.js.map} +1 -1
  47. package/dist/chunks/{WebApp-BlE_bW7n.js → WebApp-BoP0b5Ze.js} +2 -2
  48. package/dist/chunks/{WebApp-BlE_bW7n.js.map → WebApp-BoP0b5Ze.js.map} +1 -1
  49. package/dist/chunks/{WebApp-ekvGNIXB.js → WebApp-CYe2_G2E.js} +12 -12
  50. package/dist/chunks/{WebApp-ekvGNIXB.js.map → WebApp-CYe2_G2E.js.map} +1 -1
  51. package/dist/docit.cjs.js +1 -1
  52. package/dist/docit.es.js +5 -5
  53. package/dist/index.cjs.js +1 -1
  54. package/dist/index.es.js +11 -11
  55. package/dist/lightbox.cjs.js +1 -1
  56. package/dist/lightbox.es.js +4 -4
  57. package/package.json +1 -1
  58. package/dist/chunks/FilePreviewView-CiAkm9fN.js.map +0 -1
  59. package/dist/chunks/FilePreviewView-QlITXzbc.js +0 -2
  60. package/dist/chunks/FilePreviewView-QlITXzbc.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-98dg4R2t.js";
2
- import { r as rest, V as View, d as dataFormatter, M as Mustache } from "./WebApp-ekvGNIXB.js";
3
- import { P as Page } from "./Page-BQkfWPCI.js";
4
- import Dialog from "./Dialog-1GfD6-3r.js";
5
- import { F as FormView } from "./FormView-CglUjQ3E.js";
1
+ import { M as Model, C as Collection, T as ToastService, G as GroupList, d as UserList } from "./ContextMenu-BqOWkQTt.js";
2
+ import { r as rest, V as View, d as dataFormatter, M as Mustache } from "./WebApp-CYe2_G2E.js";
3
+ import { P as Page } from "./Page-BK3BbbvR.js";
4
+ import Dialog from "./Dialog-B71VE40z.js";
5
+ import { F as FormView } from "./FormView-BljGVlOM.js";
6
6
  class S3Bucket extends Model {
7
7
  constructor(data = {}) {
8
8
  super(data, {
@@ -2777,9 +2777,6 @@ class ListView extends View {
2777
2777
  */
2778
2778
  async onInit() {
2779
2779
  this._initCollection(this.options.collection || this.options.Collection);
2780
- if (this.collection && this.collection.isEmpty() && this.collection.restEnabled) {
2781
- await this.collection.fetch();
2782
- }
2783
2780
  }
2784
2781
  /**
2785
2782
  * Initialize the collection
@@ -3063,6 +3060,12 @@ class ListView extends View {
3063
3060
  }
3064
3061
  return this;
3065
3062
  }
3063
+ async onAfterMount() {
3064
+ await super.onAfterMount();
3065
+ if (this.collection && (this.options.fetchOnMount || !this.collection.lastFetchTime)) {
3066
+ this.collection.fetch();
3067
+ }
3068
+ }
3066
3069
  /**
3067
3070
  * Refresh the list (re-fetch if collection supports it)
3068
3071
  */
@@ -5524,6 +5527,7 @@ class TablePage extends Page {
5524
5527
  this.tableView = new TableView({
5525
5528
  collection: this.collection,
5526
5529
  containerId: "table",
5530
+ fetchOnMount: true,
5527
5531
  ...this.tableViewConfig
5528
5532
  });
5529
5533
  this.addChild(this.tableView);
@@ -5687,9 +5691,6 @@ class TablePage extends Page {
5687
5691
  this.query.group = this.getApp().activeGroup.id;
5688
5692
  }
5689
5693
  this.applyQueryToCollection();
5690
- if (this.collection && this.collection.restEnabled) {
5691
- await this.collection.fetch();
5692
- }
5693
5694
  if (this.tableView && this.tableView.element) {
5694
5695
  setTimeout(() => {
5695
5696
  this.tableView.updateFilterPills();
@@ -6225,8 +6226,8 @@ class TabView extends View {
6225
6226
  return false;
6226
6227
  }
6227
6228
  this.tabs[label] = view;
6228
- this.addChild(view);
6229
6229
  view.containerId = this.getTabId(label);
6230
+ view.parent = this;
6230
6231
  this.tabLabels = Object.keys(this.tabs);
6231
6232
  if (!this.activeTab || makeActive) {
6232
6233
  this.activeTab = label;
@@ -6562,4 +6563,4 @@ export {
6562
6563
  IncidentEventList as y,
6563
6564
  IncidentEventForms as z
6564
6565
  };
6565
- //# sourceMappingURL=FilePreviewView-CiAkm9fN.js.map
6566
+ //# sourceMappingURL=FilePreviewView-WjbdoWrT.js.map