@opentiny/vue-search-box 2.27.2 → 2.28.0

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 (3) hide show
  1. package/index.js +105 -102
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -362,8 +362,8 @@ const Ct = async (a, e, n) => {
362
362
  const { field: i, label: d, unit: f, type: c, operators: b } = r, h = f ? `${d}(${f})` : d;
363
363
  let v = "";
364
364
  m && l ? v = `${m}-${l}` : v = m ? `≥${m}` : `≤${l}`;
365
- const x = G(n, r, r), T = e.operatorValue && b ? { operator: e.operatorValue } : null;
366
- u = H({ type: c, field: i, label: h, value: v, ...x, start: m, end: l, ...T });
365
+ const y = G(n, r, r), C = e.operatorValue && b ? { operator: e.operatorValue } : null;
366
+ u = H({ type: c, field: i, label: h, value: v, ...y, start: m, end: l, ...C });
367
367
  }
368
368
  return u;
369
369
  }, ce = async (a, e, n, r) => {
@@ -380,8 +380,8 @@ const Ct = async (a, e, n) => {
380
380
  p === u ? h = p : h = `${p}-${u}`;
381
381
  } else
382
382
  h = p ? `≥${p}` : `≤${u}`;
383
- const v = G(n, o, o), x = e.operatorValue && c ? { operator: e.operatorValue } : null;
384
- d = H({ ...b, value: h, start: p, end: u, ...v, ...x });
383
+ const v = G(n, o, o), y = e.operatorValue && c ? { operator: e.operatorValue } : null;
384
+ d = H({ ...b, value: h, start: p, end: u, ...v, ...y });
385
385
  }
386
386
  return d;
387
387
  }, $e = (a, e, n) => {
@@ -390,28 +390,28 @@ const Ct = async (a, e, n) => {
390
390
  const { curMinNumVar: i, curMaxNumVar: d } = a, f = A(l), c = A(s);
391
391
  f || c ? (a.formRules[i] = {
392
392
  validator: (b, h, v) => {
393
- const x = A(h);
394
- !x && A(a[d]) || x && (f && !c && h >= l || !f && c && h <= s || h >= l && h <= s) ? v() : (a.numberShowMessage = !!(h || a[d]), v(new Error(n("tvp.tvpSearchbox.rangeMinErr", [l, s]))));
393
+ const y = A(h);
394
+ !y && A(a[d]) || y && (f && !c && h >= l || !f && c && h <= s || h >= l && h <= s) ? v() : (a.numberShowMessage = !!(h || a[d]), v(new Error(n("tvp.tvpSearchbox.rangeMinErr", [l, s]))));
395
395
  }
396
396
  }, a.formRules[d] = {
397
397
  validator: (b, h, v) => {
398
- const x = A(a[i]), T = x && l < a[i] ? Number(a[i]) : l, g = A(T), _ = A(h);
399
- !_ && x || _ && (g && !c && h >= T || !g && c && h <= s || h >= T && h <= s) ? v() : v(!_ && !x ? new Error(n("tvp.tvpSearchbox.rangeNumberTitle")) : new Error(n("tvp.tvpSearchbox.rangeMaxErr")));
398
+ const y = A(a[i]), C = y && l < a[i] ? Number(a[i]) : l, g = A(C), _ = A(h);
399
+ !_ && y || _ && (g && !c && h >= C || !g && c && h <= s || h >= C && h <= s) ? v() : v(!_ && !y ? new Error(n("tvp.tvpSearchbox.rangeNumberTitle")) : new Error(n("tvp.tvpSearchbox.rangeMaxErr")));
400
400
  }
401
401
  }) : a.formRules[d] = {
402
402
  validator: (b, h, v) => {
403
- const x = a[i], T = A(h), g = A(x);
404
- T && !g || !T && g || T && g && h >= Number(x) ? v() : v(!T && !g ? new Error(n("tvp.tvpSearchbox.rangeNumberTitle")) : new Error(n("tvp.tvpSearchbox.rangeMaxErr")));
403
+ const y = a[i], C = A(h), g = A(y);
404
+ C && !g || !C && g || C && g && h >= Number(y) ? v() : v(!C && !g ? new Error(n("tvp.tvpSearchbox.rangeNumberTitle")) : new Error(n("tvp.tvpSearchbox.rangeMaxErr")));
405
405
  }
406
406
  };
407
407
  };
408
408
  function St({ props: a, emit: e, state: n, t: r, format: o, nextTick: t, vm: m, cancelHandleInput: l }) {
409
409
  const s = m || n.instance, p = (g) => {
410
- var C, w, S;
411
- const { start: _, end: I, type: y } = g;
412
- if (n.backupList = g.options, y === "numRange")
410
+ var T, w, S;
411
+ const { start: _, end: I, type: x } = g;
412
+ if (n.backupList = g.options, x === "numRange")
413
413
  $e(n, g, r);
414
- else if (y === "dateRange") {
414
+ else if (x === "dateRange") {
415
415
  const { dateRangeFormat: V } = n;
416
416
  if (!n.startDate && _) {
417
417
  const D = o(_, V);
@@ -421,7 +421,7 @@ function St({ props: a, emit: e, state: n, t: r, format: o, nextTick: t, vm: m,
421
421
  const D = o(I, V);
422
422
  n.endDate = D < n.startDate ? null : D;
423
423
  }
424
- } else if (y === "datetimeRange") {
424
+ } else if (x === "datetimeRange") {
425
425
  const { datetimeRangeFormat: V } = n;
426
426
  if (!n.startDateTime && _) {
427
427
  const D = o(_, V);
@@ -432,42 +432,42 @@ function St({ props: a, emit: e, state: n, t: r, format: o, nextTick: t, vm: m,
432
432
  n.endDateTime = D < n.startDateTime ? null : D;
433
433
  }
434
434
  } else
435
- n.backupList && y === "checkbox" && (n.filterList = n.backupList, n.checkboxGroup = [], (C = n.backupList) == null || C.forEach((V) => {
435
+ n.backupList && x === "checkbox" && (n.filterList = n.backupList, n.checkboxGroup = [], (T = n.backupList) == null || T.forEach((V) => {
436
436
  O(n, V.label) && n.checkboxGroup.push(`${g.label}${V.label}`), V.isFilter = !1;
437
437
  }));
438
- y !== "checkbox" && ((w = n.backupList) != null && w.length) && ((S = n.backupList) == null || S.forEach((V) => {
438
+ x !== "checkbox" && ((w = n.backupList) != null && w.length) && ((S = n.backupList) == null || S.forEach((V) => {
439
439
  V.isFilter = !1, V.isChecked = O(n, V.label);
440
- })), n.currentOperators = null, !n.backupList && !["dateRange", "datetimeRange", "numRange", "custom"].includes(y) ? k(n, !1) : k(n);
440
+ })), n.currentOperators = null, !n.backupList && !["dateRange", "datetimeRange", "numRange", "custom"].includes(x) ? k(n, !1) : k(n);
441
441
  }, u = (g) => {
442
442
  var w;
443
443
  const { field: _, label: I } = g;
444
444
  n.propItem = { ...n.propItem, label: I }, e("first-level-select", _);
445
- const y = (w = s.$refs) == null ? void 0 : w.inputRef;
445
+ const x = (w = s.$refs) == null ? void 0 : w.inputRef;
446
446
  n.prevItem = g, n.backupPrevItem = g;
447
- const { operators: C } = g;
448
- C != null && C.length ? (n.operatorValue = "", n.currentOperators = C, k(n)) : (n.operatorValue = ":", p(g)), n.inputValue = "", y.focus();
447
+ const { operators: T } = g;
448
+ T != null && T.length ? (n.operatorValue = "", n.currentOperators = T, k(n)) : (n.operatorValue = ":", p(g)), n.inputValue = "", x.focus();
449
449
  }, i = (g) => {
450
450
  n.operatorValue = g, p(n.prevItem);
451
- }, d = (g, _, I, y) => {
452
- const { replace: C, operators: w, mergeTag: S } = g, V = te(g), { indexMap: D } = n, M = D.get(I), E = G(a, g, _), B = n.operatorValue && w ? { operator: n.operatorValue } : null;
451
+ }, d = (g, _, I, x) => {
452
+ const { replace: T, operators: w, mergeTag: S } = g, V = te(g), { indexMap: D } = n, M = D.get(I), E = G(a, g, _), B = n.operatorValue && w ? { operator: n.operatorValue } : null;
453
453
  let P = null;
454
454
  if (S) {
455
- const K = { label: y, ...E };
455
+ const K = { label: x, ...E };
456
456
  if (M >= 0) {
457
- const ne = `${n.innerModelValue[M].value} | ${y}`, re = [...n.innerModelValue[M].options, K];
457
+ const ne = `${n.innerModelValue[M].value} | ${x}`, re = [...n.innerModelValue[M].options, K];
458
458
  P = H({ ...n.innerModelValue[M], value: ne, options: re });
459
459
  } else
460
- P = H({ ...V, label: I, value: y, options: [K] });
460
+ P = H({ ...V, label: I, value: x, options: [K] });
461
461
  } else
462
- P = H({ ...V, label: I, value: y, ...E, ...B });
463
- if (O(n, y, I)) {
462
+ P = H({ ...V, label: I, value: x, ...E, ...B });
463
+ if (O(n, x, I)) {
464
464
  ae(n);
465
465
  return;
466
466
  }
467
467
  k(n, !1);
468
468
  const N = j(n.innerModelValue);
469
469
  let F = [];
470
- if ((C || S) && M >= 0) {
470
+ if ((T || S) && M >= 0) {
471
471
  const K = [...n.innerModelValue];
472
472
  K.splice(M, 1), F = [...K, P];
473
473
  } else
@@ -475,33 +475,36 @@ function St({ props: a, emit: e, state: n, t: r, format: o, nextTick: t, vm: m,
475
475
  R({ emit: e, state: n, nextTick: t, newValue: F, oldValue: N });
476
476
  }, f = (g) => {
477
477
  var _;
478
- (_ = n.propItem) != null && _.label ? c({ label: g }) : x();
478
+ (_ = n.propItem) != null && _.label ? c({ label: g }) : y();
479
479
  }, c = (g, _ = !1) => {
480
480
  var w;
481
481
  k(n, !1), _ && (n.prevItem = g, n.backupPrevItem = g);
482
- const { prevItem: I } = n, y = g.value || g.label, C = (w = s.$refs) == null ? void 0 : w.inputRef;
483
- if (!O(n, y)) {
482
+ const { prevItem: I } = n, x = g.value || g.label, T = (w = s.$refs) == null ? void 0 : w.inputRef;
483
+ if (!O(n, x)) {
484
484
  const S = n.propItem.label || g.label;
485
- d(I, g, S, y);
485
+ d(I, g, S, x);
486
486
  }
487
- C.focus();
487
+ T.focus();
488
488
  }, b = (g, _) => {
489
489
  if (g.label) {
490
- if (e("second-level-enter", _), !_.options)
490
+ if (e("second-level-enter", _), !_.options || !_.options.length)
491
491
  return;
492
- if (!a.modelValue.find((y) => y.value === _.options[0].label)) {
493
- const y = _.label, C = _.options && _.options[0].label;
494
- d(_, _.options[0], y, C);
492
+ const I = _.options[0];
493
+ if (!I)
494
+ return;
495
+ if (!a.modelValue.find((T) => T.value === I.label)) {
496
+ const T = _.label, w = I.label;
497
+ d(_, I, T, w);
495
498
  return;
496
499
  }
497
500
  } else
498
501
  e("search", n.innerModelValue);
499
502
  }, h = (g, _, I) => {
500
- var C;
501
- const y = (C = n.backupList) == null ? void 0 : C.find((w) => w.label === I);
502
- d(g, y, _.label, I);
503
+ var T;
504
+ const x = (T = n.backupList) == null ? void 0 : T.find((w) => w.label === I);
505
+ d(g, x, _.label, I);
503
506
  }, v = (g, _, I) => {
504
- var y, C;
507
+ var x, T;
505
508
  if (_.label) {
506
509
  const { regexp: w, replace: S, type: V, mergeTag: D } = I, M = V !== "checkbox" && S || V === "checkbox" && D ? [g] : g.split(a.splitInputValue);
507
510
  if (w)
@@ -515,7 +518,7 @@ function St({ props: a, emit: e, state: n, t: r, format: o, nextTick: t, vm: m,
515
518
  const { regexp: F } = N;
516
519
  return F && F.test(n.inputValue);
517
520
  }) || (S ? w.find((N) => N.field === S) : n.allTypeAttri), { replace: D, type: M, mergeTag: E } = V, B = M !== "checkbox" && D || M === "checkbox" && E ? [g] : g.split(a.splitInputValue);
518
- (y = V == null ? void 0 : V.options) != null && y.length && (n.backupList = [...V.options], (C = n.backupList) == null || C.forEach((N) => {
521
+ (x = V == null ? void 0 : V.options) != null && x.length && (n.backupList = [...V.options], (T = n.backupList) == null || T.forEach((N) => {
519
522
  const F = N.value || N.label;
520
523
  B.includes(F) && (N.isChecked = !0);
521
524
  }));
@@ -523,20 +526,20 @@ function St({ props: a, emit: e, state: n, t: r, format: o, nextTick: t, vm: m,
523
526
  for (const N of B)
524
527
  d(V, {}, P, N);
525
528
  }
526
- }, x = () => {
529
+ }, y = () => {
527
530
  const { inputValue: g, propItem: _, prevItem: I } = n;
528
531
  if (l && l(), k(n, !1), !g)
529
532
  b(_, I);
530
533
  else {
531
- const { maxlength: y } = a;
532
- if (y && y < g.length) {
533
- e("exceed", y);
534
+ const { maxlength: x } = a;
535
+ if (x && x < g.length) {
536
+ e("exceed", x);
534
537
  return;
535
538
  }
536
539
  v(g, _, I);
537
540
  }
538
541
  };
539
- return { selectPropItem: u, selectRadioItem: c, selectInputValue: f, createTag: x, helpClick: () => {
542
+ return { selectPropItem: u, selectRadioItem: c, selectInputValue: f, createTag: y, helpClick: () => {
540
543
  e("help");
541
544
  }, setOperator: i };
542
545
  }
@@ -553,7 +556,7 @@ function Mt({ props: a, state: e, emit: n, nextTick: r }) {
553
556
  const o = async (u) => {
554
557
  e.potentialOptions = await a.potentialOptions.getMatchList(u), k(e, !0);
555
558
  }, m = Vt((u) => {
556
- var _, I, y, C;
559
+ var _, I, x, T;
557
560
  const { recordItems: i, propItem: d } = e, f = typeof u == "string" ? u : u && u.target && typeof u.target.value == "string" ? u.target.value : e.inputValue || "", c = (_ = String(f)) == null ? void 0 : _.trim(), { maxlength: b } = a;
558
561
  if (b && b < c.length) {
559
562
  n("exceed", b);
@@ -566,31 +569,31 @@ function Mt({ props: a, state: e, emit: n, nextTick: r }) {
566
569
  Object.keys(e.matchItems).forEach((w) => {
567
570
  e.matchItems[w].attr = [], e.matchItems[w].attrValue = [];
568
571
  });
569
- const h = Dt(c), v = new RegExp(h, "i"), x = d.label || !h ? null : i.find((w) => w.type === "map" && v.test(w.label));
570
- if (x) {
571
- e.propItem = { ...e.propItem, label: x.label }, e.inputValue = "", e.prevItem = x, e.backupPrevItem = x, e.backupList = x.options || [];
572
+ const h = Dt(c), v = new RegExp(h, "i"), y = d.label || !h ? null : i.find((w) => w.type === "map" && v.test(w.label));
573
+ if (y) {
574
+ e.propItem = { ...e.propItem, label: y.label }, e.inputValue = "", e.prevItem = y, e.backupPrevItem = y, e.backupList = y.options || [];
572
575
  return;
573
576
  }
574
577
  e.filterList = (I = e.backupList) == null ? void 0 : I.filter((w) => v.test(w.label) ? (delete w.isFilter, O(e, w.label) && e.checkboxGroup.push(`${e.prevItem.label}${w.label}`), !0) : (w.isFilter = !0, !1));
575
- const T = new RegExp(h, "ig"), g = c.toLowerCase();
578
+ const C = new RegExp(h, "ig"), g = c.toLowerCase();
576
579
  if (e.propItem.label) {
577
- (y = e.backupList) == null || y.forEach((w) => {
580
+ (x = e.backupList) == null || x.forEach((w) => {
578
581
  w.hightlighStr = g;
579
582
  const S = w.label;
580
- v.test(S) ? (w.match = le(T, S), w.isFilter = !1) : w.isFilter = !0;
581
- }), (C = e.backupList) != null && C.length || c ? k(e) : k(e, !1);
583
+ v.test(S) ? (w.match = le(C, S), w.isFilter = !1) : w.isFilter = !0;
584
+ }), (T = e.backupList) != null && T.length || c ? k(e) : k(e, !1);
582
585
  return;
583
586
  }
584
587
  for (const w of i) {
585
588
  const { options: S = [], groupKey: V = "0", ...D } = w, M = D.label;
586
589
  if (v.test(M)) {
587
- const E = le(T, M);
590
+ const E = le(C, M);
588
591
  e.matchItems[V].attr.push({ ...w, match: E, hightlighStr: g });
589
592
  }
590
593
  for (const E of S) {
591
594
  const B = e.propItem.label ? M : `${M}:${E.label}`;
592
595
  if (v.test(B)) {
593
- const P = le(T, B);
596
+ const P = le(C, B);
594
597
  e.matchItems[V].attrValue.push({
595
598
  ...E,
596
599
  ...D,
@@ -623,7 +626,7 @@ function Mt({ props: a, state: e, emit: n, nextTick: r }) {
623
626
  if (u.isChecked)
624
627
  return;
625
628
  k(e, !1), e.isShowTagKey = !0, s();
626
- const { field: h, type: v } = f, x = c.value + u.label, T = G(a, f, u), _ = [H({ type: v, field: h, label: c.label, value: x, ...T })];
629
+ const { field: h, type: v } = f, y = c.value + u.label, C = G(a, f, u), _ = [H({ type: v, field: h, label: c.label, value: y, ...C })];
627
630
  R({ emit: n, state: e, nextTick: r, tagList: _ });
628
631
  }
629
632
  i && k(e);
@@ -641,33 +644,33 @@ function Et({ props: a, state: e, emit: n, nextTick: r }) {
641
644
  const d = [], f = j(e.innerModelValue), { mergeTag: c, operators: b, label: h } = l;
642
645
  if (c) {
643
646
  let v = "";
644
- const x = [], { indexMap: T } = e, g = T.get(h);
647
+ const y = [], { indexMap: C } = e, g = C.get(h);
645
648
  if (g !== void 0 && e.innerModelValue.splice(g, 1), (u = e.backupList) == null || u.forEach((_) => {
646
- const { label: I } = _, y = `${h}${I}`;
647
- if (m.includes(y)) {
649
+ const { label: I } = _, x = `${h}${I}`;
650
+ if (m.includes(x)) {
648
651
  delete _.isFilter;
649
652
  const w = G(a, l, _), S = { label: _.label, ...w };
650
- v += v ? ` | ${I}` : I, x.push(S);
653
+ v += v ? ` | ${I}` : I, y.push(S);
651
654
  }
652
- }), x.length > 0) {
653
- const _ = { ...p, value: v, options: x };
655
+ }), y.length > 0) {
656
+ const _ = { ...p, value: v, options: y };
654
657
  d.push(_);
655
658
  }
656
659
  } else {
657
- const { valueMap: v } = e, x = [];
658
- if ((i = e.backupList) == null || i.forEach((T) => {
659
- const { label: g } = T, _ = `${h}${g}`, I = m.includes(_);
660
+ const { valueMap: v } = e, y = [];
661
+ if ((i = e.backupList) == null || i.forEach((C) => {
662
+ const { label: g } = C, _ = `${h}${g}`, I = m.includes(_);
660
663
  if (I && !O(e, g)) {
661
- const y = G(a, l, T), C = e.operatorValue && b ? { operator: e.operatorValue } : null, w = H({ ...p, label: s.label, value: g, ...y, ...C });
662
- d.push(w), T.isChecked = !0;
664
+ const x = G(a, l, C), T = e.operatorValue && b ? { operator: e.operatorValue } : null, w = H({ ...p, label: s.label, value: g, ...x, ...T });
665
+ d.push(w), C.isChecked = !0;
663
666
  } else if (!I && O(e, g)) {
664
- T.isChecked = !1;
665
- const y = v.get(_);
666
- x.push(y);
667
+ C.isChecked = !1;
668
+ const x = v.get(_);
669
+ y.push(x);
667
670
  }
668
- }), x.length) {
669
- const T = e.innerModelValue.filter((g, _) => g && !x.includes(_));
670
- R({ emit: n, state: e, nextTick: r, newValue: T, oldValue: f });
671
+ }), y.length) {
672
+ const C = e.innerModelValue.filter((g, _) => g && !y.includes(_));
673
+ R({ emit: n, state: e, nextTick: r, newValue: C, oldValue: f });
671
674
  return;
672
675
  }
673
676
  }
@@ -700,19 +703,19 @@ function $t({ props: a, state: e, emit: n, nextTick: r, vm: o }) {
700
703
  if (d > 0)
701
704
  if (f || c)
702
705
  if (u && b) {
703
- const v = new Date(b).getTime(), x = !f && c ? v - d : Math.max(f.getTime(), v - d);
704
- return h < x || h > v;
706
+ const v = new Date(b).getTime(), y = !f && c ? v - d : Math.max(f.getTime(), v - d);
707
+ return h < y || h > v;
705
708
  } else if (!u && p) {
706
- const v = new Date(p).getTime(), x = f && !c ? v + d : Math.min(c.getTime(), v + d);
707
- return h < v || h > x;
709
+ const v = new Date(p).getTime(), y = f && !c ? v + d : Math.min(c.getTime(), v + d);
710
+ return h < v || h > y;
708
711
  } else
709
712
  return f && h < f.getTime() || c && h > c.getTime();
710
713
  else if (u && b) {
711
- const v = new Date(b).getTime(), x = v - d;
712
- return h < x || h > v;
714
+ const v = new Date(b).getTime(), y = v - d;
715
+ return h < y || h > v;
713
716
  } else if (!u && p) {
714
- const v = new Date(p).getTime(), x = v + d;
715
- return h < v || h > x;
717
+ const v = new Date(p).getTime(), y = v + d;
718
+ return h < v || h > y;
716
719
  } else
717
720
  return !1;
718
721
  else if (f || c)
@@ -784,25 +787,25 @@ function Lt({ props: a, state: e, t: n, emit: r, nextTick: o, vm: t }) {
784
787
  function Nt({ props: a, state: e, t: n, nextTick: r, format: o, emit: t, vm: m }) {
785
788
  const l = (f) => {
786
789
  var I;
787
- const { operator: c, value: b, start: h, end: v } = f, { options: x, operators: T, type: g, mergeTag: _ } = e.prevItem;
790
+ const { operator: c, value: b, start: h, end: v } = f, { options: y, operators: C, type: g, mergeTag: _ } = e.prevItem;
788
791
  if (g !== "custom") {
789
792
  if (g === "numRange")
790
793
  $e(e, f, n);
791
794
  else if (g === "dateRange") {
792
- const { dateRangeFormat: y } = e;
793
- e.startDate = o(h, y), e.endDate = o(v, y);
795
+ const { dateRangeFormat: x } = e;
796
+ e.startDate = o(h, x), e.endDate = o(v, x);
794
797
  } else if (g === "datetimeRange") {
795
- const { datetimeRangeFormat: y } = e;
796
- e.startDateTime = o(h, y), e.endDateTime = o(v, y);
798
+ const { datetimeRangeFormat: x } = e;
799
+ e.startDateTime = o(h, x), e.endDateTime = o(v, x);
797
800
  } else {
798
801
  if (_) {
799
- const y = ((I = f.options) == null ? void 0 : I.flatMap((C) => C.label)) || [];
800
- e.inputEditValue = y, e.currentEditSelectTags = y;
802
+ const x = ((I = f.options) == null ? void 0 : I.flatMap((T) => T.label)) || [];
803
+ e.inputEditValue = x, e.currentEditSelectTags = x;
801
804
  } else
802
805
  e.inputEditValue = Array.isArray(b) ? b.join(",") : b || "";
803
- e.currentEditValue = x;
806
+ e.currentEditValue = y;
804
807
  }
805
- e.operatorValue = c, e.currentOperators = T;
808
+ e.operatorValue = c, e.currentOperators = C;
806
809
  }
807
810
  }, s = async () => {
808
811
  var h, v;
@@ -815,8 +818,8 @@ function Nt({ props: a, state: e, t: n, nextTick: r, format: o, emit: t, vm: m }
815
818
  return;
816
819
  }
817
820
  let b = !1;
818
- await e.instance.$refs.formRef.validateField(c, (x) => {
819
- x && (b = !0);
821
+ await e.instance.$refs.formRef.validateField(c, (y) => {
822
+ y && (b = !0);
820
823
  }), e.hasFormError = b;
821
824
  };
822
825
  return {
@@ -845,13 +848,13 @@ function Nt({ props: a, state: e, t: n, nextTick: r, format: o, emit: t, vm: m }
845
848
  }));
846
849
  },
847
850
  selectItemIsDisable: (f) => {
848
- var b, h, v, x;
851
+ var b, h, v, y;
849
852
  if (f.type && f.type === "map")
850
853
  return !0;
851
854
  if ((b = e.prevItem) != null && b.operators || f.operators)
852
855
  return ((h = e.prevItem.operators) == null ? void 0 : h.length) !== ((v = f.operators) == null ? void 0 : v.length);
853
856
  const c = ["radio", "checkbox"];
854
- return e.prevItem.type && c.includes(e.prevItem.type) ? f.type ? !c.includes(f.type) : !1 : ((x = e.prevItem) == null ? void 0 : x.type) !== f.type;
857
+ return e.prevItem.type && c.includes(e.prevItem.type) ? f.type ? !c.includes(f.type) : !1 : ((y = e.prevItem) == null ? void 0 : y.type) !== f.type;
855
858
  },
856
859
  checkFormValidation: s
857
860
  };
@@ -1176,11 +1179,11 @@ const Ot = (a) => {
1176
1179
  typeof document < "u" && (document.removeEventListener("click", d.watchOutsideClick), document.removeEventListener("mousedown", d.watchMouseDown), document.removeEventListener("mousemove", d.watchMouseMove), c.localeCheckInterval && (clearInterval(c.localeCheckInterval), c.localeCheckInterval = null));
1177
1180
  }), d;
1178
1181
  }, Zt = ({ api: a, state: e, t: n, props: r, emit: o, nextTick: t, vm: m, computed: l }) => {
1179
- const { deleteTag: s, clearTag: p, backspaceDeleteTag: u } = Tt({ props: r, state: e, emit: o, nextTick: t }), { editTag: i, confirmEditTag: d, selectPropChange: f, selectItemIsDisable: c, checkFormValidation: b } = Nt({ props: r, state: e, t: n, nextTick: t, format: ie, emit: o, vm: m }), { handleInput: h, selectFirstMap: v, cancelHandleInput: x } = Mt({ props: r, state: e, emit: o, nextTick: t }), { selectPropItem: T, selectRadioItem: g, selectInputValue: _, createTag: I, helpClick: y, setOperator: C } = St({ props: r, emit: o, state: e, t: n, format: ie, nextTick: t, vm: m, cancelHandleInput: x }), { selectCheckbox: w } = Et({ props: r, state: e, emit: o, nextTick: t }), { onConfirmDate: S, handleDateShow: V, pickerOptions: D } = $t({ props: r, state: e, emit: o, nextTick: t, vm: m }), { sizeChange: M, initFormRule: E } = Lt({ props: r, state: e, t: n, emit: o, nextTick: t, vm: m }), { handleConfirm: B, handleEditConfirm: P } = Rt({ state: e, emit: o, nextTick: t }), { initItems: N, watchOutsideClick: F, watchMouseDown: K, watchMouseMove: ne, handleClick: re } = Pt({ props: r, state: e }), Re = l(() => r.modelValue.length || e.propItem.label || e.inputValue), Pe = () => ({
1182
+ const { deleteTag: s, clearTag: p, backspaceDeleteTag: u } = Tt({ props: r, state: e, emit: o, nextTick: t }), { editTag: i, confirmEditTag: d, selectPropChange: f, selectItemIsDisable: c, checkFormValidation: b } = Nt({ props: r, state: e, t: n, nextTick: t, format: ie, emit: o, vm: m }), { handleInput: h, selectFirstMap: v, cancelHandleInput: y } = Mt({ props: r, state: e, emit: o, nextTick: t }), { selectPropItem: C, selectRadioItem: g, selectInputValue: _, createTag: I, helpClick: x, setOperator: T } = St({ props: r, emit: o, state: e, t: n, format: ie, nextTick: t, vm: m, cancelHandleInput: y }), { selectCheckbox: w } = Et({ props: r, state: e, emit: o, nextTick: t }), { onConfirmDate: S, handleDateShow: V, pickerOptions: D } = $t({ props: r, state: e, emit: o, nextTick: t, vm: m }), { sizeChange: M, initFormRule: E } = Lt({ props: r, state: e, t: n, emit: o, nextTick: t, vm: m }), { handleConfirm: B, handleEditConfirm: P } = Rt({ state: e, emit: o, nextTick: t }), { initItems: N, watchOutsideClick: F, watchMouseDown: K, watchMouseMove: ne, handleClick: re } = Pt({ props: r, state: e }), Re = l(() => r.modelValue.length || e.propItem.label || e.inputValue), Pe = () => ({
1180
1183
  selectInputValue: _,
1181
- selectPropItem: T,
1184
+ selectPropItem: C,
1182
1185
  selectRadioItem: g,
1183
- setOperator: C,
1186
+ setOperator: T,
1184
1187
  selectCheckbox: w,
1185
1188
  sizeChange: M,
1186
1189
  onConfirmDate: S,
@@ -1198,7 +1201,7 @@ const Ot = (a) => {
1198
1201
  backspaceDeleteTag: u,
1199
1202
  createTag: I,
1200
1203
  clearTag: p,
1201
- helpClick: y,
1204
+ helpClick: x,
1202
1205
  handleInput: h,
1203
1206
  handleClick: re,
1204
1207
  handleEvents: (Z, Fe, Be) => {
@@ -2814,7 +2817,7 @@ const ba = /* @__PURE__ */ function() {
2814
2817
  name: de + "SearchBox",
2815
2818
  props: ga,
2816
2819
  ...ba
2817
- }), _a = "3.27.2-alpha.0";
2820
+ }), _a = "3.28.0";
2818
2821
  Y.install = function(a) {
2819
2822
  a.component(Y.name, Y);
2820
2823
  };