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