web-mojo 2.1.975 → 2.1.976

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 (48) hide show
  1. package/dist/admin.cjs.js +1 -1
  2. package/dist/admin.es.js +7 -7
  3. package/dist/auth.cjs.js +1 -1
  4. package/dist/auth.cjs.js.map +1 -1
  5. package/dist/auth.es.js +2 -2
  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/ChatView-CwXXC_O3.js +2 -0
  10. package/dist/chunks/ChatView-CwXXC_O3.js.map +1 -0
  11. package/dist/chunks/{ChatView-CVywBJ_8.js → ChatView-Dw8d8I1S.js} +13 -4
  12. package/dist/chunks/ChatView-Dw8d8I1S.js.map +1 -0
  13. package/dist/chunks/{Dialog-CIKHFSKs.js → Dialog-BhfhmiUl.js} +3 -3
  14. package/dist/chunks/{Dialog-CIKHFSKs.js.map → Dialog-BhfhmiUl.js.map} +1 -1
  15. package/dist/chunks/{Dialog-BOweFbZA.js → Dialog-CVKNFrDQ.js} +2 -2
  16. package/dist/chunks/{Dialog-BOweFbZA.js.map → Dialog-CVKNFrDQ.js.map} +1 -1
  17. package/dist/chunks/{FormView-D9AoVBWK.js → FormView-C0ZWtQ2P.js} +2 -2
  18. package/dist/chunks/FormView-C0ZWtQ2P.js.map +1 -0
  19. package/dist/chunks/{FormView-CTTdiFe7.js → FormView-DZrcAbsL.js} +49 -1
  20. package/dist/chunks/FormView-DZrcAbsL.js.map +1 -0
  21. package/dist/chunks/{MetricsMiniChartWidget-DIgKgT8t.js → MetricsMiniChartWidget-BJg3zpf_.js} +2 -2
  22. package/dist/chunks/{MetricsMiniChartWidget-DIgKgT8t.js.map → MetricsMiniChartWidget-BJg3zpf_.js.map} +1 -1
  23. package/dist/chunks/{MetricsMiniChartWidget-DZB0mT_U.js → MetricsMiniChartWidget-Qpd3wlJ7.js} +2 -2
  24. package/dist/chunks/{MetricsMiniChartWidget-DZB0mT_U.js.map → MetricsMiniChartWidget-Qpd3wlJ7.js.map} +1 -1
  25. package/dist/chunks/{PDFViewer-xIGvI2HU.js → PDFViewer-B9LCVE-j.js} +2 -2
  26. package/dist/chunks/{PDFViewer-xIGvI2HU.js.map → PDFViewer-B9LCVE-j.js.map} +1 -1
  27. package/dist/chunks/{PDFViewer-BOY-LD7G.js → PDFViewer-CFxKF-Kk.js} +2 -2
  28. package/dist/chunks/{PDFViewer-BOY-LD7G.js.map → PDFViewer-CFxKF-Kk.js.map} +1 -1
  29. package/dist/chunks/{TopNav-3CBu-J0k.js → TopNav-Br24n27M.js} +2 -2
  30. package/dist/chunks/{TopNav-3CBu-J0k.js.map → TopNav-Br24n27M.js.map} +1 -1
  31. package/dist/chunks/{TopNav-CaVVaJGR.js → TopNav-ZyXdW1nn.js} +2 -2
  32. package/dist/chunks/{TopNav-CaVVaJGR.js.map → TopNav-ZyXdW1nn.js.map} +1 -1
  33. package/dist/chunks/{WebApp-Cc82BxYW.js → WebApp-B1Wdzno2.js} +13 -13
  34. package/dist/chunks/{WebApp-Cc82BxYW.js.map → WebApp-B1Wdzno2.js.map} +1 -1
  35. package/dist/chunks/{WebApp-Ds5qfpKa.js → WebApp-CZZ3PjWM.js} +2 -2
  36. package/dist/chunks/{WebApp-Ds5qfpKa.js.map → WebApp-CZZ3PjWM.js.map} +1 -1
  37. package/dist/docit.cjs.js +1 -1
  38. package/dist/docit.es.js +3 -3
  39. package/dist/index.cjs.js +1 -1
  40. package/dist/index.es.js +7 -7
  41. package/dist/lightbox.cjs.js +1 -1
  42. package/dist/lightbox.es.js +3 -3
  43. package/package.json +1 -1
  44. package/dist/chunks/ChatView-CVywBJ_8.js.map +0 -1
  45. package/dist/chunks/ChatView-CeAqSsgH.js +0 -2
  46. package/dist/chunks/ChatView-CeAqSsgH.js.map +0 -1
  47. package/dist/chunks/FormView-CTTdiFe7.js.map +0 -1
  48. package/dist/chunks/FormView-D9AoVBWK.js.map +0 -1
@@ -1700,6 +1700,9 @@ class FormBuilder {
1700
1700
  size = 8,
1701
1701
  maxHeight = null,
1702
1702
  showSelectAll = true,
1703
+ enableSearch = false,
1704
+ searchPlaceholder = "Search...",
1705
+ searchDebounce = 400,
1703
1706
  requiresActiveGroup = false,
1704
1707
  help = field.helpText || field.help || ""
1705
1708
  } = field;
@@ -1721,6 +1724,9 @@ class FormBuilder {
1721
1724
  size,
1722
1725
  maxHeight,
1723
1726
  showSelectAll,
1727
+ enableSearch,
1728
+ searchPlaceholder,
1729
+ searchDebounce,
1724
1730
  disabled,
1725
1731
  required,
1726
1732
  requiresActiveGroup
@@ -3356,6 +3362,14 @@ class CollectionMultiSelectView extends View {
3356
3362
  </label>
3357
3363
  {{/label}}
3358
3364
 
3365
+ {{#enableSearch}}
3366
+ <input type="text"
3367
+ class="form-control form-control-sm mb-2"
3368
+ placeholder="{{searchPlaceholder}}"
3369
+ value="{{searchValue}}"
3370
+ data-change="search" />
3371
+ {{/enableSearch}}
3372
+
3359
3373
  {{#loading}}
3360
3374
  <div class="text-center py-3">
3361
3375
  <div class="spinner-border spinner-border-sm" role="status">
@@ -3426,11 +3440,16 @@ class CollectionMultiSelectView extends View {
3426
3440
  this.size = options.size || 8;
3427
3441
  this.maxHeight = options.maxHeight || this.size * 42;
3428
3442
  this.showSelectAll = options.showSelectAll !== false;
3443
+ this.enableSearch = options.enableSearch || false;
3444
+ this.searchPlaceholder = options.searchPlaceholder || "Search...";
3445
+ this.searchDebounce = options.searchDebounce || 400;
3429
3446
  this.selectedValues = Array.isArray(options.value) ? options.value : [];
3430
3447
  this.loading = false;
3431
3448
  this.items = [];
3432
3449
  this.lastClickedIndex = -1;
3433
3450
  this.fieldId = options.fieldId || `field_${this.name}`;
3451
+ this.searchValue = "";
3452
+ this.searchTimer = null;
3434
3453
  }
3435
3454
  onInit() {
3436
3455
  if (this.collection) {
@@ -3589,6 +3608,35 @@ class CollectionMultiSelectView extends View {
3589
3608
  name: this.name
3590
3609
  });
3591
3610
  }
3611
+ /**
3612
+ * Handle search input with debouncing
3613
+ */
3614
+ async handleChangeSearch(event, element) {
3615
+ this.searchValue = element.value;
3616
+ if (this.searchTimer) {
3617
+ clearTimeout(this.searchTimer);
3618
+ }
3619
+ this.searchTimer = setTimeout(() => {
3620
+ this.performSearch();
3621
+ }, this.searchDebounce);
3622
+ }
3623
+ /**
3624
+ * Perform search on collection
3625
+ */
3626
+ async performSearch() {
3627
+ if (!this.collection) return;
3628
+ try {
3629
+ const searchParams = { ...this.collection.params };
3630
+ if (this.searchValue && this.searchValue.trim()) {
3631
+ searchParams.search = this.searchValue.trim();
3632
+ } else {
3633
+ delete searchParams.search;
3634
+ }
3635
+ await this.collection.updateParams(searchParams, true);
3636
+ } catch (error) {
3637
+ console.error("Search error:", error);
3638
+ }
3639
+ }
3592
3640
  /**
3593
3641
  * Get the current selected values
3594
3642
  */
@@ -7353,4 +7401,4 @@ export {
7353
7401
  applyFileDropMixin as a,
7354
7402
  FormView$1 as b
7355
7403
  };
7356
- //# sourceMappingURL=FormView-CTTdiFe7.js.map
7404
+ //# sourceMappingURL=FormView-DZrcAbsL.js.map