@anzusystems/common-admin 1.47.0-beta.293 → 1.47.0-beta.295

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.
@@ -3008,7 +3008,13 @@ const kc = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
3008
3008
  Sa(
3009
3009
  p,
3010
3010
  (H, re) => {
3011
- H.length < t.minSearchChars || H !== re && (h.value++, M(H, h.value));
3011
+ if (H !== re && !(H.length > 0 && H.length < t.minSearchChars)) {
3012
+ if (H.length === 0 && t.prefetch === !1) {
3013
+ F.value = [];
3014
+ return;
3015
+ }
3016
+ h.value++, M(H, h.value);
3017
+ }
3012
3018
  },
3013
3019
  { debounce: Xi }
3014
3020
  );
@@ -4805,20 +4811,19 @@ Z.mount(new Ms());
4805
4811
  Z.mount(Fa, $a);
4806
4812
  function _s(e, n, t = {}) {
4807
4813
  let a;
4808
- const { document: o = oo, ...r } = t, l = {
4809
- onUpdate: (m) => {
4810
- $s(n, m.oldIndex, m.newIndex, m);
4811
- }
4812
- }, s = () => {
4814
+ const { document: o = oo, ...r } = t, l = { onUpdate: (m) => {
4815
+ $s(n, m.oldIndex, m.newIndex, m);
4816
+ } }, s = () => {
4813
4817
  const m = typeof e == "string" ? o?.querySelector(e) : so(e);
4814
- !m || a !== void 0 || (a = new Z(m, { ...l, ...r }));
4818
+ !m || a !== void 0 || (a = new Z(m, {
4819
+ ...l,
4820
+ ...r
4821
+ }));
4815
4822
  }, i = () => {
4816
4823
  a?.destroy(), a = void 0;
4817
4824
  }, u = (m, f) => {
4818
- if (f !== void 0)
4819
- a?.option(m, f);
4820
- else
4821
- return a?.option(m);
4825
+ if (f !== void 0) a?.option(m, f);
4826
+ else return a?.option(m);
4822
4827
  };
4823
4828
  return lo(s), io(i), {
4824
4829
  stop: i,
@@ -5489,7 +5494,13 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
5489
5494
  Sa(
5490
5495
  d,
5491
5496
  (V, ne) => {
5492
- V.length < a.minSearchChars || V !== ne && (k.value++, U(V, k.value), o("searchChangeDebounced", V));
5497
+ if (V !== ne && !(V.length > 0 && V.length < a.minSearchChars)) {
5498
+ if (V.length === 0 && a.prefetch === !1) {
5499
+ C.value = [];
5500
+ return;
5501
+ }
5502
+ k.value++, U(V, k.value), o("searchChangeDebounced", V);
5503
+ }
5493
5504
  },
5494
5505
  { debounce: Qs }
5495
5506
  ), _e(d, (V, ne) => {
@@ -5787,4 +5798,4 @@ export {
5787
5798
  br as y,
5788
5799
  Io as z
5789
5800
  };
5790
- //# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-NWdSJ0ZT.mjs.map
5801
+ //# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-CHzJB6mo.mjs.map