@opentiny/vue-search-box 2.27.1 → 2.27.2

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