@fox-js/foxui-pc 3.0.14 → 4.0.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +4282 -0
- package/dist/index.umd.js +5 -0
- package/dist/style.css +1 -0
- package/dist/style.esm.js +7 -0
- package/dist/types/index.d.ts +1162 -0
- package/package.json +34 -81
- package/README.md +0 -73
- package/dist/index.js +0 -1
- package/dist/index.js.LICENSE.txt +0 -2085
- package/dist/static/font/a55eefecba4edb90144a.eot +0 -0
- package/dist/static/font/a7e3261f45a10bb31b6a.ttf +0 -0
- package/dist/static/font/eb9f400a9c60eb2a67f7.woff +0 -0
- package/dist/static/images/bc617e5a3e06ca9f632d.svg +0 -35
|
@@ -0,0 +1,4282 @@
|
|
|
1
|
+
import { getCurrentInstance as ie, inject as ne, provide as ve, onUnmounted as qe, effectScope as Zn, watchEffect as Ot, nextTick as Ht, reactive as Pt, isReactive as Tt, watch as se, computed as M, toRef as De, ref as B, defineComponent as qt, toRaw as oe, onMounted as gt, openBlock as J, createElementBlock as ee, normalizeClass as K, normalizeStyle as re, renderSlot as le, shallowRef as Xn, markRaw as Jn, triggerRef as Qn, unref as sn, h as F, createCommentVNode as _e, createElementVNode as ue, toDisplayString as Le, resolveComponent as er, createBlock as kt, Transition as an, withCtx as on, withDirectives as tr, vShow as nr, createVNode as Ct, render as ln, createTextVNode as rr } from "vue";
|
|
2
|
+
import { isEqual as un, toBoolean as nt, extend as Bt, toNumber as Rt, isObject as cn } from "@fox-js/fox";
|
|
3
|
+
import { clone as zi, extend as Ui, isArray as Zi, isDate as Xi, isESModule as Ji, isEqual as Qi, isFunction as el, isMap as tl, isObject as nl, isPlainObject as rl, isPromise as sl, isSet as al, isString as ol, isSymbol as il, toBoolean as ll, toNumber as ul, toTypeString as cl } from "@fox-js/fox";
|
|
4
|
+
import Ee from "@fox-js/validator";
|
|
5
|
+
import { ElAffix as sr, ElAlert as ar, ElAutocomplete as or, ElAutoResizer as ir, ElAvatar as lr, ElBacktop as ur, ElBadge as cr, ElBreadcrumb as fr, ElBreadcrumbItem as dr, ElButton as hr, ElButtonGroup as gr, ElCalendar as pr, ElCard as mr, ElCarousel as yr, ElCarouselItem as vr, ElCascader as br, ElCascaderPanel as $r, ElCheckTag as wr, ElCheckbox as xr, ElCheckboxButton as Sr, ElCheckboxGroup as Er, ElCol as Ar, ElCollapse as Nr, ElCollapseItem as Or, ElCollapseTransition as Pr, ElColorPicker as Tr, ElConfigProvider as Cr, ElContainer as Rr, ElAside as Mr, ElFooter as Ir, ElHeader as Vr, ElMain as Dr, ElDatePicker as fn, ElDescriptions as _r, ElDescriptionsItem as Lr, ElDialog as dn, ElDivider as Hr, ElDrawer as qr, ElDropdown as kr, ElDropdownItem as Br, ElDropdownMenu as jr, ElEmpty as Fr, ElForm as Wr, ElFormItem as Yr, ElIcon as Kr, ElImage as Gr, ElImageViewer as zr, ElInput as hn, ElInputNumber as Ur, ElLink as Zr, ElMenu as Xr, ElSubMenu as Jr, ElMenuItem as Qr, ElMenuItemGroup as es, ElPageHeader as ts, ElPagination as gn, ElPopconfirm as ns, ElPopover as rs, ElPopper as ss, ElProgress as as, ElRadio as os, ElRadioButton as is, ElRadioGroup as ls, ElRate as us, ElResult as cs, ElRow as fs, ElScrollbar as ds, ElSelect as pn, ElOption as mn, ElOptionGroup as yn, ElSelectV2 as hs, ElSkeleton as gs, ElSkeletonItem as ps, ElSlider as ms, ElSpace as ys, ElSteps as vs, ElStep as bs, ElSwitch as $s, ElTable as vn, ElTableColumn as ws, ElTableV2 as xs, ElTabs as Ss, ElTabPane as Es, ElTag as As, ElTimePicker as bn, ElTimeSelect as $n, ElTimeline as Ns, ElTimelineItem as Os, ElTooltip as Ps, ElTransfer as Ts, ElTree as Cs, ElTreeSelect as Rs, ElTreeV2 as Ms, ElUpload as Is, ElInfiniteScroll as Vs, ElLoading as Ds, ElMessage as _s, ElMessageBox as Ls, ElNotification as Hs, ElPopoverDirective as qs } from "element-plus";
|
|
6
|
+
import { useFoxI18n as ke } from "@fox-js/i18n";
|
|
7
|
+
/*!
|
|
8
|
+
* @fox-js/foxui-desktop v4.0.0 Wed Nov 02 2022 22:06:31 GMT+0800 (中国标准时间)
|
|
9
|
+
*/
|
|
10
|
+
/*!
|
|
11
|
+
* @fox-js/big-decimal v4.0.1-3 Wed Nov 02 2022 21:59:56 GMT+0800 (中国标准时间)
|
|
12
|
+
*/
|
|
13
|
+
function Je(e, t = "0") {
|
|
14
|
+
let n = 0, r = -1;
|
|
15
|
+
e[0] == "-" && (n++, r = 1, e = e.substring(1), e.length), t[0] == "-" && (n++, r = 2, t = t.substring(1), t.length), e = X(e), t = X(t), [e, t] = Mt(X(e), X(t)), n == 1 && (r == 1 ? e = ct(e) : t = ct(t));
|
|
16
|
+
let s = wn(e, t);
|
|
17
|
+
return n ? n == 2 ? "-" + X(s) : e.length < s.length ? X(s.substring(1)) : "-" + X(ct(s)) : X(s);
|
|
18
|
+
}
|
|
19
|
+
function ct(e) {
|
|
20
|
+
let t = "", n = e.length, r = e.split(".")[1], s = r ? r.length : 0;
|
|
21
|
+
for (let l = 0; l < n; l++)
|
|
22
|
+
e[l] >= "0" && e[l] <= "9" ? t += 9 - parseInt(e[l]) : t += e[l];
|
|
23
|
+
let a = s > 0 ? "0." + new Array(s).join("0") + "1" : "1";
|
|
24
|
+
return wn(t, a);
|
|
25
|
+
}
|
|
26
|
+
function X(e) {
|
|
27
|
+
let t = e.split(".");
|
|
28
|
+
for (t[0] || (t[0] = "0"); t[0][0] == "0" && t[0].length > 1; )
|
|
29
|
+
t[0] = t[0].substring(1);
|
|
30
|
+
return t[0] + (t[1] ? "." + t[1] : "");
|
|
31
|
+
}
|
|
32
|
+
function Mt(e, t) {
|
|
33
|
+
let n = e.split("."), r = t.split("."), s = n[0].length, a = r[0].length;
|
|
34
|
+
return s > a ? r[0] = new Array(Math.abs(s - a) + 1).join("0") + (r[0] ? r[0] : "") : n[0] = new Array(Math.abs(s - a) + 1).join("0") + (n[0] ? n[0] : ""), s = n[1] ? n[1].length : 0, a = r[1] ? r[1].length : 0, (s || a) && (s > a ? r[1] = (r[1] ? r[1] : "") + new Array(Math.abs(s - a) + 1).join("0") : n[1] = (n[1] ? n[1] : "") + new Array(Math.abs(s - a) + 1).join("0")), e = n[0] + (n[1] ? "." + n[1] : ""), t = r[0] + (r[1] ? "." + r[1] : ""), [e, t];
|
|
35
|
+
}
|
|
36
|
+
function wn(e, t) {
|
|
37
|
+
[e, t] = Mt(e, t);
|
|
38
|
+
let n = "", r = 0;
|
|
39
|
+
for (let s = e.length - 1; s >= 0; s--) {
|
|
40
|
+
if (e[s] === ".") {
|
|
41
|
+
n = "." + n;
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
let a = parseInt(e[s]) + parseInt(t[s]) + r;
|
|
45
|
+
n = a % 10 + n, r = Math.floor(a / 10);
|
|
46
|
+
}
|
|
47
|
+
return r ? r.toString() + n : n;
|
|
48
|
+
}
|
|
49
|
+
var Y = /* @__PURE__ */ ((e) => (e[e.CEILING = 0] = "CEILING", e[e.DOWN = 1] = "DOWN", e[e.FLOOR = 2] = "FLOOR", e[e.HALF_DOWN = 3] = "HALF_DOWN", e[e.HALF_EVEN = 4] = "HALF_EVEN", e[e.HALF_UP = 5] = "HALF_UP", e[e.UNNECESSARY = 6] = "UNNECESSARY", e[e.UP = 7] = "UP", e))(Y || {});
|
|
50
|
+
function Ye(e, t = 0, n = Y.HALF_EVEN) {
|
|
51
|
+
if (n === Y.UNNECESSARY)
|
|
52
|
+
throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");
|
|
53
|
+
typeof e == "number" && (e = e.toString());
|
|
54
|
+
let r = !1;
|
|
55
|
+
e[0] === "-" && (r = !0, e = e.substring(1));
|
|
56
|
+
let s = e.split("."), a = s[0], l = s[1];
|
|
57
|
+
if (t < 0) {
|
|
58
|
+
if (t = -t, a.length <= t)
|
|
59
|
+
return "0";
|
|
60
|
+
{
|
|
61
|
+
let u = a.substr(0, a.length - t);
|
|
62
|
+
return e = u + "." + a.substr(a.length - t) + l, u = Ye(e, 0, n), (r ? "-" : "") + u + new Array(t + 1).join("0");
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (t == 0)
|
|
66
|
+
return a.length, jt(s[1], a, r, n) ? (r ? "-" : "") + ft(a) : (r ? "-" : "") + a;
|
|
67
|
+
if (s[1]) {
|
|
68
|
+
if (s[1].length < t)
|
|
69
|
+
return (r ? "-" : "") + a + "." + s[1] + new Array(t - s[1].length + 1).join("0");
|
|
70
|
+
} else
|
|
71
|
+
return (r ? "-" : "") + a + "." + new Array(t + 1).join("0");
|
|
72
|
+
l = s[1].substring(0, t);
|
|
73
|
+
let o = s[1].substring(t);
|
|
74
|
+
return o && jt(o, l, r, n) && (l = ft(l), l.length > t) ? (r ? "-" : "") + ft(a, parseInt(l[0])) + "." + l.substring(1) : (r ? "-" : "") + a + "." + l;
|
|
75
|
+
}
|
|
76
|
+
function jt(e, t, n, r) {
|
|
77
|
+
if (!e || e === new Array(e.length + 1).join("0") || r === Y.DOWN || !n && r === Y.FLOOR || n && r === Y.CEILING)
|
|
78
|
+
return !1;
|
|
79
|
+
if (r === Y.UP || n && r === Y.FLOOR || !n && r === Y.CEILING)
|
|
80
|
+
return !0;
|
|
81
|
+
let s = "5" + new Array(e.length).join("0");
|
|
82
|
+
if (e > s)
|
|
83
|
+
return !0;
|
|
84
|
+
if (e < s)
|
|
85
|
+
return !1;
|
|
86
|
+
switch (r) {
|
|
87
|
+
case Y.HALF_DOWN:
|
|
88
|
+
return !1;
|
|
89
|
+
case Y.HALF_UP:
|
|
90
|
+
return !0;
|
|
91
|
+
case Y.HALF_EVEN:
|
|
92
|
+
default:
|
|
93
|
+
return parseInt(t[t.length - 1]) % 2 == 1;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function ft(e, t = 0) {
|
|
97
|
+
t || (t = 1), typeof e == "number" && e.toString();
|
|
98
|
+
let n = e.length - 1, r = "";
|
|
99
|
+
for (let s = n; s >= 0; s--) {
|
|
100
|
+
let a = parseInt(e[s]) + t;
|
|
101
|
+
a == 10 ? (t = 1, a = 0) : t = 0, r += a;
|
|
102
|
+
}
|
|
103
|
+
return t && (r += t), r.split("").reverse().join("");
|
|
104
|
+
}
|
|
105
|
+
function pt(e, t) {
|
|
106
|
+
e = e.toString(), t = t.toString();
|
|
107
|
+
let n = 0;
|
|
108
|
+
e[0] == "-" && (n++, e = e.substr(1)), t[0] == "-" && (n++, t = t.substr(1)), e = je(e), t = je(t);
|
|
109
|
+
let r = 0, s = 0;
|
|
110
|
+
e.indexOf(".") != -1 && (r = e.length - e.indexOf(".") - 1), t.indexOf(".") != -1 && (s = t.length - t.indexOf(".") - 1);
|
|
111
|
+
let a = r + s;
|
|
112
|
+
if (e = je(e.replace(".", "")), t = je(t.replace(".", "")), e.length < t.length) {
|
|
113
|
+
let c = e;
|
|
114
|
+
e = t, t = c;
|
|
115
|
+
}
|
|
116
|
+
if (t == "0")
|
|
117
|
+
return "0";
|
|
118
|
+
let l = t.length, o = 0, u = [], i = l - 1, f = "";
|
|
119
|
+
for (let c = 0; c < l; c++)
|
|
120
|
+
u[c] = e.length - 1;
|
|
121
|
+
for (let c = 0; c < 2 * e.length; c++) {
|
|
122
|
+
let $ = 0;
|
|
123
|
+
for (let A = t.length - 1; A >= i && A >= 0; A--)
|
|
124
|
+
u[A] > -1 && u[A] < e.length && ($ += parseInt(e[u[A]--]) * parseInt(t[A]));
|
|
125
|
+
$ += o, o = Math.floor($ / 10), f = $ % 10 + f, i--;
|
|
126
|
+
}
|
|
127
|
+
return f = je(ks(f, a)), n == 1 && (f = "-" + f), f;
|
|
128
|
+
}
|
|
129
|
+
function ks(e, t) {
|
|
130
|
+
return t == 0 ? e : (e = t >= e.length ? new Array(t - e.length + 1).join("0") + e : e, e.substr(0, e.length - t) + "." + e.substr(e.length - t, t));
|
|
131
|
+
}
|
|
132
|
+
function je(e) {
|
|
133
|
+
for (; e[0] == "0"; )
|
|
134
|
+
e = e.substr(1);
|
|
135
|
+
if (e.indexOf(".") != -1)
|
|
136
|
+
for (; e[e.length - 1] == "0"; )
|
|
137
|
+
e = e.substr(0, e.length - 1);
|
|
138
|
+
return e == "" || e == "." ? e = "0" : e[e.length - 1] == "." && (e = e.substr(0, e.length - 1)), e[0] == "." && (e = "0" + e), e;
|
|
139
|
+
}
|
|
140
|
+
function mt(e, t, n = 8) {
|
|
141
|
+
if (t == 0)
|
|
142
|
+
throw new Error("Cannot divide by 0");
|
|
143
|
+
if (e = e.toString(), t = t.toString(), e = e.replace(/(\.\d*?[1-9])0+$/g, "$1").replace(/\.0+$/, ""), t = t.replace(/(\.\d*?[1-9])0+$/g, "$1").replace(/\.0+$/, ""), e == 0)
|
|
144
|
+
return "0";
|
|
145
|
+
let r = 0;
|
|
146
|
+
t[0] == "-" && (t = t.substring(1), r++), e[0] == "-" && (e = e.substring(1), r++);
|
|
147
|
+
var s = t.indexOf(".") > 0 ? t.length - t.indexOf(".") - 1 : -1;
|
|
148
|
+
if (t = X(t.replace(".", "")), s >= 0) {
|
|
149
|
+
let i = e.indexOf(".") > 0 ? e.length - e.indexOf(".") - 1 : -1;
|
|
150
|
+
if (i == -1)
|
|
151
|
+
e = X(e + new Array(s + 1).join("0"));
|
|
152
|
+
else if (s > i)
|
|
153
|
+
e = e.replace(".", ""), e = X(e + new Array(s - i + 1).join("0"));
|
|
154
|
+
else if (s < i) {
|
|
155
|
+
e = e.replace(".", "");
|
|
156
|
+
let f = e.length - i + s;
|
|
157
|
+
e = X(e.substring(0, f) + "." + e.substring(f));
|
|
158
|
+
} else
|
|
159
|
+
s == i && (e = X(e.replace(".", "")));
|
|
160
|
+
}
|
|
161
|
+
let a = 0, l = t.length, o = "", u = e.indexOf(".") > -1 && e.indexOf(".") < l ? e.substring(0, l + 1) : e.substring(0, l);
|
|
162
|
+
if (e = e.indexOf(".") > -1 && e.indexOf(".") < l ? e.substring(l + 1) : e.substring(l), u.indexOf(".") > -1) {
|
|
163
|
+
let i = u.length - u.indexOf(".") - 1;
|
|
164
|
+
u = u.replace(".", ""), l > u.length && (i += l - u.length, u = u + new Array(l - u.length + 1).join("0")), a = i, o = "0." + new Array(i).join("0");
|
|
165
|
+
}
|
|
166
|
+
for (n = n + 2; a <= n; ) {
|
|
167
|
+
let i = 0;
|
|
168
|
+
for (; parseInt(u) >= parseInt(t); )
|
|
169
|
+
u = Je(u, "-" + t), i++;
|
|
170
|
+
o += i, e ? (e[0] == "." && (o += ".", a++, e = e.substring(1)), u = u + e.substring(0, 1), e = e.substring(1)) : (a || (o += "."), a++, u = u + "0");
|
|
171
|
+
}
|
|
172
|
+
return (r == 1 ? "-" : "") + X(Ye(o, n - 2));
|
|
173
|
+
}
|
|
174
|
+
function yt(e, t) {
|
|
175
|
+
return e = e.toString(), t = t.toString(), t = vt(t), Je(e, t);
|
|
176
|
+
}
|
|
177
|
+
function vt(e) {
|
|
178
|
+
return e[0] == "-" ? e = e.substr(1) : e = "-" + e, e;
|
|
179
|
+
}
|
|
180
|
+
function Ft(e, t) {
|
|
181
|
+
if (t == 0)
|
|
182
|
+
throw new Error("Cannot divide by 0");
|
|
183
|
+
e = e.toString(), t = t.toString(), Wt(e), Wt(t);
|
|
184
|
+
let n = "";
|
|
185
|
+
e[0] == "-" && (n = "-", e = e.substr(1)), t[0] == "-" && (t = t.substr(1));
|
|
186
|
+
let r = yt(e, pt(t, Ye(mt(e, t), 0, Y.FLOOR)));
|
|
187
|
+
return n + r;
|
|
188
|
+
}
|
|
189
|
+
function Wt(e) {
|
|
190
|
+
if (e.indexOf(".") != -1)
|
|
191
|
+
throw new Error("Modulus of non-integers not supported");
|
|
192
|
+
}
|
|
193
|
+
function Yt(e, t) {
|
|
194
|
+
let n = !1;
|
|
195
|
+
if (e[0] == "-" && t[0] != "-")
|
|
196
|
+
return -1;
|
|
197
|
+
if (e[0] != "-" && t[0] == "-")
|
|
198
|
+
return 1;
|
|
199
|
+
if (e[0] == "-" && t[0] == "-" && (e = e.substr(1), t = t.substr(1), n = !0), [e, t] = Mt(e, t), e.localeCompare(t) == 0)
|
|
200
|
+
return 0;
|
|
201
|
+
for (let r = 0; r < e.length; r++)
|
|
202
|
+
if (e[r] != t[r])
|
|
203
|
+
return e[r] > t[r] ? n ? -1 : 1 : n ? 1 : -1;
|
|
204
|
+
return 0;
|
|
205
|
+
}
|
|
206
|
+
class q {
|
|
207
|
+
value;
|
|
208
|
+
static RoundingModes = Y;
|
|
209
|
+
static validate(t) {
|
|
210
|
+
if (t) {
|
|
211
|
+
if (t = t.toString(), isNaN(t))
|
|
212
|
+
throw Error("Parameter is not a number: " + t);
|
|
213
|
+
t[0] == "+" && (t = t.substring(1));
|
|
214
|
+
} else
|
|
215
|
+
t = "0";
|
|
216
|
+
if (t.startsWith(".") ? t = "0" + t : t.startsWith("-.") && (t = "-0" + t.substr(1)), /e/i.test(t)) {
|
|
217
|
+
let [n, r] = t.split(/[eE]/);
|
|
218
|
+
n = X(n);
|
|
219
|
+
let s = "";
|
|
220
|
+
n[0] == "-" && (s = "-", n = n.substring(1)), n.indexOf(".") >= 0 ? (r = parseInt(r) + n.indexOf("."), n = n.replace(".", "")) : r = parseInt(r) + n.length, n.length < r ? t = s + n + new Array(r - n.length + 1).join("0") : n.length >= r && r > 0 ? t = s + X(n.substring(0, r)) + (n.length > r ? "." + n.substring(r) : "") : t = s + "0." + new Array(-r + 1).join("0") + n;
|
|
221
|
+
}
|
|
222
|
+
return t;
|
|
223
|
+
}
|
|
224
|
+
constructor(t = "0") {
|
|
225
|
+
this.value = q.validate(t);
|
|
226
|
+
}
|
|
227
|
+
getValue() {
|
|
228
|
+
return this.value;
|
|
229
|
+
}
|
|
230
|
+
static getPrettyValue(t, n, r) {
|
|
231
|
+
if (!(n || r))
|
|
232
|
+
n = 3, r = ",";
|
|
233
|
+
else if (!(n && r))
|
|
234
|
+
throw Error("Illegal Arguments. Should pass both digits and separator or pass none");
|
|
235
|
+
t = q.validate(t);
|
|
236
|
+
let s = t.charAt(0) == "-";
|
|
237
|
+
s && (t = t.substring(1));
|
|
238
|
+
var a = t.indexOf(".");
|
|
239
|
+
a = a > 0 ? a : t.length;
|
|
240
|
+
for (var l = "", o = a; o > 0; )
|
|
241
|
+
o < n ? (n = o, o = 0) : o -= n, l = t.substring(o, o + n) + (o < a - n && o >= 0 ? r : "") + l;
|
|
242
|
+
return (s ? "-" : "") + l + t.substring(a);
|
|
243
|
+
}
|
|
244
|
+
getPrettyValue(t, n) {
|
|
245
|
+
return q.getPrettyValue(this.value, t, n);
|
|
246
|
+
}
|
|
247
|
+
static round(t, n = 0, r = Y.HALF_EVEN) {
|
|
248
|
+
if (t = q.validate(t), isNaN(n))
|
|
249
|
+
throw Error("Precision is not a number: " + n);
|
|
250
|
+
return Ye(t, n, r);
|
|
251
|
+
}
|
|
252
|
+
round(t = 0, n = Y.HALF_EVEN) {
|
|
253
|
+
if (isNaN(t))
|
|
254
|
+
throw Error("Precision is not a number: " + t);
|
|
255
|
+
return new q(Ye(this.value, t, n));
|
|
256
|
+
}
|
|
257
|
+
static floor(t) {
|
|
258
|
+
return t = q.validate(t), t.indexOf(".") === -1 ? t : q.round(t, 0, Y.FLOOR);
|
|
259
|
+
}
|
|
260
|
+
floor() {
|
|
261
|
+
return this.value.indexOf(".") === -1 ? new q(this.value) : new q(this.value).round(0, Y.FLOOR);
|
|
262
|
+
}
|
|
263
|
+
static ceil(t) {
|
|
264
|
+
return t = q.validate(t), t.indexOf(".") === -1 ? t : q.round(t, 0, Y.CEILING);
|
|
265
|
+
}
|
|
266
|
+
ceil() {
|
|
267
|
+
return this.value.indexOf(".") === -1 ? new q(this.value) : new q(this.value).round(0, Y.CEILING);
|
|
268
|
+
}
|
|
269
|
+
static add(t, n) {
|
|
270
|
+
return t = q.validate(t), n = q.validate(n), Je(t, n);
|
|
271
|
+
}
|
|
272
|
+
add(t) {
|
|
273
|
+
return new q(Je(this.value, t.getValue()));
|
|
274
|
+
}
|
|
275
|
+
static subtract(t, n) {
|
|
276
|
+
return t = q.validate(t), n = q.validate(n), yt(t, n);
|
|
277
|
+
}
|
|
278
|
+
subtract(t) {
|
|
279
|
+
return new q(yt(this.value, t.getValue()));
|
|
280
|
+
}
|
|
281
|
+
static multiply(t, n) {
|
|
282
|
+
return t = q.validate(t), n = q.validate(n), pt(t, n);
|
|
283
|
+
}
|
|
284
|
+
multiply(t) {
|
|
285
|
+
return new q(pt(this.value, t.getValue()));
|
|
286
|
+
}
|
|
287
|
+
static divide(t, n, r) {
|
|
288
|
+
return t = q.validate(t), n = q.validate(n), mt(t, n, r);
|
|
289
|
+
}
|
|
290
|
+
divide(t, n) {
|
|
291
|
+
return new q(mt(this.value, t.getValue(), n));
|
|
292
|
+
}
|
|
293
|
+
static modulus(t, n) {
|
|
294
|
+
return t = q.validate(t), n = q.validate(n), Ft(t, n);
|
|
295
|
+
}
|
|
296
|
+
modulus(t) {
|
|
297
|
+
return new q(Ft(this.value, t.getValue()));
|
|
298
|
+
}
|
|
299
|
+
static compareTo(t, n) {
|
|
300
|
+
return t = q.validate(t), n = q.validate(n), Yt(t, n);
|
|
301
|
+
}
|
|
302
|
+
compareTo(t) {
|
|
303
|
+
return Yt(this.value, t.getValue());
|
|
304
|
+
}
|
|
305
|
+
static negate(t) {
|
|
306
|
+
return t = q.validate(t), vt(t);
|
|
307
|
+
}
|
|
308
|
+
negate() {
|
|
309
|
+
return new q(vt(this.value));
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
function gi(e, t) {
|
|
313
|
+
return q.multiply(`${e}`, `${t}`);
|
|
314
|
+
}
|
|
315
|
+
function pi(e, t, n = 8) {
|
|
316
|
+
return q.divide(`${e}`, `${t}`, n);
|
|
317
|
+
}
|
|
318
|
+
function mi(e, t) {
|
|
319
|
+
return e = `${e}`, t = `${t}`, q.compareTo(e, t);
|
|
320
|
+
}
|
|
321
|
+
function yi(e) {
|
|
322
|
+
return q.negate(e);
|
|
323
|
+
}
|
|
324
|
+
function Bs(e, t = -1, n = !1, r = 3, s = ",") {
|
|
325
|
+
let a = `${e}`;
|
|
326
|
+
if (a.length == 0 || a === "-")
|
|
327
|
+
return "";
|
|
328
|
+
let l = a.charAt(0);
|
|
329
|
+
l == "-" ? a = a.substring(1) : l = "";
|
|
330
|
+
let o = a, u = "", i = a.indexOf(".");
|
|
331
|
+
i != -1 && (o = a.substring(0, i), u = a.substring(i + 1)), t != -1 && (t < u.length ? u = u.substring(0, t) : n && t > u.length && (u = u.padEnd(t, "0")));
|
|
332
|
+
let f;
|
|
333
|
+
if (r > 0) {
|
|
334
|
+
let c = "", $ = o.split("").reverse();
|
|
335
|
+
for (let A = 0; A < $.length; A++)
|
|
336
|
+
c += $[A] + ((A + 1) % r == 0 && A + 1 != $.length ? s : "");
|
|
337
|
+
u.length == 0 ? f = `${l}${c.split("").reverse().join("")}` : f = `${l}${c.split("").reverse().join("")}.${u}`;
|
|
338
|
+
} else
|
|
339
|
+
u.length == 0 ? f = `${l}${o}` : f = `${l}${o}.${u}`;
|
|
340
|
+
return f;
|
|
341
|
+
}
|
|
342
|
+
function vi(e) {
|
|
343
|
+
let t = `${e}`, n = t.charAt(0);
|
|
344
|
+
n == "-" ? t = t.substring(1) : n = "";
|
|
345
|
+
let r = t.replace(/[^\d\.-]/g, "");
|
|
346
|
+
return `${n}${r}`;
|
|
347
|
+
}
|
|
348
|
+
const rt = typeof window < "u", bi = rt && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
|
|
349
|
+
function js(e) {
|
|
350
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
351
|
+
}
|
|
352
|
+
const Pe = (e) => e == null ? !0 : typeof e != "string" ? !1 : e.length === 0;
|
|
353
|
+
function $i(e) {
|
|
354
|
+
return Pe(e) ? !0 : (e.charAt(0) == "-" && (e = e.substring(1)), Pe(e) || /^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e));
|
|
355
|
+
}
|
|
356
|
+
function wi(e) {
|
|
357
|
+
if (e == null)
|
|
358
|
+
return 0;
|
|
359
|
+
let t = `${e}`;
|
|
360
|
+
if (t.length == 0)
|
|
361
|
+
return 0;
|
|
362
|
+
t.charAt(0) == "-" && (t = t.substring(1)), t = t.replace(/[^\d\.-]/g, "");
|
|
363
|
+
const n = t.indexOf(".");
|
|
364
|
+
return n == -1 ? t.length : n;
|
|
365
|
+
}
|
|
366
|
+
function xi(e) {
|
|
367
|
+
if (e == null)
|
|
368
|
+
return 0;
|
|
369
|
+
const t = `${e}`;
|
|
370
|
+
if (t.length == 0)
|
|
371
|
+
return 0;
|
|
372
|
+
const n = t.indexOf(".");
|
|
373
|
+
return n == -1 ? 0 : t.length - (n + 1);
|
|
374
|
+
}
|
|
375
|
+
function Kt(e, t, n) {
|
|
376
|
+
const r = e.indexOf(t);
|
|
377
|
+
return r === -1 ? e : t === "-" && r !== 0 ? e.slice(0, r) : e.slice(0, r + 1) + e.slice(r).replace(n, "");
|
|
378
|
+
}
|
|
379
|
+
function Si(e, t = !0, n = !0) {
|
|
380
|
+
t ? e = Kt(e, ".", /\./g) : e = e.replace(/\./g, ""), n ? e = Kt(e, "-", /-/g) : e = e.replace(/-/, "");
|
|
381
|
+
const r = t ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
382
|
+
return e.replace(r, "");
|
|
383
|
+
}
|
|
384
|
+
function Ei(e, t) {
|
|
385
|
+
return typeof e == "object" || Array.isArray(e) ? t.findIndex((n) => {
|
|
386
|
+
if (un(e, n))
|
|
387
|
+
return !0;
|
|
388
|
+
}) : t.indexOf(e);
|
|
389
|
+
}
|
|
390
|
+
function Ai(e, t) {
|
|
391
|
+
if (typeof e == "object" || Array.isArray(e)) {
|
|
392
|
+
let n = t.reverse().findIndex((r) => {
|
|
393
|
+
if (un(e, r))
|
|
394
|
+
return !0;
|
|
395
|
+
});
|
|
396
|
+
return n !== -1 && (n = t.length - 1 - n), n;
|
|
397
|
+
}
|
|
398
|
+
return t.lastIndexOf(e);
|
|
399
|
+
}
|
|
400
|
+
function Fs(e) {
|
|
401
|
+
return e == null || e == null ? 0 : typeof e == "string" ? e.length : `${e}`.length;
|
|
402
|
+
}
|
|
403
|
+
function Ni(e, ...t) {
|
|
404
|
+
const n = {};
|
|
405
|
+
return t.forEach((r) => {
|
|
406
|
+
for (const s in r)
|
|
407
|
+
n[s] = e[s];
|
|
408
|
+
}), n;
|
|
409
|
+
}
|
|
410
|
+
function Be(e, ...t) {
|
|
411
|
+
const n = [];
|
|
412
|
+
t.forEach((s) => {
|
|
413
|
+
Reflect.apply([].push, n, Reflect.ownKeys(s));
|
|
414
|
+
});
|
|
415
|
+
const r = {};
|
|
416
|
+
for (const s in e)
|
|
417
|
+
n.includes(s) || (r[s] = e[s]);
|
|
418
|
+
return r;
|
|
419
|
+
}
|
|
420
|
+
const Oi = (e, t, n) => {
|
|
421
|
+
const r = Object.assign({}, e), s = Object.assign({}, n);
|
|
422
|
+
return Object.keys(t).length > 0 ? (Object.keys(r).forEach((a) => {
|
|
423
|
+
s.hasOwnProperty(a) ? (typeof s[a] == "function" && (r[a] = s[a](t)), typeof s[a] == "string" && (r[a] = t[s[a]])) : t[a] && (r[a] = t[a]);
|
|
424
|
+
}), r) : e;
|
|
425
|
+
}, z = Symbol("BroadcastKey");
|
|
426
|
+
class xn {
|
|
427
|
+
parent;
|
|
428
|
+
children = [];
|
|
429
|
+
callbacks = /* @__PURE__ */ new Map();
|
|
430
|
+
instance = null;
|
|
431
|
+
name;
|
|
432
|
+
constructor(t, n, r) {
|
|
433
|
+
this.parent = t, this.instance = n, this.name = r, t !== null && t.addChild(this);
|
|
434
|
+
}
|
|
435
|
+
addChild(t) {
|
|
436
|
+
this.children.push(t);
|
|
437
|
+
}
|
|
438
|
+
removeChild(t) {
|
|
439
|
+
const n = this.children.findIndex((r) => t === r);
|
|
440
|
+
n !== -1 && this.children.splice(n, 1);
|
|
441
|
+
}
|
|
442
|
+
destroy() {
|
|
443
|
+
this.parent !== null && this.parent.removeChild(this), this.parent = null, this.instance = null;
|
|
444
|
+
}
|
|
445
|
+
emit(t, n, ...r) {
|
|
446
|
+
if (t.maxLevel !== void 0 && t.maxLevel !== null && t.maxLevel > 0) {
|
|
447
|
+
if (t.level = t.level ?? 0, t.level > t.maxLevel)
|
|
448
|
+
return [];
|
|
449
|
+
t.level++;
|
|
450
|
+
}
|
|
451
|
+
let s = !1;
|
|
452
|
+
!t.name || t.name === "*" ? s = !0 : !t.name || t.name === "+" ? (s = !1, t.name = "*") : js(t.name) && this.name && t.name.test(this.name) ? s = !0 : typeof t.name == "function" ? s = Reflect.apply(t.name, null, [this.name]) : t.name === this.name && (s = !0);
|
|
453
|
+
const a = [];
|
|
454
|
+
if (s) {
|
|
455
|
+
const l = this.callbacks.get(n);
|
|
456
|
+
if (typeof l == "function") {
|
|
457
|
+
const i = Reflect.apply(l, this.instance?.proxy, [...r]);
|
|
458
|
+
i != null && a.push(i);
|
|
459
|
+
}
|
|
460
|
+
const o = this.instance?.exposed ?? {};
|
|
461
|
+
if (typeof o[n] == "function") {
|
|
462
|
+
const i = Reflect.apply(o[n], o, [...r]);
|
|
463
|
+
i != null && a.push(i);
|
|
464
|
+
}
|
|
465
|
+
const u = this.instance?.proxy ?? {};
|
|
466
|
+
if (typeof u[n] == "function") {
|
|
467
|
+
const i = Reflect.apply(u[n], u, [...r]);
|
|
468
|
+
i != null && a.push(i);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
return this.children.forEach((l) => {
|
|
472
|
+
const o = Reflect.apply(l.emit, l, [{ ...t }, n, ...r]);
|
|
473
|
+
o != null && Array.isArray(o) && Reflect.apply([].push, a, [...o]);
|
|
474
|
+
}), a;
|
|
475
|
+
}
|
|
476
|
+
emitToChildren(t, n, ...r) {
|
|
477
|
+
const s = [];
|
|
478
|
+
return this.children.forEach((a) => {
|
|
479
|
+
const l = Reflect.apply(a.emit, a, [{ ...t }, n, ...r]);
|
|
480
|
+
l != null && Array.isArray(l) && Reflect.apply([].push, s, [...l]);
|
|
481
|
+
}), s;
|
|
482
|
+
}
|
|
483
|
+
on(t, n) {
|
|
484
|
+
this.callbacks.set(t, n);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
function Sn(e, t, n, r) {
|
|
488
|
+
const s = new xn(t, e, n);
|
|
489
|
+
if (r && typeof r == "object")
|
|
490
|
+
for (const a in r)
|
|
491
|
+
s.on(a, r[a]);
|
|
492
|
+
return s;
|
|
493
|
+
}
|
|
494
|
+
function Pi(e, t) {
|
|
495
|
+
const n = ie();
|
|
496
|
+
if (n === null)
|
|
497
|
+
return null;
|
|
498
|
+
const r = n.proxy;
|
|
499
|
+
if (r[z])
|
|
500
|
+
return r[z];
|
|
501
|
+
const s = ne(z, null), a = new xn(s, n, e);
|
|
502
|
+
if (t && typeof t == "object")
|
|
503
|
+
for (const l in t)
|
|
504
|
+
a.on(l, t[l]);
|
|
505
|
+
return r[z] = a, ve(z, a), qe(() => {
|
|
506
|
+
a.destroy(), r[z] = void 0;
|
|
507
|
+
}), a;
|
|
508
|
+
}
|
|
509
|
+
function ze(e = null) {
|
|
510
|
+
return e || (e = ie()?.proxy ?? null), e ? e[z] ?? ne(z, null) : ne(z, null);
|
|
511
|
+
}
|
|
512
|
+
class Ws {
|
|
513
|
+
error(t, n, r) {
|
|
514
|
+
const s = n, a = ze(n);
|
|
515
|
+
a ? a.emit({ name: "*" }, "setErrorTip", t) : typeof s.setErrorTip == "function" && s.setErrorTip(t);
|
|
516
|
+
}
|
|
517
|
+
reset(t, n) {
|
|
518
|
+
const r = t, s = ze(t);
|
|
519
|
+
s ? s.emit({ name: "*" }, "setErrorTip", "") : typeof r.setErrorTip == "function" && r.setErrorTip("");
|
|
520
|
+
}
|
|
521
|
+
success(t, n) {
|
|
522
|
+
const r = t, s = ze(t);
|
|
523
|
+
s ? s.emit({ name: "*" }, "setErrorTip", "") : typeof r.setErrorTip == "function" && r.setErrorTip("");
|
|
524
|
+
}
|
|
525
|
+
decorate(t, n, r, s) {
|
|
526
|
+
Array.isArray(t) || (t = [t]);
|
|
527
|
+
const a = r, l = ze(r), o = n.find((i) => i.required === !0 || i.type === "required" && i.required !== !1), u = t.find((i) => i.required === !0 || i.type === "required" && i.required !== !1);
|
|
528
|
+
!o && u ? l ? l.emit({ name: "*" }, "setRequired", !0) : typeof a.setRequired == "function" && a.setRequired(!0) : o && !u && (l ? l.emit({ name: "*" }, "setRequired", !1) : typeof a.setRequired == "function" && a.setRequired(!1), this.reset(r, s));
|
|
529
|
+
}
|
|
530
|
+
getValue(t, n) {
|
|
531
|
+
return t.modelValue;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
let En = new Ws();
|
|
535
|
+
function Ti(e) {
|
|
536
|
+
En = e;
|
|
537
|
+
}
|
|
538
|
+
function Ci(e, t) {
|
|
539
|
+
Ee.setValidator(e, t);
|
|
540
|
+
}
|
|
541
|
+
function Ri(e) {
|
|
542
|
+
Ee.deleteValidator(e);
|
|
543
|
+
}
|
|
544
|
+
let An = ["blur", "clear"];
|
|
545
|
+
function Mi(e) {
|
|
546
|
+
An = e;
|
|
547
|
+
}
|
|
548
|
+
function Ys() {
|
|
549
|
+
return An;
|
|
550
|
+
}
|
|
551
|
+
let Nn = ["focus", "change"];
|
|
552
|
+
function Ii(e) {
|
|
553
|
+
Nn = e;
|
|
554
|
+
}
|
|
555
|
+
function Ks() {
|
|
556
|
+
return Nn;
|
|
557
|
+
}
|
|
558
|
+
function Vi(e) {
|
|
559
|
+
Ee.messages(e);
|
|
560
|
+
}
|
|
561
|
+
function Fe(...e) {
|
|
562
|
+
const t = [];
|
|
563
|
+
return e.forEach((n) => {
|
|
564
|
+
n.forEach((r) => {
|
|
565
|
+
const s = t.findIndex((a) => a.type === r.type);
|
|
566
|
+
s !== -1 && t.splice(s, 1), t.push(r);
|
|
567
|
+
});
|
|
568
|
+
}), t;
|
|
569
|
+
}
|
|
570
|
+
function Ue(e) {
|
|
571
|
+
return e.forEach((t) => {
|
|
572
|
+
t.type === "required" && (t.required === null || t.required === void 0) && (t.required = !0), !t.type && (t.required === !0 || t.required === !1) && (t.type = "required");
|
|
573
|
+
}), e;
|
|
574
|
+
}
|
|
575
|
+
const ye = Symbol("ValidateSchemaKey");
|
|
576
|
+
class Gs {
|
|
577
|
+
parent = null;
|
|
578
|
+
validators = {};
|
|
579
|
+
attrRules = [];
|
|
580
|
+
rules = [];
|
|
581
|
+
descriptor;
|
|
582
|
+
instance;
|
|
583
|
+
scope = null;
|
|
584
|
+
constructor(t, n, r) {
|
|
585
|
+
this.parent = t, this.descriptor = n, this.instance = r, (this.descriptor.validate ?? !0) && this.init();
|
|
586
|
+
}
|
|
587
|
+
init() {
|
|
588
|
+
if (!this.descriptor.valueName)
|
|
589
|
+
return;
|
|
590
|
+
let t = this.instance.proxy;
|
|
591
|
+
if (!t)
|
|
592
|
+
return;
|
|
593
|
+
let n = t.$attrs;
|
|
594
|
+
!n || (this.scope = Zn(), this.scope.run(() => {
|
|
595
|
+
Ot(() => {
|
|
596
|
+
const r = Ue(Fe(this.attrRules, this.rules)), s = [];
|
|
597
|
+
for (let l in n) {
|
|
598
|
+
let o = n[l];
|
|
599
|
+
if (this.hasValidator(l, !0)) {
|
|
600
|
+
if (o === !1)
|
|
601
|
+
continue;
|
|
602
|
+
let i = {
|
|
603
|
+
type: l
|
|
604
|
+
};
|
|
605
|
+
o !== null && typeof o == "object" && Object.assign(i, o), s.push(i);
|
|
606
|
+
continue;
|
|
607
|
+
}
|
|
608
|
+
let u = this.getValidator(l);
|
|
609
|
+
if (u !== null) {
|
|
610
|
+
let i = {
|
|
611
|
+
type: l,
|
|
612
|
+
validator: u
|
|
613
|
+
};
|
|
614
|
+
s.push(i);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
this.attrRules = Ue(s);
|
|
618
|
+
const a = Fe(this.attrRules, this.rules);
|
|
619
|
+
Ht(() => {
|
|
620
|
+
this.decorate(a, r);
|
|
621
|
+
});
|
|
622
|
+
});
|
|
623
|
+
}));
|
|
624
|
+
}
|
|
625
|
+
destroy() {
|
|
626
|
+
this.scope && (this.scope.stop(), this.scope = null), this.parent = null;
|
|
627
|
+
}
|
|
628
|
+
execHandler(t, ...n) {
|
|
629
|
+
const r = this.descriptor.validateHandler;
|
|
630
|
+
if (r && typeof r[t] == "function")
|
|
631
|
+
return Reflect.apply(r[t], r, [...n]);
|
|
632
|
+
const s = En;
|
|
633
|
+
return s && typeof s[t] == "function" ? Reflect.apply(s[t], s, [...n]) : null;
|
|
634
|
+
}
|
|
635
|
+
decorate(t, n) {
|
|
636
|
+
let r = this.instance.proxy;
|
|
637
|
+
r !== null && this.execHandler("decorate", t, n, r, this.instance);
|
|
638
|
+
}
|
|
639
|
+
success() {
|
|
640
|
+
let t = this.instance.proxy;
|
|
641
|
+
t !== null && this.execHandler("success", t, this.instance);
|
|
642
|
+
}
|
|
643
|
+
error(t) {
|
|
644
|
+
let n = this.instance.proxy;
|
|
645
|
+
n !== null && this.execHandler("error", t, n, this.instance);
|
|
646
|
+
}
|
|
647
|
+
getValue() {
|
|
648
|
+
let t = this.instance.proxy;
|
|
649
|
+
return t === null ? null : this.execHandler("getValue", t, this.instance);
|
|
650
|
+
}
|
|
651
|
+
setValidator(t, n, r = !1) {
|
|
652
|
+
r ? Ee.setValidator(t, n) : this.validators[t] = n;
|
|
653
|
+
}
|
|
654
|
+
getValidator(t) {
|
|
655
|
+
let n = this.validators[t] ?? null;
|
|
656
|
+
return n || (n = this.parent?.getValidator(t) ?? null), n;
|
|
657
|
+
}
|
|
658
|
+
deleteValidator(t, n = !1) {
|
|
659
|
+
n ? Ee.deleteValidator(t) : Reflect.deleteProperty(this.validators, t);
|
|
660
|
+
}
|
|
661
|
+
hasValidator(t, n = !1) {
|
|
662
|
+
if (n)
|
|
663
|
+
return Ee.hasValidator(t);
|
|
664
|
+
{
|
|
665
|
+
let r = Reflect.has(this.validators, t);
|
|
666
|
+
return !r && this.parent !== null && (r = this.parent.hasValidator(t, !1)), r;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
setRule(t) {
|
|
670
|
+
const n = Fe(this.attrRules, this.rules);
|
|
671
|
+
t === null ? this.rules = [] : Array.isArray(t) ? this.rules = Ue(t) : this.rules = Ue([t]);
|
|
672
|
+
const r = Fe(this.attrRules, this.rules);
|
|
673
|
+
Ht(() => {
|
|
674
|
+
this.decorate(r, n);
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
clear() {
|
|
678
|
+
let t = this.instance.proxy;
|
|
679
|
+
t !== null && this.execHandler("reset", t, this.instance);
|
|
680
|
+
}
|
|
681
|
+
validate() {
|
|
682
|
+
if (this.descriptor.validate ?? !0) {
|
|
683
|
+
let n = Fe(this.attrRules, this.rules);
|
|
684
|
+
const r = this.descriptor.fieldName ?? "value";
|
|
685
|
+
if (n.length > 0) {
|
|
686
|
+
const s = {
|
|
687
|
+
[`${r}`]: n
|
|
688
|
+
};
|
|
689
|
+
if (!this.instance.proxy)
|
|
690
|
+
return Promise.resolve({
|
|
691
|
+
pass: !0
|
|
692
|
+
});
|
|
693
|
+
const l = this.getValue(), o = {
|
|
694
|
+
[`${r}`]: l
|
|
695
|
+
}, u = new Ee(s), i = this.instance?.proxy ?? o;
|
|
696
|
+
return u.validate(o, {
|
|
697
|
+
context: i
|
|
698
|
+
}).then((c) => {
|
|
699
|
+
if (c.pass)
|
|
700
|
+
this.success();
|
|
701
|
+
else {
|
|
702
|
+
let $ = "error";
|
|
703
|
+
Array.isArray(c.errors) && c.errors.length > 0 && ($ = c.errors[0].message ?? $, c.errors = [c.errors[0]], c.errors[0].ref = i), this.error($);
|
|
704
|
+
}
|
|
705
|
+
return c;
|
|
706
|
+
}).catch((c) => {
|
|
707
|
+
const $ = c.message ?? `${c}`;
|
|
708
|
+
return this.error($), c;
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
return Promise.resolve({
|
|
713
|
+
pass: !0
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
function On(e, t, n) {
|
|
718
|
+
if (n.valueName = n.valueName ?? "modelValue", n.valueType = n.valueType ?? "string", !n.validateHandler && n.valueName !== "modelValue") {
|
|
719
|
+
const s = n.valueName;
|
|
720
|
+
n.validateHandler = {
|
|
721
|
+
getValue(a, l) {
|
|
722
|
+
return a[s];
|
|
723
|
+
}
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
return new Gs(t, n, e);
|
|
727
|
+
}
|
|
728
|
+
const Gt = Symbol("EventEmitterKey");
|
|
729
|
+
class zs {
|
|
730
|
+
register = /* @__PURE__ */ new Map();
|
|
731
|
+
proxy;
|
|
732
|
+
constructor(t) {
|
|
733
|
+
this.proxy = t;
|
|
734
|
+
}
|
|
735
|
+
destroy() {
|
|
736
|
+
this.proxy = null, this.register.clear();
|
|
737
|
+
}
|
|
738
|
+
off(t, n) {
|
|
739
|
+
let r = this.register.get(t);
|
|
740
|
+
if (r && Array.isArray(r)) {
|
|
741
|
+
let s = r.findIndex((a) => a === n);
|
|
742
|
+
s !== -1 && r.splice(s, 1);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
on(t, n) {
|
|
746
|
+
let r = this.register.get(t);
|
|
747
|
+
r || (r = new Array(), this.register.set(t, r)), r.push(n);
|
|
748
|
+
}
|
|
749
|
+
emit(t, ...n) {
|
|
750
|
+
const r = this.register.get(t);
|
|
751
|
+
r && r.forEach((s) => {
|
|
752
|
+
try {
|
|
753
|
+
Reflect.apply(s, null, [t, ...n]);
|
|
754
|
+
} catch (a) {
|
|
755
|
+
console.error(a.message, a);
|
|
756
|
+
}
|
|
757
|
+
}), this.proxy && Reflect.apply(this.proxy.$emit, this.proxy, [t, ...n]);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
function Di(e, t) {
|
|
761
|
+
let n = 0;
|
|
762
|
+
return function(...r) {
|
|
763
|
+
const s = Date.now();
|
|
764
|
+
s - n > t && (Reflect.apply(e, {}, [...r]), n = s);
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
function Pn(e, t) {
|
|
768
|
+
let n, r = null;
|
|
769
|
+
return function(...s) {
|
|
770
|
+
r = s, n || (n = setTimeout(() => {
|
|
771
|
+
n = null, Reflect.apply(e, {}, [...r ?? []]);
|
|
772
|
+
}, t));
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
const Ae = Symbol("DomainKey");
|
|
776
|
+
class Tn {
|
|
777
|
+
_parent = null;
|
|
778
|
+
get parent() {
|
|
779
|
+
return this._parent;
|
|
780
|
+
}
|
|
781
|
+
set parent(t) {
|
|
782
|
+
this._parent = t;
|
|
783
|
+
}
|
|
784
|
+
_name = null;
|
|
785
|
+
get name() {
|
|
786
|
+
return this._name;
|
|
787
|
+
}
|
|
788
|
+
_broadcast = null;
|
|
789
|
+
get broadcast() {
|
|
790
|
+
return this._broadcast;
|
|
791
|
+
}
|
|
792
|
+
set broadcast(t) {
|
|
793
|
+
this._broadcast = t;
|
|
794
|
+
}
|
|
795
|
+
_validateSchema = null;
|
|
796
|
+
get validateSchema() {
|
|
797
|
+
return this._validateSchema;
|
|
798
|
+
}
|
|
799
|
+
set validateSchema(t) {
|
|
800
|
+
this._validateSchema = t;
|
|
801
|
+
}
|
|
802
|
+
_props = Pt({});
|
|
803
|
+
constructor(t = null) {
|
|
804
|
+
this._name = t;
|
|
805
|
+
}
|
|
806
|
+
destroy() {
|
|
807
|
+
this._parent = null, this._broadcast = null, this._validateSchema = null, this._props = {};
|
|
808
|
+
}
|
|
809
|
+
merge(t, n = []) {
|
|
810
|
+
for (const r in t) {
|
|
811
|
+
const s = t[r];
|
|
812
|
+
n.length > 0 && n.indexOf(s) !== -1 || (this._props[r] = s);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
has(t) {
|
|
816
|
+
if (Reflect.has(this._props, t)) {
|
|
817
|
+
const n = this._props[t];
|
|
818
|
+
if (n != null)
|
|
819
|
+
return !0;
|
|
820
|
+
}
|
|
821
|
+
return this.parent == null ? !1 : this.parent.has(t);
|
|
822
|
+
}
|
|
823
|
+
delete(t) {
|
|
824
|
+
Reflect.deleteProperty(this._props, t);
|
|
825
|
+
}
|
|
826
|
+
set(t, n) {
|
|
827
|
+
this._props[t] = n;
|
|
828
|
+
}
|
|
829
|
+
get(t, n) {
|
|
830
|
+
if (Reflect.has(this._props, t)) {
|
|
831
|
+
const r = this._props[t];
|
|
832
|
+
if (r != null)
|
|
833
|
+
return r;
|
|
834
|
+
}
|
|
835
|
+
return this.parent == null ? n : this.parent.get(t, n);
|
|
836
|
+
}
|
|
837
|
+
getForParent(t, n) {
|
|
838
|
+
return this.parent == null ? n : this.parent.get(t, n);
|
|
839
|
+
}
|
|
840
|
+
getForSelf(t) {
|
|
841
|
+
return this._props[t];
|
|
842
|
+
}
|
|
843
|
+
getAll(t) {
|
|
844
|
+
const n = [];
|
|
845
|
+
let r = this;
|
|
846
|
+
for (; r != null; ) {
|
|
847
|
+
if (Reflect.has(r._props, t)) {
|
|
848
|
+
const s = r._props[t];
|
|
849
|
+
n.push(s);
|
|
850
|
+
}
|
|
851
|
+
r = r._parent;
|
|
852
|
+
}
|
|
853
|
+
return n;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
const Us = new Tn();
|
|
857
|
+
function Ze() {
|
|
858
|
+
return Us;
|
|
859
|
+
}
|
|
860
|
+
function Te(e = null) {
|
|
861
|
+
e || (e = ie());
|
|
862
|
+
const t = e?.proxy;
|
|
863
|
+
return t ? t[Ae] ?? ne(Ae, null) : ne(Ae, null);
|
|
864
|
+
}
|
|
865
|
+
function Cn(e, t, n = [], r) {
|
|
866
|
+
const s = ie();
|
|
867
|
+
let a = ne(Ae, null);
|
|
868
|
+
a === null && (a = Ze());
|
|
869
|
+
const l = e || t.prop || t.name, o = new Tn(l);
|
|
870
|
+
o.parent = a, Tt(t) ? Ot(() => {
|
|
871
|
+
o.merge(t, n);
|
|
872
|
+
}) : o.merge(t, n);
|
|
873
|
+
const u = s?.proxy;
|
|
874
|
+
u[Ae] = o, ve(Ae, o);
|
|
875
|
+
let i = null, f = null;
|
|
876
|
+
if (s !== null) {
|
|
877
|
+
const c = ne(z, null);
|
|
878
|
+
i = Sn(s, c, l, r), o.broadcast = i, u[z] = i, ve(z, i), u.fox_broadcast = (A, m, ...h) => Reflect.apply(i.emit, i, [A, m, ...h]);
|
|
879
|
+
const $ = ne(ye, null);
|
|
880
|
+
f = On(s, $, { componentName: "" }), o.validateSchema = f, u[ye] = f, ve(ye, f), u.fox_validate = (A = !0) => {
|
|
881
|
+
const m = [];
|
|
882
|
+
let h = null;
|
|
883
|
+
if (A === !0)
|
|
884
|
+
h = { name: "*" };
|
|
885
|
+
else if (Array.isArray(A) && A.length > 0) {
|
|
886
|
+
const p = A;
|
|
887
|
+
h = {
|
|
888
|
+
name: (S) => p.indexOf(S) !== -1
|
|
889
|
+
};
|
|
890
|
+
} else if (A != null && typeof A == "object") {
|
|
891
|
+
const p = A;
|
|
892
|
+
if (Array.isArray(p.include) && p.include.length > 0) {
|
|
893
|
+
const S = p.include;
|
|
894
|
+
h = {
|
|
895
|
+
name: (R) => S.indexOf(R) !== -1
|
|
896
|
+
};
|
|
897
|
+
} else if (Array.isArray(p.exclude) && p.exclude.length > 0) {
|
|
898
|
+
const S = p.exclude;
|
|
899
|
+
h = {
|
|
900
|
+
name: (R) => S.indexOf(R) === -1
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
if (h) {
|
|
905
|
+
const p = i?.emitToChildren(h, "fox_validate", !1);
|
|
906
|
+
p && Reflect.apply([].push, m, p);
|
|
907
|
+
}
|
|
908
|
+
return m.length == 1 ? m[0] : m.length > 1 ? Promise.all(m).then((p) => {
|
|
909
|
+
let S = [];
|
|
910
|
+
return p.forEach((R) => {
|
|
911
|
+
R.pass === !1 && Array.isArray(R.errors) && (S = [...S, ...R.errors]);
|
|
912
|
+
}), S.length > 0 ? {
|
|
913
|
+
pass: !1,
|
|
914
|
+
errors: S
|
|
915
|
+
} : {
|
|
916
|
+
pass: !0
|
|
917
|
+
};
|
|
918
|
+
}) : Promise.resolve({
|
|
919
|
+
pass: !0
|
|
920
|
+
});
|
|
921
|
+
}, u.fox_setNameValidateRules = (A, m = !0) => {
|
|
922
|
+
if (m) {
|
|
923
|
+
const h = {
|
|
924
|
+
name: (p) => Reflect.ownKeys(A).includes(p)
|
|
925
|
+
};
|
|
926
|
+
i?.emitToChildren(h, "fox_setNameValidateRules", A, !1);
|
|
927
|
+
}
|
|
928
|
+
}, u.fox_clearValidate = (A = !0) => {
|
|
929
|
+
let m = null;
|
|
930
|
+
if (A === !0)
|
|
931
|
+
m = { name: "*" };
|
|
932
|
+
else if (Array.isArray(A) && A.length > 0) {
|
|
933
|
+
const h = A;
|
|
934
|
+
m = {
|
|
935
|
+
name: (p) => h.indexOf(p) !== -1
|
|
936
|
+
};
|
|
937
|
+
} else if (A != null && typeof A == "object") {
|
|
938
|
+
const h = A;
|
|
939
|
+
if (Array.isArray(h.include) && h.include.length > 0) {
|
|
940
|
+
const p = h.include;
|
|
941
|
+
m = {
|
|
942
|
+
name: (S) => p.indexOf(S) !== -1
|
|
943
|
+
};
|
|
944
|
+
} else if (Array.isArray(h.exclude) && h.exclude.length > 0) {
|
|
945
|
+
const p = h.exclude;
|
|
946
|
+
m = {
|
|
947
|
+
name: (S) => p.indexOf(S) === -1
|
|
948
|
+
};
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
m && i?.emitToChildren(m, "fox_clearValidate", !1);
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
return qe(() => {
|
|
955
|
+
o.destroy(), u[Ae] = void 0, i !== null && (i.destroy(), u[z] = void 0), f !== null && (f.destroy(), u[ye] = void 0);
|
|
956
|
+
}), o;
|
|
957
|
+
}
|
|
958
|
+
function Ce(e, t, n) {
|
|
959
|
+
const r = ie(), s = t ?? "", a = ne(z, null), l = Sn(r, a, s, n), o = r?.proxy;
|
|
960
|
+
o[z] = l, ve(z, l), o.fox_broadcast = (m, h, ...p) => Reflect.apply(l.emit, l, [m, h, ...p]);
|
|
961
|
+
const u = ne(ye, null);
|
|
962
|
+
e.fieldName = e.fieldName ?? s;
|
|
963
|
+
const i = On(r, u, e);
|
|
964
|
+
o[ye] = i, ve(ye, i), o.fox_validate = (m = null) => {
|
|
965
|
+
const h = [];
|
|
966
|
+
if (!Array.isArray(m) || m.indexOf(s) !== -1) {
|
|
967
|
+
const S = i?.validate();
|
|
968
|
+
h.push(S);
|
|
969
|
+
}
|
|
970
|
+
let p = null;
|
|
971
|
+
if (m === !0)
|
|
972
|
+
p = { name: "*" };
|
|
973
|
+
else if (Array.isArray(m) && m.length > 0) {
|
|
974
|
+
const S = m;
|
|
975
|
+
p = {
|
|
976
|
+
name: (R) => S.indexOf(R) !== -1
|
|
977
|
+
};
|
|
978
|
+
} else if (m != null && typeof m == "object") {
|
|
979
|
+
const S = m;
|
|
980
|
+
if (Array.isArray(S.include) && S.include.length > 0) {
|
|
981
|
+
const R = S.include;
|
|
982
|
+
p = {
|
|
983
|
+
name: (V) => R.indexOf(V) !== -1
|
|
984
|
+
};
|
|
985
|
+
} else if (Array.isArray(S.exclude) && S.exclude.length > 0) {
|
|
986
|
+
const R = S.exclude;
|
|
987
|
+
p = {
|
|
988
|
+
name: (V) => R.indexOf(V) === -1
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
if (p) {
|
|
993
|
+
const S = l.emitToChildren(p, "fox_validate", !1);
|
|
994
|
+
Reflect.apply([].push, h, S);
|
|
995
|
+
}
|
|
996
|
+
return h.length == 1 ? h[0] : h.length > 1 ? Promise.all(h).then((S) => {
|
|
997
|
+
let R = [];
|
|
998
|
+
return S.forEach((V) => {
|
|
999
|
+
V.pass === !1 && Array.isArray(V.errors) && (R = [...R, ...V.errors]);
|
|
1000
|
+
}), R.length > 0 ? {
|
|
1001
|
+
pass: !1,
|
|
1002
|
+
errors: R
|
|
1003
|
+
} : {
|
|
1004
|
+
pass: !0
|
|
1005
|
+
};
|
|
1006
|
+
}) : Promise.resolve({
|
|
1007
|
+
pass: !0
|
|
1008
|
+
});
|
|
1009
|
+
}, o.fox_setValidateRule = (m) => i?.setRule(m), o.fox_setNameValidateRules = (m, h = !1) => {
|
|
1010
|
+
const p = m[s];
|
|
1011
|
+
if (p && i?.setRule(p), h) {
|
|
1012
|
+
const S = {
|
|
1013
|
+
name: (R) => Reflect.ownKeys(m).includes(R)
|
|
1014
|
+
};
|
|
1015
|
+
l.emitToChildren(S, "fox_setNameValidateRules", m, !1);
|
|
1016
|
+
}
|
|
1017
|
+
}, o.fox_clearValidate = (m = null) => {
|
|
1018
|
+
(!Array.isArray(m) || m.indexOf(t ?? "") !== -1) && i?.clear();
|
|
1019
|
+
let h = null;
|
|
1020
|
+
if (m === !0)
|
|
1021
|
+
h = { name: "*" };
|
|
1022
|
+
else if (Array.isArray(m) && m.length > 0) {
|
|
1023
|
+
const p = m;
|
|
1024
|
+
h = {
|
|
1025
|
+
name: (S) => p.indexOf(S) !== -1
|
|
1026
|
+
};
|
|
1027
|
+
} else if (m != null && typeof m == "object") {
|
|
1028
|
+
const p = m;
|
|
1029
|
+
if (Array.isArray(p.include) && p.include.length > 0) {
|
|
1030
|
+
const S = p.include;
|
|
1031
|
+
h = {
|
|
1032
|
+
name: (R) => S.indexOf(R) !== -1
|
|
1033
|
+
};
|
|
1034
|
+
} else if (Array.isArray(p.exclude) && p.exclude.length > 0) {
|
|
1035
|
+
const S = p.exclude;
|
|
1036
|
+
h = {
|
|
1037
|
+
name: (R) => S.indexOf(R) === -1
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
h && l.emitToChildren(h, "fox_clearValidate", !1);
|
|
1042
|
+
};
|
|
1043
|
+
const f = new zs(o);
|
|
1044
|
+
o[Gt] = f;
|
|
1045
|
+
const c = Pn((m = "validate") => {
|
|
1046
|
+
m === "reset" ? i.clear() : i.validate();
|
|
1047
|
+
}, 60);
|
|
1048
|
+
return (Array.isArray(e.validateCheckEvents) ? e.validateCheckEvents : Ys()).forEach((m) => {
|
|
1049
|
+
f.on(m, (h) => {
|
|
1050
|
+
c("validate");
|
|
1051
|
+
});
|
|
1052
|
+
}), (Array.isArray(e.validateResetEvents) ? e.validateResetEvents : Ks()).forEach((m) => {
|
|
1053
|
+
f.on(m, (h) => {
|
|
1054
|
+
c("reset");
|
|
1055
|
+
});
|
|
1056
|
+
}), qe(() => {
|
|
1057
|
+
l.destroy(), o[z] = void 0, i.destroy(), o[ye] = void 0, f.destroy(), o[Gt] = void 0;
|
|
1058
|
+
}), {
|
|
1059
|
+
broadcast: l,
|
|
1060
|
+
validateSchema: i,
|
|
1061
|
+
emitEvent: (m, ...h) => {
|
|
1062
|
+
Reflect.apply(f.emit, f, [m, ...h]);
|
|
1063
|
+
},
|
|
1064
|
+
onEvent: (m, h) => {
|
|
1065
|
+
Reflect.apply(f.on, f, [h]);
|
|
1066
|
+
},
|
|
1067
|
+
offEvent: (m, h) => {
|
|
1068
|
+
Reflect.apply(f.off, f, [h]);
|
|
1069
|
+
}
|
|
1070
|
+
};
|
|
1071
|
+
}
|
|
1072
|
+
const Se = (e) => e ? `${U(e)}px` : "";
|
|
1073
|
+
function U(e, t = -1) {
|
|
1074
|
+
if (typeof e == "number")
|
|
1075
|
+
return e < 1 ? e * t : e;
|
|
1076
|
+
if (e = e.trim().toLocaleLowerCase(), e.length === 0)
|
|
1077
|
+
return 0;
|
|
1078
|
+
let n = e.indexOf("px");
|
|
1079
|
+
if (n !== -1)
|
|
1080
|
+
return Number(e.substring(0, n));
|
|
1081
|
+
if (n = e.indexOf("rem"), n !== -1) {
|
|
1082
|
+
let s = Number(e.substring(0, n)), a = 1;
|
|
1083
|
+
if (rt) {
|
|
1084
|
+
const { fontSize: l } = window.getComputedStyle(document.documentElement, null), o = l.indexOf("px");
|
|
1085
|
+
o > 0 && (a = Number(l.substring(0, o)));
|
|
1086
|
+
}
|
|
1087
|
+
return s *= a, s;
|
|
1088
|
+
}
|
|
1089
|
+
if (n = e.indexOf("%"), n !== -1)
|
|
1090
|
+
return Number(e.substring(0, n)) * t;
|
|
1091
|
+
const r = Number(e);
|
|
1092
|
+
return isNaN(r) ? 0 : r;
|
|
1093
|
+
}
|
|
1094
|
+
const be = "PageStateKey";
|
|
1095
|
+
function ce(e) {
|
|
1096
|
+
const t = {
|
|
1097
|
+
top: null,
|
|
1098
|
+
left: null,
|
|
1099
|
+
bottom: null,
|
|
1100
|
+
right: null
|
|
1101
|
+
};
|
|
1102
|
+
return e && (e.top !== null && e.top !== void 0 && (t.top = U(e.top)), e.left !== null && e.left !== void 0 && (t.left = U(e.left)), e.bottom !== null && e.bottom !== void 0 && (t.bottom = U(e.bottom)), e.right !== null && e.right !== void 0 && (t.right = U(e.right))), t;
|
|
1103
|
+
}
|
|
1104
|
+
function zt(e, t, n = {}, r = !0, s = -1, a = -1, l = 0, o = 0) {
|
|
1105
|
+
e.headerHeight = U(n.headerHeight ?? t.headerHeight), e.headerPadding = ce(n.headerPadding ?? t.headerPadding), e.footerHeight = U(n.footerHeight ?? t.footerHeight), e.footerPadding = ce(n.footerPadding ?? t.footerPadding), e.contentPadding = ce(n.contentPadding ?? t.contentPadding), r && (e.height = U(n.height ?? t.height, a) - U(l, a) - U(o, a), e.width = U(n.width ?? t.width, s));
|
|
1106
|
+
}
|
|
1107
|
+
function Zs(e, t = {}) {
|
|
1108
|
+
const n = {
|
|
1109
|
+
top: null,
|
|
1110
|
+
left: null,
|
|
1111
|
+
bottom: null,
|
|
1112
|
+
right: null
|
|
1113
|
+
}, r = {
|
|
1114
|
+
width: 0,
|
|
1115
|
+
height: 0,
|
|
1116
|
+
headerHeight: 0,
|
|
1117
|
+
headerPadding: { ...n },
|
|
1118
|
+
footerHeight: 0,
|
|
1119
|
+
footerPadding: { ...n },
|
|
1120
|
+
contentPadding: { ...n },
|
|
1121
|
+
contentHeight: null,
|
|
1122
|
+
safeAreaTop: 0,
|
|
1123
|
+
safeAreaBottom: 0,
|
|
1124
|
+
safeAreaLeft: 0,
|
|
1125
|
+
safeAreaRight: 0,
|
|
1126
|
+
headerMounted: !1,
|
|
1127
|
+
footerMounted: !1
|
|
1128
|
+
}, s = Object.assign(e.get("safeAreaInset") ?? {}, t.safeAreaInset ?? {});
|
|
1129
|
+
s && (r.safeAreaTop = U(s.top), r.safeAreaBottom = U(s.bottom), r.safeAreaLeft = U(s.left), r.safeAreaRight = U(s.right));
|
|
1130
|
+
const a = e.get("pageLayout");
|
|
1131
|
+
if (!a)
|
|
1132
|
+
return null;
|
|
1133
|
+
const l = e.get("rootWidth") ?? -1, o = e.get("rootHeight") ?? -1, u = e.get("headerBarHeight") ?? 0, i = e.get("footerBarHeight") ?? 0;
|
|
1134
|
+
zt(r, a, t, !0, l, o, u, i);
|
|
1135
|
+
const f = Pt(r), c = e.getForParent(be);
|
|
1136
|
+
c && (r.height = bt(e, c), r.width = $t(e, c), se(
|
|
1137
|
+
[
|
|
1138
|
+
() => c.height,
|
|
1139
|
+
() => c.width,
|
|
1140
|
+
() => c.contentPadding,
|
|
1141
|
+
() => c.headerMounted,
|
|
1142
|
+
() => c.footerMounted
|
|
1143
|
+
],
|
|
1144
|
+
() => {
|
|
1145
|
+
f.height = bt(e, c), f.width = $t(e, c);
|
|
1146
|
+
}
|
|
1147
|
+
));
|
|
1148
|
+
const $ = !c;
|
|
1149
|
+
return se(
|
|
1150
|
+
[
|
|
1151
|
+
() => e.get("pageLayout"),
|
|
1152
|
+
() => e.get("rootWidth"),
|
|
1153
|
+
() => e.get("rootHeight"),
|
|
1154
|
+
() => e.get("headerBarHeight"),
|
|
1155
|
+
() => e.get("footerBarHeight")
|
|
1156
|
+
],
|
|
1157
|
+
([A, m = -1, h = -1, p = 0, S = 0]) => {
|
|
1158
|
+
zt(
|
|
1159
|
+
f,
|
|
1160
|
+
A,
|
|
1161
|
+
t,
|
|
1162
|
+
$,
|
|
1163
|
+
m,
|
|
1164
|
+
h,
|
|
1165
|
+
p,
|
|
1166
|
+
S
|
|
1167
|
+
);
|
|
1168
|
+
}
|
|
1169
|
+
), e.set(be, f), f;
|
|
1170
|
+
}
|
|
1171
|
+
function It(e) {
|
|
1172
|
+
return e.get(be);
|
|
1173
|
+
}
|
|
1174
|
+
function Vt(e, t) {
|
|
1175
|
+
return t = t ?? e.get(be), t && t.headerMounted ? t.headerHeight + t.safeAreaTop : 0;
|
|
1176
|
+
}
|
|
1177
|
+
function Dt(e, t) {
|
|
1178
|
+
return t = t ?? e.get(be), t && t.footerMounted ? t.footerHeight + t.safeAreaBottom : 0;
|
|
1179
|
+
}
|
|
1180
|
+
function bt(e, t) {
|
|
1181
|
+
if (t = t ?? e.get(be), t) {
|
|
1182
|
+
const n = Vt(e, t), r = Dt(e, t);
|
|
1183
|
+
return t.height - n - r - (t.contentPadding.top ?? 0) - (t.contentPadding.bottom ?? 0);
|
|
1184
|
+
}
|
|
1185
|
+
return 0;
|
|
1186
|
+
}
|
|
1187
|
+
function $t(e, t) {
|
|
1188
|
+
return t = t ?? e.get(be), t ? t.width - (t.contentPadding.left ?? 0) - (t.contentPadding.right ?? 0) : 0;
|
|
1189
|
+
}
|
|
1190
|
+
function _i(e, t) {
|
|
1191
|
+
const n = e.get("isInnerPage");
|
|
1192
|
+
return typeof n == "function" ? Reflect.apply(n, {}, [t, e]) : !1;
|
|
1193
|
+
}
|
|
1194
|
+
function Li(e) {
|
|
1195
|
+
return !!e.getForParent(be);
|
|
1196
|
+
}
|
|
1197
|
+
var wt = /* @__PURE__ */ ((e) => (e[e.Parent = 0] = "Parent", e[e.Near = 1] = "Near", e))(wt || {});
|
|
1198
|
+
function dt(e, t) {
|
|
1199
|
+
return e == null ? !1 : typeof t == "function" ? t(e) : !0;
|
|
1200
|
+
}
|
|
1201
|
+
function Qe(e, t, n = 1, r) {
|
|
1202
|
+
const s = Te();
|
|
1203
|
+
return s == null ? e : n === 0 ? M(() => {
|
|
1204
|
+
const a = s.getAll(t);
|
|
1205
|
+
for (let o = a.length - 1; o >= 0; o--) {
|
|
1206
|
+
const u = a[o];
|
|
1207
|
+
if (dt(u, r))
|
|
1208
|
+
return u;
|
|
1209
|
+
}
|
|
1210
|
+
const l = e.value;
|
|
1211
|
+
return dt(l, r) ? l : null;
|
|
1212
|
+
}) : M(() => {
|
|
1213
|
+
const a = e.value;
|
|
1214
|
+
return dt(a, r) ? a : s?.get(t);
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
function Ke(e) {
|
|
1218
|
+
return Qe(e, "readonly", 0, function(n) {
|
|
1219
|
+
return nt(n);
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
function Ge(e) {
|
|
1223
|
+
return Qe(e, "disabled", 0, function(n) {
|
|
1224
|
+
return nt(n);
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
function fe(e, t = "modelValue", n) {
|
|
1228
|
+
const r = De(e, t);
|
|
1229
|
+
let s = r.value;
|
|
1230
|
+
typeof n == "function" && (s = n(r.value));
|
|
1231
|
+
const a = B(s);
|
|
1232
|
+
return se(r, (l) => {
|
|
1233
|
+
if (typeof n == "function") {
|
|
1234
|
+
const o = n(l);
|
|
1235
|
+
o !== a.value && (a.value = o);
|
|
1236
|
+
} else
|
|
1237
|
+
l !== a.value && (a.value = l);
|
|
1238
|
+
}), a;
|
|
1239
|
+
}
|
|
1240
|
+
const Rn = /* @__PURE__ */ new Map(), et = /* @__PURE__ */ new Map();
|
|
1241
|
+
let xt = null;
|
|
1242
|
+
function Xs(e) {
|
|
1243
|
+
xt = e;
|
|
1244
|
+
}
|
|
1245
|
+
function Mn(e, t, n) {
|
|
1246
|
+
if (n) {
|
|
1247
|
+
let r = et.get(n);
|
|
1248
|
+
r || (r = /* @__PURE__ */ new Map(), et.set(n, r)), r.set(e, t);
|
|
1249
|
+
} else
|
|
1250
|
+
Rn.set(e, t);
|
|
1251
|
+
}
|
|
1252
|
+
function _t(e, t, n) {
|
|
1253
|
+
!n && xt && (n = xt(e) ?? void 0);
|
|
1254
|
+
let r = null;
|
|
1255
|
+
if (n) {
|
|
1256
|
+
let s = et.get(n);
|
|
1257
|
+
s && (r = s.get(t));
|
|
1258
|
+
}
|
|
1259
|
+
return r || (r = Rn.get(t)), r;
|
|
1260
|
+
}
|
|
1261
|
+
function Js(e, t) {
|
|
1262
|
+
for (let n in e) {
|
|
1263
|
+
const r = e[n];
|
|
1264
|
+
Mn(n, r, t);
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
function Qs(e) {
|
|
1268
|
+
et.delete(e);
|
|
1269
|
+
}
|
|
1270
|
+
function ea() {
|
|
1271
|
+
return {
|
|
1272
|
+
top: 0,
|
|
1273
|
+
left: 0,
|
|
1274
|
+
bottom: 0,
|
|
1275
|
+
right: 0
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
function ta() {
|
|
1279
|
+
if (rt) {
|
|
1280
|
+
const e = document.documentElement.clientWidth || document.body.clientWidth, t = document.documentElement.clientHeight || document.body.clientHeight;
|
|
1281
|
+
return {
|
|
1282
|
+
width: e,
|
|
1283
|
+
height: t,
|
|
1284
|
+
headerHeight: 44,
|
|
1285
|
+
footerHeight: 44
|
|
1286
|
+
};
|
|
1287
|
+
} else
|
|
1288
|
+
return {
|
|
1289
|
+
width: "100%",
|
|
1290
|
+
height: "100%",
|
|
1291
|
+
headerHeight: 44,
|
|
1292
|
+
footerHeight: 44
|
|
1293
|
+
};
|
|
1294
|
+
}
|
|
1295
|
+
class na {
|
|
1296
|
+
packages;
|
|
1297
|
+
installers;
|
|
1298
|
+
_version;
|
|
1299
|
+
get version() {
|
|
1300
|
+
return this._version;
|
|
1301
|
+
}
|
|
1302
|
+
constructor(t, n, r) {
|
|
1303
|
+
this.packages = t, this.installers = n, this._version = r;
|
|
1304
|
+
}
|
|
1305
|
+
install(t, n = {}) {
|
|
1306
|
+
this.packages.forEach((a) => {
|
|
1307
|
+
a.install ? t.use(a) : a.name && t.component(a.name, a);
|
|
1308
|
+
}), this.installers.forEach((a) => {
|
|
1309
|
+
a(t);
|
|
1310
|
+
});
|
|
1311
|
+
const r = ["safeAreaInset", "pageLayout", "headerBarHeight", "footerBarHeight"], s = Ze();
|
|
1312
|
+
if (this.initPageLayout(n, s), n.autoAdjustPageLayout !== !1 && window.ResizeObserver) {
|
|
1313
|
+
const a = Pn(() => {
|
|
1314
|
+
const o = { ...n }, u = document.documentElement.clientWidth || document.body.clientWidth, i = document.documentElement.clientHeight || document.body.clientHeight;
|
|
1315
|
+
o.width = u, o.height = i, this.initPageLayout(o, s);
|
|
1316
|
+
}, 150);
|
|
1317
|
+
new window.ResizeObserver(a).observe(window.document.body);
|
|
1318
|
+
}
|
|
1319
|
+
for (const a in n)
|
|
1320
|
+
r.indexOf(a) === -1 && s.set(a, n[a]);
|
|
1321
|
+
}
|
|
1322
|
+
initPageLayout(t, n) {
|
|
1323
|
+
const r = Bt({}, ea(), t.safeAreaInset), s = Bt({}, ta(), t.pageLayout);
|
|
1324
|
+
n = n ?? Ze(), n.set("safeAreaInset", r), n.set("headerBarHeight", t.headerBarHeight ?? 0), n.set("footerBarHeight", t.footerBarHeight ?? 0), n.set("pageLayout", s), n.set("rootWidth", s.width), n.set("rootHeight", s.height);
|
|
1325
|
+
}
|
|
1326
|
+
setScopeGetter(t) {
|
|
1327
|
+
Xs(t);
|
|
1328
|
+
}
|
|
1329
|
+
setAPI(t, n, r) {
|
|
1330
|
+
Mn(t, n, r);
|
|
1331
|
+
}
|
|
1332
|
+
getAPI(t, n, r) {
|
|
1333
|
+
return _t(t, n, r);
|
|
1334
|
+
}
|
|
1335
|
+
batchSetAPI(t, n) {
|
|
1336
|
+
Js(t, n);
|
|
1337
|
+
}
|
|
1338
|
+
clearScopeAPI(t) {
|
|
1339
|
+
Qs(t);
|
|
1340
|
+
}
|
|
1341
|
+
getRootDomain() {
|
|
1342
|
+
return Ze();
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
const ra = [
|
|
1346
|
+
sr,
|
|
1347
|
+
ar,
|
|
1348
|
+
or,
|
|
1349
|
+
ir,
|
|
1350
|
+
lr,
|
|
1351
|
+
ur,
|
|
1352
|
+
cr,
|
|
1353
|
+
fr,
|
|
1354
|
+
dr,
|
|
1355
|
+
hr,
|
|
1356
|
+
gr,
|
|
1357
|
+
pr,
|
|
1358
|
+
mr,
|
|
1359
|
+
yr,
|
|
1360
|
+
vr,
|
|
1361
|
+
br,
|
|
1362
|
+
$r,
|
|
1363
|
+
wr,
|
|
1364
|
+
xr,
|
|
1365
|
+
Sr,
|
|
1366
|
+
Er,
|
|
1367
|
+
Ar,
|
|
1368
|
+
Nr,
|
|
1369
|
+
Or,
|
|
1370
|
+
Pr,
|
|
1371
|
+
Tr,
|
|
1372
|
+
Cr,
|
|
1373
|
+
Rr,
|
|
1374
|
+
Mr,
|
|
1375
|
+
Ir,
|
|
1376
|
+
Vr,
|
|
1377
|
+
Dr,
|
|
1378
|
+
fn,
|
|
1379
|
+
_r,
|
|
1380
|
+
Lr,
|
|
1381
|
+
dn,
|
|
1382
|
+
Hr,
|
|
1383
|
+
qr,
|
|
1384
|
+
kr,
|
|
1385
|
+
Br,
|
|
1386
|
+
jr,
|
|
1387
|
+
Fr,
|
|
1388
|
+
Wr,
|
|
1389
|
+
Yr,
|
|
1390
|
+
Kr,
|
|
1391
|
+
Gr,
|
|
1392
|
+
zr,
|
|
1393
|
+
hn,
|
|
1394
|
+
Ur,
|
|
1395
|
+
Zr,
|
|
1396
|
+
Xr,
|
|
1397
|
+
Jr,
|
|
1398
|
+
Qr,
|
|
1399
|
+
es,
|
|
1400
|
+
ts,
|
|
1401
|
+
gn,
|
|
1402
|
+
ns,
|
|
1403
|
+
rs,
|
|
1404
|
+
ss,
|
|
1405
|
+
as,
|
|
1406
|
+
os,
|
|
1407
|
+
is,
|
|
1408
|
+
ls,
|
|
1409
|
+
us,
|
|
1410
|
+
cs,
|
|
1411
|
+
fs,
|
|
1412
|
+
ds,
|
|
1413
|
+
pn,
|
|
1414
|
+
mn,
|
|
1415
|
+
yn,
|
|
1416
|
+
hs,
|
|
1417
|
+
gs,
|
|
1418
|
+
ps,
|
|
1419
|
+
ms,
|
|
1420
|
+
ys,
|
|
1421
|
+
vs,
|
|
1422
|
+
bs,
|
|
1423
|
+
$s,
|
|
1424
|
+
vn,
|
|
1425
|
+
ws,
|
|
1426
|
+
xs,
|
|
1427
|
+
Ss,
|
|
1428
|
+
Es,
|
|
1429
|
+
As,
|
|
1430
|
+
bn,
|
|
1431
|
+
$n,
|
|
1432
|
+
Ns,
|
|
1433
|
+
Os,
|
|
1434
|
+
Ps,
|
|
1435
|
+
Ts,
|
|
1436
|
+
Cs,
|
|
1437
|
+
Rs,
|
|
1438
|
+
Ms,
|
|
1439
|
+
Is
|
|
1440
|
+
], sa = [
|
|
1441
|
+
Vs,
|
|
1442
|
+
Ds,
|
|
1443
|
+
_s,
|
|
1444
|
+
Ls,
|
|
1445
|
+
Hs,
|
|
1446
|
+
qs
|
|
1447
|
+
], aa = (e) => {
|
|
1448
|
+
ra.forEach((t) => {
|
|
1449
|
+
let n = t.name;
|
|
1450
|
+
typeof n == "string" ? (n = `Fox${n.slice(2)}`, e.component(n, t)) : e.use(t);
|
|
1451
|
+
}), sa.forEach((t) => {
|
|
1452
|
+
e.use(t);
|
|
1453
|
+
});
|
|
1454
|
+
};
|
|
1455
|
+
function Z(e) {
|
|
1456
|
+
const t = "fox-" + e;
|
|
1457
|
+
return {
|
|
1458
|
+
componentName: t,
|
|
1459
|
+
scope: e.replace("-", ""),
|
|
1460
|
+
create(n) {
|
|
1461
|
+
return n.baseName = e, n.name = t, n.install = (r) => {
|
|
1462
|
+
r.component(n.name, n);
|
|
1463
|
+
}, qt(n);
|
|
1464
|
+
},
|
|
1465
|
+
createDemo(n) {
|
|
1466
|
+
return n.baseName = e, n.name = "demo-" + e, qt(n);
|
|
1467
|
+
}
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1470
|
+
const de = {
|
|
1471
|
+
disabled: {
|
|
1472
|
+
type: [Boolean, String],
|
|
1473
|
+
required: !1
|
|
1474
|
+
},
|
|
1475
|
+
readonly: {
|
|
1476
|
+
type: [Boolean, String],
|
|
1477
|
+
required: !1
|
|
1478
|
+
},
|
|
1479
|
+
labelPosition: {
|
|
1480
|
+
type: String,
|
|
1481
|
+
required: !1
|
|
1482
|
+
},
|
|
1483
|
+
labelWidth: {
|
|
1484
|
+
type: [String, Number],
|
|
1485
|
+
required: !1
|
|
1486
|
+
},
|
|
1487
|
+
hasBorder: {
|
|
1488
|
+
type: Boolean,
|
|
1489
|
+
default: !0
|
|
1490
|
+
}
|
|
1491
|
+
}, Re = {
|
|
1492
|
+
prop: {
|
|
1493
|
+
type: String,
|
|
1494
|
+
required: !1
|
|
1495
|
+
},
|
|
1496
|
+
label: {
|
|
1497
|
+
type: String,
|
|
1498
|
+
required: !1
|
|
1499
|
+
},
|
|
1500
|
+
labelPosition: {
|
|
1501
|
+
type: String,
|
|
1502
|
+
required: !1
|
|
1503
|
+
},
|
|
1504
|
+
labelWidth: {
|
|
1505
|
+
type: [String, Number],
|
|
1506
|
+
required: !1
|
|
1507
|
+
},
|
|
1508
|
+
isRequired: {
|
|
1509
|
+
type: [String, Boolean],
|
|
1510
|
+
required: !1,
|
|
1511
|
+
default: !1
|
|
1512
|
+
},
|
|
1513
|
+
span: {
|
|
1514
|
+
type: [Number, String],
|
|
1515
|
+
required: !1,
|
|
1516
|
+
default: 1
|
|
1517
|
+
},
|
|
1518
|
+
offset: {
|
|
1519
|
+
type: [Number],
|
|
1520
|
+
default: 0
|
|
1521
|
+
},
|
|
1522
|
+
errorTip: {
|
|
1523
|
+
type: String,
|
|
1524
|
+
required: !1
|
|
1525
|
+
},
|
|
1526
|
+
errorIcon: {
|
|
1527
|
+
type: Object,
|
|
1528
|
+
required: !1
|
|
1529
|
+
},
|
|
1530
|
+
errorClass: {
|
|
1531
|
+
type: String,
|
|
1532
|
+
required: !1
|
|
1533
|
+
},
|
|
1534
|
+
warnTip: {
|
|
1535
|
+
type: String,
|
|
1536
|
+
required: !1
|
|
1537
|
+
},
|
|
1538
|
+
warnIcon: {
|
|
1539
|
+
type: Object,
|
|
1540
|
+
required: !1
|
|
1541
|
+
},
|
|
1542
|
+
warnClass: {
|
|
1543
|
+
type: String,
|
|
1544
|
+
required: !1
|
|
1545
|
+
},
|
|
1546
|
+
infoTip: {
|
|
1547
|
+
type: String,
|
|
1548
|
+
required: !1
|
|
1549
|
+
},
|
|
1550
|
+
infoIcon: {
|
|
1551
|
+
type: Object,
|
|
1552
|
+
required: !1
|
|
1553
|
+
},
|
|
1554
|
+
infoClass: {
|
|
1555
|
+
type: String,
|
|
1556
|
+
required: !1
|
|
1557
|
+
},
|
|
1558
|
+
contentClass: {
|
|
1559
|
+
type: String,
|
|
1560
|
+
required: !1,
|
|
1561
|
+
default: "content--default"
|
|
1562
|
+
},
|
|
1563
|
+
contentStyle: {
|
|
1564
|
+
type: Object,
|
|
1565
|
+
required: !1,
|
|
1566
|
+
default: {}
|
|
1567
|
+
},
|
|
1568
|
+
hintType: {
|
|
1569
|
+
type: String,
|
|
1570
|
+
required: !1,
|
|
1571
|
+
default: "text"
|
|
1572
|
+
},
|
|
1573
|
+
hintText: {
|
|
1574
|
+
type: [String, Number],
|
|
1575
|
+
required: !1
|
|
1576
|
+
},
|
|
1577
|
+
hintVisible: {
|
|
1578
|
+
type: [Boolean, String],
|
|
1579
|
+
required: !1,
|
|
1580
|
+
default: !1
|
|
1581
|
+
},
|
|
1582
|
+
hintProps: {
|
|
1583
|
+
type: Object,
|
|
1584
|
+
required: !1,
|
|
1585
|
+
default: {}
|
|
1586
|
+
},
|
|
1587
|
+
hasBorder: {
|
|
1588
|
+
type: Boolean,
|
|
1589
|
+
default: !0
|
|
1590
|
+
}
|
|
1591
|
+
}, In = {
|
|
1592
|
+
column: {
|
|
1593
|
+
type: [String, Number],
|
|
1594
|
+
required: !1
|
|
1595
|
+
},
|
|
1596
|
+
gutter: {
|
|
1597
|
+
type: [String, Number],
|
|
1598
|
+
required: !1
|
|
1599
|
+
},
|
|
1600
|
+
justify: {
|
|
1601
|
+
type: [String],
|
|
1602
|
+
required: !1,
|
|
1603
|
+
default: "start"
|
|
1604
|
+
},
|
|
1605
|
+
align: {
|
|
1606
|
+
type: [String],
|
|
1607
|
+
required: !1,
|
|
1608
|
+
default: "start"
|
|
1609
|
+
},
|
|
1610
|
+
flexWrap: {
|
|
1611
|
+
type: [String],
|
|
1612
|
+
default: "nowrap"
|
|
1613
|
+
}
|
|
1614
|
+
}, Vn = {
|
|
1615
|
+
name: {
|
|
1616
|
+
type: String,
|
|
1617
|
+
required: !1
|
|
1618
|
+
},
|
|
1619
|
+
rules: {
|
|
1620
|
+
type: [Object],
|
|
1621
|
+
required: !1
|
|
1622
|
+
},
|
|
1623
|
+
type: {
|
|
1624
|
+
type: [String],
|
|
1625
|
+
required: !1,
|
|
1626
|
+
default: "flex"
|
|
1627
|
+
},
|
|
1628
|
+
title: {
|
|
1629
|
+
type: String,
|
|
1630
|
+
default: ""
|
|
1631
|
+
},
|
|
1632
|
+
span: {
|
|
1633
|
+
type: [Number, String],
|
|
1634
|
+
required: !1,
|
|
1635
|
+
default: 1
|
|
1636
|
+
},
|
|
1637
|
+
offset: {
|
|
1638
|
+
type: [Number],
|
|
1639
|
+
default: 0
|
|
1640
|
+
},
|
|
1641
|
+
autoLayout: {
|
|
1642
|
+
type: [Boolean],
|
|
1643
|
+
required: !1,
|
|
1644
|
+
default: !0
|
|
1645
|
+
},
|
|
1646
|
+
isWrap: {
|
|
1647
|
+
type: [Boolean],
|
|
1648
|
+
required: !1,
|
|
1649
|
+
default: !1
|
|
1650
|
+
}
|
|
1651
|
+
}, Dn = [];
|
|
1652
|
+
for (const e in Vn)
|
|
1653
|
+
Dn.push(e);
|
|
1654
|
+
function Me(e, t = null) {
|
|
1655
|
+
if (t || (t = ie()), t && t.proxy) {
|
|
1656
|
+
let n = t.proxy;
|
|
1657
|
+
Object.assign(n, e);
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
const oa = Symbol.for("InnerPageScopeKey"), ia = (e, t) => ({
|
|
1661
|
+
props: {
|
|
1662
|
+
...de,
|
|
1663
|
+
...In,
|
|
1664
|
+
name: {
|
|
1665
|
+
type: String,
|
|
1666
|
+
required: !1,
|
|
1667
|
+
default: ""
|
|
1668
|
+
},
|
|
1669
|
+
width: {
|
|
1670
|
+
type: [Number, String],
|
|
1671
|
+
required: !1
|
|
1672
|
+
},
|
|
1673
|
+
height: {
|
|
1674
|
+
type: [Number, String],
|
|
1675
|
+
required: !1
|
|
1676
|
+
},
|
|
1677
|
+
safeAreaInset: {
|
|
1678
|
+
type: Object,
|
|
1679
|
+
required: !1
|
|
1680
|
+
},
|
|
1681
|
+
contentPadding: {
|
|
1682
|
+
type: Object,
|
|
1683
|
+
required: !1
|
|
1684
|
+
},
|
|
1685
|
+
headerPadding: {
|
|
1686
|
+
type: Object,
|
|
1687
|
+
required: !1
|
|
1688
|
+
},
|
|
1689
|
+
footerPadding: {
|
|
1690
|
+
type: Object,
|
|
1691
|
+
required: !1
|
|
1692
|
+
},
|
|
1693
|
+
headerHeight: {
|
|
1694
|
+
type: [Number, String],
|
|
1695
|
+
required: !1
|
|
1696
|
+
},
|
|
1697
|
+
footerHeight: {
|
|
1698
|
+
type: [Number, String],
|
|
1699
|
+
required: !1
|
|
1700
|
+
},
|
|
1701
|
+
rules: {
|
|
1702
|
+
type: [Object],
|
|
1703
|
+
required: !1
|
|
1704
|
+
}
|
|
1705
|
+
},
|
|
1706
|
+
setup(n, r) {
|
|
1707
|
+
const s = Cn(n.name, n);
|
|
1708
|
+
if (s) {
|
|
1709
|
+
const i = Zs(s, n);
|
|
1710
|
+
Me({
|
|
1711
|
+
getPageContentHeight: () => bt(s, i),
|
|
1712
|
+
getPageContentWidth: () => $t(s, i),
|
|
1713
|
+
getPageHeaderHeight: () => Vt(s, i),
|
|
1714
|
+
getPageFooterHeight: () => Dt(s, i)
|
|
1715
|
+
});
|
|
1716
|
+
const f = ne(oa, !1);
|
|
1717
|
+
i && f && (i.contentHeight = "100%");
|
|
1718
|
+
}
|
|
1719
|
+
const a = M(() => ({
|
|
1720
|
+
[e]: !0
|
|
1721
|
+
})), l = M(() => ({})), o = ie(), u = (i) => {
|
|
1722
|
+
const f = o?.proxy;
|
|
1723
|
+
f && typeof f.fox_setNameValidateRules == "function" && f.fox_setNameValidateRules(i, !0);
|
|
1724
|
+
};
|
|
1725
|
+
return se(
|
|
1726
|
+
() => n.rules,
|
|
1727
|
+
(i, f) => {
|
|
1728
|
+
if (!i && !f)
|
|
1729
|
+
return;
|
|
1730
|
+
const c = oe(f), $ = oe(i), A = $ ? Reflect.ownKeys($) : [];
|
|
1731
|
+
(c ? Reflect.ownKeys(c) : []).forEach((h) => {
|
|
1732
|
+
A.includes(h) || ($[h] = []);
|
|
1733
|
+
}), u($);
|
|
1734
|
+
},
|
|
1735
|
+
{ deep: !0 }
|
|
1736
|
+
), gt(() => {
|
|
1737
|
+
if (n.rules) {
|
|
1738
|
+
const i = oe(n.rules);
|
|
1739
|
+
u(i);
|
|
1740
|
+
}
|
|
1741
|
+
}), {
|
|
1742
|
+
classes: a,
|
|
1743
|
+
styles: l
|
|
1744
|
+
};
|
|
1745
|
+
}
|
|
1746
|
+
}), { componentName: la, create: ua, scope: Hi } = Z("page"), ca = ua(ia(la));
|
|
1747
|
+
function fa(e, t, n, r, s, a) {
|
|
1748
|
+
return J(), ee("div", {
|
|
1749
|
+
class: K(e.classes),
|
|
1750
|
+
style: re(e.styles)
|
|
1751
|
+
}, [
|
|
1752
|
+
le(e.$slots, "default")
|
|
1753
|
+
], 6);
|
|
1754
|
+
}
|
|
1755
|
+
const Ie = (e, t) => {
|
|
1756
|
+
const n = e.__vccOpts || e;
|
|
1757
|
+
for (const [r, s] of t)
|
|
1758
|
+
n[r] = s;
|
|
1759
|
+
return n;
|
|
1760
|
+
}, da = /* @__PURE__ */ Ie(ca, [["render", fa]]), ha = (e, t) => ({
|
|
1761
|
+
props: {
|
|
1762
|
+
padding: {
|
|
1763
|
+
type: [Object],
|
|
1764
|
+
required: !1
|
|
1765
|
+
}
|
|
1766
|
+
},
|
|
1767
|
+
emits: [],
|
|
1768
|
+
setup(n, r) {
|
|
1769
|
+
const s = Te(), a = s ? It(s) : null;
|
|
1770
|
+
a && (a.headerMounted = !0);
|
|
1771
|
+
const l = M(() => ({
|
|
1772
|
+
[e]: !0
|
|
1773
|
+
})), o = M(() => {
|
|
1774
|
+
const i = {
|
|
1775
|
+
safeAreaTop: null,
|
|
1776
|
+
height: null,
|
|
1777
|
+
left: null,
|
|
1778
|
+
top: null,
|
|
1779
|
+
right: null,
|
|
1780
|
+
bottom: null
|
|
1781
|
+
};
|
|
1782
|
+
if (s && a) {
|
|
1783
|
+
const f = ce(n.padding ?? a.footerPadding);
|
|
1784
|
+
return Object.assign(i, f), i.height = a.headerHeight, i.safeAreaTop = a.safeAreaTop, i.safeAreaTop && (i.top = i.safeAreaTop + (f.top ?? 0), i.height = i.height + a.safeAreaTop), console.debug("[header] height", i.height), console.debug("[header] safeBottom", i.safeAreaTop), i;
|
|
1785
|
+
}
|
|
1786
|
+
if (n.padding) {
|
|
1787
|
+
const f = ce(n.padding);
|
|
1788
|
+
Object.assign(i, f);
|
|
1789
|
+
}
|
|
1790
|
+
return i;
|
|
1791
|
+
});
|
|
1792
|
+
qe(() => {
|
|
1793
|
+
a && (a.headerMounted = !1);
|
|
1794
|
+
});
|
|
1795
|
+
const u = M(() => {
|
|
1796
|
+
const i = {};
|
|
1797
|
+
return o.value.height && (i.height = `${o.value.height}px`), o.value.top && (i.paddingTop = `${o.value.top}px`), o.value.left && (i.paddingLeft = `${o.value.left}px`), o.value.right && (i.paddingRight = `${o.value.right}px`), o.value.bottom && (i.paddingBottom = `${o.value.bottom}px`), i;
|
|
1798
|
+
});
|
|
1799
|
+
return {
|
|
1800
|
+
classes: l,
|
|
1801
|
+
styles: u
|
|
1802
|
+
};
|
|
1803
|
+
}
|
|
1804
|
+
}), { componentName: ga, create: pa, scope: qi } = Z("header-bar"), ma = pa(ha(ga));
|
|
1805
|
+
function ya(e, t, n, r, s, a) {
|
|
1806
|
+
return J(), ee("div", {
|
|
1807
|
+
class: K(e.classes),
|
|
1808
|
+
style: re(e.styles)
|
|
1809
|
+
}, [
|
|
1810
|
+
le(e.$slots, "default")
|
|
1811
|
+
], 6);
|
|
1812
|
+
}
|
|
1813
|
+
const va = /* @__PURE__ */ Ie(ma, [["render", ya]]);
|
|
1814
|
+
function ba(e, t) {
|
|
1815
|
+
return {
|
|
1816
|
+
props: {
|
|
1817
|
+
padding: {
|
|
1818
|
+
type: [Object],
|
|
1819
|
+
required: !1
|
|
1820
|
+
},
|
|
1821
|
+
align: {
|
|
1822
|
+
type: String,
|
|
1823
|
+
required: !1,
|
|
1824
|
+
default: "center"
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1827
|
+
setup(n, r) {
|
|
1828
|
+
const s = Te(), a = s ? It(s) : null;
|
|
1829
|
+
a && (a.footerMounted = !0);
|
|
1830
|
+
const l = M(() => {
|
|
1831
|
+
const i = e;
|
|
1832
|
+
let f = e;
|
|
1833
|
+
return n.align === "left" ? f = `${f}__left` : n.align === "right" ? f = `${f}__right` : f = `${f}__center`, {
|
|
1834
|
+
[i]: !0,
|
|
1835
|
+
[f]: !0
|
|
1836
|
+
};
|
|
1837
|
+
}), o = M(() => {
|
|
1838
|
+
const i = {
|
|
1839
|
+
safeAreaBottom: null,
|
|
1840
|
+
height: null,
|
|
1841
|
+
left: null,
|
|
1842
|
+
top: null,
|
|
1843
|
+
right: null,
|
|
1844
|
+
bottom: null
|
|
1845
|
+
};
|
|
1846
|
+
if (s && a) {
|
|
1847
|
+
const f = ce(n.padding ?? a.footerPadding);
|
|
1848
|
+
return Object.assign(i, f), i.safeAreaBottom = a.safeAreaBottom, i.safeAreaBottom && (i.height = a.footerHeight + a.safeAreaBottom, i.bottom = i.safeAreaBottom + (f.bottom ?? 0)), console.debug("[footer] height", i.height), console.debug("[footer] safeAreaBottom", i.safeAreaBottom), i;
|
|
1849
|
+
}
|
|
1850
|
+
if (n.padding) {
|
|
1851
|
+
const f = ce(n.padding);
|
|
1852
|
+
Object.assign(i, f);
|
|
1853
|
+
}
|
|
1854
|
+
return i;
|
|
1855
|
+
});
|
|
1856
|
+
qe(() => {
|
|
1857
|
+
a && (a.footerMounted = !1);
|
|
1858
|
+
});
|
|
1859
|
+
const u = M(() => {
|
|
1860
|
+
const i = {};
|
|
1861
|
+
return o.value && (i.height = `${o.value.height}px`), o.value && (i.paddingTop = `${o.value.top}px`), o.value && (i.paddingLeft = `${o.value.left}px`), o.value && (i.paddingRight = `${o.value.right}px`), o.value && (i.paddingBottom = `${o.value.bottom}px`), i;
|
|
1862
|
+
});
|
|
1863
|
+
return {
|
|
1864
|
+
classes: l,
|
|
1865
|
+
styles: u
|
|
1866
|
+
};
|
|
1867
|
+
}
|
|
1868
|
+
};
|
|
1869
|
+
}
|
|
1870
|
+
const { componentName: $a, create: wa, scope: ki } = Z("footer-bar"), xa = wa(ba($a));
|
|
1871
|
+
function Sa(e, t, n, r, s, a) {
|
|
1872
|
+
return J(), ee("div", {
|
|
1873
|
+
class: K(e.classes),
|
|
1874
|
+
style: re(e.styles)
|
|
1875
|
+
}, [
|
|
1876
|
+
le(e.$slots, "default")
|
|
1877
|
+
], 6);
|
|
1878
|
+
}
|
|
1879
|
+
const Ea = /* @__PURE__ */ Ie(xa, [["render", Sa]]);
|
|
1880
|
+
function Aa(e, t) {
|
|
1881
|
+
return {
|
|
1882
|
+
props: {
|
|
1883
|
+
padding: {
|
|
1884
|
+
type: [Object],
|
|
1885
|
+
required: !1
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1888
|
+
setup(n) {
|
|
1889
|
+
const r = Te(), s = M(() => ({
|
|
1890
|
+
[e]: !0
|
|
1891
|
+
})), a = M(() => {
|
|
1892
|
+
const l = {};
|
|
1893
|
+
if (r) {
|
|
1894
|
+
const o = It(r);
|
|
1895
|
+
if (o) {
|
|
1896
|
+
if (n.padding) {
|
|
1897
|
+
const c = ce(n.padding);
|
|
1898
|
+
Object.assign(o.contentPadding, c);
|
|
1899
|
+
}
|
|
1900
|
+
const u = Vt(r, o), i = Dt(r, o);
|
|
1901
|
+
let f = "";
|
|
1902
|
+
if (o.contentHeight ? f = `${o.contentHeight}` : f = `${o.height}px`, console.debug("[content]page height:", f), console.debug("[content]header height:", u), console.debug("[content]footer height:", i), console.debug("[content]padding:", o.contentPadding), l.height = f, o.contentPadding.top || u > 0) {
|
|
1903
|
+
const c = (o && o.contentPadding && o.contentPadding.top) ?? 0;
|
|
1904
|
+
l.paddingTop = `${u + c}px`;
|
|
1905
|
+
}
|
|
1906
|
+
if (o.contentPadding.bottom || i > 0) {
|
|
1907
|
+
const c = (o && o.contentPadding && o.contentPadding.bottom) ?? 0;
|
|
1908
|
+
l.paddingBottom = `${i + c}px`;
|
|
1909
|
+
}
|
|
1910
|
+
return o.contentPadding.left && (l.paddingLeft = `${o.contentPadding.left}px`), o.contentPadding.right && (l.paddingRight = `${o.contentPadding.right}px`), l;
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
if (n.padding) {
|
|
1914
|
+
const o = ce(n.padding);
|
|
1915
|
+
o.left && (l.paddingLeft = `${o.left}px`), o.top && (l.paddingTop = `${o.top}px`), o.right && (l.paddingRight = `${o.right}px`), o.bottom && (l.paddingBottom = `${o.bottom}px`);
|
|
1916
|
+
}
|
|
1917
|
+
return l;
|
|
1918
|
+
});
|
|
1919
|
+
return {
|
|
1920
|
+
classes: s,
|
|
1921
|
+
styles: a
|
|
1922
|
+
};
|
|
1923
|
+
}
|
|
1924
|
+
};
|
|
1925
|
+
}
|
|
1926
|
+
const { componentName: Na, create: Oa, scope: Bi } = Z("content"), Pa = Oa(Aa(Na));
|
|
1927
|
+
function Ta(e, t, n, r, s, a) {
|
|
1928
|
+
return J(), ee("div", {
|
|
1929
|
+
class: K(e.classes),
|
|
1930
|
+
style: re(e.styles)
|
|
1931
|
+
}, [
|
|
1932
|
+
le(e.$slots, "default")
|
|
1933
|
+
], 6);
|
|
1934
|
+
}
|
|
1935
|
+
const Ca = /* @__PURE__ */ Ie(Pa, [["render", Ta]]), tt = "GroupStateKey", _n = Symbol.for("GroupScopeKey");
|
|
1936
|
+
function st() {
|
|
1937
|
+
return ne(_n, !1);
|
|
1938
|
+
}
|
|
1939
|
+
function at(e = !0) {
|
|
1940
|
+
ve(_n, e);
|
|
1941
|
+
}
|
|
1942
|
+
function Ra(e, t = {}) {
|
|
1943
|
+
const n = e.get("width", -1), r = { type: "form", width: n, column: -1, gutter: -1 };
|
|
1944
|
+
Object.assign(r, t);
|
|
1945
|
+
const s = Xn(r), a = Jn({
|
|
1946
|
+
layout: s,
|
|
1947
|
+
passport: 0
|
|
1948
|
+
});
|
|
1949
|
+
return e.set(tt, a), a;
|
|
1950
|
+
}
|
|
1951
|
+
function Ut(e, t, n = -1, r = -1, s = !1) {
|
|
1952
|
+
const a = e.get(tt);
|
|
1953
|
+
if (!a)
|
|
1954
|
+
return;
|
|
1955
|
+
const l = e.get("groupLayout") ?? {};
|
|
1956
|
+
n === -1 && (n = l.column ?? 1), r === -1 && (r = l.gutter ?? 0);
|
|
1957
|
+
const o = l.minItemWidth ?? -1, u = () => {
|
|
1958
|
+
const i = t === "" || t === -1, f = U(t);
|
|
1959
|
+
let c = Rt(n);
|
|
1960
|
+
const $ = U(r);
|
|
1961
|
+
if (!i) {
|
|
1962
|
+
let h = (f - (c - 1) * $) / c;
|
|
1963
|
+
for (; o !== -1 && c > 1 && h < o; )
|
|
1964
|
+
c--, h = (f - (c - 1) * $) / c;
|
|
1965
|
+
}
|
|
1966
|
+
let A = !1;
|
|
1967
|
+
const m = a.layout;
|
|
1968
|
+
m.value.width = t, m.value.column !== c && (m.value.column = c, A = !0), m.value.gutter !== $ && (m.value.gutter = $, A = !0), A && Qn(m);
|
|
1969
|
+
};
|
|
1970
|
+
if (s)
|
|
1971
|
+
u();
|
|
1972
|
+
else {
|
|
1973
|
+
const i = ++a.passport;
|
|
1974
|
+
setTimeout(() => {
|
|
1975
|
+
i === a.passport && u();
|
|
1976
|
+
}, 50);
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
function ot(e, t = !1) {
|
|
1980
|
+
let n;
|
|
1981
|
+
return t ? n = e.getForParent(tt) : n = e.get(tt), n.layout;
|
|
1982
|
+
}
|
|
1983
|
+
function $e(e, t = 1) {
|
|
1984
|
+
return t === "stretch" ? -1 : t === -1 ? 100 : 100 * t / e;
|
|
1985
|
+
}
|
|
1986
|
+
function Ma(e) {
|
|
1987
|
+
return e === window;
|
|
1988
|
+
}
|
|
1989
|
+
const St = (e) => {
|
|
1990
|
+
const t = sn(e);
|
|
1991
|
+
if (Ma(t)) {
|
|
1992
|
+
const n = t.innerWidth, r = t.innerHeight;
|
|
1993
|
+
return {
|
|
1994
|
+
top: 0,
|
|
1995
|
+
left: 0,
|
|
1996
|
+
right: n,
|
|
1997
|
+
bottom: r,
|
|
1998
|
+
width: n,
|
|
1999
|
+
height: r
|
|
2000
|
+
};
|
|
2001
|
+
}
|
|
2002
|
+
return t && t.getBoundingClientRect ? t.getBoundingClientRect() : {
|
|
2003
|
+
top: 0,
|
|
2004
|
+
left: 0,
|
|
2005
|
+
right: 0,
|
|
2006
|
+
bottom: 0,
|
|
2007
|
+
width: 0,
|
|
2008
|
+
height: 0
|
|
2009
|
+
};
|
|
2010
|
+
}, We = (e, t) => e ? t ? `fox-group__${e}-${t}` : "" : `fox-group__${t}`, Ia = (e) => {
|
|
2011
|
+
if (!e.props || e.props.span === null || e.props.span === void 0) {
|
|
2012
|
+
const t = e.type, n = (t.props && t.props.span && t.props.span.default) ?? 1;
|
|
2013
|
+
return typeof n == "function" ? n() : n;
|
|
2014
|
+
}
|
|
2015
|
+
return e.props.span;
|
|
2016
|
+
}, Va = (e) => {
|
|
2017
|
+
if (!e.props || e.props.offset === null || e.props.offset === void 0) {
|
|
2018
|
+
const n = e.type, r = (n.props && n.props.offset && n.props.offset.default) ?? 0;
|
|
2019
|
+
return typeof r == "function" ? r() : r;
|
|
2020
|
+
}
|
|
2021
|
+
const t = Rt(e.props.offset);
|
|
2022
|
+
return t < 0 ? 0 : t;
|
|
2023
|
+
};
|
|
2024
|
+
function Da(e, t) {
|
|
2025
|
+
return {
|
|
2026
|
+
props: {
|
|
2027
|
+
...de,
|
|
2028
|
+
...In,
|
|
2029
|
+
...Vn
|
|
2030
|
+
},
|
|
2031
|
+
setup(n, r) {
|
|
2032
|
+
const s = Cn(n.name, n, Dn), a = Ra(s, { type: n.type }), l = st();
|
|
2033
|
+
at(!0);
|
|
2034
|
+
const o = ie(), u = (I) => {
|
|
2035
|
+
const w = o?.proxy;
|
|
2036
|
+
w && typeof w.fox_setNameValidateRules == "function" && w.fox_setNameValidateRules(I, !0);
|
|
2037
|
+
};
|
|
2038
|
+
se(
|
|
2039
|
+
() => n.rules,
|
|
2040
|
+
(I, w) => {
|
|
2041
|
+
if (!I && !w)
|
|
2042
|
+
return;
|
|
2043
|
+
const g = oe(w), N = oe(I), x = N ? Reflect.ownKeys(N) : [];
|
|
2044
|
+
(g ? Reflect.ownKeys(g) : []).forEach((v) => {
|
|
2045
|
+
x.includes(v) || (N[v] = []);
|
|
2046
|
+
}), u(N);
|
|
2047
|
+
},
|
|
2048
|
+
{ deep: !0 }
|
|
2049
|
+
), gt(() => {
|
|
2050
|
+
if (n.rules) {
|
|
2051
|
+
const I = oe(n.rules);
|
|
2052
|
+
u(I);
|
|
2053
|
+
}
|
|
2054
|
+
});
|
|
2055
|
+
const i = e, f = M(() => {
|
|
2056
|
+
if (l && s) {
|
|
2057
|
+
const I = ot(s, !0);
|
|
2058
|
+
if (I.value.type !== "flex")
|
|
2059
|
+
return {};
|
|
2060
|
+
const w = {}, g = $e(I.value.column, n.span);
|
|
2061
|
+
g > 0 && (w.width = `${g}%`);
|
|
2062
|
+
const N = $e(I.value.column, n.offset);
|
|
2063
|
+
N > 0 && (w["margin-left"] = `${N}%`);
|
|
2064
|
+
const x = I.value.gutter / 2;
|
|
2065
|
+
return x > 0 && (w["padding-left"] = `${x}px`, w["padding-right"] = `${x}px`), w;
|
|
2066
|
+
}
|
|
2067
|
+
return {};
|
|
2068
|
+
}), c = M(() => n.type === "flex" ? {
|
|
2069
|
+
[`${We("", n.type)}`]: !0,
|
|
2070
|
+
[`${We("justify", n.justify)}`]: !0,
|
|
2071
|
+
[`${We("align", n.align)}`]: !0,
|
|
2072
|
+
[`${We("flex", n.flexWrap)}`]: !0,
|
|
2073
|
+
[`${i}__gutter`]: !0
|
|
2074
|
+
} : { [`${We("", n.type)}`]: !0, [`${i}__gutter`]: !0 }), $ = De(n, "title"), A = De(n, "gutter"), m = De(n, "column"), h = M(() => l ? !0 : n.isWrap), p = B([]), S = (I) => {
|
|
2075
|
+
p.value.push(I);
|
|
2076
|
+
}, R = B(-1);
|
|
2077
|
+
if (Ut(s, R.value, m.value, A.value, !0), n.autoLayout) {
|
|
2078
|
+
se([R, m, A], ([w, g, N]) => {
|
|
2079
|
+
Ut(s, w, g, N, !1);
|
|
2080
|
+
});
|
|
2081
|
+
let I = null;
|
|
2082
|
+
gt(() => {
|
|
2083
|
+
if (rt && p.value && p.value.length > 0) {
|
|
2084
|
+
const w = p.value[0];
|
|
2085
|
+
R.value = St(w).width, window.ResizeObserver && (I = new window.ResizeObserver(() => {
|
|
2086
|
+
const g = St(w).width;
|
|
2087
|
+
g > 0 && g !== R.value && (R.value = g);
|
|
2088
|
+
}), I.observe(w));
|
|
2089
|
+
}
|
|
2090
|
+
}), qe(() => {
|
|
2091
|
+
I?.disconnect();
|
|
2092
|
+
});
|
|
2093
|
+
}
|
|
2094
|
+
const V = (I, w, g, N) => {
|
|
2095
|
+
const x = { ...c.value };
|
|
2096
|
+
return w === 0 && (x[`${i}__first`] = !0), g >= N - 1 && (x[`${i}__last`] = !0), F("div", { ref: S, key: `${w}`, class: x }, I);
|
|
2097
|
+
};
|
|
2098
|
+
return () => {
|
|
2099
|
+
const I = [];
|
|
2100
|
+
let w = 0;
|
|
2101
|
+
if (r.slots.title) {
|
|
2102
|
+
const P = {
|
|
2103
|
+
key: `${w++}`,
|
|
2104
|
+
class: { [`${i}__title`]: !0, [`${i}__first`]: !0 }
|
|
2105
|
+
}, v = F("div", P, [r.slots.title()]);
|
|
2106
|
+
I.push(v);
|
|
2107
|
+
} else if ($.value) {
|
|
2108
|
+
const P = {
|
|
2109
|
+
key: `${w++}`,
|
|
2110
|
+
class: { [`${i}__title`]: !0, [`${i}__first`]: !0 }
|
|
2111
|
+
}, v = F("div", { class: { [`${i}__title-mark`]: !0 } }), L = F("div", { class: { [`${i}__title-text`]: !0 } }, [$.value]), k = F("div", P, [v, L]);
|
|
2112
|
+
I.push(k);
|
|
2113
|
+
}
|
|
2114
|
+
const g = r.slots.default ? r.slots.default() : [];
|
|
2115
|
+
let N = [], x = 0;
|
|
2116
|
+
if (n.type === "flex") {
|
|
2117
|
+
for (let P = 0; P < g.length; P++) {
|
|
2118
|
+
const v = g[P], L = Ia(v), k = Va(v);
|
|
2119
|
+
if (L === "stretch") {
|
|
2120
|
+
if (x < a.layout.value.column) {
|
|
2121
|
+
N.push(v);
|
|
2122
|
+
const d = V([...N], w++, P, g.length);
|
|
2123
|
+
I.push(d);
|
|
2124
|
+
} else {
|
|
2125
|
+
const d = V([...N], w++, P - 1, g.length);
|
|
2126
|
+
I.push(d);
|
|
2127
|
+
const O = V([v], w++, P, g.length);
|
|
2128
|
+
I.push(O);
|
|
2129
|
+
}
|
|
2130
|
+
x = 0, N = [];
|
|
2131
|
+
continue;
|
|
2132
|
+
}
|
|
2133
|
+
let C = Rt(L);
|
|
2134
|
+
if (C === -1) {
|
|
2135
|
+
if (N.length > 0) {
|
|
2136
|
+
const O = V([...N], w++, P - 1, g.length);
|
|
2137
|
+
I.push(O);
|
|
2138
|
+
}
|
|
2139
|
+
const d = V([v], w++, P, g.length);
|
|
2140
|
+
I.push(d), x = 0, N = [];
|
|
2141
|
+
continue;
|
|
2142
|
+
}
|
|
2143
|
+
C > a.layout.value.column ? C = a.layout.value.column : C <= 0 && (C = 1);
|
|
2144
|
+
const E = x + C + k;
|
|
2145
|
+
if (E > a.layout.value.column) {
|
|
2146
|
+
const d = V([...N], w++, P - 1, g.length);
|
|
2147
|
+
I.push(d), x = C + k, N = [v];
|
|
2148
|
+
} else
|
|
2149
|
+
N.push(v), x = E;
|
|
2150
|
+
}
|
|
2151
|
+
if (N.length > 0) {
|
|
2152
|
+
const P = V([...N], w++, g.length, g.length);
|
|
2153
|
+
I.push(P);
|
|
2154
|
+
}
|
|
2155
|
+
} else
|
|
2156
|
+
for (let P = 0; P < g.length; P++) {
|
|
2157
|
+
const v = g[P], L = V([v], w++, P, g.length);
|
|
2158
|
+
I.push(L);
|
|
2159
|
+
}
|
|
2160
|
+
return h.value ? F("div", { class: { [`${i}`]: !0 }, style: f.value }, [I]) : I;
|
|
2161
|
+
};
|
|
2162
|
+
}
|
|
2163
|
+
};
|
|
2164
|
+
}
|
|
2165
|
+
const { componentName: _a, create: La, scope: ji } = Z("group"), Ha = La(Da(_a)), Ln = {
|
|
2166
|
+
price: {
|
|
2167
|
+
type: [Number, String],
|
|
2168
|
+
default: 0
|
|
2169
|
+
},
|
|
2170
|
+
needSymbol: {
|
|
2171
|
+
type: Boolean,
|
|
2172
|
+
default: !0
|
|
2173
|
+
},
|
|
2174
|
+
symbol: {
|
|
2175
|
+
type: String,
|
|
2176
|
+
default: "¥"
|
|
2177
|
+
},
|
|
2178
|
+
decimalLength: {
|
|
2179
|
+
type: [Number, String],
|
|
2180
|
+
required: !1,
|
|
2181
|
+
default: 2
|
|
2182
|
+
},
|
|
2183
|
+
digits: {
|
|
2184
|
+
type: Number,
|
|
2185
|
+
required: !1,
|
|
2186
|
+
default: 3
|
|
2187
|
+
},
|
|
2188
|
+
separator: {
|
|
2189
|
+
type: String,
|
|
2190
|
+
required: !1,
|
|
2191
|
+
default: ","
|
|
2192
|
+
},
|
|
2193
|
+
position: {
|
|
2194
|
+
type: String,
|
|
2195
|
+
default: "before"
|
|
2196
|
+
},
|
|
2197
|
+
size: {
|
|
2198
|
+
type: String,
|
|
2199
|
+
default: "large"
|
|
2200
|
+
}
|
|
2201
|
+
}, { componentName: qa, create: ka } = Z("price"), Ba = ka({
|
|
2202
|
+
props: {
|
|
2203
|
+
...Ln
|
|
2204
|
+
},
|
|
2205
|
+
setup(e) {
|
|
2206
|
+
const t = M(() => ({
|
|
2207
|
+
[qa]: !0
|
|
2208
|
+
})), n = M(() => e.needSymbol ? e.symbol : ""), r = M(() => Fs(e.price) == 0 ? "" : Bs(e.price, e.decimalLength, !0, e.digits, e.separator)), s = M(() => {
|
|
2209
|
+
let l = r.value;
|
|
2210
|
+
if (l.length == 0)
|
|
2211
|
+
return "";
|
|
2212
|
+
let o = l.indexOf(".");
|
|
2213
|
+
return l.substring(0, o);
|
|
2214
|
+
}), a = M(() => {
|
|
2215
|
+
let l = r.value;
|
|
2216
|
+
if (l.length == 0)
|
|
2217
|
+
return "";
|
|
2218
|
+
let o = l.indexOf(".");
|
|
2219
|
+
return l.substring(o + 1);
|
|
2220
|
+
});
|
|
2221
|
+
return {
|
|
2222
|
+
classes: t,
|
|
2223
|
+
showSymbol: n,
|
|
2224
|
+
intText: s,
|
|
2225
|
+
decimalText: a
|
|
2226
|
+
};
|
|
2227
|
+
}
|
|
2228
|
+
}), ja = ["innerHTML"], Fa = ["innerHTML"];
|
|
2229
|
+
function Wa(e, t, n, r, s, a) {
|
|
2230
|
+
return J(), ee("view", {
|
|
2231
|
+
class: K(e.classes)
|
|
2232
|
+
}, [
|
|
2233
|
+
e.needSymbol && e.position == "before" ? (J(), ee("view", {
|
|
2234
|
+
key: 0,
|
|
2235
|
+
class: K(["fox-price--symbol", `fox-price--symbol-${e.size}`]),
|
|
2236
|
+
innerHTML: e.showSymbol
|
|
2237
|
+
}, null, 10, ja)) : _e("", !0),
|
|
2238
|
+
ue("view", {
|
|
2239
|
+
class: K(`fox-price--${e.size}`)
|
|
2240
|
+
}, Le(e.intText), 3),
|
|
2241
|
+
e.decimalText.length != 0 ? (J(), ee("view", {
|
|
2242
|
+
key: 1,
|
|
2243
|
+
class: K(`fox-price--decimal-${e.size}`)
|
|
2244
|
+
}, ".", 2)) : _e("", !0),
|
|
2245
|
+
ue("view", {
|
|
2246
|
+
class: K(`fox-price--decimal-${e.size}`)
|
|
2247
|
+
}, Le(e.decimalText), 3),
|
|
2248
|
+
e.needSymbol && e.position == "after" ? (J(), ee("view", {
|
|
2249
|
+
key: 2,
|
|
2250
|
+
class: K(["fox-price--symbol", `fox-price--symbol-${e.size}`]),
|
|
2251
|
+
innerHTML: e.showSymbol
|
|
2252
|
+
}, null, 10, Fa)) : _e("", !0)
|
|
2253
|
+
], 2);
|
|
2254
|
+
}
|
|
2255
|
+
const Et = /* @__PURE__ */ Ie(Ba, [["render", Wa]]), { componentName: ht, create: Ya } = Z("hint-text"), Ka = Ya({
|
|
2256
|
+
components: {
|
|
2257
|
+
[Et.name]: Et
|
|
2258
|
+
},
|
|
2259
|
+
props: {
|
|
2260
|
+
...Ln,
|
|
2261
|
+
type: {
|
|
2262
|
+
type: String,
|
|
2263
|
+
default: "number"
|
|
2264
|
+
},
|
|
2265
|
+
id: {
|
|
2266
|
+
type: String
|
|
2267
|
+
},
|
|
2268
|
+
startPoint: {
|
|
2269
|
+
type: Object
|
|
2270
|
+
},
|
|
2271
|
+
width: {
|
|
2272
|
+
type: Number
|
|
2273
|
+
},
|
|
2274
|
+
height: {
|
|
2275
|
+
type: Number,
|
|
2276
|
+
default: 40
|
|
2277
|
+
},
|
|
2278
|
+
message: {
|
|
2279
|
+
type: String,
|
|
2280
|
+
default: ""
|
|
2281
|
+
},
|
|
2282
|
+
visible: {
|
|
2283
|
+
type: Boolean,
|
|
2284
|
+
default: !0
|
|
2285
|
+
},
|
|
2286
|
+
unmount: {
|
|
2287
|
+
type: Function
|
|
2288
|
+
}
|
|
2289
|
+
},
|
|
2290
|
+
setup(e, t) {
|
|
2291
|
+
const s = M(() => ({
|
|
2292
|
+
[ht]: !0
|
|
2293
|
+
})), a = M(() => ({
|
|
2294
|
+
left: Se(e.startPoint.x),
|
|
2295
|
+
top: Se(e.startPoint.y - e.height - 10 - 4),
|
|
2296
|
+
height: Se(e.height),
|
|
2297
|
+
width: Se(e.width)
|
|
2298
|
+
})), l = M(() => ({
|
|
2299
|
+
[`${ht}__content`]: !0
|
|
2300
|
+
})), o = M(() => ({})), u = M(() => ({
|
|
2301
|
+
[`${ht}__arrow`]: !0
|
|
2302
|
+
})), i = M(() => ({
|
|
2303
|
+
top: Se(e.height)
|
|
2304
|
+
}));
|
|
2305
|
+
return {
|
|
2306
|
+
classes: s,
|
|
2307
|
+
styles: a,
|
|
2308
|
+
textClasses: l,
|
|
2309
|
+
textStyles: o,
|
|
2310
|
+
arrowClasses: u,
|
|
2311
|
+
arrowStyles: i
|
|
2312
|
+
};
|
|
2313
|
+
}
|
|
2314
|
+
}), Ga = {
|
|
2315
|
+
key: 1,
|
|
2316
|
+
class: "text"
|
|
2317
|
+
};
|
|
2318
|
+
function za(e, t, n, r, s, a) {
|
|
2319
|
+
const l = er("fox-price");
|
|
2320
|
+
return J(), kt(an, { name: "hint-text-fade" }, {
|
|
2321
|
+
default: on(() => [
|
|
2322
|
+
tr(ue("div", {
|
|
2323
|
+
class: K(e.classes),
|
|
2324
|
+
style: re(e.styles)
|
|
2325
|
+
}, [
|
|
2326
|
+
ue("div", {
|
|
2327
|
+
class: K(e.textClasses),
|
|
2328
|
+
style: re(e.textStyles)
|
|
2329
|
+
}, [
|
|
2330
|
+
e.type == "number" ? (J(), kt(l, {
|
|
2331
|
+
key: 0,
|
|
2332
|
+
price: e.message,
|
|
2333
|
+
position: "before"
|
|
2334
|
+
}, null, 8, ["price"])) : (J(), ee("span", Ga, Le(e.message), 1))
|
|
2335
|
+
], 6),
|
|
2336
|
+
ue("div", {
|
|
2337
|
+
class: K(e.arrowClasses),
|
|
2338
|
+
style: re(e.arrowStyles)
|
|
2339
|
+
}, null, 6)
|
|
2340
|
+
], 6), [
|
|
2341
|
+
[nr, e.visible]
|
|
2342
|
+
])
|
|
2343
|
+
]),
|
|
2344
|
+
_: 1
|
|
2345
|
+
});
|
|
2346
|
+
}
|
|
2347
|
+
const Lt = /* @__PURE__ */ Ie(Ka, [["render", za]]);
|
|
2348
|
+
class Ua {
|
|
2349
|
+
seed = new Date().getTime();
|
|
2350
|
+
constructor(t) {
|
|
2351
|
+
this.seed = t ?? new Date().getTime();
|
|
2352
|
+
}
|
|
2353
|
+
get() {
|
|
2354
|
+
let t = this.seed++;
|
|
2355
|
+
return this.seed < 0 && (this.seed = 0), t;
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
function Za(e) {
|
|
2359
|
+
return e === window;
|
|
2360
|
+
}
|
|
2361
|
+
const Xa = (e) => {
|
|
2362
|
+
const t = sn(e);
|
|
2363
|
+
if (!t)
|
|
2364
|
+
return {
|
|
2365
|
+
x: 0,
|
|
2366
|
+
y: 0
|
|
2367
|
+
};
|
|
2368
|
+
if (Za(t))
|
|
2369
|
+
return {
|
|
2370
|
+
x: 0,
|
|
2371
|
+
y: 0
|
|
2372
|
+
};
|
|
2373
|
+
let n = 0, r = 0, s = t;
|
|
2374
|
+
for (; s !== null; )
|
|
2375
|
+
r += s.scrollTop, n += s.scrollLeft, s = s.parentElement;
|
|
2376
|
+
const a = t.getBoundingClientRect(), l = a.x + n, o = a.y + r;
|
|
2377
|
+
return {
|
|
2378
|
+
x: l,
|
|
2379
|
+
y: o
|
|
2380
|
+
};
|
|
2381
|
+
}, At = {}, Ja = new Ua(), He = /* @__PURE__ */ new Map(), Nt = (e) => {
|
|
2382
|
+
if (e) {
|
|
2383
|
+
const t = document.getElementById(e);
|
|
2384
|
+
He.delete(e), t && document.body.removeChild(t);
|
|
2385
|
+
} else {
|
|
2386
|
+
for (const t of He.keys()) {
|
|
2387
|
+
const n = document.getElementById(t);
|
|
2388
|
+
n && document.body.removeChild(n);
|
|
2389
|
+
}
|
|
2390
|
+
He.clear();
|
|
2391
|
+
}
|
|
2392
|
+
}, Qa = (e) => {
|
|
2393
|
+
const t = document.getElementById(e.id);
|
|
2394
|
+
if (t) {
|
|
2395
|
+
const n = He.get(e.id);
|
|
2396
|
+
n ? e = { ...At, ...n, ...e } : e = { ...At, ...e };
|
|
2397
|
+
const r = Ct(Lt, e);
|
|
2398
|
+
return ln(r, t), e.id;
|
|
2399
|
+
}
|
|
2400
|
+
}, eo = (e) => {
|
|
2401
|
+
e.unmount = Nt;
|
|
2402
|
+
let t;
|
|
2403
|
+
if (e.id) {
|
|
2404
|
+
if (t = e.id, He.has(t))
|
|
2405
|
+
return Qa(e);
|
|
2406
|
+
} else
|
|
2407
|
+
t = `hinttext_${Ja.get()}`;
|
|
2408
|
+
e = { ...At, ...e }, e.id = t, He.set(t, e);
|
|
2409
|
+
const n = document.createElement("div");
|
|
2410
|
+
n.id = e.id;
|
|
2411
|
+
const r = Ct(Lt, e);
|
|
2412
|
+
return ln(r, n), document.body.appendChild(n), t;
|
|
2413
|
+
}, to = (e) => {
|
|
2414
|
+
if (!e) {
|
|
2415
|
+
console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");
|
|
2416
|
+
return;
|
|
2417
|
+
}
|
|
2418
|
+
}, Xe = {
|
|
2419
|
+
show(e, t, n = {}, r = !0) {
|
|
2420
|
+
r && Nt(), to(t);
|
|
2421
|
+
const s = Xa(e), a = {
|
|
2422
|
+
x: s.x,
|
|
2423
|
+
y: s.y
|
|
2424
|
+
}, o = St(e).width;
|
|
2425
|
+
return eo({ ...n, message: t, startPoint: a, width: o });
|
|
2426
|
+
},
|
|
2427
|
+
hide(e) {
|
|
2428
|
+
Nt(e);
|
|
2429
|
+
},
|
|
2430
|
+
install(e) {
|
|
2431
|
+
e.config.globalProperties.$hintText = Xe;
|
|
2432
|
+
}
|
|
2433
|
+
}, { componentName: Zt, create: no } = Z("item"), ro = no({
|
|
2434
|
+
inheritAttrs: !0,
|
|
2435
|
+
props: {
|
|
2436
|
+
...de,
|
|
2437
|
+
...Re
|
|
2438
|
+
},
|
|
2439
|
+
setup(e, t) {
|
|
2440
|
+
Ce(
|
|
2441
|
+
{
|
|
2442
|
+
componentName: Zt,
|
|
2443
|
+
validate: !1
|
|
2444
|
+
},
|
|
2445
|
+
e.prop ?? e.name
|
|
2446
|
+
);
|
|
2447
|
+
const n = Te(), r = st();
|
|
2448
|
+
at(!1);
|
|
2449
|
+
const s = Zt, a = M(() => ({
|
|
2450
|
+
[s]: !0,
|
|
2451
|
+
[`${s}__gutter`]: !0,
|
|
2452
|
+
[`${s}__input--border`]: e.hasBorder,
|
|
2453
|
+
"is-error": !!x.value,
|
|
2454
|
+
"is-warn": !!g.value,
|
|
2455
|
+
"is-info": !!I.value
|
|
2456
|
+
})), l = M(() => {
|
|
2457
|
+
if (r && n) {
|
|
2458
|
+
const b = ot(n, !1);
|
|
2459
|
+
if (b.value.type !== "flex")
|
|
2460
|
+
return {};
|
|
2461
|
+
const T = {}, D = $e(b.value.column, e.span);
|
|
2462
|
+
D > 0 && (T.width = `${D}%`);
|
|
2463
|
+
const _ = $e(b.value.column, e.offset);
|
|
2464
|
+
_ > 0 && (T["margin-left"] = `${_}%`);
|
|
2465
|
+
const H = b.value.gutter / 2;
|
|
2466
|
+
return H > 0 && (T["padding-left"] = `${H}px`, T["padding-right"] = `${H}px`), T;
|
|
2467
|
+
}
|
|
2468
|
+
return {};
|
|
2469
|
+
}), o = B(null), u = M({
|
|
2470
|
+
get: () => o.value ?? nt(e.isRequired),
|
|
2471
|
+
set: (b) => {
|
|
2472
|
+
o.value = b;
|
|
2473
|
+
}
|
|
2474
|
+
}), i = M(() => typeof e.label == "string" && e.label.length > 0 || typeof t.slots.label == "function"), f = Qe(De(e, "labelPosition"), "labelPosition", wt.Near), c = M(() => f && f.value === "top" ? "top" : f && f.value === "right" ? "right" : "left"), $ = M(() => ({
|
|
2475
|
+
[`${s}__main`]: !0,
|
|
2476
|
+
[`${s}__main--${c.value}`]: !0
|
|
2477
|
+
})), A = M(() => ({
|
|
2478
|
+
label: !0,
|
|
2479
|
+
[`label-${c.value}`]: !0
|
|
2480
|
+
})), m = Qe(De(e, "labelWidth"), "labelWidth", wt.Near), h = M(() => m && m.value ? {
|
|
2481
|
+
width: `${Se(m.value)}`
|
|
2482
|
+
} : {}), p = M(() => ({
|
|
2483
|
+
["label--string"]: !0,
|
|
2484
|
+
["label--required"]: u.value
|
|
2485
|
+
})), S = M(() => ({
|
|
2486
|
+
content: !0,
|
|
2487
|
+
[e.contentClass]: !0
|
|
2488
|
+
})), R = M(() => ({
|
|
2489
|
+
...e.contentStyle
|
|
2490
|
+
})), V = Pt({
|
|
2491
|
+
errorTip: "",
|
|
2492
|
+
errorIcon: null,
|
|
2493
|
+
warnTip: "",
|
|
2494
|
+
warnIcon: null,
|
|
2495
|
+
infoTip: "",
|
|
2496
|
+
infoIcon: null
|
|
2497
|
+
});
|
|
2498
|
+
Me({
|
|
2499
|
+
setRequired(b) {
|
|
2500
|
+
u.value = b;
|
|
2501
|
+
},
|
|
2502
|
+
setErrorTip(b) {
|
|
2503
|
+
V.errorTip = b;
|
|
2504
|
+
},
|
|
2505
|
+
setErrorIcon(b) {
|
|
2506
|
+
V.errorIcon = b;
|
|
2507
|
+
},
|
|
2508
|
+
setWarnTip(b) {
|
|
2509
|
+
V.warnTip = b;
|
|
2510
|
+
},
|
|
2511
|
+
setWarnIcon(b) {
|
|
2512
|
+
V.warnIcon = b;
|
|
2513
|
+
},
|
|
2514
|
+
setInfoTip(b) {
|
|
2515
|
+
V.infoTip = b;
|
|
2516
|
+
},
|
|
2517
|
+
setInfoIcon(b) {
|
|
2518
|
+
V.infoIcon = b;
|
|
2519
|
+
}
|
|
2520
|
+
});
|
|
2521
|
+
const I = M(() => e.infoTip || V.infoTip), w = M(() => e.infoIcon || V.infoIcon), g = M(() => e.warnTip || V.warnTip), N = M(() => e.warnIcon || V.warnIcon), x = M(() => e.errorTip || V.errorTip), P = M(() => e.errorIcon || V.errorIcon), v = M(() => x.value ? "error" : g.value ? "warn" : I.value ? "info" : ""), L = M(() => v.value.length > 0), k = M(() => v.value === "error" ? x.value : v.value === "warn" ? g.value : v.value === "info" ? I.value : ""), C = M(() => v.value === "error" ? P.value : v.value === "warn" ? N.value : v.value === "info" ? w.value : null), E = M(() => {
|
|
2522
|
+
let b = {
|
|
2523
|
+
[`${s}__tip`]: !0,
|
|
2524
|
+
[`${s}__tip--${v.value}`]: !0
|
|
2525
|
+
};
|
|
2526
|
+
return v.value === "error" && e.errorClass ? b[`${e.errorClass}`] = !0 : v.value === "warn" && e.warnClass ? b[`${e.warnClass}`] = !0 : v.value === "info" && e.infoClass && (b[`${e.infoClass}`] = !0), b;
|
|
2527
|
+
}), d = M(() => {
|
|
2528
|
+
let b = {};
|
|
2529
|
+
return f && f.value === "top" ? b["padding-left"] = "0px" : m && m.value && (b["padding-left"] = Se(m.value)), b;
|
|
2530
|
+
}), O = B();
|
|
2531
|
+
let y = "";
|
|
2532
|
+
return se(
|
|
2533
|
+
[() => e.hintVisible, () => e.hintText, () => e.hintType, () => e.hintProps],
|
|
2534
|
+
([b, T, D, _]) => {
|
|
2535
|
+
!O.value || (b ? y ? Xe.show(O.value, T, { ..._, id: y, type: D }) : y = Xe.show(O.value, T, { ..._, type: D }) : Xe.hide(y));
|
|
2536
|
+
}
|
|
2537
|
+
), {
|
|
2538
|
+
classes: a,
|
|
2539
|
+
styles: l,
|
|
2540
|
+
mainClasses: $,
|
|
2541
|
+
hasLabel: i,
|
|
2542
|
+
labelClasses: A,
|
|
2543
|
+
labelStyles: h,
|
|
2544
|
+
labelStringClasses: p,
|
|
2545
|
+
contentClasses: S,
|
|
2546
|
+
contentStyles: R,
|
|
2547
|
+
contentRef: O,
|
|
2548
|
+
hasTip: L,
|
|
2549
|
+
mTip: k,
|
|
2550
|
+
mIcon: C,
|
|
2551
|
+
tipClasses: E,
|
|
2552
|
+
tipStyles: d
|
|
2553
|
+
};
|
|
2554
|
+
}
|
|
2555
|
+
}), so = {
|
|
2556
|
+
key: 0,
|
|
2557
|
+
class: "fox-item__tip-icon"
|
|
2558
|
+
}, ao = { class: "fox-item__tip-text" };
|
|
2559
|
+
function oo(e, t, n, r, s, a) {
|
|
2560
|
+
return J(), ee("div", {
|
|
2561
|
+
class: K(e.classes),
|
|
2562
|
+
style: re(e.styles)
|
|
2563
|
+
}, [
|
|
2564
|
+
ue("div", {
|
|
2565
|
+
class: K(e.mainClasses)
|
|
2566
|
+
}, [
|
|
2567
|
+
e.hasLabel ? (J(), ee("div", {
|
|
2568
|
+
key: 0,
|
|
2569
|
+
class: K(e.labelClasses),
|
|
2570
|
+
style: re(e.labelStyles)
|
|
2571
|
+
}, [
|
|
2572
|
+
ue("div", {
|
|
2573
|
+
class: K(e.labelStringClasses)
|
|
2574
|
+
}, [
|
|
2575
|
+
le(e.$slots, "label", {}, () => [
|
|
2576
|
+
rr(Le(e.label), 1)
|
|
2577
|
+
])
|
|
2578
|
+
], 2)
|
|
2579
|
+
], 6)) : _e("", !0),
|
|
2580
|
+
ue("div", {
|
|
2581
|
+
ref: "contentRef",
|
|
2582
|
+
class: K(e.contentClasses),
|
|
2583
|
+
style: re(e.contentStyles)
|
|
2584
|
+
}, [
|
|
2585
|
+
le(e.$slots, "prepend"),
|
|
2586
|
+
le(e.$slots, "default"),
|
|
2587
|
+
le(e.$slots, "append")
|
|
2588
|
+
], 6)
|
|
2589
|
+
], 2),
|
|
2590
|
+
Ct(an, { name: "fox-item__animate" }, {
|
|
2591
|
+
default: on(() => [
|
|
2592
|
+
e.hasTip ? (J(), ee("div", {
|
|
2593
|
+
key: 0,
|
|
2594
|
+
class: K(e.tipClasses),
|
|
2595
|
+
style: re(e.tipStyles)
|
|
2596
|
+
}, [
|
|
2597
|
+
e.mIcon ? (J(), ee("div", so, Le(e.mIcon), 1)) : _e("", !0),
|
|
2598
|
+
ue("div", ao, Le(e.mTip), 1)
|
|
2599
|
+
], 6)) : _e("", !0)
|
|
2600
|
+
]),
|
|
2601
|
+
_: 1
|
|
2602
|
+
}),
|
|
2603
|
+
le(e.$slots, "hide")
|
|
2604
|
+
], 6);
|
|
2605
|
+
}
|
|
2606
|
+
const Ve = /* @__PURE__ */ Ie(ro, [["render", oo]]), { componentName: io, create: lo } = Z("slot-item"), uo = lo({
|
|
2607
|
+
props: {
|
|
2608
|
+
span: {
|
|
2609
|
+
type: [Number, String],
|
|
2610
|
+
required: !1,
|
|
2611
|
+
default: 1
|
|
2612
|
+
},
|
|
2613
|
+
offset: {
|
|
2614
|
+
type: [Number],
|
|
2615
|
+
default: 0
|
|
2616
|
+
}
|
|
2617
|
+
},
|
|
2618
|
+
setup(e, t) {
|
|
2619
|
+
const n = io, r = M(() => ({
|
|
2620
|
+
[n]: !0
|
|
2621
|
+
})), s = Te(), a = st();
|
|
2622
|
+
at(!1);
|
|
2623
|
+
const l = M(() => {
|
|
2624
|
+
if (a && s) {
|
|
2625
|
+
const o = ot(s, !1);
|
|
2626
|
+
if (o.value.type !== "flex")
|
|
2627
|
+
return {};
|
|
2628
|
+
const u = {}, i = $e(o.value.column, e.span);
|
|
2629
|
+
i > 0 && (u.width = `${i}%`);
|
|
2630
|
+
const f = $e(o.value.column, e.offset);
|
|
2631
|
+
f > 0 && (u["margin-left"] = `${f}%`);
|
|
2632
|
+
const c = o.value.gutter / 2;
|
|
2633
|
+
return c > 0 && (u["padding-left"] = `${c}px`, u["padding-right"] = `${c}px`), u;
|
|
2634
|
+
}
|
|
2635
|
+
return {};
|
|
2636
|
+
});
|
|
2637
|
+
return () => {
|
|
2638
|
+
let o = {
|
|
2639
|
+
class: r.value,
|
|
2640
|
+
style: l.value
|
|
2641
|
+
};
|
|
2642
|
+
return F("div", o);
|
|
2643
|
+
};
|
|
2644
|
+
}
|
|
2645
|
+
}), { componentName: co, create: fo } = Z("row-item"), ho = fo({
|
|
2646
|
+
props: {
|
|
2647
|
+
span: {
|
|
2648
|
+
type: [Number, String],
|
|
2649
|
+
required: !1,
|
|
2650
|
+
default: -1
|
|
2651
|
+
},
|
|
2652
|
+
offset: {
|
|
2653
|
+
type: [Number],
|
|
2654
|
+
default: 0
|
|
2655
|
+
},
|
|
2656
|
+
align: {
|
|
2657
|
+
type: [String],
|
|
2658
|
+
required: !1,
|
|
2659
|
+
default: "center"
|
|
2660
|
+
},
|
|
2661
|
+
contentClass: {
|
|
2662
|
+
type: [String],
|
|
2663
|
+
required: !1
|
|
2664
|
+
},
|
|
2665
|
+
contentStyle: {
|
|
2666
|
+
type: [Object]
|
|
2667
|
+
}
|
|
2668
|
+
},
|
|
2669
|
+
setup(e, t) {
|
|
2670
|
+
const n = co, r = M(() => ({
|
|
2671
|
+
[n]: !0,
|
|
2672
|
+
[`${n}__${e.align}`]: !0
|
|
2673
|
+
}));
|
|
2674
|
+
let s = Te();
|
|
2675
|
+
const a = st();
|
|
2676
|
+
at(!1);
|
|
2677
|
+
const l = M(() => {
|
|
2678
|
+
if (a && s) {
|
|
2679
|
+
const u = ot(s, !1);
|
|
2680
|
+
if (u.value.type !== "flex")
|
|
2681
|
+
return {};
|
|
2682
|
+
const i = {}, f = $e(u.value.column, e.span);
|
|
2683
|
+
f > 0 && (i.width = `${f}%`);
|
|
2684
|
+
const c = $e(u.value.column, e.offset);
|
|
2685
|
+
c > 0 && (i["margin-left"] = `${c}%`);
|
|
2686
|
+
const $ = u.value.gutter / 2;
|
|
2687
|
+
return $ > 0 && (i["padding-left"] = `${$}px`, i["padding-right"] = `${$}px`), i;
|
|
2688
|
+
}
|
|
2689
|
+
return {};
|
|
2690
|
+
}), o = M(() => ({
|
|
2691
|
+
[`${n}__content`]: !0
|
|
2692
|
+
}));
|
|
2693
|
+
return () => {
|
|
2694
|
+
const u = [];
|
|
2695
|
+
t.slots.default && u.push(t.slots.default());
|
|
2696
|
+
const i = {
|
|
2697
|
+
class: o.value
|
|
2698
|
+
}, f = F("div", i, u), c = {
|
|
2699
|
+
class: r.value,
|
|
2700
|
+
style: l.value
|
|
2701
|
+
};
|
|
2702
|
+
return F("div", c, [f]);
|
|
2703
|
+
};
|
|
2704
|
+
}
|
|
2705
|
+
}), Xt = {
|
|
2706
|
+
modelValue: {
|
|
2707
|
+
type: [String, Object],
|
|
2708
|
+
required: !1
|
|
2709
|
+
},
|
|
2710
|
+
clearable: {
|
|
2711
|
+
type: [Boolean, String],
|
|
2712
|
+
default: !0
|
|
2713
|
+
},
|
|
2714
|
+
unit: {
|
|
2715
|
+
type: [String],
|
|
2716
|
+
required: !1
|
|
2717
|
+
}
|
|
2718
|
+
};
|
|
2719
|
+
function go(e, t, n) {
|
|
2720
|
+
return {
|
|
2721
|
+
props: {
|
|
2722
|
+
...de,
|
|
2723
|
+
...Re,
|
|
2724
|
+
...Xt
|
|
2725
|
+
},
|
|
2726
|
+
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input"],
|
|
2727
|
+
setup(r, s) {
|
|
2728
|
+
const { emitEvent: a } = Ce(
|
|
2729
|
+
{
|
|
2730
|
+
componentName: e
|
|
2731
|
+
},
|
|
2732
|
+
r.prop ?? r.name
|
|
2733
|
+
), { toLocaleRefs: l } = ke(t), o = l(r, ["placeholder"]), u = B(!1), i = Ge(M(() => r.disabled)), f = Ke(M(() => r.readonly)), c = fe(r, "modelValue"), $ = e, A = M(() => ({
|
|
2734
|
+
[$]: !0
|
|
2735
|
+
})), m = (g) => {
|
|
2736
|
+
c.value = g, a("update:modelValue", g), a("input", g);
|
|
2737
|
+
}, h = (g) => {
|
|
2738
|
+
a("change", g);
|
|
2739
|
+
};
|
|
2740
|
+
let p = fe(r, "hintText"), S = B(!1);
|
|
2741
|
+
const R = (g) => {
|
|
2742
|
+
let x = g.target.value;
|
|
2743
|
+
u.value = !0, Pe(p.value) || (S.value = !0), a("focus", x, g);
|
|
2744
|
+
}, V = (g) => {
|
|
2745
|
+
setTimeout(() => {
|
|
2746
|
+
S.value && (S.value = !1), u.value = !1;
|
|
2747
|
+
}, 0);
|
|
2748
|
+
let x = g.target.value;
|
|
2749
|
+
r.maxLength && x.length > Number(r.maxLength) && (x = x.slice(0, Number(r.maxLength))), a("blur", x, g);
|
|
2750
|
+
}, I = () => {
|
|
2751
|
+
a("clear", "");
|
|
2752
|
+
}, w = B();
|
|
2753
|
+
return Me({
|
|
2754
|
+
focus: () => {
|
|
2755
|
+
w?.value.focus();
|
|
2756
|
+
},
|
|
2757
|
+
blur: () => {
|
|
2758
|
+
w?.value.blur();
|
|
2759
|
+
},
|
|
2760
|
+
select: () => {
|
|
2761
|
+
w?.value.select();
|
|
2762
|
+
}
|
|
2763
|
+
}), () => {
|
|
2764
|
+
const N = {
|
|
2765
|
+
...s.attrs,
|
|
2766
|
+
ref: w,
|
|
2767
|
+
class: A.value,
|
|
2768
|
+
placeholder: o.placeholder.value,
|
|
2769
|
+
clearable: r.clearable,
|
|
2770
|
+
disabled: i.value,
|
|
2771
|
+
readonly: f.value,
|
|
2772
|
+
modelValue: c.value,
|
|
2773
|
+
onClear: I,
|
|
2774
|
+
onChange: h,
|
|
2775
|
+
onInput: m,
|
|
2776
|
+
onFocus: R,
|
|
2777
|
+
onBlur: V
|
|
2778
|
+
}, x = {};
|
|
2779
|
+
s.slots.prepend && (x.prepend = s.slots.prepend), s.slots.append && (x.append = s.slots.append), s.slots.prefix && (x.prefix = s.slots.prefix), s.slots.suffix && (x.suffix = s.slots.suffix);
|
|
2780
|
+
const P = [], v = F(hn, N, x);
|
|
2781
|
+
P.push(v);
|
|
2782
|
+
const L = {
|
|
2783
|
+
default: () => P
|
|
2784
|
+
};
|
|
2785
|
+
if (s.slots.default) {
|
|
2786
|
+
const d = s.slots.default();
|
|
2787
|
+
L.label = () => d;
|
|
2788
|
+
}
|
|
2789
|
+
const C = {
|
|
2790
|
+
...Be(r, Xt),
|
|
2791
|
+
hintText: p.value,
|
|
2792
|
+
hintVisible: S.value,
|
|
2793
|
+
prop: `${r.prop}_item`
|
|
2794
|
+
};
|
|
2795
|
+
return F(n, C, L);
|
|
2796
|
+
};
|
|
2797
|
+
}
|
|
2798
|
+
};
|
|
2799
|
+
}
|
|
2800
|
+
const { componentName: po, create: mo, scope: yo } = Z("input-item"), vo = mo(go(po, yo, Ve));
|
|
2801
|
+
function Oe(e, t) {
|
|
2802
|
+
return typeof e.textKey == "string" && e.textKey.length > 0 ? t[e.textKey] : t.text;
|
|
2803
|
+
}
|
|
2804
|
+
function Ne(e, t) {
|
|
2805
|
+
return typeof e.valueKey == "string" && e.valueKey.length > 0 ? t[e.valueKey] : t.value;
|
|
2806
|
+
}
|
|
2807
|
+
function Hn(e, t) {
|
|
2808
|
+
return typeof e.childrenKey == "string" && e.childrenKey.length > 0 ? t[e.childrenKey] || null : t.children ?? null;
|
|
2809
|
+
}
|
|
2810
|
+
class bo {
|
|
2811
|
+
proxy;
|
|
2812
|
+
constructor(t) {
|
|
2813
|
+
this.proxy = t;
|
|
2814
|
+
}
|
|
2815
|
+
async load(t, n, r) {
|
|
2816
|
+
if (Array.isArray(n))
|
|
2817
|
+
return n;
|
|
2818
|
+
if (typeof n == "function")
|
|
2819
|
+
return await n(r);
|
|
2820
|
+
const s = _t(this.proxy, t);
|
|
2821
|
+
return s === null ? (console.error(`${t} component not found api function`), []) : (cn(r) && Tt(r) && (r = oe(r)), await s(n, r));
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
function $o() {
|
|
2825
|
+
const e = ie();
|
|
2826
|
+
return new bo(e.proxy);
|
|
2827
|
+
}
|
|
2828
|
+
function qn(e, t, n) {
|
|
2829
|
+
const r = Oe(e, t), s = Oe(e, n);
|
|
2830
|
+
if (r !== s)
|
|
2831
|
+
return !1;
|
|
2832
|
+
const a = Ne(e, t), l = Ne(e, n);
|
|
2833
|
+
return a === l;
|
|
2834
|
+
}
|
|
2835
|
+
function kn(e, t, n, r) {
|
|
2836
|
+
if (r.length == 0)
|
|
2837
|
+
return [];
|
|
2838
|
+
if (t === "" || t === null || t === void 0)
|
|
2839
|
+
return [];
|
|
2840
|
+
Array.isArray(t) || (t = [t]);
|
|
2841
|
+
const s = [];
|
|
2842
|
+
return t.forEach((a) => {
|
|
2843
|
+
for (let l of r) {
|
|
2844
|
+
const o = Hn(e, l);
|
|
2845
|
+
if (Array.isArray(o) && o.length > 0) {
|
|
2846
|
+
const u = kn(e, a, n, o);
|
|
2847
|
+
Reflect.apply([].push, s, u);
|
|
2848
|
+
} else {
|
|
2849
|
+
let u = !1;
|
|
2850
|
+
if (n === "text")
|
|
2851
|
+
u = Oe(e, l) === a;
|
|
2852
|
+
else if (n === "item")
|
|
2853
|
+
u = qn(e, l, a);
|
|
2854
|
+
else {
|
|
2855
|
+
let i = Ne(e, l);
|
|
2856
|
+
i == null && (i = Oe(e, l)), u = i === a;
|
|
2857
|
+
}
|
|
2858
|
+
if (u) {
|
|
2859
|
+
s.push(l);
|
|
2860
|
+
break;
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
}), s;
|
|
2865
|
+
}
|
|
2866
|
+
function wo(e) {
|
|
2867
|
+
return {
|
|
2868
|
+
text: e,
|
|
2869
|
+
value: e
|
|
2870
|
+
};
|
|
2871
|
+
}
|
|
2872
|
+
const Jt = {
|
|
2873
|
+
modelValue: {
|
|
2874
|
+
type: [String, Object, Boolean, Number],
|
|
2875
|
+
required: !1
|
|
2876
|
+
},
|
|
2877
|
+
source: {
|
|
2878
|
+
type: [Array, Function, String],
|
|
2879
|
+
default: []
|
|
2880
|
+
},
|
|
2881
|
+
params: {
|
|
2882
|
+
type: Object
|
|
2883
|
+
},
|
|
2884
|
+
clearable: {
|
|
2885
|
+
type: [Boolean, String],
|
|
2886
|
+
default: !0
|
|
2887
|
+
},
|
|
2888
|
+
multiple: {
|
|
2889
|
+
type: [Boolean],
|
|
2890
|
+
default: !1
|
|
2891
|
+
},
|
|
2892
|
+
valueType: {
|
|
2893
|
+
type: String,
|
|
2894
|
+
required: !1,
|
|
2895
|
+
default: "value"
|
|
2896
|
+
},
|
|
2897
|
+
textKey: {
|
|
2898
|
+
type: [String],
|
|
2899
|
+
required: !1,
|
|
2900
|
+
default: "text"
|
|
2901
|
+
},
|
|
2902
|
+
valueKey: {
|
|
2903
|
+
type: [String],
|
|
2904
|
+
required: !1,
|
|
2905
|
+
default: "value"
|
|
2906
|
+
},
|
|
2907
|
+
childrenKey: {
|
|
2908
|
+
type: [String],
|
|
2909
|
+
required: !1,
|
|
2910
|
+
default: "children"
|
|
2911
|
+
},
|
|
2912
|
+
remoteMethod: {
|
|
2913
|
+
type: [Function],
|
|
2914
|
+
required: !1
|
|
2915
|
+
},
|
|
2916
|
+
allowCreate: {
|
|
2917
|
+
type: Boolean,
|
|
2918
|
+
default: !1
|
|
2919
|
+
},
|
|
2920
|
+
unit: {
|
|
2921
|
+
type: [String],
|
|
2922
|
+
required: !1
|
|
2923
|
+
}
|
|
2924
|
+
};
|
|
2925
|
+
function xo(e, t, n) {
|
|
2926
|
+
return {
|
|
2927
|
+
props: {
|
|
2928
|
+
...de,
|
|
2929
|
+
...Re,
|
|
2930
|
+
...Jt
|
|
2931
|
+
},
|
|
2932
|
+
emits: ["change", "update:modelValue", "blur", "focus", "clear", "visible-change", "remove-tag"],
|
|
2933
|
+
setup(r, s) {
|
|
2934
|
+
const { emitEvent: a } = Ce(
|
|
2935
|
+
{
|
|
2936
|
+
componentName: e
|
|
2937
|
+
},
|
|
2938
|
+
r.prop ?? r.name
|
|
2939
|
+
), { toLocaleRefs: l } = ke(t), o = l(r, ["placeholder"]), u = B(), i = B([]), f = (d, O, y, b = !0) => {
|
|
2940
|
+
const T = kn(r, d, O, y);
|
|
2941
|
+
let D = !0;
|
|
2942
|
+
if (T.length !== i.value.length)
|
|
2943
|
+
D = !1;
|
|
2944
|
+
else
|
|
2945
|
+
for (let _ = 0; _ < T.length; _++) {
|
|
2946
|
+
const H = T[_], j = i.value[_];
|
|
2947
|
+
if (!qn(r, H, j)) {
|
|
2948
|
+
D = !1;
|
|
2949
|
+
break;
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2952
|
+
if (!D) {
|
|
2953
|
+
i.value = T;
|
|
2954
|
+
let _ = [], H = [];
|
|
2955
|
+
T.forEach((W) => (_.push(Ne(r, W)), r.valueType === "text" ? H.push(Oe(r, W)) : r.valueType === "item" ? H.push(W) : H.push(Ne(r, W)), Ne(r, W)));
|
|
2956
|
+
let j;
|
|
2957
|
+
r.multiple ? (u.value = _, j = oe(H)) : (u.value = _[0] ?? "", j = oe(H[0] ?? "")), b && (a("update:modelValue", j), a("change", j));
|
|
2958
|
+
}
|
|
2959
|
+
}, c = B([]), $ = $o();
|
|
2960
|
+
Ot(async () => {
|
|
2961
|
+
if (r.source) {
|
|
2962
|
+
let d = await $.load("select", r.source, r.params);
|
|
2963
|
+
if (d.length > 0)
|
|
2964
|
+
if (typeof d[0] == "string") {
|
|
2965
|
+
let b = d.map((T) => wo(T));
|
|
2966
|
+
c.value = b;
|
|
2967
|
+
} else
|
|
2968
|
+
c.value = d;
|
|
2969
|
+
}
|
|
2970
|
+
}), se([() => c.value, () => r.modelValue], ([d, O]) => {
|
|
2971
|
+
f(O, r.valueType, d, !1);
|
|
2972
|
+
});
|
|
2973
|
+
let A = null, m = B(!1);
|
|
2974
|
+
typeof r.remoteMethod == "function" && (A = async (d) => {
|
|
2975
|
+
if (d != null) {
|
|
2976
|
+
m.value = !0;
|
|
2977
|
+
try {
|
|
2978
|
+
const O = await r.remoteMethod(d);
|
|
2979
|
+
c.value = O;
|
|
2980
|
+
} catch (O) {
|
|
2981
|
+
console.error(O);
|
|
2982
|
+
}
|
|
2983
|
+
m.value = !1;
|
|
2984
|
+
}
|
|
2985
|
+
});
|
|
2986
|
+
const h = B(!1), p = Ge(M(() => r.disabled)), S = Ke(M(() => r.readonly)), R = e, V = M(() => ({
|
|
2987
|
+
[R]: !0
|
|
2988
|
+
})), I = (d) => {
|
|
2989
|
+
r.allowCreate ? (a("update:modelValue", d), a("change", d), u.value = d) : f(d, "value", c.value, !0);
|
|
2990
|
+
};
|
|
2991
|
+
let w = fe(r, "hintText"), g = B(!1);
|
|
2992
|
+
const N = (d) => {
|
|
2993
|
+
let y = d.target.value;
|
|
2994
|
+
h.value = !0, Pe(w.value) || (g.value = !0), a("focus", y, d);
|
|
2995
|
+
}, x = (d) => {
|
|
2996
|
+
setTimeout(() => {
|
|
2997
|
+
g.value && (g.value = !1), h.value = !1;
|
|
2998
|
+
}, 0);
|
|
2999
|
+
let y = d.target.value;
|
|
3000
|
+
r.maxLength && y.length > Number(r.maxLength) && (y = y.slice(0, Number(r.maxLength))), v.value ? setTimeout(() => {
|
|
3001
|
+
a("blur", y, d);
|
|
3002
|
+
}, 50) : a("blur", y, d);
|
|
3003
|
+
}, P = () => {
|
|
3004
|
+
a("clear", "");
|
|
3005
|
+
}, v = B(!1), L = (d) => {
|
|
3006
|
+
v.value = d, a("visible-change", d);
|
|
3007
|
+
}, k = (d) => {
|
|
3008
|
+
a("remove-tag", d);
|
|
3009
|
+
}, C = (d, O) => {
|
|
3010
|
+
const y = [];
|
|
3011
|
+
return d.forEach((b, T) => {
|
|
3012
|
+
const D = Hn(r, b);
|
|
3013
|
+
if (Array.isArray(D) && D.length > 0) {
|
|
3014
|
+
const _ = C(D, O), H = Oe(r, b), W = {
|
|
3015
|
+
key: `${H}_${T}`,
|
|
3016
|
+
label: H
|
|
3017
|
+
};
|
|
3018
|
+
y.push(F(yn, W, { default: () => _ }));
|
|
3019
|
+
} else {
|
|
3020
|
+
const _ = Ne(r, b), H = Oe(r, b), j = nt(b.disabled), Q = {
|
|
3021
|
+
key: `${_}_${T}`,
|
|
3022
|
+
label: H,
|
|
3023
|
+
disabled: j,
|
|
3024
|
+
value: _
|
|
3025
|
+
};
|
|
3026
|
+
typeof O == "function" || y.push(F(mn, Q));
|
|
3027
|
+
}
|
|
3028
|
+
}), y;
|
|
3029
|
+
}, E = B();
|
|
3030
|
+
return Me({
|
|
3031
|
+
focus: () => {
|
|
3032
|
+
E?.value.focus();
|
|
3033
|
+
},
|
|
3034
|
+
blur: () => {
|
|
3035
|
+
E?.value.blur();
|
|
3036
|
+
}
|
|
3037
|
+
}), () => {
|
|
3038
|
+
const O = {
|
|
3039
|
+
...s.attrs,
|
|
3040
|
+
ref: E,
|
|
3041
|
+
class: V.value,
|
|
3042
|
+
clearable: r.clearable,
|
|
3043
|
+
multiple: r.multiple,
|
|
3044
|
+
placeholder: o.placeholder.value,
|
|
3045
|
+
disabled: p.value || S.value,
|
|
3046
|
+
modelValue: u.value,
|
|
3047
|
+
["value-key"]: r.valueKey,
|
|
3048
|
+
["allow-create"]: r.allowCreate,
|
|
3049
|
+
onClear: P,
|
|
3050
|
+
onChange: I,
|
|
3051
|
+
onFocus: N,
|
|
3052
|
+
onBlur: x,
|
|
3053
|
+
onVisibleChange: L,
|
|
3054
|
+
onRemoveTag: k
|
|
3055
|
+
};
|
|
3056
|
+
typeof A == "function" && (O["remote-method"] = A, O.loading = m.value);
|
|
3057
|
+
const y = {};
|
|
3058
|
+
s.slots.prefix && (y.prefix = s.slots.prefix), s.slots.empty && (y.empty = s.slots.empty), y.default = () => C(c.value, s.slots.option);
|
|
3059
|
+
const b = [], T = F(pn, O, y);
|
|
3060
|
+
b.push(T);
|
|
3061
|
+
const D = {
|
|
3062
|
+
default: () => b
|
|
3063
|
+
};
|
|
3064
|
+
if (s.slots.default) {
|
|
3065
|
+
const W = s.slots.default();
|
|
3066
|
+
D.label = () => W;
|
|
3067
|
+
}
|
|
3068
|
+
const H = {
|
|
3069
|
+
...Be(r, Jt),
|
|
3070
|
+
hintText: w.value,
|
|
3071
|
+
hintVisible: g.value,
|
|
3072
|
+
prop: `${r.prop}_item`
|
|
3073
|
+
};
|
|
3074
|
+
return F(n, H, D);
|
|
3075
|
+
};
|
|
3076
|
+
}
|
|
3077
|
+
};
|
|
3078
|
+
}
|
|
3079
|
+
const { componentName: So, create: Eo, scope: Ao } = Z("select-item"), No = Eo(xo(So, Ao, Ve)), Qt = {
|
|
3080
|
+
modelValue: {
|
|
3081
|
+
type: [Date, Number, String, Array],
|
|
3082
|
+
required: !1
|
|
3083
|
+
},
|
|
3084
|
+
unit: {
|
|
3085
|
+
type: [String],
|
|
3086
|
+
required: !1
|
|
3087
|
+
}
|
|
3088
|
+
};
|
|
3089
|
+
function Oo(e, t, n) {
|
|
3090
|
+
return {
|
|
3091
|
+
props: {
|
|
3092
|
+
...de,
|
|
3093
|
+
...Re,
|
|
3094
|
+
...Qt
|
|
3095
|
+
},
|
|
3096
|
+
emits: [
|
|
3097
|
+
"change",
|
|
3098
|
+
"update:modelValue",
|
|
3099
|
+
"blur",
|
|
3100
|
+
"focus",
|
|
3101
|
+
"clear",
|
|
3102
|
+
"visible-change",
|
|
3103
|
+
"calendar-change",
|
|
3104
|
+
"panel-change"
|
|
3105
|
+
],
|
|
3106
|
+
setup(r, s) {
|
|
3107
|
+
const { emitEvent: a } = Ce(
|
|
3108
|
+
{
|
|
3109
|
+
componentName: e
|
|
3110
|
+
},
|
|
3111
|
+
r.prop ?? r.name
|
|
3112
|
+
), { toLocaleRefs: l } = ke(t), o = l(r, ["placeholder"]), u = B(!1), i = Ge(M(() => r.disabled)), f = Ke(M(() => r.readonly)), c = fe(r, "modelValue"), $ = e, A = M(() => ({
|
|
3113
|
+
[$]: !0
|
|
3114
|
+
})), m = (x) => {
|
|
3115
|
+
c.value = x, a("update:modelValue", x), a("change", x);
|
|
3116
|
+
};
|
|
3117
|
+
let h = fe(r, "hintText"), p = B(!1);
|
|
3118
|
+
const S = (x) => {
|
|
3119
|
+
let v = x.target.value;
|
|
3120
|
+
u.value = !0, Pe(h.value) || (p.value = !0), a("focus", v, x);
|
|
3121
|
+
}, R = (x) => {
|
|
3122
|
+
setTimeout(() => {
|
|
3123
|
+
p.value && (p.value = !1), u.value = !1;
|
|
3124
|
+
}, 0);
|
|
3125
|
+
let v = x.target.value;
|
|
3126
|
+
r.maxLength && v.length > Number(r.maxLength) && (v = v.slice(0, Number(r.maxLength))), a("blur", v, x);
|
|
3127
|
+
}, V = () => {
|
|
3128
|
+
a("clear", "");
|
|
3129
|
+
}, I = (x) => {
|
|
3130
|
+
a("calendar-change", x);
|
|
3131
|
+
}, w = (x, P, v) => {
|
|
3132
|
+
a("panel-change", x, P, v);
|
|
3133
|
+
}, g = (x) => {
|
|
3134
|
+
a("visible-change", x);
|
|
3135
|
+
}, N = B();
|
|
3136
|
+
return Me({
|
|
3137
|
+
focus: () => {
|
|
3138
|
+
N?.value.focus();
|
|
3139
|
+
},
|
|
3140
|
+
blur: () => {
|
|
3141
|
+
N?.value.blur();
|
|
3142
|
+
},
|
|
3143
|
+
handleOpen: () => {
|
|
3144
|
+
N?.value.handleOpen();
|
|
3145
|
+
},
|
|
3146
|
+
handleClose: () => {
|
|
3147
|
+
N?.value.handleClose();
|
|
3148
|
+
}
|
|
3149
|
+
}), () => {
|
|
3150
|
+
const P = {
|
|
3151
|
+
...s.attrs,
|
|
3152
|
+
ref: N,
|
|
3153
|
+
class: A.value,
|
|
3154
|
+
placeholder: o.placeholder.value,
|
|
3155
|
+
disabled: i.value,
|
|
3156
|
+
readonly: f.value,
|
|
3157
|
+
modelValue: c.value,
|
|
3158
|
+
["onUpdate:modelValue"]: m,
|
|
3159
|
+
onClear: V,
|
|
3160
|
+
onFocus: S,
|
|
3161
|
+
onBlur: R,
|
|
3162
|
+
onCalendarChange: I,
|
|
3163
|
+
onPanelChange: w,
|
|
3164
|
+
onVisibleChange: g
|
|
3165
|
+
}, v = {};
|
|
3166
|
+
s.slots["range-separator"] && (v["range-separator"] = s.slots["range-separator"]), s.slots.cell && (v.default = s.slots.cell);
|
|
3167
|
+
const L = [], k = F(fn, P, v);
|
|
3168
|
+
L.push(k);
|
|
3169
|
+
const C = {
|
|
3170
|
+
default: () => L
|
|
3171
|
+
};
|
|
3172
|
+
if (s.slots.default) {
|
|
3173
|
+
const y = s.slots.default();
|
|
3174
|
+
C.label = () => y;
|
|
3175
|
+
}
|
|
3176
|
+
const d = {
|
|
3177
|
+
...Be(r, Qt),
|
|
3178
|
+
hintText: h.value,
|
|
3179
|
+
hintVisible: p.value,
|
|
3180
|
+
prop: `${r.prop}_item`
|
|
3181
|
+
};
|
|
3182
|
+
return F(n, d, C);
|
|
3183
|
+
};
|
|
3184
|
+
}
|
|
3185
|
+
};
|
|
3186
|
+
}
|
|
3187
|
+
const { componentName: Po, create: To, scope: Co } = Z("date-item"), Ro = To(Oo(Po, Co, Ve)), en = {
|
|
3188
|
+
modelValue: {
|
|
3189
|
+
type: [Date, Number, String, Array],
|
|
3190
|
+
required: !1
|
|
3191
|
+
},
|
|
3192
|
+
unit: {
|
|
3193
|
+
type: [String],
|
|
3194
|
+
required: !1
|
|
3195
|
+
}
|
|
3196
|
+
};
|
|
3197
|
+
function Mo(e, t, n) {
|
|
3198
|
+
return {
|
|
3199
|
+
props: {
|
|
3200
|
+
...de,
|
|
3201
|
+
...Re,
|
|
3202
|
+
...en
|
|
3203
|
+
},
|
|
3204
|
+
emits: ["change", "update:modelValue", "blur", "focus", "clear", "visible-change"],
|
|
3205
|
+
setup(r, s) {
|
|
3206
|
+
const { emitEvent: a } = Ce(
|
|
3207
|
+
{
|
|
3208
|
+
componentName: e
|
|
3209
|
+
},
|
|
3210
|
+
r.prop ?? r.name
|
|
3211
|
+
), { toLocaleRefs: l } = ke(t), o = l(r, ["placeholder"]), u = B(!1), i = Ge(M(() => r.disabled)), f = Ke(M(() => r.readonly)), c = fe(r, "modelValue"), $ = e, A = M(() => ({
|
|
3212
|
+
[$]: !0
|
|
3213
|
+
})), m = (g) => {
|
|
3214
|
+
c.value = g, a("update:modelValue", g), a("change", g);
|
|
3215
|
+
};
|
|
3216
|
+
let h = fe(r, "hintText"), p = B(!1);
|
|
3217
|
+
const S = (g) => {
|
|
3218
|
+
let x = g.target.value;
|
|
3219
|
+
u.value = !0, Pe(h.value) || (p.value = !0), a("focus", x, g);
|
|
3220
|
+
}, R = (g) => {
|
|
3221
|
+
setTimeout(() => {
|
|
3222
|
+
p.value && (p.value = !1), u.value = !1;
|
|
3223
|
+
}, 0);
|
|
3224
|
+
let x = g.target.value;
|
|
3225
|
+
r.maxLength && x.length > Number(r.maxLength) && (x = x.slice(0, Number(r.maxLength))), a("blur", x, g);
|
|
3226
|
+
}, V = () => {
|
|
3227
|
+
a("clear", "");
|
|
3228
|
+
}, I = (g) => {
|
|
3229
|
+
a("visible-change", g);
|
|
3230
|
+
}, w = B();
|
|
3231
|
+
return Me({
|
|
3232
|
+
focus: () => {
|
|
3233
|
+
w?.value.focus();
|
|
3234
|
+
},
|
|
3235
|
+
blur: () => {
|
|
3236
|
+
w?.value.blur();
|
|
3237
|
+
},
|
|
3238
|
+
handleOpen: () => {
|
|
3239
|
+
w?.value.handleOpen();
|
|
3240
|
+
},
|
|
3241
|
+
handleClose: () => {
|
|
3242
|
+
w?.value.handleClose();
|
|
3243
|
+
}
|
|
3244
|
+
}), () => {
|
|
3245
|
+
const N = {
|
|
3246
|
+
...s.attrs,
|
|
3247
|
+
ref: w,
|
|
3248
|
+
class: A.value,
|
|
3249
|
+
placeholder: o.placeholder.value,
|
|
3250
|
+
disabled: i.value,
|
|
3251
|
+
readonly: f.value,
|
|
3252
|
+
modelValue: c.value,
|
|
3253
|
+
["onUpdate:modelValue"]: m,
|
|
3254
|
+
onClear: V,
|
|
3255
|
+
onFocus: S,
|
|
3256
|
+
onBlur: R,
|
|
3257
|
+
onVisibleChange: I
|
|
3258
|
+
}, x = {}, P = [], v = F(bn, N, x);
|
|
3259
|
+
P.push(v);
|
|
3260
|
+
const L = {
|
|
3261
|
+
default: () => P
|
|
3262
|
+
};
|
|
3263
|
+
if (s.slots.default) {
|
|
3264
|
+
const d = s.slots.default();
|
|
3265
|
+
L.label = () => d;
|
|
3266
|
+
}
|
|
3267
|
+
const C = {
|
|
3268
|
+
...Be(r, en),
|
|
3269
|
+
hintText: h.value,
|
|
3270
|
+
hintVisible: p.value,
|
|
3271
|
+
prop: `${r.prop}_item`
|
|
3272
|
+
};
|
|
3273
|
+
return F(n, C, L);
|
|
3274
|
+
};
|
|
3275
|
+
}
|
|
3276
|
+
};
|
|
3277
|
+
}
|
|
3278
|
+
const { componentName: Io, create: Vo, scope: Do } = Z("time-item"), _o = Vo(Mo(Io, Do, Ve)), tn = {
|
|
3279
|
+
modelValue: {
|
|
3280
|
+
type: [Date, Number, String, Array],
|
|
3281
|
+
required: !1
|
|
3282
|
+
},
|
|
3283
|
+
unit: {
|
|
3284
|
+
type: [String],
|
|
3285
|
+
required: !1
|
|
3286
|
+
}
|
|
3287
|
+
};
|
|
3288
|
+
function Lo(e, t, n) {
|
|
3289
|
+
return {
|
|
3290
|
+
props: {
|
|
3291
|
+
...de,
|
|
3292
|
+
...Re,
|
|
3293
|
+
...tn
|
|
3294
|
+
},
|
|
3295
|
+
emits: ["change", "update:modelValue", "blur", "focus", "clear"],
|
|
3296
|
+
setup(r, s) {
|
|
3297
|
+
const { emitEvent: a } = Ce(
|
|
3298
|
+
{
|
|
3299
|
+
componentName: e
|
|
3300
|
+
},
|
|
3301
|
+
r.prop ?? r.name
|
|
3302
|
+
), { toLocaleRefs: l } = ke(t), o = l(r, ["placeholder"]), u = B(!1), i = Ge(M(() => r.disabled)), f = Ke(M(() => r.readonly)), c = fe(r, "modelValue"), $ = e, A = M(() => ({
|
|
3303
|
+
[$]: !0
|
|
3304
|
+
})), m = (w) => {
|
|
3305
|
+
c.value = w, a("update:modelValue", w), a("change", w);
|
|
3306
|
+
};
|
|
3307
|
+
let h = fe(r, "hintText"), p = B(!1);
|
|
3308
|
+
const S = (w) => {
|
|
3309
|
+
let N = w.target.value;
|
|
3310
|
+
u.value = !0, Pe(h.value) || (p.value = !0), a("focus", N, w);
|
|
3311
|
+
}, R = (w) => {
|
|
3312
|
+
setTimeout(() => {
|
|
3313
|
+
p.value && (p.value = !1), u.value = !1;
|
|
3314
|
+
}, 0);
|
|
3315
|
+
let N = w.target.value;
|
|
3316
|
+
r.maxLength && N.length > Number(r.maxLength) && (N = N.slice(0, Number(r.maxLength))), a("blur", N, w);
|
|
3317
|
+
}, V = () => {
|
|
3318
|
+
a("clear", "");
|
|
3319
|
+
}, I = B();
|
|
3320
|
+
return Me({
|
|
3321
|
+
focus: () => {
|
|
3322
|
+
I?.value.focus();
|
|
3323
|
+
},
|
|
3324
|
+
blur: () => {
|
|
3325
|
+
I?.value.blur();
|
|
3326
|
+
},
|
|
3327
|
+
handleOpen: () => {
|
|
3328
|
+
I?.value.handleOpen();
|
|
3329
|
+
},
|
|
3330
|
+
handleClose: () => {
|
|
3331
|
+
I?.value.handleClose();
|
|
3332
|
+
}
|
|
3333
|
+
}), () => {
|
|
3334
|
+
const g = {
|
|
3335
|
+
...s.attrs,
|
|
3336
|
+
ref: I,
|
|
3337
|
+
class: A.value,
|
|
3338
|
+
placeholder: o.placeholder.value,
|
|
3339
|
+
disabled: i.value,
|
|
3340
|
+
readonly: f.value,
|
|
3341
|
+
modelValue: c.value,
|
|
3342
|
+
["onUpdate:modelValue"]: m,
|
|
3343
|
+
onClear: V,
|
|
3344
|
+
onFocus: S,
|
|
3345
|
+
onBlur: R
|
|
3346
|
+
}, N = {}, x = [], P = F($n, g, N);
|
|
3347
|
+
x.push(P);
|
|
3348
|
+
const v = {
|
|
3349
|
+
default: () => x
|
|
3350
|
+
};
|
|
3351
|
+
if (s.slots.default) {
|
|
3352
|
+
const E = s.slots.default();
|
|
3353
|
+
v.label = () => E;
|
|
3354
|
+
}
|
|
3355
|
+
const k = {
|
|
3356
|
+
...Be(r, tn),
|
|
3357
|
+
hintText: h.value,
|
|
3358
|
+
hintVisible: p.value,
|
|
3359
|
+
prop: `${r.prop}_item`
|
|
3360
|
+
};
|
|
3361
|
+
return F(n, k, v);
|
|
3362
|
+
};
|
|
3363
|
+
}
|
|
3364
|
+
};
|
|
3365
|
+
}
|
|
3366
|
+
const { componentName: Ho, create: qo, scope: ko } = Z("time-select-item"), Bo = qo(Lo(Ho, ko, Ve));
|
|
3367
|
+
class jo {
|
|
3368
|
+
proxy;
|
|
3369
|
+
constructor(t) {
|
|
3370
|
+
this.proxy = t;
|
|
3371
|
+
}
|
|
3372
|
+
async load(t, n, r, s, a, l, o) {
|
|
3373
|
+
if (Array.isArray(n)) {
|
|
3374
|
+
let i = (r - 1) * s, f = i + s;
|
|
3375
|
+
f > n.length && (f = n.length);
|
|
3376
|
+
const c = n.slice(i, f);
|
|
3377
|
+
return {
|
|
3378
|
+
totalSize: n.length,
|
|
3379
|
+
page: c
|
|
3380
|
+
};
|
|
3381
|
+
}
|
|
3382
|
+
if (typeof n == "function")
|
|
3383
|
+
return await Reflect.apply(n, null, [r, s, a, l, o]);
|
|
3384
|
+
const u = _t(this.proxy, t);
|
|
3385
|
+
return u === null ? (console.error(`${t} component not found api function`), {
|
|
3386
|
+
totalSize: 0,
|
|
3387
|
+
page: []
|
|
3388
|
+
}) : (cn(a) && Tt(a) && (a = oe(a)), await await Reflect.apply(u, null, [n, r, s, a, l, o]));
|
|
3389
|
+
}
|
|
3390
|
+
}
|
|
3391
|
+
function Fo() {
|
|
3392
|
+
const e = ie();
|
|
3393
|
+
return new jo(e.proxy);
|
|
3394
|
+
}
|
|
3395
|
+
const nn = {
|
|
3396
|
+
data: {
|
|
3397
|
+
type: [String, Array, Function],
|
|
3398
|
+
required: !0
|
|
3399
|
+
},
|
|
3400
|
+
baseParams: {
|
|
3401
|
+
type: [String, Object]
|
|
3402
|
+
},
|
|
3403
|
+
params: {
|
|
3404
|
+
type: [String, Object]
|
|
3405
|
+
}
|
|
3406
|
+
}, rn = {
|
|
3407
|
+
pageIndex: {
|
|
3408
|
+
type: [Number],
|
|
3409
|
+
required: !1,
|
|
3410
|
+
default: 1
|
|
3411
|
+
},
|
|
3412
|
+
pageSize: {
|
|
3413
|
+
type: [Number],
|
|
3414
|
+
required: !1,
|
|
3415
|
+
default: 10
|
|
3416
|
+
},
|
|
3417
|
+
pageSizes: {
|
|
3418
|
+
type: [Array],
|
|
3419
|
+
required: !1
|
|
3420
|
+
},
|
|
3421
|
+
paginationLayout: {
|
|
3422
|
+
type: [String],
|
|
3423
|
+
required: !1,
|
|
3424
|
+
default: "total, sizes, prev, pager, next, jumper"
|
|
3425
|
+
},
|
|
3426
|
+
paginationAlign: {
|
|
3427
|
+
type: [String],
|
|
3428
|
+
required: !1,
|
|
3429
|
+
default: "right"
|
|
3430
|
+
},
|
|
3431
|
+
paginationVisible: {
|
|
3432
|
+
type: [Boolean],
|
|
3433
|
+
required: !1,
|
|
3434
|
+
default: !0
|
|
3435
|
+
},
|
|
3436
|
+
hideOnSinglePage: {
|
|
3437
|
+
type: [Boolean],
|
|
3438
|
+
required: !1,
|
|
3439
|
+
default: !0
|
|
3440
|
+
}
|
|
3441
|
+
};
|
|
3442
|
+
function Wo(e, t, n) {
|
|
3443
|
+
return {
|
|
3444
|
+
props: {
|
|
3445
|
+
...de,
|
|
3446
|
+
...Re,
|
|
3447
|
+
...nn,
|
|
3448
|
+
...rn
|
|
3449
|
+
},
|
|
3450
|
+
emits: ["change", "page-size-change", "page-index-change"],
|
|
3451
|
+
setup(r, s) {
|
|
3452
|
+
const { locale: a } = ke(t), { emitEvent: l } = Ce(
|
|
3453
|
+
{
|
|
3454
|
+
componentName: e
|
|
3455
|
+
},
|
|
3456
|
+
r.prop ?? r.name
|
|
3457
|
+
), o = e, u = M(() => ({
|
|
3458
|
+
[o]: !0
|
|
3459
|
+
})), i = M(() => ({
|
|
3460
|
+
[`${o}__pagination`]: !0,
|
|
3461
|
+
[`${o}__pagination__${r.paginationAlign}`]: !0
|
|
3462
|
+
})), f = B(r.pageIndex);
|
|
3463
|
+
se(
|
|
3464
|
+
() => r.pageIndex,
|
|
3465
|
+
(g) => {
|
|
3466
|
+
f.value = g;
|
|
3467
|
+
}
|
|
3468
|
+
);
|
|
3469
|
+
const c = (g) => {
|
|
3470
|
+
f.value = g, l("page-index-change", g);
|
|
3471
|
+
}, $ = B(r.pageSize);
|
|
3472
|
+
se(
|
|
3473
|
+
() => r.pageSize,
|
|
3474
|
+
(g) => {
|
|
3475
|
+
$.value = g;
|
|
3476
|
+
}
|
|
3477
|
+
);
|
|
3478
|
+
const A = (g) => {
|
|
3479
|
+
$.value = g, l("page-size-change", g);
|
|
3480
|
+
}, m = M(() => ({ ...r.params ?? {}, ...r.baseParams ?? {} })), h = B(0), p = B(), S = Fo();
|
|
3481
|
+
let R = !0;
|
|
3482
|
+
const V = async (g, N, x, P, v = !1) => {
|
|
3483
|
+
try {
|
|
3484
|
+
const L = await S.load("table", g, N, x, P, v, a.value);
|
|
3485
|
+
h.value = L.totalSize, p.value = L.page;
|
|
3486
|
+
} catch (L) {
|
|
3487
|
+
console.error("[FoxUI] Load Table Data Fail", L), h.value = 0, p.value = [];
|
|
3488
|
+
}
|
|
3489
|
+
};
|
|
3490
|
+
se(
|
|
3491
|
+
[() => r.data, f, $, m],
|
|
3492
|
+
([g, N, x, P], [v, L, k, C]) => {
|
|
3493
|
+
x !== k && (f.value = 1, N = 1), g !== v && (R = !0), V(g, N, x, P, R);
|
|
3494
|
+
},
|
|
3495
|
+
{ immediate: !0 }
|
|
3496
|
+
);
|
|
3497
|
+
const I = () => {
|
|
3498
|
+
setTimeout(() => {
|
|
3499
|
+
V(r.data, f.value, $.value, m.value, R);
|
|
3500
|
+
}, 0);
|
|
3501
|
+
}, w = B();
|
|
3502
|
+
return s.expose({
|
|
3503
|
+
clearSelection: () => w?.value.clearSelection(),
|
|
3504
|
+
getSelectionRows: () => w?.value.getSelectionRows(),
|
|
3505
|
+
toggleRowSelection: (g, N) => {
|
|
3506
|
+
w?.value.toggleRowSelection(g, N);
|
|
3507
|
+
},
|
|
3508
|
+
toggleAllSelection: () => {
|
|
3509
|
+
w?.value.toggleAllSelection();
|
|
3510
|
+
},
|
|
3511
|
+
toggleRowExpansion: (g, N) => {
|
|
3512
|
+
w?.value.toggleRowExpansion(g, N);
|
|
3513
|
+
},
|
|
3514
|
+
setCurrentRow: (g) => {
|
|
3515
|
+
w?.value.setCurrentRow(g);
|
|
3516
|
+
},
|
|
3517
|
+
clearSort: () => {
|
|
3518
|
+
w?.value.clearSort();
|
|
3519
|
+
},
|
|
3520
|
+
clearFilter: (g) => {
|
|
3521
|
+
w?.value.clearFilter(g);
|
|
3522
|
+
},
|
|
3523
|
+
doLayout: () => {
|
|
3524
|
+
w?.value.doLayout();
|
|
3525
|
+
},
|
|
3526
|
+
sort: (g, N) => {
|
|
3527
|
+
w?.value.sort(g, N);
|
|
3528
|
+
},
|
|
3529
|
+
scrollTo: (g, N) => {
|
|
3530
|
+
w?.value.scrollTo(g, N);
|
|
3531
|
+
},
|
|
3532
|
+
setScrollTop: (g) => {
|
|
3533
|
+
w?.value.setScrollTop(g);
|
|
3534
|
+
},
|
|
3535
|
+
setScrollLeft: (g) => {
|
|
3536
|
+
w?.value.setScrollLeft(g);
|
|
3537
|
+
},
|
|
3538
|
+
refresh: I
|
|
3539
|
+
}), () => {
|
|
3540
|
+
const N = {
|
|
3541
|
+
...s.attrs,
|
|
3542
|
+
data: p.value,
|
|
3543
|
+
ref: w,
|
|
3544
|
+
class: u.value
|
|
3545
|
+
}, x = {};
|
|
3546
|
+
s.slots.default && (x.default = s.slots.default), s.slots.append && (x.append = s.slots.append), s.slots.empty && (x.empty = s.slots.empty);
|
|
3547
|
+
const P = [], v = F(vn, N, x);
|
|
3548
|
+
if (P.push(v), typeof s.slots.pagination == "function") {
|
|
3549
|
+
const d = s.slots.pagination();
|
|
3550
|
+
P.push(d);
|
|
3551
|
+
} else if (r.paginationVisible) {
|
|
3552
|
+
const d = {
|
|
3553
|
+
class: i.value,
|
|
3554
|
+
total: h.value,
|
|
3555
|
+
pageSize: $.value,
|
|
3556
|
+
["onUpdate:pageSize"]: A,
|
|
3557
|
+
pageSizes: r.pageSizes,
|
|
3558
|
+
currentPage: f.value,
|
|
3559
|
+
["onUpdate:currentPage"]: c,
|
|
3560
|
+
hideOnSinglePage: r.hideOnSinglePage,
|
|
3561
|
+
layout: r.paginationLayout,
|
|
3562
|
+
small: !0
|
|
3563
|
+
}, O = F(gn, d);
|
|
3564
|
+
P.push(O);
|
|
3565
|
+
}
|
|
3566
|
+
const L = {
|
|
3567
|
+
default: () => P
|
|
3568
|
+
}, C = { ...Be(r, nn, rn), prop: `${r.prop}_item` };
|
|
3569
|
+
return C.contentClass = `${o}__wrap`, F(n, C, L);
|
|
3570
|
+
};
|
|
3571
|
+
}
|
|
3572
|
+
};
|
|
3573
|
+
}
|
|
3574
|
+
const { componentName: Yo, create: Ko, scope: Go } = Z("table-item"), zo = Ko(Wo(Yo, Go, Ve)), Uo = Symbol.for("InnerPageScopeKey");
|
|
3575
|
+
function Zo(e, t) {
|
|
3576
|
+
return {
|
|
3577
|
+
props: {
|
|
3578
|
+
draggable: {
|
|
3579
|
+
type: [Boolean],
|
|
3580
|
+
default: !0
|
|
3581
|
+
},
|
|
3582
|
+
appendToBody: {
|
|
3583
|
+
type: [Boolean],
|
|
3584
|
+
default: !0
|
|
3585
|
+
},
|
|
3586
|
+
closeOnClickModal: {
|
|
3587
|
+
type: [Boolean],
|
|
3588
|
+
default: !1
|
|
3589
|
+
},
|
|
3590
|
+
closeOnPressEscape: {
|
|
3591
|
+
type: [Boolean],
|
|
3592
|
+
default: !1
|
|
3593
|
+
},
|
|
3594
|
+
beforeClose: {
|
|
3595
|
+
type: [Function]
|
|
3596
|
+
}
|
|
3597
|
+
},
|
|
3598
|
+
setup(n, r) {
|
|
3599
|
+
ve(Uo, !0);
|
|
3600
|
+
const s = B(!0), a = (l) => {
|
|
3601
|
+
s.value = l;
|
|
3602
|
+
};
|
|
3603
|
+
return () => {
|
|
3604
|
+
const o = {
|
|
3605
|
+
...r.attrs,
|
|
3606
|
+
draggable: n.draggable,
|
|
3607
|
+
modelValue: s.value,
|
|
3608
|
+
"onUpdate:modelValue": a,
|
|
3609
|
+
"append-to-body": n.appendToBody,
|
|
3610
|
+
"close-on-click-modal": n.closeOnClickModal,
|
|
3611
|
+
"close-on-press-escape": n.closeOnPressEscape,
|
|
3612
|
+
"before-close": n.beforeClose
|
|
3613
|
+
}, u = {};
|
|
3614
|
+
if (typeof r.slots.default == "function") {
|
|
3615
|
+
const i = r.slots.default();
|
|
3616
|
+
u.default = () => i;
|
|
3617
|
+
}
|
|
3618
|
+
return F(dn, o, u);
|
|
3619
|
+
};
|
|
3620
|
+
}
|
|
3621
|
+
};
|
|
3622
|
+
}
|
|
3623
|
+
const { componentName: Fi, create: Xo, scope: Wi } = Z("dialog-item"), Jo = Xo(Zo());
|
|
3624
|
+
var he = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Bn = { exports: {} };
|
|
3625
|
+
(function(e, t) {
|
|
3626
|
+
(function(n, r) {
|
|
3627
|
+
e.exports = r();
|
|
3628
|
+
})(he, function() {
|
|
3629
|
+
var n = 1e3, r = 6e4, s = 36e5, a = "millisecond", l = "second", o = "minute", u = "hour", i = "day", f = "week", c = "month", $ = "quarter", A = "year", m = "date", h = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, S = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_") }, V = function(C, E, d) {
|
|
3630
|
+
var O = String(C);
|
|
3631
|
+
return !O || O.length >= E ? C : "" + Array(E + 1 - O.length).join(d) + C;
|
|
3632
|
+
}, I = { s: V, z: function(C) {
|
|
3633
|
+
var E = -C.utcOffset(), d = Math.abs(E), O = Math.floor(d / 60), y = d % 60;
|
|
3634
|
+
return (E <= 0 ? "+" : "-") + V(O, 2, "0") + ":" + V(y, 2, "0");
|
|
3635
|
+
}, m: function C(E, d) {
|
|
3636
|
+
if (E.date() < d.date())
|
|
3637
|
+
return -C(d, E);
|
|
3638
|
+
var O = 12 * (d.year() - E.year()) + (d.month() - E.month()), y = E.clone().add(O, c), b = d - y < 0, T = E.clone().add(O + (b ? -1 : 1), c);
|
|
3639
|
+
return +(-(O + (d - y) / (b ? y - T : T - y)) || 0);
|
|
3640
|
+
}, a: function(C) {
|
|
3641
|
+
return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
|
|
3642
|
+
}, p: function(C) {
|
|
3643
|
+
return { M: c, y: A, w: f, d: i, D: m, h: u, m: o, s: l, ms: a, Q: $ }[C] || String(C || "").toLowerCase().replace(/s$/, "");
|
|
3644
|
+
}, u: function(C) {
|
|
3645
|
+
return C === void 0;
|
|
3646
|
+
} }, w = "en", g = {};
|
|
3647
|
+
g[w] = R;
|
|
3648
|
+
var N = function(C) {
|
|
3649
|
+
return C instanceof L;
|
|
3650
|
+
}, x = function C(E, d, O) {
|
|
3651
|
+
var y;
|
|
3652
|
+
if (!E)
|
|
3653
|
+
return w;
|
|
3654
|
+
if (typeof E == "string") {
|
|
3655
|
+
var b = E.toLowerCase();
|
|
3656
|
+
g[b] && (y = b), d && (g[b] = d, y = b);
|
|
3657
|
+
var T = E.split("-");
|
|
3658
|
+
if (!y && T.length > 1)
|
|
3659
|
+
return C(T[0]);
|
|
3660
|
+
} else {
|
|
3661
|
+
var D = E.name;
|
|
3662
|
+
g[D] = E, y = D;
|
|
3663
|
+
}
|
|
3664
|
+
return !O && y && (w = y), y || !O && w;
|
|
3665
|
+
}, P = function(C, E) {
|
|
3666
|
+
if (N(C))
|
|
3667
|
+
return C.clone();
|
|
3668
|
+
var d = typeof E == "object" ? E : {};
|
|
3669
|
+
return d.date = C, d.args = arguments, new L(d);
|
|
3670
|
+
}, v = I;
|
|
3671
|
+
v.l = x, v.i = N, v.w = function(C, E) {
|
|
3672
|
+
return P(C, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
3673
|
+
};
|
|
3674
|
+
var L = function() {
|
|
3675
|
+
function C(d) {
|
|
3676
|
+
this.$L = x(d.locale, null, !0), this.parse(d);
|
|
3677
|
+
}
|
|
3678
|
+
var E = C.prototype;
|
|
3679
|
+
return E.parse = function(d) {
|
|
3680
|
+
this.$d = function(O) {
|
|
3681
|
+
var y = O.date, b = O.utc;
|
|
3682
|
+
if (y === null)
|
|
3683
|
+
return new Date(NaN);
|
|
3684
|
+
if (v.u(y))
|
|
3685
|
+
return new Date();
|
|
3686
|
+
if (y instanceof Date)
|
|
3687
|
+
return new Date(y);
|
|
3688
|
+
if (typeof y == "string" && !/Z$/i.test(y)) {
|
|
3689
|
+
var T = y.match(p);
|
|
3690
|
+
if (T) {
|
|
3691
|
+
var D = T[2] - 1 || 0, _ = (T[7] || "0").substring(0, 3);
|
|
3692
|
+
return b ? new Date(Date.UTC(T[1], D, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, _)) : new Date(T[1], D, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, _);
|
|
3693
|
+
}
|
|
3694
|
+
}
|
|
3695
|
+
return new Date(y);
|
|
3696
|
+
}(d), this.$x = d.x || {}, this.init();
|
|
3697
|
+
}, E.init = function() {
|
|
3698
|
+
var d = this.$d;
|
|
3699
|
+
this.$y = d.getFullYear(), this.$M = d.getMonth(), this.$D = d.getDate(), this.$W = d.getDay(), this.$H = d.getHours(), this.$m = d.getMinutes(), this.$s = d.getSeconds(), this.$ms = d.getMilliseconds();
|
|
3700
|
+
}, E.$utils = function() {
|
|
3701
|
+
return v;
|
|
3702
|
+
}, E.isValid = function() {
|
|
3703
|
+
return this.$d.toString() !== h;
|
|
3704
|
+
}, E.isSame = function(d, O) {
|
|
3705
|
+
var y = P(d);
|
|
3706
|
+
return this.startOf(O) <= y && y <= this.endOf(O);
|
|
3707
|
+
}, E.isAfter = function(d, O) {
|
|
3708
|
+
return P(d) < this.startOf(O);
|
|
3709
|
+
}, E.isBefore = function(d, O) {
|
|
3710
|
+
return this.endOf(O) < P(d);
|
|
3711
|
+
}, E.$g = function(d, O, y) {
|
|
3712
|
+
return v.u(d) ? this[O] : this.set(y, d);
|
|
3713
|
+
}, E.unix = function() {
|
|
3714
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
3715
|
+
}, E.valueOf = function() {
|
|
3716
|
+
return this.$d.getTime();
|
|
3717
|
+
}, E.startOf = function(d, O) {
|
|
3718
|
+
var y = this, b = !!v.u(O) || O, T = v.p(d), D = function(ae, G) {
|
|
3719
|
+
var te = v.w(y.$u ? Date.UTC(y.$y, G, ae) : new Date(y.$y, G, ae), y);
|
|
3720
|
+
return b ? te : te.endOf(i);
|
|
3721
|
+
}, _ = function(ae, G) {
|
|
3722
|
+
return v.w(y.toDate()[ae].apply(y.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), y);
|
|
3723
|
+
}, H = this.$W, j = this.$M, W = this.$D, Q = "set" + (this.$u ? "UTC" : "");
|
|
3724
|
+
switch (T) {
|
|
3725
|
+
case A:
|
|
3726
|
+
return b ? D(1, 0) : D(31, 11);
|
|
3727
|
+
case c:
|
|
3728
|
+
return b ? D(1, j) : D(0, j + 1);
|
|
3729
|
+
case f:
|
|
3730
|
+
var xe = this.$locale().weekStart || 0, ge = (H < xe ? H + 7 : H) - xe;
|
|
3731
|
+
return D(b ? W - ge : W + (6 - ge), j);
|
|
3732
|
+
case i:
|
|
3733
|
+
case m:
|
|
3734
|
+
return _(Q + "Hours", 0);
|
|
3735
|
+
case u:
|
|
3736
|
+
return _(Q + "Minutes", 1);
|
|
3737
|
+
case o:
|
|
3738
|
+
return _(Q + "Seconds", 2);
|
|
3739
|
+
case l:
|
|
3740
|
+
return _(Q + "Milliseconds", 3);
|
|
3741
|
+
default:
|
|
3742
|
+
return this.clone();
|
|
3743
|
+
}
|
|
3744
|
+
}, E.endOf = function(d) {
|
|
3745
|
+
return this.startOf(d, !1);
|
|
3746
|
+
}, E.$set = function(d, O) {
|
|
3747
|
+
var y, b = v.p(d), T = "set" + (this.$u ? "UTC" : ""), D = (y = {}, y[i] = T + "Date", y[m] = T + "Date", y[c] = T + "Month", y[A] = T + "FullYear", y[u] = T + "Hours", y[o] = T + "Minutes", y[l] = T + "Seconds", y[a] = T + "Milliseconds", y)[b], _ = b === i ? this.$D + (O - this.$W) : O;
|
|
3748
|
+
if (b === c || b === A) {
|
|
3749
|
+
var H = this.clone().set(m, 1);
|
|
3750
|
+
H.$d[D](_), H.init(), this.$d = H.set(m, Math.min(this.$D, H.daysInMonth())).$d;
|
|
3751
|
+
} else
|
|
3752
|
+
D && this.$d[D](_);
|
|
3753
|
+
return this.init(), this;
|
|
3754
|
+
}, E.set = function(d, O) {
|
|
3755
|
+
return this.clone().$set(d, O);
|
|
3756
|
+
}, E.get = function(d) {
|
|
3757
|
+
return this[v.p(d)]();
|
|
3758
|
+
}, E.add = function(d, O) {
|
|
3759
|
+
var y, b = this;
|
|
3760
|
+
d = Number(d);
|
|
3761
|
+
var T = v.p(O), D = function(j) {
|
|
3762
|
+
var W = P(b);
|
|
3763
|
+
return v.w(W.date(W.date() + Math.round(j * d)), b);
|
|
3764
|
+
};
|
|
3765
|
+
if (T === c)
|
|
3766
|
+
return this.set(c, this.$M + d);
|
|
3767
|
+
if (T === A)
|
|
3768
|
+
return this.set(A, this.$y + d);
|
|
3769
|
+
if (T === i)
|
|
3770
|
+
return D(1);
|
|
3771
|
+
if (T === f)
|
|
3772
|
+
return D(7);
|
|
3773
|
+
var _ = (y = {}, y[o] = r, y[u] = s, y[l] = n, y)[T] || 1, H = this.$d.getTime() + d * _;
|
|
3774
|
+
return v.w(H, this);
|
|
3775
|
+
}, E.subtract = function(d, O) {
|
|
3776
|
+
return this.add(-1 * d, O);
|
|
3777
|
+
}, E.format = function(d) {
|
|
3778
|
+
var O = this, y = this.$locale();
|
|
3779
|
+
if (!this.isValid())
|
|
3780
|
+
return y.invalidDate || h;
|
|
3781
|
+
var b = d || "YYYY-MM-DDTHH:mm:ssZ", T = v.z(this), D = this.$H, _ = this.$m, H = this.$M, j = y.weekdays, W = y.months, Q = function(G, te, pe, me) {
|
|
3782
|
+
return G && (G[te] || G(O, b)) || pe[te].slice(0, me);
|
|
3783
|
+
}, xe = function(G) {
|
|
3784
|
+
return v.s(D % 12 || 12, G, "0");
|
|
3785
|
+
}, ge = y.meridiem || function(G, te, pe) {
|
|
3786
|
+
var me = G < 12 ? "AM" : "PM";
|
|
3787
|
+
return pe ? me.toLowerCase() : me;
|
|
3788
|
+
}, ae = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: H + 1, MM: v.s(H + 1, 2, "0"), MMM: Q(y.monthsShort, H, W, 3), MMMM: Q(W, H), D: this.$D, DD: v.s(this.$D, 2, "0"), d: String(this.$W), dd: Q(y.weekdaysMin, this.$W, j, 2), ddd: Q(y.weekdaysShort, this.$W, j, 3), dddd: j[this.$W], H: String(D), HH: v.s(D, 2, "0"), h: xe(1), hh: xe(2), a: ge(D, _, !0), A: ge(D, _, !1), m: String(_), mm: v.s(_, 2, "0"), s: String(this.$s), ss: v.s(this.$s, 2, "0"), SSS: v.s(this.$ms, 3, "0"), Z: T };
|
|
3789
|
+
return b.replace(S, function(G, te) {
|
|
3790
|
+
return te || ae[G] || T.replace(":", "");
|
|
3791
|
+
});
|
|
3792
|
+
}, E.utcOffset = function() {
|
|
3793
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3794
|
+
}, E.diff = function(d, O, y) {
|
|
3795
|
+
var b, T = v.p(O), D = P(d), _ = (D.utcOffset() - this.utcOffset()) * r, H = this - D, j = v.m(this, D);
|
|
3796
|
+
return j = (b = {}, b[A] = j / 12, b[c] = j, b[$] = j / 3, b[f] = (H - _) / 6048e5, b[i] = (H - _) / 864e5, b[u] = H / s, b[o] = H / r, b[l] = H / n, b)[T] || H, y ? j : v.a(j);
|
|
3797
|
+
}, E.daysInMonth = function() {
|
|
3798
|
+
return this.endOf(c).$D;
|
|
3799
|
+
}, E.$locale = function() {
|
|
3800
|
+
return g[this.$L];
|
|
3801
|
+
}, E.locale = function(d, O) {
|
|
3802
|
+
if (!d)
|
|
3803
|
+
return this.$L;
|
|
3804
|
+
var y = this.clone(), b = x(d, O, !0);
|
|
3805
|
+
return b && (y.$L = b), y;
|
|
3806
|
+
}, E.clone = function() {
|
|
3807
|
+
return v.w(this.$d, this);
|
|
3808
|
+
}, E.toDate = function() {
|
|
3809
|
+
return new Date(this.valueOf());
|
|
3810
|
+
}, E.toJSON = function() {
|
|
3811
|
+
return this.isValid() ? this.toISOString() : null;
|
|
3812
|
+
}, E.toISOString = function() {
|
|
3813
|
+
return this.$d.toISOString();
|
|
3814
|
+
}, E.toString = function() {
|
|
3815
|
+
return this.$d.toUTCString();
|
|
3816
|
+
}, C;
|
|
3817
|
+
}(), k = L.prototype;
|
|
3818
|
+
return P.prototype = k, [["$ms", a], ["$s", l], ["$m", o], ["$H", u], ["$W", i], ["$M", c], ["$y", A], ["$D", m]].forEach(function(C) {
|
|
3819
|
+
k[C[1]] = function(E) {
|
|
3820
|
+
return this.$g(E, C[0], C[1]);
|
|
3821
|
+
};
|
|
3822
|
+
}), P.extend = function(C, E) {
|
|
3823
|
+
return C.$i || (C(E, L, P), C.$i = !0), P;
|
|
3824
|
+
}, P.locale = x, P.isDayjs = N, P.unix = function(C) {
|
|
3825
|
+
return P(1e3 * C);
|
|
3826
|
+
}, P.en = g[w], P.Ls = g, P.p = {}, P;
|
|
3827
|
+
});
|
|
3828
|
+
})(Bn);
|
|
3829
|
+
const we = Bn.exports;
|
|
3830
|
+
var jn = { exports: {} };
|
|
3831
|
+
(function(e, t) {
|
|
3832
|
+
(function(n, r) {
|
|
3833
|
+
e.exports = r();
|
|
3834
|
+
})(he, function() {
|
|
3835
|
+
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, s = /\d\d/, a = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, o = {}, u = function(h) {
|
|
3836
|
+
return (h = +h) + (h > 68 ? 1900 : 2e3);
|
|
3837
|
+
}, i = function(h) {
|
|
3838
|
+
return function(p) {
|
|
3839
|
+
this[h] = +p;
|
|
3840
|
+
};
|
|
3841
|
+
}, f = [/[+-]\d\d:?(\d\d)?|Z/, function(h) {
|
|
3842
|
+
(this.zone || (this.zone = {})).offset = function(p) {
|
|
3843
|
+
if (!p || p === "Z")
|
|
3844
|
+
return 0;
|
|
3845
|
+
var S = p.match(/([+-]|\d\d)/g), R = 60 * S[1] + (+S[2] || 0);
|
|
3846
|
+
return R === 0 ? 0 : S[0] === "+" ? -R : R;
|
|
3847
|
+
}(h);
|
|
3848
|
+
}], c = function(h) {
|
|
3849
|
+
var p = o[h];
|
|
3850
|
+
return p && (p.indexOf ? p : p.s.concat(p.f));
|
|
3851
|
+
}, $ = function(h, p) {
|
|
3852
|
+
var S, R = o.meridiem;
|
|
3853
|
+
if (R) {
|
|
3854
|
+
for (var V = 1; V <= 24; V += 1)
|
|
3855
|
+
if (h.indexOf(R(V, 0, p)) > -1) {
|
|
3856
|
+
S = V > 12;
|
|
3857
|
+
break;
|
|
3858
|
+
}
|
|
3859
|
+
} else
|
|
3860
|
+
S = h === (p ? "pm" : "PM");
|
|
3861
|
+
return S;
|
|
3862
|
+
}, A = { A: [l, function(h) {
|
|
3863
|
+
this.afternoon = $(h, !1);
|
|
3864
|
+
}], a: [l, function(h) {
|
|
3865
|
+
this.afternoon = $(h, !0);
|
|
3866
|
+
}], S: [/\d/, function(h) {
|
|
3867
|
+
this.milliseconds = 100 * +h;
|
|
3868
|
+
}], SS: [s, function(h) {
|
|
3869
|
+
this.milliseconds = 10 * +h;
|
|
3870
|
+
}], SSS: [/\d{3}/, function(h) {
|
|
3871
|
+
this.milliseconds = +h;
|
|
3872
|
+
}], s: [a, i("seconds")], ss: [a, i("seconds")], m: [a, i("minutes")], mm: [a, i("minutes")], H: [a, i("hours")], h: [a, i("hours")], HH: [a, i("hours")], hh: [a, i("hours")], D: [a, i("day")], DD: [s, i("day")], Do: [l, function(h) {
|
|
3873
|
+
var p = o.ordinal, S = h.match(/\d+/);
|
|
3874
|
+
if (this.day = S[0], p)
|
|
3875
|
+
for (var R = 1; R <= 31; R += 1)
|
|
3876
|
+
p(R).replace(/\[|\]/g, "") === h && (this.day = R);
|
|
3877
|
+
}], M: [a, i("month")], MM: [s, i("month")], MMM: [l, function(h) {
|
|
3878
|
+
var p = c("months"), S = (c("monthsShort") || p.map(function(R) {
|
|
3879
|
+
return R.slice(0, 3);
|
|
3880
|
+
})).indexOf(h) + 1;
|
|
3881
|
+
if (S < 1)
|
|
3882
|
+
throw new Error();
|
|
3883
|
+
this.month = S % 12 || S;
|
|
3884
|
+
}], MMMM: [l, function(h) {
|
|
3885
|
+
var p = c("months").indexOf(h) + 1;
|
|
3886
|
+
if (p < 1)
|
|
3887
|
+
throw new Error();
|
|
3888
|
+
this.month = p % 12 || p;
|
|
3889
|
+
}], Y: [/[+-]?\d+/, i("year")], YY: [s, function(h) {
|
|
3890
|
+
this.year = u(h);
|
|
3891
|
+
}], YYYY: [/\d{4}/, i("year")], Z: f, ZZ: f };
|
|
3892
|
+
function m(h) {
|
|
3893
|
+
var p, S;
|
|
3894
|
+
p = h, S = o && o.formats;
|
|
3895
|
+
for (var R = (h = p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(P, v, L) {
|
|
3896
|
+
var k = L && L.toUpperCase();
|
|
3897
|
+
return v || S[L] || n[L] || S[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(C, E, d) {
|
|
3898
|
+
return E || d.slice(1);
|
|
3899
|
+
});
|
|
3900
|
+
})).match(r), V = R.length, I = 0; I < V; I += 1) {
|
|
3901
|
+
var w = R[I], g = A[w], N = g && g[0], x = g && g[1];
|
|
3902
|
+
R[I] = x ? { regex: N, parser: x } : w.replace(/^\[|\]$/g, "");
|
|
3903
|
+
}
|
|
3904
|
+
return function(P) {
|
|
3905
|
+
for (var v = {}, L = 0, k = 0; L < V; L += 1) {
|
|
3906
|
+
var C = R[L];
|
|
3907
|
+
if (typeof C == "string")
|
|
3908
|
+
k += C.length;
|
|
3909
|
+
else {
|
|
3910
|
+
var E = C.regex, d = C.parser, O = P.slice(k), y = E.exec(O)[0];
|
|
3911
|
+
d.call(v, y), P = P.replace(y, "");
|
|
3912
|
+
}
|
|
3913
|
+
}
|
|
3914
|
+
return function(b) {
|
|
3915
|
+
var T = b.afternoon;
|
|
3916
|
+
if (T !== void 0) {
|
|
3917
|
+
var D = b.hours;
|
|
3918
|
+
T ? D < 12 && (b.hours += 12) : D === 12 && (b.hours = 0), delete b.afternoon;
|
|
3919
|
+
}
|
|
3920
|
+
}(v), v;
|
|
3921
|
+
};
|
|
3922
|
+
}
|
|
3923
|
+
return function(h, p, S) {
|
|
3924
|
+
S.p.customParseFormat = !0, h && h.parseTwoDigitYear && (u = h.parseTwoDigitYear);
|
|
3925
|
+
var R = p.prototype, V = R.parse;
|
|
3926
|
+
R.parse = function(I) {
|
|
3927
|
+
var w = I.date, g = I.utc, N = I.args;
|
|
3928
|
+
this.$u = g;
|
|
3929
|
+
var x = N[1];
|
|
3930
|
+
if (typeof x == "string") {
|
|
3931
|
+
var P = N[2] === !0, v = N[3] === !0, L = P || v, k = N[2];
|
|
3932
|
+
v && (k = N[2]), o = this.$locale(), !P && k && (o = S.Ls[k]), this.$d = function(O, y, b) {
|
|
3933
|
+
try {
|
|
3934
|
+
if (["x", "X"].indexOf(y) > -1)
|
|
3935
|
+
return new Date((y === "X" ? 1e3 : 1) * O);
|
|
3936
|
+
var T = m(y)(O), D = T.year, _ = T.month, H = T.day, j = T.hours, W = T.minutes, Q = T.seconds, xe = T.milliseconds, ge = T.zone, ae = new Date(), G = H || (D || _ ? 1 : ae.getDate()), te = D || ae.getFullYear(), pe = 0;
|
|
3937
|
+
D && !_ || (pe = _ > 0 ? _ - 1 : ae.getMonth());
|
|
3938
|
+
var me = j || 0, it = W || 0, lt = Q || 0, ut = xe || 0;
|
|
3939
|
+
return ge ? new Date(Date.UTC(te, pe, G, me, it, lt, ut + 60 * ge.offset * 1e3)) : b ? new Date(Date.UTC(te, pe, G, me, it, lt, ut)) : new Date(te, pe, G, me, it, lt, ut);
|
|
3940
|
+
} catch {
|
|
3941
|
+
return new Date("");
|
|
3942
|
+
}
|
|
3943
|
+
}(w, x, g), this.init(), k && k !== !0 && (this.$L = this.locale(k).$L), L && w != this.format(x) && (this.$d = new Date("")), o = {};
|
|
3944
|
+
} else if (x instanceof Array)
|
|
3945
|
+
for (var C = x.length, E = 1; E <= C; E += 1) {
|
|
3946
|
+
N[1] = x[E - 1];
|
|
3947
|
+
var d = S.apply(this, N);
|
|
3948
|
+
if (d.isValid()) {
|
|
3949
|
+
this.$d = d.$d, this.$L = d.$L, this.init();
|
|
3950
|
+
break;
|
|
3951
|
+
}
|
|
3952
|
+
E === C && (this.$d = new Date(""));
|
|
3953
|
+
}
|
|
3954
|
+
else
|
|
3955
|
+
V.call(this, I);
|
|
3956
|
+
};
|
|
3957
|
+
};
|
|
3958
|
+
});
|
|
3959
|
+
})(jn);
|
|
3960
|
+
const Qo = jn.exports;
|
|
3961
|
+
var Fn = { exports: {} };
|
|
3962
|
+
(function(e, t) {
|
|
3963
|
+
(function(n, r) {
|
|
3964
|
+
e.exports = r();
|
|
3965
|
+
})(he, function() {
|
|
3966
|
+
return function(n, r, s) {
|
|
3967
|
+
var a = r.prototype, l = a.format;
|
|
3968
|
+
s.en.ordinal = function(o) {
|
|
3969
|
+
var u = ["th", "st", "nd", "rd"], i = o % 100;
|
|
3970
|
+
return "[" + o + (u[(i - 20) % 10] || u[i] || u[0]) + "]";
|
|
3971
|
+
}, a.format = function(o) {
|
|
3972
|
+
var u = this, i = this.$locale();
|
|
3973
|
+
if (!this.isValid())
|
|
3974
|
+
return l.bind(this)(o);
|
|
3975
|
+
var f = this.$utils(), c = (o || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function($) {
|
|
3976
|
+
switch ($) {
|
|
3977
|
+
case "Q":
|
|
3978
|
+
return Math.ceil((u.$M + 1) / 3);
|
|
3979
|
+
case "Do":
|
|
3980
|
+
return i.ordinal(u.$D);
|
|
3981
|
+
case "gggg":
|
|
3982
|
+
return u.weekYear();
|
|
3983
|
+
case "GGGG":
|
|
3984
|
+
return u.isoWeekYear();
|
|
3985
|
+
case "wo":
|
|
3986
|
+
return i.ordinal(u.week(), "W");
|
|
3987
|
+
case "w":
|
|
3988
|
+
case "ww":
|
|
3989
|
+
return f.s(u.week(), $ === "w" ? 1 : 2, "0");
|
|
3990
|
+
case "W":
|
|
3991
|
+
case "WW":
|
|
3992
|
+
return f.s(u.isoWeek(), $ === "W" ? 1 : 2, "0");
|
|
3993
|
+
case "k":
|
|
3994
|
+
case "kk":
|
|
3995
|
+
return f.s(String(u.$H === 0 ? 24 : u.$H), $ === "k" ? 1 : 2, "0");
|
|
3996
|
+
case "X":
|
|
3997
|
+
return Math.floor(u.$d.getTime() / 1e3);
|
|
3998
|
+
case "x":
|
|
3999
|
+
return u.$d.getTime();
|
|
4000
|
+
case "z":
|
|
4001
|
+
return "[" + u.offsetName() + "]";
|
|
4002
|
+
case "zzz":
|
|
4003
|
+
return "[" + u.offsetName("long") + "]";
|
|
4004
|
+
default:
|
|
4005
|
+
return $;
|
|
4006
|
+
}
|
|
4007
|
+
});
|
|
4008
|
+
return l.bind(this)(c);
|
|
4009
|
+
};
|
|
4010
|
+
};
|
|
4011
|
+
});
|
|
4012
|
+
})(Fn);
|
|
4013
|
+
const ei = Fn.exports;
|
|
4014
|
+
var Wn = { exports: {} };
|
|
4015
|
+
(function(e, t) {
|
|
4016
|
+
(function(n, r) {
|
|
4017
|
+
e.exports = r();
|
|
4018
|
+
})(he, function() {
|
|
4019
|
+
return function(n, r, s) {
|
|
4020
|
+
var a = r.prototype, l = function(c) {
|
|
4021
|
+
return c && (c.indexOf ? c : c.s);
|
|
4022
|
+
}, o = function(c, $, A, m, h) {
|
|
4023
|
+
var p = c.name ? c : c.$locale(), S = l(p[$]), R = l(p[A]), V = S || R.map(function(w) {
|
|
4024
|
+
return w.slice(0, m);
|
|
4025
|
+
});
|
|
4026
|
+
if (!h)
|
|
4027
|
+
return V;
|
|
4028
|
+
var I = p.weekStart;
|
|
4029
|
+
return V.map(function(w, g) {
|
|
4030
|
+
return V[(g + (I || 0)) % 7];
|
|
4031
|
+
});
|
|
4032
|
+
}, u = function() {
|
|
4033
|
+
return s.Ls[s.locale()];
|
|
4034
|
+
}, i = function(c, $) {
|
|
4035
|
+
return c.formats[$] || function(A) {
|
|
4036
|
+
return A.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(m, h, p) {
|
|
4037
|
+
return h || p.slice(1);
|
|
4038
|
+
});
|
|
4039
|
+
}(c.formats[$.toUpperCase()]);
|
|
4040
|
+
}, f = function() {
|
|
4041
|
+
var c = this;
|
|
4042
|
+
return { months: function($) {
|
|
4043
|
+
return $ ? $.format("MMMM") : o(c, "months");
|
|
4044
|
+
}, monthsShort: function($) {
|
|
4045
|
+
return $ ? $.format("MMM") : o(c, "monthsShort", "months", 3);
|
|
4046
|
+
}, firstDayOfWeek: function() {
|
|
4047
|
+
return c.$locale().weekStart || 0;
|
|
4048
|
+
}, weekdays: function($) {
|
|
4049
|
+
return $ ? $.format("dddd") : o(c, "weekdays");
|
|
4050
|
+
}, weekdaysMin: function($) {
|
|
4051
|
+
return $ ? $.format("dd") : o(c, "weekdaysMin", "weekdays", 2);
|
|
4052
|
+
}, weekdaysShort: function($) {
|
|
4053
|
+
return $ ? $.format("ddd") : o(c, "weekdaysShort", "weekdays", 3);
|
|
4054
|
+
}, longDateFormat: function($) {
|
|
4055
|
+
return i(c.$locale(), $);
|
|
4056
|
+
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
|
|
4057
|
+
};
|
|
4058
|
+
a.localeData = function() {
|
|
4059
|
+
return f.bind(this)();
|
|
4060
|
+
}, s.localeData = function() {
|
|
4061
|
+
var c = u();
|
|
4062
|
+
return { firstDayOfWeek: function() {
|
|
4063
|
+
return c.weekStart || 0;
|
|
4064
|
+
}, weekdays: function() {
|
|
4065
|
+
return s.weekdays();
|
|
4066
|
+
}, weekdaysShort: function() {
|
|
4067
|
+
return s.weekdaysShort();
|
|
4068
|
+
}, weekdaysMin: function() {
|
|
4069
|
+
return s.weekdaysMin();
|
|
4070
|
+
}, months: function() {
|
|
4071
|
+
return s.months();
|
|
4072
|
+
}, monthsShort: function() {
|
|
4073
|
+
return s.monthsShort();
|
|
4074
|
+
}, longDateFormat: function($) {
|
|
4075
|
+
return i(c, $);
|
|
4076
|
+
}, meridiem: c.meridiem, ordinal: c.ordinal };
|
|
4077
|
+
}, s.months = function() {
|
|
4078
|
+
return o(u(), "months");
|
|
4079
|
+
}, s.monthsShort = function() {
|
|
4080
|
+
return o(u(), "monthsShort", "months", 3);
|
|
4081
|
+
}, s.weekdays = function(c) {
|
|
4082
|
+
return o(u(), "weekdays", null, null, c);
|
|
4083
|
+
}, s.weekdaysShort = function(c) {
|
|
4084
|
+
return o(u(), "weekdaysShort", "weekdays", 3, c);
|
|
4085
|
+
}, s.weekdaysMin = function(c) {
|
|
4086
|
+
return o(u(), "weekdaysMin", "weekdays", 2, c);
|
|
4087
|
+
};
|
|
4088
|
+
};
|
|
4089
|
+
});
|
|
4090
|
+
})(Wn);
|
|
4091
|
+
const ti = Wn.exports;
|
|
4092
|
+
var Yn = { exports: {} };
|
|
4093
|
+
(function(e, t) {
|
|
4094
|
+
(function(n, r) {
|
|
4095
|
+
e.exports = r();
|
|
4096
|
+
})(he, function() {
|
|
4097
|
+
var n = "week", r = "year";
|
|
4098
|
+
return function(s, a, l) {
|
|
4099
|
+
var o = a.prototype;
|
|
4100
|
+
o.week = function(u) {
|
|
4101
|
+
if (u === void 0 && (u = null), u !== null)
|
|
4102
|
+
return this.add(7 * (u - this.week()), "day");
|
|
4103
|
+
var i = this.$locale().yearStart || 1;
|
|
4104
|
+
if (this.month() === 11 && this.date() > 25) {
|
|
4105
|
+
var f = l(this).startOf(r).add(1, r).date(i), c = l(this).endOf(n);
|
|
4106
|
+
if (f.isBefore(c))
|
|
4107
|
+
return 1;
|
|
4108
|
+
}
|
|
4109
|
+
var $ = l(this).startOf(r).date(i).startOf(n).subtract(1, "millisecond"), A = this.diff($, n, !0);
|
|
4110
|
+
return A < 0 ? l(this).startOf("week").week() : Math.ceil(A);
|
|
4111
|
+
}, o.weeks = function(u) {
|
|
4112
|
+
return u === void 0 && (u = null), this.week(u);
|
|
4113
|
+
};
|
|
4114
|
+
};
|
|
4115
|
+
});
|
|
4116
|
+
})(Yn);
|
|
4117
|
+
const ni = Yn.exports;
|
|
4118
|
+
var Kn = { exports: {} };
|
|
4119
|
+
(function(e, t) {
|
|
4120
|
+
(function(n, r) {
|
|
4121
|
+
e.exports = r();
|
|
4122
|
+
})(he, function() {
|
|
4123
|
+
return function(n, r) {
|
|
4124
|
+
r.prototype.weekYear = function() {
|
|
4125
|
+
var s = this.month(), a = this.week(), l = this.year();
|
|
4126
|
+
return a === 1 && s === 11 ? l + 1 : s === 0 && a >= 52 ? l - 1 : l;
|
|
4127
|
+
};
|
|
4128
|
+
};
|
|
4129
|
+
});
|
|
4130
|
+
})(Kn);
|
|
4131
|
+
const ri = Kn.exports;
|
|
4132
|
+
var Gn = { exports: {} };
|
|
4133
|
+
(function(e, t) {
|
|
4134
|
+
(function(n, r) {
|
|
4135
|
+
e.exports = r();
|
|
4136
|
+
})(he, function() {
|
|
4137
|
+
return function(n, r, s) {
|
|
4138
|
+
r.prototype.dayOfYear = function(a) {
|
|
4139
|
+
var l = Math.round((s(this).startOf("day") - s(this).startOf("year")) / 864e5) + 1;
|
|
4140
|
+
return a == null ? l : this.add(a - l, "day");
|
|
4141
|
+
};
|
|
4142
|
+
};
|
|
4143
|
+
});
|
|
4144
|
+
})(Gn);
|
|
4145
|
+
const si = Gn.exports;
|
|
4146
|
+
var zn = { exports: {} };
|
|
4147
|
+
(function(e, t) {
|
|
4148
|
+
(function(n, r) {
|
|
4149
|
+
e.exports = r();
|
|
4150
|
+
})(he, function() {
|
|
4151
|
+
return function(n, r) {
|
|
4152
|
+
r.prototype.isSameOrAfter = function(s, a) {
|
|
4153
|
+
return this.isSame(s, a) || this.isAfter(s, a);
|
|
4154
|
+
};
|
|
4155
|
+
};
|
|
4156
|
+
});
|
|
4157
|
+
})(zn);
|
|
4158
|
+
const ai = zn.exports;
|
|
4159
|
+
var Un = { exports: {} };
|
|
4160
|
+
(function(e, t) {
|
|
4161
|
+
(function(n, r) {
|
|
4162
|
+
e.exports = r();
|
|
4163
|
+
})(he, function() {
|
|
4164
|
+
return function(n, r) {
|
|
4165
|
+
r.prototype.isSameOrBefore = function(s, a) {
|
|
4166
|
+
return this.isSame(s, a) || this.isBefore(s, a);
|
|
4167
|
+
};
|
|
4168
|
+
};
|
|
4169
|
+
});
|
|
4170
|
+
})(Un);
|
|
4171
|
+
const oi = Un.exports;
|
|
4172
|
+
we.extend(ti);
|
|
4173
|
+
we.extend(ei);
|
|
4174
|
+
we.extend(Qo);
|
|
4175
|
+
we.extend(ni);
|
|
4176
|
+
we.extend(ri);
|
|
4177
|
+
we.extend(si);
|
|
4178
|
+
we.extend(ai);
|
|
4179
|
+
we.extend(oi);
|
|
4180
|
+
const ii = [da, va, Ea, Ca, Ha, Ve, uo, ho, Lt, vo, No, Ro, _o, Bo, zo, Jo, Et], Yi = new na(ii, [aa], "4.0.0");
|
|
4181
|
+
export {
|
|
4182
|
+
xn as Broadcast,
|
|
4183
|
+
z as BroadcastKey,
|
|
4184
|
+
Ca as Content,
|
|
4185
|
+
Ro as DateItem,
|
|
4186
|
+
Jo as DialogItem,
|
|
4187
|
+
Tn as Domain,
|
|
4188
|
+
Ae as DomainKey,
|
|
4189
|
+
Ea as FooterBar,
|
|
4190
|
+
Ha as Group,
|
|
4191
|
+
va as HeaderBar,
|
|
4192
|
+
Lt as HintText,
|
|
4193
|
+
vo as InputItem,
|
|
4194
|
+
Ve as Item,
|
|
4195
|
+
da as Page,
|
|
4196
|
+
Et as Price,
|
|
4197
|
+
wt as PriorityPolicy,
|
|
4198
|
+
ho as RowItem,
|
|
4199
|
+
No as SelectItem,
|
|
4200
|
+
uo as SlotItem,
|
|
4201
|
+
zo as TableItem,
|
|
4202
|
+
_o as TimeItem,
|
|
4203
|
+
Bo as TimeSelectItem,
|
|
4204
|
+
Ua as UniqueID,
|
|
4205
|
+
Gs as ValidateSchema,
|
|
4206
|
+
ye as ValidateSchemaKey,
|
|
4207
|
+
Si as clearNonNumber,
|
|
4208
|
+
zi as clone,
|
|
4209
|
+
mi as compareTo,
|
|
4210
|
+
Sn as createBroadcast,
|
|
4211
|
+
On as createValidateSchema,
|
|
4212
|
+
Di as debounce,
|
|
4213
|
+
xi as decimalLength,
|
|
4214
|
+
Yi as default,
|
|
4215
|
+
Pi as defineBroadcast,
|
|
4216
|
+
Cn as defineDomain,
|
|
4217
|
+
Ce as defineItem,
|
|
4218
|
+
Zs as definePageState,
|
|
4219
|
+
Ri as deleteGlobalValidator,
|
|
4220
|
+
Ge as disabledProperty,
|
|
4221
|
+
pi as divide,
|
|
4222
|
+
Be as excludeProps,
|
|
4223
|
+
Ui as extend,
|
|
4224
|
+
Oi as floatData,
|
|
4225
|
+
Ys as getGlobalValidateCheckEvents,
|
|
4226
|
+
Ks as getGlobalValidateResetEvents,
|
|
4227
|
+
bt as getPageContentAreaHeight,
|
|
4228
|
+
$t as getPageContentAreaWidth,
|
|
4229
|
+
Dt as getPageFooterAreaHeight,
|
|
4230
|
+
Vt as getPageHeaderAreaHeight,
|
|
4231
|
+
Ze as getRootDomain,
|
|
4232
|
+
Ni as includeProps,
|
|
4233
|
+
Ei as indexOf,
|
|
4234
|
+
wi as integerLength,
|
|
4235
|
+
Zi as isArray,
|
|
4236
|
+
rt as isBrowser,
|
|
4237
|
+
Xi as isDate,
|
|
4238
|
+
Ji as isESModule,
|
|
4239
|
+
Pe as isEmptyString,
|
|
4240
|
+
Qi as isEqual,
|
|
4241
|
+
el as isFunction,
|
|
4242
|
+
_i as isInnerPage,
|
|
4243
|
+
tl as isMap,
|
|
4244
|
+
$i as isNumberString,
|
|
4245
|
+
nl as isObject,
|
|
4246
|
+
rl as isPlainObject,
|
|
4247
|
+
sl as isPromise,
|
|
4248
|
+
js as isRegExp,
|
|
4249
|
+
al as isSet,
|
|
4250
|
+
ol as isString,
|
|
4251
|
+
Li as isSubPage,
|
|
4252
|
+
il as isSymbol,
|
|
4253
|
+
Ai as lastIndexOf,
|
|
4254
|
+
gi as multiply,
|
|
4255
|
+
yi as negate,
|
|
4256
|
+
Bs as numberFormat,
|
|
4257
|
+
Qe as property,
|
|
4258
|
+
bi as raf,
|
|
4259
|
+
Ke as readonlyProperty,
|
|
4260
|
+
Mi as setGlobalValidateCheckEvents,
|
|
4261
|
+
Ti as setGlobalValidateHandler,
|
|
4262
|
+
Vi as setGlobalValidateMessages,
|
|
4263
|
+
Ii as setGlobalValidateResetEvents,
|
|
4264
|
+
Ci as setGlobalValidator,
|
|
4265
|
+
Pn as throttle,
|
|
4266
|
+
ll as toBoolean,
|
|
4267
|
+
ul as toNumber,
|
|
4268
|
+
ce as toPadding,
|
|
4269
|
+
U as toPx,
|
|
4270
|
+
Se as toPxDesc,
|
|
4271
|
+
cl as toTypeString,
|
|
4272
|
+
fe as toValue,
|
|
4273
|
+
vi as unNumberFormat,
|
|
4274
|
+
zt as updatePageState,
|
|
4275
|
+
ze as useBroadcast,
|
|
4276
|
+
Te as useDomain,
|
|
4277
|
+
Me as useExpose,
|
|
4278
|
+
It as usePageState,
|
|
4279
|
+
Xa as usePosition,
|
|
4280
|
+
St as useRect,
|
|
4281
|
+
Fs as valueLength
|
|
4282
|
+
};
|