@opentiny/vue-search-box 3.27.2-alpha.0 → 3.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 +145 -142
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -14,7 +14,7 @@ import it from "@opentiny/vue-select";
14
14
  import pt from "@opentiny/vue-option";
15
15
  import { iconSearch as ut, iconClose as ct, iconHelpQuery as dt } from "@opentiny/vue-icon";
16
16
  import ze from "@opentiny/vue-dropdown-item";
17
- import { resolveComponent as N, openBlock as y, createElementBlock as w, withDirectives as H, createVNode as C, withCtx as M, createElementVNode as S, toDisplayString as I, vShow as G, Fragment as x, renderList as U, createBlock as F, createCommentVNode as z, createTextVNode as K, resolveDirective as mt, normalizeClass as he, withModifiers as Y, withKeys as Oe, normalizeStyle as ft, renderSlot as me, mergeProps as fe } from "vue";
17
+ import { resolveComponent as N, openBlock as y, createElementBlock as w, withDirectives as H, createVNode as C, withCtx as M, createElementVNode as D, toDisplayString as I, vShow as G, Fragment as x, renderList as U, createBlock as F, createCommentVNode as z, createTextVNode as K, resolveDirective as mt, normalizeClass as he, withModifiers as Y, withKeys as Oe, normalizeStyle as ft, renderSlot as me, mergeProps as fe } from "vue";
18
18
  import ht from "@opentiny/vue-checkbox";
19
19
  import bt from "@opentiny/vue-checkbox-group";
20
20
  import vt from "@opentiny/vue-loading";
@@ -31,9 +31,9 @@ const gt = (e, t, o, l = "0") => {
31
31
  return o ? e + b : b + e;
32
32
  }
33
33
  }
34
- }, yt = Object.prototype.toString, Vt = Object.prototype.hasOwnProperty, kt = Vt.toString;
35
- kt.call(Object);
36
- const It = {
34
+ }, yt = Object.prototype.toString, Vt = Object.prototype.hasOwnProperty, It = Vt.toString;
35
+ It.call(Object);
36
+ const kt = {
37
37
  "[object Error]": "error",
38
38
  "[object Object]": "object",
39
39
  "[object RegExp]": "regExp",
@@ -44,7 +44,7 @@ const It = {
44
44
  "[object String]": "string",
45
45
  "[object Number]": "number",
46
46
  "[object Boolean]": "boolean"
47
- }, wt = (e) => e == null, Tt = (e) => wt(e) ? String(e) : It[yt.call(e)] || "object", Ue = (e) => typeof e == "number" && isFinite(e), St = (e) => Tt(e) === "date", je = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Dt = new RegExp(
47
+ }, wt = (e) => e == null, Tt = (e) => wt(e) ? String(e) : kt[yt.call(e)] || "object", Ue = (e) => typeof e == "number" && isFinite(e), St = (e) => Tt(e) === "date", je = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Dt = new RegExp(
48
48
  "^(\\d{4})(/|-)(((0)?[1-9])|(1[0-2]))((/|-)(((0)?[1-9])|([1-2][0-9])|(3[0-1])))?( ((0)?[0-9]|1[0-9]|20|21|22|23):([0-5]?[0-9])((:([0-5]?[0-9]))?(.([0-9]{1,6}))?)?)?$"
49
49
  ), Ct = new RegExp(
50
50
  "^(((0)?[1-9])|(1[0-2]))(/|-)(((0)?[1-9])|([1-2][0-9])|(3[0-1]))?(/|-)?(\\d{4})( ((0)?[0-9]|1[0-9]|20|21|22|23):([0-5]?[0-9])((:([0-5]?[0-9]))?(.([0-9]{1,6}))?)?)?$"
@@ -408,67 +408,67 @@ const Kt = async (e, t, o) => {
408
408
  };
409
409
  function Gt({ props: e, emit: t, state: o, t: l, format: c, nextTick: i, vm: b, cancelHandleInput: v }) {
410
410
  const m = b || o.instance, p = (V) => {
411
- var R, E, P;
412
- const { start: f, end: D, type: k } = V;
411
+ var _, E, P;
412
+ const { start: f, end: S, type: k } = V;
413
413
  if (o.backupList = V.options, k === "numRange")
414
414
  Ze(o, V, l);
415
415
  else if (k === "dateRange") {
416
- const { dateRangeFormat: _ } = o;
416
+ const { dateRangeFormat: R } = o;
417
417
  if (!o.startDate && f) {
418
- const O = c(f, _);
418
+ const O = c(f, R);
419
419
  o.startDate = o.endDate < O ? null : O;
420
420
  }
421
- if (!o.endDate && D) {
422
- const O = c(D, _);
421
+ if (!o.endDate && S) {
422
+ const O = c(S, R);
423
423
  o.endDate = O < o.startDate ? null : O;
424
424
  }
425
425
  } else if (k === "datetimeRange") {
426
- const { datetimeRangeFormat: _ } = o;
426
+ const { datetimeRangeFormat: R } = o;
427
427
  if (!o.startDateTime && f) {
428
- const O = c(f, _);
428
+ const O = c(f, R);
429
429
  o.startDateTime = o.endDateTime < O ? null : O;
430
430
  }
431
- if (!o.endDateTime && D) {
432
- const O = c(D, _);
431
+ if (!o.endDateTime && S) {
432
+ const O = c(S, R);
433
433
  o.endDateTime = O < o.startDateTime ? null : O;
434
434
  }
435
435
  } else
436
- o.backupList && k === "checkbox" && (o.filterList = o.backupList, o.checkboxGroup = [], (R = o.backupList) == null || R.forEach((_) => {
437
- J(o, _.label) && o.checkboxGroup.push(`${V.label}${_.label}`), _.isFilter = !1;
436
+ o.backupList && k === "checkbox" && (o.filterList = o.backupList, o.checkboxGroup = [], (_ = o.backupList) == null || _.forEach((R) => {
437
+ J(o, R.label) && o.checkboxGroup.push(`${V.label}${R.label}`), R.isFilter = !1;
438
438
  }));
439
- k !== "checkbox" && ((E = o.backupList) != null && E.length) && ((P = o.backupList) == null || P.forEach((_) => {
440
- _.isFilter = !1, _.isChecked = J(o, _.label);
439
+ k !== "checkbox" && ((E = o.backupList) != null && E.length) && ((P = o.backupList) == null || P.forEach((R) => {
440
+ R.isFilter = !1, R.isChecked = J(o, R.label);
441
441
  })), o.currentOperators = null, !o.backupList && !["dateRange", "datetimeRange", "numRange", "custom"].includes(k) ? L(o, !1) : L(o);
442
442
  }, r = (V) => {
443
443
  var E;
444
- const { field: f, label: D } = V;
445
- o.propItem = { ...o.propItem, label: D }, t("first-level-select", f);
444
+ const { field: f, label: S } = V;
445
+ o.propItem = { ...o.propItem, label: S }, t("first-level-select", f);
446
446
  const k = (E = m.$refs) == null ? void 0 : E.inputRef;
447
447
  o.prevItem = V, o.backupPrevItem = V;
448
- const { operators: R } = V;
449
- R != null && R.length ? (o.operatorValue = "", o.currentOperators = R, L(o)) : (o.operatorValue = ":", p(V)), o.inputValue = "", k.focus();
448
+ const { operators: _ } = V;
449
+ _ != null && _.length ? (o.operatorValue = "", o.currentOperators = _, L(o)) : (o.operatorValue = ":", p(V)), o.inputValue = "", k.focus();
450
450
  }, n = (V) => {
451
451
  o.operatorValue = V, p(o.prevItem);
452
- }, d = (V, f, D, k) => {
453
- const { replace: R, operators: E, mergeTag: P } = V, _ = ye(V), { indexMap: O } = o, B = O.get(D), A = ae(e, V, f), ee = o.operatorValue && E ? { operator: o.operatorValue } : null;
452
+ }, d = (V, f, S, k) => {
453
+ const { replace: _, operators: E, mergeTag: P } = V, R = ye(V), { indexMap: O } = o, B = O.get(S), A = ae(e, V, f), ee = o.operatorValue && E ? { operator: o.operatorValue } : null;
454
454
  let W = null;
455
455
  if (P) {
456
456
  const re = { label: k, ...A };
457
457
  if (B >= 0) {
458
- const ke = `${o.innerModelValue[B].value} | ${k}`, Ie = [...o.innerModelValue[B].options, re];
459
- W = le({ ...o.innerModelValue[B], value: ke, options: Ie });
458
+ const Ie = `${o.innerModelValue[B].value} | ${k}`, ke = [...o.innerModelValue[B].options, re];
459
+ W = le({ ...o.innerModelValue[B], value: Ie, options: ke });
460
460
  } else
461
- W = le({ ..._, label: D, value: k, options: [re] });
461
+ W = le({ ...R, label: S, value: k, options: [re] });
462
462
  } else
463
- W = le({ ..._, label: D, value: k, ...A, ...ee });
464
- if (J(o, k, D)) {
463
+ W = le({ ...R, label: S, value: k, ...A, ...ee });
464
+ if (J(o, k, S)) {
465
465
  Ve(o);
466
466
  return;
467
467
  }
468
468
  L(o, !1);
469
469
  const Z = ne(o.innerModelValue);
470
470
  let X = [];
471
- if ((R || P) && B >= 0) {
471
+ if ((_ || P) && B >= 0) {
472
472
  const re = [...o.innerModelValue];
473
473
  re.splice(B, 1), X = [...re, W];
474
474
  } else
@@ -480,61 +480,64 @@ function Gt({ props: e, emit: t, state: o, t: l, format: c, nextTick: i, vm: b,
480
480
  }, s = (V, f = !1) => {
481
481
  var E;
482
482
  L(o, !1), f && (o.prevItem = V, o.backupPrevItem = V);
483
- const { prevItem: D } = o, k = V.value || V.label, R = (E = m.$refs) == null ? void 0 : E.inputRef;
483
+ const { prevItem: S } = o, k = V.value || V.label, _ = (E = m.$refs) == null ? void 0 : E.inputRef;
484
484
  if (!J(o, k)) {
485
485
  const P = o.propItem.label || V.label;
486
- d(D, V, P, k);
486
+ d(S, V, P, k);
487
487
  }
488
- R.focus();
488
+ _.focus();
489
489
  }, a = (V, f) => {
490
490
  if (V.label) {
491
- if (t("second-level-enter", f), !f.options)
491
+ if (t("second-level-enter", f), !f.options || !f.options.length)
492
492
  return;
493
- if (!e.modelValue.find((k) => k.value === f.options[0].label)) {
494
- const k = f.label, R = f.options && f.options[0].label;
495
- d(f, f.options[0], k, R);
493
+ const S = f.options[0];
494
+ if (!S)
495
+ return;
496
+ if (!e.modelValue.find((_) => _.value === S.label)) {
497
+ const _ = f.label, E = S.label;
498
+ d(f, S, _, E);
496
499
  return;
497
500
  }
498
501
  } else
499
502
  t("search", o.innerModelValue);
500
- }, h = (V, f, D) => {
501
- var R;
502
- const k = (R = o.backupList) == null ? void 0 : R.find((E) => E.label === D);
503
- d(V, k, f.label, D);
504
- }, g = (V, f, D) => {
505
- var k, R;
503
+ }, h = (V, f, S) => {
504
+ var _;
505
+ const k = (_ = o.backupList) == null ? void 0 : _.find((E) => E.label === S);
506
+ d(V, k, f.label, S);
507
+ }, g = (V, f, S) => {
508
+ var k, _;
506
509
  if (f.label) {
507
- const { regexp: E, replace: P, type: _, mergeTag: O } = D, B = _ !== "checkbox" && P || _ === "checkbox" && O ? [V] : V.split(e.splitInputValue);
510
+ const { regexp: E, replace: P, type: R, mergeTag: O } = S, B = R !== "checkbox" && P || R === "checkbox" && O ? [V] : V.split(e.splitInputValue);
508
511
  if (E)
509
512
  for (const A of B)
510
- E.test(A) && h(D, f, A);
513
+ E.test(A) && h(S, f, A);
511
514
  else
512
515
  for (const A of B)
513
- h(D, f, A);
516
+ h(S, f, A);
514
517
  } else {
515
- const { items: E, defaultField: P } = e, _ = E.find((Z) => {
518
+ const { items: E, defaultField: P } = e, R = E.find((Z) => {
516
519
  const { regexp: X } = Z;
517
520
  return X && X.test(o.inputValue);
518
- }) || (P ? E.find((Z) => Z.field === P) : o.allTypeAttri), { replace: O, type: B, mergeTag: A } = _, ee = B !== "checkbox" && O || B === "checkbox" && A ? [V] : V.split(e.splitInputValue);
519
- (k = _ == null ? void 0 : _.options) != null && k.length && (o.backupList = [..._.options], (R = o.backupList) == null || R.forEach((Z) => {
521
+ }) || (P ? E.find((Z) => Z.field === P) : o.allTypeAttri), { replace: O, type: B, mergeTag: A } = R, ee = B !== "checkbox" && O || B === "checkbox" && A ? [V] : V.split(e.splitInputValue);
522
+ (k = R == null ? void 0 : R.options) != null && k.length && (o.backupList = [...R.options], (_ = o.backupList) == null || _.forEach((Z) => {
520
523
  const X = Z.value || Z.label;
521
524
  ee.includes(X) && (Z.isChecked = !0);
522
525
  }));
523
- const W = _.label;
526
+ const W = R.label;
524
527
  for (const Z of ee)
525
- d(_, {}, W, Z);
528
+ d(R, {}, W, Z);
526
529
  }
527
530
  }, T = () => {
528
- const { inputValue: V, propItem: f, prevItem: D } = o;
531
+ const { inputValue: V, propItem: f, prevItem: S } = o;
529
532
  if (v && v(), L(o, !1), !V)
530
- a(f, D);
533
+ a(f, S);
531
534
  else {
532
535
  const { maxlength: k } = e;
533
536
  if (k && k < V.length) {
534
537
  t("exceed", k);
535
538
  return;
536
539
  }
537
- g(V, f, D);
540
+ g(V, f, S);
538
541
  }
539
542
  };
540
543
  return { selectPropItem: r, selectRadioItem: s, selectInputValue: u, createTag: T, helpClick: () => {
@@ -554,7 +557,7 @@ function Zt({ props: e, state: t, emit: o, nextTick: l }) {
554
557
  const c = async (r) => {
555
558
  t.potentialOptions = await e.potentialOptions.getMatchList(r), L(t, !0);
556
559
  }, b = jt((r) => {
557
- var f, D, k, R;
560
+ var f, S, k, _;
558
561
  const { recordItems: n, propItem: d } = t, u = typeof r == "string" ? r : r && r.target && typeof r.target.value == "string" ? r.target.value : t.inputValue || "", s = (f = String(u)) == null ? void 0 : f.trim(), { maxlength: a } = e;
559
562
  if (a && a < s.length) {
560
563
  o("exceed", a);
@@ -572,27 +575,27 @@ function Zt({ props: e, state: t, emit: o, nextTick: l }) {
572
575
  t.propItem = { ...t.propItem, label: T.label }, t.inputValue = "", t.prevItem = T, t.backupPrevItem = T, t.backupList = T.options || [];
573
576
  return;
574
577
  }
575
- t.filterList = (D = t.backupList) == null ? void 0 : D.filter((E) => g.test(E.label) ? (delete E.isFilter, J(t, E.label) && t.checkboxGroup.push(`${t.prevItem.label}${E.label}`), !0) : (E.isFilter = !0, !1));
578
+ t.filterList = (S = t.backupList) == null ? void 0 : S.filter((E) => g.test(E.label) ? (delete E.isFilter, J(t, E.label) && t.checkboxGroup.push(`${t.prevItem.label}${E.label}`), !0) : (E.isFilter = !0, !1));
576
579
  const $ = new RegExp(h, "ig"), V = s.toLowerCase();
577
580
  if (t.propItem.label) {
578
581
  (k = t.backupList) == null || k.forEach((E) => {
579
582
  E.hightlighStr = V;
580
583
  const P = E.label;
581
584
  g.test(P) ? (E.match = Se($, P), E.isFilter = !1) : E.isFilter = !0;
582
- }), (R = t.backupList) != null && R.length || s ? L(t) : L(t, !1);
585
+ }), (_ = t.backupList) != null && _.length || s ? L(t) : L(t, !1);
583
586
  return;
584
587
  }
585
588
  for (const E of n) {
586
- const { options: P = [], groupKey: _ = "0", ...O } = E, B = O.label;
589
+ const { options: P = [], groupKey: R = "0", ...O } = E, B = O.label;
587
590
  if (g.test(B)) {
588
591
  const A = Se($, B);
589
- t.matchItems[_].attr.push({ ...E, match: A, hightlighStr: V });
592
+ t.matchItems[R].attr.push({ ...E, match: A, hightlighStr: V });
590
593
  }
591
594
  for (const A of P) {
592
595
  const ee = t.propItem.label ? B : `${B}:${A.label}`;
593
596
  if (g.test(ee)) {
594
597
  const W = Se($, ee);
595
- t.matchItems[_].attrValue.push({
598
+ t.matchItems[R].attrValue.push({
596
599
  ...A,
597
600
  ...O,
598
601
  options: P,
@@ -644,11 +647,11 @@ function Yt({ props: e, state: t, emit: o, nextTick: l }) {
644
647
  let g = "";
645
648
  const T = [], { indexMap: $ } = t, V = $.get(h);
646
649
  if (V !== void 0 && t.innerModelValue.splice(V, 1), (r = t.backupList) == null || r.forEach((f) => {
647
- const { label: D } = f, k = `${h}${D}`;
650
+ const { label: S } = f, k = `${h}${S}`;
648
651
  if (b.includes(k)) {
649
652
  delete f.isFilter;
650
653
  const E = ae(e, v, f), P = { label: f.label, ...E };
651
- g += g ? ` | ${D}` : D, T.push(P);
654
+ g += g ? ` | ${S}` : S, T.push(P);
652
655
  }
653
656
  }), T.length > 0) {
654
657
  const f = { ...p, value: g, options: T };
@@ -657,11 +660,11 @@ function Yt({ props: e, state: t, emit: o, nextTick: l }) {
657
660
  } else {
658
661
  const { valueMap: g } = t, T = [];
659
662
  if ((n = t.backupList) == null || n.forEach(($) => {
660
- const { label: V } = $, f = `${h}${V}`, D = b.includes(f);
661
- if (D && !J(t, V)) {
662
- const k = ae(e, v, $), R = t.operatorValue && a ? { operator: t.operatorValue } : null, E = le({ ...p, label: m.label, value: V, ...k, ...R });
663
+ const { label: V } = $, f = `${h}${V}`, S = b.includes(f);
664
+ if (S && !J(t, V)) {
665
+ const k = ae(e, v, $), _ = t.operatorValue && a ? { operator: t.operatorValue } : null, E = le({ ...p, label: m.label, value: V, ...k, ..._ });
663
666
  d.push(E), $.isChecked = !0;
664
- } else if (!D && J(t, V)) {
667
+ } else if (!S && J(t, V)) {
665
668
  $.isChecked = !1;
666
669
  const k = g.get(f);
667
670
  T.push(k);
@@ -784,7 +787,7 @@ function Wt({ props: e, state: t, t: o, emit: l, nextTick: c, vm: i }) {
784
787
  }
785
788
  function Jt({ props: e, state: t, t: o, nextTick: l, format: c, emit: i, vm: b }) {
786
789
  const v = (u) => {
787
- var D;
790
+ var S;
788
791
  const { operator: s, value: a, start: h, end: g } = u, { options: T, operators: $, type: V, mergeTag: f } = t.prevItem;
789
792
  if (V !== "custom") {
790
793
  if (V === "numRange")
@@ -797,7 +800,7 @@ function Jt({ props: e, state: t, t: o, nextTick: l, format: c, emit: i, vm: b }
797
800
  t.startDateTime = c(h, k), t.endDateTime = c(g, k);
798
801
  } else {
799
802
  if (f) {
800
- const k = ((D = u.options) == null ? void 0 : D.flatMap((R) => R.label)) || [];
803
+ const k = ((S = u.options) == null ? void 0 : S.flatMap((_) => _.label)) || [];
801
804
  t.inputEditValue = k, t.currentEditSelectTags = k;
802
805
  } else
803
806
  t.inputEditValue = Array.isArray(a) ? a.join(",") : a || "";
@@ -1177,16 +1180,16 @@ const to = (e) => {
1177
1180
  typeof document < "u" && (document.removeEventListener("click", d.watchOutsideClick), document.removeEventListener("mousedown", d.watchMouseDown), document.removeEventListener("mousemove", d.watchMouseMove), s.localeCheckInterval && (clearInterval(s.localeCheckInterval), s.localeCheckInterval = null));
1178
1181
  }), d;
1179
1182
  }, mo = ({ api: e, state: t, t: o, props: l, emit: c, nextTick: i, vm: b, computed: v }) => {
1180
- const { deleteTag: m, clearTag: p, backspaceDeleteTag: r } = Ht({ props: l, state: t, emit: c, nextTick: i }), { editTag: n, confirmEditTag: d, selectPropChange: u, selectItemIsDisable: s, checkFormValidation: a } = Jt({ props: l, state: t, t: o, nextTick: i, format: De, emit: c, vm: b }), { handleInput: h, selectFirstMap: g, cancelHandleInput: T } = Zt({ props: l, state: t, emit: c, nextTick: i }), { selectPropItem: $, selectRadioItem: V, selectInputValue: f, createTag: D, helpClick: k, setOperator: R } = Gt({ props: l, emit: c, state: t, t: o, format: De, nextTick: i, vm: b, cancelHandleInput: T }), { selectCheckbox: E } = Yt({ props: l, state: t, emit: c, nextTick: i }), { onConfirmDate: P, handleDateShow: _, pickerOptions: O } = Qt({ props: l, state: t, emit: c, nextTick: i, vm: b }), { sizeChange: B, initFormRule: A } = Wt({ props: l, state: t, t: o, emit: c, nextTick: i, vm: b }), { handleConfirm: ee, handleEditConfirm: W } = Xt({ state: t, emit: c, nextTick: i }), { initItems: Z, watchOutsideClick: X, watchMouseDown: re, watchMouseMove: ke, handleClick: Ie } = eo({ props: l, state: t }), We = v(() => l.modelValue.length || t.propItem.label || t.inputValue), Je = () => ({
1183
+ const { deleteTag: m, clearTag: p, backspaceDeleteTag: r } = Ht({ props: l, state: t, emit: c, nextTick: i }), { editTag: n, confirmEditTag: d, selectPropChange: u, selectItemIsDisable: s, checkFormValidation: a } = Jt({ props: l, state: t, t: o, nextTick: i, format: De, emit: c, vm: b }), { handleInput: h, selectFirstMap: g, cancelHandleInput: T } = Zt({ props: l, state: t, emit: c, nextTick: i }), { selectPropItem: $, selectRadioItem: V, selectInputValue: f, createTag: S, helpClick: k, setOperator: _ } = Gt({ props: l, emit: c, state: t, t: o, format: De, nextTick: i, vm: b, cancelHandleInput: T }), { selectCheckbox: E } = Yt({ props: l, state: t, emit: c, nextTick: i }), { onConfirmDate: P, handleDateShow: R, pickerOptions: O } = Qt({ props: l, state: t, emit: c, nextTick: i, vm: b }), { sizeChange: B, initFormRule: A } = Wt({ props: l, state: t, t: o, emit: c, nextTick: i, vm: b }), { handleConfirm: ee, handleEditConfirm: W } = Xt({ state: t, emit: c, nextTick: i }), { initItems: Z, watchOutsideClick: X, watchMouseDown: re, watchMouseMove: Ie, handleClick: ke } = eo({ props: l, state: t }), We = v(() => l.modelValue.length || t.propItem.label || t.inputValue), Je = () => ({
1181
1184
  selectInputValue: f,
1182
1185
  selectPropItem: $,
1183
1186
  selectRadioItem: V,
1184
- setOperator: R,
1187
+ setOperator: _,
1185
1188
  selectCheckbox: E,
1186
1189
  sizeChange: B,
1187
1190
  onConfirmDate: P,
1188
1191
  selectFirstMap: g,
1189
- handleDateShow: _
1192
+ handleDateShow: R
1190
1193
  }), we = (pe) => {
1191
1194
  t.placeholder = pe;
1192
1195
  }, Xe = () => be(l, o);
@@ -1197,11 +1200,11 @@ const to = (e) => {
1197
1200
  deleteTag: m,
1198
1201
  editTag: n,
1199
1202
  backspaceDeleteTag: r,
1200
- createTag: D,
1203
+ createTag: S,
1201
1204
  clearTag: p,
1202
1205
  helpClick: k,
1203
1206
  handleInput: h,
1204
- handleClick: Ie,
1207
+ handleClick: ke,
1205
1208
  handleEvents: (pe, et, tt) => {
1206
1209
  const Pe = Je();
1207
1210
  typeof Pe[pe] == "function" ? Pe[pe](et, tt) : console.warn(`[TinySearchBox] Unknown event: ${pe}`);
@@ -1221,7 +1224,7 @@ const to = (e) => {
1221
1224
  initFormRule: A,
1222
1225
  watchOutsideClick: X,
1223
1226
  watchMouseDown: re,
1224
- watchMouseMove: ke
1227
+ watchMouseMove: Ie
1225
1228
  });
1226
1229
  }, fo = ({ watch: e, state: t, props: o, api: l, nextTick: c, vm: i }) => {
1227
1230
  var r;
@@ -1403,10 +1406,10 @@ const to = (e) => {
1403
1406
  setup(e, t) {
1404
1407
  return Le({ props: e, context: t, renderless: ho, api: bo });
1405
1408
  }
1406
- }), go = { tiny_mode: "pc" }, yo = { key: 0 }, Vo = { class: "tvp-search-box__filter-type" }, ko = {
1409
+ }), go = { tiny_mode: "pc" }, yo = { key: 0 }, Vo = { class: "tvp-search-box__filter-type" }, Io = {
1407
1410
  key: 0,
1408
1411
  class: "tvp-search-box__text-highlight"
1409
- }, Io = { key: 1 }, wo = { class: "tvp-search-box__filter-type" }, To = {
1412
+ }, ko = { key: 1 }, wo = { class: "tvp-search-box__filter-type" }, To = {
1410
1413
  key: 0,
1411
1414
  class: "tvp-search-box__text-highlight"
1412
1415
  }, So = { key: 1 }, Do = { class: "tvp-search-box__filter-type" }, Co = {
@@ -1426,16 +1429,16 @@ function Ro(e, t, o, l, c, i) {
1426
1429
  onItemClick: t[0] || (t[0] = () => e.selectInputValue(e.state.inputValue))
1427
1430
  }, {
1428
1431
  default: M(() => [
1429
- S("span", null, I(e.t("tvp.tvpSearchbox.initUse")) + """ + I(e.state.inputValue) + """, 1)
1432
+ D("span", null, I(e.t("tvp.tvpSearchbox.initUse")) + """ + I(e.state.inputValue) + """, 1)
1430
1433
  ]),
1431
1434
  _: 1
1432
1435
  }, 8, ["item-data"]), [
1433
1436
  [G, e.state.inputValue.trim()]
1434
1437
  ]),
1435
- H(S("div", null, [
1438
+ H(D("div", null, [
1436
1439
  (y(!0), w(x, null, U(e.state.matchItems, (p, r) => (y(), w("div", { key: r }, [
1437
1440
  p.attr.length ? (y(), w("div", yo, [
1438
- S("span", Vo, I(r === "0" ? e.t("tvp.tvpSearchbox.attributeType") : r), 1),
1441
+ D("span", Vo, I(r === "0" ? e.t("tvp.tvpSearchbox.attributeType") : r), 1),
1439
1442
  (y(!0), w(x, null, U(p.attr, (n, d) => (y(), F(b, {
1440
1443
  key: n.label + d,
1441
1444
  class: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
@@ -1443,9 +1446,9 @@ function Ro(e, t, o, l, c, i) {
1443
1446
  onItemClick: () => e.selectPropItem(n)
1444
1447
  }, {
1445
1448
  default: M(() => [
1446
- S("span", null, [
1449
+ D("span", null, [
1447
1450
  (y(!0), w(x, null, U(n.match, (u) => (y(), w("span", { key: u }, [
1448
- u.toLowerCase() === n.hightlighStr ? (y(), w("span", ko, I(u), 1)) : (y(), w("span", Io, I(u), 1))
1451
+ u.toLowerCase() === n.hightlighStr ? (y(), w("span", Io, I(u), 1)) : (y(), w("span", ko, I(u), 1))
1449
1452
  ]))), 128))
1450
1453
  ])
1451
1454
  ]),
@@ -1453,7 +1456,7 @@ function Ro(e, t, o, l, c, i) {
1453
1456
  }, 1032, ["item-data", "onItemClick"]))), 128))
1454
1457
  ])) : z("", !0),
1455
1458
  p.attrValue.length ? (y(), w(x, { key: 1 }, [
1456
- S("span", wo, I(e.t("tvp.tvpSearchbox.propertyValue", [r === "0" ? e.t("tvp.tvpSearchbox.attributeType") : r])), 1),
1459
+ D("span", wo, I(e.t("tvp.tvpSearchbox.propertyValue", [r === "0" ? e.t("tvp.tvpSearchbox.attributeType") : r])), 1),
1457
1460
  (y(!0), w(x, null, U(p.attrValue, (n, d) => (y(), F(b, {
1458
1461
  key: n.label + d,
1459
1462
  disabled: n.isChecked,
@@ -1462,7 +1465,7 @@ function Ro(e, t, o, l, c, i) {
1462
1465
  onItemClick: () => e.selectRadioItem(n, !0)
1463
1466
  }, {
1464
1467
  default: M(() => [
1465
- S("span", null, [
1468
+ D("span", null, [
1466
1469
  (y(!0), w(x, null, U(n.match, (u) => (y(), w("span", { key: u }, [
1467
1470
  u.toLowerCase() === n.hightlighStr ? (y(), w("span", To, I(u), 1)) : (y(), w("span", So, I(u), 1))
1468
1471
  ]))), 128))
@@ -1472,9 +1475,9 @@ function Ro(e, t, o, l, c, i) {
1472
1475
  }, 1032, ["disabled", "item-data", "onItemClick"]))), 128))
1473
1476
  ], 64)) : z("", !0)
1474
1477
  ]))), 128)),
1475
- H(S("div", null, [
1476
- S("span", Do, I(e.t("tvp.tvpSearchbox.matched")), 1),
1477
- S("div", Co, [
1478
+ H(D("div", null, [
1479
+ D("span", Do, I(e.t("tvp.tvpSearchbox.matched")), 1),
1480
+ D("div", Co, [
1478
1481
  e.state.potentialOptions ? (y(), w("div", Mo, [
1479
1482
  (y(!0), w(x, null, U(e.state.potentialOptions, (p, r) => (y(), F(b, {
1480
1483
  key: p.label + r,
@@ -1484,7 +1487,7 @@ function Ro(e, t, o, l, c, i) {
1484
1487
  }, {
1485
1488
  default: M(() => [
1486
1489
  K(I(p.label) + ": ", 1),
1487
- S("span", Eo, I(p.value), 1)
1490
+ D("span", Eo, I(p.value), 1)
1488
1491
  ]),
1489
1492
  _: 2
1490
1493
  }, 1032, ["item-data", "onItemClick"]))), 128))
@@ -1496,7 +1499,7 @@ function Ro(e, t, o, l, c, i) {
1496
1499
  ], 512), [
1497
1500
  [G, !e.state.propItem.label && ((v = e.state.inputValue) == null ? void 0 : v.trim())]
1498
1501
  ]),
1499
- H(S("div", $o, [
1502
+ H(D("div", $o, [
1500
1503
  (y(!0), w(x, null, U(e.state.groupItems, (p, r) => (y(), w("div", { key: r }, [
1501
1504
  p.length ? (y(), w("span", Lo, I(r === "0" ? e.t("tvp.tvpSearchbox.attributeType") : r), 1)) : z("", !0),
1502
1505
  (y(!0), w(x, null, U(p, (n, d) => (y(), F(b, {
@@ -1506,7 +1509,7 @@ function Ro(e, t, o, l, c, i) {
1506
1509
  onItemClick: () => e.selectPropItem(n)
1507
1510
  }, {
1508
1511
  default: M(() => [
1509
- S("span", {
1512
+ D("span", {
1510
1513
  title: n.label
1511
1514
  }, I(n.label), 9, _o)
1512
1515
  ]),
@@ -1627,7 +1630,7 @@ function vn(e, t, o, l, c, i) {
1627
1630
  const b = N("tiny-dropdown-item"), v = N("tiny-checkbox"), m = N("tiny-checkbox-group"), p = N("tiny-button"), r = N("tiny-input"), n = N("tiny-form-item"), d = N("tiny-date-picker"), u = mt("loading");
1628
1631
  return y(), w("div", Bo, [
1629
1632
  (s = e.state.currentOperators) != null && s.length ? (y(), w("div", xo, [
1630
- S("span", Ao, I(e.t("tvp.tvpSearchbox.operator")), 1),
1633
+ D("span", Ao, I(e.t("tvp.tvpSearchbox.operator")), 1),
1631
1634
  (y(!0), w(x, null, U(e.state.currentOperators, (a, h) => H((y(), F(b, {
1632
1635
  key: a + h,
1633
1636
  class: "tvp-search-box__dropdown-item",
@@ -1676,7 +1679,7 @@ function vn(e, t, o, l, c, i) {
1676
1679
  class: he(e.isLoading && "tvp-search-box__loading-box")
1677
1680
  }, [
1678
1681
  e.showCheckBoxList ? (y(), w("div", Ko, [
1679
- S("div", Go, [
1682
+ D("div", Go, [
1680
1683
  C(m, {
1681
1684
  modelValue: e.state.checkAll,
1682
1685
  "onUpdate:modelValue": t[1] || (t[1] = (a) => e.state.checkAll = a),
@@ -1731,7 +1734,7 @@ function vn(e, t, o, l, c, i) {
1731
1734
  _: 1
1732
1735
  }, 8, ["modelValue"])
1733
1736
  ]),
1734
- S("div", qo, [
1737
+ D("div", qo, [
1735
1738
  C(p, {
1736
1739
  size: "mini",
1737
1740
  onClick: t[3] || (t[3] = (a) => e.selectCheckbox(!1))
@@ -1755,9 +1758,9 @@ function vn(e, t, o, l, c, i) {
1755
1758
  ], 2)), [
1756
1759
  [u, e.isLoading]
1757
1760
  ]) : e.state.prevItem.type === "numRange" ? (y(), w("div", Zo, [
1758
- S("div", Yo, [
1759
- S("div", Qo, I(e.t("tvp.tvpSearchbox.rangeNumberTitle")), 1),
1760
- S("div", Wo, I(e.t("tvp.tvpSearchbox.minValueText")) + "(" + I(e.state.prevItem.unit) + ") ", 1),
1761
+ D("div", Yo, [
1762
+ D("div", Qo, I(e.t("tvp.tvpSearchbox.rangeNumberTitle")), 1),
1763
+ D("div", Wo, I(e.t("tvp.tvpSearchbox.minValueText")) + "(" + I(e.state.prevItem.unit) + ") ", 1),
1761
1764
  C(n, {
1762
1765
  prop: e.state.curMinNumVar,
1763
1766
  class: "tvp-search-box__number-item",
@@ -1773,7 +1776,7 @@ function vn(e, t, o, l, c, i) {
1773
1776
  ]),
1774
1777
  _: 1
1775
1778
  }, 8, ["prop", "show-message"]),
1776
- S("div", Jo, I(e.t("tvp.tvpSearchbox.maxValueText")) + "(" + I(e.state.prevItem.unit) + ") ", 1),
1779
+ D("div", Jo, I(e.t("tvp.tvpSearchbox.maxValueText")) + "(" + I(e.state.prevItem.unit) + ") ", 1),
1777
1780
  C(n, {
1778
1781
  prop: e.state.curMaxNumVar,
1779
1782
  class: "tvp-search-box__number-item"
@@ -1789,7 +1792,7 @@ function vn(e, t, o, l, c, i) {
1789
1792
  _: 1
1790
1793
  }, 8, ["prop"])
1791
1794
  ]),
1792
- S("div", Xo, [
1795
+ D("div", Xo, [
1793
1796
  C(p, {
1794
1797
  size: "mini",
1795
1798
  onClick: t[7] || (t[7] = (a) => e.sizeChange(!1))
@@ -1810,11 +1813,11 @@ function vn(e, t, o, l, c, i) {
1810
1813
  })
1811
1814
  ])
1812
1815
  ])) : e.state.prevItem.type === "dateRange" ? (y(), w("div", en, [
1813
- S("div", tn, [
1814
- S("div", on, I(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
1816
+ D("div", tn, [
1817
+ D("div", on, I(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
1815
1818
  value: (e.state.prevItem.maxTimeLength / 864e5).toFixed(1)
1816
1819
  }) : e.t("tvp.tvpSearchbox.rangeDateTitle")), 1),
1817
- S("div", nn, I(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
1820
+ D("div", nn, I(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
1818
1821
  C(n, {
1819
1822
  prop: "startDate",
1820
1823
  "show-message": !!e.state.prevItem.maxTimeLength,
@@ -1833,7 +1836,7 @@ function vn(e, t, o, l, c, i) {
1833
1836
  ]),
1834
1837
  _: 1
1835
1838
  }, 8, ["show-message"]),
1836
- S("div", ln, I(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
1839
+ D("div", ln, I(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
1837
1840
  C(n, {
1838
1841
  prop: "endDate",
1839
1842
  class: "tvp-search-box__date-item"
@@ -1853,7 +1856,7 @@ function vn(e, t, o, l, c, i) {
1853
1856
  _: 1
1854
1857
  })
1855
1858
  ]),
1856
- S("div", an, [
1859
+ D("div", an, [
1857
1860
  C(p, {
1858
1861
  size: "mini",
1859
1862
  onClick: t[11] || (t[11] = (a) => e.onConfirmDate(!1))
@@ -1874,11 +1877,11 @@ function vn(e, t, o, l, c, i) {
1874
1877
  })
1875
1878
  ])
1876
1879
  ])) : e.state.prevItem.type === "datetimeRange" ? (y(), w("div", rn, [
1877
- S("div", sn, [
1878
- S("div", pn, I(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
1880
+ D("div", sn, [
1881
+ D("div", pn, I(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
1879
1882
  value: (e.state.prevItem.maxTimeLength / 864e5).toFixed(1)
1880
1883
  }) : e.t("tvp.tvpSearchbox.rangeDateTitle")), 1),
1881
- S("div", un, I(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
1884
+ D("div", un, I(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
1882
1885
  C(n, {
1883
1886
  prop: "startDateTime",
1884
1887
  "show-message": !!e.state.prevItem.maxTimeLength,
@@ -1900,7 +1903,7 @@ function vn(e, t, o, l, c, i) {
1900
1903
  ]),
1901
1904
  _: 1
1902
1905
  }, 8, ["show-message"]),
1903
- S("div", cn, I(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
1906
+ D("div", cn, I(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
1904
1907
  C(n, {
1905
1908
  prop: "endDateTime",
1906
1909
  class: "tvp-search-box__date-item"
@@ -1922,7 +1925,7 @@ function vn(e, t, o, l, c, i) {
1922
1925
  _: 1
1923
1926
  })
1924
1927
  ]),
1925
- S("div", dn, [
1928
+ D("div", dn, [
1926
1929
  C(p, {
1927
1930
  size: "mini",
1928
1931
  onClick: t[15] || (t[15] = (a) => e.onConfirmDate(!1, !0))
@@ -1952,7 +1955,7 @@ function vn(e, t, o, l, c, i) {
1952
1955
  onItemClick: () => e.selectFirstMap(a, e.state.isShowTagKey)
1953
1956
  }, {
1954
1957
  default: M(() => [
1955
- S("span", {
1958
+ D("span", {
1956
1959
  title: a.label
1957
1960
  }, I(a.label), 9, bn)
1958
1961
  ]),
@@ -2059,10 +2062,10 @@ const yn = ve({
2059
2062
  setup(e, t) {
2060
2063
  return Le({ props: e, context: t, renderless: co, api: po });
2061
2064
  }
2062
- }), Vn = { class: "tvp-search-box__tag-value" }, kn = {
2065
+ }), Vn = { class: "tvp-search-box__tag-value" }, In = {
2063
2066
  key: 1,
2064
2067
  class: "tvp-search-box__placeholder"
2065
- }, In = { class: "tvp-search-box__input-wrapper" }, wn = { class: "tvp-search-box__prop" }, Tn = { class: "tvp-search-box__input-separator" }, Sn = { class: "tvp-search-box__date-wrap" }, Dn = { class: "tvp-search-box__dropdown-start" }, Cn = {
2068
+ }, kn = { class: "tvp-search-box__input-wrapper" }, wn = { class: "tvp-search-box__prop" }, Tn = { class: "tvp-search-box__input-separator" }, Sn = { class: "tvp-search-box__date-wrap" }, Dn = { class: "tvp-search-box__dropdown-start" }, Cn = {
2066
2069
  key: 0,
2067
2070
  class: "tvp-search-box__dropdown-end"
2068
2071
  }, Mn = {
@@ -2095,20 +2098,20 @@ function Un(e, t, o, l, c, i) {
2095
2098
  key: 0,
2096
2099
  class: "tvp-search-box__prefix"
2097
2100
  })) : z("", !0),
2098
- (y(!0), w(x, null, U(e.modelValue, (f, D) => (y(), F(v, {
2099
- key: f.field + D,
2101
+ (y(!0), w(x, null, U(e.modelValue, (f, S) => (y(), F(v, {
2102
+ key: f.field + S,
2100
2103
  closable: "",
2101
2104
  class: he(["tvp-search-box__tag", e.editable && f.type !== "map" ? "tvp-search-box__tag-editor" : ""]),
2102
2105
  title: `${f.label} ${f.operator || ":"} ${f.value}`,
2103
2106
  onClose: (k) => e.deleteTag(f),
2104
- onClick: Y((k) => e.editTag(f, D, k), ["stop"])
2107
+ onClick: Y((k) => e.editTag(f, S, k), ["stop"])
2105
2108
  }, {
2106
2109
  default: M(() => [
2107
- S("span", Vn, I(f.label) + " " + I(f.operator || ":") + " " + I(f.value), 1)
2110
+ D("span", Vn, I(f.label) + " " + I(f.operator || ":") + " " + I(f.value), 1)
2108
2111
  ]),
2109
2112
  _: 2
2110
2113
  }, 1032, ["class", "title", "onClose", "onClick"]))), 128)),
2111
- e.modelValue.length ? (y(), w("span", kn)) : z("", !0),
2114
+ e.modelValue.length ? (y(), w("span", In)) : z("", !0),
2112
2115
  C(V, {
2113
2116
  ref: "formRef",
2114
2117
  model: e.state,
@@ -2120,12 +2123,12 @@ function Un(e, t, o, l, c, i) {
2120
2123
  class: "tvp-search-box__form"
2121
2124
  }, {
2122
2125
  default: M(() => [
2123
- S("div", In, [
2124
- S("section", wn, [
2125
- H(S("span", null, I(e.state.propItem.label) + " " + I(`${e.state.operatorValue ? e.state.operatorValue : ""} `), 513), [
2126
+ D("div", kn, [
2127
+ D("section", wn, [
2128
+ H(D("span", null, I(e.state.propItem.label) + " " + I(`${e.state.operatorValue ? e.state.operatorValue : ""} `), 513), [
2126
2129
  [G, e.state.propItem.label]
2127
2130
  ]),
2128
- H(S("span", null, I(e.state.propItem.value), 513), [
2131
+ H(D("span", null, I(e.state.propItem.value), 513), [
2129
2132
  [G, e.state.propItem.value]
2130
2133
  ])
2131
2134
  ]),
@@ -2162,7 +2165,7 @@ function Un(e, t, o, l, c, i) {
2162
2165
  }, null, 8, ["onClick"]), [
2163
2166
  [G, e.isShowClose]
2164
2167
  ]),
2165
- H(S("span", Tn, null, 512), [
2168
+ H(D("span", Tn, null, 512), [
2166
2169
  [G, e.isShowClose]
2167
2170
  ]),
2168
2171
  e.showHelp ? (y(), F(r, {
@@ -2188,15 +2191,15 @@ function Un(e, t, o, l, c, i) {
2188
2191
  }, 8, ["modelValue", "placeholder", "maxlength", "onKeydown", "onInput", "onClick"])
2189
2192
  ]),
2190
2193
  default: M(() => {
2191
- var f, D, k;
2194
+ var f, S, k;
2192
2195
  return [
2193
- S("div", {
2196
+ D("div", {
2194
2197
  class: "tvp-search-box__dropdown",
2195
2198
  style: ft({ "max-height": e.panelMaxHeight }),
2196
2199
  onMouseup: Y(() => {
2197
2200
  }, ["stop"])
2198
2201
  }, [
2199
- H(S("div", null, [
2202
+ H(D("div", null, [
2200
2203
  (f = e.state.instance) != null && f.slots["first-panel"] ? me(e.$slots, "first-panel", fe({ key: 0 }, {
2201
2204
  state: e.state,
2202
2205
  handleEvents: e.handleEvents
@@ -2209,9 +2212,9 @@ function Un(e, t, o, l, c, i) {
2209
2212
  handleEvents: e.handleEvents
2210
2213
  }, null, 8, ["state", "handleEvents"]))
2211
2214
  ], 512), [
2212
- [G, !e.state.propItem.label || ((D = e.state.inputValue) == null ? void 0 : D.trim())]
2215
+ [G, !e.state.propItem.label || ((S = e.state.inputValue) == null ? void 0 : S.trim())]
2213
2216
  ]),
2214
- H(S("div", null, [
2217
+ H(D("div", null, [
2215
2218
  (k = e.state.instance) != null && k.slots["second-panel"] ? me(e.$slots, "second-panel", fe({ key: 0 }, {
2216
2219
  state: e.state,
2217
2220
  pickerOptions: e.pickerOptions,
@@ -2228,7 +2231,7 @@ function Un(e, t, o, l, c, i) {
2228
2231
  }, null, 8, ["state", "picker-options", "onEvents"])) : (y(), w("div", {
2229
2232
  key: 2,
2230
2233
  class: "tvp-search-box__panel-box",
2231
- onClick: t[4] || (t[4] = (R) => e.showDropdown(e.state))
2234
+ onClick: t[4] || (t[4] = (_) => e.showDropdown(e.state))
2232
2235
  }, [
2233
2236
  me(e.$slots, e.state.prevItem.slotName, fe({
2234
2237
  showDropdown: () => e.showDropdown(e.state),
@@ -2261,8 +2264,8 @@ function Un(e, t, o, l, c, i) {
2261
2264
  }, {
2262
2265
  default: M(() => [
2263
2266
  e.state.prevItem.type !== "custom" ? (y(), w(x, { key: 0 }, [
2264
- S("div", Sn, [
2265
- S("div", Dn, I(e.t("tvp.tvpSearchbox.attributeType")), 1),
2267
+ D("div", Sn, [
2268
+ D("div", Dn, I(e.t("tvp.tvpSearchbox.attributeType")), 1),
2266
2269
  C(g, { class: "tvp-search-box__number-item" }, {
2267
2270
  default: M(() => [
2268
2271
  C(h, {
@@ -2284,7 +2287,7 @@ function Un(e, t, o, l, c, i) {
2284
2287
  label: f.label,
2285
2288
  value: f.label,
2286
2289
  disabled: e.selectItemIsDisable(f),
2287
- onClick: (D) => e.selectPropChange(f, e.selectItemIsDisable(f))
2290
+ onClick: (S) => e.selectPropChange(f, e.selectItemIsDisable(f))
2288
2291
  }, null, 8, ["label", "value", "disabled", "onClick"]))), 128))
2289
2292
  ]),
2290
2293
  _: 1
@@ -2321,7 +2324,7 @@ function Un(e, t, o, l, c, i) {
2321
2324
  class: "tvp-search-box__number-item"
2322
2325
  }, {
2323
2326
  default: M(() => {
2324
- var f, D;
2327
+ var f, S;
2325
2328
  return [
2326
2329
  ((f = e.state.currentEditValue) == null ? void 0 : f.length) > 0 ? (y(), F(h, {
2327
2330
  key: 0,
@@ -2329,7 +2332,7 @@ function Un(e, t, o, l, c, i) {
2329
2332
  "onUpdate:modelValue": t[9] || (t[9] = (k) => e.state.inputEditValue = k),
2330
2333
  class: "tvp-search-box-select",
2331
2334
  multiple: !!e.state.prevItem.mergeTag,
2332
- "allow-create": (D = e.state.prevItem) == null ? void 0 : D.allowCreate,
2335
+ "allow-create": (S = e.state.prevItem) == null ? void 0 : S.allowCreate,
2333
2336
  filterable: "",
2334
2337
  "default-first-option": "",
2335
2338
  clearable: ""
@@ -2353,7 +2356,7 @@ function Un(e, t, o, l, c, i) {
2353
2356
  _: 1
2354
2357
  })),
2355
2358
  e.state.prevItem.type === "numRange" ? (y(), w("div", En, [
2356
- S("div", $n, I(e.t("tvp.tvpSearchbox.minValueText")) + "(" + I(e.state.prevItem.unit) + ") ", 1),
2359
+ D("div", $n, I(e.t("tvp.tvpSearchbox.minValueText")) + "(" + I(e.state.prevItem.unit) + ") ", 1),
2357
2360
  C(g, {
2358
2361
  prop: e.state.curMinNumVar,
2359
2362
  class: "tvp-search-box__number-item",
@@ -2369,7 +2372,7 @@ function Un(e, t, o, l, c, i) {
2369
2372
  ]),
2370
2373
  _: 1
2371
2374
  }, 8, ["prop", "show-message"]),
2372
- S("div", Ln, I(e.t("tvp.tvpSearchbox.maxValueText")) + "(" + I(e.state.prevItem.unit) + ") ", 1),
2375
+ D("div", Ln, I(e.t("tvp.tvpSearchbox.maxValueText")) + "(" + I(e.state.prevItem.unit) + ") ", 1),
2373
2376
  C(g, {
2374
2377
  prop: e.state.curMaxNumVar,
2375
2378
  class: "tvp-search-box__number-item"
@@ -2386,10 +2389,10 @@ function Un(e, t, o, l, c, i) {
2386
2389
  }, 8, ["prop"])
2387
2390
  ])) : z("", !0),
2388
2391
  e.state.prevItem.type === "dateRange" ? (y(), w("div", _n, [
2389
- S("div", Rn, I(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
2392
+ D("div", Rn, I(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
2390
2393
  value: (e.state.prevItem.maxTimeLength / 864e5).toFixed(1)
2391
2394
  }) : e.t("tvp.tvpSearchbox.rangeDateTitle")), 1),
2392
- S("div", Nn, I(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
2395
+ D("div", Nn, I(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
2393
2396
  C(g, {
2394
2397
  prop: "startDate",
2395
2398
  "show-message": !!e.state.prevItem.maxTimeLength,
@@ -2407,7 +2410,7 @@ function Un(e, t, o, l, c, i) {
2407
2410
  ]),
2408
2411
  _: 1
2409
2412
  }, 8, ["show-message"]),
2410
- S("div", Pn, I(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
2413
+ D("div", Pn, I(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
2411
2414
  C(g, {
2412
2415
  prop: "endDate",
2413
2416
  class: "tvp-search-box__date-item"
@@ -2426,10 +2429,10 @@ function Un(e, t, o, l, c, i) {
2426
2429
  })
2427
2430
  ])) : z("", !0),
2428
2431
  e.state.prevItem.type === "datetimeRange" ? (y(), w("div", On, [
2429
- S("div", Fn, I(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
2432
+ D("div", Fn, I(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
2430
2433
  value: (e.state.prevItem.maxTimeLength / 864e5).toFixed(1)
2431
2434
  }) : e.t("tvp.tvpSearchbox.rangeDateTitle")), 1),
2432
- S("div", Bn, I(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
2435
+ D("div", Bn, I(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
2433
2436
  C(g, {
2434
2437
  prop: "startDateTime",
2435
2438
  "show-message": !!e.state.prevItem.maxTimeLength,
@@ -2449,7 +2452,7 @@ function Un(e, t, o, l, c, i) {
2449
2452
  ]),
2450
2453
  _: 1
2451
2454
  }, 8, ["show-message"]),
2452
- S("div", xn, I(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
2455
+ D("div", xn, I(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
2453
2456
  C(g, {
2454
2457
  prop: "endDateTime",
2455
2458
  class: "tvp-search-box__date-item"
@@ -2470,7 +2473,7 @@ function Un(e, t, o, l, c, i) {
2470
2473
  })
2471
2474
  ])) : z("", !0)
2472
2475
  ]),
2473
- S("div", An, [
2476
+ D("div", An, [
2474
2477
  C($, {
2475
2478
  size: "mini",
2476
2479
  onClick: t[17] || (t[17] = (f) => e.confirmEditTag(!1))
@@ -2598,7 +2601,7 @@ const jn = /* @__PURE__ */ Ne(yn, [["render", Un]]), Hn = {
2598
2601
  name: $e + "SearchBox",
2599
2602
  props: Hn,
2600
2603
  ...jn
2601
- }), Kn = "3.27.2-alpha.0";
2604
+ }), Kn = "3.28.0";
2602
2605
  ue.install = function(e) {
2603
2606
  e.component(ue.name, ue);
2604
2607
  };