@opentiny/vue-search-box-saas 2.32.0-alpha.1 → 2.32.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1096 -973
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
import { defineComponent as fe, $prefix as
|
|
3
|
-
import { TinyDropdownItem as
|
|
4
|
-
import { iconSearch as at, iconClose as nt, iconHelpQuery as
|
|
5
|
-
const
|
|
6
|
-
if (typeof a == "string" && typeof
|
|
7
|
-
let
|
|
8
|
-
if (
|
|
9
|
-
return n ? a.substr(0, e) : a.substr(
|
|
2
|
+
import { defineComponent as fe, $prefix as Te, $props as ve, setup as ke, hooks as ue } from "@opentiny/vue-common";
|
|
3
|
+
import { TinyDropdownItem as Ne, TinyCheckbox as Ue, TinyCheckboxGroup as Ye, TinyDatePicker as Re, TinyInput as Oe, TinyButton as Pe, TinyLoading as qe, TinyTag as We, TinyDropdown as Ze, TinyDropdownMenu as Xe, TinyTooltip as Qe, TinyPopover as Je, TinySelect as et, TinyOption as tt } from "@opentiny/vue";
|
|
4
|
+
import { iconSearch as at, iconClose as nt, iconHelpQuery as rt } from "@opentiny/vue-icon";
|
|
5
|
+
const st = (a, e, n, r = "0") => {
|
|
6
|
+
if (typeof a == "string" && typeof r == "string" && Fe(e)) {
|
|
7
|
+
let o = a.length - e;
|
|
8
|
+
if (o > 0)
|
|
9
|
+
return n ? a.substr(0, e) : a.substr(o, e);
|
|
10
10
|
{
|
|
11
11
|
const t = [];
|
|
12
|
-
for (
|
|
13
|
-
t.push(
|
|
12
|
+
for (o = Math.abs(o) / r.length; o > 0; o--)
|
|
13
|
+
t.push(r);
|
|
14
14
|
const d = t.join("");
|
|
15
15
|
return n ? a + d : d + a;
|
|
16
16
|
}
|
|
@@ -28,13 +28,13 @@ const ct = {
|
|
|
28
28
|
"[object String]": "string",
|
|
29
29
|
"[object Number]": "number",
|
|
30
30
|
"[object Boolean]": "boolean"
|
|
31
|
-
}, ut = (a) => a == null, pt = (a) => ut(a) ? String(a) : ct[ot.call(a)] || "object",
|
|
31
|
+
}, ut = (a) => a == null, pt = (a) => ut(a) ? String(a) : ct[ot.call(a)] || "object", Fe = (a) => typeof a == "number" && isFinite(a), dt = (a) => pt(a) === "date", He = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ft = new RegExp(
|
|
32
32
|
"^(\\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}))?)?)?$"
|
|
33
33
|
), vt = new RegExp(
|
|
34
34
|
"^(((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}))?)?)?$"
|
|
35
|
-
),
|
|
35
|
+
), mt = new RegExp(
|
|
36
36
|
"^(\\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]))$"
|
|
37
|
-
),
|
|
37
|
+
), ht = {
|
|
38
38
|
"y{1,4}": /y{1,4}/,
|
|
39
39
|
"M{1,2}": /M{1,2}/,
|
|
40
40
|
"d{1,2}": /d{1,2}/,
|
|
@@ -44,7 +44,7 @@ const ct = {
|
|
|
44
44
|
"s{1,2}": /s{1,2}/,
|
|
45
45
|
"S{1,3}": /S{1,3}/,
|
|
46
46
|
"Z{1,1}": /Z{1,1}/
|
|
47
|
-
},
|
|
47
|
+
}, Y = {
|
|
48
48
|
YEAR: 9999,
|
|
49
49
|
MONTH: 11,
|
|
50
50
|
DATE: 31,
|
|
@@ -56,62 +56,62 @@ const ct = {
|
|
|
56
56
|
const e = 0 - a.getTimezoneOffset() / 60;
|
|
57
57
|
let n;
|
|
58
58
|
return e === 0 ? n = "Z" : e > 0 ? n = "+" + (e > 10 ? e : "0" + e) + "00" : n = (e < -10 ? e : "-0" + -e) + "00", n;
|
|
59
|
-
},
|
|
60
|
-
let
|
|
61
|
-
if (
|
|
62
|
-
return new Date(a, e, n,
|
|
63
|
-
},
|
|
59
|
+
}, Be = (a) => a % 400 === 0 || a % 4 === 0 && a % 100 !== 0, Ae = (a) => a > Y.MILLISECOND ? Number(String(a).substring(0, 3)) : a, Ee = ({ year: a, month: e, date: n, hours: r, minutes: o, seconds: t, milliseconds: d }) => {
|
|
60
|
+
let s = He[e];
|
|
61
|
+
if (Be(a) && e === 1 && (s += 1), n <= s)
|
|
62
|
+
return new Date(a, e, n, r, o, t, Ae(d));
|
|
63
|
+
}, Vt = (a) => {
|
|
64
64
|
if (a.length === 23) {
|
|
65
|
-
const e = Number(a[1]), n = a[3] - 1,
|
|
66
|
-
return
|
|
67
|
-
date:
|
|
65
|
+
const e = Number(a[1]), n = a[3] - 1, r = Number(a[9] || 1), o = a[15] || 0, t = a[17] || 0, d = a[20] || 0, s = a[22] || 0;
|
|
66
|
+
return Ee({
|
|
67
|
+
date: r,
|
|
68
68
|
year: e,
|
|
69
|
-
hours:
|
|
69
|
+
hours: o,
|
|
70
70
|
month: n,
|
|
71
71
|
seconds: d,
|
|
72
72
|
minutes: t,
|
|
73
|
-
milliseconds:
|
|
73
|
+
milliseconds: s
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
}, wt = (a) => {
|
|
77
77
|
if (a.length === 22) {
|
|
78
|
-
const e = Number(a[12]), n = a[1] - 1,
|
|
79
|
-
return
|
|
78
|
+
const e = Number(a[12]), n = a[1] - 1, r = Number(a[6] || 1), o = a[14] || 0, t = a[16] || 0, d = a[19] || 0, s = a[21] || 0;
|
|
79
|
+
return Ee({
|
|
80
80
|
year: e,
|
|
81
81
|
month: n,
|
|
82
|
-
date:
|
|
83
|
-
hours:
|
|
82
|
+
date: r,
|
|
83
|
+
hours: o,
|
|
84
84
|
minutes: t,
|
|
85
85
|
seconds: d,
|
|
86
|
-
milliseconds:
|
|
86
|
+
milliseconds: s
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
},
|
|
89
|
+
}, It = (a) => {
|
|
90
90
|
if (a.length !== 25)
|
|
91
91
|
return;
|
|
92
|
-
const e = Number(a[1]), n = a[2] - 1,
|
|
92
|
+
const e = Number(a[1]), n = a[2] - 1, r = Number(a[6]), o = new Date(e, n, r).getTimezoneOffset(), t = a[12] || 0, d = a[14] || 0, s = a[17] || 0, l = a[19] || 0;
|
|
93
93
|
let p = a[20];
|
|
94
94
|
const u = a[21], f = a[22] || 0, i = a[24] || 0;
|
|
95
|
-
let c =
|
|
96
|
-
if (
|
|
95
|
+
let c = He[n], m, b;
|
|
96
|
+
if (Be(e) && n === 1 && (c += 1), r <= c) {
|
|
97
97
|
if (p === "Z")
|
|
98
|
-
|
|
98
|
+
m = t - o / 60, b = d;
|
|
99
99
|
else {
|
|
100
100
|
if (p.includes(":") || (p = p.substr(0, 3) + ":" + p.substr(3)), !xt.includes(p))
|
|
101
101
|
return;
|
|
102
|
-
|
|
102
|
+
m = u === "+" ? t - f - o / 60 : Number(t) + Number(f) - o / 60, b = u === "+" ? d - i : Number(d) + Number(i);
|
|
103
103
|
}
|
|
104
|
-
return new Date(e, n,
|
|
104
|
+
return new Date(e, n, r, m, b, s, Ae(l));
|
|
105
105
|
}
|
|
106
|
-
},
|
|
107
|
-
[ft,
|
|
106
|
+
}, ge = [
|
|
107
|
+
[ft, Vt],
|
|
108
108
|
[vt, wt],
|
|
109
|
-
[
|
|
109
|
+
[mt, It]
|
|
110
110
|
], Tt = (a) => {
|
|
111
|
-
for (let e = 0, n =
|
|
112
|
-
const
|
|
113
|
-
if (
|
|
114
|
-
return
|
|
111
|
+
for (let e = 0, n = ge.length; e < n; e++) {
|
|
112
|
+
const r = ge[e][0].exec(a);
|
|
113
|
+
if (r && r.length > 0)
|
|
114
|
+
return ge[e][1](r);
|
|
115
115
|
}
|
|
116
116
|
}, kt = (a, e, n) => {
|
|
117
117
|
if (n)
|
|
@@ -146,41 +146,41 @@ const ct = {
|
|
|
146
146
|
a[6] = e;
|
|
147
147
|
break;
|
|
148
148
|
}
|
|
149
|
-
},
|
|
149
|
+
}, Et = (a, e) => {
|
|
150
150
|
const n = [0, -1, 0, 0, 0, 0];
|
|
151
151
|
if (a.length !== e.length)
|
|
152
152
|
return n;
|
|
153
|
-
let
|
|
153
|
+
let r = 0, o = 0;
|
|
154
154
|
for (let t = 0, d = a.length; t < d; t++) {
|
|
155
|
-
const
|
|
156
|
-
if (l &&
|
|
155
|
+
const s = a.substr(t, 1), l = isNaN(Number(s)) || (s == null ? void 0 : s.trim()) === "";
|
|
156
|
+
if (l && s === e.substr(t, 1) || t === d - 1) {
|
|
157
157
|
let p, u;
|
|
158
158
|
if (l) {
|
|
159
|
-
p = a.substring(
|
|
160
|
-
const f = e.indexOf(
|
|
161
|
-
u = e.substring(
|
|
159
|
+
p = a.substring(r, t), r = t + 1;
|
|
160
|
+
const f = e.indexOf(s, o);
|
|
161
|
+
u = e.substring(o, f === -1 ? e.length : f), o = f + 1;
|
|
162
162
|
} else
|
|
163
|
-
p = a.substring(
|
|
163
|
+
p = a.substring(r, d), u = e.substring(o, d);
|
|
164
164
|
(p.length === u.length || p) && kt(n, p, u);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
return n;
|
|
168
|
-
},
|
|
168
|
+
}, Q = (a, e, n) => isNaN(a) || a < e || a > n, Ct = ({ year: a, month: e, date: n, hours: r, minutes: o, seconds: t, milliseconds: d }) => Q(a, 0, Y.YEAR) || Q(e, 0, Y.MONTH) || Q(n, 0, Y.DATE) || Q(r, 0, Y.HOUR) || Q(o, 0, Y.MINUTE) || Q(t, 0, Y.SECOND) || Q(d, 0, Y.MILLISECOND), St = (a, e) => {
|
|
169
169
|
if (typeof e == "string") {
|
|
170
|
-
const n =
|
|
171
|
-
return
|
|
172
|
-
year:
|
|
173
|
-
month:
|
|
170
|
+
const n = Et(a, e), r = Number(n[0]), o = Number(n[1]), t = Number(n[2] || 1), d = Number(n[3] || 0), s = Number(n[4] || 0), l = Number(n[5] || 0), p = Number(n[6] || 0);
|
|
171
|
+
return Ct({
|
|
172
|
+
year: r,
|
|
173
|
+
month: o,
|
|
174
174
|
date: t,
|
|
175
175
|
hours: d,
|
|
176
|
-
minutes:
|
|
176
|
+
minutes: s,
|
|
177
177
|
seconds: l,
|
|
178
178
|
milliseconds: p
|
|
179
|
-
}) ? void 0 :
|
|
180
|
-
year:
|
|
179
|
+
}) ? void 0 : Ee({
|
|
180
|
+
year: r,
|
|
181
181
|
date: t,
|
|
182
|
-
month:
|
|
183
|
-
minutes:
|
|
182
|
+
month: o,
|
|
183
|
+
minutes: s,
|
|
184
184
|
hours: d,
|
|
185
185
|
milliseconds: p,
|
|
186
186
|
seconds: l
|
|
@@ -188,13 +188,13 @@ const ct = {
|
|
|
188
188
|
} else
|
|
189
189
|
return Tt(a);
|
|
190
190
|
}, pe = (a, e, n) => {
|
|
191
|
-
let
|
|
192
|
-
if (
|
|
193
|
-
const
|
|
194
|
-
return
|
|
191
|
+
let r;
|
|
192
|
+
if (Fe(a) ? r = new Date(a) : typeof a == "string" && (r = St(a, e)), n) {
|
|
193
|
+
const o = n && pe(n) || new Date(1, 1, 1, 0, 0, 0);
|
|
194
|
+
return r && r < o ? o : r;
|
|
195
195
|
}
|
|
196
|
-
return
|
|
197
|
-
},
|
|
196
|
+
return r;
|
|
197
|
+
}, xe = function(a, e = "yyyy/MM/dd hh:mm:ss") {
|
|
198
198
|
if (dt(a)) {
|
|
199
199
|
if (typeof e == "string") {
|
|
200
200
|
const n = {
|
|
@@ -208,30 +208,30 @@ const ct = {
|
|
|
208
208
|
"S{1,3}": a.getMilliseconds(),
|
|
209
209
|
"Z{1,1}": yt(a)
|
|
210
210
|
};
|
|
211
|
-
return Object.keys(n).forEach((
|
|
212
|
-
const
|
|
213
|
-
|
|
211
|
+
return Object.keys(n).forEach((r) => {
|
|
212
|
+
const o = e.match(ht[r]);
|
|
213
|
+
r && o && o.length && (e = e.replace(o[0], r === "Z{1,1}" ? n[r] : st(n[r].toString(), o[0].length)));
|
|
214
214
|
}), e;
|
|
215
215
|
}
|
|
216
216
|
} else if (typeof a == "string" && arguments.length >= 2) {
|
|
217
217
|
let n = e;
|
|
218
218
|
arguments.length === 2 ? e = void 0 : n = arguments[2];
|
|
219
|
-
const
|
|
220
|
-
return
|
|
219
|
+
const r = pe(a, e);
|
|
220
|
+
return r ? xe(r, n) : "";
|
|
221
221
|
}
|
|
222
222
|
}, C = (a, e = !0) => {
|
|
223
|
-
var n,
|
|
223
|
+
var n, r, o, t, d, s, l, p, u;
|
|
224
224
|
if (clearTimeout(a.visibleTimer), a.visibleTimer = null, e)
|
|
225
225
|
a.visible || (a.visibleTimer = setTimeout(() => {
|
|
226
226
|
a.visible = !0;
|
|
227
227
|
}, 0));
|
|
228
228
|
else {
|
|
229
229
|
if (a.visible && typeof document < "u") {
|
|
230
|
-
(((t = (
|
|
231
|
-
|
|
230
|
+
(((t = (o = (r = (n = a.instance) == null ? void 0 : n.$refs) == null ? void 0 : r.dropdownRef) == null ? void 0 : o.state) == null ? void 0 : t.popperElm) || document).querySelectorAll(".tvp-search-box__virtual-list").forEach((m) => {
|
|
231
|
+
m.scrollTop = 0;
|
|
232
232
|
});
|
|
233
233
|
const c = document.activeElement;
|
|
234
|
-
(d = c == null ? void 0 : c.closest) != null && d.call(c, ".tvp-search-box__dropdown-menu") && ((u = (p = (l = (
|
|
234
|
+
(d = c == null ? void 0 : c.closest) != null && d.call(c, ".tvp-search-box__dropdown-menu") && ((u = (p = (l = (s = a.instance) == null ? void 0 : s.$refs) == null ? void 0 : l.inputRef) == null ? void 0 : p.focus) == null || u.call(p));
|
|
235
235
|
}
|
|
236
236
|
a.visible = !1;
|
|
237
237
|
}
|
|
@@ -241,51 +241,51 @@ const ct = {
|
|
|
241
241
|
a.popoverVisible = e;
|
|
242
242
|
const { dropdownRef: n } = a.instance;
|
|
243
243
|
e && n.state.visible && (clearTimeout(Number(n.state.timeout)), n.state.timeout = null, n.state.visible = !1);
|
|
244
|
-
},
|
|
244
|
+
}, Dt = (a, e = 200) => {
|
|
245
245
|
let n = null;
|
|
246
|
-
const
|
|
246
|
+
const r = function(...o) {
|
|
247
247
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
248
|
-
a.apply(this,
|
|
248
|
+
a.apply(this, o), n = null;
|
|
249
249
|
}, e);
|
|
250
250
|
};
|
|
251
|
-
return
|
|
251
|
+
return r.cancel = () => {
|
|
252
252
|
n && (clearTimeout(n), n = null);
|
|
253
|
-
},
|
|
253
|
+
}, r;
|
|
254
254
|
}, j = (a) => parseFloat(a).toString() !== "NaN", G = (a) => {
|
|
255
255
|
const e = Array.isArray(a) ? [] : {};
|
|
256
256
|
if (a && typeof a == "object") {
|
|
257
257
|
const n = Object.keys(a);
|
|
258
258
|
if (n.length)
|
|
259
|
-
n.forEach((
|
|
260
|
-
a[
|
|
259
|
+
n.forEach((r) => {
|
|
260
|
+
a[r] && typeof a[r] == "object" ? e[r] = G(a[r]) : e[r] = a[r];
|
|
261
261
|
});
|
|
262
262
|
else
|
|
263
263
|
return a;
|
|
264
264
|
}
|
|
265
265
|
return e;
|
|
266
|
-
},
|
|
266
|
+
}, me = (a, e = ["mergeTag", "options", "idMapKey"]) => {
|
|
267
267
|
const n = { ...a };
|
|
268
|
-
return e.forEach((
|
|
269
|
-
delete n[
|
|
268
|
+
return e.forEach((r) => {
|
|
269
|
+
delete n[r];
|
|
270
270
|
}), n;
|
|
271
271
|
}, z = (a, e, n = "") => {
|
|
272
|
-
const { valueMap:
|
|
273
|
-
return
|
|
274
|
-
},
|
|
272
|
+
const { valueMap: r, prevItem: o } = a, t = (o.label || n) + e;
|
|
273
|
+
return r.has(t);
|
|
274
|
+
}, he = (a) => {
|
|
275
275
|
a.propItem = {}, a.inputValue = "", a.startDate = null, a.endDate = null, a.startDateTime = null, a.endDateTime = null;
|
|
276
|
-
}, F = ({ emit: a, state: e, nextTick: n, ...
|
|
276
|
+
}, F = ({ emit: a, state: e, nextTick: n, ...r }) => {
|
|
277
277
|
oe(e, !1);
|
|
278
|
-
const { tagList:
|
|
279
|
-
if (p ||
|
|
278
|
+
const { tagList: o = null, index: t = -1, newTag: d = null, newValue: s = null, oldValue: l = null, isEdit: p } = r;
|
|
279
|
+
if (p || he(e), !o && t === -1 && !s)
|
|
280
280
|
return;
|
|
281
281
|
const u = l || G(e.innerModelValue);
|
|
282
282
|
let f = [];
|
|
283
|
-
|
|
284
|
-
},
|
|
285
|
-
const
|
|
286
|
-
return n && n[
|
|
283
|
+
s ? f = [...s] : t !== -1 ? (f = [...e.innerModelValue], d ? f.splice(t, 1, d) : f.splice(t, 1)) : f = [...e.innerModelValue, ...o], e.innerModelValue = f, a("update:modelValue", G(f)), a("change", G(f), u);
|
|
284
|
+
}, U = (a) => a, q = (a, e, n) => {
|
|
285
|
+
const r = e.idMapKey || a.idMapKey;
|
|
286
|
+
return n && n[r] !== void 0 ? { [r]: n[r] } : null;
|
|
287
287
|
};
|
|
288
|
-
function Mt({ props: a, state: e, emit: n, nextTick:
|
|
288
|
+
function Mt({ props: a, state: e, emit: n, nextTick: r, isTagDisabled: o }) {
|
|
289
289
|
let t = G(e.inputValue);
|
|
290
290
|
const d = (u) => {
|
|
291
291
|
if (u) {
|
|
@@ -298,17 +298,17 @@ function Mt({ props: a, state: e, emit: n, nextTick: s, isTagDisabled: r }) {
|
|
|
298
298
|
};
|
|
299
299
|
return {
|
|
300
300
|
deleteTag: (u) => {
|
|
301
|
-
if (
|
|
301
|
+
if (o(u))
|
|
302
302
|
return;
|
|
303
303
|
C(e, !1), d(u);
|
|
304
304
|
const f = a.modelValue.filter((i) => i !== u);
|
|
305
|
-
F({ emit: n, state: e, nextTick:
|
|
305
|
+
F({ emit: n, state: e, nextTick: r, newValue: f });
|
|
306
306
|
},
|
|
307
307
|
clearTag: () => {
|
|
308
|
-
const u = a.modelValue.filter((i) =>
|
|
308
|
+
const u = a.modelValue.filter((i) => o(i)), f = u.length !== a.modelValue.length;
|
|
309
309
|
C(e, !1), a.modelValue.forEach((i) => {
|
|
310
|
-
|
|
311
|
-
}), F({ emit: n, state: e, nextTick:
|
|
310
|
+
o(i) || d(i);
|
|
311
|
+
}), F({ emit: n, state: e, nextTick: r, ...f ? { newValue: u } : {} }), n("clear");
|
|
312
312
|
},
|
|
313
313
|
backspaceDeleteTag: () => {
|
|
314
314
|
var u, f, i;
|
|
@@ -318,344 +318,359 @@ function Mt({ props: a, state: e, emit: n, nextTick: s, isTagDisabled: r }) {
|
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
320
|
if (t === "" && e.inputValue === "") {
|
|
321
|
-
const c = a.modelValue.length - 1,
|
|
322
|
-
if (
|
|
321
|
+
const c = a.modelValue.length - 1, m = a.modelValue[c];
|
|
322
|
+
if (m && o(m))
|
|
323
323
|
return;
|
|
324
|
-
C(e, !1), d(
|
|
325
|
-
const
|
|
326
|
-
F({ emit: n, state: e, nextTick:
|
|
324
|
+
C(e, !1), d(m);
|
|
325
|
+
const b = e.innerModelValue.slice(0, a.modelValue.length - 1);
|
|
326
|
+
F({ emit: n, state: e, nextTick: r, newValue: b });
|
|
327
327
|
}
|
|
328
328
|
t = e.inputValue, (i = (f = (u = e == null ? void 0 : e.instance) == null ? void 0 : u.refs) == null ? void 0 : f.inputRef) != null && i.$el && e.instance.refs.inputRef.$el.click();
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
|
-
const
|
|
333
|
+
const re = (a, e, n) => {
|
|
334
334
|
var t, d;
|
|
335
|
-
const
|
|
336
|
-
return
|
|
335
|
+
const r = (t = pe(a, n)) == null ? void 0 : t.getTime(), o = (d = pe(e, n)) == null ? void 0 : d.getTime();
|
|
336
|
+
return r == null || isNaN(r) || o == null || isNaN(o) ? NaN : r < o ? -1 : r > o ? 1 : 0;
|
|
337
337
|
}, le = (a, e) => {
|
|
338
|
-
var
|
|
338
|
+
var o;
|
|
339
339
|
const n = { ...a.formErrors };
|
|
340
|
-
let
|
|
340
|
+
let r = !0;
|
|
341
341
|
for (const t of e) {
|
|
342
|
-
const d = (
|
|
342
|
+
const d = (o = a.formRules) == null ? void 0 : o[t];
|
|
343
343
|
if (!d) {
|
|
344
344
|
n[t] = "";
|
|
345
345
|
continue;
|
|
346
346
|
}
|
|
347
|
-
const
|
|
347
|
+
const s = a[t];
|
|
348
348
|
let l = "";
|
|
349
|
-
d.required && (
|
|
349
|
+
d.required && (s == null || s === "" || Array.isArray(s) && s.length === 0) && (l = d.message || ""), !l && typeof d.validator == "function" && d.validator({}, s, (p) => {
|
|
350
350
|
p && (l = p.message || "");
|
|
351
|
-
}), n[t] = l, l && (
|
|
351
|
+
}), n[t] = l, l && (r = !1);
|
|
352
352
|
}
|
|
353
|
-
return a.formErrors = n,
|
|
353
|
+
return a.formErrors = n, r;
|
|
354
354
|
}, $t = (a, e) => {
|
|
355
355
|
const n = { ...a.formErrors };
|
|
356
|
-
for (const
|
|
357
|
-
n[
|
|
356
|
+
for (const r of e)
|
|
357
|
+
n[r] = "";
|
|
358
358
|
a.formErrors = n;
|
|
359
359
|
}, Lt = async (a, e, n) => {
|
|
360
|
-
const { prevItem:
|
|
361
|
-
let
|
|
360
|
+
const { prevItem: r, inputEditValue: o } = e, { operators: t } = r, d = me(r);
|
|
361
|
+
let s = null;
|
|
362
362
|
if (le(e, ["inputEditValue"])) {
|
|
363
363
|
let p = null;
|
|
364
364
|
const u = e.operatorValue && t ? { operator: e.operatorValue } : null;
|
|
365
|
-
let f =
|
|
365
|
+
let f = o;
|
|
366
366
|
const i = {};
|
|
367
|
-
if (Array.isArray(
|
|
368
|
-
i.options = [], f = "",
|
|
369
|
-
const
|
|
370
|
-
if (f = f ? `${f} | ${
|
|
371
|
-
const h =
|
|
372
|
-
i.options.push({ label:
|
|
367
|
+
if (Array.isArray(o))
|
|
368
|
+
i.options = [], f = "", o.forEach((c) => {
|
|
369
|
+
const m = e.currentEditValue.find((h) => h.label === c), b = (m == null ? void 0 : m.label) || c;
|
|
370
|
+
if (f = f ? `${f} | ${b}` : b, m) {
|
|
371
|
+
const h = q(n, r, m);
|
|
372
|
+
i.options.push({ label: b, ...h });
|
|
373
373
|
} else
|
|
374
|
-
i.options.push({ label:
|
|
374
|
+
i.options.push({ label: b });
|
|
375
375
|
});
|
|
376
376
|
else if (Array.isArray(e.currentEditValue)) {
|
|
377
|
-
const c = e.currentEditValue.find((
|
|
378
|
-
p =
|
|
377
|
+
const c = e.currentEditValue.find((m) => m.label === f);
|
|
378
|
+
p = q(n, r, c);
|
|
379
379
|
}
|
|
380
|
-
|
|
380
|
+
s = U({ ...d, label: e.selectValue, ...u, value: f, ...p, ...i });
|
|
381
381
|
}
|
|
382
|
-
return
|
|
383
|
-
},
|
|
384
|
-
const { prevItem:
|
|
382
|
+
return s;
|
|
383
|
+
}, ze = async (a, e, n) => {
|
|
384
|
+
const { prevItem: r } = e, o = `min${r.field}`, t = `max${r.field}`, d = e[o], s = e[t], p = le(e, [o, t]);
|
|
385
385
|
let u = null;
|
|
386
386
|
if (p) {
|
|
387
|
-
const { field: f, label: i, unit: c, type:
|
|
388
|
-
let
|
|
389
|
-
d &&
|
|
390
|
-
const
|
|
391
|
-
u =
|
|
387
|
+
const { field: f, label: i, unit: c, type: m, operators: b } = r, h = c ? `${i}(${c})` : i;
|
|
388
|
+
let V = "";
|
|
389
|
+
d && s ? V = `${d}-${s}` : V = d ? `≥${d}` : `≤${s}`;
|
|
390
|
+
const w = q(n, r, r), I = e.operatorValue && b ? { operator: e.operatorValue } : null;
|
|
391
|
+
u = U({ type: m, field: f, label: h, value: V, ...w, start: d, end: s, ...I });
|
|
392
392
|
}
|
|
393
393
|
return u;
|
|
394
|
-
},
|
|
395
|
-
const { prevItem:
|
|
394
|
+
}, ye = async (a, e, n, r) => {
|
|
395
|
+
const { prevItem: o, startDate: t, endDate: d, startDateTime: s, endDateTime: l } = e;
|
|
396
396
|
let p = null, u = null, f = null, i = null;
|
|
397
|
-
if (
|
|
398
|
-
const { operators:
|
|
397
|
+
if (r ? (p = s, u = l, i = ["startDateTime", "endDateTime"]) : (p = t, u = d, i = ["startDate", "endDate"]), le(e, i)) {
|
|
398
|
+
const { operators: m } = o, b = me(o);
|
|
399
399
|
let h = "";
|
|
400
|
-
const
|
|
400
|
+
const V = o.format || (r ? e.datetimeRangeFormat : e.dateRangeFormat);
|
|
401
401
|
if (p && u) {
|
|
402
|
-
if (
|
|
402
|
+
if (re(p, u, V) > 0)
|
|
403
403
|
return;
|
|
404
|
-
|
|
404
|
+
re(p, u, V) === 0 ? h = p : h = `${p}-${u}`;
|
|
405
405
|
} else
|
|
406
406
|
h = p ? `≥${p}` : `≤${u}`;
|
|
407
|
-
const
|
|
408
|
-
f =
|
|
407
|
+
const w = q(n, o, o), I = e.operatorValue && m ? { operator: e.operatorValue } : null;
|
|
408
|
+
f = U({ ...b, value: h, start: p, end: u, ...w, ...I });
|
|
409
409
|
}
|
|
410
410
|
return f;
|
|
411
|
-
},
|
|
412
|
-
const { prevItem:
|
|
411
|
+
}, Ke = (a, e, n) => {
|
|
412
|
+
const { prevItem: r } = a, { field: o, start: t, end: d, min: s = r.min, max: l = r.max } = e, p = `min${o}`, u = `max${o}`;
|
|
413
413
|
(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] = d;
|
|
414
|
-
const { curMinNumVar: f, curMaxNumVar: i } = a, c = j(
|
|
415
|
-
c ||
|
|
416
|
-
validator: (
|
|
417
|
-
const
|
|
418
|
-
!
|
|
414
|
+
const { curMinNumVar: f, curMaxNumVar: i } = a, c = j(s), m = j(l);
|
|
415
|
+
c || m ? (a.formRules[f] = {
|
|
416
|
+
validator: (b, h, V) => {
|
|
417
|
+
const w = j(h);
|
|
418
|
+
!w && j(a[i]) || w && (c && !m && h >= s || !c && m && h <= l || h >= s && h <= l) ? V() : (a.numberShowMessage = !!(h || a[i]), V(new Error(n("tvp.tvpSearchbox.rangeMinErr", [s, l]))));
|
|
419
419
|
}
|
|
420
420
|
}, a.formRules[i] = {
|
|
421
|
-
validator: (
|
|
422
|
-
const
|
|
423
|
-
!
|
|
421
|
+
validator: (b, h, V) => {
|
|
422
|
+
const w = j(a[f]), I = w && s < a[f] ? Number(a[f]) : s, T = j(I), g = j(h);
|
|
423
|
+
!g && w || g && (T && !m && h >= I || !T && m && h <= l || h >= I && h <= l) ? V() : V(!g && !w ? new Error(n("tvp.tvpSearchbox.rangeNumberTitle")) : new Error(n("tvp.tvpSearchbox.rangeMaxErr")));
|
|
424
424
|
}
|
|
425
425
|
}) : a.formRules[i] = {
|
|
426
|
-
validator: (
|
|
427
|
-
const
|
|
428
|
-
|
|
426
|
+
validator: (b, h, V) => {
|
|
427
|
+
const w = a[f], I = j(h), T = j(w);
|
|
428
|
+
I && !T || !I && T || I && T && h >= Number(w) ? V() : V(!I && !T ? new Error(n("tvp.tvpSearchbox.rangeNumberTitle")) : new Error(n("tvp.tvpSearchbox.rangeMaxErr")));
|
|
429
429
|
}
|
|
430
430
|
};
|
|
431
431
|
};
|
|
432
|
-
function Nt({ props: a, emit: e, state: n, t:
|
|
433
|
-
const
|
|
434
|
-
var y,
|
|
435
|
-
const { start: _, end:
|
|
436
|
-
if (n.backupList =
|
|
437
|
-
|
|
438
|
-
else if (
|
|
432
|
+
function Nt({ props: a, emit: e, state: n, t: r, format: o, nextTick: t, vm: d, cancelHandleInput: s, selectFirstMap: l }) {
|
|
433
|
+
const p = d || n.instance, u = (g) => {
|
|
434
|
+
var y, S, E;
|
|
435
|
+
const { start: _, end: v, type: x } = g;
|
|
436
|
+
if (n.backupList = g.options, x === "numRange")
|
|
437
|
+
Ke(n, g, r);
|
|
438
|
+
else if (x === "dateRange") {
|
|
439
439
|
const { dateRangeFormat: k } = n;
|
|
440
440
|
if (!n.startDate && _) {
|
|
441
|
-
const
|
|
442
|
-
n.startDate = n.endDate <
|
|
441
|
+
const D = o(_, k);
|
|
442
|
+
n.startDate = n.endDate < D ? null : D;
|
|
443
443
|
}
|
|
444
|
-
if (!n.endDate &&
|
|
445
|
-
const
|
|
446
|
-
n.endDate =
|
|
444
|
+
if (!n.endDate && v) {
|
|
445
|
+
const D = o(v, k);
|
|
446
|
+
n.endDate = D < n.startDate ? null : D;
|
|
447
447
|
}
|
|
448
|
-
} else if (
|
|
448
|
+
} else if (x === "datetimeRange") {
|
|
449
449
|
const { datetimeRangeFormat: k } = n;
|
|
450
450
|
if (!n.startDateTime && _) {
|
|
451
|
-
const
|
|
452
|
-
n.startDateTime = n.endDateTime <
|
|
451
|
+
const D = o(_, k);
|
|
452
|
+
n.startDateTime = n.endDateTime < D ? null : D;
|
|
453
453
|
}
|
|
454
|
-
if (!n.endDateTime &&
|
|
455
|
-
const
|
|
456
|
-
n.endDateTime =
|
|
454
|
+
if (!n.endDateTime && v) {
|
|
455
|
+
const D = o(v, k);
|
|
456
|
+
n.endDateTime = D < n.startDateTime ? null : D;
|
|
457
457
|
}
|
|
458
458
|
} else
|
|
459
|
-
n.backupList &&
|
|
460
|
-
z(n, k.label) && n.checkboxGroup.push(`${
|
|
459
|
+
n.backupList && x === "checkbox" && (n.filterList = n.backupList, n.checkboxGroup = [], (y = n.backupList) == null || y.forEach((k) => {
|
|
460
|
+
z(n, k.label) && n.checkboxGroup.push(`${g.label}${k.label}`), k.isFilter = !1;
|
|
461
461
|
}));
|
|
462
|
-
(
|
|
462
|
+
(x === "dateRange" || x === "datetimeRange") && t(() => {
|
|
463
463
|
$t(n, ["startDate", "endDate", "startDateTime", "endDateTime"]);
|
|
464
|
-
}),
|
|
464
|
+
}), x !== "checkbox" && ((S = n.backupList) != null && S.length) && ((E = n.backupList) == null || E.forEach((k) => {
|
|
465
465
|
k.isFilter = !1, k.isChecked = z(n, k.label);
|
|
466
|
-
})), n.currentOperators = null, !n.backupList && !["dateRange", "datetimeRange", "numRange", "custom"].includes(
|
|
467
|
-
},
|
|
468
|
-
var
|
|
469
|
-
const { field: _, label:
|
|
470
|
-
n.propItem = { ...n.propItem, label:
|
|
471
|
-
const
|
|
472
|
-
n.prevItem =
|
|
473
|
-
const { operators: y } =
|
|
474
|
-
y != null && y.length ? (n.operatorValue = "", n.currentOperators = y, C(n)) : (n.operatorValue = ":",
|
|
475
|
-
},
|
|
476
|
-
n.operatorValue =
|
|
477
|
-
},
|
|
478
|
-
const { replace: y, operators:
|
|
479
|
-
let
|
|
466
|
+
})), n.currentOperators = null, !n.backupList && !["dateRange", "datetimeRange", "numRange", "custom"].includes(x) ? C(n, !1) : C(n);
|
|
467
|
+
}, f = (g) => {
|
|
468
|
+
var S;
|
|
469
|
+
const { field: _, label: v } = g;
|
|
470
|
+
n.propItem = { ...n.propItem, label: v }, e("first-level-select", _);
|
|
471
|
+
const x = (S = p.$refs) == null ? void 0 : S.inputRef;
|
|
472
|
+
n.prevItem = g, n.backupPrevItem = g;
|
|
473
|
+
const { operators: y } = g;
|
|
474
|
+
y != null && y.length ? (n.operatorValue = "", n.currentOperators = y, C(n)) : (n.operatorValue = ":", u(g)), n.inputValue = "", x.focus();
|
|
475
|
+
}, i = (g) => {
|
|
476
|
+
n.operatorValue = g, u(n.prevItem);
|
|
477
|
+
}, c = (g, _, v, x) => {
|
|
478
|
+
const { replace: y, operators: S, mergeTag: E } = g, k = me(g), { indexMap: D } = n, $ = D.get(v), H = q(a, g, _), K = n.operatorValue && S ? { operator: n.operatorValue } : null;
|
|
479
|
+
let M = null;
|
|
480
480
|
if (E) {
|
|
481
|
-
const
|
|
482
|
-
if (
|
|
483
|
-
const te = `${n.innerModelValue[
|
|
484
|
-
|
|
481
|
+
const B = { label: x, ...H };
|
|
482
|
+
if ($ >= 0) {
|
|
483
|
+
const te = `${n.innerModelValue[$].value} | ${x}`, Z = [...n.innerModelValue[$].options, B];
|
|
484
|
+
M = U({ ...n.innerModelValue[$], value: te, options: Z });
|
|
485
485
|
} else
|
|
486
|
-
|
|
486
|
+
M = U({ ...k, label: v, value: x, options: [B] });
|
|
487
487
|
} else
|
|
488
|
-
|
|
489
|
-
if (z(n,
|
|
490
|
-
|
|
488
|
+
M = U({ ...k, label: v, value: x, ...H, ...K });
|
|
489
|
+
if (z(n, x, v)) {
|
|
490
|
+
he(n);
|
|
491
491
|
return;
|
|
492
492
|
}
|
|
493
493
|
C(n, !1);
|
|
494
494
|
const P = G(n.innerModelValue);
|
|
495
|
-
let
|
|
496
|
-
if ((y || E) &&
|
|
497
|
-
const
|
|
498
|
-
|
|
495
|
+
let W = [];
|
|
496
|
+
if ((y || E) && $ >= 0) {
|
|
497
|
+
const B = [...n.innerModelValue];
|
|
498
|
+
B.splice($, 1), W = [...B, M];
|
|
499
499
|
} else
|
|
500
|
-
|
|
501
|
-
F({ emit: e, state: n, nextTick: t, newValue:
|
|
502
|
-
},
|
|
503
|
-
var _,
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
var
|
|
507
|
-
C(n, !1), _ && (n.prevItem =
|
|
508
|
-
const { prevItem:
|
|
509
|
-
if (!z(n,
|
|
510
|
-
const E = n.propItem.label ||
|
|
511
|
-
|
|
500
|
+
W = [...n.innerModelValue, M];
|
|
501
|
+
F({ emit: e, state: n, nextTick: t, newValue: W, oldValue: P });
|
|
502
|
+
}, m = (g) => {
|
|
503
|
+
var _, v;
|
|
504
|
+
I(), (v = (_ = p.$refs) == null ? void 0 : _.inputRef) == null || v.focus();
|
|
505
|
+
}, b = (g, _ = !1) => {
|
|
506
|
+
var S;
|
|
507
|
+
C(n, !1), _ && (n.prevItem = g, n.backupPrevItem = g);
|
|
508
|
+
const { prevItem: v } = n, x = g.value || g.label, y = (S = p.$refs) == null ? void 0 : S.inputRef;
|
|
509
|
+
if (!z(n, x)) {
|
|
510
|
+
const E = n.propItem.label || g.label;
|
|
511
|
+
c(v, g, E, x);
|
|
512
512
|
}
|
|
513
513
|
y.focus();
|
|
514
|
-
},
|
|
515
|
-
|
|
516
|
-
|
|
514
|
+
}, h = (g, _) => {
|
|
515
|
+
var v, x;
|
|
516
|
+
if (g.label) {
|
|
517
|
+
if (e("second-level-enter", _), _.type === "map") {
|
|
518
|
+
if (n.isShowTagKey) {
|
|
519
|
+
const E = (v = _.options) == null ? void 0 : v[0];
|
|
520
|
+
E && l(E, !0);
|
|
521
|
+
} else {
|
|
522
|
+
const E = (x = n.backupList) == null ? void 0 : x.find((k) => !k.isChecked);
|
|
523
|
+
E && l(E, !1);
|
|
524
|
+
}
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
if (!_.options || !_.options.length)
|
|
517
528
|
return;
|
|
518
|
-
const
|
|
519
|
-
if (!
|
|
529
|
+
const y = _.options[0];
|
|
530
|
+
if (!y)
|
|
520
531
|
return;
|
|
521
|
-
if (!a.modelValue.find((
|
|
522
|
-
const
|
|
523
|
-
|
|
532
|
+
if (!a.modelValue.find((E) => E.value === y.label)) {
|
|
533
|
+
const E = _.label, k = y.label;
|
|
534
|
+
c(_, y, E, k);
|
|
524
535
|
return;
|
|
525
536
|
}
|
|
526
537
|
} else
|
|
527
538
|
e("search", n.innerModelValue);
|
|
528
|
-
},
|
|
529
|
-
var y,
|
|
530
|
-
const
|
|
531
|
-
|
|
532
|
-
},
|
|
533
|
-
var
|
|
539
|
+
}, V = (g, _, v) => {
|
|
540
|
+
var y, S;
|
|
541
|
+
const x = (y = n.backupList) == null ? void 0 : y.find((E) => (E.value || E.label) === v);
|
|
542
|
+
g.type === "checkbox" && ((S = n.backupList) != null && S.length) && !x || c(g, x, _.label, v);
|
|
543
|
+
}, w = (g, _, v) => {
|
|
544
|
+
var x, y, S, E;
|
|
534
545
|
if (_.label) {
|
|
535
|
-
|
|
546
|
+
if (v.type === "map") {
|
|
547
|
+
n.isShowTagKey || c(v, void 0, _.label, n.propItem.value + g);
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
550
|
+
const { regexp: k, replace: D, type: $, mergeTag: H } = v, K = $ !== "checkbox" && D || $ === "checkbox" && H ? [g] : g.split(a.splitInputValue);
|
|
536
551
|
if (k) {
|
|
537
|
-
const
|
|
538
|
-
for (const P of
|
|
539
|
-
k.test(P) ?
|
|
540
|
-
|
|
541
|
-
invalidValues:
|
|
542
|
-
field:
|
|
543
|
-
label:
|
|
552
|
+
const M = [];
|
|
553
|
+
for (const P of K)
|
|
554
|
+
k.test(P) ? V(v, _, P) : M.push(P);
|
|
555
|
+
M.length > 0 && e("validate-error", {
|
|
556
|
+
invalidValues: M,
|
|
557
|
+
field: v.field,
|
|
558
|
+
label: v.label,
|
|
544
559
|
regexp: k.toString()
|
|
545
560
|
});
|
|
546
561
|
} else
|
|
547
|
-
for (const
|
|
548
|
-
|
|
562
|
+
for (const M of K)
|
|
563
|
+
V(v, _, M);
|
|
549
564
|
} else {
|
|
550
|
-
const { items: k, defaultField:
|
|
565
|
+
const { items: k, defaultField: D, defaultFieldReplace: $ } = a, H = k.find((L) => {
|
|
551
566
|
const { regexp: R } = L;
|
|
552
567
|
return R && R.test(n.inputValue);
|
|
553
|
-
}),
|
|
554
|
-
(
|
|
568
|
+
}), K = D ? k.find((L) => L.field === D) : n.allTypeAttri, M = H || K, P = !H && $ ? { ...M, replace: !0 } : M, { replace: W, type: B, mergeTag: te, regexp: Z } = P, ae = B !== "checkbox" && W || B === "checkbox" && te ? [g] : g.split(a.splitInputValue);
|
|
569
|
+
(x = M == null ? void 0 : M.options) != null && x.length && (n.backupList = [...M.options], (y = n.backupList) == null || y.forEach((L) => {
|
|
555
570
|
const R = L.value || L.label;
|
|
556
571
|
ae.includes(R) && (L.isChecked = !0);
|
|
557
572
|
}));
|
|
558
|
-
const ie =
|
|
559
|
-
if (
|
|
573
|
+
const ie = M.label;
|
|
574
|
+
if (Z) {
|
|
560
575
|
const L = [];
|
|
561
576
|
for (const R of ae)
|
|
562
|
-
if (
|
|
563
|
-
if (
|
|
577
|
+
if (Z.test(R)) {
|
|
578
|
+
if (B === "checkbox" && ((S = M == null ? void 0 : M.options) != null && S.length) && !n.backupList.find((be) => (be.value || be.label) === R))
|
|
564
579
|
continue;
|
|
565
|
-
|
|
580
|
+
c(P, {}, ie, R);
|
|
566
581
|
} else
|
|
567
582
|
L.push(R);
|
|
568
583
|
L.length > 0 && e("validate-error", {
|
|
569
584
|
invalidValues: L,
|
|
570
585
|
field: P.field,
|
|
571
586
|
label: P.label,
|
|
572
|
-
regexp:
|
|
587
|
+
regexp: Z.toString()
|
|
573
588
|
});
|
|
574
589
|
} else
|
|
575
590
|
for (const L of ae)
|
|
576
|
-
|
|
591
|
+
B === "checkbox" && ((E = M == null ? void 0 : M.options) != null && E.length) && !n.backupList.find((R) => (R.value || R.label) === L) || c(P, {}, ie, L);
|
|
577
592
|
}
|
|
578
|
-
},
|
|
579
|
-
const { inputValue:
|
|
580
|
-
if (
|
|
581
|
-
|
|
593
|
+
}, I = () => {
|
|
594
|
+
const { inputValue: g, propItem: _, prevItem: v } = n;
|
|
595
|
+
if (s && s(), !g)
|
|
596
|
+
h(_, v);
|
|
582
597
|
else {
|
|
583
|
-
const { maxlength:
|
|
584
|
-
if (
|
|
585
|
-
e("exceed",
|
|
598
|
+
const { maxlength: x } = a;
|
|
599
|
+
if (x && x < g.length) {
|
|
600
|
+
e("exceed", x);
|
|
586
601
|
return;
|
|
587
602
|
}
|
|
588
|
-
|
|
603
|
+
w(g, _, v);
|
|
589
604
|
}
|
|
590
605
|
};
|
|
591
|
-
return { selectPropItem:
|
|
606
|
+
return { selectPropItem: f, selectRadioItem: b, selectInputValue: m, createTag: I, helpClick: () => {
|
|
592
607
|
e("help");
|
|
593
|
-
}, setOperator:
|
|
608
|
+
}, setOperator: i };
|
|
594
609
|
}
|
|
595
|
-
const Rt = (a) => a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"),
|
|
610
|
+
const Rt = (a) => a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), _e = (a, e) => {
|
|
596
611
|
const n = [];
|
|
597
|
-
let
|
|
598
|
-
for (; (
|
|
599
|
-
const t =
|
|
600
|
-
t >
|
|
612
|
+
let r = 0, o;
|
|
613
|
+
for (; (o = a.exec(e)) !== null; ) {
|
|
614
|
+
const t = o.index, d = a.lastIndex;
|
|
615
|
+
t > r && n.push(e.slice(r, t)), n.push(e.slice(t, d)), r = d;
|
|
601
616
|
}
|
|
602
|
-
return
|
|
617
|
+
return r < e.length && n.push(e.slice(r)), n;
|
|
603
618
|
};
|
|
604
|
-
function Ot({ props: a, state: e, emit: n, nextTick:
|
|
605
|
-
const
|
|
619
|
+
function Ot({ props: a, state: e, emit: n, nextTick: r }) {
|
|
620
|
+
const o = async (u) => {
|
|
606
621
|
e.potentialOptions = await a.potentialOptions.getMatchList(u), C(e, !0);
|
|
607
|
-
}, d =
|
|
608
|
-
var
|
|
609
|
-
const { recordItems: f, propItem: i } = e, c = typeof u == "string" ? u : u && u.target && typeof u.target.value == "string" ? u.target.value : e.inputValue || "",
|
|
610
|
-
if (
|
|
611
|
-
n("exceed",
|
|
622
|
+
}, d = Dt((u) => {
|
|
623
|
+
var g, _, v, x;
|
|
624
|
+
const { recordItems: f, propItem: i } = e, c = typeof u == "string" ? u : u && u.target && typeof u.target.value == "string" ? u.target.value : e.inputValue || "", m = (g = String(c)) == null ? void 0 : g.trim(), { maxlength: b } = a;
|
|
625
|
+
if (b && b < m.length) {
|
|
626
|
+
n("exceed", b);
|
|
612
627
|
return;
|
|
613
628
|
}
|
|
614
|
-
if (
|
|
629
|
+
if (m.length === 0) {
|
|
615
630
|
l(), C(e);
|
|
616
631
|
return;
|
|
617
632
|
}
|
|
618
|
-
Object.keys(e.matchItems).forEach((
|
|
619
|
-
e.matchItems[
|
|
633
|
+
Object.keys(e.matchItems).forEach((y) => {
|
|
634
|
+
e.matchItems[y].attr = [], e.matchItems[y].attrValue = [];
|
|
620
635
|
});
|
|
621
|
-
const h = Rt(
|
|
622
|
-
if (
|
|
623
|
-
e.propItem = { ...e.propItem, label:
|
|
636
|
+
const h = Rt(m), V = new RegExp(h, "i"), w = i.label || !h ? null : f.find((y) => y.type === "map" && V.test(y.label));
|
|
637
|
+
if (w) {
|
|
638
|
+
e.propItem = { ...e.propItem, label: w.label }, e.inputValue = "", e.prevItem = w, e.backupPrevItem = w, e.backupList = w.options || [];
|
|
624
639
|
return;
|
|
625
640
|
}
|
|
626
|
-
e.filterList = (
|
|
627
|
-
const
|
|
641
|
+
e.filterList = (_ = e.backupList) == null ? void 0 : _.filter((y) => V.test(y.label) ? (delete y.isFilter, z(e, y.label) && e.checkboxGroup.push(`${e.prevItem.label}${y.label}`), !0) : (y.isFilter = !0, !1));
|
|
642
|
+
const I = new RegExp(h, "ig"), T = m.toLowerCase();
|
|
628
643
|
if (e.propItem.label) {
|
|
629
|
-
(
|
|
630
|
-
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
}), (
|
|
644
|
+
(v = e.backupList) == null || v.forEach((y) => {
|
|
645
|
+
y.hightlighStr = T;
|
|
646
|
+
const S = y.label;
|
|
647
|
+
V.test(S) ? (y.match = _e(I, S), y.isFilter = !1) : y.isFilter = !0;
|
|
648
|
+
}), (x = e.backupList) != null && x.length || m ? C(e) : C(e, !1);
|
|
634
649
|
return;
|
|
635
650
|
}
|
|
636
|
-
for (const
|
|
637
|
-
const { options:
|
|
638
|
-
if (
|
|
639
|
-
const
|
|
640
|
-
e.matchItems[
|
|
651
|
+
for (const y of f) {
|
|
652
|
+
const { options: S = [], groupKey: E = "0", ...k } = y, D = k.label;
|
|
653
|
+
if (V.test(D)) {
|
|
654
|
+
const $ = _e(I, D);
|
|
655
|
+
e.matchItems[E].attr.push({ ...y, match: $, hightlighStr: T });
|
|
641
656
|
}
|
|
642
|
-
for (const
|
|
643
|
-
const H = e.propItem.label ?
|
|
644
|
-
if (
|
|
645
|
-
const
|
|
646
|
-
e.matchItems[
|
|
647
|
-
|
|
648
|
-
...
|
|
649
|
-
options:
|
|
650
|
-
hightlighStr:
|
|
651
|
-
value:
|
|
652
|
-
match:
|
|
657
|
+
for (const $ of S) {
|
|
658
|
+
const H = e.propItem.label ? D : `${D}:${$.label}`;
|
|
659
|
+
if (V.test(H)) {
|
|
660
|
+
const K = _e(I, H);
|
|
661
|
+
e.matchItems[E].attrValue.push({
|
|
662
|
+
...$,
|
|
663
|
+
...k,
|
|
664
|
+
options: S,
|
|
665
|
+
hightlighStr: T,
|
|
666
|
+
value: $.label,
|
|
667
|
+
match: K
|
|
653
668
|
});
|
|
654
669
|
}
|
|
655
670
|
}
|
|
656
671
|
}
|
|
657
|
-
h && a.potentialOptions && a.potentialOptions.getMatchList ?
|
|
658
|
-
}, 500),
|
|
672
|
+
h && a.potentialOptions && a.potentialOptions.getMatchList ? o(h) : C(e);
|
|
673
|
+
}, 500), s = () => {
|
|
659
674
|
d.cancel && d.cancel();
|
|
660
675
|
}, l = () => {
|
|
661
676
|
var u;
|
|
@@ -664,159 +679,159 @@ function Ot({ props: a, state: e, emit: n, nextTick: s }) {
|
|
|
664
679
|
return {
|
|
665
680
|
handleInput: d,
|
|
666
681
|
selectFirstMap: (u, f) => {
|
|
667
|
-
var
|
|
668
|
-
const { options: i } = u, { prevItem: c, propItem:
|
|
682
|
+
var b;
|
|
683
|
+
const { options: i } = u, { prevItem: c, propItem: m } = e;
|
|
669
684
|
if (i)
|
|
670
|
-
C(e, !1), e.propItem = { ...e.propItem, value: `${u.label}=` }, e.isShowTagKey = !1, e.inputValue = "", e.backupList = u.options || [], l(), (
|
|
671
|
-
const
|
|
672
|
-
h.isChecked = z(e,
|
|
685
|
+
C(e, !1), e.propItem = { ...e.propItem, value: `${u.label}=` }, e.isShowTagKey = !1, e.inputValue = "", e.backupList = u.options || [], l(), (b = e.backupList) == null || b.forEach((h) => {
|
|
686
|
+
const V = e.propItem.value + h.label;
|
|
687
|
+
h.isChecked = z(e, V);
|
|
673
688
|
});
|
|
674
689
|
else {
|
|
675
690
|
if (u.isChecked)
|
|
676
691
|
return;
|
|
677
692
|
C(e, !1), e.isShowTagKey = !0, l();
|
|
678
|
-
const { field: h, type:
|
|
679
|
-
F({ emit: n, state: e, nextTick:
|
|
693
|
+
const { field: h, type: V } = c, w = m.value + u.label, I = q(a, c, u), g = [U({ type: V, field: h, label: m.label, value: w, ...I })];
|
|
694
|
+
F({ emit: n, state: e, nextTick: r, tagList: g });
|
|
680
695
|
}
|
|
681
696
|
f && C(e);
|
|
682
697
|
},
|
|
683
|
-
cancelHandleInput:
|
|
698
|
+
cancelHandleInput: s
|
|
684
699
|
};
|
|
685
700
|
}
|
|
686
|
-
function Pt({ props: a, state: e, emit: n, nextTick:
|
|
701
|
+
function Pt({ props: a, state: e, emit: n, nextTick: r }) {
|
|
687
702
|
return {
|
|
688
703
|
selectCheckbox: (t) => {
|
|
689
704
|
var u, f;
|
|
690
705
|
C(e, !1);
|
|
691
|
-
const { checkboxGroup: d, prevItem:
|
|
706
|
+
const { checkboxGroup: d, prevItem: s, propItem: l } = e, p = me(s);
|
|
692
707
|
if (t) {
|
|
693
|
-
const i = [], c = G(e.innerModelValue), { mergeTag:
|
|
694
|
-
if (
|
|
695
|
-
let
|
|
696
|
-
const
|
|
697
|
-
if (
|
|
698
|
-
const { label:
|
|
699
|
-
if (d.includes(
|
|
700
|
-
delete
|
|
701
|
-
const
|
|
702
|
-
|
|
708
|
+
const i = [], c = G(e.innerModelValue), { mergeTag: m, operators: b, label: h } = s;
|
|
709
|
+
if (m) {
|
|
710
|
+
let V = "";
|
|
711
|
+
const w = [], { indexMap: I } = e, T = I.get(h);
|
|
712
|
+
if (T !== void 0 && e.innerModelValue.splice(T, 1), (u = e.backupList) == null || u.forEach((g) => {
|
|
713
|
+
const { label: _ } = g, v = `${h}${_}`;
|
|
714
|
+
if (d.includes(v)) {
|
|
715
|
+
delete g.isFilter;
|
|
716
|
+
const y = q(a, s, g), S = { label: g.label, ...y };
|
|
717
|
+
V += V ? ` | ${_}` : _, w.push(S);
|
|
703
718
|
}
|
|
704
|
-
}),
|
|
705
|
-
const
|
|
706
|
-
i.push(
|
|
719
|
+
}), w.length > 0) {
|
|
720
|
+
const g = { ...p, value: V, options: w };
|
|
721
|
+
i.push(g);
|
|
707
722
|
}
|
|
708
723
|
} else {
|
|
709
|
-
const { valueMap:
|
|
710
|
-
if ((f = e.backupList) == null || f.forEach((
|
|
711
|
-
const { label:
|
|
712
|
-
if (
|
|
713
|
-
const
|
|
714
|
-
i.push(
|
|
715
|
-
} else if (!
|
|
716
|
-
|
|
717
|
-
const
|
|
718
|
-
|
|
724
|
+
const { valueMap: V } = e, w = [];
|
|
725
|
+
if ((f = e.backupList) == null || f.forEach((I) => {
|
|
726
|
+
const { label: T } = I, g = `${h}${T}`, _ = d.includes(g);
|
|
727
|
+
if (_ && !z(e, T)) {
|
|
728
|
+
const v = q(a, s, I), x = e.operatorValue && b ? { operator: e.operatorValue } : null, y = U({ ...p, label: l.label, value: T, ...v, ...x });
|
|
729
|
+
i.push(y), I.isChecked = !0;
|
|
730
|
+
} else if (!_ && z(e, T)) {
|
|
731
|
+
I.isChecked = !1;
|
|
732
|
+
const v = V.get(g);
|
|
733
|
+
w.push(v);
|
|
719
734
|
}
|
|
720
|
-
}),
|
|
721
|
-
const
|
|
722
|
-
F({ emit: n, state: e, nextTick:
|
|
735
|
+
}), w.length) {
|
|
736
|
+
const I = e.innerModelValue.filter((T, g) => T && !w.includes(g));
|
|
737
|
+
F({ emit: n, state: e, nextTick: r, newValue: I, oldValue: c });
|
|
723
738
|
return;
|
|
724
739
|
}
|
|
725
740
|
}
|
|
726
|
-
F({ emit: n, state: e, nextTick:
|
|
741
|
+
F({ emit: n, state: e, nextTick: r, tagList: i, oldValue: c });
|
|
727
742
|
} else
|
|
728
743
|
e.propItem = { ...l, label: "" }, e.inputValue = "";
|
|
729
744
|
}
|
|
730
745
|
};
|
|
731
746
|
}
|
|
732
|
-
const
|
|
747
|
+
const J = (a) => {
|
|
733
748
|
const e = new Date(a);
|
|
734
749
|
return e.setHours(0, 0, 0, 0), e.getTime();
|
|
735
750
|
};
|
|
736
|
-
function Ft({ props: a, state: e, emit: n, nextTick:
|
|
737
|
-
const t =
|
|
751
|
+
function Ft({ props: a, state: e, emit: n, nextTick: r, vm: o }) {
|
|
752
|
+
const t = o || e.instance, d = async (u, f = !1) => {
|
|
738
753
|
if (!u) {
|
|
739
754
|
e.propItem = { label: "" };
|
|
740
755
|
return;
|
|
741
756
|
}
|
|
742
|
-
const i = await
|
|
757
|
+
const i = await ye(t, e, a, f);
|
|
743
758
|
if (i) {
|
|
744
759
|
C(e, !1);
|
|
745
|
-
const c = a.modelValue.filter((
|
|
746
|
-
c.push(i), F({ emit: n, state: e, nextTick:
|
|
760
|
+
const c = a.modelValue.filter((m) => m.type !== i.type || m.field !== i.field);
|
|
761
|
+
c.push(i), F({ emit: n, state: e, nextTick: r, newValue: c });
|
|
747
762
|
} else
|
|
748
763
|
C(e);
|
|
749
|
-
},
|
|
750
|
-
const { maxTimeLength: c = 0, min:
|
|
764
|
+
}, s = () => C(e), l = (u, f, i) => {
|
|
765
|
+
const { maxTimeLength: c = 0, min: m, max: b } = e.prevItem, h = e.prevItem.type === "datetimeRange", V = m ? typeof m == "number" ? m : m.getTime() : null, w = b ? typeof b == "number" ? b : b.getTime() : null, I = V == null ? null : h ? J(V) : V, T = e[i], g = u.getTime();
|
|
751
766
|
if (c > 0)
|
|
752
|
-
if (
|
|
753
|
-
if (i &&
|
|
754
|
-
const
|
|
755
|
-
return
|
|
767
|
+
if (m || b)
|
|
768
|
+
if (i && T) {
|
|
769
|
+
const _ = new Date(T).getTime(), v = !m && b ? _ - c : Math.max(V, _ - c), x = h ? J(v) : v;
|
|
770
|
+
return g < x || g > _;
|
|
756
771
|
} else if (!i && f) {
|
|
757
|
-
const
|
|
758
|
-
return
|
|
772
|
+
const _ = new Date(f).getTime(), v = m && !b ? _ + c : Math.min(w, _ + c), x = h ? J(_) : _;
|
|
773
|
+
return g < x || g > v;
|
|
759
774
|
} else
|
|
760
|
-
return
|
|
761
|
-
else if (i &&
|
|
762
|
-
const
|
|
763
|
-
return
|
|
775
|
+
return I && g < I || w && g > w;
|
|
776
|
+
else if (i && T) {
|
|
777
|
+
const _ = new Date(T).getTime(), v = _ - c, x = h ? J(v) : v;
|
|
778
|
+
return g < x || g > _;
|
|
764
779
|
} else if (!i && f) {
|
|
765
|
-
const
|
|
766
|
-
return
|
|
780
|
+
const _ = new Date(f).getTime(), v = _ + c, x = h ? J(_) : _;
|
|
781
|
+
return g < x || g > v;
|
|
767
782
|
} else
|
|
768
783
|
return !1;
|
|
769
|
-
else if (
|
|
770
|
-
if (i &&
|
|
771
|
-
const
|
|
772
|
-
return
|
|
784
|
+
else if (m || b)
|
|
785
|
+
if (i && T) {
|
|
786
|
+
const _ = new Date(T).getTime();
|
|
787
|
+
return I && g < I || g > _;
|
|
773
788
|
} else if (!i && f) {
|
|
774
|
-
const
|
|
775
|
-
return
|
|
789
|
+
const _ = new Date(f).getTime(), v = h ? J(_) : _;
|
|
790
|
+
return g < v || w && g > w;
|
|
776
791
|
} else
|
|
777
|
-
return
|
|
778
|
-
else if (i &&
|
|
779
|
-
const
|
|
780
|
-
return
|
|
792
|
+
return I && g < I || w && g > w;
|
|
793
|
+
else if (i && T) {
|
|
794
|
+
const _ = new Date(T).getTime();
|
|
795
|
+
return g > _;
|
|
781
796
|
} else if (!i && f) {
|
|
782
|
-
const
|
|
783
|
-
return
|
|
797
|
+
const _ = new Date(f).getTime(), v = h ? J(_) : _;
|
|
798
|
+
return g < v;
|
|
784
799
|
} else
|
|
785
800
|
return !1;
|
|
786
801
|
};
|
|
787
802
|
return {
|
|
788
803
|
onConfirmDate: d,
|
|
789
|
-
handleDateShow:
|
|
804
|
+
handleDateShow: s,
|
|
790
805
|
pickerOptions: (u, f = "") => {
|
|
791
|
-
const i = (h) => l(h, u, f), c = e.prevItem.pickerOptions || {},
|
|
792
|
-
return
|
|
806
|
+
const i = (h) => l(h, u, f), c = e.prevItem.pickerOptions || {}, m = { ...c }, b = c.disabledDate;
|
|
807
|
+
return m.disabledDate = typeof b == "function" ? (h) => i(h) || b(h) : i, m;
|
|
793
808
|
}
|
|
794
809
|
};
|
|
795
810
|
}
|
|
796
|
-
function
|
|
797
|
-
const d = t || e.instance,
|
|
811
|
+
function Ht({ props: a, state: e, t: n, emit: r, nextTick: o, vm: t }) {
|
|
812
|
+
const d = t || e.instance, s = async (u) => {
|
|
798
813
|
if (!u) {
|
|
799
814
|
e.propItem = { ...e.propItem, label: "" };
|
|
800
815
|
return;
|
|
801
816
|
}
|
|
802
|
-
const f = await
|
|
817
|
+
const f = await ze(d, e, a);
|
|
803
818
|
if (f) {
|
|
804
819
|
C(e, !1);
|
|
805
820
|
const i = a.modelValue.filter((c) => c.type !== f.type || c.field !== f.field);
|
|
806
|
-
i.push(f), F({ emit:
|
|
821
|
+
i.push(f), F({ emit: r, state: e, nextTick: o, newValue: i });
|
|
807
822
|
} else
|
|
808
823
|
C(e);
|
|
809
824
|
}, l = (u, f, i) => {
|
|
810
825
|
const { maxTimeLength: c = 0 } = u;
|
|
811
826
|
return {
|
|
812
827
|
[f]: {
|
|
813
|
-
validator: (
|
|
814
|
-
c > 0 && !
|
|
828
|
+
validator: (m, b, h) => {
|
|
829
|
+
c > 0 && !b ? h(new Error(n("tvp.tvpSearchbox.notBeNull"))) : !b && !e[i] ? h(new Error(n("tvp.tvpSearchbox.rangeDateTitle"))) : h();
|
|
815
830
|
}
|
|
816
831
|
},
|
|
817
832
|
[i]: {
|
|
818
|
-
validator: (
|
|
819
|
-
c > 0 && !
|
|
833
|
+
validator: (m, b, h) => {
|
|
834
|
+
c > 0 && !b ? h(new Error(n("tvp.tvpSearchbox.notBeNull"))) : !b && !e[f] ? h(new Error(n("tvp.tvpSearchbox.rangeDateTitle"))) : b && e[f] && re(b, e[f]) < 0 ? h(new Error(n("tvp.tvpSearchbox.rangeDateMaxErr"))) : h();
|
|
820
835
|
}
|
|
821
836
|
}
|
|
822
837
|
};
|
|
@@ -833,135 +848,165 @@ function At({ props: a, state: e, t: n, emit: s, nextTick: r, vm: t }) {
|
|
|
833
848
|
required: !0,
|
|
834
849
|
message: n("tvp.tvpSearchbox.notBeNull"),
|
|
835
850
|
trigger: ["change", "blur"]
|
|
851
|
+
}, e.formRules.mapEditKey = {
|
|
852
|
+
required: !0,
|
|
853
|
+
message: n("tvp.tvpSearchbox.notBeNull"),
|
|
854
|
+
trigger: ["change"]
|
|
855
|
+
}, e.formRules.mapEditValue = {
|
|
856
|
+
required: !0,
|
|
857
|
+
message: n("tvp.tvpSearchbox.notBeNull"),
|
|
858
|
+
trigger: ["change"]
|
|
836
859
|
});
|
|
837
860
|
},
|
|
838
|
-
sizeChange:
|
|
861
|
+
sizeChange: s
|
|
839
862
|
};
|
|
840
863
|
}
|
|
841
|
-
function
|
|
842
|
-
const
|
|
843
|
-
var
|
|
844
|
-
const { operator: m, value:
|
|
845
|
-
if (
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
864
|
+
function Bt({ props: a, state: e, t: n, nextTick: r, format: o, emit: t, vm: d }) {
|
|
865
|
+
const s = (i, c = !1) => {
|
|
866
|
+
var _;
|
|
867
|
+
const { operator: m, value: b, start: h, end: V } = i, { options: w, operators: I, type: T, mergeTag: g } = e.prevItem;
|
|
868
|
+
if (c) {
|
|
869
|
+
const v = {
|
|
870
|
+
inputEditValue: g ? [] : "",
|
|
871
|
+
currentEditSelectTags: [],
|
|
872
|
+
currentEditValue: [],
|
|
873
|
+
startDate: null,
|
|
874
|
+
endDate: null,
|
|
875
|
+
startDateTime: null,
|
|
876
|
+
endDateTime: null,
|
|
877
|
+
formErrors: {},
|
|
878
|
+
mapEditKey: "",
|
|
879
|
+
mapEditValue: ""
|
|
880
|
+
};
|
|
881
|
+
e.curMinNumVar && (v[e.curMinNumVar] = ""), e.curMaxNumVar && (v[e.curMaxNumVar] = ""), Object.assign(e, v);
|
|
882
|
+
}
|
|
883
|
+
if (T !== "custom") {
|
|
884
|
+
if (T === "map") {
|
|
885
|
+
if (!c) {
|
|
886
|
+
const v = String(i.value || ""), x = v.indexOf("=");
|
|
887
|
+
e.mapEditKey = x >= 0 ? v.substring(0, x) : "", e.mapEditValue = x >= 0 ? v.substring(x + 1) : "";
|
|
888
|
+
}
|
|
889
|
+
} else if (T === "numRange")
|
|
890
|
+
Ke(e, i, n);
|
|
891
|
+
else if (T === "dateRange") {
|
|
892
|
+
const { dateRangeFormat: v } = e;
|
|
893
|
+
e.startDate = o(h, v), e.endDate = o(V, v);
|
|
894
|
+
} else if (T === "datetimeRange") {
|
|
895
|
+
const { datetimeRangeFormat: v } = e;
|
|
896
|
+
e.startDateTime = o(h, v), e.endDateTime = o(V, v);
|
|
854
897
|
} else {
|
|
855
898
|
if (g) {
|
|
856
|
-
const
|
|
857
|
-
e.inputEditValue =
|
|
899
|
+
const v = c ? [] : ((_ = i.options) == null ? void 0 : _.flatMap((x) => x.label)) || [];
|
|
900
|
+
e.inputEditValue = v, e.currentEditSelectTags = v;
|
|
858
901
|
} else
|
|
859
|
-
e.inputEditValue =
|
|
860
|
-
e.currentEditValue =
|
|
902
|
+
e.inputEditValue = c ? "" : Array.isArray(b) ? b.join(",") : b || "";
|
|
903
|
+
e.currentEditValue = w;
|
|
861
904
|
}
|
|
862
|
-
e.operatorValue = m, e.currentOperators =
|
|
905
|
+
e.operatorValue = m, e.currentOperators = I;
|
|
863
906
|
}
|
|
864
907
|
}, l = () => {
|
|
865
|
-
const { prevItem:
|
|
866
|
-
let
|
|
867
|
-
if (
|
|
908
|
+
const { prevItem: i } = e;
|
|
909
|
+
let c = [];
|
|
910
|
+
if (i.type === "numRange" ? c = [e.curMinNumVar, e.curMaxNumVar] : i.type === "dateRange" ? c = ["startDate", "endDate"] : i.type === "datetimeRange" ? c = ["startDateTime", "endDateTime"] : i.type === "map" ? c = ["mapEditKey", "mapEditValue"] : i.type !== "custom" && (c = ["inputEditValue"]), (c == null ? void 0 : c.length) === 0) {
|
|
868
911
|
e.hasFormError = !1;
|
|
869
912
|
return;
|
|
870
913
|
}
|
|
871
|
-
e.hasFormError = !le(e,
|
|
914
|
+
e.hasFormError = !le(e, c);
|
|
872
915
|
};
|
|
873
916
|
return {
|
|
874
|
-
editTag: (
|
|
875
|
-
if (!a.editable
|
|
917
|
+
editTag: (i, c, m) => {
|
|
918
|
+
if (!a.editable)
|
|
876
919
|
return;
|
|
877
920
|
C(e, !1), e.popoverVisible = !1;
|
|
878
|
-
const
|
|
879
|
-
|
|
880
|
-
const { popoverRef:
|
|
881
|
-
|
|
882
|
-
}), e.prevItem = e.recordItems.find((
|
|
883
|
-
},
|
|
884
|
-
confirmEditTag: async (
|
|
885
|
-
if (!
|
|
921
|
+
const b = m.target.classList.contains("tiny-tag") ? m.target : m.srcElement.parentElement;
|
|
922
|
+
r(() => {
|
|
923
|
+
const { popoverRef: h } = e.instance.$refs;
|
|
924
|
+
h.state.referenceElm = b, h.state.popperElm && (h.state.popperElm.style.display = "none"), h.doDestroy(), e.popoverVisible = !0, l();
|
|
925
|
+
}), e.prevItem = e.recordItems.find((h) => h.field === i.field), !e.prevItem && (e.prevItem = i), e.selectValue = i.label, e.currentModelValueIndex = c, t("tag-click", i), s(i);
|
|
926
|
+
},
|
|
927
|
+
confirmEditTag: async (i) => {
|
|
928
|
+
if (!i) {
|
|
886
929
|
e.popoverVisible = !1;
|
|
887
930
|
return;
|
|
888
931
|
}
|
|
889
|
-
const { prevItem:
|
|
890
|
-
let
|
|
891
|
-
if (
|
|
932
|
+
const { prevItem: c, currentModelValueIndex: m } = e;
|
|
933
|
+
let b = null;
|
|
934
|
+
if (c.type === "numRange")
|
|
935
|
+
b = await ze(e.instance, e, a);
|
|
936
|
+
else if (c.type === "dateRange")
|
|
937
|
+
b = await ye(e.instance, e, a, !1);
|
|
938
|
+
else if (c.type === "datetimeRange")
|
|
939
|
+
b = await ye(e.instance, e, a, !0);
|
|
940
|
+
else if (c.type === "map") {
|
|
941
|
+
const { field: h, type: V, label: w } = c, { mapEditKey: I, mapEditValue: T } = e;
|
|
942
|
+
I && T && (b = U({ type: V, field: h, label: w, value: `${I}=${T}` }));
|
|
943
|
+
} else
|
|
944
|
+
b = await Lt(e.instance, e, a);
|
|
945
|
+
if (b) {
|
|
892
946
|
C(e, !1), e.popoverVisible = !1;
|
|
893
|
-
const { replace:
|
|
894
|
-
if ((
|
|
895
|
-
const
|
|
896
|
-
let
|
|
897
|
-
const g = m >
|
|
898
|
-
|
|
947
|
+
const { replace: h, mergeTag: V } = c, w = e.indexMap.get(b.label);
|
|
948
|
+
if ((h || V) && w !== void 0 && w !== m) {
|
|
949
|
+
const I = G(e.innerModelValue);
|
|
950
|
+
let T = e.innerModelValue.filter((_, v) => v !== w);
|
|
951
|
+
const g = m > w ? m - 1 : m;
|
|
952
|
+
T[g] = b, F({ emit: t, state: e, nextTick: r, newValue: T, oldValue: I, isEdit: !0 });
|
|
899
953
|
} else
|
|
900
|
-
F({ emit: t, state: e, nextTick:
|
|
954
|
+
F({ emit: t, state: e, nextTick: r, index: m, newTag: b, isEdit: !0 });
|
|
901
955
|
} else
|
|
902
956
|
e.popoverVisible = !0;
|
|
903
957
|
e.currentEditValue = [];
|
|
904
958
|
},
|
|
905
|
-
selectPropChange: (
|
|
906
|
-
|
|
959
|
+
selectPropChange: (i) => {
|
|
960
|
+
e.prevItem = i, s(i, !0), r(() => {
|
|
907
961
|
l();
|
|
908
|
-
})
|
|
909
|
-
},
|
|
910
|
-
selectItemIsDisable: (c) => {
|
|
911
|
-
var m, h, I, V;
|
|
912
|
-
if (c.type && c.type === "map")
|
|
913
|
-
return !0;
|
|
914
|
-
if ((m = e.prevItem) != null && m.operators || c.operators)
|
|
915
|
-
return ((h = e.prevItem.operators) == null ? void 0 : h.length) !== ((I = c.operators) == null ? void 0 : I.length);
|
|
916
|
-
const v = ["radio", "checkbox"];
|
|
917
|
-
return e.prevItem.type && v.includes(e.prevItem.type) ? c.type ? !v.includes(c.type) : !1 : ((V = e.prevItem) == null ? void 0 : V.type) !== c.type;
|
|
962
|
+
});
|
|
918
963
|
},
|
|
919
964
|
checkFormValidation: l
|
|
920
965
|
};
|
|
921
966
|
}
|
|
922
|
-
function
|
|
923
|
-
const
|
|
967
|
+
function At({ state: a, emit: e, nextTick: n }) {
|
|
968
|
+
const r = (d) => {
|
|
924
969
|
C(a, !1);
|
|
925
|
-
const { prevItem:
|
|
970
|
+
const { prevItem: s, indexMap: l } = a, { replace: p, label: u } = s, f = [];
|
|
926
971
|
if (p && l.has(u)) {
|
|
927
|
-
const i = l.get(u), c = { ...
|
|
972
|
+
const i = l.get(u), c = { ...s, ...d };
|
|
928
973
|
F({ emit: e, state: a, nextTick: n, newTag: c, index: i });
|
|
929
974
|
return;
|
|
930
975
|
} else
|
|
931
976
|
!p && Array.isArray(d) ? d.forEach((i) => {
|
|
932
|
-
z(a, i.value) || f.push({ ...
|
|
933
|
-
}) : z(a, d.value) || f.push({ ...
|
|
977
|
+
z(a, i.value) || f.push({ ...s, ...i });
|
|
978
|
+
}) : z(a, d.value) || f.push({ ...s, ...d });
|
|
934
979
|
F({ emit: e, state: a, nextTick: n, tagList: f });
|
|
935
980
|
};
|
|
936
981
|
return {
|
|
937
982
|
handleConfirm: (d) => {
|
|
938
983
|
if (!d) {
|
|
939
|
-
|
|
984
|
+
he(a), C(a, !1);
|
|
940
985
|
return;
|
|
941
986
|
}
|
|
942
|
-
|
|
987
|
+
r(d);
|
|
943
988
|
},
|
|
944
989
|
handleEditConfirm: (d) => {
|
|
945
990
|
if (!d) {
|
|
946
991
|
oe(a, !1);
|
|
947
992
|
return;
|
|
948
993
|
}
|
|
949
|
-
|
|
994
|
+
r(d);
|
|
950
995
|
}
|
|
951
996
|
};
|
|
952
997
|
}
|
|
953
998
|
function zt({ props: a, state: e }) {
|
|
954
999
|
return {
|
|
955
1000
|
initItems: () => {
|
|
956
|
-
e.groupItems = {}, e.recordItems.forEach((
|
|
1001
|
+
e.groupItems = {}, e.recordItems.forEach((s) => {
|
|
957
1002
|
var p;
|
|
958
|
-
const { groupKey: l = "0" } =
|
|
959
|
-
if (e.groupItems[l] ? e.groupItems[l].push({ ...
|
|
960
|
-
const { options: u, type: f } =
|
|
961
|
-
e.prevItem =
|
|
1003
|
+
const { groupKey: l = "0" } = s;
|
|
1004
|
+
if (e.groupItems[l] ? e.groupItems[l].push({ ...s }) : (e.groupItems[l] = [{ ...s }], e.matchItems[l] = { attr: [], attrValue: [] }), e.prevItem && s.field === e.prevItem.field && s !== e.prevItem) {
|
|
1005
|
+
const { options: u, type: f } = s;
|
|
1006
|
+
e.prevItem = s, u != null && u.length && (e.backupList = u), f === "checkbox" && (e.filterList = e.backupList, e.checkboxGroup = [], (p = e.backupList) == null || p.forEach((i) => {
|
|
962
1007
|
const { label: c } = i;
|
|
963
|
-
z(e, c) && e.checkboxGroup.push(`${
|
|
964
|
-
})), C(e,
|
|
1008
|
+
z(e, c) && e.checkboxGroup.push(`${s.label}${c}`), i.isFilter = !1;
|
|
1009
|
+
})), C(e, s.field === e.prevItem.field && s !== e.prevItem);
|
|
965
1010
|
}
|
|
966
1011
|
});
|
|
967
1012
|
},
|
|
@@ -974,10 +1019,10 @@ function zt({ props: a, state: e }) {
|
|
|
974
1019
|
watchMouseMove: () => {
|
|
975
1020
|
e.isMouseDown && (e.isMouseDown = !1);
|
|
976
1021
|
},
|
|
977
|
-
handleClick: (
|
|
1022
|
+
handleClick: (s) => {
|
|
978
1023
|
var u;
|
|
979
1024
|
const { backupPrevItem: l, prevItem: p } = e;
|
|
980
|
-
|
|
1025
|
+
s.stopPropagation(), a.editable && (e.popoverVisible = !1, e.currentEditValue = [], e.propItem.label && l && l !== p && (e.prevItem = l)), e.hasBackupList && (((u = e.backupList) == null ? void 0 : u.length) === 0 || !e.backupList) && !e.inputValue || a.items.length === 0 ? C(e, !1) : C(e);
|
|
981
1026
|
}
|
|
982
1027
|
};
|
|
983
1028
|
}
|
|
@@ -1063,64 +1108,64 @@ const je = {
|
|
|
1063
1108
|
initUse: "Search"
|
|
1064
1109
|
}
|
|
1065
1110
|
}
|
|
1066
|
-
},
|
|
1111
|
+
}, se = "zh-CN", ee = {
|
|
1067
1112
|
"zh-CN": je,
|
|
1068
1113
|
"en-US": Ge
|
|
1069
1114
|
};
|
|
1070
|
-
let
|
|
1071
|
-
const
|
|
1072
|
-
|
|
1073
|
-
},
|
|
1074
|
-
|
|
1115
|
+
let N = null, Ve = null;
|
|
1116
|
+
const we = (a) => {
|
|
1117
|
+
N = a;
|
|
1118
|
+
}, Kt = (a) => {
|
|
1119
|
+
Ve = a;
|
|
1075
1120
|
}, Ce = () => {
|
|
1076
|
-
var a, e, n,
|
|
1077
|
-
if ((n = (e = (a =
|
|
1078
|
-
return
|
|
1079
|
-
if ((
|
|
1080
|
-
return
|
|
1121
|
+
var a, e, n, r, o;
|
|
1122
|
+
if ((n = (e = (a = N == null ? void 0 : N.config) == null ? void 0 : a.globalProperties) == null ? void 0 : e.$i18n) != null && n.locale)
|
|
1123
|
+
return N.config.globalProperties.$i18n.locale;
|
|
1124
|
+
if ((r = N == null ? void 0 : N.$i18n) != null && r.locale)
|
|
1125
|
+
return N.$i18n.locale;
|
|
1081
1126
|
if (typeof navigator < "u") {
|
|
1082
|
-
const t = navigator.language || ((
|
|
1127
|
+
const t = navigator.language || ((o = navigator.languages) == null ? void 0 : o[0]);
|
|
1083
1128
|
if (t)
|
|
1084
1129
|
return t.startsWith("zh") ? "zh-CN" : "en-US";
|
|
1085
1130
|
}
|
|
1086
|
-
return
|
|
1087
|
-
},
|
|
1088
|
-
var d,
|
|
1131
|
+
return se;
|
|
1132
|
+
}, Ie = (a) => ee[a] || ee[se], O = (a, e = {}) => {
|
|
1133
|
+
var d, s;
|
|
1089
1134
|
if (!a)
|
|
1090
1135
|
return "";
|
|
1091
|
-
if (typeof
|
|
1136
|
+
if (typeof Ve == "function")
|
|
1092
1137
|
try {
|
|
1093
|
-
const l =
|
|
1138
|
+
const l = Ve(a, e);
|
|
1094
1139
|
if (l && l !== a)
|
|
1095
1140
|
return l;
|
|
1096
1141
|
} catch (l) {
|
|
1097
1142
|
console.warn("[TinySearchBox] globalT translation failed:", l);
|
|
1098
1143
|
}
|
|
1099
|
-
if ((
|
|
1144
|
+
if ((s = (d = N == null ? void 0 : N.config) == null ? void 0 : d.globalProperties) != null && s.$t)
|
|
1100
1145
|
try {
|
|
1101
|
-
const l =
|
|
1146
|
+
const l = N.config.globalProperties.$t(a, e);
|
|
1102
1147
|
if (l && l !== a)
|
|
1103
1148
|
return l;
|
|
1104
1149
|
} catch (l) {
|
|
1105
1150
|
console.warn("[TinySearchBox] i18n translation failed:", l);
|
|
1106
1151
|
}
|
|
1107
|
-
if (
|
|
1152
|
+
if (N != null && N.$t)
|
|
1108
1153
|
try {
|
|
1109
|
-
const l =
|
|
1154
|
+
const l = N.$t(a, e);
|
|
1110
1155
|
if (l && l !== a)
|
|
1111
1156
|
return l;
|
|
1112
1157
|
} catch (l) {
|
|
1113
1158
|
console.warn("[TinySearchBox] i18n translation failed:", l);
|
|
1114
1159
|
}
|
|
1115
|
-
const n = Ce(),
|
|
1116
|
-
let t =
|
|
1117
|
-
for (const l of
|
|
1160
|
+
const n = Ce(), r = Ie(n), o = a.split(".");
|
|
1161
|
+
let t = r;
|
|
1162
|
+
for (const l of o)
|
|
1118
1163
|
if (t && typeof t == "object" && l in t)
|
|
1119
1164
|
t = t[l];
|
|
1120
1165
|
else {
|
|
1121
|
-
if (n !==
|
|
1122
|
-
t =
|
|
1123
|
-
for (const u of
|
|
1166
|
+
if (n !== se) {
|
|
1167
|
+
t = Ie(se);
|
|
1168
|
+
for (const u of o)
|
|
1124
1169
|
if (t && typeof t == "object" && u in t)
|
|
1125
1170
|
t = t[u];
|
|
1126
1171
|
else {
|
|
@@ -1132,22 +1177,22 @@ const Ie = (a) => {
|
|
|
1132
1177
|
break;
|
|
1133
1178
|
}
|
|
1134
1179
|
return typeof t == "string" && Object.keys(e).length > 0 ? t.replace(/\{(\w+)\}/g, (l, p) => e[p] !== void 0 ? e[p] : l) : typeof t == "string" ? t : a;
|
|
1135
|
-
},
|
|
1180
|
+
}, jt = (a, e = {}) => a.map((n) => O(n, e)), Gt = (a) => a in ee, Ut = () => Object.keys(ee), Yt = (a, e) => {
|
|
1136
1181
|
ee[a] = e;
|
|
1137
1182
|
}, qt = (a) => {
|
|
1138
|
-
a !==
|
|
1183
|
+
a !== se && delete ee[a];
|
|
1139
1184
|
}, Wt = {
|
|
1140
1185
|
t: O,
|
|
1141
1186
|
zhCN: je,
|
|
1142
1187
|
enUS: Ge,
|
|
1143
|
-
tArray:
|
|
1144
|
-
setGlobalT:
|
|
1145
|
-
setGlobalApp:
|
|
1188
|
+
tArray: jt,
|
|
1189
|
+
setGlobalT: Kt,
|
|
1190
|
+
setGlobalApp: we,
|
|
1146
1191
|
getCurrentLocale: Ce,
|
|
1147
|
-
getLocaleMessages:
|
|
1148
|
-
isLocaleSupported:
|
|
1149
|
-
getSupportedLocales:
|
|
1150
|
-
addLocale:
|
|
1192
|
+
getLocaleMessages: Ie,
|
|
1193
|
+
isLocaleSupported: Gt,
|
|
1194
|
+
getSupportedLocales: Ut,
|
|
1195
|
+
addLocale: Yt,
|
|
1151
1196
|
removeLocale: qt
|
|
1152
1197
|
}, Zt = [
|
|
1153
1198
|
"t",
|
|
@@ -1170,7 +1215,6 @@ const Ie = (a) => {
|
|
|
1170
1215
|
"handleEvents",
|
|
1171
1216
|
"pickerOptions",
|
|
1172
1217
|
"resetInput",
|
|
1173
|
-
"selectItemIsDisable",
|
|
1174
1218
|
"selectPropChange",
|
|
1175
1219
|
"confirmEditTag",
|
|
1176
1220
|
"checkFormValidation",
|
|
@@ -1178,7 +1222,7 @@ const Ie = (a) => {
|
|
|
1178
1222
|
"handleEditConfirm",
|
|
1179
1223
|
"showDropdown",
|
|
1180
1224
|
"showPopover"
|
|
1181
|
-
], de = (a, e) => a.emptyPlaceholder || e("tvp.tvpSearchbox.addPlaceholder"), Xt = ({ reactive: a, computed: e, api: n, i18n:
|
|
1225
|
+
], de = (a, e) => a.emptyPlaceholder || e("tvp.tvpSearchbox.addPlaceholder"), Xt = ({ reactive: a, computed: e, api: n, i18n: r, watch: o, props: t, emit: d, vm: s }) => {
|
|
1182
1226
|
const l = a({
|
|
1183
1227
|
innerModelValue: [...t.modelValue],
|
|
1184
1228
|
placeholder: t.modelValue.length > 0 ? O("tvp.tvpSearchbox.addPlaceholder") : de(t, O),
|
|
@@ -1225,6 +1269,17 @@ const Ie = (a) => {
|
|
|
1225
1269
|
// 表单校验错误状态
|
|
1226
1270
|
formErrors: {},
|
|
1227
1271
|
// 各字段校验错误信息,模板据此显示错误提示
|
|
1272
|
+
mapEditKey: "",
|
|
1273
|
+
// map 类型编辑态:选中的 key
|
|
1274
|
+
mapEditValue: "",
|
|
1275
|
+
// map 类型编辑态:选中的 value
|
|
1276
|
+
mapEditValueOptions: e(() => {
|
|
1277
|
+
var u;
|
|
1278
|
+
if (!((u = l.prevItem) != null && u.options) || !l.mapEditKey)
|
|
1279
|
+
return [];
|
|
1280
|
+
const p = l.prevItem.options.find((f) => f.label === l.mapEditKey);
|
|
1281
|
+
return (p == null ? void 0 : p.options) || [];
|
|
1282
|
+
}),
|
|
1228
1283
|
hasBackupList: e(() => {
|
|
1229
1284
|
if (!l.propItem.label)
|
|
1230
1285
|
return !1;
|
|
@@ -1240,88 +1295,87 @@ const Ie = (a) => {
|
|
|
1240
1295
|
})
|
|
1241
1296
|
});
|
|
1242
1297
|
return l;
|
|
1243
|
-
}, Qt = (a, { getCurrentInstance: e, onMounted: n, onBeforeUnmount:
|
|
1244
|
-
const i = {}, c = a.emitter ? a.emitter.emit :
|
|
1245
|
-
return Jt({ api: i, state:
|
|
1298
|
+
}, Qt = (a, { getCurrentInstance: e, onMounted: n, onBeforeUnmount: r, computed: o, reactive: t, watch: d }, { emit: s, nextTick: l, refs: p, vm: u, slots: f }) => {
|
|
1299
|
+
const i = {}, c = a.emitter ? a.emitter.emit : s, m = Xt({ reactive: t, computed: o, api: i, i18n: Wt, watch: d, props: a, emit: c, vm: u });
|
|
1300
|
+
return Jt({ api: i, state: m, t: O, props: a, emit: c, nextTick: l, vm: u, computed: o }), ea({ watch: d, state: m, props: a, api: i, nextTick: l, vm: u }), m.instance = u, u && f && (u.slots = f), n(() => {
|
|
1246
1301
|
typeof document < "u" && (document.addEventListener("click", i.watchOutsideClick), document.addEventListener("mousedown", i.watchMouseDown), document.addEventListener("mousemove", i.watchMouseMove));
|
|
1247
|
-
}),
|
|
1248
|
-
typeof document < "u" && (document.removeEventListener("click", i.watchOutsideClick), document.removeEventListener("mousedown", i.watchMouseDown), document.removeEventListener("mousemove", i.watchMouseMove),
|
|
1302
|
+
}), r(() => {
|
|
1303
|
+
typeof document < "u" && (document.removeEventListener("click", i.watchOutsideClick), document.removeEventListener("mousedown", i.watchMouseDown), document.removeEventListener("mousemove", i.watchMouseMove), m.localeCheckInterval && (clearInterval(m.localeCheckInterval), m.localeCheckInterval = null));
|
|
1249
1304
|
}), i;
|
|
1250
|
-
}, Jt = ({ api: a, state: e, t: n, props:
|
|
1251
|
-
const l = (
|
|
1252
|
-
if (!
|
|
1305
|
+
}, Jt = ({ api: a, state: e, t: n, props: r, emit: o, nextTick: t, vm: d, computed: s }) => {
|
|
1306
|
+
const l = (A) => {
|
|
1307
|
+
if (!A)
|
|
1253
1308
|
return !1;
|
|
1254
|
-
const
|
|
1255
|
-
return !!(
|
|
1256
|
-
}, { deleteTag: p, clearTag: u, backspaceDeleteTag: f } = Mt({ props:
|
|
1257
|
-
const
|
|
1309
|
+
const X = e.recordItems.find((ce) => ce.field === A.field || ce.label === A.label);
|
|
1310
|
+
return !!(X != null && X.disableDelete);
|
|
1311
|
+
}, { deleteTag: p, clearTag: u, backspaceDeleteTag: f } = Mt({ props: r, state: e, emit: o, nextTick: t, isTagDisabled: l }), { editTag: i, confirmEditTag: c, selectPropChange: m, checkFormValidation: b } = Bt({ props: r, state: e, t: n, nextTick: t, format: xe, emit: o, vm: d }), { handleInput: h, selectFirstMap: V, cancelHandleInput: w } = Ot({ props: r, state: e, emit: o, nextTick: t }), { selectPropItem: I, selectRadioItem: T, selectInputValue: g, createTag: _, helpClick: v, setOperator: x } = Nt({ props: r, emit: o, state: e, t: n, format: xe, nextTick: t, vm: d, cancelHandleInput: w, selectFirstMap: V }), { selectCheckbox: y } = Pt({ props: r, state: e, emit: o, nextTick: t }), { onConfirmDate: S, handleDateShow: E, pickerOptions: k } = Ft({ props: r, state: e, emit: o, nextTick: t, vm: d }), { sizeChange: D, initFormRule: $ } = Ht({ props: r, state: e, t: n, emit: o, nextTick: t, vm: d }), { handleConfirm: H, handleEditConfirm: K } = At({ state: e, emit: o, nextTick: t }), { initItems: M, watchOutsideClick: P, watchMouseDown: W, watchMouseMove: B, handleClick: te } = zt({ props: r, state: e }), Z = s(() => r.modelValue.length || e.propItem.label || e.inputValue), ae = (A) => {
|
|
1312
|
+
const X = A ? ["startDateTime", "endDateTime"] : ["startDate", "endDate"];
|
|
1258
1313
|
t(() => {
|
|
1259
|
-
le(e,
|
|
1314
|
+
le(e, X);
|
|
1260
1315
|
});
|
|
1261
|
-
},
|
|
1316
|
+
}, ie = () => ({
|
|
1262
1317
|
selectInputValue: g,
|
|
1263
|
-
selectPropItem:
|
|
1264
|
-
selectRadioItem:
|
|
1265
|
-
setOperator:
|
|
1266
|
-
selectCheckbox:
|
|
1267
|
-
sizeChange:
|
|
1268
|
-
onConfirmDate:
|
|
1318
|
+
selectPropItem: I,
|
|
1319
|
+
selectRadioItem: T,
|
|
1320
|
+
setOperator: x,
|
|
1321
|
+
selectCheckbox: y,
|
|
1322
|
+
sizeChange: D,
|
|
1323
|
+
onConfirmDate: S,
|
|
1269
1324
|
selectFirstMap: V,
|
|
1270
|
-
handleDateShow:
|
|
1271
|
-
validateDateRange:
|
|
1272
|
-
}),
|
|
1273
|
-
e.placeholder =
|
|
1274
|
-
},
|
|
1275
|
-
|
|
1325
|
+
handleDateShow: E,
|
|
1326
|
+
validateDateRange: ae
|
|
1327
|
+
}), L = (A) => {
|
|
1328
|
+
e.placeholder = A;
|
|
1329
|
+
}, R = () => de(r, n);
|
|
1330
|
+
r.modelValue.length > 0 ? L(n("tvp.tvpSearchbox.addPlaceholder")) : L(R()), Object.assign(a, {
|
|
1276
1331
|
t: n,
|
|
1277
1332
|
state: e,
|
|
1278
|
-
isShowClose:
|
|
1333
|
+
isShowClose: Z,
|
|
1279
1334
|
isTagDisabled: l,
|
|
1280
1335
|
deleteTag: p,
|
|
1281
1336
|
editTag: i,
|
|
1282
1337
|
backspaceDeleteTag: f,
|
|
1283
|
-
createTag:
|
|
1338
|
+
createTag: _,
|
|
1284
1339
|
clearTag: u,
|
|
1285
|
-
helpClick:
|
|
1286
|
-
handleInput:
|
|
1287
|
-
handleClick:
|
|
1288
|
-
handleEvents: (
|
|
1289
|
-
const De =
|
|
1290
|
-
typeof De[
|
|
1291
|
-
},
|
|
1292
|
-
pickerOptions:
|
|
1293
|
-
resetInput:
|
|
1294
|
-
|
|
1295
|
-
selectPropChange: v,
|
|
1340
|
+
helpClick: v,
|
|
1341
|
+
handleInput: h,
|
|
1342
|
+
handleClick: te,
|
|
1343
|
+
handleEvents: (A, X, ce) => {
|
|
1344
|
+
const De = ie();
|
|
1345
|
+
typeof De[A] == "function" ? De[A](X, ce) : console.warn(`[TinySearchBox] Unknown event: ${A}`);
|
|
1346
|
+
},
|
|
1347
|
+
pickerOptions: k,
|
|
1348
|
+
resetInput: he,
|
|
1349
|
+
selectPropChange: m,
|
|
1296
1350
|
confirmEditTag: c,
|
|
1297
|
-
handleConfirm:
|
|
1298
|
-
handleEditConfirm:
|
|
1351
|
+
handleConfirm: H,
|
|
1352
|
+
handleEditConfirm: K,
|
|
1299
1353
|
showDropdown: C,
|
|
1300
1354
|
showPopover: oe,
|
|
1301
|
-
checkFormValidation:
|
|
1302
|
-
setPlaceholder:
|
|
1303
|
-
initItems:
|
|
1304
|
-
initFormRule:
|
|
1305
|
-
watchOutsideClick:
|
|
1306
|
-
watchMouseDown:
|
|
1307
|
-
watchMouseMove:
|
|
1355
|
+
checkFormValidation: b,
|
|
1356
|
+
setPlaceholder: L,
|
|
1357
|
+
initItems: M,
|
|
1358
|
+
initFormRule: $,
|
|
1359
|
+
watchOutsideClick: P,
|
|
1360
|
+
watchMouseDown: W,
|
|
1361
|
+
watchMouseMove: B
|
|
1308
1362
|
});
|
|
1309
|
-
}, ea = ({ watch: a, state: e, props: n, api:
|
|
1363
|
+
}, ea = ({ watch: a, state: e, props: n, api: r, nextTick: o, vm: t }) => {
|
|
1310
1364
|
var f;
|
|
1311
1365
|
const d = () => {
|
|
1312
1366
|
var i;
|
|
1313
1367
|
if (e.propItem.label) {
|
|
1314
|
-
const { placeholder: c, type:
|
|
1315
|
-
c ?
|
|
1368
|
+
const { placeholder: c, type: m } = e.prevItem;
|
|
1369
|
+
c ? r.setPlaceholder(c) : m === "map" ? r.setPlaceholder(O("tvp.tvpSearchbox.tagPlaceholder")) : (i = e.backupList) != null && i.length ? r.setPlaceholder(O("tvp.tvpSearchbox.dynamicPlaceholder", { newValue: e.propItem.label })) : r.setPlaceholder(O("tvp.tvpSearchbox.addPlaceholder"));
|
|
1316
1370
|
} else {
|
|
1317
1371
|
const c = n.modelValue.length > 0 ? O("tvp.tvpSearchbox.addPlaceholder") : de(n, O);
|
|
1318
|
-
|
|
1372
|
+
r.setPlaceholder(c);
|
|
1319
1373
|
}
|
|
1320
|
-
},
|
|
1321
|
-
var i, c,
|
|
1322
|
-
return (i = t == null ? void 0 : t.$i18n) != null && i.locale ? t.$i18n.locale : (
|
|
1374
|
+
}, s = () => {
|
|
1375
|
+
var i, c, m;
|
|
1376
|
+
return (i = t == null ? void 0 : t.$i18n) != null && i.locale ? t.$i18n.locale : (m = (c = t == null ? void 0 : t.proxy) == null ? void 0 : c.$i18n) != null && m.locale ? t.proxy.$i18n.locale : Ce();
|
|
1323
1377
|
};
|
|
1324
|
-
let l =
|
|
1378
|
+
let l = s(), p = !1;
|
|
1325
1379
|
if (t != null && t.$i18n)
|
|
1326
1380
|
try {
|
|
1327
1381
|
t.$watch(
|
|
@@ -1347,7 +1401,7 @@ const Ie = (a) => {
|
|
|
1347
1401
|
console.warn("[TinySearchBox] Unable to watch i18n.locale via watch:", i);
|
|
1348
1402
|
}
|
|
1349
1403
|
const u = () => {
|
|
1350
|
-
const i =
|
|
1404
|
+
const i = s();
|
|
1351
1405
|
i !== l && (l = i, d());
|
|
1352
1406
|
};
|
|
1353
1407
|
typeof window < "u" && !p && (e.localeCheckInterval = setInterval(u, 1e3)), a(
|
|
@@ -1355,14 +1409,19 @@ const Ie = (a) => {
|
|
|
1355
1409
|
() => {
|
|
1356
1410
|
u();
|
|
1357
1411
|
}
|
|
1412
|
+
), a(
|
|
1413
|
+
() => n.editable,
|
|
1414
|
+
() => {
|
|
1415
|
+
r.initFormRule();
|
|
1416
|
+
}
|
|
1358
1417
|
), a(
|
|
1359
1418
|
() => n.items,
|
|
1360
1419
|
(i) => {
|
|
1361
|
-
const c = e.visible,
|
|
1362
|
-
e.recordItems = G(i),
|
|
1363
|
-
if (
|
|
1364
|
-
const
|
|
1365
|
-
e.prevItem =
|
|
1420
|
+
const c = e.visible, m = e.prevItem && e.prevItem.field;
|
|
1421
|
+
e.recordItems = G(i), r.initItems(), r.initFormRule(), o(() => {
|
|
1422
|
+
if (r.initItems(), r.initFormRule(), c && e.propItem.label) {
|
|
1423
|
+
const b = e.recordItems.find((h) => h.field === m) || e.prevItem;
|
|
1424
|
+
e.prevItem = b || {}, e.backupList = b && b.options ? [...b.options] : [], e.filterList = e.backupList ? [...e.backupList] : [], C(e);
|
|
1366
1425
|
}
|
|
1367
1426
|
});
|
|
1368
1427
|
},
|
|
@@ -1390,8 +1449,8 @@ const Ie = (a) => {
|
|
|
1390
1449
|
return e.curMinNumVar && e.curMaxNumVar && (i[e.curMinNumVar] = e[e.curMinNumVar], i[e.curMaxNumVar] = e[e.curMaxNumVar]), i;
|
|
1391
1450
|
},
|
|
1392
1451
|
() => {
|
|
1393
|
-
e.popoverVisible &&
|
|
1394
|
-
|
|
1452
|
+
e.popoverVisible && o(() => {
|
|
1453
|
+
r.checkFormValidation();
|
|
1395
1454
|
});
|
|
1396
1455
|
},
|
|
1397
1456
|
{ deep: !0 }
|
|
@@ -1404,21 +1463,21 @@ const Ie = (a) => {
|
|
|
1404
1463
|
() => n.modelValue,
|
|
1405
1464
|
(i) => {
|
|
1406
1465
|
if (i) {
|
|
1407
|
-
if (e.indexMap.clear(), e.valueMap.clear(), i.forEach((c,
|
|
1466
|
+
if (e.indexMap.clear(), e.valueMap.clear(), i.forEach((c, m) => {
|
|
1408
1467
|
var h;
|
|
1409
|
-
const
|
|
1410
|
-
e.indexMap.set(c.label,
|
|
1411
|
-
const
|
|
1412
|
-
e.valueMap.set(
|
|
1468
|
+
const b = `${c.label}${c.value}`;
|
|
1469
|
+
e.indexMap.set(c.label, m), e.valueMap.set(b, m), ((h = c.options) == null ? void 0 : h.length) > 0 && c.options.forEach((V) => {
|
|
1470
|
+
const w = `${c.label}${V.label}`;
|
|
1471
|
+
e.valueMap.set(w, m);
|
|
1413
1472
|
});
|
|
1414
|
-
}), oe(e, !1), i.length === 0 &&
|
|
1473
|
+
}), oe(e, !1), i.length === 0 && r.setPlaceholder(de(n, O)), n.editable && !e.inputEditValue.length && i[0]) {
|
|
1415
1474
|
const c = i[0];
|
|
1416
|
-
if ((e.recordItems.find((
|
|
1417
|
-
const
|
|
1418
|
-
e.inputEditValue =
|
|
1475
|
+
if ((e.recordItems.find((b) => b.field === c.field) || c).mergeTag && c.options) {
|
|
1476
|
+
const b = c.options.flatMap((h) => h.label) || [];
|
|
1477
|
+
e.inputEditValue = b, e.currentEditSelectTags = b;
|
|
1419
1478
|
} else {
|
|
1420
|
-
const
|
|
1421
|
-
e.inputEditValue = Array.isArray(
|
|
1479
|
+
const b = c.value;
|
|
1480
|
+
e.inputEditValue = Array.isArray(b) ? b.join(",") : b || "";
|
|
1422
1481
|
}
|
|
1423
1482
|
}
|
|
1424
1483
|
e.innerModelValue = [...i];
|
|
@@ -1431,12 +1490,12 @@ const Ie = (a) => {
|
|
|
1431
1490
|
);
|
|
1432
1491
|
};
|
|
1433
1492
|
var ta = function() {
|
|
1434
|
-
var a, e, n = this,
|
|
1435
|
-
return
|
|
1493
|
+
var a, e, n = this, r = n.$createElement, o = n._self._c || r;
|
|
1494
|
+
return o("div", {
|
|
1436
1495
|
attrs: {
|
|
1437
1496
|
tiny_mode: "pc"
|
|
1438
1497
|
}
|
|
1439
|
-
}, [
|
|
1498
|
+
}, [o("tiny-dropdown-item", {
|
|
1440
1499
|
directives: [{
|
|
1441
1500
|
name: "show",
|
|
1442
1501
|
rawName: "v-show",
|
|
@@ -1454,7 +1513,7 @@ var ta = function() {
|
|
|
1454
1513
|
return n.selectInputValue(n.state.inputValue);
|
|
1455
1514
|
}
|
|
1456
1515
|
}
|
|
1457
|
-
}, [
|
|
1516
|
+
}, [o("span", [n._v(" " + n._s(n.t("tvp.tvpSearchbox.initUse")) + """ + n._s(n.state.inputValue) + """)])]), o("div", {
|
|
1458
1517
|
directives: [{
|
|
1459
1518
|
name: "show",
|
|
1460
1519
|
rawName: "v-show",
|
|
@@ -1462,68 +1521,68 @@ var ta = function() {
|
|
|
1462
1521
|
expression: "!state.propItem.label && state.inputValue?.trim()"
|
|
1463
1522
|
}]
|
|
1464
1523
|
}, [n._l(n.state.matchItems, function(t, d) {
|
|
1465
|
-
return
|
|
1524
|
+
return o("div", {
|
|
1466
1525
|
key: d
|
|
1467
|
-
}, [t.attr.length ?
|
|
1526
|
+
}, [t.attr.length ? o("div", [o("span", {
|
|
1468
1527
|
staticClass: "tvp-search-box__filter-type"
|
|
1469
|
-
}, [n._v(n._s(d === "0" ? n.t("tvp.tvpSearchbox.attributeType") : d))]), n._l(t.attr, function(
|
|
1470
|
-
return
|
|
1471
|
-
key:
|
|
1528
|
+
}, [n._v(n._s(d === "0" ? n.t("tvp.tvpSearchbox.attributeType") : d))]), n._l(t.attr, function(s, l) {
|
|
1529
|
+
return o("tiny-dropdown-item", {
|
|
1530
|
+
key: s.label + l,
|
|
1472
1531
|
staticClass: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
|
|
1473
1532
|
attrs: {
|
|
1474
|
-
"item-data":
|
|
1533
|
+
"item-data": s
|
|
1475
1534
|
},
|
|
1476
1535
|
on: {
|
|
1477
1536
|
"item-click": function() {
|
|
1478
|
-
return n.selectPropItem(
|
|
1537
|
+
return n.selectPropItem(s);
|
|
1479
1538
|
}
|
|
1480
1539
|
}
|
|
1481
|
-
}, [
|
|
1482
|
-
return
|
|
1540
|
+
}, [o("span", n._l(s.match, function(p) {
|
|
1541
|
+
return o("span", {
|
|
1483
1542
|
key: p
|
|
1484
|
-
}, [p.toLowerCase() ===
|
|
1543
|
+
}, [p.toLowerCase() === s.hightlighStr ? o("span", {
|
|
1485
1544
|
staticClass: "tvp-search-box__text-highlight"
|
|
1486
|
-
}, [n._v(n._s(p))]) :
|
|
1545
|
+
}, [n._v(n._s(p))]) : o("span", [n._v(n._s(p))])]);
|
|
1487
1546
|
}), 0)]);
|
|
1488
|
-
})], 2) : n._e(), t.attrValue.length ? [
|
|
1547
|
+
})], 2) : n._e(), t.attrValue.length ? [o("span", {
|
|
1489
1548
|
staticClass: "tvp-search-box__filter-type"
|
|
1490
|
-
}, [n._v(n._s(n.t("tvp.tvpSearchbox.propertyValue", [d === "0" ? n.t("tvp.tvpSearchbox.attributeType") : d])))]), n._l(t.attrValue, function(
|
|
1491
|
-
return
|
|
1492
|
-
key:
|
|
1549
|
+
}, [n._v(n._s(n.t("tvp.tvpSearchbox.propertyValue", [d === "0" ? n.t("tvp.tvpSearchbox.attributeType") : d])))]), n._l(t.attrValue, function(s, l) {
|
|
1550
|
+
return o("tiny-dropdown-item", {
|
|
1551
|
+
key: s.label + l,
|
|
1493
1552
|
staticClass: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
|
|
1494
1553
|
attrs: {
|
|
1495
|
-
disabled:
|
|
1496
|
-
"item-data":
|
|
1554
|
+
disabled: s.isChecked,
|
|
1555
|
+
"item-data": s
|
|
1497
1556
|
},
|
|
1498
1557
|
on: {
|
|
1499
1558
|
"item-click": function() {
|
|
1500
|
-
return n.selectRadioItem(
|
|
1559
|
+
return n.selectRadioItem(s, !0);
|
|
1501
1560
|
}
|
|
1502
1561
|
}
|
|
1503
|
-
}, [
|
|
1504
|
-
return
|
|
1562
|
+
}, [o("span", n._l(s.match, function(p) {
|
|
1563
|
+
return o("span", {
|
|
1505
1564
|
key: p
|
|
1506
|
-
}, [p.toLowerCase() ===
|
|
1565
|
+
}, [p.toLowerCase() === s.hightlighStr ? o("span", {
|
|
1507
1566
|
staticClass: "tvp-search-box__text-highlight"
|
|
1508
|
-
}, [n._v(n._s(p))]) :
|
|
1567
|
+
}, [n._v(n._s(p))]) : o("span", [n._v(n._s(p))])]);
|
|
1509
1568
|
}), 0)]);
|
|
1510
1569
|
})] : n._e()], 2);
|
|
1511
|
-
}),
|
|
1570
|
+
}), o("div", {
|
|
1512
1571
|
directives: [{
|
|
1513
1572
|
name: "show",
|
|
1514
1573
|
rawName: "v-show",
|
|
1515
1574
|
value: n.state.potentialOptions,
|
|
1516
1575
|
expression: "state.potentialOptions"
|
|
1517
1576
|
}]
|
|
1518
|
-
}, [
|
|
1577
|
+
}, [o("span", {
|
|
1519
1578
|
staticClass: "tvp-search-box__filter-type"
|
|
1520
|
-
}, [n._v(n._s(n.t("tvp.tvpSearchbox.matched")))]),
|
|
1579
|
+
}, [n._v(n._s(n.t("tvp.tvpSearchbox.matched")))]), o("div", {
|
|
1521
1580
|
staticClass: "tvp-search-box__potential-box",
|
|
1522
1581
|
attrs: {
|
|
1523
1582
|
id: "potential-loading"
|
|
1524
1583
|
}
|
|
1525
|
-
}, [n.state.potentialOptions ?
|
|
1526
|
-
return
|
|
1584
|
+
}, [n.state.potentialOptions ? o("div", n._l(n.state.potentialOptions, function(t, d) {
|
|
1585
|
+
return o("tiny-dropdown-item", {
|
|
1527
1586
|
key: t.label + d,
|
|
1528
1587
|
staticClass: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
|
|
1529
1588
|
attrs: {
|
|
@@ -1534,10 +1593,10 @@ var ta = function() {
|
|
|
1534
1593
|
return n.selectRadioItem(t, !0);
|
|
1535
1594
|
}
|
|
1536
1595
|
}
|
|
1537
|
-
}, [n._v(" " + n._s(t.label) + ": "),
|
|
1596
|
+
}, [n._v(" " + n._s(t.label) + ": "), o("span", {
|
|
1538
1597
|
staticClass: "tvp-search-box__text-highlight"
|
|
1539
1598
|
}, [n._v(n._s(t.value))])]);
|
|
1540
|
-
}), 1) : n._e()])])], 2),
|
|
1599
|
+
}), 1) : n._e()])])], 2), o("div", {
|
|
1541
1600
|
directives: [{
|
|
1542
1601
|
name: "show",
|
|
1543
1602
|
rawName: "v-show",
|
|
@@ -1546,49 +1605,49 @@ var ta = function() {
|
|
|
1546
1605
|
}],
|
|
1547
1606
|
staticClass: "tvp-search-box__first-panel"
|
|
1548
1607
|
}, n._l(n.state.groupItems, function(t, d) {
|
|
1549
|
-
return
|
|
1608
|
+
return o("div", {
|
|
1550
1609
|
key: d
|
|
1551
|
-
}, [t.length ?
|
|
1610
|
+
}, [t.length ? o("span", {
|
|
1552
1611
|
staticClass: "tvp-search-box__filter-type"
|
|
1553
|
-
}, [n._v(n._s(d === "0" ? n.t("tvp.tvpSearchbox.attributeType") : d))]) : n._e(), n._l(t, function(
|
|
1554
|
-
return
|
|
1555
|
-
key: (
|
|
1612
|
+
}, [n._v(n._s(d === "0" ? n.t("tvp.tvpSearchbox.attributeType") : d))]) : n._e(), n._l(t, function(s, l) {
|
|
1613
|
+
return o("tiny-dropdown-item", {
|
|
1614
|
+
key: (s.field || s.label) + l,
|
|
1556
1615
|
staticClass: "tvp-search-box__dropdown-item",
|
|
1557
1616
|
attrs: {
|
|
1558
|
-
"item-data":
|
|
1617
|
+
"item-data": s
|
|
1559
1618
|
},
|
|
1560
1619
|
on: {
|
|
1561
1620
|
"item-click": function() {
|
|
1562
|
-
return n.selectPropItem(
|
|
1621
|
+
return n.selectPropItem(s);
|
|
1563
1622
|
}
|
|
1564
1623
|
}
|
|
1565
|
-
}, [
|
|
1624
|
+
}, [o("span", {
|
|
1566
1625
|
attrs: {
|
|
1567
|
-
title:
|
|
1626
|
+
title: s.label
|
|
1568
1627
|
}
|
|
1569
|
-
}, [n._v(n._s(
|
|
1628
|
+
}, [n._v(n._s(s.label))])]);
|
|
1570
1629
|
})], 2);
|
|
1571
1630
|
}), 0)], 1);
|
|
1572
1631
|
}, aa = [];
|
|
1573
|
-
function Se(a, e, n,
|
|
1632
|
+
function Se(a, e, n, r, o, t, d, s) {
|
|
1574
1633
|
var l = typeof a == "function" ? a.options : a;
|
|
1575
|
-
e && (l.render = e, l.staticRenderFns = n, l._compiled = !0),
|
|
1634
|
+
e && (l.render = e, l.staticRenderFns = n, l._compiled = !0), r && (l.functional = !0), t && (l._scopeId = "data-v-" + t);
|
|
1576
1635
|
var p;
|
|
1577
1636
|
if (d ? (p = function(i) {
|
|
1578
1637
|
i = i || // cached call
|
|
1579
1638
|
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
1580
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !i && typeof __VUE_SSR_CONTEXT__ < "u" && (i = __VUE_SSR_CONTEXT__),
|
|
1581
|
-
}, l._ssrRegister = p) :
|
|
1582
|
-
|
|
1639
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !i && typeof __VUE_SSR_CONTEXT__ < "u" && (i = __VUE_SSR_CONTEXT__), o && o.call(this, i), i && i._registeredComponents && i._registeredComponents.add(d);
|
|
1640
|
+
}, l._ssrRegister = p) : o && (p = s ? function() {
|
|
1641
|
+
o.call(
|
|
1583
1642
|
this,
|
|
1584
1643
|
(l.functional ? this.parent : this).$root.$options.shadowRoot
|
|
1585
1644
|
);
|
|
1586
|
-
} :
|
|
1645
|
+
} : o), p)
|
|
1587
1646
|
if (l.functional) {
|
|
1588
1647
|
l._injectStyles = p;
|
|
1589
1648
|
var u = l.render;
|
|
1590
|
-
l.render = function(c,
|
|
1591
|
-
return p.call(
|
|
1649
|
+
l.render = function(c, m) {
|
|
1650
|
+
return p.call(m), u(c, m);
|
|
1592
1651
|
};
|
|
1593
1652
|
} else {
|
|
1594
1653
|
var f = l.beforeCreate;
|
|
@@ -1600,29 +1659,29 @@ function Se(a, e, n, s, r, t, d, o) {
|
|
|
1600
1659
|
};
|
|
1601
1660
|
}
|
|
1602
1661
|
const na = (a, e, { emit: n }) => {
|
|
1603
|
-
const { computed:
|
|
1662
|
+
const { computed: r } = e, o = a.handleEvents || a.events || ((p, u, f) => {
|
|
1604
1663
|
n("events", p, u, f);
|
|
1605
1664
|
});
|
|
1606
1665
|
return {
|
|
1607
|
-
isShowSearchOption:
|
|
1666
|
+
isShowSearchOption: r(() => {
|
|
1608
1667
|
const { inputValue: p, popoverVisible: u, currentOperators: f, propItem: i, prevItem: c } = a.state;
|
|
1609
1668
|
return p.trim() && !u && !(f != null && f.length) && (!i.label || [void 0, null, "", "radio", "input"].includes(c.type));
|
|
1610
1669
|
}),
|
|
1611
1670
|
selectInputValue: (p) => {
|
|
1612
|
-
|
|
1671
|
+
o("selectInputValue", p);
|
|
1613
1672
|
},
|
|
1614
1673
|
selectPropItem: (p) => {
|
|
1615
|
-
|
|
1674
|
+
o("selectPropItem", p);
|
|
1616
1675
|
},
|
|
1617
1676
|
selectRadioItem: (p, u) => {
|
|
1618
|
-
|
|
1677
|
+
o("selectRadioItem", p, u);
|
|
1619
1678
|
},
|
|
1620
1679
|
t: O
|
|
1621
1680
|
};
|
|
1622
|
-
},
|
|
1623
|
-
name:
|
|
1681
|
+
}, ra = ["isShowSearchOption", "selectInputValue", "selectPropItem", "selectRadioItem", "t"], sa = fe({
|
|
1682
|
+
name: Te + "SearchBoxFirstLevelPanel",
|
|
1624
1683
|
components: {
|
|
1625
|
-
TinyDropdownItem:
|
|
1684
|
+
TinyDropdownItem: Ne
|
|
1626
1685
|
},
|
|
1627
1686
|
props: {
|
|
1628
1687
|
...ve,
|
|
@@ -1645,11 +1704,11 @@ const na = (a, e, { emit: n }) => {
|
|
|
1645
1704
|
},
|
|
1646
1705
|
emits: ["events", "click"],
|
|
1647
1706
|
setup(a, e) {
|
|
1648
|
-
return
|
|
1707
|
+
return ke({ props: a, context: e, renderless: na, api: ra });
|
|
1649
1708
|
}
|
|
1650
|
-
}),
|
|
1709
|
+
}), Me = {};
|
|
1651
1710
|
var oa = /* @__PURE__ */ Se(
|
|
1652
|
-
|
|
1711
|
+
sa,
|
|
1653
1712
|
ta,
|
|
1654
1713
|
aa,
|
|
1655
1714
|
!1,
|
|
@@ -1659,23 +1718,23 @@ var oa = /* @__PURE__ */ Se(
|
|
|
1659
1718
|
null
|
|
1660
1719
|
);
|
|
1661
1720
|
function la(a) {
|
|
1662
|
-
for (let e in
|
|
1663
|
-
this[e] =
|
|
1721
|
+
for (let e in Me)
|
|
1722
|
+
this[e] = Me[e];
|
|
1664
1723
|
}
|
|
1665
1724
|
const ia = /* @__PURE__ */ function() {
|
|
1666
1725
|
return oa.exports;
|
|
1667
1726
|
}();
|
|
1668
1727
|
function ca(a, e) {
|
|
1669
|
-
const { reactive: n, computed:
|
|
1728
|
+
const { reactive: n, computed: r } = a, { getList: o, itemHeight: t = 32, bufferSize: d = 5, headerHeight: s = () => 0 } = e, l = n({
|
|
1670
1729
|
scrollTop: 0,
|
|
1671
1730
|
viewportHeight: 300
|
|
1672
|
-
}), p =
|
|
1673
|
-
const
|
|
1674
|
-
return Math.max(0, Math.floor(
|
|
1675
|
-
}), f =
|
|
1676
|
-
const
|
|
1677
|
-
return Math.min(
|
|
1678
|
-
}), i =
|
|
1731
|
+
}), p = r(() => (o() || []).length * t), u = r(() => {
|
|
1732
|
+
const b = Math.max(0, l.scrollTop - s());
|
|
1733
|
+
return Math.max(0, Math.floor(b / t) - d);
|
|
1734
|
+
}), f = r(() => {
|
|
1735
|
+
const b = o() || [], h = Math.ceil(l.viewportHeight / t);
|
|
1736
|
+
return Math.min(b.length, u.value + h + d * 2);
|
|
1737
|
+
}), i = r(() => u.value * t), c = r(() => (o() || []).slice(u.value, f.value));
|
|
1679
1738
|
return {
|
|
1680
1739
|
vsState: l,
|
|
1681
1740
|
totalHeight: p,
|
|
@@ -1683,41 +1742,41 @@ function ca(a, e) {
|
|
|
1683
1742
|
endIndex: f,
|
|
1684
1743
|
offsetY: i,
|
|
1685
1744
|
visibleItems: c,
|
|
1686
|
-
handleScroll: (
|
|
1687
|
-
l.scrollTop =
|
|
1745
|
+
handleScroll: (b) => {
|
|
1746
|
+
l.scrollTop = b.target.scrollTop, l.viewportHeight = b.target.clientHeight;
|
|
1688
1747
|
}
|
|
1689
1748
|
};
|
|
1690
1749
|
}
|
|
1691
1750
|
var ua = function() {
|
|
1692
|
-
var a, e = this, n = e.$createElement,
|
|
1693
|
-
return
|
|
1751
|
+
var a, e = this, n = e.$createElement, r = e._self._c || n;
|
|
1752
|
+
return r("div", {
|
|
1694
1753
|
attrs: {
|
|
1695
1754
|
tiny_mode: "pc"
|
|
1696
1755
|
}
|
|
1697
|
-
}, [(a = e.state.currentOperators) !== null && a !== void 0 && a.length ?
|
|
1756
|
+
}, [(a = e.state.currentOperators) !== null && a !== void 0 && a.length ? r("div", [r("span", {
|
|
1698
1757
|
staticClass: "tvp-search-box__filter-type"
|
|
1699
|
-
}, [e._v(e._s(e.t("tvp.tvpSearchbox.operator")))]), e._l(e.state.currentOperators, function(
|
|
1700
|
-
return
|
|
1758
|
+
}, [e._v(e._s(e.t("tvp.tvpSearchbox.operator")))]), e._l(e.state.currentOperators, function(o, t) {
|
|
1759
|
+
return r("tiny-dropdown-item", {
|
|
1701
1760
|
directives: [{
|
|
1702
1761
|
name: "show",
|
|
1703
1762
|
rawName: "v-show",
|
|
1704
|
-
value:
|
|
1763
|
+
value: o.includes(e.state.inputValue),
|
|
1705
1764
|
expression: "item.includes(state.inputValue)"
|
|
1706
1765
|
}],
|
|
1707
|
-
key:
|
|
1766
|
+
key: o + t,
|
|
1708
1767
|
staticClass: "tvp-search-box__dropdown-item",
|
|
1709
1768
|
attrs: {
|
|
1710
1769
|
"item-data": {
|
|
1711
|
-
label:
|
|
1770
|
+
label: o
|
|
1712
1771
|
}
|
|
1713
1772
|
},
|
|
1714
1773
|
on: {
|
|
1715
1774
|
"item-click": function() {
|
|
1716
|
-
return e.setOperator(
|
|
1775
|
+
return e.setOperator(o);
|
|
1717
1776
|
}
|
|
1718
1777
|
}
|
|
1719
|
-
}, [e._v(" " + e._s(
|
|
1720
|
-
})], 2) : !e.state.prevItem.type || ["radio", "input"].includes(e.state.prevItem.type) ?
|
|
1778
|
+
}, [e._v(" " + e._s(o) + " ")]);
|
|
1779
|
+
})], 2) : !e.state.prevItem.type || ["radio", "input"].includes(e.state.prevItem.type) ? r("div", {
|
|
1721
1780
|
directives: [{
|
|
1722
1781
|
name: "loading",
|
|
1723
1782
|
rawName: "v-loading",
|
|
@@ -1732,45 +1791,45 @@ var ua = function() {
|
|
|
1732
1791
|
on: {
|
|
1733
1792
|
scroll: e.vsHandleScroll
|
|
1734
1793
|
}
|
|
1735
|
-
}, [
|
|
1794
|
+
}, [r("div", {
|
|
1736
1795
|
staticClass: "tvp-search-box__virtual-phantom",
|
|
1737
1796
|
style: {
|
|
1738
1797
|
height: e.vsTotalHeight + "px"
|
|
1739
1798
|
}
|
|
1740
|
-
}, [
|
|
1799
|
+
}, [r("div", {
|
|
1741
1800
|
staticClass: "tvp-search-box__virtual-content",
|
|
1742
1801
|
style: {
|
|
1743
1802
|
transform: "translateY(" + e.vsOffsetY + "px)"
|
|
1744
1803
|
}
|
|
1745
|
-
}, e._l(e.vsVisibleItems, function(
|
|
1746
|
-
return
|
|
1747
|
-
key: e.vsStartIndex + t + (
|
|
1804
|
+
}, e._l(e.vsVisibleItems, function(o, t) {
|
|
1805
|
+
return r("tiny-dropdown-item", {
|
|
1806
|
+
key: e.vsStartIndex + t + (o.field || o.label),
|
|
1748
1807
|
staticClass: "tvp-search-box__dropdown-item",
|
|
1749
1808
|
attrs: {
|
|
1750
|
-
disabled:
|
|
1751
|
-
"item-data":
|
|
1809
|
+
disabled: o.isChecked,
|
|
1810
|
+
"item-data": o
|
|
1752
1811
|
},
|
|
1753
1812
|
on: {
|
|
1754
1813
|
"item-click": function() {
|
|
1755
|
-
return e.selectRadioItem(
|
|
1814
|
+
return e.selectRadioItem(o);
|
|
1756
1815
|
}
|
|
1757
1816
|
}
|
|
1758
|
-
}, [
|
|
1817
|
+
}, [o.match ? r("span", {
|
|
1759
1818
|
attrs: {
|
|
1760
|
-
title:
|
|
1819
|
+
title: o.label
|
|
1761
1820
|
}
|
|
1762
|
-
}, e._l(
|
|
1763
|
-
return
|
|
1764
|
-
key:
|
|
1765
|
-
}, [d.toLowerCase() ===
|
|
1821
|
+
}, e._l(o.match, function(d, s) {
|
|
1822
|
+
return r("span", {
|
|
1823
|
+
key: s
|
|
1824
|
+
}, [d.toLowerCase() === o.hightlighStr ? r("span", {
|
|
1766
1825
|
staticClass: "tvp-search-box__text-highlight"
|
|
1767
|
-
}, [e._v(e._s(d))]) :
|
|
1768
|
-
}), 0) :
|
|
1826
|
+
}, [e._v(e._s(d))]) : r("span", [e._v(e._s(d))])]);
|
|
1827
|
+
}), 0) : r("span", {
|
|
1769
1828
|
attrs: {
|
|
1770
|
-
title:
|
|
1829
|
+
title: o.label
|
|
1771
1830
|
}
|
|
1772
|
-
}, [e._v(e._s(
|
|
1773
|
-
}), 1)])]) : e.state.prevItem.type === "checkbox" ?
|
|
1831
|
+
}, [e._v(e._s(o.label))])]);
|
|
1832
|
+
}), 1)])]) : e.state.prevItem.type === "checkbox" ? r("div", {
|
|
1774
1833
|
directives: [{
|
|
1775
1834
|
name: "loading",
|
|
1776
1835
|
rawName: "v-loading",
|
|
@@ -1778,170 +1837,170 @@ var ua = function() {
|
|
|
1778
1837
|
expression: "isLoading"
|
|
1779
1838
|
}],
|
|
1780
1839
|
class: e.isLoading && "tvp-search-box__loading-box"
|
|
1781
|
-
}, [e.showCheckBoxList ?
|
|
1840
|
+
}, [e.showCheckBoxList ? r("div", {
|
|
1782
1841
|
staticClass: "tvp-search-box__checkbox-wrap",
|
|
1783
1842
|
style: {
|
|
1784
1843
|
maxHeight: e.panelMaxHeight
|
|
1785
1844
|
}
|
|
1786
|
-
}, [
|
|
1845
|
+
}, [r("div", {
|
|
1787
1846
|
ref: "vsScrollEl",
|
|
1788
1847
|
staticClass: "tvp-search-box__virtual-list tvp-search-box__checkbox-scroll",
|
|
1789
1848
|
on: {
|
|
1790
1849
|
scroll: e.vsHandleScroll
|
|
1791
1850
|
}
|
|
1792
|
-
}, [
|
|
1851
|
+
}, [r("tiny-checkbox-group", {
|
|
1793
1852
|
staticClass: "tvp-search-box__checkbox",
|
|
1794
1853
|
model: {
|
|
1795
1854
|
value: e.state.checkAll,
|
|
1796
|
-
callback: function(
|
|
1797
|
-
e.$set(e.state, "checkAll",
|
|
1855
|
+
callback: function(o) {
|
|
1856
|
+
e.$set(e.state, "checkAll", o);
|
|
1798
1857
|
},
|
|
1799
1858
|
expression: "state.checkAll"
|
|
1800
1859
|
}
|
|
1801
|
-
}, [
|
|
1860
|
+
}, [r("tiny-dropdown-item", {
|
|
1802
1861
|
staticClass: "tvp-search-box__dropdown-item tvp-search-box__checkbox-item"
|
|
1803
|
-
}, [
|
|
1862
|
+
}, [r("tiny-checkbox", {
|
|
1804
1863
|
attrs: {
|
|
1805
1864
|
indeterminate: e.state.isIndeterminate
|
|
1806
1865
|
},
|
|
1807
1866
|
model: {
|
|
1808
1867
|
value: e.state.checkAll,
|
|
1809
|
-
callback: function(
|
|
1810
|
-
e.$set(e.state, "checkAll",
|
|
1868
|
+
callback: function(o) {
|
|
1869
|
+
e.$set(e.state, "checkAll", o);
|
|
1811
1870
|
},
|
|
1812
1871
|
expression: "state.checkAll"
|
|
1813
1872
|
}
|
|
1814
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.selectAll")) + " ")])], 1)], 1),
|
|
1873
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.selectAll")) + " ")])], 1)], 1), r("tiny-checkbox-group", {
|
|
1815
1874
|
staticClass: "tvp-search-box__checkbox",
|
|
1816
1875
|
model: {
|
|
1817
1876
|
value: e.state.checkboxGroup,
|
|
1818
|
-
callback: function(
|
|
1819
|
-
e.$set(e.state, "checkboxGroup",
|
|
1877
|
+
callback: function(o) {
|
|
1878
|
+
e.$set(e.state, "checkboxGroup", o);
|
|
1820
1879
|
},
|
|
1821
1880
|
expression: "state.checkboxGroup"
|
|
1822
1881
|
}
|
|
1823
|
-
}, [
|
|
1882
|
+
}, [r("div", {
|
|
1824
1883
|
staticClass: "tvp-search-box__virtual-phantom",
|
|
1825
1884
|
style: {
|
|
1826
1885
|
height: e.vsTotalHeight + "px"
|
|
1827
1886
|
}
|
|
1828
|
-
}, [
|
|
1887
|
+
}, [r("div", {
|
|
1829
1888
|
staticClass: "tvp-search-box__virtual-content",
|
|
1830
1889
|
style: {
|
|
1831
1890
|
transform: "translateY(" + e.vsOffsetY + "px)"
|
|
1832
1891
|
}
|
|
1833
|
-
}, e._l(e.vsVisibleItems, function(
|
|
1834
|
-
return
|
|
1835
|
-
key: (
|
|
1892
|
+
}, e._l(e.vsVisibleItems, function(o, t) {
|
|
1893
|
+
return r("tiny-dropdown-item", {
|
|
1894
|
+
key: (o.field || o.label) + e.vsStartIndex + t,
|
|
1836
1895
|
staticClass: "tvp-search-box__dropdown-item tvp-search-box__checkbox-item"
|
|
1837
|
-
}, [
|
|
1896
|
+
}, [r("tiny-checkbox", {
|
|
1838
1897
|
staticClass: "tvp-search-box__checkbox-item-label",
|
|
1839
1898
|
attrs: {
|
|
1840
|
-
label: e.state.prevItem.label +
|
|
1841
|
-
title:
|
|
1899
|
+
label: e.state.prevItem.label + o.label,
|
|
1900
|
+
title: o.label
|
|
1842
1901
|
}
|
|
1843
|
-
}, [e._v(" " + e._s(
|
|
1844
|
-
}), 1)])])], 1),
|
|
1902
|
+
}, [e._v(" " + e._s(o.label) + " ")])], 1);
|
|
1903
|
+
}), 1)])])], 1), r("div", {
|
|
1845
1904
|
staticClass: "tvp-search-box__checkbox-btn"
|
|
1846
|
-
}, [
|
|
1905
|
+
}, [r("tiny-button", {
|
|
1847
1906
|
attrs: {
|
|
1848
1907
|
size: "mini"
|
|
1849
1908
|
},
|
|
1850
1909
|
on: {
|
|
1851
|
-
click: function(
|
|
1910
|
+
click: function(o) {
|
|
1852
1911
|
return e.selectCheckbox(!1);
|
|
1853
1912
|
}
|
|
1854
1913
|
}
|
|
1855
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.cancel")) + " ")]),
|
|
1914
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.cancel")) + " ")]), r("tiny-button", {
|
|
1856
1915
|
attrs: {
|
|
1857
1916
|
size: "mini"
|
|
1858
1917
|
},
|
|
1859
1918
|
on: {
|
|
1860
|
-
click: function(
|
|
1919
|
+
click: function(o) {
|
|
1861
1920
|
return e.selectCheckbox(!0);
|
|
1862
1921
|
}
|
|
1863
1922
|
}
|
|
1864
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.confirm")) + " ")])], 1)]) : e._e()]) : e.state.prevItem.type === "numRange" ?
|
|
1923
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.confirm")) + " ")])], 1)]) : e._e()]) : e.state.prevItem.type === "numRange" ? r("div", {
|
|
1865
1924
|
staticClass: "tvp-search-box__panel-box"
|
|
1866
|
-
}, [
|
|
1925
|
+
}, [r("div", {
|
|
1867
1926
|
staticClass: "tvp-search-box__number"
|
|
1868
|
-
}, [
|
|
1927
|
+
}, [r("div", {
|
|
1869
1928
|
staticClass: "tvp-search-box__dropdown-title"
|
|
1870
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.rangeNumberTitle")) + " ")]),
|
|
1929
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.rangeNumberTitle")) + " ")]), r("div", {
|
|
1871
1930
|
staticClass: "tvp-search-box__dropdown-start"
|
|
1872
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.minValueText")) + e._s(e.state.prevItem.unit ? `(${e.state.prevItem.unit})` : "") + " ")]),
|
|
1931
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.minValueText")) + e._s(e.state.prevItem.unit ? `(${e.state.prevItem.unit})` : "") + " ")]), r("div", {
|
|
1873
1932
|
class: ["tvp-search-box__number-item", {
|
|
1874
1933
|
"is-error": e.state.formErrors[e.state.curMinNumVar]
|
|
1875
1934
|
}]
|
|
1876
|
-
}, [
|
|
1935
|
+
}, [r("tiny-input", {
|
|
1877
1936
|
staticClass: "tvp-search-box__number-input",
|
|
1878
1937
|
attrs: {
|
|
1879
1938
|
type: "number"
|
|
1880
1939
|
},
|
|
1881
1940
|
model: {
|
|
1882
1941
|
value: e.state[e.state.curMinNumVar],
|
|
1883
|
-
callback: function(
|
|
1884
|
-
e.$set(e.state, e.state.curMinNumVar,
|
|
1942
|
+
callback: function(o) {
|
|
1943
|
+
e.$set(e.state, e.state.curMinNumVar, o);
|
|
1885
1944
|
},
|
|
1886
1945
|
expression: "state[state.curMinNumVar]"
|
|
1887
1946
|
}
|
|
1888
|
-
}), e.state.formErrors[e.state.curMinNumVar] && e.state.numberShowMessage ?
|
|
1947
|
+
}), e.state.formErrors[e.state.curMinNumVar] && e.state.numberShowMessage ? r("div", {
|
|
1889
1948
|
staticClass: "tvp-search-box__error-msg"
|
|
1890
|
-
}, [e._v(" " + e._s(e.state.formErrors[e.state.curMinNumVar]) + " ")]) : e._e()], 1),
|
|
1949
|
+
}, [e._v(" " + e._s(e.state.formErrors[e.state.curMinNumVar]) + " ")]) : e._e()], 1), r("div", {
|
|
1891
1950
|
staticClass: "tvp-search-box__dropdown-end"
|
|
1892
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.maxValueText")) + e._s(e.state.prevItem.unit ? `(${e.state.prevItem.unit})` : "") + " ")]),
|
|
1951
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.maxValueText")) + e._s(e.state.prevItem.unit ? `(${e.state.prevItem.unit})` : "") + " ")]), r("div", {
|
|
1893
1952
|
class: ["tvp-search-box__number-item", {
|
|
1894
1953
|
"is-error": e.state.formErrors[e.state.curMaxNumVar]
|
|
1895
1954
|
}]
|
|
1896
|
-
}, [
|
|
1955
|
+
}, [r("tiny-input", {
|
|
1897
1956
|
staticClass: "tvp-search-box__number-input",
|
|
1898
1957
|
attrs: {
|
|
1899
1958
|
type: "number"
|
|
1900
1959
|
},
|
|
1901
1960
|
model: {
|
|
1902
1961
|
value: e.state[e.state.curMaxNumVar],
|
|
1903
|
-
callback: function(
|
|
1904
|
-
e.$set(e.state, e.state.curMaxNumVar,
|
|
1962
|
+
callback: function(o) {
|
|
1963
|
+
e.$set(e.state, e.state.curMaxNumVar, o);
|
|
1905
1964
|
},
|
|
1906
1965
|
expression: "state[state.curMaxNumVar]"
|
|
1907
1966
|
}
|
|
1908
|
-
}), e.state.formErrors[e.state.curMaxNumVar] ?
|
|
1967
|
+
}), e.state.formErrors[e.state.curMaxNumVar] ? r("div", {
|
|
1909
1968
|
staticClass: "tvp-search-box__error-msg"
|
|
1910
|
-
}, [e._v(" " + e._s(e.state.formErrors[e.state.curMaxNumVar]) + " ")]) : e._e()], 1)]),
|
|
1969
|
+
}, [e._v(" " + e._s(e.state.formErrors[e.state.curMaxNumVar]) + " ")]) : e._e()], 1)]), r("div", {
|
|
1911
1970
|
staticClass: "tvp-search-box__bottom-btn"
|
|
1912
|
-
}, [
|
|
1971
|
+
}, [r("tiny-button", {
|
|
1913
1972
|
attrs: {
|
|
1914
1973
|
size: "mini"
|
|
1915
1974
|
},
|
|
1916
1975
|
on: {
|
|
1917
|
-
click: function(
|
|
1976
|
+
click: function(o) {
|
|
1918
1977
|
return e.sizeChange(!1);
|
|
1919
1978
|
}
|
|
1920
1979
|
}
|
|
1921
|
-
}, [e._v(e._s(e.t("tvp.tvpSearchbox.cancel")))]),
|
|
1980
|
+
}, [e._v(e._s(e.t("tvp.tvpSearchbox.cancel")))]), r("tiny-button", {
|
|
1922
1981
|
attrs: {
|
|
1923
1982
|
size: "mini"
|
|
1924
1983
|
},
|
|
1925
1984
|
on: {
|
|
1926
|
-
click: function(
|
|
1927
|
-
return
|
|
1985
|
+
click: function(o) {
|
|
1986
|
+
return o.stopPropagation(), e.sizeChange(!0);
|
|
1928
1987
|
}
|
|
1929
1988
|
}
|
|
1930
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.confirm")) + " ")])], 1)]) : e.state.prevItem.type === "dateRange" ?
|
|
1989
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.confirm")) + " ")])], 1)]) : e.state.prevItem.type === "dateRange" ? r("div", {
|
|
1931
1990
|
staticClass: "tvp-search-box__panel-box"
|
|
1932
|
-
}, [
|
|
1991
|
+
}, [r("div", {
|
|
1933
1992
|
staticClass: "tvp-search-box__date-wrap"
|
|
1934
|
-
}, [
|
|
1993
|
+
}, [r("div", {
|
|
1935
1994
|
staticClass: "tvp-search-box__dropdown-title"
|
|
1936
1995
|
}, [e._v(" " + e._s(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
|
|
1937
1996
|
value: (e.state.prevItem.maxTimeLength / 864e5).toFixed(1)
|
|
1938
|
-
}) : e.t("tvp.tvpSearchbox.rangeDateTitle")) + " ")]),
|
|
1997
|
+
}) : e.t("tvp.tvpSearchbox.rangeDateTitle")) + " ")]), r("div", {
|
|
1939
1998
|
staticClass: "tvp-search-box__dropdown-start"
|
|
1940
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.rangeBeginLabel")) + " ")]),
|
|
1999
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.rangeBeginLabel")) + " ")]), r("div", {
|
|
1941
2000
|
class: ["tvp-search-box__date-item", {
|
|
1942
2001
|
"is-error": e.state.formErrors.startDate
|
|
1943
2002
|
}]
|
|
1944
|
-
}, [
|
|
2003
|
+
}, [r("tiny-date-picker", {
|
|
1945
2004
|
staticClass: "tvp-search-box__date-picker",
|
|
1946
2005
|
attrs: {
|
|
1947
2006
|
format: e.state.prevItem.format || e.state.dateRangeFormat,
|
|
@@ -1950,26 +2009,26 @@ var ua = function() {
|
|
|
1950
2009
|
},
|
|
1951
2010
|
on: {
|
|
1952
2011
|
"visible-change": e.handleDateShow,
|
|
1953
|
-
change: function(
|
|
2012
|
+
change: function(o) {
|
|
1954
2013
|
return e.onDateChange(!1);
|
|
1955
2014
|
}
|
|
1956
2015
|
},
|
|
1957
2016
|
model: {
|
|
1958
2017
|
value: e.state.startDate,
|
|
1959
|
-
callback: function(
|
|
1960
|
-
e.$set(e.state, "startDate",
|
|
2018
|
+
callback: function(o) {
|
|
2019
|
+
e.$set(e.state, "startDate", o);
|
|
1961
2020
|
},
|
|
1962
2021
|
expression: "state.startDate"
|
|
1963
2022
|
}
|
|
1964
|
-
}), e.state.formErrors.startDate && e.state.prevItem.maxTimeLength ?
|
|
2023
|
+
}), e.state.formErrors.startDate && e.state.prevItem.maxTimeLength ? r("div", {
|
|
1965
2024
|
staticClass: "tvp-search-box__error-msg"
|
|
1966
|
-
}, [e._v(" " + e._s(e.state.formErrors.startDate) + " ")]) : e._e()], 1),
|
|
2025
|
+
}, [e._v(" " + e._s(e.state.formErrors.startDate) + " ")]) : e._e()], 1), r("div", {
|
|
1967
2026
|
staticClass: "tvp-search-box__dropdown-end"
|
|
1968
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.rangeEndLabel")) + " ")]),
|
|
2027
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.rangeEndLabel")) + " ")]), r("div", {
|
|
1969
2028
|
class: ["tvp-search-box__date-item", {
|
|
1970
2029
|
"is-error": e.state.formErrors.endDate
|
|
1971
2030
|
}]
|
|
1972
|
-
}, [
|
|
2031
|
+
}, [r("tiny-date-picker", {
|
|
1973
2032
|
staticClass: "tvp-search-box__date-picker",
|
|
1974
2033
|
attrs: {
|
|
1975
2034
|
format: e.state.prevItem.format || e.state.dateRangeFormat,
|
|
@@ -1977,56 +2036,56 @@ var ua = function() {
|
|
|
1977
2036
|
"picker-options": e.pickerOptions(e.state.startDate)
|
|
1978
2037
|
},
|
|
1979
2038
|
on: {
|
|
1980
|
-
change: function(
|
|
2039
|
+
change: function(o) {
|
|
1981
2040
|
return e.onDateChange(!1);
|
|
1982
2041
|
},
|
|
1983
2042
|
blur: e.handleDateShow
|
|
1984
2043
|
},
|
|
1985
2044
|
model: {
|
|
1986
2045
|
value: e.state.endDate,
|
|
1987
|
-
callback: function(
|
|
1988
|
-
e.$set(e.state, "endDate",
|
|
2046
|
+
callback: function(o) {
|
|
2047
|
+
e.$set(e.state, "endDate", o);
|
|
1989
2048
|
},
|
|
1990
2049
|
expression: "state.endDate"
|
|
1991
2050
|
}
|
|
1992
|
-
}), e.state.formErrors.endDate ?
|
|
2051
|
+
}), e.state.formErrors.endDate ? r("div", {
|
|
1993
2052
|
staticClass: "tvp-search-box__error-msg"
|
|
1994
|
-
}, [e._v(" " + e._s(e.state.formErrors.endDate) + " ")]) : e._e()], 1)]),
|
|
2053
|
+
}, [e._v(" " + e._s(e.state.formErrors.endDate) + " ")]) : e._e()], 1)]), r("div", {
|
|
1995
2054
|
staticClass: "tvp-search-box__bottom-btn"
|
|
1996
|
-
}, [
|
|
2055
|
+
}, [r("tiny-button", {
|
|
1997
2056
|
attrs: {
|
|
1998
2057
|
size: "mini"
|
|
1999
2058
|
},
|
|
2000
2059
|
on: {
|
|
2001
|
-
click: function(
|
|
2060
|
+
click: function(o) {
|
|
2002
2061
|
return e.onConfirmDate(!1);
|
|
2003
2062
|
}
|
|
2004
2063
|
}
|
|
2005
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.cancel")) + " ")]),
|
|
2064
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.cancel")) + " ")]), r("tiny-button", {
|
|
2006
2065
|
attrs: {
|
|
2007
2066
|
size: "mini",
|
|
2008
2067
|
disabled: e.isDateRangeInvalid
|
|
2009
2068
|
},
|
|
2010
2069
|
on: {
|
|
2011
|
-
click: function(
|
|
2070
|
+
click: function(o) {
|
|
2012
2071
|
return e.onConfirmDate(!0);
|
|
2013
2072
|
}
|
|
2014
2073
|
}
|
|
2015
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.confirm")) + " ")])], 1)]) : e.state.prevItem.type === "datetimeRange" ?
|
|
2074
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.confirm")) + " ")])], 1)]) : e.state.prevItem.type === "datetimeRange" ? r("div", {
|
|
2016
2075
|
staticClass: "tvp-search-box__panel-box"
|
|
2017
|
-
}, [
|
|
2076
|
+
}, [r("div", {
|
|
2018
2077
|
staticClass: "tvp-search-box__date-wrap"
|
|
2019
|
-
}, [
|
|
2078
|
+
}, [r("div", {
|
|
2020
2079
|
staticClass: "tvp-search-box__dropdown-title"
|
|
2021
2080
|
}, [e._v(" " + e._s(e.state.prevItem.maxTimeLength > 0 ? e.t("tvp.tvpSearchbox.timeLengthTitle", {
|
|
2022
2081
|
value: (e.state.prevItem.maxTimeLength / 864e5).toFixed(1)
|
|
2023
|
-
}) : e.t("tvp.tvpSearchbox.rangeDateTitle")) + " ")]),
|
|
2082
|
+
}) : e.t("tvp.tvpSearchbox.rangeDateTitle")) + " ")]), r("div", {
|
|
2024
2083
|
staticClass: "tvp-search-box__dropdown-start"
|
|
2025
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.rangeBeginLabel")) + " ")]),
|
|
2084
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.rangeBeginLabel")) + " ")]), r("div", {
|
|
2026
2085
|
class: ["tvp-search-box__date-item", {
|
|
2027
2086
|
"is-error": e.state.formErrors.startDateTime
|
|
2028
2087
|
}]
|
|
2029
|
-
}, [
|
|
2088
|
+
}, [r("tiny-date-picker", {
|
|
2030
2089
|
staticClass: "tvp-search-box__date-picker",
|
|
2031
2090
|
attrs: {
|
|
2032
2091
|
type: "datetime",
|
|
@@ -2036,27 +2095,27 @@ var ua = function() {
|
|
|
2036
2095
|
"picker-options": e.pickerOptions(e.state.startDateTime, "endDateTime")
|
|
2037
2096
|
},
|
|
2038
2097
|
on: {
|
|
2039
|
-
change: function(
|
|
2098
|
+
change: function(o) {
|
|
2040
2099
|
return e.onDateChange(!0);
|
|
2041
2100
|
},
|
|
2042
2101
|
blur: e.handleDateShow
|
|
2043
2102
|
},
|
|
2044
2103
|
model: {
|
|
2045
2104
|
value: e.state.startDateTime,
|
|
2046
|
-
callback: function(
|
|
2047
|
-
e.$set(e.state, "startDateTime",
|
|
2105
|
+
callback: function(o) {
|
|
2106
|
+
e.$set(e.state, "startDateTime", o);
|
|
2048
2107
|
},
|
|
2049
2108
|
expression: "state.startDateTime"
|
|
2050
2109
|
}
|
|
2051
|
-
}), e.state.formErrors.startDateTime && e.state.prevItem.maxTimeLength ?
|
|
2110
|
+
}), e.state.formErrors.startDateTime && e.state.prevItem.maxTimeLength ? r("div", {
|
|
2052
2111
|
staticClass: "tvp-search-box__error-msg"
|
|
2053
|
-
}, [e._v(" " + e._s(e.state.formErrors.startDateTime) + " ")]) : e._e()], 1),
|
|
2112
|
+
}, [e._v(" " + e._s(e.state.formErrors.startDateTime) + " ")]) : e._e()], 1), r("div", {
|
|
2054
2113
|
staticClass: "tvp-search-box__dropdown-end"
|
|
2055
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.rangeEndLabel")) + " ")]),
|
|
2114
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.rangeEndLabel")) + " ")]), r("div", {
|
|
2056
2115
|
class: ["tvp-search-box__date-item", {
|
|
2057
2116
|
"is-error": e.state.formErrors.endDateTime
|
|
2058
2117
|
}]
|
|
2059
|
-
}, [
|
|
2118
|
+
}, [r("tiny-date-picker", {
|
|
2060
2119
|
staticClass: "tvp-search-box__date-picker",
|
|
2061
2120
|
attrs: {
|
|
2062
2121
|
type: "datetime",
|
|
@@ -2066,49 +2125,49 @@ var ua = function() {
|
|
|
2066
2125
|
"picker-options": e.pickerOptions(e.state.startDateTime)
|
|
2067
2126
|
},
|
|
2068
2127
|
on: {
|
|
2069
|
-
change: function(
|
|
2128
|
+
change: function(o) {
|
|
2070
2129
|
return e.onDateChange(!0);
|
|
2071
2130
|
},
|
|
2072
2131
|
blur: e.handleDateShow
|
|
2073
2132
|
},
|
|
2074
2133
|
model: {
|
|
2075
2134
|
value: e.state.endDateTime,
|
|
2076
|
-
callback: function(
|
|
2077
|
-
e.$set(e.state, "endDateTime",
|
|
2135
|
+
callback: function(o) {
|
|
2136
|
+
e.$set(e.state, "endDateTime", o);
|
|
2078
2137
|
},
|
|
2079
2138
|
expression: "state.endDateTime"
|
|
2080
2139
|
}
|
|
2081
|
-
}), e.state.formErrors.endDateTime ?
|
|
2140
|
+
}), e.state.formErrors.endDateTime ? r("div", {
|
|
2082
2141
|
staticClass: "tvp-search-box__error-msg"
|
|
2083
|
-
}, [e._v(" " + e._s(e.state.formErrors.endDateTime) + " ")]) : e._e()], 1)]),
|
|
2142
|
+
}, [e._v(" " + e._s(e.state.formErrors.endDateTime) + " ")]) : e._e()], 1)]), r("div", {
|
|
2084
2143
|
staticClass: "tvp-search-box__bottom-btn"
|
|
2085
|
-
}, [
|
|
2144
|
+
}, [r("tiny-button", {
|
|
2086
2145
|
attrs: {
|
|
2087
2146
|
size: "mini"
|
|
2088
2147
|
},
|
|
2089
2148
|
on: {
|
|
2090
|
-
click: function(
|
|
2149
|
+
click: function(o) {
|
|
2091
2150
|
return e.onConfirmDate(!1, !0);
|
|
2092
2151
|
}
|
|
2093
2152
|
}
|
|
2094
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.cancel")) + " ")]),
|
|
2153
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.cancel")) + " ")]), r("tiny-button", {
|
|
2095
2154
|
attrs: {
|
|
2096
2155
|
size: "mini",
|
|
2097
2156
|
disabled: e.isDateRangeInvalid
|
|
2098
2157
|
},
|
|
2099
2158
|
on: {
|
|
2100
|
-
click: function(
|
|
2159
|
+
click: function(o) {
|
|
2101
2160
|
return e.onConfirmDate(!0, !0);
|
|
2102
2161
|
}
|
|
2103
2162
|
}
|
|
2104
|
-
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.confirm")) + " ")])], 1)]) : e.state.prevItem.type === "map" ?
|
|
2163
|
+
}, [e._v(" " + e._s(e.t("tvp.tvpSearchbox.confirm")) + " ")])], 1)]) : e.state.prevItem.type === "map" ? r("div", {
|
|
2105
2164
|
directives: [{
|
|
2106
2165
|
name: "loading",
|
|
2107
2166
|
rawName: "v-loading",
|
|
2108
2167
|
value: e.isLoading,
|
|
2109
2168
|
expression: "isLoading"
|
|
2110
2169
|
}]
|
|
2111
|
-
}, [
|
|
2170
|
+
}, [r("div", {
|
|
2112
2171
|
ref: "vsScrollEl",
|
|
2113
2172
|
staticClass: "tvp-search-box__virtual-list",
|
|
2114
2173
|
style: {
|
|
@@ -2117,125 +2176,125 @@ var ua = function() {
|
|
|
2117
2176
|
on: {
|
|
2118
2177
|
scroll: e.vsHandleScroll
|
|
2119
2178
|
}
|
|
2120
|
-
}, [e.state.isShowTagKey ?
|
|
2179
|
+
}, [e.state.isShowTagKey ? r("span", {
|
|
2121
2180
|
staticClass: "tvp-search-box__filter-type"
|
|
2122
|
-
}, [e._v(e._s(e.t("tvp.tvpSearchbox.tagKey")))]) :
|
|
2181
|
+
}, [e._v(e._s(e.t("tvp.tvpSearchbox.tagKey")))]) : r("span", {
|
|
2123
2182
|
staticClass: "tvp-search-box__filter-type"
|
|
2124
|
-
}, [e._v(e._s(e.t("tvp.tvpSearchbox.tagValue")))]),
|
|
2183
|
+
}, [e._v(e._s(e.t("tvp.tvpSearchbox.tagValue")))]), r("div", {
|
|
2125
2184
|
staticClass: "tvp-search-box__virtual-phantom",
|
|
2126
2185
|
style: {
|
|
2127
2186
|
height: e.vsTotalHeight + "px"
|
|
2128
2187
|
}
|
|
2129
|
-
}, [
|
|
2188
|
+
}, [r("div", {
|
|
2130
2189
|
staticClass: "tvp-search-box__virtual-content",
|
|
2131
2190
|
style: {
|
|
2132
2191
|
transform: "translateY(" + e.vsOffsetY + "px)"
|
|
2133
2192
|
}
|
|
2134
|
-
}, e._l(e.vsVisibleItems, function(
|
|
2135
|
-
return
|
|
2136
|
-
key:
|
|
2193
|
+
}, e._l(e.vsVisibleItems, function(o, t) {
|
|
2194
|
+
return r("tiny-dropdown-item", {
|
|
2195
|
+
key: o.label + o.value + e.vsStartIndex + t,
|
|
2137
2196
|
staticClass: "tvp-search-box__dropdown-item",
|
|
2138
2197
|
attrs: {
|
|
2139
|
-
disabled:
|
|
2140
|
-
"item-data":
|
|
2198
|
+
disabled: o.isChecked,
|
|
2199
|
+
"item-data": o
|
|
2141
2200
|
},
|
|
2142
2201
|
on: {
|
|
2143
2202
|
"item-click": function() {
|
|
2144
|
-
return e.selectFirstMap(
|
|
2203
|
+
return e.selectFirstMap(o, e.state.isShowTagKey);
|
|
2145
2204
|
}
|
|
2146
2205
|
}
|
|
2147
|
-
}, [
|
|
2206
|
+
}, [r("span", {
|
|
2148
2207
|
attrs: {
|
|
2149
|
-
title:
|
|
2208
|
+
title: o.label
|
|
2150
2209
|
}
|
|
2151
|
-
}, [e._v(e._s(
|
|
2210
|
+
}, [e._v(e._s(o.label))])]);
|
|
2152
2211
|
}), 1)])])]) : e._e()]);
|
|
2153
2212
|
}, pa = [];
|
|
2154
|
-
const da = (a, e, { emit: n, nextTick:
|
|
2155
|
-
const { computed: t, reactive: d, watch:
|
|
2156
|
-
n("events",
|
|
2157
|
-
}), u = (
|
|
2158
|
-
p("setOperator",
|
|
2159
|
-
}, f = (
|
|
2160
|
-
p("selectRadioItem",
|
|
2161
|
-
}, i = (
|
|
2162
|
-
p("selectCheckbox",
|
|
2163
|
-
}, c = (
|
|
2164
|
-
p("sizeChange",
|
|
2165
|
-
},
|
|
2166
|
-
p("onConfirmDate",
|
|
2167
|
-
},
|
|
2168
|
-
p("selectFirstMap",
|
|
2169
|
-
}, h = (
|
|
2170
|
-
p("handleDateShow",
|
|
2171
|
-
},
|
|
2172
|
-
p("handleDateShow"), p("validateDateRange",
|
|
2173
|
-
},
|
|
2174
|
-
const { prevItem:
|
|
2175
|
-
if (
|
|
2176
|
-
const { startDate:
|
|
2177
|
-
return !!(
|
|
2178
|
-
}
|
|
2179
|
-
if (
|
|
2180
|
-
const { startDateTime:
|
|
2181
|
-
return !!(
|
|
2213
|
+
const da = (a, e, { emit: n, nextTick: r, refs: o }) => {
|
|
2214
|
+
const { computed: t, reactive: d, watch: s, onMounted: l } = e, p = a.handleEvents || a.events || ((v, x, y) => {
|
|
2215
|
+
n("events", v, x, y);
|
|
2216
|
+
}), u = (v) => {
|
|
2217
|
+
p("setOperator", v);
|
|
2218
|
+
}, f = (v) => {
|
|
2219
|
+
p("selectRadioItem", v);
|
|
2220
|
+
}, i = (v) => {
|
|
2221
|
+
p("selectCheckbox", v);
|
|
2222
|
+
}, c = (v) => {
|
|
2223
|
+
p("sizeChange", v);
|
|
2224
|
+
}, m = (v, x) => {
|
|
2225
|
+
p("onConfirmDate", v, x);
|
|
2226
|
+
}, b = (v, x) => {
|
|
2227
|
+
p("selectFirstMap", v, x);
|
|
2228
|
+
}, h = (v) => {
|
|
2229
|
+
p("handleDateShow", v);
|
|
2230
|
+
}, V = (v) => {
|
|
2231
|
+
p("handleDateShow"), p("validateDateRange", v);
|
|
2232
|
+
}, w = t(() => {
|
|
2233
|
+
const { prevItem: v, dateRangeFormat: x, datetimeRangeFormat: y } = a.state, S = v.type;
|
|
2234
|
+
if (S === "dateRange") {
|
|
2235
|
+
const { startDate: E, endDate: k } = a.state, D = v.format || x;
|
|
2236
|
+
return !!(E && k && re(k, E, D) < 0);
|
|
2237
|
+
}
|
|
2238
|
+
if (S === "datetimeRange") {
|
|
2239
|
+
const { startDateTime: E, endDateTime: k } = a.state, D = v.format || y;
|
|
2240
|
+
return !!(E && k && re(k, E, D) < 0);
|
|
2182
2241
|
}
|
|
2183
2242
|
return !1;
|
|
2243
|
+
}), I = t(() => {
|
|
2244
|
+
var v;
|
|
2245
|
+
return a.state.hasBackupList && ((v = a.state.backupList) == null ? void 0 : v.length) === 0;
|
|
2184
2246
|
}), T = t(() => {
|
|
2185
|
-
var
|
|
2186
|
-
return
|
|
2187
|
-
}),
|
|
2188
|
-
|
|
2189
|
-
return
|
|
2190
|
-
}), _ =
|
|
2191
|
-
const b = a.state.prevItem.type, y = a.state.backupList || [];
|
|
2192
|
-
return !b || b === "radio" ? a.state.inputValue ? y.filter((w) => !w.isFilter) : y : y.filter((w) => !w.isFilter);
|
|
2193
|
-
}), g = ca(
|
|
2247
|
+
var v;
|
|
2248
|
+
return (v = a.state.backupList) == null ? void 0 : v.find((x) => !x.isFilter);
|
|
2249
|
+
}), g = t(() => {
|
|
2250
|
+
const v = a.state.prevItem.type, x = a.state.backupList || [];
|
|
2251
|
+
return !v || v === "radio" ? a.state.inputValue ? x.filter((y) => !y.isFilter) : x : x.filter((y) => !y.isFilter);
|
|
2252
|
+
}), _ = ca(
|
|
2194
2253
|
{ reactive: d, computed: t },
|
|
2195
2254
|
{
|
|
2196
|
-
getList: () =>
|
|
2255
|
+
getList: () => g.value,
|
|
2197
2256
|
itemHeight: 32,
|
|
2198
2257
|
bufferSize: 5,
|
|
2199
2258
|
headerHeight: () => {
|
|
2200
|
-
const
|
|
2201
|
-
return
|
|
2259
|
+
const v = a.state.prevItem.type;
|
|
2260
|
+
return v === "checkbox" || v === "map" ? 32 : 0;
|
|
2202
2261
|
}
|
|
2203
2262
|
}
|
|
2204
2263
|
);
|
|
2205
|
-
return
|
|
2264
|
+
return s(
|
|
2206
2265
|
() => a.state.inputValue,
|
|
2207
2266
|
() => {
|
|
2208
|
-
|
|
2209
|
-
|
|
2267
|
+
_.vsState.scrollTop = 0, r(() => {
|
|
2268
|
+
o.vsScrollEl && (o.vsScrollEl.scrollTop = 0);
|
|
2210
2269
|
});
|
|
2211
2270
|
}
|
|
2212
|
-
),
|
|
2271
|
+
), s(
|
|
2213
2272
|
() => a.state.prevItem,
|
|
2214
2273
|
() => {
|
|
2215
|
-
|
|
2216
|
-
|
|
2274
|
+
_.vsState.scrollTop = 0, r(() => {
|
|
2275
|
+
o.vsScrollEl && (o.vsScrollEl.scrollTop = 0, _.handleScroll({ target: o.vsScrollEl }));
|
|
2217
2276
|
});
|
|
2218
2277
|
},
|
|
2219
2278
|
{ deep: !0 }
|
|
2220
2279
|
), l(() => {
|
|
2221
|
-
|
|
2280
|
+
o.vsScrollEl && _.handleScroll({ target: o.vsScrollEl });
|
|
2222
2281
|
}), {
|
|
2223
2282
|
setOperator: u,
|
|
2224
2283
|
selectRadioItem: f,
|
|
2225
2284
|
selectCheckbox: i,
|
|
2226
2285
|
sizeChange: c,
|
|
2227
|
-
onConfirmDate:
|
|
2228
|
-
selectFirstMap:
|
|
2286
|
+
onConfirmDate: m,
|
|
2287
|
+
selectFirstMap: b,
|
|
2229
2288
|
handleDateShow: h,
|
|
2230
|
-
onDateChange:
|
|
2231
|
-
isDateRangeInvalid:
|
|
2232
|
-
isLoading:
|
|
2233
|
-
showCheckBoxList:
|
|
2234
|
-
vsTotalHeight:
|
|
2235
|
-
vsStartIndex:
|
|
2236
|
-
vsOffsetY:
|
|
2237
|
-
vsVisibleItems:
|
|
2238
|
-
vsHandleScroll:
|
|
2289
|
+
onDateChange: V,
|
|
2290
|
+
isDateRangeInvalid: w,
|
|
2291
|
+
isLoading: I,
|
|
2292
|
+
showCheckBoxList: T,
|
|
2293
|
+
vsTotalHeight: _.totalHeight,
|
|
2294
|
+
vsStartIndex: _.startIndex,
|
|
2295
|
+
vsOffsetY: _.offsetY,
|
|
2296
|
+
vsVisibleItems: _.visibleItems,
|
|
2297
|
+
vsHandleScroll: _.handleScroll,
|
|
2239
2298
|
t: O
|
|
2240
2299
|
};
|
|
2241
2300
|
}, fa = [
|
|
@@ -2257,15 +2316,15 @@ const da = (a, e, { emit: n, nextTick: s, refs: r }) => {
|
|
|
2257
2316
|
"vsHandleScroll",
|
|
2258
2317
|
"t"
|
|
2259
2318
|
], va = fe({
|
|
2260
|
-
name:
|
|
2319
|
+
name: Te + "SearchBoxSecondLevelPanel",
|
|
2261
2320
|
emits: ["events", "click"],
|
|
2262
2321
|
components: {
|
|
2263
|
-
TinyDropdownItem:
|
|
2264
|
-
TinyCheckbox:
|
|
2265
|
-
TinyCheckboxGroup:
|
|
2266
|
-
TinyDatePicker:
|
|
2267
|
-
TinyInput:
|
|
2268
|
-
TinyButton:
|
|
2322
|
+
TinyDropdownItem: Ne,
|
|
2323
|
+
TinyCheckbox: Ue,
|
|
2324
|
+
TinyCheckboxGroup: Ye,
|
|
2325
|
+
TinyDatePicker: Re,
|
|
2326
|
+
TinyInput: Oe,
|
|
2327
|
+
TinyButton: Pe
|
|
2269
2328
|
},
|
|
2270
2329
|
directives: {
|
|
2271
2330
|
loading: qe.directive
|
|
@@ -2295,25 +2354,25 @@ const da = (a, e, { emit: n, nextTick: s, refs: r }) => {
|
|
|
2295
2354
|
}
|
|
2296
2355
|
},
|
|
2297
2356
|
setup(a, e) {
|
|
2298
|
-
return
|
|
2357
|
+
return ke({ props: a, context: e, renderless: da, api: fa });
|
|
2299
2358
|
}
|
|
2300
|
-
}),
|
|
2301
|
-
var
|
|
2359
|
+
}), $e = {};
|
|
2360
|
+
var ma = /* @__PURE__ */ Se(
|
|
2302
2361
|
va,
|
|
2303
2362
|
ua,
|
|
2304
2363
|
pa,
|
|
2305
2364
|
!1,
|
|
2306
|
-
|
|
2365
|
+
ha,
|
|
2307
2366
|
null,
|
|
2308
2367
|
null,
|
|
2309
2368
|
null
|
|
2310
2369
|
);
|
|
2311
|
-
function
|
|
2312
|
-
for (let e in
|
|
2313
|
-
this[e] =
|
|
2370
|
+
function ha(a) {
|
|
2371
|
+
for (let e in $e)
|
|
2372
|
+
this[e] = $e[e];
|
|
2314
2373
|
}
|
|
2315
2374
|
const ba = /* @__PURE__ */ function() {
|
|
2316
|
-
return
|
|
2375
|
+
return ma.exports;
|
|
2317
2376
|
}(), ga = fe({
|
|
2318
2377
|
model: {
|
|
2319
2378
|
prop: "modelValue",
|
|
@@ -2390,12 +2449,12 @@ const ba = /* @__PURE__ */ function() {
|
|
|
2390
2449
|
emits: ["update:modelValue", "change", "search", "exceed", "first-level-select", "second-level-enter", "clear", "tag-click", "help", "validate-error"],
|
|
2391
2450
|
components: {
|
|
2392
2451
|
TinyTag: We,
|
|
2393
|
-
TinyInput:
|
|
2452
|
+
TinyInput: Oe,
|
|
2394
2453
|
TinyDropdown: Ze,
|
|
2395
2454
|
TinyDropdownMenu: Xe,
|
|
2396
|
-
TinyButton:
|
|
2455
|
+
TinyButton: Pe,
|
|
2397
2456
|
TinyTooltip: Qe,
|
|
2398
|
-
TinyDatePicker:
|
|
2457
|
+
TinyDatePicker: Re,
|
|
2399
2458
|
TinyPopover: Je,
|
|
2400
2459
|
TinySelect: et,
|
|
2401
2460
|
TinyOption: tt,
|
|
@@ -2404,18 +2463,18 @@ const ba = /* @__PURE__ */ function() {
|
|
|
2404
2463
|
// 图标组件
|
|
2405
2464
|
TinyIconSearch: at(),
|
|
2406
2465
|
TinyIconClose: nt(),
|
|
2407
|
-
TinyIconHelpQuery:
|
|
2466
|
+
TinyIconHelpQuery: rt()
|
|
2408
2467
|
},
|
|
2409
2468
|
setup(a, e) {
|
|
2410
2469
|
var f, i;
|
|
2411
|
-
const n = ue.getCurrentInstance(),
|
|
2412
|
-
|
|
2413
|
-
const
|
|
2470
|
+
const n = ue.getCurrentInstance(), r = n == null ? void 0 : n.parent, o = ((f = r == null ? void 0 : r.type) == null ? void 0 : f.name) === "AsyncComponentWrapper" && (r != null && r.parent) ? r.parent : r, t = (i = o == null ? void 0 : o.setupState) == null ? void 0 : i.state, d = ke({ props: a, context: e, renderless: Qt, api: Zt });
|
|
2471
|
+
o != null && o.setupState && t && (o.setupState.state = t), o != null && o.ctx && "state" in o.ctx && delete o.ctx.state;
|
|
2472
|
+
const s = ue.inject("form", null), l = () => {
|
|
2414
2473
|
var c;
|
|
2415
|
-
return a.size || ((c =
|
|
2474
|
+
return a.size || ((c = s == null ? void 0 : s.state) == null ? void 0 : c.size) || (s == null ? void 0 : s.size) || "";
|
|
2416
2475
|
}, p = () => {
|
|
2417
2476
|
var c;
|
|
2418
|
-
return ((c =
|
|
2477
|
+
return ((c = s == null ? void 0 : s.state) == null ? void 0 : c.disabled) ?? (s == null ? void 0 : s.disabled) ?? !1;
|
|
2419
2478
|
}, u = ue.reactive({
|
|
2420
2479
|
get size() {
|
|
2421
2480
|
return l();
|
|
@@ -2425,19 +2484,19 @@ const ba = /* @__PURE__ */ function() {
|
|
|
2425
2484
|
},
|
|
2426
2485
|
get labelWidth() {
|
|
2427
2486
|
var c;
|
|
2428
|
-
return (c =
|
|
2487
|
+
return (c = s == null ? void 0 : s.state) == null ? void 0 : c.labelWidth;
|
|
2429
2488
|
},
|
|
2430
2489
|
get labelSuffix() {
|
|
2431
2490
|
var c;
|
|
2432
|
-
return (c =
|
|
2491
|
+
return (c = s == null ? void 0 : s.state) == null ? void 0 : c.labelSuffix;
|
|
2433
2492
|
},
|
|
2434
2493
|
get showMessage() {
|
|
2435
2494
|
var c;
|
|
2436
|
-
return (c =
|
|
2495
|
+
return (c = s == null ? void 0 : s.state) == null ? void 0 : c.showMessage;
|
|
2437
2496
|
},
|
|
2438
2497
|
get rules() {
|
|
2439
2498
|
var c;
|
|
2440
|
-
return ((c =
|
|
2499
|
+
return ((c = s == null ? void 0 : s.state) == null ? void 0 : c.rules) ?? (s == null ? void 0 : s.rules);
|
|
2441
2500
|
}
|
|
2442
2501
|
});
|
|
2443
2502
|
return ue.provide("form", {
|
|
@@ -2448,19 +2507,19 @@ const ba = /* @__PURE__ */ function() {
|
|
|
2448
2507
|
return p();
|
|
2449
2508
|
},
|
|
2450
2509
|
get displayOnly() {
|
|
2451
|
-
return
|
|
2510
|
+
return s == null ? void 0 : s.displayOnly;
|
|
2452
2511
|
},
|
|
2453
2512
|
get rules() {
|
|
2454
|
-
return
|
|
2513
|
+
return s == null ? void 0 : s.rules;
|
|
2455
2514
|
},
|
|
2456
2515
|
get labelWidth() {
|
|
2457
|
-
return
|
|
2516
|
+
return s == null ? void 0 : s.labelWidth;
|
|
2458
2517
|
},
|
|
2459
2518
|
get labelSuffix() {
|
|
2460
|
-
return
|
|
2519
|
+
return s == null ? void 0 : s.labelSuffix;
|
|
2461
2520
|
},
|
|
2462
2521
|
get showMessage() {
|
|
2463
|
-
return
|
|
2522
|
+
return s == null ? void 0 : s.showMessage;
|
|
2464
2523
|
},
|
|
2465
2524
|
get state() {
|
|
2466
2525
|
return u;
|
|
@@ -2469,21 +2528,21 @@ const ba = /* @__PURE__ */ function() {
|
|
|
2469
2528
|
}
|
|
2470
2529
|
});
|
|
2471
2530
|
var _a = function() {
|
|
2472
|
-
var a, e, n,
|
|
2473
|
-
return
|
|
2531
|
+
var a, e, n, r, o, t = this, d = t.$createElement, s = t._self._c || d;
|
|
2532
|
+
return s("div", {
|
|
2474
2533
|
class: ["tvp-search-box", t.size === "small" ? "tvp-search-box--small" : "", t.showPrefixIcon ? "" : "hide-prefix-icon"],
|
|
2475
2534
|
on: {
|
|
2476
2535
|
click: function(l) {
|
|
2477
2536
|
return l.stopPropagation(), t.showPopover(t.state, !1);
|
|
2478
2537
|
}
|
|
2479
2538
|
}
|
|
2480
|
-
}, [t.showPrefixIcon ?
|
|
2539
|
+
}, [t.showPrefixIcon ? s("tiny-icon-search", {
|
|
2481
2540
|
staticClass: "tvp-search-box__prefix"
|
|
2482
2541
|
}) : t._e(), t._l(t.modelValue, function(l, p) {
|
|
2483
|
-
return
|
|
2542
|
+
return s("tiny-tag", {
|
|
2484
2543
|
key: l.field + p,
|
|
2485
2544
|
staticClass: "tvp-search-box__tag",
|
|
2486
|
-
class: t.editable
|
|
2545
|
+
class: t.editable ? "tvp-search-box__tag-editor" : "",
|
|
2487
2546
|
attrs: {
|
|
2488
2547
|
closable: !t.isTagDisabled(l),
|
|
2489
2548
|
title: `${l.label} ${l.operator || ":"} ${l.value}`
|
|
@@ -2496,32 +2555,32 @@ var _a = function() {
|
|
|
2496
2555
|
return u.stopPropagation(), t.editTag(l, p, u);
|
|
2497
2556
|
}
|
|
2498
2557
|
}
|
|
2499
|
-
}, [
|
|
2558
|
+
}, [s("span", {
|
|
2500
2559
|
staticClass: "tvp-search-box__tag-value"
|
|
2501
2560
|
}, [t._v(t._s(l.label) + " " + t._s(l.operator || ":") + " " + t._s(l.value) + " ")])]);
|
|
2502
|
-
}), t.modelValue.length ?
|
|
2561
|
+
}), t.modelValue.length ? s("span", {
|
|
2503
2562
|
staticClass: "tvp-search-box__placeholder"
|
|
2504
|
-
}) : t._e(),
|
|
2563
|
+
}) : t._e(), s("div", {
|
|
2505
2564
|
staticClass: "tvp-search-box__form"
|
|
2506
|
-
}, [
|
|
2565
|
+
}, [s("div", {
|
|
2507
2566
|
staticClass: "tvp-search-box__input-wrapper"
|
|
2508
|
-
}, [
|
|
2567
|
+
}, [s("section", {
|
|
2509
2568
|
staticClass: "tvp-search-box__prop"
|
|
2510
|
-
}, [
|
|
2569
|
+
}, [s("span", {
|
|
2511
2570
|
directives: [{
|
|
2512
2571
|
name: "show",
|
|
2513
2572
|
rawName: "v-show",
|
|
2514
2573
|
value: t.state.propItem.label,
|
|
2515
2574
|
expression: "state.propItem.label"
|
|
2516
2575
|
}]
|
|
2517
|
-
}, [t._v(t._s(t.state.propItem.label) + " " + t._s(`${t.state.operatorValue ? t.state.operatorValue : ""} `))]),
|
|
2576
|
+
}, [t._v(t._s(t.state.propItem.label) + " " + t._s(`${t.state.operatorValue ? t.state.operatorValue : ""} `))]), s("span", {
|
|
2518
2577
|
directives: [{
|
|
2519
2578
|
name: "show",
|
|
2520
2579
|
rawName: "v-show",
|
|
2521
2580
|
value: t.state.propItem.value,
|
|
2522
2581
|
expression: "state.propItem.value"
|
|
2523
2582
|
}]
|
|
2524
|
-
}, [t._v(t._s(t.state.propItem.value))])]),
|
|
2583
|
+
}, [t._v(t._s(t.state.propItem.value))])]), s("tiny-popover", {
|
|
2525
2584
|
ref: "dropdownRef",
|
|
2526
2585
|
staticClass: "tvp-search-box__dropdown",
|
|
2527
2586
|
attrs: {
|
|
@@ -2534,7 +2593,7 @@ var _a = function() {
|
|
|
2534
2593
|
scopedSlots: t._u([{
|
|
2535
2594
|
key: "reference",
|
|
2536
2595
|
fn: function() {
|
|
2537
|
-
return [
|
|
2596
|
+
return [s("tiny-input", {
|
|
2538
2597
|
ref: "inputRef",
|
|
2539
2598
|
staticClass: "tvp-search-box__input",
|
|
2540
2599
|
attrs: {
|
|
@@ -2553,8 +2612,8 @@ var _a = function() {
|
|
|
2553
2612
|
scopedSlots: t._u([{
|
|
2554
2613
|
key: "suffix",
|
|
2555
2614
|
fn: function() {
|
|
2556
|
-
var l, p, u, f, i, c,
|
|
2557
|
-
return [
|
|
2615
|
+
var l, p, u, f, i, c, m, b;
|
|
2616
|
+
return [s("tiny-icon-close", {
|
|
2558
2617
|
directives: [{
|
|
2559
2618
|
name: "show",
|
|
2560
2619
|
rawName: "v-show",
|
|
@@ -2567,7 +2626,7 @@ var _a = function() {
|
|
|
2567
2626
|
return h.stopPropagation(), t.clearTag.apply(null, arguments);
|
|
2568
2627
|
}
|
|
2569
2628
|
}
|
|
2570
|
-
}),
|
|
2629
|
+
}), s("span", {
|
|
2571
2630
|
directives: [{
|
|
2572
2631
|
name: "show",
|
|
2573
2632
|
rawName: "v-show",
|
|
@@ -2578,22 +2637,22 @@ var _a = function() {
|
|
|
2578
2637
|
`
|
|
2579
2638
|
}],
|
|
2580
2639
|
staticClass: "tvp-search-box__input-separator"
|
|
2581
|
-
}), (i = t.state.instance) !== null && i !== void 0 && (c = i.$slots) !== null && c !== void 0 && c["suffix-icon"] || (
|
|
2640
|
+
}), (i = t.state.instance) !== null && i !== void 0 && (c = i.$slots) !== null && c !== void 0 && c["suffix-icon"] || (m = t.state.instance) !== null && m !== void 0 && (b = m.slots) !== null && b !== void 0 && b["suffix-icon"] ? s("span", {
|
|
2582
2641
|
class: t.showHelp ? "tvp-search-box__suffix-icon-slot" : "tvp-search-box__suffix-icon-slot-no-help"
|
|
2583
|
-
}, [t._t("suffix-icon")], 2) : t._e(), t.showHelp ?
|
|
2642
|
+
}, [t._t("suffix-icon")], 2) : t._e(), t.showHelp ? s("tiny-tooltip", {
|
|
2584
2643
|
attrs: {
|
|
2585
2644
|
effect: "light",
|
|
2586
2645
|
content: t.t("tvp.tvpSearchbox.help"),
|
|
2587
2646
|
placement: "top"
|
|
2588
2647
|
}
|
|
2589
|
-
}, [
|
|
2648
|
+
}, [s("tiny-icon-help-query", {
|
|
2590
2649
|
staticClass: "tvp-search-box__input-help",
|
|
2591
2650
|
on: {
|
|
2592
2651
|
click: function(h) {
|
|
2593
2652
|
return h.stopPropagation(), t.helpClick.apply(null, arguments);
|
|
2594
2653
|
}
|
|
2595
2654
|
}
|
|
2596
|
-
})], 1) : t._e(),
|
|
2655
|
+
})], 1) : t._e(), s("tiny-icon-search", {
|
|
2597
2656
|
staticClass: "tvp-search-box__input-search",
|
|
2598
2657
|
on: {
|
|
2599
2658
|
click: function(h) {
|
|
@@ -2622,7 +2681,7 @@ var _a = function() {
|
|
|
2622
2681
|
},
|
|
2623
2682
|
expression: "state.visible"
|
|
2624
2683
|
}
|
|
2625
|
-
}, [
|
|
2684
|
+
}, [s("div", {
|
|
2626
2685
|
staticClass: "tvp-search-box__dropdown",
|
|
2627
2686
|
style: {
|
|
2628
2687
|
"max-height": t.panelMaxHeight
|
|
@@ -2633,7 +2692,7 @@ var _a = function() {
|
|
|
2633
2692
|
}).apply(null, arguments);
|
|
2634
2693
|
}
|
|
2635
2694
|
}
|
|
2636
|
-
}, [
|
|
2695
|
+
}, [s("div", {
|
|
2637
2696
|
directives: [{
|
|
2638
2697
|
name: "show",
|
|
2639
2698
|
rawName: "v-show",
|
|
@@ -2643,12 +2702,12 @@ var _a = function() {
|
|
|
2643
2702
|
}, [(e = t.state.instance) !== null && e !== void 0 && e.slots["first-panel"] ? t._t("first-panel", null, null, {
|
|
2644
2703
|
state: t.state,
|
|
2645
2704
|
handleEvents: t.handleEvents
|
|
2646
|
-
}) :
|
|
2705
|
+
}) : s("TinySearchBoxFirstLevelPanel", {
|
|
2647
2706
|
attrs: {
|
|
2648
2707
|
state: t.state,
|
|
2649
2708
|
handleEvents: t.handleEvents
|
|
2650
2709
|
}
|
|
2651
|
-
})], 2),
|
|
2710
|
+
})], 2), s("div", {
|
|
2652
2711
|
directives: [{
|
|
2653
2712
|
name: "show",
|
|
2654
2713
|
rawName: "v-show",
|
|
@@ -2662,7 +2721,7 @@ var _a = function() {
|
|
|
2662
2721
|
back: function() {
|
|
2663
2722
|
return t.resetInput(t.state);
|
|
2664
2723
|
}
|
|
2665
|
-
}) : t.state.prevItem.type !== "custom" ?
|
|
2724
|
+
}) : t.state.prevItem.type !== "custom" ? s("TinySearchBoxSecondLevelPanel", {
|
|
2666
2725
|
attrs: {
|
|
2667
2726
|
state: t.state,
|
|
2668
2727
|
"picker-options": t.pickerOptions,
|
|
@@ -2671,7 +2730,7 @@ var _a = function() {
|
|
|
2671
2730
|
on: {
|
|
2672
2731
|
events: t.handleEvents
|
|
2673
2732
|
}
|
|
2674
|
-
}) :
|
|
2733
|
+
}) : s("div", {
|
|
2675
2734
|
staticClass: "tvp-search-box__panel-box",
|
|
2676
2735
|
on: {
|
|
2677
2736
|
click: function(l) {
|
|
@@ -2683,7 +2742,7 @@ var _a = function() {
|
|
|
2683
2742
|
return t.showDropdown(t.state);
|
|
2684
2743
|
},
|
|
2685
2744
|
onConfirm: t.handleConfirm
|
|
2686
|
-
})], 2)], 2)])])], 1), t.editable ? [
|
|
2745
|
+
})], 2)], 2)])])], 1), t.editable ? [s("tiny-popover", {
|
|
2687
2746
|
ref: "popoverRef",
|
|
2688
2747
|
staticClass: "tvp-search-box__form-popover",
|
|
2689
2748
|
attrs: {
|
|
@@ -2700,13 +2759,13 @@ var _a = function() {
|
|
|
2700
2759
|
},
|
|
2701
2760
|
expression: "state.popoverVisible"
|
|
2702
2761
|
}
|
|
2703
|
-
}, [t.state.prevItem.type !== "custom" ? [
|
|
2762
|
+
}, [t.state.prevItem.type !== "custom" ? [s("div", {
|
|
2704
2763
|
staticClass: "tvp-search-box__date-wrap"
|
|
2705
|
-
}, [
|
|
2764
|
+
}, [s("div", {
|
|
2706
2765
|
staticClass: "tvp-search-box__dropdown-start"
|
|
2707
|
-
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.attributeType")) + " ")]),
|
|
2766
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.attributeType")) + " ")]), s("div", {
|
|
2708
2767
|
staticClass: "tvp-search-box__number-item"
|
|
2709
|
-
}, [
|
|
2768
|
+
}, [s("tiny-select", {
|
|
2710
2769
|
attrs: {
|
|
2711
2770
|
searchable: "",
|
|
2712
2771
|
disabled: t.state.prevItem.editAttrDisabled || t.state.prevItem.disableDelete
|
|
@@ -2718,37 +2777,35 @@ var _a = function() {
|
|
|
2718
2777
|
},
|
|
2719
2778
|
expression: "state.selectValue"
|
|
2720
2779
|
}
|
|
2721
|
-
}, [t.state.selectValue === t.state.allTypeAttri.label ?
|
|
2780
|
+
}, [t.state.selectValue === t.state.allTypeAttri.label ? s("tiny-option", {
|
|
2722
2781
|
key: t.state.allTypeAttri.label,
|
|
2723
2782
|
attrs: {
|
|
2724
2783
|
label: t.t("tvp.tvpSearchbox.allProperty"),
|
|
2725
|
-
value: t.state.allTypeAttri.label
|
|
2726
|
-
disabled: t.selectItemIsDisable(t.state.allTypeAttri)
|
|
2784
|
+
value: t.state.allTypeAttri.label
|
|
2727
2785
|
},
|
|
2728
2786
|
on: {
|
|
2729
2787
|
click: function(l) {
|
|
2730
|
-
t.selectPropChange(t.state.allTypeAttri
|
|
2788
|
+
return t.selectPropChange(t.state.allTypeAttri);
|
|
2731
2789
|
}
|
|
2732
2790
|
}
|
|
2733
2791
|
}) : t._e(), t._l(t.state.recordItems, function(l) {
|
|
2734
|
-
return
|
|
2792
|
+
return s("tiny-option", {
|
|
2735
2793
|
key: l.label,
|
|
2736
2794
|
attrs: {
|
|
2737
2795
|
label: l.label,
|
|
2738
|
-
value: l.label
|
|
2739
|
-
disabled: t.selectItemIsDisable(l)
|
|
2796
|
+
value: l.label
|
|
2740
2797
|
},
|
|
2741
2798
|
on: {
|
|
2742
2799
|
click: function(p) {
|
|
2743
|
-
t.selectPropChange(l
|
|
2800
|
+
return t.selectPropChange(l);
|
|
2744
2801
|
}
|
|
2745
2802
|
}
|
|
2746
2803
|
});
|
|
2747
|
-
})], 2)], 1), t.state.prevItem.operators ?
|
|
2804
|
+
})], 2)], 1), t.state.prevItem.operators ? s("div", {
|
|
2748
2805
|
staticClass: "tvp-search-box__dropdown-end"
|
|
2749
|
-
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.operator")) + " ")]) : t._e(), t.state.prevItem.operators ?
|
|
2806
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.operator")) + " ")]) : t._e(), t.state.prevItem.operators ? s("div", {
|
|
2750
2807
|
staticClass: "tvp-search-box__number-item"
|
|
2751
|
-
}, [
|
|
2808
|
+
}, [s("tiny-select", {
|
|
2752
2809
|
model: {
|
|
2753
2810
|
value: t.state.operatorValue,
|
|
2754
2811
|
callback: function(l) {
|
|
@@ -2757,25 +2814,25 @@ var _a = function() {
|
|
|
2757
2814
|
expression: "state.operatorValue"
|
|
2758
2815
|
}
|
|
2759
2816
|
}, t._l(t.state.currentOperators, function(l) {
|
|
2760
|
-
return
|
|
2817
|
+
return s("tiny-option", {
|
|
2761
2818
|
key: l,
|
|
2762
2819
|
attrs: {
|
|
2763
2820
|
label: l,
|
|
2764
2821
|
value: l
|
|
2765
2822
|
}
|
|
2766
2823
|
});
|
|
2767
|
-
}), 1)], 1) : t._e(), t.state.prevItem.type
|
|
2824
|
+
}), 1)], 1) : t._e(), ["numRange", "map"].includes(t.state.prevItem.type) ? t._e() : s("div", {
|
|
2768
2825
|
staticClass: "tvp-search-box__dropdown-end"
|
|
2769
|
-
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.tagValue")) + " ")])
|
|
2826
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.tagValue")) + " ")]), ["numRange", "dateRange", "datetimeRange", "custom", "map"].includes(t.state.prevItem.type) ? t._e() : s("div", {
|
|
2770
2827
|
staticClass: "tvp-search-box__number-item",
|
|
2771
2828
|
class: {
|
|
2772
2829
|
"is-error": t.state.formErrors.inputEditValue
|
|
2773
2830
|
}
|
|
2774
|
-
}, [((
|
|
2831
|
+
}, [((r = t.state.currentEditValue) === null || r === void 0 ? void 0 : r.length) > 0 ? s("tiny-select", {
|
|
2775
2832
|
staticClass: "tvp-search-box-select",
|
|
2776
2833
|
attrs: {
|
|
2777
2834
|
multiple: !!t.state.prevItem.mergeTag,
|
|
2778
|
-
"allow-create": (
|
|
2835
|
+
"allow-create": (o = t.state.prevItem) === null || o === void 0 ? void 0 : o.allowCreate,
|
|
2779
2836
|
filterable: "",
|
|
2780
2837
|
"default-first-option": "",
|
|
2781
2838
|
clearable: ""
|
|
@@ -2788,14 +2845,14 @@ var _a = function() {
|
|
|
2788
2845
|
expression: "state.inputEditValue"
|
|
2789
2846
|
}
|
|
2790
2847
|
}, t._l(t.state.currentEditValue, function(l) {
|
|
2791
|
-
return
|
|
2848
|
+
return s("tiny-option", {
|
|
2792
2849
|
key: l.label,
|
|
2793
2850
|
attrs: {
|
|
2794
2851
|
label: l.label,
|
|
2795
2852
|
value: l.label
|
|
2796
2853
|
}
|
|
2797
2854
|
});
|
|
2798
|
-
}), 1) :
|
|
2855
|
+
}), 1) : s("tiny-input", {
|
|
2799
2856
|
attrs: {
|
|
2800
2857
|
clearable: ""
|
|
2801
2858
|
},
|
|
@@ -2806,17 +2863,17 @@ var _a = function() {
|
|
|
2806
2863
|
},
|
|
2807
2864
|
expression: "state.inputEditValue"
|
|
2808
2865
|
}
|
|
2809
|
-
}), t.state.formErrors.inputEditValue ?
|
|
2866
|
+
}), t.state.formErrors.inputEditValue ? s("div", {
|
|
2810
2867
|
staticClass: "tvp-search-box__error-msg"
|
|
2811
|
-
}, [t._v(" " + t._s(t.state.formErrors.inputEditValue) + " ")]) : t._e()], 1), t.state.prevItem.type === "numRange" ?
|
|
2868
|
+
}, [t._v(" " + t._s(t.state.formErrors.inputEditValue) + " ")]) : t._e()], 1), t.state.prevItem.type === "numRange" ? s("div", {
|
|
2812
2869
|
staticClass: "tvp-search-box__number"
|
|
2813
|
-
}, [
|
|
2870
|
+
}, [s("div", {
|
|
2814
2871
|
staticClass: "tvp-search-box__dropdown-start"
|
|
2815
|
-
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.minValueText")) + t._s(t.state.prevItem.unit ? `(${t.state.prevItem.unit})` : "") + " ")]),
|
|
2872
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.minValueText")) + t._s(t.state.prevItem.unit ? `(${t.state.prevItem.unit})` : "") + " ")]), s("div", {
|
|
2816
2873
|
class: ["tvp-search-box__number-item", {
|
|
2817
2874
|
"is-error": t.state.formErrors[t.state.curMinNumVar]
|
|
2818
2875
|
}]
|
|
2819
|
-
}, [
|
|
2876
|
+
}, [s("tiny-input", {
|
|
2820
2877
|
staticClass: "tvp-search-box__number-input",
|
|
2821
2878
|
attrs: {
|
|
2822
2879
|
type: "number"
|
|
@@ -2828,15 +2885,15 @@ var _a = function() {
|
|
|
2828
2885
|
},
|
|
2829
2886
|
expression: "state[state.curMinNumVar]"
|
|
2830
2887
|
}
|
|
2831
|
-
}), t.state.formErrors[t.state.curMinNumVar] && t.state.numberShowMessage ?
|
|
2888
|
+
}), t.state.formErrors[t.state.curMinNumVar] && t.state.numberShowMessage ? s("div", {
|
|
2832
2889
|
staticClass: "tvp-search-box__error-msg"
|
|
2833
|
-
}, [t._v(" " + t._s(t.state.formErrors[t.state.curMinNumVar]) + " ")]) : t._e()], 1),
|
|
2890
|
+
}, [t._v(" " + t._s(t.state.formErrors[t.state.curMinNumVar]) + " ")]) : t._e()], 1), s("div", {
|
|
2834
2891
|
staticClass: "tvp-search-box__dropdown-end"
|
|
2835
|
-
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.maxValueText")) + t._s(t.state.prevItem.unit ? `(${t.state.prevItem.unit})` : "") + " ")]),
|
|
2892
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.maxValueText")) + t._s(t.state.prevItem.unit ? `(${t.state.prevItem.unit})` : "") + " ")]), s("div", {
|
|
2836
2893
|
class: ["tvp-search-box__number-item", {
|
|
2837
2894
|
"is-error": t.state.formErrors[t.state.curMaxNumVar]
|
|
2838
2895
|
}]
|
|
2839
|
-
}, [
|
|
2896
|
+
}, [s("tiny-input", {
|
|
2840
2897
|
staticClass: "tvp-search-box__number-input",
|
|
2841
2898
|
attrs: {
|
|
2842
2899
|
type: "number"
|
|
@@ -2848,21 +2905,21 @@ var _a = function() {
|
|
|
2848
2905
|
},
|
|
2849
2906
|
expression: "state[state.curMaxNumVar]"
|
|
2850
2907
|
}
|
|
2851
|
-
}), t.state.formErrors[t.state.curMaxNumVar] ?
|
|
2908
|
+
}), t.state.formErrors[t.state.curMaxNumVar] ? s("div", {
|
|
2852
2909
|
staticClass: "tvp-search-box__error-msg"
|
|
2853
|
-
}, [t._v(" " + t._s(t.state.formErrors[t.state.curMaxNumVar]) + " ")]) : t._e()], 1)]) : t._e(), t.state.prevItem.type === "dateRange" ?
|
|
2910
|
+
}, [t._v(" " + t._s(t.state.formErrors[t.state.curMaxNumVar]) + " ")]) : t._e()], 1)]) : t._e(), t.state.prevItem.type === "dateRange" ? s("div", {
|
|
2854
2911
|
staticClass: "tvp-search-box__date-wrap"
|
|
2855
|
-
}, [
|
|
2912
|
+
}, [s("div", {
|
|
2856
2913
|
staticClass: "tvp-search-box__dropdown-title"
|
|
2857
2914
|
}, [t._v(" " + t._s(t.state.prevItem.maxTimeLength > 0 ? t.t("tvp.tvpSearchbox.timeLengthTitle", {
|
|
2858
2915
|
value: (t.state.prevItem.maxTimeLength / 864e5).toFixed(1)
|
|
2859
|
-
}) : t.t("tvp.tvpSearchbox.rangeDateTitle")) + " ")]),
|
|
2916
|
+
}) : t.t("tvp.tvpSearchbox.rangeDateTitle")) + " ")]), s("div", {
|
|
2860
2917
|
staticClass: "tvp-search-box__dropdown-start"
|
|
2861
|
-
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.rangeBeginLabel")) + " ")]),
|
|
2918
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.rangeBeginLabel")) + " ")]), s("div", {
|
|
2862
2919
|
class: ["tvp-search-box__date-item", {
|
|
2863
2920
|
"is-error": t.state.formErrors.startDate
|
|
2864
2921
|
}]
|
|
2865
|
-
}, [
|
|
2922
|
+
}, [s("tiny-date-picker", {
|
|
2866
2923
|
staticClass: "tvp-search-box__date-picker",
|
|
2867
2924
|
attrs: {
|
|
2868
2925
|
format: t.state.prevItem.format || t.state.dateRangeFormat,
|
|
@@ -2881,15 +2938,15 @@ var _a = function() {
|
|
|
2881
2938
|
},
|
|
2882
2939
|
expression: "state.startDate"
|
|
2883
2940
|
}
|
|
2884
|
-
}), t.state.formErrors.startDate && t.state.prevItem.maxTimeLength ?
|
|
2941
|
+
}), t.state.formErrors.startDate && t.state.prevItem.maxTimeLength ? s("div", {
|
|
2885
2942
|
staticClass: "tvp-search-box__error-msg"
|
|
2886
|
-
}, [t._v(" " + t._s(t.state.formErrors.startDate) + " ")]) : t._e()], 1),
|
|
2943
|
+
}, [t._v(" " + t._s(t.state.formErrors.startDate) + " ")]) : t._e()], 1), s("div", {
|
|
2887
2944
|
staticClass: "tvp-search-box__dropdown-end"
|
|
2888
|
-
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.rangeEndLabel")) + " ")]),
|
|
2945
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.rangeEndLabel")) + " ")]), s("div", {
|
|
2889
2946
|
class: ["tvp-search-box__date-item", {
|
|
2890
2947
|
"is-error": t.state.formErrors.endDate
|
|
2891
2948
|
}]
|
|
2892
|
-
}, [
|
|
2949
|
+
}, [s("tiny-date-picker", {
|
|
2893
2950
|
staticClass: "tvp-search-box__date-picker",
|
|
2894
2951
|
attrs: {
|
|
2895
2952
|
format: t.state.prevItem.format || t.state.dateRangeFormat,
|
|
@@ -2908,21 +2965,21 @@ var _a = function() {
|
|
|
2908
2965
|
},
|
|
2909
2966
|
expression: "state.endDate"
|
|
2910
2967
|
}
|
|
2911
|
-
}), t.state.formErrors.endDate ?
|
|
2968
|
+
}), t.state.formErrors.endDate ? s("div", {
|
|
2912
2969
|
staticClass: "tvp-search-box__error-msg"
|
|
2913
|
-
}, [t._v(" " + t._s(t.state.formErrors.endDate) + " ")]) : t._e()], 1)]) : t._e(), t.state.prevItem.type === "datetimeRange" ?
|
|
2970
|
+
}, [t._v(" " + t._s(t.state.formErrors.endDate) + " ")]) : t._e()], 1)]) : t._e(), t.state.prevItem.type === "datetimeRange" ? s("div", {
|
|
2914
2971
|
staticClass: "tvp-search-box__date-wrap"
|
|
2915
|
-
}, [
|
|
2972
|
+
}, [s("div", {
|
|
2916
2973
|
staticClass: "tvp-search-box__dropdown-title"
|
|
2917
2974
|
}, [t._v(" " + t._s(t.state.prevItem.maxTimeLength > 0 ? t.t("tvp.tvpSearchbox.timeLengthTitle", {
|
|
2918
2975
|
value: (t.state.prevItem.maxTimeLength / 864e5).toFixed(1)
|
|
2919
|
-
}) : t.t("tvp.tvpSearchbox.rangeDateTitle")) + " ")]),
|
|
2976
|
+
}) : t.t("tvp.tvpSearchbox.rangeDateTitle")) + " ")]), s("div", {
|
|
2920
2977
|
staticClass: "tvp-search-box__dropdown-start"
|
|
2921
|
-
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.rangeBeginLabel")) + " ")]),
|
|
2978
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.rangeBeginLabel")) + " ")]), s("div", {
|
|
2922
2979
|
class: ["tvp-search-box__date-item", {
|
|
2923
2980
|
"is-error": t.state.formErrors.startDateTime
|
|
2924
2981
|
}]
|
|
2925
|
-
}, [
|
|
2982
|
+
}, [s("tiny-date-picker", {
|
|
2926
2983
|
staticClass: "tvp-search-box__date-picker",
|
|
2927
2984
|
attrs: {
|
|
2928
2985
|
type: "datetime",
|
|
@@ -2943,15 +3000,15 @@ var _a = function() {
|
|
|
2943
3000
|
},
|
|
2944
3001
|
expression: "state.startDateTime"
|
|
2945
3002
|
}
|
|
2946
|
-
}), t.state.formErrors.startDateTime && t.state.prevItem.maxTimeLength ?
|
|
3003
|
+
}), t.state.formErrors.startDateTime && t.state.prevItem.maxTimeLength ? s("div", {
|
|
2947
3004
|
staticClass: "tvp-search-box__error-msg"
|
|
2948
|
-
}, [t._v(" " + t._s(t.state.formErrors.startDateTime) + " ")]) : t._e()], 1),
|
|
3005
|
+
}, [t._v(" " + t._s(t.state.formErrors.startDateTime) + " ")]) : t._e()], 1), s("div", {
|
|
2949
3006
|
staticClass: "tvp-search-box__dropdown-end"
|
|
2950
|
-
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.rangeEndLabel")) + " ")]),
|
|
3007
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.rangeEndLabel")) + " ")]), s("div", {
|
|
2951
3008
|
class: ["tvp-search-box__date-item", {
|
|
2952
3009
|
"is-error": t.state.formErrors.endDateTime
|
|
2953
3010
|
}]
|
|
2954
|
-
}, [
|
|
3011
|
+
}, [s("tiny-date-picker", {
|
|
2955
3012
|
staticClass: "tvp-search-box__date-picker",
|
|
2956
3013
|
attrs: {
|
|
2957
3014
|
type: "datetime",
|
|
@@ -2972,11 +3029,77 @@ var _a = function() {
|
|
|
2972
3029
|
},
|
|
2973
3030
|
expression: "state.endDateTime"
|
|
2974
3031
|
}
|
|
2975
|
-
}), t.state.formErrors.endDateTime ?
|
|
3032
|
+
}), t.state.formErrors.endDateTime ? s("div", {
|
|
3033
|
+
staticClass: "tvp-search-box__error-msg"
|
|
3034
|
+
}, [t._v(" " + t._s(t.state.formErrors.endDateTime) + " ")]) : t._e()], 1)]) : t._e(), t.state.prevItem.type === "map" ? s("div", {
|
|
3035
|
+
staticClass: "tvp-search-box__number"
|
|
3036
|
+
}, [s("div", {
|
|
3037
|
+
staticClass: "tvp-search-box__dropdown-start"
|
|
3038
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.tagKey")) + " ")]), s("div", {
|
|
3039
|
+
class: ["tvp-search-box__number-item", {
|
|
3040
|
+
"is-error": t.state.formErrors.mapEditKey
|
|
3041
|
+
}]
|
|
3042
|
+
}, [s("tiny-select", {
|
|
3043
|
+
attrs: {
|
|
3044
|
+
clearable: ""
|
|
3045
|
+
},
|
|
3046
|
+
on: {
|
|
3047
|
+
change: function() {
|
|
3048
|
+
t.state.mapEditValue = "", t.checkFormValidation();
|
|
3049
|
+
}
|
|
3050
|
+
},
|
|
3051
|
+
model: {
|
|
3052
|
+
value: t.state.mapEditKey,
|
|
3053
|
+
callback: function(l) {
|
|
3054
|
+
t.$set(t.state, "mapEditKey", l);
|
|
3055
|
+
},
|
|
3056
|
+
expression: "state.mapEditKey"
|
|
3057
|
+
}
|
|
3058
|
+
}, t._l(t.state.prevItem.options || [], function(l) {
|
|
3059
|
+
return s("tiny-option", {
|
|
3060
|
+
key: l.label,
|
|
3061
|
+
attrs: {
|
|
3062
|
+
label: l.label,
|
|
3063
|
+
value: l.label
|
|
3064
|
+
}
|
|
3065
|
+
});
|
|
3066
|
+
}), 1), t.state.formErrors.mapEditKey ? s("div", {
|
|
3067
|
+
staticClass: "tvp-search-box__error-msg"
|
|
3068
|
+
}, [t._v(" " + t._s(t.state.formErrors.mapEditKey) + " ")]) : t._e()], 1), s("div", {
|
|
3069
|
+
staticClass: "tvp-search-box__dropdown-end"
|
|
3070
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.tagValue")) + " ")]), s("div", {
|
|
3071
|
+
class: ["tvp-search-box__number-item", {
|
|
3072
|
+
"is-error": t.state.formErrors.mapEditValue
|
|
3073
|
+
}]
|
|
3074
|
+
}, [s("tiny-select", {
|
|
3075
|
+
attrs: {
|
|
3076
|
+
clearable: ""
|
|
3077
|
+
},
|
|
3078
|
+
on: {
|
|
3079
|
+
change: function(l) {
|
|
3080
|
+
return t.checkFormValidation();
|
|
3081
|
+
}
|
|
3082
|
+
},
|
|
3083
|
+
model: {
|
|
3084
|
+
value: t.state.mapEditValue,
|
|
3085
|
+
callback: function(l) {
|
|
3086
|
+
t.$set(t.state, "mapEditValue", l);
|
|
3087
|
+
},
|
|
3088
|
+
expression: "state.mapEditValue"
|
|
3089
|
+
}
|
|
3090
|
+
}, t._l(t.state.mapEditValueOptions, function(l) {
|
|
3091
|
+
return s("tiny-option", {
|
|
3092
|
+
key: l.label,
|
|
3093
|
+
attrs: {
|
|
3094
|
+
label: l.label,
|
|
3095
|
+
value: l.label
|
|
3096
|
+
}
|
|
3097
|
+
});
|
|
3098
|
+
}), 1), t.state.formErrors.mapEditValue ? s("div", {
|
|
2976
3099
|
staticClass: "tvp-search-box__error-msg"
|
|
2977
|
-
}, [t._v(" " + t._s(t.state.formErrors.
|
|
3100
|
+
}, [t._v(" " + t._s(t.state.formErrors.mapEditValue) + " ")]) : t._e()], 1)]) : t._e()]), s("div", {
|
|
2978
3101
|
staticClass: "tvp-search-box__bottom-btn"
|
|
2979
|
-
}, [
|
|
3102
|
+
}, [s("tiny-button", {
|
|
2980
3103
|
attrs: {
|
|
2981
3104
|
size: "mini"
|
|
2982
3105
|
},
|
|
@@ -2985,7 +3108,7 @@ var _a = function() {
|
|
|
2985
3108
|
return t.confirmEditTag(!1);
|
|
2986
3109
|
}
|
|
2987
3110
|
}
|
|
2988
|
-
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.cancel")) + " ")]),
|
|
3111
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.cancel")) + " ")]), s("tiny-button", {
|
|
2989
3112
|
attrs: {
|
|
2990
3113
|
size: "mini",
|
|
2991
3114
|
disabled: t.state.hasFormError
|
|
@@ -2995,7 +3118,7 @@ var _a = function() {
|
|
|
2995
3118
|
return t.confirmEditTag(!0);
|
|
2996
3119
|
}
|
|
2997
3120
|
}
|
|
2998
|
-
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.confirm")) + " ")])], 1)] : t.state.popoverVisible ?
|
|
3121
|
+
}, [t._v(" " + t._s(t.t("tvp.tvpSearchbox.confirm")) + " ")])], 1)] : t.state.popoverVisible ? s("div", {
|
|
2999
3122
|
staticClass: "tvp-search-box__panel-box"
|
|
3000
3123
|
}, [t._t(`${t.state.prevItem.slotName}-edit`, null, null, {
|
|
3001
3124
|
showDropdown: function() {
|
|
@@ -3004,24 +3127,24 @@ var _a = function() {
|
|
|
3004
3127
|
onConfirm: t.handleEditConfirm
|
|
3005
3128
|
})], 2) : t._e()], 2)] : t._e()], 2)], 2);
|
|
3006
3129
|
}, xa = [];
|
|
3007
|
-
const
|
|
3130
|
+
const Le = {};
|
|
3008
3131
|
var ya = /* @__PURE__ */ Se(
|
|
3009
3132
|
ga,
|
|
3010
3133
|
_a,
|
|
3011
3134
|
xa,
|
|
3012
3135
|
!1,
|
|
3013
|
-
|
|
3136
|
+
Va,
|
|
3014
3137
|
null,
|
|
3015
3138
|
null,
|
|
3016
3139
|
null
|
|
3017
3140
|
);
|
|
3018
|
-
function
|
|
3019
|
-
for (let e in
|
|
3020
|
-
this[e] =
|
|
3141
|
+
function Va(a) {
|
|
3142
|
+
for (let e in Le)
|
|
3143
|
+
this[e] = Le[e];
|
|
3021
3144
|
}
|
|
3022
3145
|
const wa = /* @__PURE__ */ function() {
|
|
3023
3146
|
return ya.exports;
|
|
3024
|
-
}(),
|
|
3147
|
+
}(), Ia = {
|
|
3025
3148
|
...ve,
|
|
3026
3149
|
tiny_mode: {
|
|
3027
3150
|
type: String,
|
|
@@ -3112,16 +3235,16 @@ const wa = /* @__PURE__ */ function() {
|
|
|
3112
3235
|
default: !1
|
|
3113
3236
|
}
|
|
3114
3237
|
}, ne = fe({
|
|
3115
|
-
name:
|
|
3116
|
-
props:
|
|
3238
|
+
name: Te + "SearchBox",
|
|
3239
|
+
props: Ia,
|
|
3117
3240
|
...wa
|
|
3118
|
-
}), Ta = "3.32.0-alpha.
|
|
3241
|
+
}), Ta = "3.32.0-alpha.3";
|
|
3119
3242
|
ne.install = function(a) {
|
|
3120
3243
|
const e = a;
|
|
3121
|
-
e && e.config && e.config.globalProperties &&
|
|
3244
|
+
e && e.config && e.config.globalProperties && we(e), e && e.mixin && !e.__TINY_SEARCH_BOX_I18N_MIXIN__ && (e.__TINY_SEARCH_BOX_I18N_MIXIN__ = !0, e.mixin({
|
|
3122
3245
|
beforeCreate() {
|
|
3123
3246
|
const n = this;
|
|
3124
|
-
n && (n.$i18n || n.$t || n.$root && (n.$root.$i18n || n.$root.$t)) &&
|
|
3247
|
+
n && (n.$i18n || n.$t || n.$root && (n.$root.$i18n || n.$root.$t)) && we(n.$root || n);
|
|
3125
3248
|
}
|
|
3126
3249
|
})), e.component(ne.name, ne);
|
|
3127
3250
|
};
|
|
@@ -3132,7 +3255,7 @@ export {
|
|
|
3132
3255
|
ba as TinySearchBoxSecondLevelPanel,
|
|
3133
3256
|
ne as default,
|
|
3134
3257
|
Ge as enUS,
|
|
3135
|
-
|
|
3258
|
+
we as setGlobalApp,
|
|
3136
3259
|
O as t,
|
|
3137
3260
|
je as zhCN
|
|
3138
3261
|
};
|