@opentiny/vue-search-box-saas 3.27.1 → 3.27.2-alpha.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.
package/index.js CHANGED
@@ -1,25 +1,25 @@
1
1
  import './index.css';
2
- import { defineComponent as be, $prefix as Me, $props as ve, setup as Ee } from "@opentiny/vue-common";
3
- import Xe from "@opentiny/vue-tag";
4
- import Pe from "@opentiny/vue-input";
5
- import et from "@opentiny/vue-dropdown";
6
- import tt from "@opentiny/vue-dropdown-menu";
7
- import Oe from "@opentiny/vue-button";
8
- import ot from "@opentiny/vue-tooltip";
9
- import Fe from "@opentiny/vue-date-picker";
10
- import nt from "@opentiny/vue-form";
11
- import xe from "@opentiny/vue-form-item";
12
- import lt from "@opentiny/vue-popover";
13
- import at from "@opentiny/vue-select";
14
- import rt from "@opentiny/vue-option";
15
- import { iconSearch as st, iconClose as it, iconHelpQuery as pt } from "@opentiny/vue-icon";
16
- import Be from "@opentiny/vue-dropdown-item";
17
- import { resolveComponent as N, openBlock as y, createElementBlock as S, withDirectives as j, createVNode as D, withCtx as C, createElementVNode as M, toDisplayString as k, vShow as G, Fragment as B, renderList as z, createBlock as F, createCommentVNode as H, createTextVNode as K, resolveDirective as ut, normalizeClass as he, withModifiers as Z, normalizeStyle as ct, renderSlot as me, mergeProps as fe, withKeys as Ne } from "vue";
18
- import dt from "@opentiny/vue-checkbox";
19
- import mt from "@opentiny/vue-checkbox-group";
20
- import ft from "@opentiny/vue-loading";
21
- const ht = (e, t, o, l = "0") => {
22
- if (typeof e == "string" && typeof l == "string" && Ae(t)) {
2
+ import { defineComponent as ve, $prefix as $e, $props as ge, setup as Le } from "@opentiny/vue-common";
3
+ import ot from "@opentiny/vue-tag";
4
+ import Fe from "@opentiny/vue-input";
5
+ import nt from "@opentiny/vue-dropdown";
6
+ import lt from "@opentiny/vue-dropdown-menu";
7
+ import Be from "@opentiny/vue-button";
8
+ import at from "@opentiny/vue-tooltip";
9
+ import xe from "@opentiny/vue-date-picker";
10
+ import rt from "@opentiny/vue-form";
11
+ import Ae from "@opentiny/vue-form-item";
12
+ import st from "@opentiny/vue-popover";
13
+ import it from "@opentiny/vue-select";
14
+ import pt from "@opentiny/vue-option";
15
+ import { iconSearch as ut, iconClose as ct, iconHelpQuery as dt } from "@opentiny/vue-icon";
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";
18
+ import ht from "@opentiny/vue-checkbox";
19
+ import bt from "@opentiny/vue-checkbox-group";
20
+ import vt from "@opentiny/vue-loading";
21
+ const gt = (e, t, o, l = "0") => {
22
+ if (typeof e == "string" && typeof l == "string" && Ue(t)) {
23
23
  let c = e.length - t;
24
24
  if (c > 0)
25
25
  return o ? e.substr(0, t) : e.substr(c, t);
@@ -31,9 +31,9 @@ const ht = (e, t, o, l = "0") => {
31
31
  return o ? e + b : b + e;
32
32
  }
33
33
  }
34
- }, bt = Object.prototype.toString, vt = Object.prototype.hasOwnProperty, gt = vt.toString;
35
- gt.call(Object);
36
- const yt = {
34
+ }, yt = Object.prototype.toString, Vt = Object.prototype.hasOwnProperty, kt = Vt.toString;
35
+ kt.call(Object);
36
+ const It = {
37
37
  "[object Error]": "error",
38
38
  "[object Object]": "object",
39
39
  "[object RegExp]": "regExp",
@@ -44,13 +44,13 @@ const yt = {
44
44
  "[object String]": "string",
45
45
  "[object Number]": "number",
46
46
  "[object Boolean]": "boolean"
47
- }, Vt = (e) => e == null, kt = (e) => Vt(e) ? String(e) : yt[bt.call(e)] || "object", Ae = (e) => typeof e == "number" && isFinite(e), It = (e) => kt(e) === "date", ze = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], wt = new RegExp(
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(
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
- ), Tt = new RegExp(
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}))?)?)?$"
51
- ), St = new RegExp(
51
+ ), Mt = new RegExp(
52
52
  "^(\\d{4})-(((0)?[1-9])|(1[0-2]))-(((0)?[1-9])|([1-2][0-9])|(3[0-1]))T(((0)?[0-9]|1[0-9]|20|21|22|23):([0-5]?[0-9])((:([0-5]?[0-9]))?(.([0-9]{1,6}))?)?)?(Z|([+-])((0)?[0-9]|1[0-9]|20|21|22|23):?([0-5]?[0-9]))$"
53
- ), Dt = {
53
+ ), Et = {
54
54
  "y{1,4}": /y{1,4}/,
55
55
  "M{1,2}": /M{1,2}/,
56
56
  "d{1,2}": /d{1,2}/,
@@ -68,18 +68,18 @@ const yt = {
68
68
  MINUTE: 59,
69
69
  SECOND: 59,
70
70
  MILLISECOND: 999
71
- }, Ct = "-12:00,-11:00,-10:00,-09:30,-08:00,-07:00,-06:00,-05:00,-04:30,-04:00,-03:30,-02:00,-01:00", Mt = "-00:00,+00:00,+01:00,+02:00,+03:00,+03:30,+04:00,+04:30,+05:00,+05:30,+05:45,+06:00", Et = "+06:30,+07:00,+08:00,+09:00,+10:00,+10:30,+11:00,+11:30,+12:00,+12:45,+13:00,+14:00", $t = [].concat(Ct.split(","), Mt.split(","), Et.split(",")), Lt = (e) => {
71
+ }, $t = "-12:00,-11:00,-10:00,-09:30,-08:00,-07:00,-06:00,-05:00,-04:30,-04:00,-03:30,-02:00,-01:00", Lt = "-00:00,+00:00,+01:00,+02:00,+03:00,+03:30,+04:00,+04:30,+05:00,+05:30,+05:45,+06:00", _t = "+06:30,+07:00,+08:00,+09:00,+10:00,+10:30,+11:00,+11:30,+12:00,+12:45,+13:00,+14:00", Rt = [].concat($t.split(","), Lt.split(","), _t.split(",")), Nt = (e) => {
72
72
  const t = 0 - e.getTimezoneOffset() / 60;
73
73
  let o;
74
74
  return t === 0 ? o = "Z" : t > 0 ? o = "+" + (t > 10 ? t : "0" + t) + "00" : o = (t < -10 ? t : "-0" + -t) + "00", o;
75
- }, Ue = (e) => e % 400 === 0 || e % 4 === 0 && e % 100 !== 0, je = (e) => e > oe.MILLISECOND ? Number(String(e).substring(0, 3)) : e, $e = ({ year: e, month: t, date: o, hours: l, minutes: c, seconds: i, milliseconds: b }) => {
76
- let v = ze[t];
77
- if (Ue(e) && t === 1 && (v += 1), o <= v)
78
- return new Date(e, t, o, l, c, i, je(b));
79
- }, _t = (e) => {
75
+ }, He = (e) => e % 400 === 0 || e % 4 === 0 && e % 100 !== 0, Ke = (e) => e > oe.MILLISECOND ? Number(String(e).substring(0, 3)) : e, _e = ({ year: e, month: t, date: o, hours: l, minutes: c, seconds: i, milliseconds: b }) => {
76
+ let v = je[t];
77
+ if (He(e) && t === 1 && (v += 1), o <= v)
78
+ return new Date(e, t, o, l, c, i, Ke(b));
79
+ }, Pt = (e) => {
80
80
  if (e.length === 23) {
81
81
  const t = Number(e[1]), o = e[3] - 1, l = Number(e[9] || 1), c = e[15] || 0, i = e[17] || 0, b = e[20] || 0, v = e[22] || 0;
82
- return $e({
82
+ return _e({
83
83
  date: l,
84
84
  year: t,
85
85
  hours: c,
@@ -89,10 +89,10 @@ const yt = {
89
89
  milliseconds: v
90
90
  });
91
91
  }
92
- }, Rt = (e) => {
92
+ }, Ot = (e) => {
93
93
  if (e.length === 22) {
94
94
  const t = Number(e[12]), o = e[1] - 1, l = Number(e[6] || 1), c = e[14] || 0, i = e[16] || 0, b = e[19] || 0, v = e[21] || 0;
95
- return $e({
95
+ return _e({
96
96
  year: t,
97
97
  month: o,
98
98
  date: l,
@@ -102,34 +102,34 @@ const yt = {
102
102
  milliseconds: v
103
103
  });
104
104
  }
105
- }, Nt = (e) => {
105
+ }, Ft = (e) => {
106
106
  if (e.length !== 25)
107
107
  return;
108
- const t = Number(e[1]), o = e[2] - 1, l = Number(e[6]), c = new Date(t, o, l).getTimezoneOffset(), i = e[12] || 0, b = e[14] || 0, v = e[17] || 0, d = e[19] || 0;
108
+ const t = Number(e[1]), o = e[2] - 1, l = Number(e[6]), c = new Date(t, o, l).getTimezoneOffset(), i = e[12] || 0, b = e[14] || 0, v = e[17] || 0, m = e[19] || 0;
109
109
  let p = e[20];
110
- const r = e[21], n = e[22] || 0, f = e[24] || 0;
111
- let s = ze[o], u, a;
112
- if (Ue(t) && o === 1 && (s += 1), l <= s) {
110
+ const r = e[21], n = e[22] || 0, d = e[24] || 0;
111
+ let u = je[o], s, a;
112
+ if (He(t) && o === 1 && (u += 1), l <= u) {
113
113
  if (p === "Z")
114
- u = i - c / 60, a = b;
114
+ s = i - c / 60, a = b;
115
115
  else {
116
- if (p.includes(":") || (p = p.substr(0, 3) + ":" + p.substr(3)), !$t.includes(p))
116
+ if (p.includes(":") || (p = p.substr(0, 3) + ":" + p.substr(3)), !Rt.includes(p))
117
117
  return;
118
- u = r === "+" ? i - n - c / 60 : Number(i) + Number(n) - c / 60, a = r === "+" ? b - f : Number(b) + Number(f);
118
+ s = r === "+" ? i - n - c / 60 : Number(i) + Number(n) - c / 60, a = r === "+" ? b - d : Number(b) + Number(d);
119
119
  }
120
- return new Date(t, o, l, u, a, v, je(d));
120
+ return new Date(t, o, l, s, a, v, Ke(m));
121
121
  }
122
- }, we = [
123
- [wt, _t],
124
- [Tt, Rt],
125
- [St, Nt]
126
- ], Pt = (e) => {
127
- for (let t = 0, o = we.length; t < o; t++) {
128
- const l = we[t][0].exec(e);
122
+ }, Te = [
123
+ [Dt, Pt],
124
+ [Ct, Ot],
125
+ [Mt, Ft]
126
+ ], Bt = (e) => {
127
+ for (let t = 0, o = Te.length; t < o; t++) {
128
+ const l = Te[t][0].exec(e);
129
129
  if (l && l.length > 0)
130
- return we[t][1](l);
130
+ return Te[t][1](l);
131
131
  }
132
- }, Ot = (e, t, o) => {
132
+ }, xt = (e, t, o) => {
133
133
  if (o)
134
134
  switch (o) {
135
135
  case "yyyy":
@@ -162,56 +162,56 @@ const yt = {
162
162
  e[6] = t;
163
163
  break;
164
164
  }
165
- }, Ft = (e, t) => {
165
+ }, At = (e, t) => {
166
166
  const o = [0, -1, 0, 0, 0, 0];
167
167
  if (e.length !== t.length)
168
168
  return o;
169
169
  let l = 0, c = 0;
170
170
  for (let i = 0, b = e.length; i < b; i++) {
171
- const v = e.substr(i, 1), d = isNaN(Number(v)) || (v == null ? void 0 : v.trim()) === "";
172
- if (d && v === t.substr(i, 1) || i === b - 1) {
171
+ const v = e.substr(i, 1), m = isNaN(Number(v)) || (v == null ? void 0 : v.trim()) === "";
172
+ if (m && v === t.substr(i, 1) || i === b - 1) {
173
173
  let p, r;
174
- if (d) {
174
+ if (m) {
175
175
  p = e.substring(l, i), l = i + 1;
176
176
  const n = t.indexOf(v, c);
177
177
  r = t.substring(c, n === -1 ? t.length : n), c = n + 1;
178
178
  } else
179
179
  p = e.substring(l, b), r = t.substring(c, b);
180
- (p.length === r.length || p) && Ot(o, p, r);
180
+ (p.length === r.length || p) && xt(o, p, r);
181
181
  }
182
182
  }
183
183
  return o;
184
- }, se = (e, t, o) => isNaN(e) || e < t || e > o, xt = ({ year: e, month: t, date: o, hours: l, minutes: c, seconds: i, milliseconds: b }) => se(e, 0, oe.YEAR) || se(t, 0, oe.MONTH) || se(o, 0, oe.DATE) || se(l, 0, oe.HOUR) || se(c, 0, oe.MINUTE) || se(i, 0, oe.SECOND) || se(b, 0, oe.MILLISECOND), Bt = (e, t) => {
184
+ }, se = (e, t, o) => isNaN(e) || e < t || e > o, zt = ({ year: e, month: t, date: o, hours: l, minutes: c, seconds: i, milliseconds: b }) => se(e, 0, oe.YEAR) || se(t, 0, oe.MONTH) || se(o, 0, oe.DATE) || se(l, 0, oe.HOUR) || se(c, 0, oe.MINUTE) || se(i, 0, oe.SECOND) || se(b, 0, oe.MILLISECOND), Ut = (e, t) => {
185
185
  if (typeof t == "string") {
186
- const o = Ft(e, t), l = Number(o[0]), c = Number(o[1]), i = Number(o[2] || 1), b = Number(o[3] || 0), v = Number(o[4] || 0), d = Number(o[5] || 0), p = Number(o[6] || 0);
187
- return xt({
186
+ const o = At(e, t), l = Number(o[0]), c = Number(o[1]), i = Number(o[2] || 1), b = Number(o[3] || 0), v = Number(o[4] || 0), m = Number(o[5] || 0), p = Number(o[6] || 0);
187
+ return zt({
188
188
  year: l,
189
189
  month: c,
190
190
  date: i,
191
191
  hours: b,
192
192
  minutes: v,
193
- seconds: d,
193
+ seconds: m,
194
194
  milliseconds: p
195
- }) ? void 0 : $e({
195
+ }) ? void 0 : _e({
196
196
  year: l,
197
197
  date: i,
198
198
  month: c,
199
199
  minutes: v,
200
200
  hours: b,
201
201
  milliseconds: p,
202
- seconds: d
202
+ seconds: m
203
203
  });
204
204
  } else
205
- return Pt(e);
206
- }, He = (e, t, o) => {
205
+ return Bt(e);
206
+ }, Ge = (e, t, o) => {
207
207
  let l;
208
- if (Ae(e) ? l = new Date(e) : typeof e == "string" && (l = Bt(e, t)), o) {
209
- const c = o && He(o) || new Date(1, 1, 1, 0, 0, 0);
208
+ if (Ue(e) ? l = new Date(e) : typeof e == "string" && (l = Ut(e, t)), o) {
209
+ const c = o && Ge(o) || new Date(1, 1, 1, 0, 0, 0);
210
210
  return l && l < c ? c : l;
211
211
  }
212
212
  return l;
213
- }, Se = function(e, t = "yyyy/MM/dd hh:mm:ss") {
214
- if (It(e)) {
213
+ }, De = function(e, t = "yyyy/MM/dd hh:mm:ss") {
214
+ if (St(e)) {
215
215
  if (typeof t == "string") {
216
216
  const o = {
217
217
  "y{1,4}": e.getFullYear(),
@@ -222,20 +222,20 @@ const yt = {
222
222
  "m{1,2}": e.getMinutes(),
223
223
  "s{1,2}": e.getSeconds(),
224
224
  "S{1,3}": e.getMilliseconds(),
225
- "Z{1,1}": Lt(e)
225
+ "Z{1,1}": Nt(e)
226
226
  };
227
227
  return Object.keys(o).forEach((l) => {
228
- const c = t.match(Dt[l]);
229
- l && c && c.length && (t = t.replace(c[0], l === "Z{1,1}" ? o[l] : ht(o[l].toString(), c[0].length)));
228
+ const c = t.match(Et[l]);
229
+ l && c && c.length && (t = t.replace(c[0], l === "Z{1,1}" ? o[l] : gt(o[l].toString(), c[0].length)));
230
230
  }), t;
231
231
  }
232
232
  } else if (typeof e == "string" && arguments.length >= 2) {
233
233
  let o = t;
234
234
  arguments.length === 2 ? t = void 0 : o = arguments[2];
235
- const l = He(e, t);
236
- return l ? Se(l, o) : "";
235
+ const l = Ge(e, t);
236
+ return l ? De(l, o) : "";
237
237
  }
238
- }, _ = (e, t = !0) => {
238
+ }, L = (e, t = !0) => {
239
239
  t ? e.visibleTimer = setTimeout(() => {
240
240
  e.visible = !0;
241
241
  }, 0) : (clearTimeout(e.visibleTimer), e.visibleTimer = null, e.visible = !1);
@@ -245,7 +245,7 @@ const yt = {
245
245
  e.popoverVisible = t;
246
246
  const { dropdownRef: o } = e.instance;
247
247
  t && o.state.visible && (clearTimeout(Number(o.state.timeout)), o.state.timeout = null, o.state.visible = !1);
248
- }, At = (e, t = 200) => {
248
+ }, jt = (e, t = 200) => {
249
249
  let o = null;
250
250
  const l = function(...c) {
251
251
  o && clearTimeout(o), o = setTimeout(() => {
@@ -267,7 +267,7 @@ const yt = {
267
267
  return e;
268
268
  }
269
269
  return t;
270
- }, ge = (e, t = ["mergeTag", "options", "idMapKey"]) => {
270
+ }, ye = (e, t = ["mergeTag", "options", "idMapKey"]) => {
271
271
  const o = { ...e };
272
272
  return t.forEach((l) => {
273
273
  delete o[l];
@@ -275,39 +275,39 @@ const yt = {
275
275
  }, J = (e, t, o = "") => {
276
276
  const { valueMap: l, prevItem: c } = e, i = (c.label || o) + t;
277
277
  return l.has(i);
278
- }, ye = (e) => {
278
+ }, Ve = (e) => {
279
279
  e.propItem = {}, e.inputValue = "";
280
280
  }, Q = ({ emit: e, state: t, nextTick: o, ...l }) => {
281
281
  de(t, !1);
282
- const { tagList: c = null, index: i = -1, newTag: b = null, newValue: v = null, oldValue: d = null, isEdit: p } = l;
283
- if (p || ye(t), !c && i === -1 && !v)
282
+ const { tagList: c = null, index: i = -1, newTag: b = null, newValue: v = null, oldValue: m = null, isEdit: p } = l;
283
+ if (p || Ve(t), !c && i === -1 && !v)
284
284
  return;
285
- const r = d || ne(t.innerModelValue);
285
+ const r = m || ne(t.innerModelValue);
286
286
  let n = [];
287
287
  v ? n = [...v] : i !== -1 ? (n = [...t.innerModelValue], b ? n.splice(i, 1, b) : n.splice(i, 1)) : n = [...t.innerModelValue, ...c], t.innerModelValue = n, e("update:modelValue", ne(n)), e("change", ne(n), r);
288
288
  }, le = (e) => e, ae = (e, t, o) => {
289
289
  const l = t.idMapKey || e.idMapKey;
290
290
  return o && o[l] !== void 0 ? { [l]: o[l] } : null;
291
291
  };
292
- function zt({ props: e, state: t, emit: o, nextTick: l }) {
292
+ function Ht({ props: e, state: t, emit: o, nextTick: l }) {
293
293
  let c = ne(t.inputValue);
294
294
  const i = (p) => {
295
295
  if (p) {
296
296
  const r = t.recordItems.find((n) => n.label === p.label);
297
297
  if (r && r.options) {
298
- const n = r.options.find((f) => f.label === p.value);
298
+ const n = r.options.find((d) => d.label === p.value);
299
299
  n && (n.isChecked = !1);
300
300
  }
301
301
  }
302
302
  };
303
303
  return {
304
304
  deleteTag: (p) => {
305
- _(t, !1), i(p);
305
+ L(t, !1), i(p);
306
306
  const r = e.modelValue.filter((n) => n !== p);
307
307
  Q({ emit: o, state: t, nextTick: l, newValue: r });
308
308
  },
309
309
  clearTag: () => {
310
- _(t, !1), e.modelValue.forEach((p) => i(p)), t.propItem = {}, t.inputValue = "", Q({ emit: o, state: t, nextTick: l, newValue: [] }), o("clear");
310
+ L(t, !1), e.modelValue.forEach((p) => i(p)), t.propItem = {}, t.inputValue = "", Q({ emit: o, state: t, nextTick: l, newValue: [] }), o("clear");
311
311
  },
312
312
  backspaceDeleteTag: () => {
313
313
  var p, r, n;
@@ -317,231 +317,231 @@ function zt({ props: e, state: t, emit: o, nextTick: l }) {
317
317
  return;
318
318
  }
319
319
  if (c === "" && t.inputValue === "") {
320
- _(t, !1);
321
- const f = e.modelValue.length - 1;
322
- i(e.modelValue[f]);
323
- const s = t.innerModelValue.slice(0, e.modelValue.length - 1);
324
- Q({ emit: o, state: t, nextTick: l, newValue: s });
320
+ L(t, !1);
321
+ const d = e.modelValue.length - 1;
322
+ i(e.modelValue[d]);
323
+ const u = t.innerModelValue.slice(0, e.modelValue.length - 1);
324
+ Q({ emit: o, state: t, nextTick: l, newValue: u });
325
325
  }
326
326
  c = t.inputValue, (n = (r = (p = t == null ? void 0 : t.instance) == null ? void 0 : p.refs) == null ? void 0 : r.inputRef) != null && n.$el && t.instance.refs.inputRef.$el.click();
327
327
  }
328
328
  }
329
329
  };
330
330
  }
331
- const Ut = async (e, t, o) => {
332
- const { prevItem: l, inputEditValue: c } = t, { operators: i } = l, b = ge(l);
333
- let v = null, d = !0;
331
+ const Kt = async (e, t, o) => {
332
+ const { prevItem: l, inputEditValue: c } = t, { operators: i } = l, b = ye(l);
333
+ let v = null, m = !0;
334
334
  if (await e.$refs.formRef.validateField(["inputEditValue"], (p) => {
335
- p && (d = !1);
336
- }), d) {
335
+ p && (m = !1);
336
+ }), m) {
337
337
  let p = null;
338
338
  const r = t.operatorValue && i ? { operator: t.operatorValue } : null;
339
339
  let n = c;
340
- const f = {};
340
+ const d = {};
341
341
  if (Array.isArray(c))
342
- f.options = [], n = "", c.forEach((s) => {
343
- const u = t.currentEditValue.find((m) => m.label === s), a = (u == null ? void 0 : u.label) || s;
344
- if (n = n ? `${n} | ${a}` : a, u) {
345
- const m = ae(o, l, u);
346
- f.options.push({ label: a, ...m });
342
+ d.options = [], n = "", c.forEach((u) => {
343
+ const s = t.currentEditValue.find((h) => h.label === u), a = (s == null ? void 0 : s.label) || u;
344
+ if (n = n ? `${n} | ${a}` : a, s) {
345
+ const h = ae(o, l, s);
346
+ d.options.push({ label: a, ...h });
347
347
  } else
348
- f.options.push({ label: a });
348
+ d.options.push({ label: a });
349
349
  });
350
350
  else if (Array.isArray(t.currentEditValue)) {
351
- const s = t.currentEditValue.find((u) => u.label === n);
352
- p = ae(o, l, s);
351
+ const u = t.currentEditValue.find((s) => s.label === n);
352
+ p = ae(o, l, u);
353
353
  }
354
- v = le({ ...b, label: t.selectValue, ...r, value: n, ...p, ...f });
354
+ v = le({ ...b, label: t.selectValue, ...r, value: n, ...p, ...d });
355
355
  }
356
356
  return v;
357
- }, Ke = async (e, t, o) => {
358
- const { prevItem: l } = t, c = `min${l.field}`, i = `max${l.field}`, b = t[c], v = t[i], d = [c, i];
357
+ }, qe = async (e, t, o) => {
358
+ const { prevItem: l } = t, c = `min${l.field}`, i = `max${l.field}`, b = t[c], v = t[i], m = [c, i];
359
359
  let p = !0, r = null;
360
- if (await e.$refs.formRef.validateField(d, (n) => {
360
+ if (await e.$refs.formRef.validateField(m, (n) => {
361
361
  n && (p = !1);
362
362
  }), p) {
363
- const { field: n, label: f, unit: s, type: u, operators: a } = l, m = s ? `${f}(${s})` : f;
363
+ const { field: n, label: d, unit: u, type: s, operators: a } = l, h = u ? `${d}(${u})` : d;
364
364
  let g = "";
365
365
  b && v ? g = `${b}-${v}` : g = b ? `≥${b}` : `≤${v}`;
366
- const I = ae(o, l, l), L = t.operatorValue && a ? { operator: t.operatorValue } : null;
367
- r = le({ type: u, field: n, label: m, value: g, ...I, start: b, end: v, ...L });
366
+ const T = ae(o, l, l), $ = t.operatorValue && a ? { operator: t.operatorValue } : null;
367
+ r = le({ type: s, field: n, label: h, value: g, ...T, start: b, end: v, ...$ });
368
368
  }
369
369
  return r;
370
- }, De = async (e, t, o, l) => {
371
- const { prevItem: c, startDate: i, endDate: b, startDateTime: v, endDateTime: d } = t;
372
- let p = null, r = null, n = !0, f = null, s = null;
373
- if (l ? (p = v, r = d, s = ["startDateTime", "endDateTime"]) : (p = i, r = b, s = ["startDate", "endDate"]), await e.$refs.formRef.validateField(s, (u) => {
374
- u && (n = !1);
370
+ }, Ce = async (e, t, o, l) => {
371
+ const { prevItem: c, startDate: i, endDate: b, startDateTime: v, endDateTime: m } = t;
372
+ let p = null, r = null, n = !0, d = null, u = null;
373
+ if (l ? (p = v, r = m, u = ["startDateTime", "endDateTime"]) : (p = i, r = b, u = ["startDate", "endDate"]), await e.$refs.formRef.validateField(u, (s) => {
374
+ s && (n = !1);
375
375
  }), n) {
376
- const { operators: u } = c, a = ge(c);
377
- let m = "";
376
+ const { operators: s } = c, a = ye(c);
377
+ let h = "";
378
378
  if (p && r) {
379
379
  if (p > r)
380
380
  return;
381
- p === r ? m = p : m = `${p}-${r}`;
381
+ p === r ? h = p : h = `${p}-${r}`;
382
382
  } else
383
- m = p ? `≥${p}` : `≤${r}`;
384
- const g = ae(o, c, c), I = t.operatorValue && u ? { operator: t.operatorValue } : null;
385
- f = le({ ...a, value: m, start: p, end: r, ...g, ...I });
383
+ h = p ? `≥${p}` : `≤${r}`;
384
+ const g = ae(o, c, c), T = t.operatorValue && s ? { operator: t.operatorValue } : null;
385
+ d = le({ ...a, value: h, start: p, end: r, ...g, ...T });
386
386
  }
387
- return f;
388
- }, Ge = (e, t, o) => {
389
- const { prevItem: l } = e, { field: c, start: i, end: b, min: v = l.min, max: d = l.max } = t, p = `min${c}`, r = `max${c}`;
387
+ return d;
388
+ }, Ze = (e, t, o) => {
389
+ const { prevItem: l } = e, { field: c, start: i, end: b, min: v = l.min, max: m = l.max } = t, p = `min${c}`, r = `max${c}`;
390
390
  (e.curMinNumVar !== p || e.curMaxNumVar !== r) && (delete e[e.curMinNumVar], delete e[e.curMaxNumVar], delete e.formRules[e.curMinNumVar], delete e.formRules[e.curMaxNumVar], e.curMinNumVar = p, e.curMaxNumVar = r), e[e.curMinNumVar] = i, e[e.curMaxNumVar] = b;
391
- const { curMinNumVar: n, curMaxNumVar: f } = e, s = te(v), u = te(d);
392
- s || u ? (e.formRules[n] = {
393
- validator: (a, m, g) => {
394
- const I = te(m);
395
- !I && te(e[f]) || I && (s && !u && m >= v || !s && u && m <= d || m >= v && m <= d) ? g() : (e.numberShowMessage = !!(m || e[f]), g(new Error(o("tvp.tvpSearchbox.rangeMinErr", [v, d]))));
391
+ const { curMinNumVar: n, curMaxNumVar: d } = e, u = te(v), s = te(m);
392
+ u || s ? (e.formRules[n] = {
393
+ validator: (a, h, g) => {
394
+ const T = te(h);
395
+ !T && te(e[d]) || T && (u && !s && h >= v || !u && s && h <= m || h >= v && h <= m) ? g() : (e.numberShowMessage = !!(h || e[d]), g(new Error(o("tvp.tvpSearchbox.rangeMinErr", [v, m]))));
396
396
  }
397
- }, e.formRules[f] = {
398
- validator: (a, m, g) => {
399
- const I = te(e[n]), L = I && v < e[n] ? Number(e[n]) : v, V = te(L), T = te(m);
400
- !T && I || T && (V && !u && m >= L || !V && u && m <= d || m >= L && m <= d) ? g() : g(!T && !I ? new Error(o("tvp.tvpSearchbox.rangeNumberTitle")) : new Error(o("tvp.tvpSearchbox.rangeMaxErr")));
397
+ }, e.formRules[d] = {
398
+ validator: (a, h, g) => {
399
+ const T = te(e[n]), $ = T && v < e[n] ? Number(e[n]) : v, V = te($), f = te(h);
400
+ !f && T || f && (V && !s && h >= $ || !V && s && h <= m || h >= $ && h <= m) ? g() : g(!f && !T ? new Error(o("tvp.tvpSearchbox.rangeNumberTitle")) : new Error(o("tvp.tvpSearchbox.rangeMaxErr")));
401
401
  }
402
- }) : e.formRules[f] = {
403
- validator: (a, m, g) => {
404
- const I = e[n], L = te(m), V = te(I);
405
- L && !V || !L && V || L && V && m >= Number(I) ? g() : g(!L && !V ? new Error(o("tvp.tvpSearchbox.rangeNumberTitle")) : new Error(o("tvp.tvpSearchbox.rangeMaxErr")));
402
+ }) : e.formRules[d] = {
403
+ validator: (a, h, g) => {
404
+ const T = e[n], $ = te(h), V = te(T);
405
+ $ && !V || !$ && V || $ && V && h >= Number(T) ? g() : g(!$ && !V ? new Error(o("tvp.tvpSearchbox.rangeNumberTitle")) : new Error(o("tvp.tvpSearchbox.rangeMaxErr")));
406
406
  }
407
407
  };
408
408
  };
409
- function jt({ props: e, emit: t, state: o, t: l, format: c, nextTick: i, vm: b, cancelHandleInput: v }) {
410
- const d = b || o.instance, p = (V) => {
411
- var $, w, P;
412
- const { start: T, end: E, type: h } = V;
413
- if (o.backupList = V.options, h === "numRange")
414
- Ge(o, V, l);
415
- else if (h === "dateRange") {
416
- const { dateRangeFormat: R } = o;
417
- if (!o.startDate && T) {
418
- const O = c(T, R);
409
+ function Gt({ props: e, emit: t, state: o, t: l, format: c, nextTick: i, vm: b, cancelHandleInput: v }) {
410
+ const m = b || o.instance, p = (V) => {
411
+ var R, E, P;
412
+ const { start: f, end: D, type: k } = V;
413
+ if (o.backupList = V.options, k === "numRange")
414
+ Ze(o, V, l);
415
+ else if (k === "dateRange") {
416
+ const { dateRangeFormat: _ } = o;
417
+ if (!o.startDate && f) {
418
+ const O = c(f, _);
419
419
  o.startDate = o.endDate < O ? null : O;
420
420
  }
421
- if (!o.endDate && E) {
422
- const O = c(E, R);
421
+ if (!o.endDate && D) {
422
+ const O = c(D, _);
423
423
  o.endDate = O < o.startDate ? null : O;
424
424
  }
425
- } else if (h === "datetimeRange") {
426
- const { datetimeRangeFormat: R } = o;
427
- if (!o.startDateTime && T) {
428
- const O = c(T, R);
425
+ } else if (k === "datetimeRange") {
426
+ const { datetimeRangeFormat: _ } = o;
427
+ if (!o.startDateTime && f) {
428
+ const O = c(f, _);
429
429
  o.startDateTime = o.endDateTime < O ? null : O;
430
430
  }
431
- if (!o.endDateTime && E) {
432
- const O = c(E, R);
431
+ if (!o.endDateTime && D) {
432
+ const O = c(D, _);
433
433
  o.endDateTime = O < o.startDateTime ? null : O;
434
434
  }
435
435
  } else
436
- o.backupList && h === "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;
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;
438
438
  }));
439
- h !== "checkbox" && ((w = o.backupList) != null && w.length) && ((P = o.backupList) == null || P.forEach((R) => {
440
- R.isFilter = !1, R.isChecked = J(o, R.label);
441
- })), o.currentOperators = null, !o.backupList && !["dateRange", "datetimeRange", "numRange", "custom"].includes(h) ? _(o, !1) : _(o);
439
+ k !== "checkbox" && ((E = o.backupList) != null && E.length) && ((P = o.backupList) == null || P.forEach((_) => {
440
+ _.isFilter = !1, _.isChecked = J(o, _.label);
441
+ })), o.currentOperators = null, !o.backupList && !["dateRange", "datetimeRange", "numRange", "custom"].includes(k) ? L(o, !1) : L(o);
442
442
  }, r = (V) => {
443
- var w;
444
- const { field: T, label: E } = V;
445
- o.propItem = { ...o.propItem, label: E }, t("first-level-select", T);
446
- const h = (w = d.$refs) == null ? void 0 : w.inputRef;
443
+ var E;
444
+ const { field: f, label: D } = V;
445
+ o.propItem = { ...o.propItem, label: D }, t("first-level-select", f);
446
+ const k = (E = m.$refs) == null ? void 0 : E.inputRef;
447
447
  o.prevItem = V, o.backupPrevItem = V;
448
- const { operators: $ } = V;
449
- $ != null && $.length ? (o.operatorValue = "", o.currentOperators = $, _(o)) : (o.operatorValue = ":", p(V)), o.inputValue = "", h.focus();
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();
450
450
  }, n = (V) => {
451
451
  o.operatorValue = V, p(o.prevItem);
452
- }, f = (V, T, E, h) => {
453
- const { replace: $, operators: w, mergeTag: P } = V, R = ge(V), { indexMap: O } = o, x = O.get(E), A = ae(e, V, T), ee = o.operatorValue && w ? { operator: o.operatorValue } : null;
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;
454
454
  let W = null;
455
455
  if (P) {
456
- const re = { label: h, ...A };
457
- if (x >= 0) {
458
- const Ve = `${o.innerModelValue[x].value} | ${h}`, ke = [...o.innerModelValue[x].options, re];
459
- W = le({ ...o.innerModelValue[x], value: Ve, options: ke });
456
+ const re = { label: k, ...A };
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 });
460
460
  } else
461
- W = le({ ...R, label: E, value: h, options: [re] });
461
+ W = le({ ..._, label: D, value: k, options: [re] });
462
462
  } else
463
- W = le({ ...R, label: E, value: h, ...A, ...ee });
464
- if (J(o, h, E)) {
465
- ye(o);
463
+ W = le({ ..._, label: D, value: k, ...A, ...ee });
464
+ if (J(o, k, D)) {
465
+ Ve(o);
466
466
  return;
467
467
  }
468
- _(o, !1);
469
- const q = ne(o.innerModelValue);
468
+ L(o, !1);
469
+ const Z = ne(o.innerModelValue);
470
470
  let X = [];
471
- if (($ || P) && x >= 0) {
471
+ if ((R || P) && B >= 0) {
472
472
  const re = [...o.innerModelValue];
473
- re.splice(x, 1), X = [...re, W];
473
+ re.splice(B, 1), X = [...re, W];
474
474
  } else
475
475
  X = [...o.innerModelValue, W];
476
- Q({ emit: t, state: o, newValue: X, oldValue: q });
477
- }, s = (V) => {
478
- var T;
479
- (T = o.propItem) != null && T.label ? u({ label: V }) : I();
480
- }, u = (V, T = !1) => {
481
- var w;
482
- _(o, !1), T && (o.prevItem = V, o.backupPrevItem = V);
483
- const { prevItem: E } = o, h = V.value || V.label, $ = (w = d.$refs) == null ? void 0 : w.inputRef;
484
- if (!J(o, h)) {
476
+ Q({ emit: t, state: o, nextTick: i, newValue: X, oldValue: Z });
477
+ }, u = (V) => {
478
+ var f;
479
+ (f = o.propItem) != null && f.label ? s({ label: V }) : T();
480
+ }, s = (V, f = !1) => {
481
+ var E;
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;
484
+ if (!J(o, k)) {
485
485
  const P = o.propItem.label || V.label;
486
- f(E, V, P, h);
486
+ d(D, V, P, k);
487
487
  }
488
- $.focus();
489
- }, a = (V, T) => {
488
+ R.focus();
489
+ }, a = (V, f) => {
490
490
  if (V.label) {
491
- if (!T.options)
491
+ if (t("second-level-enter", f), !f.options)
492
492
  return;
493
- if (!e.modelValue.find((h) => h.value === T.options[0].label)) {
494
- const h = T.label, $ = T.options && T.options[0].label;
495
- f(T, T.options[0], h, $);
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);
496
496
  return;
497
497
  }
498
498
  } else
499
499
  t("search", o.innerModelValue);
500
- }, m = (V, T, E) => {
501
- var $;
502
- const h = ($ = o.backupList) == null ? void 0 : $.find((w) => w.label === E);
503
- f(V, h, T.label, E);
504
- }, g = (V, T, E) => {
505
- var h, $;
506
- if (T.label) {
507
- const { regexp: w, replace: P, type: R, mergeTag: O } = E, x = R !== "checkbox" && P || R === "checkbox" && O ? [V] : V.split(e.splitInputValue);
508
- if (w)
509
- for (const A of x)
510
- w.test(A) && m(E, T, A);
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;
506
+ if (f.label) {
507
+ const { regexp: E, replace: P, type: _, mergeTag: O } = D, B = _ !== "checkbox" && P || _ === "checkbox" && O ? [V] : V.split(e.splitInputValue);
508
+ if (E)
509
+ for (const A of B)
510
+ E.test(A) && h(D, f, A);
511
511
  else
512
- for (const A of x)
513
- m(E, T, A);
512
+ for (const A of B)
513
+ h(D, f, A);
514
514
  } else {
515
- const { items: w, defaultField: P } = e, R = w.find((q) => {
516
- const { regexp: X } = q;
515
+ const { items: E, defaultField: P } = e, _ = E.find((Z) => {
516
+ const { regexp: X } = Z;
517
517
  return X && X.test(o.inputValue);
518
- }) || (P ? w.find((q) => q.field === P) : o.allTypeAttri), { replace: O, type: x, mergeTag: A } = R, ee = x !== "checkbox" && O || x === "checkbox" && A ? [V] : V.split(e.splitInputValue);
519
- (h = R == null ? void 0 : R.options) != null && h.length && (o.backupList = [...R.options], ($ = o.backupList) == null || $.forEach((q) => {
520
- const X = q.value || q.label;
521
- ee.includes(X) && (q.isChecked = !0);
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) => {
520
+ const X = Z.value || Z.label;
521
+ ee.includes(X) && (Z.isChecked = !0);
522
522
  }));
523
- const W = R.label;
524
- for (const q of ee)
525
- f(R, {}, W, q);
523
+ const W = _.label;
524
+ for (const Z of ee)
525
+ d(_, {}, W, Z);
526
526
  }
527
- }, I = () => {
528
- const { inputValue: V, propItem: T, prevItem: E } = o;
529
- if (v && v(), _(o, !1), !V)
530
- a(T, E);
527
+ }, T = () => {
528
+ const { inputValue: V, propItem: f, prevItem: D } = o;
529
+ if (v && v(), L(o, !1), !V)
530
+ a(f, D);
531
531
  else {
532
- const { maxlength: h } = e;
533
- if (h && h < V.length) {
534
- t("exceed", h);
532
+ const { maxlength: k } = e;
533
+ if (k && k < V.length) {
534
+ t("exceed", k);
535
535
  return;
536
536
  }
537
- g(V, T, E);
537
+ g(V, f, D);
538
538
  }
539
539
  };
540
- return { selectPropItem: r, selectRadioItem: u, selectInputValue: s, createTag: I, helpClick: () => {
540
+ return { selectPropItem: r, selectRadioItem: s, selectInputValue: u, createTag: T, helpClick: () => {
541
541
  t("help");
542
542
  }, setOperator: n };
543
543
  }
544
- const Ht = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Te = (e, t) => {
544
+ const qt = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Se = (e, t) => {
545
545
  const o = [];
546
546
  let l = 0, c;
547
547
  for (; (c = e.exec(t)) !== null; ) {
@@ -550,49 +550,49 @@ const Ht = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Te = (e, t) => {
550
550
  }
551
551
  return l < t.length && o.push(t.slice(l)), o;
552
552
  };
553
- function Kt({ props: e, state: t, emit: o, nextTick: l }) {
553
+ function Zt({ props: e, state: t, emit: o, nextTick: l }) {
554
554
  const c = async (r) => {
555
- t.potentialOptions = await e.potentialOptions.getMatchList(r), _(t, !0);
556
- }, b = At((r) => {
557
- var T, E, h, $;
558
- const { recordItems: n, propItem: f } = t, s = typeof r == "string" ? r : r && r.target && typeof r.target.value == "string" ? r.target.value : t.inputValue || "", u = (T = String(s)) == null ? void 0 : T.trim(), { maxlength: a } = e;
559
- if (a && a < u.length) {
555
+ t.potentialOptions = await e.potentialOptions.getMatchList(r), L(t, !0);
556
+ }, b = jt((r) => {
557
+ var f, D, k, R;
558
+ 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
+ if (a && a < s.length) {
560
560
  o("exceed", a);
561
561
  return;
562
562
  }
563
- if (u.length === 0) {
564
- _(t);
563
+ if (s.length === 0) {
564
+ L(t);
565
565
  return;
566
566
  }
567
- Object.keys(t.matchItems).forEach((w) => {
568
- t.matchItems[w].attr = [], t.matchItems[w].attrValue = [];
567
+ Object.keys(t.matchItems).forEach((E) => {
568
+ t.matchItems[E].attr = [], t.matchItems[E].attrValue = [];
569
569
  });
570
- const m = Ht(u), g = new RegExp(m, "i"), I = f.label || !m ? null : n.find((w) => w.type === "map" && g.test(w.label));
571
- if (I) {
572
- t.propItem = { ...t.propItem, label: I.label }, t.inputValue = "", t.prevItem = I, t.backupPrevItem = I, t.backupList = I.options || [];
570
+ const h = qt(s), g = new RegExp(h, "i"), T = d.label || !h ? null : n.find((E) => E.type === "map" && g.test(E.label));
571
+ if (T) {
572
+ t.propItem = { ...t.propItem, label: T.label }, t.inputValue = "", t.prevItem = T, t.backupPrevItem = T, t.backupList = T.options || [];
573
573
  return;
574
574
  }
575
- t.filterList = (E = t.backupList) == null ? void 0 : E.filter((w) => g.test(w.label) ? (delete w.isFilter, J(t, w.label) && t.checkboxGroup.push(`${t.prevItem.label}${w.label}`), !0) : (w.isFilter = !0, !1));
576
- const L = new RegExp(m, "ig"), V = u.toLowerCase();
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));
576
+ const $ = new RegExp(h, "ig"), V = s.toLowerCase();
577
577
  if (t.propItem.label) {
578
- (h = t.backupList) == null || h.forEach((w) => {
579
- w.hightlighStr = V;
580
- const P = w.label;
581
- g.test(P) ? (w.match = Te(L, P), w.isFilter = !1) : w.isFilter = !0;
582
- }), ($ = t.backupList) != null && $.length || u ? _(t) : _(t, !1);
578
+ (k = t.backupList) == null || k.forEach((E) => {
579
+ E.hightlighStr = V;
580
+ const P = E.label;
581
+ 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);
583
583
  return;
584
584
  }
585
- for (const w of n) {
586
- const { options: P = [], groupKey: R = "0", ...O } = w, x = O.label;
587
- if (g.test(x)) {
588
- const A = Te(L, x);
589
- t.matchItems[R].attr.push({ ...w, match: A, hightlighStr: V });
585
+ for (const E of n) {
586
+ const { options: P = [], groupKey: _ = "0", ...O } = E, B = O.label;
587
+ if (g.test(B)) {
588
+ const A = Se($, B);
589
+ t.matchItems[_].attr.push({ ...E, match: A, hightlighStr: V });
590
590
  }
591
591
  for (const A of P) {
592
- const ee = t.propItem.label ? x : `${x}:${A.label}`;
592
+ const ee = t.propItem.label ? B : `${B}:${A.label}`;
593
593
  if (g.test(ee)) {
594
- const W = Te(L, ee);
595
- t.matchItems[R].attrValue.push({
594
+ const W = Se($, ee);
595
+ t.matchItems[_].attrValue.push({
596
596
  ...A,
597
597
  ...O,
598
598
  options: P,
@@ -603,10 +603,10 @@ function Kt({ props: e, state: t, emit: o, nextTick: l }) {
603
603
  }
604
604
  }
605
605
  }
606
- m && e.potentialOptions && e.potentialOptions.getMatchList ? c(m) : _(t);
606
+ h && e.potentialOptions && e.potentialOptions.getMatchList ? c(h) : L(t);
607
607
  }, 500), v = () => {
608
608
  b.cancel && b.cancel();
609
- }, d = () => {
609
+ }, m = () => {
610
610
  var r;
611
611
  (r = t.backupList) == null || r.forEach((n) => n.isFilter && delete n.isFilter);
612
612
  };
@@ -614,71 +614,71 @@ function Kt({ props: e, state: t, emit: o, nextTick: l }) {
614
614
  handleInput: b,
615
615
  selectFirstMap: (r, n) => {
616
616
  var a;
617
- const { options: f } = r, { prevItem: s, propItem: u } = t;
618
- if (f)
619
- _(t, !1), t.propItem = { ...t.propItem, value: `${r.label}=` }, t.isShowTagKey = !1, t.inputValue = "", t.backupList = r.options || [], d(), (a = t.backupList) == null || a.forEach((m) => {
620
- const g = u.value + m.label;
621
- m.isChecked = J(t, g);
617
+ const { options: d } = r, { prevItem: u, propItem: s } = t;
618
+ if (d)
619
+ L(t, !1), t.propItem = { ...t.propItem, value: `${r.label}=` }, t.isShowTagKey = !1, t.inputValue = "", t.backupList = r.options || [], m(), (a = t.backupList) == null || a.forEach((h) => {
620
+ const g = s.value + h.label;
621
+ h.isChecked = J(t, g);
622
622
  });
623
623
  else {
624
624
  if (r.isChecked)
625
625
  return;
626
- _(t, !1), t.isShowTagKey = !0, d();
627
- const { field: m, type: g } = s, I = u.value + r.label, L = ae(e, s, r), T = [le({ type: g, field: m, label: u.label, value: I, ...L })];
628
- Q({ emit: o, state: t, nextTick: l, tagList: T });
626
+ L(t, !1), t.isShowTagKey = !0, m();
627
+ const { field: h, type: g } = u, T = s.value + r.label, $ = ae(e, u, r), f = [le({ type: g, field: h, label: s.label, value: T, ...$ })];
628
+ Q({ emit: o, state: t, nextTick: l, tagList: f });
629
629
  }
630
- n && _(t);
630
+ n && L(t);
631
631
  },
632
632
  cancelHandleInput: v
633
633
  };
634
634
  }
635
- function Gt({ props: e, state: t, emit: o, nextTick: l }) {
635
+ function Yt({ props: e, state: t, emit: o, nextTick: l }) {
636
636
  return {
637
637
  selectCheckbox: (i) => {
638
638
  var r, n;
639
- _(t, !1);
640
- const { checkboxGroup: b, prevItem: v, propItem: d } = t, p = ge(v);
639
+ L(t, !1);
640
+ const { checkboxGroup: b, prevItem: v, propItem: m } = t, p = ye(v);
641
641
  if (i) {
642
- const f = [], s = ne(t.innerModelValue), { mergeTag: u, operators: a, label: m } = v;
643
- if (u) {
642
+ const d = [], u = ne(t.innerModelValue), { mergeTag: s, operators: a, label: h } = v;
643
+ if (s) {
644
644
  let g = "";
645
- const I = [], { indexMap: L } = t, V = L.get(m);
646
- if (V !== void 0 && t.innerModelValue.splice(V, 1), (r = t.backupList) == null || r.forEach((T) => {
647
- const { label: E } = T, h = `${m}${E}`;
648
- if (b.includes(h)) {
649
- delete T.isFilter;
650
- const w = ae(e, v, T), P = { label: T.label, ...w };
651
- g += g ? ` | ${E}` : E, I.push(P);
645
+ const T = [], { indexMap: $ } = t, V = $.get(h);
646
+ if (V !== void 0 && t.innerModelValue.splice(V, 1), (r = t.backupList) == null || r.forEach((f) => {
647
+ const { label: D } = f, k = `${h}${D}`;
648
+ if (b.includes(k)) {
649
+ delete f.isFilter;
650
+ const E = ae(e, v, f), P = { label: f.label, ...E };
651
+ g += g ? ` | ${D}` : D, T.push(P);
652
652
  }
653
- }), I.length > 0) {
654
- const T = { ...p, value: g, options: I };
655
- f.push(T);
653
+ }), T.length > 0) {
654
+ const f = { ...p, value: g, options: T };
655
+ d.push(f);
656
656
  }
657
657
  } else {
658
- const { valueMap: g } = t, I = [];
659
- if ((n = t.backupList) == null || n.forEach((L) => {
660
- const { label: V } = L, T = `${m}${V}`, E = b.includes(T);
661
- if (E && !J(t, V)) {
662
- const h = ae(e, v, L), $ = t.operatorValue && a ? { operator: t.operatorValue } : null, w = le({ ...p, label: d.label, value: V, ...h, ...$ });
663
- f.push(w), L.isChecked = !0;
664
- } else if (!E && J(t, V)) {
665
- L.isChecked = !1;
666
- const h = g.get(T);
667
- I.push(h);
658
+ const { valueMap: g } = t, T = [];
659
+ 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
+ d.push(E), $.isChecked = !0;
664
+ } else if (!D && J(t, V)) {
665
+ $.isChecked = !1;
666
+ const k = g.get(f);
667
+ T.push(k);
668
668
  }
669
- }), I.length) {
670
- const L = t.innerModelValue.filter((V, T) => V && !I.includes(T));
671
- Q({ emit: o, state: t, nextTick: l, newValue: L, oldValue: s });
669
+ }), T.length) {
670
+ const $ = t.innerModelValue.filter((V, f) => V && !T.includes(f));
671
+ Q({ emit: o, state: t, nextTick: l, newValue: $, oldValue: u });
672
672
  return;
673
673
  }
674
674
  }
675
- Q({ emit: o, state: t, nextTick: l, tagList: f, oldValue: s });
675
+ Q({ emit: o, state: t, nextTick: l, tagList: d, oldValue: u });
676
676
  } else
677
- t.propItem = { ...d, label: "" }, t.inputValue = "";
677
+ t.propItem = { ...m, label: "" }, t.inputValue = "";
678
678
  }
679
679
  };
680
680
  }
681
- function qt({ props: e, state: t, emit: o, nextTick: l, vm: c }) {
681
+ function Qt({ props: e, state: t, emit: o, nextTick: l, vm: c }) {
682
682
  const i = c || t.instance;
683
683
  return {
684
684
  onConfirmDate: async (p, r = !1) => {
@@ -686,81 +686,81 @@ function qt({ props: e, state: t, emit: o, nextTick: l, vm: c }) {
686
686
  t.propItem = { label: "" };
687
687
  return;
688
688
  }
689
- const n = await De(i, t, e, r);
689
+ const n = await Ce(i, t, e, r);
690
690
  if (n) {
691
- _(t, !1);
692
- const f = e.modelValue.filter((s) => s.type !== n.type || s.field !== n.field);
693
- f.push(n), Q({ emit: o, state: t, nextTick: l, newValue: f });
691
+ L(t, !1);
692
+ const d = e.modelValue.filter((u) => u.type !== n.type || u.field !== n.field);
693
+ d.push(n), Q({ emit: o, state: t, nextTick: l, newValue: d });
694
694
  } else
695
- _(t);
695
+ L(t);
696
696
  },
697
- handleDateShow: () => _(t),
697
+ handleDateShow: () => L(t),
698
698
  pickerOptions: (p, r = "") => ({
699
699
  disabledDate(n) {
700
- const { maxTimeLength: f = 0, min: s, max: u } = t.prevItem, a = t[r], m = n.getTime();
701
- if (f > 0)
702
- if (s || u)
700
+ const { maxTimeLength: d = 0, min: u, max: s } = t.prevItem, a = t[r], h = n.getTime();
701
+ if (d > 0)
702
+ if (u || s)
703
703
  if (r && a) {
704
- const g = new Date(a).getTime(), I = !s && u ? g - f : Math.max(s.getTime(), g - f);
705
- return m < I || m > g;
704
+ const g = new Date(a).getTime(), T = !u && s ? g - d : Math.max(u.getTime(), g - d);
705
+ return h < T || h > g;
706
706
  } else if (!r && p) {
707
- const g = new Date(p).getTime(), I = s && !u ? g + f : Math.min(u.getTime(), g + f);
708
- return m < g || m > I;
707
+ const g = new Date(p).getTime(), T = u && !s ? g + d : Math.min(s.getTime(), g + d);
708
+ return h < g || h > T;
709
709
  } else
710
- return s && m < s.getTime() || u && m > u.getTime();
710
+ return u && h < u.getTime() || s && h > s.getTime();
711
711
  else if (r && a) {
712
- const g = new Date(a).getTime(), I = g - f;
713
- return m < I || m > g;
712
+ const g = new Date(a).getTime(), T = g - d;
713
+ return h < T || h > g;
714
714
  } else if (!r && p) {
715
- const g = new Date(p).getTime(), I = g + f;
716
- return m < g || m > I;
715
+ const g = new Date(p).getTime(), T = g + d;
716
+ return h < g || h > T;
717
717
  } else
718
718
  return !1;
719
- else if (s || u)
719
+ else if (u || s)
720
720
  if (r && a) {
721
721
  const g = new Date(a).getTime();
722
- return s && m < s.getTime() || m > g;
722
+ return u && h < u.getTime() || h > g;
723
723
  } else if (!r && p) {
724
724
  const g = new Date(p).getTime();
725
- return m < g || u && m > u.getTime();
725
+ return h < g || s && h > s.getTime();
726
726
  } else
727
- return m < s || m > u;
727
+ return h < u || h > s;
728
728
  else if (r && a) {
729
729
  const g = new Date(a).getTime();
730
- return m > g;
730
+ return h > g;
731
731
  } else if (!r && p) {
732
732
  const g = new Date(p).getTime();
733
- return m < g;
733
+ return h < g;
734
734
  } else
735
735
  return !1;
736
736
  }
737
737
  })
738
738
  };
739
739
  }
740
- function Zt({ props: e, state: t, t: o, emit: l, nextTick: c, vm: i }) {
740
+ function Wt({ props: e, state: t, t: o, emit: l, nextTick: c, vm: i }) {
741
741
  const b = i || t.instance, v = async (r) => {
742
742
  if (!r) {
743
743
  t.propItem = { ...t.propItem, label: "" };
744
744
  return;
745
745
  }
746
- const n = await Ke(b, t, e);
746
+ const n = await qe(b, t, e);
747
747
  if (n) {
748
- _(t, !1);
749
- const f = e.modelValue.filter((s) => s.type !== n.type || s.field !== n.field);
750
- f.push(n), Q({ emit: l, state: t, nextTick: c, newValue: f });
748
+ L(t, !1);
749
+ const d = e.modelValue.filter((u) => u.type !== n.type || u.field !== n.field);
750
+ d.push(n), Q({ emit: l, state: t, nextTick: c, newValue: d });
751
751
  } else
752
- _(t);
753
- }, d = (r, n, f) => {
754
- const { maxTimeLength: s = 0 } = r;
752
+ L(t);
753
+ }, m = (r, n, d) => {
754
+ const { maxTimeLength: u = 0 } = r;
755
755
  return {
756
756
  [n]: {
757
- validator: (u, a, m) => {
758
- s > 0 && !a ? m(new Error(o("tvp.tvpSearchbox.notBeNull"))) : !a && !t[f] ? m(new Error(o("tvp.tvpSearchbox.rangeDateTitle"))) : m();
757
+ validator: (s, a, h) => {
758
+ u > 0 && !a ? h(new Error(o("tvp.tvpSearchbox.notBeNull"))) : !a && !t[d] ? h(new Error(o("tvp.tvpSearchbox.rangeDateTitle"))) : h();
759
759
  }
760
760
  },
761
- [f]: {
762
- validator: (u, a, m) => {
763
- s > 0 && !a ? m(new Error(o("tvp.tvpSearchbox.notBeNull"))) : !a && !t[n] ? m(new Error(o("tvp.tvpSearchbox.rangeDateTitle"))) : m();
761
+ [d]: {
762
+ validator: (s, a, h) => {
763
+ u > 0 && !a ? h(new Error(o("tvp.tvpSearchbox.notBeNull"))) : !a && !t[n] ? h(new Error(o("tvp.tvpSearchbox.rangeDateTitle"))) : h();
764
764
  }
765
765
  }
766
766
  };
@@ -768,8 +768,8 @@ function Zt({ props: e, state: t, t: o, emit: l, nextTick: c, vm: i }) {
768
768
  return {
769
769
  initFormRule: () => {
770
770
  let r = {}, n = {};
771
- e.items.forEach((f) => {
772
- f.type === "dateRange" && (r = d(f, "startDate", "endDate")), f.type === "datetimeRange" && (n = d(f, "startDateTime", "endDateTime"));
771
+ e.items.forEach((d) => {
772
+ d.type === "dateRange" && (r = m(d, "startDate", "endDate")), d.type === "datetimeRange" && (n = m(d, "startDateTime", "endDateTime"));
773
773
  }), t.formRules = {
774
774
  ...r,
775
775
  ...n
@@ -782,99 +782,99 @@ function Zt({ props: e, state: t, t: o, emit: l, nextTick: c, vm: i }) {
782
782
  sizeChange: v
783
783
  };
784
784
  }
785
- function Yt({ props: e, state: t, t: o, nextTick: l, format: c, emit: i, vm: b }) {
786
- const v = (s) => {
787
- var E;
788
- const { operator: u, value: a, start: m, end: g } = s, { options: I, operators: L, type: V, mergeTag: T } = t.prevItem;
785
+ function Jt({ props: e, state: t, t: o, nextTick: l, format: c, emit: i, vm: b }) {
786
+ const v = (u) => {
787
+ var D;
788
+ const { operator: s, value: a, start: h, end: g } = u, { options: T, operators: $, type: V, mergeTag: f } = t.prevItem;
789
789
  if (V !== "custom") {
790
790
  if (V === "numRange")
791
- Ge(t, s, o);
791
+ Ze(t, u, o);
792
792
  else if (V === "dateRange") {
793
- const { dateRangeFormat: h } = t;
794
- t.startDate = c(m, h), t.endDate = c(g, h);
793
+ const { dateRangeFormat: k } = t;
794
+ t.startDate = c(h, k), t.endDate = c(g, k);
795
795
  } else if (V === "datetimeRange") {
796
- const { datetimeRangeFormat: h } = t;
797
- t.startDateTime = c(m, h), t.endDateTime = c(g, h);
796
+ const { datetimeRangeFormat: k } = t;
797
+ t.startDateTime = c(h, k), t.endDateTime = c(g, k);
798
798
  } else {
799
- if (T) {
800
- const h = ((E = s.options) == null ? void 0 : E.flatMap(($) => $.label)) || [];
801
- t.inputEditValue = h, t.currentEditSelectTags = h;
799
+ if (f) {
800
+ const k = ((D = u.options) == null ? void 0 : D.flatMap((R) => R.label)) || [];
801
+ t.inputEditValue = k, t.currentEditSelectTags = k;
802
802
  } else
803
803
  t.inputEditValue = Array.isArray(a) ? a.join(",") : a || "";
804
- t.currentEditValue = I;
804
+ t.currentEditValue = T;
805
805
  }
806
- t.operatorValue = u, t.currentOperators = L;
806
+ t.operatorValue = s, t.currentOperators = $;
807
807
  }
808
- }, d = async () => {
809
- var m, g;
810
- if (!((g = (m = t.instance) == null ? void 0 : m.$refs) != null && g.formRef))
808
+ }, m = async () => {
809
+ var h, g;
810
+ if (!((g = (h = t.instance) == null ? void 0 : h.$refs) != null && g.formRef))
811
811
  return;
812
- const { prevItem: s } = t;
813
- let u = [];
814
- if (s.type === "numRange" ? u = [t.curMinNumVar, t.curMaxNumVar] : s.type === "dateRange" ? u = ["startDate", "endDate"] : s.type === "datetimeRange" ? u = ["startDateTime", "endDateTime"] : ["custom", "map"].includes(s.type) || (u = ["inputEditValue"]), (u == null ? void 0 : u.length) === 0) {
812
+ const { prevItem: u } = t;
813
+ let s = [];
814
+ if (u.type === "numRange" ? s = [t.curMinNumVar, t.curMaxNumVar] : u.type === "dateRange" ? s = ["startDate", "endDate"] : u.type === "datetimeRange" ? s = ["startDateTime", "endDateTime"] : ["custom", "map"].includes(u.type) || (s = ["inputEditValue"]), (s == null ? void 0 : s.length) === 0) {
815
815
  t.hasFormError = !1;
816
816
  return;
817
817
  }
818
818
  let a = !1;
819
- await t.instance.$refs.formRef.validateField(u, (I) => {
820
- I && (a = !0);
819
+ await t.instance.$refs.formRef.validateField(s, (T) => {
820
+ T && (a = !0);
821
821
  }), t.hasFormError = a;
822
822
  };
823
823
  return {
824
- editTag: (s, u, a) => {
825
- if (!e.editable || s.type && s.type === "map")
824
+ editTag: (u, s, a) => {
825
+ if (!e.editable || u.type && u.type === "map")
826
826
  return;
827
- _(t, !1), t.popoverVisible = !1;
828
- const m = a.target.classList.contains("tiny-tag") ? a.target : a.srcElement.parentElement;
827
+ L(t, !1), t.popoverVisible = !1;
828
+ const h = a.target.classList.contains("tiny-tag") ? a.target : a.srcElement.parentElement;
829
829
  l(() => {
830
830
  const { popoverRef: g } = t.instance.$refs;
831
- g.state.referenceElm = m, g.state.popperElm && (g.state.popperElm.style.display = "none"), g.doDestroy(), t.popoverVisible = !0, d();
832
- }), t.prevItem = t.recordItems.find((g) => g.field === s.field), !t.prevItem && (t.prevItem = s), t.selectValue = s.label, t.currentModelValueIndex = u, i("tagClick", s), v(s);
831
+ g.state.referenceElm = h, g.state.popperElm && (g.state.popperElm.style.display = "none"), g.doDestroy(), t.popoverVisible = !0, m();
832
+ }), t.prevItem = t.recordItems.find((g) => g.field === u.field), !t.prevItem && (t.prevItem = u), t.selectValue = u.label, t.currentModelValueIndex = s, i("tagClick", u), v(u);
833
833
  },
834
- confirmEditTag: async (s) => {
835
- if (!s) {
834
+ confirmEditTag: async (u) => {
835
+ if (!u) {
836
836
  t.popoverVisible = !1;
837
837
  return;
838
838
  }
839
- const { prevItem: u, currentModelValueIndex: a } = t;
840
- let m = null;
841
- u.type === "numRange" ? m = await Ke(t.instance, t, e) : u.type === "dateRange" ? m = await De(t.instance, t, e, !1) : u.type === "datetimeRange" ? m = await De(t.instance, t, e, !0) : m = await Ut(t.instance, t, e), m ? (_(t, !1), t.popoverVisible = !1, Q({ emit: i, state: t, nextTick: l, index: a, newTag: m, isEdit: !0 })) : t.popoverVisible = !0, t.currentEditValue = [];
839
+ const { prevItem: s, currentModelValueIndex: a } = t;
840
+ let h = null;
841
+ s.type === "numRange" ? h = await qe(t.instance, t, e) : s.type === "dateRange" ? h = await Ce(t.instance, t, e, !1) : s.type === "datetimeRange" ? h = await Ce(t.instance, t, e, !0) : h = await Kt(t.instance, t, e), h ? (L(t, !1), t.popoverVisible = !1, Q({ emit: i, state: t, nextTick: l, index: a, newTag: h, isEdit: !0 })) : t.popoverVisible = !0, t.currentEditValue = [];
842
842
  },
843
- selectPropChange: (s, u) => {
844
- u || (t.prevItem = s, v(s), l(() => {
845
- d();
843
+ selectPropChange: (u, s) => {
844
+ s || (t.prevItem = u, v(u), l(() => {
845
+ m();
846
846
  }));
847
847
  },
848
- selectItemIsDisable: (s) => {
849
- var a, m, g, I;
850
- if (s.type && s.type === "map")
848
+ selectItemIsDisable: (u) => {
849
+ var a, h, g, T;
850
+ if (u.type && u.type === "map")
851
851
  return !0;
852
- if ((a = t.prevItem) != null && a.operators || s.operators)
853
- return ((m = t.prevItem.operators) == null ? void 0 : m.length) !== ((g = s.operators) == null ? void 0 : g.length);
854
- const u = ["radio", "checkbox"];
855
- return t.prevItem.type && u.includes(t.prevItem.type) ? s.type ? !u.includes(s.type) : !1 : ((I = t.prevItem) == null ? void 0 : I.type) !== s.type;
852
+ if ((a = t.prevItem) != null && a.operators || u.operators)
853
+ return ((h = t.prevItem.operators) == null ? void 0 : h.length) !== ((g = u.operators) == null ? void 0 : g.length);
854
+ const s = ["radio", "checkbox"];
855
+ return t.prevItem.type && s.includes(t.prevItem.type) ? u.type ? !s.includes(u.type) : !1 : ((T = t.prevItem) == null ? void 0 : T.type) !== u.type;
856
856
  },
857
- checkFormValidation: d
857
+ checkFormValidation: m
858
858
  };
859
859
  }
860
- function Qt({ state: e, emit: t, nextTick: o }) {
860
+ function Xt({ state: e, emit: t, nextTick: o }) {
861
861
  const l = (b) => {
862
- _(e, !1);
863
- const { prevItem: v, indexMap: d } = e, { replace: p, label: r } = v, n = [];
864
- if (p && d.has(r)) {
865
- const f = d.get(r), s = { ...v, ...b };
866
- Q({ emit: t, state: e, nextTick: o, newTag: s, index: f });
862
+ L(e, !1);
863
+ const { prevItem: v, indexMap: m } = e, { replace: p, label: r } = v, n = [];
864
+ if (p && m.has(r)) {
865
+ const d = m.get(r), u = { ...v, ...b };
866
+ Q({ emit: t, state: e, nextTick: o, newTag: u, index: d });
867
867
  return;
868
868
  } else
869
- !p && Array.isArray(b) ? b.forEach((f) => {
870
- J(e, f.value) || n.push({ ...v, ...f });
869
+ !p && Array.isArray(b) ? b.forEach((d) => {
870
+ J(e, d.value) || n.push({ ...v, ...d });
871
871
  }) : J(e, b.value) || n.push({ ...v, ...b });
872
872
  Q({ emit: t, state: e, nextTick: o, tagList: n });
873
873
  };
874
874
  return {
875
875
  handleConfirm: (b) => {
876
876
  if (!b) {
877
- ye(e), _(e, !1);
877
+ Ve(e), L(e, !1);
878
878
  return;
879
879
  }
880
880
  l(b);
@@ -888,23 +888,23 @@ function Qt({ state: e, emit: t, nextTick: o }) {
888
888
  }
889
889
  };
890
890
  }
891
- function Wt({ props: e, state: t }) {
891
+ function eo({ props: e, state: t }) {
892
892
  return {
893
893
  initItems: () => {
894
894
  t.groupItems = {}, t.recordItems.forEach((v) => {
895
895
  var p;
896
- const { groupKey: d = "0" } = v;
897
- if (t.groupItems[d] ? t.groupItems[d].push({ ...v }) : (t.groupItems[d] = [{ ...v }], t.matchItems[d] = { attr: [], attrValue: [] }), t.prevItem && v.field === t.prevItem.field && v !== t.prevItem) {
896
+ const { groupKey: m = "0" } = v;
897
+ if (t.groupItems[m] ? t.groupItems[m].push({ ...v }) : (t.groupItems[m] = [{ ...v }], t.matchItems[m] = { attr: [], attrValue: [] }), t.prevItem && v.field === t.prevItem.field && v !== t.prevItem) {
898
898
  const { options: r, type: n } = v;
899
- t.prevItem = v, r != null && r.length && (t.backupList = r), n === "checkbox" && (t.filterList = t.backupList, t.checkboxGroup = [], (p = t.backupList) == null || p.forEach((f) => {
900
- const { label: s } = f;
901
- J(t, s) && t.checkboxGroup.push(`${v.label}${s}`), f.isFilter = !1;
902
- })), _(t, v.field === t.prevItem.field && v !== t.prevItem);
899
+ t.prevItem = v, r != null && r.length && (t.backupList = r), n === "checkbox" && (t.filterList = t.backupList, t.checkboxGroup = [], (p = t.backupList) == null || p.forEach((d) => {
900
+ const { label: u } = d;
901
+ J(t, u) && t.checkboxGroup.push(`${v.label}${u}`), d.isFilter = !1;
902
+ })), L(t, v.field === t.prevItem.field && v !== t.prevItem);
903
903
  }
904
904
  });
905
905
  },
906
906
  watchOutsideClick: () => {
907
- e.editable && de(t, !1), t.isMouseDown = !1, _(t, !1);
907
+ e.editable && de(t, !1), t.isMouseDown = !1, L(t, !1);
908
908
  },
909
909
  watchMouseDown: () => {
910
910
  t.isMouseDown = !0;
@@ -914,12 +914,12 @@ function Wt({ props: e, state: t }) {
914
914
  },
915
915
  handleClick: (v) => {
916
916
  var r;
917
- const { backupPrevItem: d, prevItem: p } = t;
918
- v.stopPropagation(), e.editable && (t.popoverVisible = !1, t.currentEditValue = [], t.propItem.label && d && d !== p && (t.prevItem = d)), t.hasBackupList && (((r = t.backupList) == null ? void 0 : r.length) === 0 || !t.backupList) && !t.inputValue || e.items.length === 0 ? _(t, !1) : _(t);
917
+ const { backupPrevItem: m, prevItem: p } = t;
918
+ v.stopPropagation(), e.editable && (t.popoverVisible = !1, t.currentEditValue = [], t.propItem.label && m && m !== p && (t.prevItem = m)), t.hasBackupList && (((r = t.backupList) == null ? void 0 : r.length) === 0 || !t.backupList) && !t.inputValue || e.items.length === 0 ? L(t, !1) : L(t);
919
919
  }
920
920
  };
921
921
  }
922
- const qe = {
922
+ const Ye = {
923
923
  tvp: {
924
924
  tvpSearchbox: {
925
925
  defaultPlaceholder: "请选择属性筛选,或输入关键字",
@@ -960,7 +960,7 @@ const qe = {
960
960
  initUse: "搜索"
961
961
  }
962
962
  }
963
- }, Ze = {
963
+ }, Qe = {
964
964
  tvp: {
965
965
  tvpSearchbox: {
966
966
  defaultPlaceholder: "Select attribute filtering or enter keywords",
@@ -1002,52 +1002,62 @@ const qe = {
1002
1002
  }
1003
1003
  }
1004
1004
  }, ce = "zh-CN", ie = {
1005
- "zh-CN": qe,
1006
- "en-US": Ze
1005
+ "zh-CN": Ye,
1006
+ "en-US": Qe
1007
1007
  };
1008
- let U = null;
1009
- const Jt = (e) => {
1010
- U = e;
1011
- }, Le = () => {
1008
+ let j = null, Me = null;
1009
+ const to = (e) => {
1010
+ j = e;
1011
+ }, oo = (e) => {
1012
+ Me = e;
1013
+ }, Re = () => {
1012
1014
  var e, t, o, l, c;
1013
- if ((o = (t = (e = U == null ? void 0 : U.config) == null ? void 0 : e.globalProperties) == null ? void 0 : t.$i18n) != null && o.locale)
1014
- return U.config.globalProperties.$i18n.locale;
1015
- if ((l = U == null ? void 0 : U.$i18n) != null && l.locale)
1016
- return U.$i18n.locale;
1015
+ if ((o = (t = (e = j == null ? void 0 : j.config) == null ? void 0 : e.globalProperties) == null ? void 0 : t.$i18n) != null && o.locale)
1016
+ return j.config.globalProperties.$i18n.locale;
1017
+ if ((l = j == null ? void 0 : j.$i18n) != null && l.locale)
1018
+ return j.$i18n.locale;
1017
1019
  if (typeof navigator < "u") {
1018
1020
  const i = navigator.language || ((c = navigator.languages) == null ? void 0 : c[0]);
1019
1021
  if (i)
1020
1022
  return i.startsWith("zh") ? "zh-CN" : "en-US";
1021
1023
  }
1022
1024
  return ce;
1023
- }, Ce = (e) => ie[e] || ie[ce], Y = (e, t = {}) => {
1025
+ }, Ee = (e) => ie[e] || ie[ce], q = (e, t = {}) => {
1024
1026
  var b, v;
1025
1027
  if (!e)
1026
1028
  return "";
1027
- if ((v = (b = U == null ? void 0 : U.config) == null ? void 0 : b.globalProperties) != null && v.$t)
1029
+ if (typeof Me == "function")
1028
1030
  try {
1029
- const d = U.config.globalProperties.$t(e, t);
1030
- if (d && d !== e)
1031
- return d;
1032
- } catch (d) {
1033
- console.warn("[TinySearchBox] i18n translation failed:", d);
1031
+ const m = Me(e, t);
1032
+ if (m && m !== e)
1033
+ return m;
1034
+ } catch (m) {
1035
+ console.warn("[TinySearchBox] globalT translation failed:", m);
1034
1036
  }
1035
- if (U != null && U.$t)
1037
+ if ((v = (b = j == null ? void 0 : j.config) == null ? void 0 : b.globalProperties) != null && v.$t)
1036
1038
  try {
1037
- const d = U.$t(e, t);
1038
- if (d && d !== e)
1039
- return d;
1040
- } catch (d) {
1041
- console.warn("[TinySearchBox] i18n translation failed:", d);
1039
+ const m = j.config.globalProperties.$t(e, t);
1040
+ if (m && m !== e)
1041
+ return m;
1042
+ } catch (m) {
1043
+ console.warn("[TinySearchBox] i18n translation failed:", m);
1042
1044
  }
1043
- const o = Le(), l = Ce(o), c = e.split(".");
1045
+ if (j != null && j.$t)
1046
+ try {
1047
+ const m = j.$t(e, t);
1048
+ if (m && m !== e)
1049
+ return m;
1050
+ } catch (m) {
1051
+ console.warn("[TinySearchBox] i18n translation failed:", m);
1052
+ }
1053
+ const o = Re(), l = Ee(o), c = e.split(".");
1044
1054
  let i = l;
1045
- for (const d of c)
1046
- if (i && typeof i == "object" && d in i)
1047
- i = i[d];
1055
+ for (const m of c)
1056
+ if (i && typeof i == "object" && m in i)
1057
+ i = i[m];
1048
1058
  else {
1049
1059
  if (o !== ce) {
1050
- i = Ce(ce);
1060
+ i = Ee(ce);
1051
1061
  for (const r of c)
1052
1062
  if (i && typeof i == "object" && r in i)
1053
1063
  i = i[r];
@@ -1059,24 +1069,25 @@ const Jt = (e) => {
1059
1069
  i = e;
1060
1070
  break;
1061
1071
  }
1062
- return typeof i == "string" && Object.keys(t).length > 0 ? i.replace(/\{(\w+)\}/g, (d, p) => t[p] !== void 0 ? t[p] : d) : typeof i == "string" ? i : e;
1063
- }, Xt = (e, t = {}) => e.map((o) => Y(o, t)), eo = (e) => e in ie, to = () => Object.keys(ie), oo = (e, t) => {
1072
+ return typeof i == "string" && Object.keys(t).length > 0 ? i.replace(/\{(\w+)\}/g, (m, p) => t[p] !== void 0 ? t[p] : m) : typeof i == "string" ? i : e;
1073
+ }, no = (e, t = {}) => e.map((o) => q(o, t)), lo = (e) => e in ie, ao = () => Object.keys(ie), ro = (e, t) => {
1064
1074
  ie[e] = t;
1065
- }, no = (e) => {
1075
+ }, so = (e) => {
1066
1076
  e !== ce && delete ie[e];
1067
- }, lo = {
1068
- t: Y,
1069
- zhCN: qe,
1070
- enUS: Ze,
1071
- tArray: Xt,
1072
- setGlobalApp: Jt,
1073
- getCurrentLocale: Le,
1074
- getLocaleMessages: Ce,
1075
- isLocaleSupported: eo,
1076
- getSupportedLocales: to,
1077
- addLocale: oo,
1078
- removeLocale: no
1079
- }, ao = [
1077
+ }, io = {
1078
+ t: q,
1079
+ zhCN: Ye,
1080
+ enUS: Qe,
1081
+ tArray: no,
1082
+ setGlobalT: oo,
1083
+ setGlobalApp: to,
1084
+ getCurrentLocale: Re,
1085
+ getLocaleMessages: Ee,
1086
+ isLocaleSupported: lo,
1087
+ getSupportedLocales: ao,
1088
+ addLocale: ro,
1089
+ removeLocale: so
1090
+ }, po = [
1080
1091
  "t",
1081
1092
  "state",
1082
1093
  "isShowClose",
@@ -1103,10 +1114,10 @@ const Jt = (e) => {
1103
1114
  "handleEditConfirm",
1104
1115
  "showDropdown",
1105
1116
  "showPopover"
1106
- ], ro = ({ reactive: e, computed: t, api: o, i18n: l, watch: c, props: i, emit: b, vm: v }) => {
1107
- const d = e({
1117
+ ], be = (e, t) => e.emptyPlaceholder || t("tvp.tvpSearchbox.addPlaceholder"), uo = ({ reactive: e, computed: t, api: o, i18n: l, watch: c, props: i, emit: b, vm: v }) => {
1118
+ const m = e({
1108
1119
  innerModelValue: [...i.modelValue],
1109
- placeholder: i.emptyPlaceholder || Y("tvp.tvpSearchbox.addPlaceholder"),
1120
+ placeholder: i.modelValue.length > 0 ? q("tvp.tvpSearchbox.addPlaceholder") : be(i, q),
1110
1121
  emitter: b,
1111
1122
  recordItems: [],
1112
1123
  groupItems: {},
@@ -1133,7 +1144,7 @@ const Jt = (e) => {
1133
1144
  valueMap: /* @__PURE__ */ new Map(),
1134
1145
  popoverVisible: !1,
1135
1146
  selectValue: "",
1136
- allTypeAttri: { label: Y("tvp.tvpSearchbox.rulekeyword1"), field: "tvpKeyword", type: "radio" },
1147
+ allTypeAttri: { label: q("tvp.tvpSearchbox.rulekeyword1"), field: "tvpKeyword", type: "radio" },
1137
1148
  operatorValue: ":",
1138
1149
  inputEditValue: "",
1139
1150
  currentOperators: "",
@@ -1148,90 +1159,92 @@ const Jt = (e) => {
1148
1159
  visibleTimer: null,
1149
1160
  hasFormError: !1,
1150
1161
  // 表单校验错误状态
1151
- hasBackupList: t(() => d.propItem.label && [void 0, "radio", "checkbox", "map"].includes(d.prevItem.type)),
1152
- isIndeterminate: t(() => d.checkboxGroup.length > 0 && d.checkboxGroup.length !== d.filterList.length),
1162
+ hasBackupList: t(() => m.propItem.label && [void 0, "radio", "checkbox", "map"].includes(m.prevItem.type)),
1163
+ isIndeterminate: t(() => m.checkboxGroup.length > 0 && m.checkboxGroup.length !== m.filterList.length),
1153
1164
  checkAll: t({
1154
- get: () => d.checkboxGroup.length && d.checkboxGroup.length === d.filterList.length,
1165
+ get: () => m.checkboxGroup.length && m.checkboxGroup.length === m.filterList.length,
1155
1166
  set: (p) => {
1156
- p ? d.checkboxGroup = d.filterList.flatMap((r) => `${d.prevItem.label}${r.label}`) : d.checkboxGroup = [];
1167
+ p ? m.checkboxGroup = m.filterList.flatMap((r) => `${m.prevItem.label}${r.label}`) : m.checkboxGroup = [];
1157
1168
  }
1158
1169
  })
1159
1170
  });
1160
- return d;
1161
- }, so = (e, { getCurrentInstance: t, onMounted: o, onBeforeUnmount: l, computed: c, reactive: i, watch: b }, { emit: v, nextTick: d, refs: p, vm: r }) => {
1162
- const n = {}, f = e.emitter ? e.emitter.emit : v, s = ro({ reactive: i, computed: c, api: n, i18n: lo, watch: b, props: e, emit: f, vm: r });
1163
- return io({ api: n, state: s, t: Y, props: e, emit: f, nextTick: d, vm: r, computed: c }), po({ watch: b, state: s, props: e, api: n, nextTick: d, vm: r }), s.instance = r, o(() => {
1164
- typeof document < "u" && (document.addEventListener("click", n.watchOutsideClick), document.addEventListener("mousedown", n.watchMouseDown), document.addEventListener("mousemove", n.watchMouseMove));
1171
+ return m;
1172
+ }, co = (e, { getCurrentInstance: t, onMounted: o, onBeforeUnmount: l, computed: c, reactive: i, watch: b }, { emit: v, nextTick: m, refs: p, vm: r, slots: n }) => {
1173
+ const d = {}, u = e.emitter ? e.emitter.emit : v, s = uo({ reactive: i, computed: c, api: d, i18n: io, watch: b, props: e, emit: u, vm: r });
1174
+ return mo({ api: d, state: s, t: q, props: e, emit: u, nextTick: m, vm: r, computed: c }), fo({ watch: b, state: s, props: e, api: d, nextTick: m, vm: r }), s.instance = r, r && n && (r.slots = n), o(() => {
1175
+ typeof document < "u" && (document.addEventListener("click", d.watchOutsideClick), document.addEventListener("mousedown", d.watchMouseDown), document.addEventListener("mousemove", d.watchMouseMove));
1165
1176
  }), l(() => {
1166
- typeof document < "u" && (document.removeEventListener("click", n.watchOutsideClick), document.removeEventListener("mousedown", n.watchMouseDown), document.removeEventListener("mousemove", n.watchMouseMove), s.localeCheckInterval && (clearInterval(s.localeCheckInterval), s.localeCheckInterval = null));
1167
- }), n;
1168
- }, io = ({ api: e, state: t, t: o, props: l, emit: c, nextTick: i, vm: b, computed: v }) => {
1169
- const { deleteTag: d, clearTag: p, backspaceDeleteTag: r } = zt({ props: l, state: t, emit: c, nextTick: i }), { editTag: n, confirmEditTag: f, selectPropChange: s, selectItemIsDisable: u, checkFormValidation: a } = Yt({ props: l, state: t, t: o, nextTick: i, format: Se, emit: c, vm: b }), { handleInput: m, selectFirstMap: g, cancelHandleInput: I } = Kt({ props: l, state: t, emit: c, nextTick: i }), { selectPropItem: L, selectRadioItem: V, selectInputValue: T, createTag: E, helpClick: h, setOperator: $ } = jt({ props: l, emit: c, state: t, t: o, format: Se, nextTick: i, vm: b, cancelHandleInput: I }), { selectCheckbox: w } = Gt({ 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: x, initFormRule: A } = Zt({ props: l, state: t, t: o, emit: c, nextTick: i, vm: b }), { handleConfirm: ee, handleEditConfirm: W } = Qt({ state: t, emit: c, nextTick: i }), { initItems: q, watchOutsideClick: X, watchMouseDown: re, watchMouseMove: Ve, handleClick: ke } = Wt({ props: l, state: t }), Ye = v(() => l.modelValue.length || t.propItem.label || t.inputValue), Qe = () => ({
1170
- selectInputValue: T,
1171
- selectPropItem: L,
1177
+ 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
+ }), d;
1179
+ }, 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 = () => ({
1181
+ selectInputValue: f,
1182
+ selectPropItem: $,
1172
1183
  selectRadioItem: V,
1173
- setOperator: $,
1174
- selectCheckbox: w,
1175
- sizeChange: x,
1184
+ setOperator: R,
1185
+ selectCheckbox: E,
1186
+ sizeChange: B,
1176
1187
  onConfirmDate: P,
1177
1188
  selectFirstMap: g,
1178
- handleDateShow: R
1179
- }), Ie = (pe) => {
1189
+ handleDateShow: _
1190
+ }), we = (pe) => {
1180
1191
  t.placeholder = pe;
1181
- };
1182
- l.modelValue.length > 0, Ie(o("tvp.tvpSearchbox.addPlaceholder")), Object.assign(e, {
1192
+ }, Xe = () => be(l, o);
1193
+ l.modelValue.length > 0 ? we(o("tvp.tvpSearchbox.addPlaceholder")) : we(Xe()), Object.assign(e, {
1183
1194
  t: o,
1184
1195
  state: t,
1185
- isShowClose: Ye,
1186
- deleteTag: d,
1196
+ isShowClose: We,
1197
+ deleteTag: m,
1187
1198
  editTag: n,
1188
1199
  backspaceDeleteTag: r,
1189
- createTag: E,
1200
+ createTag: D,
1190
1201
  clearTag: p,
1191
- helpClick: h,
1192
- handleInput: m,
1193
- handleClick: ke,
1194
- handleEvents: (pe, We, Je) => {
1195
- const Re = Qe();
1196
- typeof Re[pe] == "function" ? Re[pe](We, Je) : console.warn(`[TinySearchBox] Unknown event: ${pe}`);
1202
+ helpClick: k,
1203
+ handleInput: h,
1204
+ handleClick: Ie,
1205
+ handleEvents: (pe, et, tt) => {
1206
+ const Pe = Je();
1207
+ typeof Pe[pe] == "function" ? Pe[pe](et, tt) : console.warn(`[TinySearchBox] Unknown event: ${pe}`);
1197
1208
  },
1198
1209
  pickerOptions: O,
1199
- resetInput: ye,
1200
- selectItemIsDisable: u,
1201
- selectPropChange: s,
1202
- confirmEditTag: f,
1210
+ resetInput: Ve,
1211
+ selectItemIsDisable: s,
1212
+ selectPropChange: u,
1213
+ confirmEditTag: d,
1203
1214
  handleConfirm: ee,
1204
1215
  handleEditConfirm: W,
1205
- showDropdown: _,
1216
+ showDropdown: L,
1206
1217
  showPopover: de,
1207
1218
  checkFormValidation: a,
1208
- setPlaceholder: Ie,
1209
- initItems: q,
1219
+ setPlaceholder: we,
1220
+ initItems: Z,
1210
1221
  initFormRule: A,
1211
1222
  watchOutsideClick: X,
1212
1223
  watchMouseDown: re,
1213
- watchMouseMove: Ve
1224
+ watchMouseMove: ke
1214
1225
  });
1215
- }, po = ({ watch: e, state: t, props: o, api: l, nextTick: c, vm: i }) => {
1226
+ }, fo = ({ watch: e, state: t, props: o, api: l, nextTick: c, vm: i }) => {
1216
1227
  var r;
1217
1228
  const b = () => {
1218
1229
  var n;
1219
1230
  if (t.propItem.label) {
1220
- const { placeholder: f, type: s } = t.prevItem;
1221
- f ? l.setPlaceholder(f) : s === "map" ? l.setPlaceholder(Y("tvp.tvpSearchbox.tagPlaceholder")) : (n = t.backupList) != null && n.length ? l.setPlaceholder(Y("tvp.tvpSearchbox.dynamicPlaceholder", { newValue: t.propItem.label })) : l.setPlaceholder(Y("tvp.tvpSearchbox.addPlaceholder"));
1222
- } else
1223
- l.setPlaceholder(Y("tvp.tvpSearchbox.addPlaceholder"));
1231
+ const { placeholder: d, type: u } = t.prevItem;
1232
+ d ? l.setPlaceholder(d) : u === "map" ? l.setPlaceholder(q("tvp.tvpSearchbox.tagPlaceholder")) : (n = t.backupList) != null && n.length ? l.setPlaceholder(q("tvp.tvpSearchbox.dynamicPlaceholder", { newValue: t.propItem.label })) : l.setPlaceholder(q("tvp.tvpSearchbox.addPlaceholder"));
1233
+ } else {
1234
+ const d = o.modelValue.length > 0 ? q("tvp.tvpSearchbox.addPlaceholder") : be(o, q);
1235
+ l.setPlaceholder(d);
1236
+ }
1224
1237
  }, v = () => {
1225
- var n, f, s;
1226
- return (n = i == null ? void 0 : i.$i18n) != null && n.locale ? i.$i18n.locale : (s = (f = i == null ? void 0 : i.proxy) == null ? void 0 : f.$i18n) != null && s.locale ? i.proxy.$i18n.locale : Le();
1238
+ var n, d, u;
1239
+ return (n = i == null ? void 0 : i.$i18n) != null && n.locale ? i.$i18n.locale : (u = (d = i == null ? void 0 : i.proxy) == null ? void 0 : d.$i18n) != null && u.locale ? i.proxy.$i18n.locale : Re();
1227
1240
  };
1228
- let d = v();
1241
+ let m = v();
1229
1242
  if (i != null && i.$i18n)
1230
1243
  try {
1231
1244
  i.$watch(
1232
1245
  () => i.$i18n.locale,
1233
1246
  (n) => {
1234
- n !== d && (d = n, b());
1247
+ n !== m && (m = n, b());
1235
1248
  },
1236
1249
  { immediate: !1 }
1237
1250
  );
@@ -1243,7 +1256,7 @@ const Jt = (e) => {
1243
1256
  e(
1244
1257
  () => i.proxy.$i18n.locale,
1245
1258
  (n) => {
1246
- n !== d && (d = n, b());
1259
+ n !== m && (m = n, b());
1247
1260
  },
1248
1261
  { immediate: !1 }
1249
1262
  );
@@ -1252,7 +1265,7 @@ const Jt = (e) => {
1252
1265
  }
1253
1266
  const p = () => {
1254
1267
  const n = v();
1255
- n !== d && (d = n, b());
1268
+ n !== m && (m = n, b());
1256
1269
  };
1257
1270
  typeof window < "u" && (t.localeCheckInterval = setInterval(p, 200)), e(
1258
1271
  () => o.modelValue,
@@ -1262,11 +1275,11 @@ const Jt = (e) => {
1262
1275
  ), e(
1263
1276
  () => o.items,
1264
1277
  (n) => {
1265
- const f = t.visible, s = t.prevItem && t.prevItem.field;
1278
+ const d = t.visible, u = t.prevItem && t.prevItem.field;
1266
1279
  t.recordItems = ne(n), l.initItems(), l.initFormRule(), c(() => {
1267
- if (l.initItems(), l.initFormRule(), f && t.propItem.label) {
1268
- const u = t.recordItems.find((a) => a.field === s) || t.prevItem;
1269
- t.prevItem = u || {}, t.backupList = u && u.options ? [...u.options] : [], t.filterList = t.backupList ? [...t.backupList] : [], _(t);
1280
+ if (l.initItems(), l.initFormRule(), d && t.propItem.label) {
1281
+ const s = t.recordItems.find((a) => a.field === u) || t.prevItem;
1282
+ t.prevItem = s || {}, t.backupList = s && s.options ? [...s.options] : [], t.filterList = t.backupList ? [...t.backupList] : [], L(t);
1270
1283
  }
1271
1284
  });
1272
1285
  },
@@ -1316,21 +1329,21 @@ const Jt = (e) => {
1316
1329
  () => o.modelValue,
1317
1330
  (n) => {
1318
1331
  if (n) {
1319
- if (t.indexMap.clear(), t.valueMap.clear(), n.forEach((f, s) => {
1332
+ if (t.indexMap.clear(), t.valueMap.clear(), n.forEach((d, u) => {
1320
1333
  var a;
1321
- const u = `${f.label}${f.value}`;
1322
- t.indexMap.set(f.label, s), t.valueMap.set(u, s), ((a = f.options) == null ? void 0 : a.length) > 0 && f.options.forEach((m) => {
1323
- const g = `${f.label}${m.label}`;
1324
- t.valueMap.set(g, s);
1334
+ const s = `${d.label}${d.value}`;
1335
+ t.indexMap.set(d.label, u), t.valueMap.set(s, u), ((a = d.options) == null ? void 0 : a.length) > 0 && d.options.forEach((h) => {
1336
+ const g = `${d.label}${h.label}`;
1337
+ t.valueMap.set(g, u);
1325
1338
  });
1326
- }), de(t, !1), n.length === 0 && l.setPlaceholder(Y("tvp.tvpSearchbox.addPlaceholder")), o.editable && !t.inputEditValue.length && n[0]) {
1327
- const f = n[0];
1328
- if ((t.recordItems.find((u) => u.field === f.field) || f).mergeTag && f.options) {
1329
- const u = f.options.flatMap((a) => a.label) || [];
1330
- t.inputEditValue = u, t.currentEditSelectTags = u;
1339
+ }), de(t, !1), n.length === 0 && l.setPlaceholder(be(o, q)), o.editable && !t.inputEditValue.length && n[0]) {
1340
+ const d = n[0];
1341
+ if ((t.recordItems.find((s) => s.field === d.field) || d).mergeTag && d.options) {
1342
+ const s = d.options.flatMap((a) => a.label) || [];
1343
+ t.inputEditValue = s, t.currentEditSelectTags = s;
1331
1344
  } else {
1332
- const u = f.value;
1333
- t.inputEditValue = Array.isArray(u) ? u.join(",") : u || "";
1345
+ const s = d.value;
1346
+ t.inputEditValue = Array.isArray(s) ? s.join(",") : s || "";
1334
1347
  }
1335
1348
  }
1336
1349
  t.innerModelValue = [...n];
@@ -1341,14 +1354,14 @@ const Jt = (e) => {
1341
1354
  immediate: !0
1342
1355
  }
1343
1356
  );
1344
- }, _e = (e, t) => {
1357
+ }, Ne = (e, t) => {
1345
1358
  const o = e.__vccOpts || e;
1346
1359
  for (const [l, c] of t)
1347
1360
  o[l] = c;
1348
1361
  return o;
1349
- }, uo = (e, t, { emit: o }) => {
1350
- const l = e.handleEvents || e.events || ((v, d, p) => {
1351
- o("events", v, d, p);
1362
+ }, ho = (e, t, { emit: o }) => {
1363
+ const l = e.handleEvents || e.events || ((v, m, p) => {
1364
+ o("events", v, m, p);
1352
1365
  });
1353
1366
  return {
1354
1367
  selectInputValue: (v) => {
@@ -1357,18 +1370,18 @@ const Jt = (e) => {
1357
1370
  selectPropItem: (v) => {
1358
1371
  l("selectPropItem", v);
1359
1372
  },
1360
- selectRadioItem: (v, d) => {
1361
- l("selectRadioItem", v, d);
1373
+ selectRadioItem: (v, m) => {
1374
+ l("selectRadioItem", v, m);
1362
1375
  },
1363
- t: Y
1376
+ t: q
1364
1377
  };
1365
- }, co = ["selectInputValue", "selectPropItem", "selectRadioItem", "t"], mo = be({
1366
- name: Me + "SearchBoxFirstLevelPanel",
1378
+ }, bo = ["selectInputValue", "selectPropItem", "selectRadioItem", "t"], vo = ve({
1379
+ name: $e + "SearchBoxFirstLevelPanel",
1367
1380
  components: {
1368
- TinyDropdownItem: Be
1381
+ TinyDropdownItem: ze
1369
1382
  },
1370
1383
  props: {
1371
- ...ve,
1384
+ ...ge,
1372
1385
  state: {
1373
1386
  type: Object,
1374
1387
  default: () => ({})
@@ -1388,94 +1401,94 @@ const Jt = (e) => {
1388
1401
  },
1389
1402
  emits: ["events"],
1390
1403
  setup(e, t) {
1391
- return Ee({ props: e, context: t, renderless: uo, api: co });
1404
+ return Le({ props: e, context: t, renderless: ho, api: bo });
1392
1405
  }
1393
- }), fo = { tiny_mode: "pc" }, ho = { key: 0 }, bo = { class: "tvp-search-box__filter-type" }, vo = {
1406
+ }), go = { tiny_mode: "pc" }, yo = { key: 0 }, Vo = { class: "tvp-search-box__filter-type" }, ko = {
1394
1407
  key: 0,
1395
1408
  class: "tvp-search-box__text-highlight"
1396
- }, go = { key: 1 }, yo = { class: "tvp-search-box__filter-type" }, Vo = {
1409
+ }, Io = { key: 1 }, wo = { class: "tvp-search-box__filter-type" }, To = {
1397
1410
  key: 0,
1398
1411
  class: "tvp-search-box__text-highlight"
1399
- }, ko = { key: 1 }, Io = { class: "tvp-search-box__filter-type" }, wo = {
1412
+ }, So = { key: 1 }, Do = { class: "tvp-search-box__filter-type" }, Co = {
1400
1413
  id: "potential-loading",
1401
1414
  class: "tvp-search-box__potential-box"
1402
- }, To = { key: 0 }, So = { class: "tvp-search-box__text-highlight" }, Do = { class: "tvp-search-box__first-panel" }, Co = {
1415
+ }, Mo = { key: 0 }, Eo = { class: "tvp-search-box__text-highlight" }, $o = { class: "tvp-search-box__first-panel" }, Lo = {
1403
1416
  key: 0,
1404
1417
  class: "tvp-search-box__filter-type"
1405
- }, Mo = ["title"];
1406
- function Eo(e, t, o, l, c, i) {
1407
- var v, d;
1418
+ }, _o = ["title"];
1419
+ function Ro(e, t, o, l, c, i) {
1420
+ var v, m;
1408
1421
  const b = N("tiny-dropdown-item");
1409
- return y(), S("div", fo, [
1410
- j(D(b, {
1422
+ return y(), w("div", go, [
1423
+ H(C(b, {
1411
1424
  class: "tvp-search-box__filter-item tvp-search-box__dropdown-item tvp-search-box__dropdown-item-init",
1412
1425
  "item-data": { label: e.state.inputValue },
1413
1426
  onItemClick: t[0] || (t[0] = () => e.selectInputValue(e.state.inputValue))
1414
1427
  }, {
1415
- default: C(() => [
1416
- M("span", null, k(e.t("tvp.tvpSearchbox.initUse")) + """ + k(e.state.inputValue) + """, 1)
1428
+ default: M(() => [
1429
+ S("span", null, I(e.t("tvp.tvpSearchbox.initUse")) + """ + I(e.state.inputValue) + """, 1)
1417
1430
  ]),
1418
1431
  _: 1
1419
1432
  }, 8, ["item-data"]), [
1420
1433
  [G, e.state.inputValue.trim()]
1421
1434
  ]),
1422
- j(M("div", null, [
1423
- (y(!0), S(B, null, z(e.state.matchItems, (p, r) => (y(), S("div", { key: r }, [
1424
- p.attr.length ? (y(), S("div", ho, [
1425
- M("span", bo, k(r === "0" ? e.t("tvp.tvpSearchbox.attributeType") : r), 1),
1426
- (y(!0), S(B, null, z(p.attr, (n, f) => (y(), F(b, {
1427
- key: n.label + f,
1435
+ H(S("div", null, [
1436
+ (y(!0), w(x, null, U(e.state.matchItems, (p, r) => (y(), w("div", { key: r }, [
1437
+ p.attr.length ? (y(), w("div", yo, [
1438
+ S("span", Vo, I(r === "0" ? e.t("tvp.tvpSearchbox.attributeType") : r), 1),
1439
+ (y(!0), w(x, null, U(p.attr, (n, d) => (y(), F(b, {
1440
+ key: n.label + d,
1428
1441
  class: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
1429
1442
  "item-data": n,
1430
1443
  onItemClick: () => e.selectPropItem(n)
1431
1444
  }, {
1432
- default: C(() => [
1433
- M("span", null, [
1434
- (y(!0), S(B, null, z(n.match, (s) => (y(), S("span", { key: s }, [
1435
- s.toLowerCase() === n.hightlighStr ? (y(), S("span", vo, k(s), 1)) : (y(), S("span", go, k(s), 1))
1445
+ default: M(() => [
1446
+ S("span", null, [
1447
+ (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))
1436
1449
  ]))), 128))
1437
1450
  ])
1438
1451
  ]),
1439
1452
  _: 2
1440
1453
  }, 1032, ["item-data", "onItemClick"]))), 128))
1441
- ])) : H("", !0),
1442
- p.attrValue.length ? (y(), S(B, { key: 1 }, [
1443
- M("span", yo, k(e.t("tvp.tvpSearchbox.propertyValue", [r === "0" ? e.t("tvp.tvpSearchbox.attributeType") : r])), 1),
1444
- (y(!0), S(B, null, z(p.attrValue, (n, f) => (y(), F(b, {
1445
- key: n.label + f,
1454
+ ])) : z("", !0),
1455
+ 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),
1457
+ (y(!0), w(x, null, U(p.attrValue, (n, d) => (y(), F(b, {
1458
+ key: n.label + d,
1446
1459
  disabled: n.isChecked,
1447
1460
  class: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
1448
1461
  "item-data": n,
1449
1462
  onItemClick: () => e.selectRadioItem(n, !0)
1450
1463
  }, {
1451
- default: C(() => [
1452
- M("span", null, [
1453
- (y(!0), S(B, null, z(n.match, (s) => (y(), S("span", { key: s }, [
1454
- s.toLowerCase() === n.hightlighStr ? (y(), S("span", Vo, k(s), 1)) : (y(), S("span", ko, k(s), 1))
1464
+ default: M(() => [
1465
+ S("span", null, [
1466
+ (y(!0), w(x, null, U(n.match, (u) => (y(), w("span", { key: u }, [
1467
+ u.toLowerCase() === n.hightlighStr ? (y(), w("span", To, I(u), 1)) : (y(), w("span", So, I(u), 1))
1455
1468
  ]))), 128))
1456
1469
  ])
1457
1470
  ]),
1458
1471
  _: 2
1459
1472
  }, 1032, ["disabled", "item-data", "onItemClick"]))), 128))
1460
- ], 64)) : H("", !0)
1473
+ ], 64)) : z("", !0)
1461
1474
  ]))), 128)),
1462
- j(M("div", null, [
1463
- M("span", Io, k(e.t("tvp.tvpSearchbox.matched")), 1),
1464
- M("div", wo, [
1465
- e.state.potentialOptions ? (y(), S("div", To, [
1466
- (y(!0), S(B, null, z(e.state.potentialOptions, (p, r) => (y(), F(b, {
1475
+ H(S("div", null, [
1476
+ S("span", Do, I(e.t("tvp.tvpSearchbox.matched")), 1),
1477
+ S("div", Co, [
1478
+ e.state.potentialOptions ? (y(), w("div", Mo, [
1479
+ (y(!0), w(x, null, U(e.state.potentialOptions, (p, r) => (y(), F(b, {
1467
1480
  key: p.label + r,
1468
1481
  class: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
1469
1482
  "item-data": p,
1470
1483
  onItemClick: () => e.selectRadioItem(p, !0)
1471
1484
  }, {
1472
- default: C(() => [
1473
- K(k(p.label) + ": ", 1),
1474
- M("span", So, k(p.value), 1)
1485
+ default: M(() => [
1486
+ K(I(p.label) + ": ", 1),
1487
+ S("span", Eo, I(p.value), 1)
1475
1488
  ]),
1476
1489
  _: 2
1477
1490
  }, 1032, ["item-data", "onItemClick"]))), 128))
1478
- ])) : H("", !0)
1491
+ ])) : z("", !0)
1479
1492
  ])
1480
1493
  ], 512), [
1481
1494
  [G, e.state.potentialOptions]
@@ -1483,65 +1496,65 @@ function Eo(e, t, o, l, c, i) {
1483
1496
  ], 512), [
1484
1497
  [G, !e.state.propItem.label && ((v = e.state.inputValue) == null ? void 0 : v.trim())]
1485
1498
  ]),
1486
- j(M("div", Do, [
1487
- (y(!0), S(B, null, z(e.state.groupItems, (p, r) => (y(), S("div", { key: r }, [
1488
- p.length ? (y(), S("span", Co, k(r === "0" ? e.t("tvp.tvpSearchbox.attributeType") : r), 1)) : H("", !0),
1489
- (y(!0), S(B, null, z(p, (n, f) => (y(), F(b, {
1490
- key: (n.field || n.label) + f,
1499
+ H(S("div", $o, [
1500
+ (y(!0), w(x, null, U(e.state.groupItems, (p, r) => (y(), w("div", { key: r }, [
1501
+ p.length ? (y(), w("span", Lo, I(r === "0" ? e.t("tvp.tvpSearchbox.attributeType") : r), 1)) : z("", !0),
1502
+ (y(!0), w(x, null, U(p, (n, d) => (y(), F(b, {
1503
+ key: (n.field || n.label) + d,
1491
1504
  class: "tvp-search-box__dropdown-item",
1492
1505
  "item-data": n,
1493
1506
  onItemClick: () => e.selectPropItem(n)
1494
1507
  }, {
1495
- default: C(() => [
1496
- M("span", {
1508
+ default: M(() => [
1509
+ S("span", {
1497
1510
  title: n.label
1498
- }, k(n.label), 9, Mo)
1511
+ }, I(n.label), 9, _o)
1499
1512
  ]),
1500
1513
  _: 2
1501
1514
  }, 1032, ["item-data", "onItemClick"]))), 128))
1502
1515
  ]))), 128))
1503
1516
  ], 512), [
1504
- [G, e.state.visible && !e.state.propItem.label && !((d = e.state.inputValue) != null && d.trim())]
1517
+ [G, e.state.visible && !e.state.propItem.label && !((m = e.state.inputValue) != null && m.trim())]
1505
1518
  ])
1506
1519
  ]);
1507
1520
  }
1508
- const $o = /* @__PURE__ */ _e(mo, [["render", Eo]]), Lo = (e, t, { emit: o }) => {
1509
- const { computed: l } = t, c = e.handleEvents || e.events || ((u, a, m) => {
1510
- o("events", u, a, m);
1511
- }), i = (u) => {
1512
- c("setOperator", u);
1513
- }, b = (u) => {
1514
- c("selectRadioItem", u);
1515
- }, v = (u) => {
1516
- c("selectCheckbox", u);
1517
- }, d = (u) => {
1518
- c("sizeChange", u);
1519
- }, p = (u, a) => {
1520
- c("onConfirmDate", u, a);
1521
- }, r = (u, a) => {
1522
- c("selectFirstMap", u, a);
1523
- }, n = (u) => {
1524
- c("handleDateShow", u);
1525
- }, f = l(() => {
1526
- var u;
1527
- return e.state.hasBackupList && ((u = e.state.backupList) == null ? void 0 : u.length) === 0;
1528
- }), s = l(() => {
1529
- var u;
1530
- return (u = e.state.backupList) == null ? void 0 : u.find((a) => !a.isFilter);
1521
+ const No = /* @__PURE__ */ Ne(vo, [["render", Ro]]), Po = (e, t, { emit: o }) => {
1522
+ const { computed: l } = t, c = e.handleEvents || e.events || ((s, a, h) => {
1523
+ o("events", s, a, h);
1524
+ }), i = (s) => {
1525
+ c("setOperator", s);
1526
+ }, b = (s) => {
1527
+ c("selectRadioItem", s);
1528
+ }, v = (s) => {
1529
+ c("selectCheckbox", s);
1530
+ }, m = (s) => {
1531
+ c("sizeChange", s);
1532
+ }, p = (s, a) => {
1533
+ c("onConfirmDate", s, a);
1534
+ }, r = (s, a) => {
1535
+ c("selectFirstMap", s, a);
1536
+ }, n = (s) => {
1537
+ c("handleDateShow", s);
1538
+ }, d = l(() => {
1539
+ var s;
1540
+ return e.state.hasBackupList && ((s = e.state.backupList) == null ? void 0 : s.length) === 0;
1541
+ }), u = l(() => {
1542
+ var s;
1543
+ return (s = e.state.backupList) == null ? void 0 : s.find((a) => !a.isFilter);
1531
1544
  });
1532
1545
  return {
1533
1546
  setOperator: i,
1534
1547
  selectRadioItem: b,
1535
1548
  selectCheckbox: v,
1536
- sizeChange: d,
1549
+ sizeChange: m,
1537
1550
  onConfirmDate: p,
1538
1551
  selectFirstMap: r,
1539
1552
  handleDateShow: n,
1540
- isLoading: f,
1541
- showCheckBoxList: s,
1542
- t: Y
1553
+ isLoading: d,
1554
+ showCheckBoxList: u,
1555
+ t: q
1543
1556
  };
1544
- }, _o = [
1557
+ }, Oo = [
1545
1558
  "setOperator",
1546
1559
  "selectRadioItem",
1547
1560
  "selectCheckbox",
@@ -1552,23 +1565,23 @@ const $o = /* @__PURE__ */ _e(mo, [["render", Eo]]), Lo = (e, t, { emit: o }) =>
1552
1565
  "isLoading",
1553
1566
  "showCheckBoxList",
1554
1567
  "t"
1555
- ], Ro = be({
1556
- name: Me + "SearchBoxSecondLevelPanel",
1568
+ ], Fo = ve({
1569
+ name: $e + "SearchBoxSecondLevelPanel",
1557
1570
  emits: ["events"],
1558
1571
  components: {
1559
- TinyFormItem: xe,
1560
- TinyDropdownItem: Be,
1561
- TinyCheckbox: dt,
1562
- TinyCheckboxGroup: mt,
1563
- TinyDatePicker: Fe,
1564
- TinyInput: Pe,
1565
- TinyButton: Oe
1572
+ TinyFormItem: Ae,
1573
+ TinyDropdownItem: ze,
1574
+ TinyCheckbox: ht,
1575
+ TinyCheckboxGroup: bt,
1576
+ TinyDatePicker: xe,
1577
+ TinyInput: Fe,
1578
+ TinyButton: Be
1566
1579
  },
1567
1580
  directives: {
1568
- loading: ft.directive
1581
+ loading: vt.directive
1569
1582
  },
1570
1583
  props: {
1571
- ...ve,
1584
+ ...ge,
1572
1585
  state: {
1573
1586
  type: Object,
1574
1587
  default: () => ({})
@@ -1588,97 +1601,97 @@ const $o = /* @__PURE__ */ _e(mo, [["render", Eo]]), Lo = (e, t, { emit: o }) =>
1588
1601
  }
1589
1602
  },
1590
1603
  setup(e, t) {
1591
- return Ee({ props: e, context: t, renderless: Lo, api: _o });
1604
+ return Le({ props: e, context: t, renderless: Po, api: Oo });
1592
1605
  }
1593
- }), No = { tiny_mode: "pc" }, Po = { key: 0 }, Oo = { class: "tvp-search-box__filter-type" }, Fo = ["title"], xo = {
1606
+ }), Bo = { tiny_mode: "pc" }, xo = { key: 0 }, Ao = { class: "tvp-search-box__filter-type" }, zo = ["title"], Uo = {
1594
1607
  key: 0,
1595
1608
  class: "tvp-search-box__text-highlight"
1596
- }, Bo = { key: 1 }, Ao = ["title"], zo = { key: 0 }, Uo = { class: "tvp-search-box__checkbox-wrap" }, jo = { class: "tvp-search-box__checkbox-btn" }, Ho = {
1609
+ }, jo = { key: 1 }, Ho = ["title"], Ko = { key: 0 }, Go = { class: "tvp-search-box__checkbox-wrap" }, qo = { class: "tvp-search-box__checkbox-btn" }, Zo = {
1597
1610
  key: 3,
1598
1611
  class: "tvp-search-box__panel-box"
1599
- }, Ko = { class: "tvp-search-box__number" }, Go = { class: "tvp-search-box__dropdown-title" }, qo = { class: "tvp-search-box__dropdown-start" }, Zo = { class: "tvp-search-box__dropdown-end" }, Yo = { class: "tvp-search-box__bottom-btn" }, Qo = {
1612
+ }, Yo = { class: "tvp-search-box__number" }, Qo = { class: "tvp-search-box__dropdown-title" }, Wo = { class: "tvp-search-box__dropdown-start" }, Jo = { class: "tvp-search-box__dropdown-end" }, Xo = { class: "tvp-search-box__bottom-btn" }, en = {
1600
1613
  key: 4,
1601
1614
  class: "tvp-search-box__panel-box"
1602
- }, Wo = { class: "tvp-search-box__date-wrap" }, Jo = { class: "tvp-search-box__dropdown-title" }, Xo = { class: "tvp-search-box__dropdown-start" }, en = { class: "tvp-search-box__dropdown-end" }, tn = { class: "tvp-search-box__bottom-btn" }, on = {
1615
+ }, tn = { class: "tvp-search-box__date-wrap" }, on = { class: "tvp-search-box__dropdown-title" }, nn = { class: "tvp-search-box__dropdown-start" }, ln = { class: "tvp-search-box__dropdown-end" }, an = { class: "tvp-search-box__bottom-btn" }, rn = {
1603
1616
  key: 5,
1604
1617
  class: "tvp-search-box__panel-box"
1605
- }, nn = { class: "tvp-search-box__date-wrap" }, ln = { class: "tvp-search-box__dropdown-title" }, an = { class: "tvp-search-box__dropdown-start" }, rn = { class: "tvp-search-box__dropdown-end" }, sn = { class: "tvp-search-box__bottom-btn" }, pn = { key: 6 }, un = {
1618
+ }, sn = { class: "tvp-search-box__date-wrap" }, pn = { class: "tvp-search-box__dropdown-title" }, un = { class: "tvp-search-box__dropdown-start" }, cn = { class: "tvp-search-box__dropdown-end" }, dn = { class: "tvp-search-box__bottom-btn" }, mn = { key: 6 }, fn = {
1606
1619
  key: 0,
1607
1620
  class: "tvp-search-box__filter-type"
1608
- }, cn = {
1621
+ }, hn = {
1609
1622
  key: 1,
1610
1623
  class: "tvp-search-box__filter-type"
1611
- }, dn = ["title"];
1612
- function mn(e, t, o, l, c, i) {
1613
- var u;
1614
- const b = N("tiny-dropdown-item"), v = N("tiny-checkbox"), d = N("tiny-checkbox-group"), p = N("tiny-button"), r = N("tiny-input"), n = N("tiny-form-item"), f = N("tiny-date-picker"), s = ut("loading");
1615
- return y(), S("div", No, [
1616
- (u = e.state.currentOperators) != null && u.length ? (y(), S("div", Po, [
1617
- M("span", Oo, k(e.t("tvp.tvpSearchbox.operator")), 1),
1618
- (y(!0), S(B, null, z(e.state.currentOperators, (a, m) => j((y(), F(b, {
1619
- key: a + m,
1624
+ }, bn = ["title"];
1625
+ function vn(e, t, o, l, c, i) {
1626
+ var s;
1627
+ 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
+ return y(), w("div", Bo, [
1629
+ (s = e.state.currentOperators) != null && s.length ? (y(), w("div", xo, [
1630
+ S("span", Ao, I(e.t("tvp.tvpSearchbox.operator")), 1),
1631
+ (y(!0), w(x, null, U(e.state.currentOperators, (a, h) => H((y(), F(b, {
1632
+ key: a + h,
1620
1633
  class: "tvp-search-box__dropdown-item",
1621
1634
  "item-data": { label: a },
1622
1635
  onItemClick: () => e.setOperator(a)
1623
1636
  }, {
1624
- default: C(() => [
1625
- K(k(a), 1)
1637
+ default: M(() => [
1638
+ K(I(a), 1)
1626
1639
  ]),
1627
1640
  _: 2
1628
1641
  }, 1032, ["item-data", "onItemClick"])), [
1629
1642
  [G, a.includes(e.state.inputValue)]
1630
1643
  ])), 128))
1631
- ])) : !e.state.prevItem.type || e.state.prevItem.type === "radio" ? j((y(), S("div", {
1644
+ ])) : !e.state.prevItem.type || e.state.prevItem.type === "radio" ? H((y(), w("div", {
1632
1645
  key: 1,
1633
1646
  class: he(["tvp-search-box__radio-wrap", e.isLoading && "tvp-search-box__loading-box"])
1634
1647
  }, [
1635
- (y(!0), S(B, null, z(e.state.backupList, (a, m) => j((y(), F(b, {
1636
- key: m + (a.field || a.label),
1648
+ (y(!0), w(x, null, U(e.state.backupList, (a, h) => H((y(), F(b, {
1649
+ key: h + (a.field || a.label),
1637
1650
  disabled: a.isChecked,
1638
1651
  class: "tvp-search-box__dropdown-item",
1639
1652
  "item-data": a,
1640
1653
  onItemClick: () => e.selectRadioItem(a)
1641
1654
  }, {
1642
- default: C(() => [
1643
- a.match ? (y(), S("span", {
1655
+ default: M(() => [
1656
+ a.match ? (y(), w("span", {
1644
1657
  key: 0,
1645
1658
  title: a.label
1646
1659
  }, [
1647
- (y(!0), S(B, null, z(a.match, (g) => (y(), S("span", { key: g }, [
1648
- g.toLowerCase() === a.hightlighStr ? (y(), S("span", xo, k(g), 1)) : (y(), S("span", Bo, k(g), 1))
1660
+ (y(!0), w(x, null, U(a.match, (g) => (y(), w("span", { key: g }, [
1661
+ g.toLowerCase() === a.hightlighStr ? (y(), w("span", Uo, I(g), 1)) : (y(), w("span", jo, I(g), 1))
1649
1662
  ]))), 128))
1650
- ], 8, Fo)) : (y(), S("span", {
1663
+ ], 8, zo)) : (y(), w("span", {
1651
1664
  key: 1,
1652
1665
  title: a.label
1653
- }, k(a.label), 9, Ao))
1666
+ }, I(a.label), 9, Ho))
1654
1667
  ]),
1655
1668
  _: 2
1656
1669
  }, 1032, ["disabled", "item-data", "onItemClick"])), [
1657
1670
  [G, !a.isFilter || !e.state.inputValue]
1658
1671
  ])), 128))
1659
1672
  ], 2)), [
1660
- [s, e.isLoading]
1661
- ]) : e.state.prevItem.type === "checkbox" ? j((y(), S("div", {
1673
+ [u, e.isLoading]
1674
+ ]) : e.state.prevItem.type === "checkbox" ? H((y(), w("div", {
1662
1675
  key: 2,
1663
1676
  class: he(e.isLoading && "tvp-search-box__loading-box")
1664
1677
  }, [
1665
- e.showCheckBoxList ? (y(), S("div", zo, [
1666
- M("div", Uo, [
1667
- D(d, {
1678
+ e.showCheckBoxList ? (y(), w("div", Ko, [
1679
+ S("div", Go, [
1680
+ C(m, {
1668
1681
  modelValue: e.state.checkAll,
1669
1682
  "onUpdate:modelValue": t[1] || (t[1] = (a) => e.state.checkAll = a),
1670
1683
  class: "tvp-search-box__checkbox"
1671
1684
  }, {
1672
- default: C(() => [
1673
- D(b, { class: "tvp-search-box__dropdown-item tvp-search-box__checkbox-item" }, {
1674
- default: C(() => [
1675
- D(v, {
1685
+ default: M(() => [
1686
+ C(b, { class: "tvp-search-box__dropdown-item tvp-search-box__checkbox-item" }, {
1687
+ default: M(() => [
1688
+ C(v, {
1676
1689
  modelValue: e.state.checkAll,
1677
1690
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.state.checkAll = a),
1678
1691
  indeterminate: e.state.isIndeterminate
1679
1692
  }, {
1680
- default: C(() => [
1681
- K(k(e.t("tvp.tvpSearchbox.selectAll")), 1)
1693
+ default: M(() => [
1694
+ K(I(e.t("tvp.tvpSearchbox.selectAll")), 1)
1682
1695
  ]),
1683
1696
  _: 1
1684
1697
  }, 8, ["modelValue", "indeterminate"])
@@ -1688,24 +1701,24 @@ function mn(e, t, o, l, c, i) {
1688
1701
  ]),
1689
1702
  _: 1
1690
1703
  }, 8, ["modelValue"]),
1691
- D(d, {
1704
+ C(m, {
1692
1705
  modelValue: e.state.checkboxGroup,
1693
1706
  "onUpdate:modelValue": t[2] || (t[2] = (a) => e.state.checkboxGroup = a),
1694
1707
  class: "tvp-search-box__checkbox"
1695
1708
  }, {
1696
- default: C(() => [
1697
- (y(!0), S(B, null, z(e.state.backupList, (a, m) => j((y(), F(b, {
1698
- key: (a.field || a.label) + m,
1709
+ default: M(() => [
1710
+ (y(!0), w(x, null, U(e.state.backupList, (a, h) => H((y(), F(b, {
1711
+ key: (a.field || a.label) + h,
1699
1712
  class: "tvp-search-box__dropdown-item tvp-search-box__checkbox-item"
1700
1713
  }, {
1701
- default: C(() => [
1702
- D(v, {
1714
+ default: M(() => [
1715
+ C(v, {
1703
1716
  label: e.state.prevItem.label + a.label,
1704
1717
  title: a.label,
1705
1718
  class: "tvp-search-box__checkbox-item-label"
1706
1719
  }, {
1707
- default: C(() => [
1708
- K(k(a.label), 1)
1720
+ default: M(() => [
1721
+ K(I(a.label), 1)
1709
1722
  ]),
1710
1723
  _: 2
1711
1724
  }, 1032, ["label", "title"])
@@ -1718,40 +1731,40 @@ function mn(e, t, o, l, c, i) {
1718
1731
  _: 1
1719
1732
  }, 8, ["modelValue"])
1720
1733
  ]),
1721
- M("div", jo, [
1722
- D(p, {
1734
+ S("div", qo, [
1735
+ C(p, {
1723
1736
  size: "mini",
1724
1737
  onClick: t[3] || (t[3] = (a) => e.selectCheckbox(!1))
1725
1738
  }, {
1726
- default: C(() => [
1727
- K(k(e.t("tvp.tvpSearchbox.cancel")), 1)
1739
+ default: M(() => [
1740
+ K(I(e.t("tvp.tvpSearchbox.cancel")), 1)
1728
1741
  ]),
1729
1742
  _: 1
1730
1743
  }),
1731
- D(p, {
1744
+ C(p, {
1732
1745
  size: "mini",
1733
1746
  onClick: t[4] || (t[4] = (a) => e.selectCheckbox(!0))
1734
1747
  }, {
1735
- default: C(() => [
1736
- K(k(e.t("tvp.tvpSearchbox.confirm")), 1)
1748
+ default: M(() => [
1749
+ K(I(e.t("tvp.tvpSearchbox.confirm")), 1)
1737
1750
  ]),
1738
1751
  _: 1
1739
1752
  })
1740
1753
  ])
1741
- ])) : H("", !0)
1754
+ ])) : z("", !0)
1742
1755
  ], 2)), [
1743
- [s, e.isLoading]
1744
- ]) : e.state.prevItem.type === "numRange" ? (y(), S("div", Ho, [
1745
- M("div", Ko, [
1746
- M("div", Go, k(e.t("tvp.tvpSearchbox.rangeNumberTitle")), 1),
1747
- M("div", qo, k(e.t("tvp.tvpSearchbox.minValueText")) + "(" + k(e.state.prevItem.unit) + ") ", 1),
1748
- D(n, {
1756
+ [u, e.isLoading]
1757
+ ]) : 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
+ C(n, {
1749
1762
  prop: e.state.curMinNumVar,
1750
1763
  class: "tvp-search-box__number-item",
1751
1764
  "show-message": e.state.numberShowMessage
1752
1765
  }, {
1753
- default: C(() => [
1754
- D(r, {
1766
+ default: M(() => [
1767
+ C(r, {
1755
1768
  modelValue: e.state[e.state.curMinNumVar],
1756
1769
  "onUpdate:modelValue": t[5] || (t[5] = (a) => e.state[e.state.curMinNumVar] = a),
1757
1770
  type: "number",
@@ -1760,13 +1773,13 @@ function mn(e, t, o, l, c, i) {
1760
1773
  ]),
1761
1774
  _: 1
1762
1775
  }, 8, ["prop", "show-message"]),
1763
- M("div", Zo, k(e.t("tvp.tvpSearchbox.maxValueText")) + "(" + k(e.state.prevItem.unit) + ") ", 1),
1764
- D(n, {
1776
+ S("div", Jo, I(e.t("tvp.tvpSearchbox.maxValueText")) + "(" + I(e.state.prevItem.unit) + ") ", 1),
1777
+ C(n, {
1765
1778
  prop: e.state.curMaxNumVar,
1766
1779
  class: "tvp-search-box__number-item"
1767
1780
  }, {
1768
- default: C(() => [
1769
- D(r, {
1781
+ default: M(() => [
1782
+ C(r, {
1770
1783
  modelValue: e.state[e.state.curMaxNumVar],
1771
1784
  "onUpdate:modelValue": t[6] || (t[6] = (a) => e.state[e.state.curMaxNumVar] = a),
1772
1785
  type: "number",
@@ -1776,39 +1789,39 @@ function mn(e, t, o, l, c, i) {
1776
1789
  _: 1
1777
1790
  }, 8, ["prop"])
1778
1791
  ]),
1779
- M("div", Yo, [
1780
- D(p, {
1792
+ S("div", Xo, [
1793
+ C(p, {
1781
1794
  size: "mini",
1782
1795
  onClick: t[7] || (t[7] = (a) => e.sizeChange(!1))
1783
1796
  }, {
1784
- default: C(() => [
1785
- K(k(e.t("tvp.tvpSearchbox.cancel")), 1)
1797
+ default: M(() => [
1798
+ K(I(e.t("tvp.tvpSearchbox.cancel")), 1)
1786
1799
  ]),
1787
1800
  _: 1
1788
1801
  }),
1789
- D(p, {
1802
+ C(p, {
1790
1803
  size: "mini",
1791
- onClick: t[8] || (t[8] = Z((a) => e.sizeChange(!0), ["stop"]))
1804
+ onClick: t[8] || (t[8] = Y((a) => e.sizeChange(!0), ["stop"]))
1792
1805
  }, {
1793
- default: C(() => [
1794
- K(k(e.t("tvp.tvpSearchbox.confirm")), 1)
1806
+ default: M(() => [
1807
+ K(I(e.t("tvp.tvpSearchbox.confirm")), 1)
1795
1808
  ]),
1796
1809
  _: 1
1797
1810
  })
1798
1811
  ])
1799
- ])) : e.state.prevItem.type === "dateRange" ? (y(), S("div", Qo, [
1800
- M("div", Wo, [
1801
- M("div", Jo, k(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
1812
+ ])) : 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", {
1802
1815
  value: (e.state.prevItem.maxTimeLength / 864e5).toFixed(1)
1803
1816
  }) : e.t("tvp.tvpSearchbox.rangeDateTitle")), 1),
1804
- M("div", Xo, k(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
1805
- D(n, {
1817
+ S("div", nn, I(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
1818
+ C(n, {
1806
1819
  prop: "startDate",
1807
1820
  "show-message": !!e.state.prevItem.maxTimeLength,
1808
1821
  class: "tvp-search-box__date-item"
1809
1822
  }, {
1810
- default: C(() => [
1811
- D(f, {
1823
+ default: M(() => [
1824
+ C(d, {
1812
1825
  modelValue: e.state.startDate,
1813
1826
  "onUpdate:modelValue": t[9] || (t[9] = (a) => e.state.startDate = a),
1814
1827
  format: e.state.prevItem.format || e.state.dateRangeFormat,
@@ -1820,13 +1833,13 @@ function mn(e, t, o, l, c, i) {
1820
1833
  ]),
1821
1834
  _: 1
1822
1835
  }, 8, ["show-message"]),
1823
- M("div", en, k(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
1824
- D(n, {
1836
+ S("div", ln, I(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
1837
+ C(n, {
1825
1838
  prop: "endDate",
1826
1839
  class: "tvp-search-box__date-item"
1827
1840
  }, {
1828
- default: C(() => [
1829
- D(f, {
1841
+ default: M(() => [
1842
+ C(d, {
1830
1843
  modelValue: e.state.endDate,
1831
1844
  "onUpdate:modelValue": t[10] || (t[10] = (a) => e.state.endDate = a),
1832
1845
  format: e.state.prevItem.format || e.state.dateRangeFormat,
@@ -1840,39 +1853,39 @@ function mn(e, t, o, l, c, i) {
1840
1853
  _: 1
1841
1854
  })
1842
1855
  ]),
1843
- M("div", tn, [
1844
- D(p, {
1856
+ S("div", an, [
1857
+ C(p, {
1845
1858
  size: "mini",
1846
1859
  onClick: t[11] || (t[11] = (a) => e.onConfirmDate(!1))
1847
1860
  }, {
1848
- default: C(() => [
1849
- K(k(e.t("tvp.tvpSearchbox.cancel")), 1)
1861
+ default: M(() => [
1862
+ K(I(e.t("tvp.tvpSearchbox.cancel")), 1)
1850
1863
  ]),
1851
1864
  _: 1
1852
1865
  }),
1853
- D(p, {
1866
+ C(p, {
1854
1867
  size: "mini",
1855
1868
  onClick: t[12] || (t[12] = (a) => e.onConfirmDate(!0))
1856
1869
  }, {
1857
- default: C(() => [
1858
- K(k(e.t("tvp.tvpSearchbox.confirm")), 1)
1870
+ default: M(() => [
1871
+ K(I(e.t("tvp.tvpSearchbox.confirm")), 1)
1859
1872
  ]),
1860
1873
  _: 1
1861
1874
  })
1862
1875
  ])
1863
- ])) : e.state.prevItem.type === "datetimeRange" ? (y(), S("div", on, [
1864
- M("div", nn, [
1865
- M("div", ln, k(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
1876
+ ])) : 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", {
1866
1879
  value: (e.state.prevItem.maxTimeLength / 864e5).toFixed(1)
1867
1880
  }) : e.t("tvp.tvpSearchbox.rangeDateTitle")), 1),
1868
- M("div", an, k(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
1869
- D(n, {
1881
+ S("div", un, I(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
1882
+ C(n, {
1870
1883
  prop: "startDateTime",
1871
1884
  "show-message": !!e.state.prevItem.maxTimeLength,
1872
1885
  class: "tvp-search-box__date-item"
1873
1886
  }, {
1874
- default: C(() => [
1875
- D(f, {
1887
+ default: M(() => [
1888
+ C(d, {
1876
1889
  modelValue: e.state.startDateTime,
1877
1890
  "onUpdate:modelValue": t[13] || (t[13] = (a) => e.state.startDateTime = a),
1878
1891
  type: "datetime",
@@ -1887,13 +1900,13 @@ function mn(e, t, o, l, c, i) {
1887
1900
  ]),
1888
1901
  _: 1
1889
1902
  }, 8, ["show-message"]),
1890
- M("div", rn, k(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
1891
- D(n, {
1903
+ S("div", cn, I(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
1904
+ C(n, {
1892
1905
  prop: "endDateTime",
1893
1906
  class: "tvp-search-box__date-item"
1894
1907
  }, {
1895
- default: C(() => [
1896
- D(f, {
1908
+ default: M(() => [
1909
+ C(d, {
1897
1910
  modelValue: e.state.endDateTime,
1898
1911
  "onUpdate:modelValue": t[14] || (t[14] = (a) => e.state.endDateTime = a),
1899
1912
  type: "datetime",
@@ -1909,57 +1922,57 @@ function mn(e, t, o, l, c, i) {
1909
1922
  _: 1
1910
1923
  })
1911
1924
  ]),
1912
- M("div", sn, [
1913
- D(p, {
1925
+ S("div", dn, [
1926
+ C(p, {
1914
1927
  size: "mini",
1915
1928
  onClick: t[15] || (t[15] = (a) => e.onConfirmDate(!1, !0))
1916
1929
  }, {
1917
- default: C(() => [
1918
- K(k(e.t("tvp.tvpSearchbox.cancel")), 1)
1930
+ default: M(() => [
1931
+ K(I(e.t("tvp.tvpSearchbox.cancel")), 1)
1919
1932
  ]),
1920
1933
  _: 1
1921
1934
  }),
1922
- D(p, {
1935
+ C(p, {
1923
1936
  size: "mini",
1924
1937
  onClick: t[16] || (t[16] = (a) => e.onConfirmDate(!0, !0))
1925
1938
  }, {
1926
- default: C(() => [
1927
- K(k(e.t("tvp.tvpSearchbox.confirm")), 1)
1939
+ default: M(() => [
1940
+ K(I(e.t("tvp.tvpSearchbox.confirm")), 1)
1928
1941
  ]),
1929
1942
  _: 1
1930
1943
  })
1931
1944
  ])
1932
- ])) : e.state.prevItem.type === "map" ? j((y(), S("div", pn, [
1933
- e.state.isShowTagKey ? (y(), S("span", un, k(e.t("tvp.tvpSearchbox.tagKey")), 1)) : (y(), S("span", cn, k(e.t("tvp.tvpSearchbox.tagValue")), 1)),
1934
- (y(!0), S(B, null, z(e.state.backupList, (a, m) => j((y(), F(b, {
1935
- key: a.label + a.value + m,
1945
+ ])) : e.state.prevItem.type === "map" ? H((y(), w("div", mn, [
1946
+ e.state.isShowTagKey ? (y(), w("span", fn, I(e.t("tvp.tvpSearchbox.tagKey")), 1)) : (y(), w("span", hn, I(e.t("tvp.tvpSearchbox.tagValue")), 1)),
1947
+ (y(!0), w(x, null, U(e.state.backupList, (a, h) => H((y(), F(b, {
1948
+ key: a.label + a.value + h,
1936
1949
  disabled: a.isChecked,
1937
1950
  class: "tvp-search-box__dropdown-item",
1938
1951
  "item-data": a,
1939
1952
  onItemClick: () => e.selectFirstMap(a, e.state.isShowTagKey)
1940
1953
  }, {
1941
- default: C(() => [
1942
- M("span", {
1954
+ default: M(() => [
1955
+ S("span", {
1943
1956
  title: a.label
1944
- }, k(a.label), 9, dn)
1957
+ }, I(a.label), 9, bn)
1945
1958
  ]),
1946
1959
  _: 2
1947
1960
  }, 1032, ["disabled", "item-data", "onItemClick"])), [
1948
1961
  [G, !a.isFilter]
1949
1962
  ])), 128))
1950
1963
  ])), [
1951
- [s, e.isLoading]
1952
- ]) : H("", !0)
1964
+ [u, e.isLoading]
1965
+ ]) : z("", !0)
1953
1966
  ]);
1954
1967
  }
1955
- const fn = /* @__PURE__ */ _e(Ro, [["render", mn]]);
1956
- const hn = be({
1968
+ const gn = /* @__PURE__ */ Ne(Fo, [["render", vn]]);
1969
+ const yn = ve({
1957
1970
  model: {
1958
1971
  prop: "modelValue",
1959
1972
  event: "update:modelValue"
1960
1973
  },
1961
1974
  props: {
1962
- ...ve,
1975
+ ...ge,
1963
1976
  tiny_mode: {
1964
1977
  type: String,
1965
1978
  default: "pc"
@@ -1984,6 +1997,10 @@ const hn = be({
1984
1997
  type: Boolean,
1985
1998
  default: !0
1986
1999
  },
2000
+ showPrefixIcon: {
2001
+ type: Boolean,
2002
+ default: !0
2003
+ },
1987
2004
  idMapKey: {
1988
2005
  type: String,
1989
2006
  default: "id"
@@ -2008,80 +2025,91 @@ const hn = be({
2008
2025
  type: String,
2009
2026
  default: ","
2010
2027
  },
2028
+ appendToBody: {
2029
+ type: Boolean,
2030
+ default: !0
2031
+ },
2011
2032
  // 尺寸
2012
2033
  size: {
2013
2034
  type: String,
2014
2035
  default: ""
2015
2036
  }
2016
2037
  },
2017
- emits: ["update:modelValue", "change", "search", "exceed", "first-level-select", "clear"],
2038
+ emits: ["update:modelValue", "change", "search", "exceed", "first-level-select", "second-level-enter", "clear"],
2018
2039
  components: {
2019
- TinyTag: Xe,
2020
- TinyInput: Pe,
2021
- TinyDropdown: et,
2022
- TinyDropdownMenu: tt,
2023
- TinyButton: Oe,
2024
- TinyTooltip: ot,
2025
- TinyDatePicker: Fe,
2026
- TinyForm: nt,
2027
- TinyFormItem: xe,
2028
- TinyPopover: lt,
2029
- TinySelect: at,
2030
- TinyOption: rt,
2031
- TinySearchBoxFirstLevelPanel: $o,
2032
- TinySearchBoxSecondLevelPanel: fn,
2040
+ TinyTag: ot,
2041
+ TinyInput: Fe,
2042
+ TinyDropdown: nt,
2043
+ TinyDropdownMenu: lt,
2044
+ TinyButton: Be,
2045
+ TinyTooltip: at,
2046
+ TinyDatePicker: xe,
2047
+ TinyForm: rt,
2048
+ TinyFormItem: Ae,
2049
+ TinyPopover: st,
2050
+ TinySelect: it,
2051
+ TinyOption: pt,
2052
+ TinySearchBoxFirstLevelPanel: No,
2053
+ TinySearchBoxSecondLevelPanel: gn,
2033
2054
  // 图标组件
2034
- TinyIconSearch: st(),
2035
- TinyIconClose: it(),
2036
- TinyIconHelpQuery: pt()
2055
+ TinyIconSearch: ut(),
2056
+ TinyIconClose: ct(),
2057
+ TinyIconHelpQuery: dt()
2037
2058
  },
2038
2059
  setup(e, t) {
2039
- return Ee({ props: e, context: t, renderless: so, api: ao });
2060
+ return Le({ props: e, context: t, renderless: co, api: po });
2040
2061
  }
2041
- }), bn = { class: "tvp-search-box__tag-value" }, vn = {
2042
- key: 0,
2062
+ }), Vn = { class: "tvp-search-box__tag-value" }, kn = {
2063
+ key: 1,
2043
2064
  class: "tvp-search-box__placeholder"
2044
- }, gn = { class: "tvp-search-box__input-wrapper" }, yn = { class: "tvp-search-box__prop" }, Vn = { class: "tvp-search-box__input-separator" }, kn = { class: "tvp-search-box__date-wrap" }, In = { class: "tvp-search-box__dropdown-start" }, wn = {
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 = {
2045
2066
  key: 0,
2046
2067
  class: "tvp-search-box__dropdown-end"
2047
- }, Tn = {
2068
+ }, Mn = {
2048
2069
  key: 2,
2049
2070
  class: "tvp-search-box__dropdown-end"
2050
- }, Sn = {
2071
+ }, En = {
2051
2072
  key: 4,
2052
2073
  class: "tvp-search-box__number"
2053
- }, Dn = { class: "tvp-search-box__dropdown-start" }, Cn = { class: "tvp-search-box__dropdown-end" }, Mn = {
2074
+ }, $n = { class: "tvp-search-box__dropdown-start" }, Ln = { class: "tvp-search-box__dropdown-end" }, _n = {
2054
2075
  key: 5,
2055
2076
  class: "tvp-search-box__date-wrap"
2056
- }, En = { class: "tvp-search-box__dropdown-title" }, $n = { class: "tvp-search-box__dropdown-start" }, Ln = { class: "tvp-search-box__dropdown-end" }, _n = {
2077
+ }, Rn = { class: "tvp-search-box__dropdown-title" }, Nn = { class: "tvp-search-box__dropdown-start" }, Pn = { class: "tvp-search-box__dropdown-end" }, On = {
2057
2078
  key: 6,
2058
2079
  class: "tvp-search-box__date-wrap"
2059
- }, Rn = { class: "tvp-search-box__dropdown-title" }, Nn = { class: "tvp-search-box__dropdown-start" }, Pn = { class: "tvp-search-box__dropdown-end" }, On = { class: "tvp-search-box__bottom-btn" }, Fn = {
2080
+ }, Fn = { class: "tvp-search-box__dropdown-title" }, Bn = { class: "tvp-search-box__dropdown-start" }, xn = { class: "tvp-search-box__dropdown-end" }, An = { class: "tvp-search-box__bottom-btn" }, zn = {
2060
2081
  key: 1,
2061
2082
  class: "tvp-search-box__panel-box"
2062
2083
  };
2063
- function xn(e, t, o, l, c, i) {
2064
- const b = N("tiny-icon-search"), v = N("tiny-tag"), d = N("tiny-icon-close"), p = N("tiny-icon-help-query"), r = N("tiny-tooltip"), n = N("tiny-input"), f = N("TinySearchBoxFirstLevelPanel"), s = N("TinySearchBoxSecondLevelPanel"), u = N("tiny-dropdown-menu"), a = N("tiny-dropdown"), m = N("tiny-option"), g = N("tiny-select"), I = N("tiny-form-item"), L = N("tiny-date-picker"), V = N("tiny-button"), T = N("tiny-popover"), E = N("tiny-form");
2065
- return y(), S("div", {
2066
- class: he(["tvp-search-box", e.size === "small" ? "tvp-search-box--small" : ""]),
2067
- onClick: t[21] || (t[21] = Z((h) => e.showPopover(e.state, !1), ["stop"]))
2084
+ function Un(e, t, o, l, c, i) {
2085
+ const b = N("tiny-icon-search"), v = N("tiny-tag"), m = N("tiny-icon-close"), p = N("tiny-icon-help-query"), r = N("tiny-tooltip"), n = N("tiny-input"), d = N("TinySearchBoxFirstLevelPanel"), u = N("TinySearchBoxSecondLevelPanel"), s = N("tiny-popover"), a = N("tiny-option"), h = N("tiny-select"), g = N("tiny-form-item"), T = N("tiny-date-picker"), $ = N("tiny-button"), V = N("tiny-form");
2086
+ return y(), w("div", {
2087
+ class: he([
2088
+ "tvp-search-box",
2089
+ e.size === "small" ? "tvp-search-box--small" : "",
2090
+ e.showPrefixIcon ? "" : "hide-prefix-icon"
2091
+ ]),
2092
+ onClick: t[21] || (t[21] = Y((f) => e.showPopover(e.state, !1), ["stop"]))
2068
2093
  }, [
2069
- D(b, { class: "tvp-search-box__prefix" }),
2070
- (y(!0), S(B, null, z(e.modelValue, (h, $) => (y(), F(v, {
2071
- key: h.field + $,
2094
+ e.showPrefixIcon ? (y(), F(b, {
2095
+ key: 0,
2096
+ class: "tvp-search-box__prefix"
2097
+ })) : z("", !0),
2098
+ (y(!0), w(x, null, U(e.modelValue, (f, D) => (y(), F(v, {
2099
+ key: f.field + D,
2072
2100
  closable: "",
2073
- class: he(["tvp-search-box__tag", e.editable && h.type !== "map" ? "tvp-search-box__tag-editor" : ""]),
2074
- title: `${h.label} ${h.operator || ":"} ${h.value}`,
2075
- onClose: (w) => e.deleteTag(h),
2076
- onClick: Z((w) => e.editTag(h, $, w), ["stop"])
2101
+ class: he(["tvp-search-box__tag", e.editable && f.type !== "map" ? "tvp-search-box__tag-editor" : ""]),
2102
+ title: `${f.label} ${f.operator || ":"} ${f.value}`,
2103
+ onClose: (k) => e.deleteTag(f),
2104
+ onClick: Y((k) => e.editTag(f, D, k), ["stop"])
2077
2105
  }, {
2078
- default: C(() => [
2079
- M("span", bn, k(h.label) + " " + k(h.operator || ":") + " " + k(h.value), 1)
2106
+ default: M(() => [
2107
+ S("span", Vn, I(f.label) + " " + I(f.operator || ":") + " " + I(f.value), 1)
2080
2108
  ]),
2081
2109
  _: 2
2082
2110
  }, 1032, ["class", "title", "onClose", "onClick"]))), 128)),
2083
- e.modelValue.length ? (y(), S("span", vn)) : H("", !0),
2084
- D(E, {
2111
+ e.modelValue.length ? (y(), w("span", kn)) : z("", !0),
2112
+ C(V, {
2085
2113
  ref: "formRef",
2086
2114
  model: e.state,
2087
2115
  rules: e.state.formRules,
@@ -2091,111 +2119,50 @@ function xn(e, t, o, l, c, i) {
2091
2119
  "message-type": "block",
2092
2120
  class: "tvp-search-box__form"
2093
2121
  }, {
2094
- default: C(() => [
2095
- M("div", gn, [
2096
- M("section", yn, [
2097
- j(M("span", null, k(e.state.propItem.label) + " " + k(`${e.state.operatorValue ? e.state.operatorValue : ""} `), 513), [
2122
+ 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), [
2098
2126
  [G, e.state.propItem.label]
2099
2127
  ]),
2100
- j(M("span", null, k(e.state.propItem.value), 513), [
2128
+ H(S("span", null, I(e.state.propItem.value), 513), [
2101
2129
  [G, e.state.propItem.value]
2102
2130
  ])
2103
2131
  ]),
2104
- D(a, {
2132
+ C(s, {
2105
2133
  ref: "dropdownRef",
2106
- visible: e.state.visible,
2107
- "onUpdate:visible": t[5] || (t[5] = (h) => e.state.visible = h),
2108
- trigger: "click",
2134
+ modelValue: e.state.visible,
2135
+ "onUpdate:modelValue": t[5] || (t[5] = (f) => e.state.visible = f),
2136
+ trigger: "manual",
2137
+ placement: "bottom-start",
2109
2138
  class: "tvp-search-box__dropdown",
2110
- "show-icon": !1,
2111
- size: e.size === "small" ? "small" : "",
2112
- "lazy-show-popper": "",
2113
- "close-on-click-outside": !0
2139
+ "popper-class": "tvp-search-box__dropdown-menu",
2140
+ "visible-arrow": !1,
2141
+ "append-to-body": e.appendToBody
2114
2142
  }, {
2115
- dropdown: C(() => [
2116
- D(u, {
2117
- placement: "bottom-start",
2118
- "popper-class": "tvp-search-box__dropdown-menu",
2119
- style: ct({ "max-height": e.panelMaxHeight }),
2120
- onMouseup: Z(() => {
2121
- }, ["stop"])
2122
- }, {
2123
- default: C(() => {
2124
- var h, $, w;
2125
- return [
2126
- j(M("div", null, [
2127
- (h = e.state.instance) != null && h.slots["first-panel"] ? me(e.$slots, "first-panel", fe({ key: 0 }, {
2128
- state: e.state,
2129
- handleEvents: e.handleEvents
2130
- }, {
2131
- onClick: t[1] || (t[1] = Z(() => {
2132
- }, ["stop"]))
2133
- })) : (y(), F(f, {
2134
- key: 1,
2135
- state: e.state,
2136
- handleEvents: e.handleEvents
2137
- }, null, 8, ["state", "handleEvents"]))
2138
- ], 512), [
2139
- [G, !e.state.propItem.label || (($ = e.state.inputValue) == null ? void 0 : $.trim())]
2140
- ]),
2141
- j(M("div", null, [
2142
- (w = e.state.instance) != null && w.slots["second-panel"] ? me(e.$slots, "second-panel", fe({ key: 0 }, {
2143
- state: e.state,
2144
- pickerOptions: e.pickerOptions,
2145
- handleEvents: e.handleEvents,
2146
- back: () => e.resetInput(e.state)
2147
- }, {
2148
- onClick: t[2] || (t[2] = Z(() => {
2149
- }, ["stop"]))
2150
- })) : e.state.prevItem.type !== "custom" ? (y(), F(s, {
2151
- key: 1,
2152
- state: e.state,
2153
- "picker-options": e.pickerOptions,
2154
- onEvents: e.handleEvents
2155
- }, null, 8, ["state", "picker-options", "onEvents"])) : (y(), S("div", {
2156
- key: 2,
2157
- class: "tvp-search-box__panel-box",
2158
- onClick: t[4] || (t[4] = (P) => e.showDropdown(e.state))
2159
- }, [
2160
- me(e.$slots, e.state.prevItem.slotName, fe({
2161
- showDropdown: () => e.showDropdown(e.state),
2162
- onConfirm: e.handleConfirm
2163
- }, {
2164
- onClick: t[3] || (t[3] = Z(() => {
2165
- }, ["stop"]))
2166
- }))
2167
- ]))
2168
- ], 512), [
2169
- [G, e.state.propItem.label]
2170
- ])
2171
- ];
2172
- }),
2173
- _: 3
2174
- }, 8, ["style"])
2175
- ]),
2176
- default: C(() => [
2177
- D(n, {
2143
+ reference: M(() => [
2144
+ C(n, {
2178
2145
  ref: "inputRef",
2179
2146
  modelValue: e.state.inputValue,
2180
- "onUpdate:modelValue": t[0] || (t[0] = (h) => e.state.inputValue = h),
2147
+ "onUpdate:modelValue": t[0] || (t[0] = (f) => e.state.inputValue = f),
2181
2148
  class: "tvp-search-box__input",
2182
2149
  placeholder: e.state.placeholder,
2183
2150
  maxlength: e.maxlength && e.maxlength + 1,
2184
2151
  onKeydown: [
2185
- Ne(Z(e.backspaceDeleteTag, ["stop"]), ["delete"]),
2186
- Ne(Z(e.createTag, ["stop"]), ["enter"])
2152
+ Oe(Y(e.backspaceDeleteTag, ["stop"]), ["delete"]),
2153
+ Oe(Y(e.createTag, ["stop"]), ["enter"])
2187
2154
  ],
2188
2155
  onInput: e.handleInput,
2189
2156
  onClick: e.handleClick
2190
2157
  }, {
2191
- suffix: C(() => [
2192
- j(D(d, {
2158
+ suffix: M(() => [
2159
+ H(C(m, {
2193
2160
  class: "tvp-search-box__input-close",
2194
- onClick: Z(e.clearTag, ["stop"])
2161
+ onClick: Y(e.clearTag, ["stop"])
2195
2162
  }, null, 8, ["onClick"]), [
2196
2163
  [G, e.isShowClose]
2197
2164
  ]),
2198
- j(M("span", Vn, null, 512), [
2165
+ H(S("span", Tn, null, 512), [
2199
2166
  [G, e.isShowClose]
2200
2167
  ]),
2201
2168
  e.showHelp ? (y(), F(r, {
@@ -2204,65 +2171,120 @@ function xn(e, t, o, l, c, i) {
2204
2171
  content: e.t("tvp.tvpSearchbox.help"),
2205
2172
  placement: "top"
2206
2173
  }, {
2207
- default: C(() => [
2208
- D(p, {
2174
+ default: M(() => [
2175
+ C(p, {
2209
2176
  class: "tvp-search-box__input-help",
2210
- onClick: Z(e.helpClick, ["stop"])
2177
+ onClick: Y(e.helpClick, ["stop"])
2211
2178
  }, null, 8, ["onClick"])
2212
2179
  ]),
2213
2180
  _: 1
2214
- }, 8, ["content"])) : H("", !0),
2215
- D(b, {
2181
+ }, 8, ["content"])) : z("", !0),
2182
+ C(b, {
2216
2183
  class: "tvp-search-box__input-search",
2217
- onClick: Z(e.createTag, ["stop"])
2184
+ onClick: Y(e.createTag, ["stop"])
2218
2185
  }, null, 8, ["onClick"])
2219
2186
  ]),
2220
2187
  _: 1
2221
2188
  }, 8, ["modelValue", "placeholder", "maxlength", "onKeydown", "onInput", "onClick"])
2222
2189
  ]),
2190
+ default: M(() => {
2191
+ var f, D, k;
2192
+ return [
2193
+ S("div", {
2194
+ class: "tvp-search-box__dropdown",
2195
+ style: ft({ "max-height": e.panelMaxHeight }),
2196
+ onMouseup: Y(() => {
2197
+ }, ["stop"])
2198
+ }, [
2199
+ H(S("div", null, [
2200
+ (f = e.state.instance) != null && f.slots["first-panel"] ? me(e.$slots, "first-panel", fe({ key: 0 }, {
2201
+ state: e.state,
2202
+ handleEvents: e.handleEvents
2203
+ }, {
2204
+ onClick: t[1] || (t[1] = Y(() => {
2205
+ }, ["stop"]))
2206
+ })) : (y(), F(d, {
2207
+ key: 1,
2208
+ state: e.state,
2209
+ handleEvents: e.handleEvents
2210
+ }, null, 8, ["state", "handleEvents"]))
2211
+ ], 512), [
2212
+ [G, !e.state.propItem.label || ((D = e.state.inputValue) == null ? void 0 : D.trim())]
2213
+ ]),
2214
+ H(S("div", null, [
2215
+ (k = e.state.instance) != null && k.slots["second-panel"] ? me(e.$slots, "second-panel", fe({ key: 0 }, {
2216
+ state: e.state,
2217
+ pickerOptions: e.pickerOptions,
2218
+ handleEvents: e.handleEvents,
2219
+ back: () => e.resetInput(e.state)
2220
+ }, {
2221
+ onClick: t[2] || (t[2] = Y(() => {
2222
+ }, ["stop"]))
2223
+ })) : e.state.prevItem.type !== "custom" ? (y(), F(u, {
2224
+ key: 1,
2225
+ state: e.state,
2226
+ "picker-options": e.pickerOptions,
2227
+ onEvents: e.handleEvents
2228
+ }, null, 8, ["state", "picker-options", "onEvents"])) : (y(), w("div", {
2229
+ key: 2,
2230
+ class: "tvp-search-box__panel-box",
2231
+ onClick: t[4] || (t[4] = (R) => e.showDropdown(e.state))
2232
+ }, [
2233
+ me(e.$slots, e.state.prevItem.slotName, fe({
2234
+ showDropdown: () => e.showDropdown(e.state),
2235
+ onConfirm: e.handleConfirm
2236
+ }, {
2237
+ onClick: t[3] || (t[3] = Y(() => {
2238
+ }, ["stop"]))
2239
+ }))
2240
+ ]))
2241
+ ], 512), [
2242
+ [G, e.state.propItem.label]
2243
+ ])
2244
+ ], 36)
2245
+ ];
2246
+ }),
2223
2247
  _: 3
2224
- }, 8, ["visible", "size"])
2248
+ }, 8, ["modelValue", "append-to-body"])
2225
2249
  ]),
2226
- e.editable ? (y(), F(T, {
2250
+ e.editable ? (y(), F(s, {
2227
2251
  key: 0,
2228
2252
  ref: "popoverRef",
2229
2253
  modelValue: e.state.popoverVisible,
2230
- "onUpdate:modelValue": t[20] || (t[20] = (h) => e.state.popoverVisible = h),
2254
+ "onUpdate:modelValue": t[20] || (t[20] = (f) => e.state.popoverVisible = f),
2231
2255
  placement: "bottom-start",
2232
2256
  "visible-arrow": !1,
2233
2257
  trigger: "manual",
2234
2258
  "popper-class": "tvp-search-box__popover",
2235
- class: "tvp-search-box__form-popover"
2259
+ class: "tvp-search-box__form-popover",
2260
+ "append-to-body": e.appendToBody
2236
2261
  }, {
2237
- default: C(() => [
2238
- e.state.prevItem.type !== "custom" ? (y(), S(B, { key: 0 }, [
2239
- M("div", kn, [
2240
- M("div", In, k(e.t("tvp.tvpSearchbox.attributeType")), 1),
2241
- D(I, { class: "tvp-search-box__number-item" }, {
2242
- default: C(() => [
2243
- D(g, {
2262
+ default: M(() => [
2263
+ 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),
2266
+ C(g, { class: "tvp-search-box__number-item" }, {
2267
+ default: M(() => [
2268
+ C(h, {
2244
2269
  modelValue: e.state.selectValue,
2245
- "onUpdate:modelValue": t[7] || (t[7] = (h) => e.state.selectValue = h),
2270
+ "onUpdate:modelValue": t[7] || (t[7] = (f) => e.state.selectValue = f),
2246
2271
  searchable: "",
2247
2272
  disabled: e.state.prevItem.editAttrDisabled
2248
2273
  }, {
2249
- default: C(() => [
2250
- (y(), F(m, {
2274
+ default: M(() => [
2275
+ (y(), F(a, {
2251
2276
  key: e.state.allTypeAttri.label,
2252
2277
  label: e.t("tvp.tvpSearchbox.allProperty"),
2253
2278
  value: e.state.allTypeAttri.label,
2254
2279
  disabled: e.selectItemIsDisable(e.state.allTypeAttri),
2255
- onClick: t[6] || (t[6] = (h) => e.selectPropChange(
2256
- e.state.allTypeAttri,
2257
- e.selectItemIsDisable(e.state.allTypeAttri)
2258
- ))
2280
+ onClick: t[6] || (t[6] = (f) => e.selectPropChange(e.state.allTypeAttri, e.selectItemIsDisable(e.state.allTypeAttri)))
2259
2281
  }, null, 8, ["label", "value", "disabled"])),
2260
- (y(!0), S(B, null, z(e.state.recordItems, (h) => (y(), F(m, {
2261
- key: h.label,
2262
- label: h.label,
2263
- value: h.label,
2264
- disabled: e.selectItemIsDisable(h),
2265
- onClick: ($) => e.selectPropChange(h, e.selectItemIsDisable(h))
2282
+ (y(!0), w(x, null, U(e.state.recordItems, (f) => (y(), F(a, {
2283
+ key: f.label,
2284
+ label: f.label,
2285
+ value: f.label,
2286
+ disabled: e.selectItemIsDisable(f),
2287
+ onClick: (D) => e.selectPropChange(f, e.selectItemIsDisable(f))
2266
2288
  }, null, 8, ["label", "value", "disabled", "onClick"]))), 128))
2267
2289
  ]),
2268
2290
  _: 1
@@ -2270,113 +2292,113 @@ function xn(e, t, o, l, c, i) {
2270
2292
  ]),
2271
2293
  _: 1
2272
2294
  }),
2273
- e.state.prevItem.operators ? (y(), S("div", wn, k(e.t("tvp.tvpSearchbox.operator")), 1)) : H("", !0),
2274
- e.state.prevItem.operators ? (y(), F(I, {
2295
+ e.state.prevItem.operators ? (y(), w("div", Cn, I(e.t("tvp.tvpSearchbox.operator")), 1)) : z("", !0),
2296
+ e.state.prevItem.operators ? (y(), F(g, {
2275
2297
  key: 1,
2276
2298
  class: "tvp-search-box__number-item"
2277
2299
  }, {
2278
- default: C(() => [
2279
- D(g, {
2300
+ default: M(() => [
2301
+ C(h, {
2280
2302
  modelValue: e.state.operatorValue,
2281
- "onUpdate:modelValue": t[8] || (t[8] = (h) => e.state.operatorValue = h)
2303
+ "onUpdate:modelValue": t[8] || (t[8] = (f) => e.state.operatorValue = f)
2282
2304
  }, {
2283
- default: C(() => [
2284
- (y(!0), S(B, null, z(e.state.currentOperators, (h) => (y(), F(m, {
2285
- key: h,
2286
- label: h,
2287
- value: h
2305
+ default: M(() => [
2306
+ (y(!0), w(x, null, U(e.state.currentOperators, (f) => (y(), F(a, {
2307
+ key: f,
2308
+ label: f,
2309
+ value: f
2288
2310
  }, null, 8, ["label", "value"]))), 128))
2289
2311
  ]),
2290
2312
  _: 1
2291
2313
  }, 8, ["modelValue"])
2292
2314
  ]),
2293
2315
  _: 1
2294
- })) : H("", !0),
2295
- e.state.prevItem.type !== "numRange" ? (y(), S("div", Tn, k(e.t("tvp.tvpSearchbox.tagValue")), 1)) : H("", !0),
2296
- ["numRange", "dateRange", "datetimeRange", "custom"].includes(e.state.prevItem.type) ? H("", !0) : (y(), F(I, {
2316
+ })) : z("", !0),
2317
+ e.state.prevItem.type !== "numRange" ? (y(), w("div", Mn, I(e.t("tvp.tvpSearchbox.tagValue")), 1)) : z("", !0),
2318
+ ["numRange", "dateRange", "datetimeRange", "custom"].includes(e.state.prevItem.type) ? z("", !0) : (y(), F(g, {
2297
2319
  key: 3,
2298
2320
  prop: "inputEditValue",
2299
2321
  class: "tvp-search-box__number-item"
2300
2322
  }, {
2301
- default: C(() => {
2302
- var h, $;
2323
+ default: M(() => {
2324
+ var f, D;
2303
2325
  return [
2304
- ((h = e.state.currentEditValue) == null ? void 0 : h.length) > 0 ? (y(), F(g, {
2326
+ ((f = e.state.currentEditValue) == null ? void 0 : f.length) > 0 ? (y(), F(h, {
2305
2327
  key: 0,
2306
2328
  modelValue: e.state.inputEditValue,
2307
- "onUpdate:modelValue": t[9] || (t[9] = (w) => e.state.inputEditValue = w),
2329
+ "onUpdate:modelValue": t[9] || (t[9] = (k) => e.state.inputEditValue = k),
2308
2330
  class: "tvp-search-box-select",
2309
2331
  multiple: !!e.state.prevItem.mergeTag,
2310
- "allow-create": ($ = e.state.prevItem) == null ? void 0 : $.allowCreate,
2332
+ "allow-create": (D = e.state.prevItem) == null ? void 0 : D.allowCreate,
2311
2333
  filterable: "",
2312
2334
  "default-first-option": "",
2313
2335
  clearable: ""
2314
2336
  }, {
2315
- default: C(() => [
2316
- (y(!0), S(B, null, z(e.state.currentEditValue, (w) => (y(), F(m, {
2317
- key: w.label,
2318
- label: w.label,
2319
- value: w.label
2337
+ default: M(() => [
2338
+ (y(!0), w(x, null, U(e.state.currentEditValue, (k) => (y(), F(a, {
2339
+ key: k.label,
2340
+ label: k.label,
2341
+ value: k.label
2320
2342
  }, null, 8, ["label", "value"]))), 128))
2321
2343
  ]),
2322
2344
  _: 1
2323
2345
  }, 8, ["modelValue", "multiple", "allow-create"])) : (y(), F(n, {
2324
2346
  key: 1,
2325
2347
  modelValue: e.state.inputEditValue,
2326
- "onUpdate:modelValue": t[10] || (t[10] = (w) => e.state.inputEditValue = w),
2348
+ "onUpdate:modelValue": t[10] || (t[10] = (k) => e.state.inputEditValue = k),
2327
2349
  clearable: ""
2328
2350
  }, null, 8, ["modelValue"]))
2329
2351
  ];
2330
2352
  }),
2331
2353
  _: 1
2332
2354
  })),
2333
- e.state.prevItem.type === "numRange" ? (y(), S("div", Sn, [
2334
- M("div", Dn, k(e.t("tvp.tvpSearchbox.minValueText")) + "(" + k(e.state.prevItem.unit) + ") ", 1),
2335
- D(I, {
2355
+ 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),
2357
+ C(g, {
2336
2358
  prop: e.state.curMinNumVar,
2337
2359
  class: "tvp-search-box__number-item",
2338
2360
  "show-message": e.state.numberShowMessage
2339
2361
  }, {
2340
- default: C(() => [
2341
- D(n, {
2362
+ default: M(() => [
2363
+ C(n, {
2342
2364
  modelValue: e.state[e.state.curMinNumVar],
2343
- "onUpdate:modelValue": t[11] || (t[11] = (h) => e.state[e.state.curMinNumVar] = h),
2365
+ "onUpdate:modelValue": t[11] || (t[11] = (f) => e.state[e.state.curMinNumVar] = f),
2344
2366
  type: "number",
2345
2367
  class: "tvp-search-box__number-input"
2346
2368
  }, null, 8, ["modelValue"])
2347
2369
  ]),
2348
2370
  _: 1
2349
2371
  }, 8, ["prop", "show-message"]),
2350
- M("div", Cn, k(e.t("tvp.tvpSearchbox.maxValueText")) + "(" + k(e.state.prevItem.unit) + ") ", 1),
2351
- D(I, {
2372
+ S("div", Ln, I(e.t("tvp.tvpSearchbox.maxValueText")) + "(" + I(e.state.prevItem.unit) + ") ", 1),
2373
+ C(g, {
2352
2374
  prop: e.state.curMaxNumVar,
2353
2375
  class: "tvp-search-box__number-item"
2354
2376
  }, {
2355
- default: C(() => [
2356
- D(n, {
2377
+ default: M(() => [
2378
+ C(n, {
2357
2379
  modelValue: e.state[e.state.curMaxNumVar],
2358
- "onUpdate:modelValue": t[12] || (t[12] = (h) => e.state[e.state.curMaxNumVar] = h),
2380
+ "onUpdate:modelValue": t[12] || (t[12] = (f) => e.state[e.state.curMaxNumVar] = f),
2359
2381
  type: "number",
2360
2382
  class: "tvp-search-box__number-input"
2361
2383
  }, null, 8, ["modelValue"])
2362
2384
  ]),
2363
2385
  _: 1
2364
2386
  }, 8, ["prop"])
2365
- ])) : H("", !0),
2366
- e.state.prevItem.type === "dateRange" ? (y(), S("div", Mn, [
2367
- M("div", En, k(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
2387
+ ])) : z("", !0),
2388
+ e.state.prevItem.type === "dateRange" ? (y(), w("div", _n, [
2389
+ S("div", Rn, I(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
2368
2390
  value: (e.state.prevItem.maxTimeLength / 864e5).toFixed(1)
2369
2391
  }) : e.t("tvp.tvpSearchbox.rangeDateTitle")), 1),
2370
- M("div", $n, k(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
2371
- D(I, {
2392
+ S("div", Nn, I(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
2393
+ C(g, {
2372
2394
  prop: "startDate",
2373
2395
  "show-message": !!e.state.prevItem.maxTimeLength,
2374
2396
  class: "tvp-search-box__date-item"
2375
2397
  }, {
2376
- default: C(() => [
2377
- D(L, {
2398
+ default: M(() => [
2399
+ C(T, {
2378
2400
  modelValue: e.state.startDate,
2379
- "onUpdate:modelValue": t[13] || (t[13] = (h) => e.state.startDate = h),
2401
+ "onUpdate:modelValue": t[13] || (t[13] = (f) => e.state.startDate = f),
2380
2402
  format: e.state.prevItem.format || e.state.dateRangeFormat,
2381
2403
  "value-format": e.state.prevItem.format || e.state.dateRangeFormat,
2382
2404
  "picker-options": e.pickerOptions(e.state.startDate, "endDate"),
@@ -2385,15 +2407,15 @@ function xn(e, t, o, l, c, i) {
2385
2407
  ]),
2386
2408
  _: 1
2387
2409
  }, 8, ["show-message"]),
2388
- M("div", Ln, k(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
2389
- D(I, {
2410
+ S("div", Pn, I(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
2411
+ C(g, {
2390
2412
  prop: "endDate",
2391
2413
  class: "tvp-search-box__date-item"
2392
2414
  }, {
2393
- default: C(() => [
2394
- D(L, {
2415
+ default: M(() => [
2416
+ C(T, {
2395
2417
  modelValue: e.state.endDate,
2396
- "onUpdate:modelValue": t[14] || (t[14] = (h) => e.state.endDate = h),
2418
+ "onUpdate:modelValue": t[14] || (t[14] = (f) => e.state.endDate = f),
2397
2419
  format: e.state.prevItem.format || e.state.dateRangeFormat,
2398
2420
  "value-format": e.state.prevItem.format || e.state.dateRangeFormat,
2399
2421
  "picker-options": e.pickerOptions(e.state.startDate),
@@ -2402,21 +2424,21 @@ function xn(e, t, o, l, c, i) {
2402
2424
  ]),
2403
2425
  _: 1
2404
2426
  })
2405
- ])) : H("", !0),
2406
- e.state.prevItem.type === "datetimeRange" ? (y(), S("div", _n, [
2407
- M("div", Rn, k(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
2427
+ ])) : z("", !0),
2428
+ e.state.prevItem.type === "datetimeRange" ? (y(), w("div", On, [
2429
+ S("div", Fn, I(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
2408
2430
  value: (e.state.prevItem.maxTimeLength / 864e5).toFixed(1)
2409
2431
  }) : e.t("tvp.tvpSearchbox.rangeDateTitle")), 1),
2410
- M("div", Nn, k(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
2411
- D(I, {
2432
+ S("div", Bn, I(e.t("tvp.tvpSearchbox.rangeBeginLabel")), 1),
2433
+ C(g, {
2412
2434
  prop: "startDateTime",
2413
2435
  "show-message": !!e.state.prevItem.maxTimeLength,
2414
2436
  class: "tvp-search-box__date-item"
2415
2437
  }, {
2416
- default: C(() => [
2417
- D(L, {
2438
+ default: M(() => [
2439
+ C(T, {
2418
2440
  modelValue: e.state.startDateTime,
2419
- "onUpdate:modelValue": t[15] || (t[15] = (h) => e.state.startDateTime = h),
2441
+ "onUpdate:modelValue": t[15] || (t[15] = (f) => e.state.startDateTime = f),
2420
2442
  type: "datetime",
2421
2443
  isutc8: !0,
2422
2444
  format: e.state.prevItem.format || e.state.datetimeRangeFormat,
@@ -2427,15 +2449,15 @@ function xn(e, t, o, l, c, i) {
2427
2449
  ]),
2428
2450
  _: 1
2429
2451
  }, 8, ["show-message"]),
2430
- M("div", Pn, k(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
2431
- D(I, {
2452
+ S("div", xn, I(e.t("tvp.tvpSearchbox.rangeEndLabel")), 1),
2453
+ C(g, {
2432
2454
  prop: "endDateTime",
2433
2455
  class: "tvp-search-box__date-item"
2434
2456
  }, {
2435
- default: C(() => [
2436
- D(L, {
2457
+ default: M(() => [
2458
+ C(T, {
2437
2459
  modelValue: e.state.endDateTime,
2438
- "onUpdate:modelValue": t[16] || (t[16] = (h) => e.state.endDateTime = h),
2460
+ "onUpdate:modelValue": t[16] || (t[16] = (f) => e.state.endDateTime = f),
2439
2461
  type: "datetime",
2440
2462
  isutc8: !0,
2441
2463
  format: e.state.prevItem.format || e.state.datetimeRangeFormat,
@@ -2446,48 +2468,48 @@ function xn(e, t, o, l, c, i) {
2446
2468
  ]),
2447
2469
  _: 1
2448
2470
  })
2449
- ])) : H("", !0)
2471
+ ])) : z("", !0)
2450
2472
  ]),
2451
- M("div", On, [
2452
- D(V, {
2473
+ S("div", An, [
2474
+ C($, {
2453
2475
  size: "mini",
2454
- onClick: t[17] || (t[17] = (h) => e.confirmEditTag(!1))
2476
+ onClick: t[17] || (t[17] = (f) => e.confirmEditTag(!1))
2455
2477
  }, {
2456
- default: C(() => [
2457
- K(k(e.t("tvp.tvpSearchbox.cancel")), 1)
2478
+ default: M(() => [
2479
+ K(I(e.t("tvp.tvpSearchbox.cancel")), 1)
2458
2480
  ]),
2459
2481
  _: 1
2460
2482
  }),
2461
- D(V, {
2483
+ C($, {
2462
2484
  size: "mini",
2463
2485
  disabled: e.state.hasFormError,
2464
- onClick: t[18] || (t[18] = (h) => e.confirmEditTag(!0))
2486
+ onClick: t[18] || (t[18] = (f) => e.confirmEditTag(!0))
2465
2487
  }, {
2466
- default: C(() => [
2467
- K(k(e.t("tvp.tvpSearchbox.confirm")), 1)
2488
+ default: M(() => [
2489
+ K(I(e.t("tvp.tvpSearchbox.confirm")), 1)
2468
2490
  ]),
2469
2491
  _: 1
2470
2492
  }, 8, ["disabled"])
2471
2493
  ])
2472
- ], 64)) : (y(), S("div", Fn, [
2494
+ ], 64)) : (y(), w("div", zn, [
2473
2495
  me(e.$slots, `${e.state.prevItem.slotName}-edit`, fe({
2474
2496
  showDropdown: () => e.showPopover(e.state),
2475
2497
  onConfirm: e.handleEditConfirm
2476
2498
  }, {
2477
- onClick: t[19] || (t[19] = Z(() => {
2499
+ onClick: t[19] || (t[19] = Y(() => {
2478
2500
  }, ["stop"]))
2479
2501
  }))
2480
2502
  ]))
2481
2503
  ]),
2482
2504
  _: 3
2483
- }, 8, ["modelValue"])) : H("", !0)
2505
+ }, 8, ["modelValue", "append-to-body"])) : z("", !0)
2484
2506
  ]),
2485
2507
  _: 3
2486
2508
  }, 8, ["model", "rules", "validate-type", "size"])
2487
2509
  ], 2);
2488
2510
  }
2489
- const Bn = /* @__PURE__ */ _e(hn, [["render", xn]]), An = {
2490
- ...ve,
2511
+ const jn = /* @__PURE__ */ Ne(yn, [["render", Un]]), Hn = {
2512
+ ...ge,
2491
2513
  tiny_mode: {
2492
2514
  type: String,
2493
2515
  default: "pc"
@@ -2517,6 +2539,11 @@ const Bn = /* @__PURE__ */ _e(hn, [["render", xn]]), An = {
2517
2539
  type: Boolean,
2518
2540
  default: !0
2519
2541
  },
2542
+ /** 是否显示搜索框前面的搜索图标 */
2543
+ showPrefixIcon: {
2544
+ type: Boolean,
2545
+ default: !0
2546
+ },
2520
2547
  /** ID映射键名 */
2521
2548
  idMapKey: {
2522
2549
  type: String,
@@ -2561,24 +2588,29 @@ const Bn = /* @__PURE__ */ _e(hn, [["render", xn]]), An = {
2561
2588
  size: {
2562
2589
  type: String,
2563
2590
  default: ""
2591
+ },
2592
+ /** 将下拉面板/弹窗挂载到 body,解决父容器 overflow 场景遮挡问题 */
2593
+ appendToBody: {
2594
+ type: Boolean,
2595
+ default: !1
2564
2596
  }
2565
- }, ue = be({
2566
- name: Me + "SearchBox",
2567
- props: An,
2568
- ...Bn
2569
- }), zn = "3.27.1";
2597
+ }, ue = ve({
2598
+ name: $e + "SearchBox",
2599
+ props: Hn,
2600
+ ...jn
2601
+ }), Kn = "3.27.2-alpha.0";
2570
2602
  ue.install = function(e) {
2571
2603
  e.component(ue.name, ue);
2572
2604
  };
2573
- ue.version = zn;
2605
+ ue.version = Kn;
2574
2606
  window && typeof window < "u" && window.Vue && ue.install(window.Vue);
2575
2607
  export {
2576
- $o as TinySearchBoxFirstLevelPanel,
2577
- fn as TinySearchBoxSecondLevelPanel,
2608
+ No as TinySearchBoxFirstLevelPanel,
2609
+ gn as TinySearchBoxSecondLevelPanel,
2578
2610
  ue as default,
2579
- Ze as enUS,
2580
- Jt as setGlobalApp,
2581
- Y as t,
2582
- qe as zhCN
2611
+ Qe as enUS,
2612
+ to as setGlobalApp,
2613
+ q as t,
2614
+ Ye as zhCN
2583
2615
  };
2584
2616
  //# sourceMappingURL=index.js.map