@fox-js/foxui-pc 4.1.1-30 → 4.1.1-31
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 +1 -1
- package/dist/index.esm.js +468 -472
- package/dist/index.umd.js +1 -1
- package/dist/style.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Comment as Ti, Fragment as Vt, Teleport as
|
|
1
|
+
import { Comment as Ti, Fragment as Vt, Teleport as Vl, Text as Mi, Transition as Bl, computed as x, createBlock as Pe, createCommentVNode as ze, createElementBlock as me, createElementVNode as de, createTextVNode as Dt, createVNode as ye, customRef as Li, defineComponent as ct, effectScope as Ai, getCurrentInstance as Be, h as V, hasInjectionContext as Nl, inject as Ye, isReactive as mt, markRaw as Vi, mergeProps as Lr, nextTick as It, normalizeClass as Ce, normalizeStyle as ke, onActivated as Ii, onBeforeUnmount as ft, onDeactivated as Fi, onMounted as Te, onUnmounted as dt, openBlock as se, provide as Ae, reactive as kt, ref as R, render as Gt, renderList as fl, renderSlot as wt, resolveComponent as Me, resolveDynamicComponent as Al, shallowReactive as Pi, shallowRef as Wt, toDisplayString as Le, toRaw as xe, toRef as pl, toRefs as Dn, triggerRef as at, unref as Lt, useAttrs as mf, useSlots as pf, vShow as Rt, watch as ce, watchEffect as Oi, withCtx as be, withDirectives as Bt, withModifiers as Ei } from "vue";
|
|
2
2
|
import { Schema as Ot } from "@fox-js/validator";
|
|
3
|
-
import { ElAffix as Di, ElAlert as Ri, ElAnchor as Bi, ElAnchorLink as qi, ElAside as Hi, ElAutoResizer as ji, ElAutocomplete as Rn, ElAvatar as Ki, ElBacktop as Wi, ElBadge as Yi, ElBreadcrumb as Ui, ElBreadcrumbItem as Gi, ElButton as Ar, ElButtonGroup as Xi, ElCalendar as Zi, ElCard as Ji, ElCarousel as Qi, ElCarouselItem as es, ElCascader as Bn, ElCascaderPanel as ts, ElCheckTag as ls, ElCheckbox as
|
|
3
|
+
import { ElAffix as Di, ElAlert as Ri, ElAnchor as Bi, ElAnchorLink as qi, ElAside as Hi, ElAutoResizer as ji, ElAutocomplete as Rn, ElAvatar as Ki, ElBacktop as Wi, ElBadge as Yi, ElBreadcrumb as Ui, ElBreadcrumbItem as Gi, ElButton as Ar, ElButtonGroup as Xi, ElCalendar as Zi, ElCard as Ji, ElCarousel as Qi, ElCarouselItem as es, ElCascader as Bn, ElCascaderPanel as ts, ElCheckTag as ls, ElCheckbox as Xt, ElCheckboxButton as qn, ElCheckboxGroup as ql, ElCol as rs, ElCollapse as ns, ElCollapseItem as as, ElCollapseTransition as is, ElColorPicker as ss, ElConfigProvider as os, ElContainer as us, ElCountdown as cs, ElDatePicker as Hn, ElDescriptions as fs, ElDescriptionsItem as ds, ElDialog as jn, ElDivider as hs, ElDrawer as gs, ElDropdown as ms, ElDropdownItem as ps, ElDropdownMenu as vs, ElEmpty as ys, ElFooter as bs, ElForm as ws, ElFormItem as Ss, ElHeader as xs, ElIcon as tl, ElImage as Ns, ElImageViewer as Cs, ElInfiniteScroll as zs, ElInput as Vr, ElInputNumber as Kn, ElInputTag as bf, ElLink as ks, ElLoading as _s, ElMain as $s, ElMention as wf, ElMenu as Ts, ElMenuItem as Ms, ElMenuItemGroup as Ls, ElMessage as As, ElMessage as Vs, ElMessageBox as Is, ElMessageBox as Fs, ElNotification as Ps, ElNotification as Os, ElOption as cl, ElOptionGroup as Wn, ElPageHeader as Es, ElPagination as Yn, ElPopconfirm as Ds, ElPopover as Hl, ElPopoverDirective as Rs, ElPopper as Bs, ElProgress as qs, ElRadio as pr, ElRadioButton as Un, ElRadioGroup as Gn, ElRate as Xn, ElResult as Hs, ElRow as js, ElScrollbar as Ks, ElSegmented as Ws, ElSelect as Zn, ElSelectV2 as Ys, ElSkeleton as Us, ElSkeletonItem as Gs, ElSlider as Xs, ElSpace as Zs, ElSplitter as Js, ElStatistic as Qs, ElStep as eo, ElSteps as to, ElSubMenu as lo, ElSwitch as Jn, ElTabPane as ro, ElTable as Qn, ElTableColumn as Ir, ElTableV2 as no, ElTabs as ao, ElTag as io, ElTimePicker as ea, ElTimeSelect as ta, ElTimeline as so, ElTimelineItem as oo, ElTooltip as uo, ElTransfer as co, ElTree as la, ElTreeSelect as ra, ElTreeV2 as fo, ElUpload as ho, ElWatermark as go } from "element-plus";
|
|
4
4
|
import { ArrowDown as mo, ArrowLeft as na, ArrowRight as aa, ArrowUp as Fr, CircleClose as po, Close as ia, Download as sa, Loading as vo, RefreshLeft as oa, Setting as yo } from "@element-plus/icons-vue";
|
|
5
5
|
import { useFoxI18n as Qe } from "@fox-js/i18n";
|
|
6
6
|
var bo = Object.create, ua = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, So = Object.getOwnPropertyNames, xo = Object.getPrototypeOf, No = Object.prototype.hasOwnProperty, _t = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Co = (e, t, r, n) => {
|
|
@@ -14,10 +14,10 @@ var bo = Object.create, ua = Object.defineProperty, wo = Object.getOwnPropertyDe
|
|
|
14
14
|
}, $t = (e, t, r) => (r = e != null ? bo(xo(e)) : {}, Co(t || !e || !e.__esModule ? ua(r, "default", {
|
|
15
15
|
value: e,
|
|
16
16
|
enumerable: !0
|
|
17
|
-
}) : r, e)),
|
|
17
|
+
}) : r, e)), Cl = window, zo = typeof window < "u";
|
|
18
18
|
function ko() {
|
|
19
|
-
return typeof
|
|
20
|
-
|
|
19
|
+
return typeof Cl < "u" ? Cl.requestAnimationFrame || Cl.webkitRequestAnimationFrame || function(e) {
|
|
20
|
+
Cl.setTimeout(e, 1e3 / 60);
|
|
21
21
|
} : function(e) {
|
|
22
22
|
setTimeout(e, 1e3 / 60);
|
|
23
23
|
};
|
|
@@ -26,7 +26,7 @@ function Nf(e) {
|
|
|
26
26
|
zo ? cancelAnimationFrame(e) : clearTimeout(e);
|
|
27
27
|
}
|
|
28
28
|
var ca = ko();
|
|
29
|
-
function
|
|
29
|
+
function Il(e, t = "0") {
|
|
30
30
|
let r = 0, n = -1;
|
|
31
31
|
e[0] == "-" && (r++, n = 1, e = e.substring(1), e.length), t[0] == "-" && (r++, n = 2, t = t.substring(1), t.length), e = Ge(e), t = Ge(t), [e, t] = Pr(Ge(e), Ge(t)), r == 1 && (n == 1 ? e = ar(e) : t = ar(t));
|
|
32
32
|
let l = fa(e, t);
|
|
@@ -63,7 +63,7 @@ function fa(e, t) {
|
|
|
63
63
|
var De = /* @__PURE__ */ (function(e) {
|
|
64
64
|
return 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;
|
|
65
65
|
})({});
|
|
66
|
-
function
|
|
66
|
+
function vl(e, t = 0, r = De.HALF_EVEN) {
|
|
67
67
|
if (r === De.UNNECESSARY) throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");
|
|
68
68
|
typeof e == "number" && (e = e.toString());
|
|
69
69
|
let n = !1;
|
|
@@ -73,7 +73,7 @@ function pl(e, t = 0, r = De.HALF_EVEN) {
|
|
|
73
73
|
if (t = -t, a.length <= t) return "0";
|
|
74
74
|
{
|
|
75
75
|
let i = a.substr(0, a.length - t);
|
|
76
|
-
return e = i + "." + a.substr(a.length - t) + o, i =
|
|
76
|
+
return e = i + "." + a.substr(a.length - t) + o, i = vl(e, 0, r), (n ? "-" : "") + i + new Array(t + 1).join("0");
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
if (t == 0) return a.length, tn(l[1], a, n, r) ? (n ? "-" : "") + ir(a) : (n ? "-" : "") + a;
|
|
@@ -112,11 +112,11 @@ function ir(e, t = 0) {
|
|
|
112
112
|
function vr(e, t) {
|
|
113
113
|
e = e.toString(), t = t.toString();
|
|
114
114
|
let r = 0;
|
|
115
|
-
e[0] == "-" && (r++, e = e.substr(1)), t[0] == "-" && (r++, t = t.substr(1)), e =
|
|
115
|
+
e[0] == "-" && (r++, e = e.substr(1)), t[0] == "-" && (r++, t = t.substr(1)), e = nl(e), t = nl(t);
|
|
116
116
|
let n = 0, l = 0;
|
|
117
117
|
e.indexOf(".") != -1 && (n = e.length - e.indexOf(".") - 1), t.indexOf(".") != -1 && (l = t.length - t.indexOf(".") - 1);
|
|
118
118
|
let a = n + l;
|
|
119
|
-
if (e =
|
|
119
|
+
if (e = nl(e.replace(".", "")), t = nl(t.replace(".", "")), e.length < t.length) {
|
|
120
120
|
let u = e;
|
|
121
121
|
e = t, t = u;
|
|
122
122
|
}
|
|
@@ -128,12 +128,12 @@ function vr(e, t) {
|
|
|
128
128
|
for (let N = t.length - 1; N >= f && N >= 0; N--) i[N] > -1 && i[N] < e.length && (w += parseInt(e[i[N]--]) * parseInt(t[N]));
|
|
129
129
|
w += s, s = Math.floor(w / 10), d = w % 10 + d, f--;
|
|
130
130
|
}
|
|
131
|
-
return d =
|
|
131
|
+
return d = nl(_o(d, a)), r == 1 && (d = "-" + d), d;
|
|
132
132
|
}
|
|
133
133
|
function _o(e, t) {
|
|
134
134
|
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));
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function nl(e) {
|
|
137
137
|
for (; e[0] == "0"; ) e = e.substr(1);
|
|
138
138
|
if (e.indexOf(".") != -1) for (; e[e.length - 1] == "0"; ) e = e.substr(0, e.length - 1);
|
|
139
139
|
return e == "" || e == "." ? e = "0" : e[e.length - 1] == "." && (e = e.substr(0, e.length - 1)), e[0] == "." && (e = "0" + e), e;
|
|
@@ -161,13 +161,13 @@ function yr(e, t, r = 8) {
|
|
|
161
161
|
}
|
|
162
162
|
for (r = r + 2; a <= r; ) {
|
|
163
163
|
let f = 0;
|
|
164
|
-
for (; parseInt(i) >= parseInt(t); ) i =
|
|
164
|
+
for (; parseInt(i) >= parseInt(t); ) i = Il(i, "-" + t), f++;
|
|
165
165
|
s += f, e ? (e[0] == "." && (s += ".", a++, e = e.substring(1)), i = i + e.substring(0, 1), e = e.substring(1)) : (a || (s += "."), a++, i = i + "0");
|
|
166
166
|
}
|
|
167
|
-
return (n == 1 ? "-" : "") + Ge(
|
|
167
|
+
return (n == 1 ? "-" : "") + Ge(vl(s, r - 2));
|
|
168
168
|
}
|
|
169
169
|
function br(e, t) {
|
|
170
|
-
return e = e.toString(), t = t.toString(), t = wr(t),
|
|
170
|
+
return e = e.toString(), t = t.toString(), t = wr(t), Il(e, t);
|
|
171
171
|
}
|
|
172
172
|
function wr(e) {
|
|
173
173
|
return e[0] == "-" ? e = e.substr(1) : e = "-" + e, e;
|
|
@@ -177,7 +177,7 @@ function ln(e, t) {
|
|
|
177
177
|
e = e.toString(), t = t.toString(), rn(e), rn(t);
|
|
178
178
|
let r = "";
|
|
179
179
|
e[0] == "-" && (r = "-", e = e.substr(1)), t[0] == "-" && (t = t.substr(1));
|
|
180
|
-
let n = br(e, vr(t,
|
|
180
|
+
let n = br(e, vr(t, vl(yr(e, t), 0, De.FLOOR)));
|
|
181
181
|
return r + n;
|
|
182
182
|
}
|
|
183
183
|
function rn(e) {
|
|
@@ -191,7 +191,7 @@ function nn(e, t) {
|
|
|
191
191
|
for (let n = 0; n < e.length; n++) if (e[n] != t[n]) return e[n] > t[n] ? r ? -1 : 1 : r ? 1 : -1;
|
|
192
192
|
return 0;
|
|
193
193
|
}
|
|
194
|
-
var
|
|
194
|
+
var Sl = class Se {
|
|
195
195
|
value;
|
|
196
196
|
static RoundingModes = De;
|
|
197
197
|
static validate(t) {
|
|
@@ -229,11 +229,11 @@ var wl = class Se {
|
|
|
229
229
|
}
|
|
230
230
|
static round(t, r = 0, n = De.HALF_EVEN) {
|
|
231
231
|
if (t = Se.validate(t), isNaN(r)) throw Error("Precision is not a number: " + r);
|
|
232
|
-
return
|
|
232
|
+
return vl(t, r, n);
|
|
233
233
|
}
|
|
234
234
|
round(t = 0, r = De.HALF_EVEN) {
|
|
235
235
|
if (isNaN(t)) throw Error("Precision is not a number: " + t);
|
|
236
|
-
return new Se(
|
|
236
|
+
return new Se(vl(this.value, t, r));
|
|
237
237
|
}
|
|
238
238
|
static floor(t) {
|
|
239
239
|
return t = Se.validate(t), t.indexOf(".") === -1 ? t : Se.round(t, 0, De.FLOOR);
|
|
@@ -248,10 +248,10 @@ var wl = class Se {
|
|
|
248
248
|
return this.value.indexOf(".") === -1 ? new Se(this.value) : new Se(this.value).round(0, De.CEILING);
|
|
249
249
|
}
|
|
250
250
|
static add(t, r) {
|
|
251
|
-
return t = Se.validate(t), r = Se.validate(r),
|
|
251
|
+
return t = Se.validate(t), r = Se.validate(r), Il(t, r);
|
|
252
252
|
}
|
|
253
253
|
add(t) {
|
|
254
|
-
return new Se(
|
|
254
|
+
return new Se(Il(this.value, t.getValue()));
|
|
255
255
|
}
|
|
256
256
|
static subtract(t, r) {
|
|
257
257
|
return t = Se.validate(t), r = Se.validate(r), br(t, r);
|
|
@@ -291,17 +291,17 @@ var wl = class Se {
|
|
|
291
291
|
}
|
|
292
292
|
};
|
|
293
293
|
function $o(e, t) {
|
|
294
|
-
return
|
|
294
|
+
return Sl.multiply(`${e}`, `${t}`);
|
|
295
295
|
}
|
|
296
296
|
function da(e, t, r = 8) {
|
|
297
|
-
return
|
|
297
|
+
return Sl.divide(`${e}`, `${t}`, r);
|
|
298
298
|
}
|
|
299
|
-
var Cf =
|
|
299
|
+
var Cf = Sl.RoundingModes;
|
|
300
300
|
function an(e, t) {
|
|
301
|
-
return e = `${e}`, t = `${t}`,
|
|
301
|
+
return e = `${e}`, t = `${t}`, Sl.compareTo(e, t);
|
|
302
302
|
}
|
|
303
303
|
function To(e) {
|
|
304
|
-
return
|
|
304
|
+
return Sl.negate(e);
|
|
305
305
|
}
|
|
306
306
|
function Or(e, t = -1, r = !1, n = 3, l = ",") {
|
|
307
307
|
let a = `${e}`;
|
|
@@ -329,7 +329,7 @@ function Lf(e) {
|
|
|
329
329
|
return e.__esModule || Io && e[Symbol.toStringTag] === "Module";
|
|
330
330
|
}
|
|
331
331
|
var Fo = typeof Promise < "u" && Promise.toString().indexOf("[native code]") !== -1;
|
|
332
|
-
function
|
|
332
|
+
function yl(...e) {
|
|
333
333
|
let t = e[0] !== void 0 && e[0] !== null ? e[0] : {}, r = 1, n = e.length, l = !1;
|
|
334
334
|
for (typeof t == "boolean" && (l = t, t = e[r] ?? {}, r++), typeof t != "object" && (t = {}); r < n; r++) if (e[r] !== null && e[r] !== void 0) {
|
|
335
335
|
let a = e[r];
|
|
@@ -338,7 +338,7 @@ function vl(...e) {
|
|
|
338
338
|
if (s !== i)
|
|
339
339
|
if (l === !0 && i && typeof i == "object") {
|
|
340
340
|
let f;
|
|
341
|
-
Array.isArray(i) ? f = s && Array.isArray(s) ? s : [] : f = s && typeof s == "object" ? s : {}, t[o] =
|
|
341
|
+
Array.isArray(i) ? f = s && Array.isArray(s) ? s : [] : f = s && typeof s == "object" ? s : {}, t[o] = yl(l, f, i);
|
|
342
342
|
} else i !== void 0 && (t[o] = i);
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -485,7 +485,7 @@ function Pf(e, t) {
|
|
|
485
485
|
function jl(e) {
|
|
486
486
|
return e == null || e == null ? 0 : typeof e == "string" ? e.length : `${e}`.length;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Zt(e, ...t) {
|
|
489
489
|
const r = {};
|
|
490
490
|
return t.forEach((n) => {
|
|
491
491
|
for (const l in n) r[l] = e[l];
|
|
@@ -514,7 +514,7 @@ var Df = (e, t = 2) => {
|
|
|
514
514
|
for (e += ""; e.length < t; ) e = "0" + e;
|
|
515
515
|
return e.toString();
|
|
516
516
|
}, Rf = (e, t, r) => Math.min(Math.max(e, t), r);
|
|
517
|
-
function
|
|
517
|
+
function Fl(e) {
|
|
518
518
|
return e.split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join("");
|
|
519
519
|
}
|
|
520
520
|
function Ho(e) {
|
|
@@ -665,36 +665,36 @@ function Bf(e, t, r) {
|
|
|
665
665
|
l.destroy(), n[Re] = void 0;
|
|
666
666
|
}), l;
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function zl(e = null) {
|
|
669
669
|
return e || (e = Be()?.proxy ?? null), e ? e[Re] ?? Ye(Re, null) : Ye(Re, null);
|
|
670
670
|
}
|
|
671
671
|
var jo = class {
|
|
672
672
|
error(e, t) {
|
|
673
|
-
const r = t, n = t ||
|
|
673
|
+
const r = t, n = t || Nl() ? zl(t) : null;
|
|
674
674
|
n ? n.emit({ name: "*" }, "setErrorTip", e) : typeof r.setErrorTip == "function" && r.setErrorTip(e);
|
|
675
675
|
}
|
|
676
676
|
reset(e) {
|
|
677
|
-
const t = e, r = e ||
|
|
677
|
+
const t = e, r = e || Nl() ? zl(e) : null;
|
|
678
678
|
r ? r.emit({ name: "*" }, "setErrorTip", "") : typeof t.setErrorTip == "function" && t.setErrorTip("");
|
|
679
679
|
}
|
|
680
680
|
success(e) {
|
|
681
|
-
const t = e, r = e ||
|
|
681
|
+
const t = e, r = e || Nl() ? zl(e) : null;
|
|
682
682
|
r ? r.emit({ name: "*" }, "setErrorTip", "") : typeof t.setErrorTip == "function" && t.setErrorTip("");
|
|
683
683
|
}
|
|
684
684
|
decorate(e, t, r) {
|
|
685
685
|
Array.isArray(e) || (e = [e]);
|
|
686
|
-
const n = r, l = r ||
|
|
686
|
+
const n = r, l = r || Nl() ? zl(r) : null, a = t.find((s) => s.required === !0 || s.type === "required" && s.required !== !1), o = e.find((s) => s.required === !0 || s.type === "required" && s.required !== !1);
|
|
687
687
|
!a && o ? l ? l.emit({ name: "*" }, "setRequired", !0) : typeof n.setRequired == "function" && n.setRequired(!0) : a && !o && (l ? l.emit({ name: "*" }, "setRequired", !1) : typeof n.setRequired == "function" && n.setRequired(!1), this.reset(r));
|
|
688
688
|
}
|
|
689
689
|
getValue(e) {
|
|
690
690
|
return e.modelValue;
|
|
691
691
|
}
|
|
692
|
-
},
|
|
692
|
+
}, dl = new jo();
|
|
693
693
|
function qf(e) {
|
|
694
|
-
|
|
694
|
+
dl = e;
|
|
695
695
|
}
|
|
696
696
|
function Hf(e) {
|
|
697
|
-
|
|
697
|
+
dl ? Object.assign(dl, e) : dl = e;
|
|
698
698
|
}
|
|
699
699
|
function jf(e, t) {
|
|
700
700
|
Ot.setValidator(e, t);
|
|
@@ -723,7 +723,7 @@ function Wo() {
|
|
|
723
723
|
function Uf(e) {
|
|
724
724
|
Ot.messages(e);
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function al(...e) {
|
|
727
727
|
const t = [];
|
|
728
728
|
return e.forEach((r) => {
|
|
729
729
|
r.forEach((n) => {
|
|
@@ -732,7 +732,7 @@ function nl(...e) {
|
|
|
732
732
|
});
|
|
733
733
|
}), t;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function kl(e) {
|
|
736
736
|
return e.forEach((t) => {
|
|
737
737
|
t.type === "required" && (t.required === null || t.required === void 0) && (t.required = !0), !t.type && (t.required === !0 || t.required === !1) && (t.type = "required");
|
|
738
738
|
}), e;
|
|
@@ -753,7 +753,7 @@ var bt = Symbol("ValidateSchemaKey"), Yo = class {
|
|
|
753
753
|
let e = this.proxy.$attrs;
|
|
754
754
|
e && (this.scope = Ai(!0), this.scope.run(() => {
|
|
755
755
|
Oi(() => {
|
|
756
|
-
const t =
|
|
756
|
+
const t = kl(al(this.attrRules, this.rules)), r = [];
|
|
757
757
|
for (let l in e) {
|
|
758
758
|
let a = e[l];
|
|
759
759
|
if (this.hasValidator(l, !0)) {
|
|
@@ -771,8 +771,8 @@ var bt = Symbol("ValidateSchemaKey"), Yo = class {
|
|
|
771
771
|
r.push(s);
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
|
-
this.attrRules =
|
|
775
|
-
const n =
|
|
774
|
+
this.attrRules = kl(r);
|
|
775
|
+
const n = al(this.attrRules, this.rules);
|
|
776
776
|
It(() => {
|
|
777
777
|
this.decorate(n, t);
|
|
778
778
|
});
|
|
@@ -785,7 +785,7 @@ var bt = Symbol("ValidateSchemaKey"), Yo = class {
|
|
|
785
785
|
execHandler(e, ...t) {
|
|
786
786
|
const r = this.descriptor.validateHandler;
|
|
787
787
|
if (r && typeof r[e] == "function") return Reflect.apply(r[e], r, [...t]);
|
|
788
|
-
const n =
|
|
788
|
+
const n = dl;
|
|
789
789
|
return n && typeof n[e] == "function" ? Reflect.apply(n[e], n, [...t]) : null;
|
|
790
790
|
}
|
|
791
791
|
decorate(e, t) {
|
|
@@ -818,9 +818,9 @@ var bt = Symbol("ValidateSchemaKey"), Yo = class {
|
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
setRule(e) {
|
|
821
|
-
const t =
|
|
822
|
-
e === null ? this.rules = [] : Array.isArray(e) ? this.rules =
|
|
823
|
-
const r =
|
|
821
|
+
const t = al(this.attrRules, this.rules);
|
|
822
|
+
e === null ? this.rules = [] : Array.isArray(e) ? this.rules = kl(e) : this.rules = kl([e]);
|
|
823
|
+
const r = al(this.attrRules, this.rules);
|
|
824
824
|
It(() => {
|
|
825
825
|
this.decorate(r, t);
|
|
826
826
|
});
|
|
@@ -830,7 +830,7 @@ var bt = Symbol("ValidateSchemaKey"), Yo = class {
|
|
|
830
830
|
}
|
|
831
831
|
validate() {
|
|
832
832
|
if (this.descriptor.validate ?? !0) {
|
|
833
|
-
let e =
|
|
833
|
+
let e = al(this.attrRules, this.rules);
|
|
834
834
|
const t = this.descriptor.fieldName ?? "value";
|
|
835
835
|
if (e.length > 0) {
|
|
836
836
|
const r = { [`${t}`]: e }, n = this.getValue(), l = { [`${t}`]: n }, a = new Ot(r), o = this.proxy ?? l;
|
|
@@ -860,7 +860,7 @@ function Rr(e, t, r) {
|
|
|
860
860
|
}
|
|
861
861
|
return new Yo(t, r, e);
|
|
862
862
|
}
|
|
863
|
-
var
|
|
863
|
+
var Pl = Symbol.for("EventEmitterKey"), ba = class {
|
|
864
864
|
register = /* @__PURE__ */ new Map();
|
|
865
865
|
proxy;
|
|
866
866
|
constructor(e) {
|
|
@@ -952,7 +952,7 @@ function Br(e, t, r, n = 0, l = !0, a) {
|
|
|
952
952
|
};
|
|
953
953
|
setTimeout(i, o);
|
|
954
954
|
}
|
|
955
|
-
var ot = Symbol("DomainKey"),
|
|
955
|
+
var ot = Symbol("DomainKey"), il = Symbol("DataItemsKey"), qr = class {
|
|
956
956
|
_parent = null;
|
|
957
957
|
get parent() {
|
|
958
958
|
return this._parent;
|
|
@@ -1030,7 +1030,7 @@ var ot = Symbol("DomainKey"), al = Symbol("DataItemsKey"), qr = class {
|
|
|
1030
1030
|
return t;
|
|
1031
1031
|
}
|
|
1032
1032
|
}, Go = new qr();
|
|
1033
|
-
function
|
|
1033
|
+
function hl() {
|
|
1034
1034
|
return Go;
|
|
1035
1035
|
}
|
|
1036
1036
|
function Ht(e = null) {
|
|
@@ -1040,7 +1040,7 @@ var or = Symbol("OriginalDateKey");
|
|
|
1040
1040
|
function wa(e, t, r = [], n) {
|
|
1041
1041
|
const l = Be();
|
|
1042
1042
|
let a = l?.proxy, o = Ye(ot, null);
|
|
1043
|
-
o === null && (o =
|
|
1043
|
+
o === null && (o = hl());
|
|
1044
1044
|
const s = e || t.prop || t.name;
|
|
1045
1045
|
let i = new qr(s);
|
|
1046
1046
|
i.parent = o;
|
|
@@ -1048,7 +1048,7 @@ function wa(e, t, r = [], n) {
|
|
|
1048
1048
|
a[or] || w(c), i?.set("modelValue", c);
|
|
1049
1049
|
}, d = () => i?.getForSelf("modelValue") ?? null, u = () => a[or] ?? null, w = (c) => {
|
|
1050
1050
|
const g = {};
|
|
1051
|
-
|
|
1051
|
+
yl(!0, g, xe(c)), a[or] = g;
|
|
1052
1052
|
};
|
|
1053
1053
|
mt(t) || typeof t == "function" ? ce(t, (c) => {
|
|
1054
1054
|
i?.merge(c, r);
|
|
@@ -1064,7 +1064,7 @@ function wa(e, t, r = [], n) {
|
|
|
1064
1064
|
...A
|
|
1065
1065
|
]);
|
|
1066
1066
|
const $ = Ye(bt, null), b = Rr(a, $, { componentName: "" });
|
|
1067
|
-
i.validateSchema = b, a[bt] = b, Ae(bt, b), a[
|
|
1067
|
+
i.validateSchema = b, a[bt] = b, Ae(bt, b), a[il] = /* @__PURE__ */ new Map(), a.validate = (y = !0) => {
|
|
1068
1068
|
const I = [];
|
|
1069
1069
|
let A = null;
|
|
1070
1070
|
const E = { deep: !1 };
|
|
@@ -1106,7 +1106,7 @@ function wa(e, t, r = [], n) {
|
|
|
1106
1106
|
};
|
|
1107
1107
|
if (i) {
|
|
1108
1108
|
const _ = Zo(i, k, O, g, b);
|
|
1109
|
-
a[
|
|
1109
|
+
a[il].set(k, _);
|
|
1110
1110
|
const U = y[k];
|
|
1111
1111
|
U && _.validateSchema.setRule(U);
|
|
1112
1112
|
}
|
|
@@ -1142,7 +1142,7 @@ function wa(e, t, r = [], n) {
|
|
|
1142
1142
|
const I = d();
|
|
1143
1143
|
if (!I) return;
|
|
1144
1144
|
const A = {};
|
|
1145
|
-
if (
|
|
1145
|
+
if (yl(!0, A, u() ?? {}), Array.isArray(y)) y.forEach((E) => {
|
|
1146
1146
|
I[E] = A[E];
|
|
1147
1147
|
});
|
|
1148
1148
|
else if (y && Array.isArray(y.include)) (y.include ?? []).forEach((E) => {
|
|
@@ -1171,12 +1171,12 @@ function wa(e, t, r = [], n) {
|
|
|
1171
1171
|
}, 0);
|
|
1172
1172
|
}
|
|
1173
1173
|
return dt(function() {
|
|
1174
|
-
i?.validateSchema && (i.validateSchema.destroy(), a[bt] = void 0, Ae(bt, null)), i?.broadcast && (i?.broadcast?.destroy(), a[Re] = void 0, Ae(Re, null)), i?.destroy(), a[ot] = void 0, Ae(ot, null), a[
|
|
1174
|
+
i?.validateSchema && (i.validateSchema.destroy(), a[bt] = void 0, Ae(bt, null)), i?.broadcast && (i?.broadcast?.destroy(), a[Re] = void 0, Ae(Re, null)), i?.destroy(), a[ot] = void 0, Ae(ot, null), a[il] && (a[il].clear(), a[il] = void 0), a.broadcast = null, a.validate = null, a.setNameValidateRules = null, a.clearValidate = null, a.resetFields = null, a.setModelValue = null, a.getModelValue = null, a.setDomainProperty = null, a.getDomainProperty = null, i = null, a = null;
|
|
1175
1175
|
}), i;
|
|
1176
1176
|
}
|
|
1177
1177
|
function Xo(e, t, r = []) {
|
|
1178
1178
|
let n = Be()?.proxy, l = Ye(ot, null);
|
|
1179
|
-
l === null && (l =
|
|
1179
|
+
l === null && (l = hl());
|
|
1180
1180
|
let a = new qr(e || t.prop || t.name);
|
|
1181
1181
|
return a.parent = l, mt(t) || typeof t == "function" ? ce(t, (o) => {
|
|
1182
1182
|
a?.merge(o, r);
|
|
@@ -1264,7 +1264,7 @@ function Ue(e, t, r) {
|
|
|
1264
1264
|
u && a && a.emitToChildren(u, "clearValidate", !1);
|
|
1265
1265
|
};
|
|
1266
1266
|
let i = new ba(n);
|
|
1267
|
-
n[
|
|
1267
|
+
n[Pl] = i;
|
|
1268
1268
|
const f = gt((d = "validate") => {
|
|
1269
1269
|
s && (d === "reset" ? s.clear() : s.validate());
|
|
1270
1270
|
}, 60);
|
|
@@ -1279,7 +1279,7 @@ function Ue(e, t, r) {
|
|
|
1279
1279
|
}), setTimeout(function() {
|
|
1280
1280
|
a?.pull();
|
|
1281
1281
|
}, 0), dt(() => {
|
|
1282
|
-
a?.destroy(), n[Re] = void 0, Ae(Re, null), a = null, s?.destroy(), n[bt] = void 0, Ae(bt, null), s = null, i?.destroy(), n[
|
|
1282
|
+
a?.destroy(), n[Re] = void 0, Ae(Re, null), a = null, s?.destroy(), n[bt] = void 0, Ae(bt, null), s = null, i?.destroy(), n[Pl] = void 0, i = null, n.broadcast = null, n.validate = null, n.setValidateRule = null, n.setNameValidateRules = null, n.clearValidate = null;
|
|
1283
1283
|
}), {
|
|
1284
1284
|
broadcast: a,
|
|
1285
1285
|
validateSchema: s,
|
|
@@ -1370,8 +1370,8 @@ function Zo(e, t, r, n, l) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
function Jo() {
|
|
1372
1372
|
let e = Be()?.proxy, t = new ba(e);
|
|
1373
|
-
return e[
|
|
1374
|
-
t?.destroy(), e[
|
|
1373
|
+
return e[Pl] = t, dt(() => {
|
|
1374
|
+
t?.destroy(), e[Pl] = void 0, t = null, e = null;
|
|
1375
1375
|
}), {
|
|
1376
1376
|
emitEvent: (r, ...n) => {
|
|
1377
1377
|
t && Reflect.apply(t.emit, t, [r, ...n]);
|
|
@@ -1526,7 +1526,7 @@ function r1(e = !1) {
|
|
|
1526
1526
|
var Ze = /* @__PURE__ */ (function(e) {
|
|
1527
1527
|
return e[e.Parent = 0] = "Parent", e[e.Near = 1] = "Near", e;
|
|
1528
1528
|
})({});
|
|
1529
|
-
function
|
|
1529
|
+
function _l(e, t) {
|
|
1530
1530
|
return e == null ? !1 : typeof t == "function" ? t(e) : !0;
|
|
1531
1531
|
}
|
|
1532
1532
|
function Je(e, t, r = Ze.Near, n) {
|
|
@@ -1535,17 +1535,17 @@ function Je(e, t, r = Ze.Near, n) {
|
|
|
1535
1535
|
const a = l.getAll(t);
|
|
1536
1536
|
for (let s = a.length - 1; s >= 0; s--) {
|
|
1537
1537
|
const i = a[s];
|
|
1538
|
-
if (
|
|
1538
|
+
if (_l(i, n)) return i;
|
|
1539
1539
|
}
|
|
1540
1540
|
const o = e.value;
|
|
1541
|
-
return
|
|
1541
|
+
return _l(o, n) ? o : null;
|
|
1542
1542
|
}) : x(() => {
|
|
1543
1543
|
const a = e.value;
|
|
1544
|
-
if (
|
|
1544
|
+
if (_l(a, n)) return a;
|
|
1545
1545
|
const o = l.getAll(t);
|
|
1546
1546
|
for (let s = 0; s < o.length; s++) {
|
|
1547
1547
|
const i = o[s];
|
|
1548
|
-
if (
|
|
1548
|
+
if (_l(i, n)) return i;
|
|
1549
1549
|
}
|
|
1550
1550
|
return null;
|
|
1551
1551
|
});
|
|
@@ -1570,7 +1570,7 @@ function nt(e) {
|
|
|
1570
1570
|
};
|
|
1571
1571
|
}
|
|
1572
1572
|
function _e(e, t = "modelValue", r = null, n) {
|
|
1573
|
-
const l =
|
|
1573
|
+
const l = pl(e, t);
|
|
1574
1574
|
let a = l.value;
|
|
1575
1575
|
typeof r == "function" && (a = r(l.value));
|
|
1576
1576
|
const o = R(a);
|
|
@@ -1581,21 +1581,21 @@ function _e(e, t = "modelValue", r = null, n) {
|
|
|
1581
1581
|
} else s !== o.value && (o.value = s, n && n("setValue", s));
|
|
1582
1582
|
}), o;
|
|
1583
1583
|
}
|
|
1584
|
-
var Ca = /* @__PURE__ */ new Map(),
|
|
1584
|
+
var Ca = /* @__PURE__ */ new Map(), Ol = /* @__PURE__ */ new Map(), Cr = null;
|
|
1585
1585
|
function s1(e) {
|
|
1586
1586
|
Cr = e;
|
|
1587
1587
|
}
|
|
1588
1588
|
function za(e, t, r) {
|
|
1589
1589
|
if (r) {
|
|
1590
|
-
let n =
|
|
1591
|
-
n || (n = /* @__PURE__ */ new Map(),
|
|
1590
|
+
let n = Ol.get(r);
|
|
1591
|
+
n || (n = /* @__PURE__ */ new Map(), Ol.set(r, n)), n.set(e, t);
|
|
1592
1592
|
} else Ca.set(e, t);
|
|
1593
1593
|
}
|
|
1594
1594
|
function ut(e, t, r) {
|
|
1595
1595
|
!r && Cr && (r = Cr(e) ?? void 0);
|
|
1596
1596
|
let n = null;
|
|
1597
1597
|
if (r) {
|
|
1598
|
-
let l =
|
|
1598
|
+
let l = Ol.get(r);
|
|
1599
1599
|
l && (n = l.get(t));
|
|
1600
1600
|
}
|
|
1601
1601
|
return n || (n = Ca.get(t)), n;
|
|
@@ -1607,7 +1607,7 @@ function o1(e, t) {
|
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
1609
|
function u1(e) {
|
|
1610
|
-
|
|
1610
|
+
Ol.delete(e);
|
|
1611
1611
|
}
|
|
1612
1612
|
function c1() {
|
|
1613
1613
|
return {
|
|
@@ -1634,7 +1634,7 @@ function d1(e, t) {
|
|
|
1634
1634
|
const n = r.indexOf("-");
|
|
1635
1635
|
n !== -1 ? r = `${t.componentPrefix}${r.slice(n)}` : r = `${t.componentPrefix}-${r}`;
|
|
1636
1636
|
}
|
|
1637
|
-
return
|
|
1637
|
+
return Fl(r);
|
|
1638
1638
|
}
|
|
1639
1639
|
var h1 = class {
|
|
1640
1640
|
packages;
|
|
@@ -1656,7 +1656,7 @@ var h1 = class {
|
|
|
1656
1656
|
}), this.installers.forEach((n) => {
|
|
1657
1657
|
n(e, t);
|
|
1658
1658
|
}));
|
|
1659
|
-
const r =
|
|
1659
|
+
const r = hl();
|
|
1660
1660
|
if (t.autoAdjustPageLayout !== !1 && window.ResizeObserver) {
|
|
1661
1661
|
const n = { ...t }, l = gt(() => {
|
|
1662
1662
|
const a = { ...n };
|
|
@@ -1667,8 +1667,8 @@ var h1 = class {
|
|
|
1667
1667
|
this.updateLayout(t, r);
|
|
1668
1668
|
}
|
|
1669
1669
|
updateLayout(e, t) {
|
|
1670
|
-
const r = e.headerBarHeight ?? 0, n = e.footerBarHeight ?? 0, l =
|
|
1671
|
-
t = t ??
|
|
1670
|
+
const r = e.headerBarHeight ?? 0, n = e.footerBarHeight ?? 0, l = yl({}, c1(), e.safeAreaInset), a = f1(), o = yl({}, a.pageLayout, e.pageLayout);
|
|
1671
|
+
t = t ?? hl(), t.set("safeAreaInset", l), t.set("headerBarHeight", r), t.set("footerBarHeight", n), t.set("pageLayout", o), t.set("rootWidth", a.rootWidth), t.set("rootHeight", a.rootHeight);
|
|
1672
1672
|
const s = [
|
|
1673
1673
|
"install",
|
|
1674
1674
|
"componentPrefix",
|
|
@@ -1698,7 +1698,7 @@ var h1 = class {
|
|
|
1698
1698
|
u1(e);
|
|
1699
1699
|
}
|
|
1700
1700
|
getRootDomain() {
|
|
1701
|
-
return
|
|
1701
|
+
return hl();
|
|
1702
1702
|
}
|
|
1703
1703
|
}, g1 = [
|
|
1704
1704
|
Di,
|
|
@@ -1719,7 +1719,7 @@ var h1 = class {
|
|
|
1719
1719
|
Bn,
|
|
1720
1720
|
ts,
|
|
1721
1721
|
ls,
|
|
1722
|
-
|
|
1722
|
+
Xt,
|
|
1723
1723
|
qn,
|
|
1724
1724
|
ql,
|
|
1725
1725
|
rs,
|
|
@@ -1745,7 +1745,7 @@ var h1 = class {
|
|
|
1745
1745
|
ys,
|
|
1746
1746
|
ws,
|
|
1747
1747
|
Ss,
|
|
1748
|
-
|
|
1748
|
+
tl,
|
|
1749
1749
|
Ns,
|
|
1750
1750
|
Cs,
|
|
1751
1751
|
Vr,
|
|
@@ -1769,7 +1769,7 @@ var h1 = class {
|
|
|
1769
1769
|
js,
|
|
1770
1770
|
Ks,
|
|
1771
1771
|
Zn,
|
|
1772
|
-
|
|
1772
|
+
cl,
|
|
1773
1773
|
Wn,
|
|
1774
1774
|
Ys,
|
|
1775
1775
|
Us,
|
|
@@ -1818,21 +1818,21 @@ var h1 = class {
|
|
|
1818
1818
|
if (typeof n.name == "string") {
|
|
1819
1819
|
let l = "";
|
|
1820
1820
|
const a = Ho(n.name), o = a.indexOf("-");
|
|
1821
|
-
o !== -1 ? l = `${r}${a.slice(o)}` : l = `${r}-${a}`, l =
|
|
1821
|
+
o !== -1 ? l = `${r}${a.slice(o)}` : l = `${r}-${a}`, l = Fl(l), e.component(l, n);
|
|
1822
1822
|
} else e.use(n);
|
|
1823
1823
|
}), m1.forEach((n) => {
|
|
1824
1824
|
e.use(n);
|
|
1825
1825
|
});
|
|
1826
1826
|
};
|
|
1827
1827
|
function fe(e) {
|
|
1828
|
-
const t = `fox-${e}`, r =
|
|
1828
|
+
const t = `fox-${e}`, r = Fl(t);
|
|
1829
1829
|
return {
|
|
1830
1830
|
componentName: t,
|
|
1831
1831
|
scope: e.replace("-", ""),
|
|
1832
1832
|
create(n) {
|
|
1833
1833
|
return n.baseName = e, n.name = r, n.install = (l, a) => {
|
|
1834
1834
|
let o = n.name;
|
|
1835
|
-
a?.componentPrefix && (o = `${a.componentPrefix}-${n.baseName}`, o =
|
|
1835
|
+
a?.componentPrefix && (o = `${a.componentPrefix}-${n.baseName}`, o = Fl(o)), l.component(o, n);
|
|
1836
1836
|
}, ct(n);
|
|
1837
1837
|
},
|
|
1838
1838
|
createDemo(n) {
|
|
@@ -2656,7 +2656,7 @@ function E1(e, t) {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
};
|
|
2658
2658
|
}
|
|
2659
|
-
var { componentName: D1, create: R1, scope: B1 } = fe("content"), q1 = R1(E1(D1, B1)), H1 = q1,
|
|
2659
|
+
var { componentName: D1, create: R1, scope: B1 } = fe("content"), q1 = R1(E1(D1, B1)), H1 = q1, Jt = "GroupStateKey", La = Symbol.for("GroupScopeKey");
|
|
2660
2660
|
function Yl() {
|
|
2661
2661
|
return Ye(La, !1);
|
|
2662
2662
|
}
|
|
@@ -2683,10 +2683,10 @@ function K1(e, t = {}) {
|
|
|
2683
2683
|
passport: 0,
|
|
2684
2684
|
order: { index: 0 }
|
|
2685
2685
|
});
|
|
2686
|
-
return e.set(
|
|
2686
|
+
return e.set(Jt, n), n;
|
|
2687
2687
|
}
|
|
2688
2688
|
function ur(e, t, r = -1, n = -1, l = !1, a, o, s) {
|
|
2689
|
-
const i = e.get(
|
|
2689
|
+
const i = e.get(Jt);
|
|
2690
2690
|
if (!i) return;
|
|
2691
2691
|
const f = e.get("groupLayout") ?? {};
|
|
2692
2692
|
r === -1 && (r = f.column ?? 1), n === -1 && (n = f.gutter ?? 0), a || (a = f.minItemWidth ?? -1), o || (o = f.maxItemWidth ?? -1);
|
|
@@ -2717,11 +2717,11 @@ function ur(e, t, r = -1, n = -1, l = !1, a, o, s) {
|
|
|
2717
2717
|
}
|
|
2718
2718
|
function Gl(e, t = !1) {
|
|
2719
2719
|
let r;
|
|
2720
|
-
return t ? r = e.getForParent(
|
|
2720
|
+
return t ? r = e.getForParent(Jt) : r = e.get(Jt), r.layout;
|
|
2721
2721
|
}
|
|
2722
2722
|
function Xl(e, t = !1) {
|
|
2723
2723
|
let r;
|
|
2724
|
-
return t ? r = e.getForParent(
|
|
2724
|
+
return t ? r = e.getForParent(Jt) : r = e.get(Jt), r.order;
|
|
2725
2725
|
}
|
|
2726
2726
|
function fn(e, t = 1) {
|
|
2727
2727
|
if (t === "stretch") return -1;
|
|
@@ -2812,13 +2812,13 @@ function J1(e, t, r) {
|
|
|
2812
2812
|
setup(n, l) {
|
|
2813
2813
|
const a = wa(n.prop ?? n.name, n, $a), o = K1(a, { type: n.type }), s = Yl();
|
|
2814
2814
|
Ul(!0);
|
|
2815
|
-
const i = n.rollingDisplay ? Y1() : null, f = R(null), d = x(() => n.rollingDisplay ? i && !i.disabled : !1), u = x(() => s && a ? Gl(a, !0).value : null), w = Be(), N = (
|
|
2815
|
+
const i = n.rollingDisplay ? Y1() : null, f = R(null), d = x(() => n.rollingDisplay ? i && !i.disabled : !1), u = x(() => s && a ? Gl(a, !0).value : null), w = Be(), N = (K, te = !1) => {
|
|
2816
2816
|
const v = w?.proxy;
|
|
2817
|
-
v && typeof v.setNameValidateRules == "function" && v.setNameValidateRules(
|
|
2817
|
+
v && typeof v.setNameValidateRules == "function" && v.setNameValidateRules(K, !0, te);
|
|
2818
2818
|
};
|
|
2819
|
-
ce([() => n.rules, () => n.pureDataRules], ([
|
|
2820
|
-
if (
|
|
2821
|
-
const T = xe(v), q = xe(
|
|
2819
|
+
ce([() => n.rules, () => n.pureDataRules], ([K, te], [v, h]) => {
|
|
2820
|
+
if (K && v) {
|
|
2821
|
+
const T = xe(v), q = xe(K), J = q ? Reflect.ownKeys(q) : [];
|
|
2822
2822
|
(T ? Reflect.ownKeys(T) : []).forEach((re) => {
|
|
2823
2823
|
J.includes(re) || (q[re] = []);
|
|
2824
2824
|
}), N(q);
|
|
@@ -2831,58 +2831,58 @@ function J1(e, t, r) {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
}, { deep: !0 });
|
|
2833
2833
|
const p = e, c = x(() => {
|
|
2834
|
-
const
|
|
2835
|
-
|
|
2834
|
+
const K = {};
|
|
2835
|
+
K.height = M.value;
|
|
2836
2836
|
const te = s ? Xl(a, !0) : null;
|
|
2837
2837
|
if (u.value && te) {
|
|
2838
2838
|
if (u.value.type === "grid") {
|
|
2839
2839
|
const v = Jl(te, u.value, n.span, n.offset);
|
|
2840
|
-
Object.assign(
|
|
2840
|
+
Object.assign(K, v);
|
|
2841
2841
|
} else if (u.value.type === "flow") {
|
|
2842
2842
|
const v = Zl(te, u.value, n.span, n.offset, n.width);
|
|
2843
|
-
Object.assign(
|
|
2843
|
+
Object.assign(K, v);
|
|
2844
2844
|
}
|
|
2845
|
-
} else n.width && (
|
|
2846
|
-
return
|
|
2845
|
+
} else n.width && (K.width = Ve(n.width));
|
|
2846
|
+
return K;
|
|
2847
2847
|
}), g = x(() => {
|
|
2848
|
-
const
|
|
2849
|
-
return
|
|
2850
|
-
[`${p}--${
|
|
2851
|
-
[`${p}--${
|
|
2852
|
-
[`${p}--${
|
|
2848
|
+
const K = o.layout.value.type;
|
|
2849
|
+
return K === "grid" || K === "flow" ? {
|
|
2850
|
+
[`${p}--${K}`]: !0,
|
|
2851
|
+
[`${p}--${K}-justify-${n.justify}`]: !0,
|
|
2852
|
+
[`${p}--${K}-align-${n.align}`]: !0,
|
|
2853
2853
|
[`${p}--gutter`]: !0
|
|
2854
2854
|
} : {
|
|
2855
|
-
[`${p}--${
|
|
2855
|
+
[`${p}--${K}`]: !0,
|
|
2856
2856
|
[`${p}--gutter`]: !0
|
|
2857
2857
|
};
|
|
2858
2858
|
}), $ = x(() => {
|
|
2859
2859
|
if (o.layout.value.type === "grid") {
|
|
2860
|
-
let
|
|
2861
|
-
if (n.columnWidth)
|
|
2860
|
+
let K = "";
|
|
2861
|
+
if (n.columnWidth) K = `repeat(auto-fill, ${n.columnWidth})`;
|
|
2862
2862
|
else {
|
|
2863
2863
|
const te = G1(O.value, o.layout.value.column, o.layout.value.gutter);
|
|
2864
|
-
|
|
2864
|
+
K = `repeat(${o.layout.value.column}, ${te})`;
|
|
2865
2865
|
}
|
|
2866
2866
|
return {
|
|
2867
2867
|
"column-gap": `${o.layout.value.gutter}px`,
|
|
2868
|
-
"grid-template-columns":
|
|
2868
|
+
"grid-template-columns": K
|
|
2869
2869
|
};
|
|
2870
2870
|
}
|
|
2871
|
-
}), b =
|
|
2872
|
-
A.push(
|
|
2871
|
+
}), b = pl(n, "gutter"), y = pl(n, "column"), I = x(() => s || d.value ? !0 : pe(n.isWrap)), A = [], E = (K) => {
|
|
2872
|
+
A.push(K);
|
|
2873
2873
|
}, k = () => {
|
|
2874
|
-
let
|
|
2875
|
-
A.splice(0,
|
|
2876
|
-
}, O = R(-1), _ = (
|
|
2877
|
-
const te = Wr(
|
|
2874
|
+
let K = A.length;
|
|
2875
|
+
A.splice(0, K);
|
|
2876
|
+
}, O = R(-1), _ = (K) => {
|
|
2877
|
+
const te = Wr(K).width;
|
|
2878
2878
|
te > 0 && te !== O.value && (O.value = te);
|
|
2879
2879
|
};
|
|
2880
2880
|
ur(a, O.value, y.value, b.value, !0, n.minItemWidth, n.maxItemWidth, n.type), n.autoLayout && ce([
|
|
2881
2881
|
O,
|
|
2882
2882
|
y,
|
|
2883
2883
|
b
|
|
2884
|
-
], ([
|
|
2885
|
-
o.order.index = 0, ur(a,
|
|
2884
|
+
], ([K, te, v]) => {
|
|
2885
|
+
o.order.index = 0, ur(a, K, te, v, !1, n.minItemWidth, n.maxItemWidth, n.type);
|
|
2886
2886
|
});
|
|
2887
2887
|
const U = x(() => z.value ? n.expandText ?? "" : n.collapseText ?? ""), m = x(() => ({ [`${e}__header-collapse-text`]: !0 })), P = x(() => ({
|
|
2888
2888
|
[`${e}__header-collapse-icon`]: !0,
|
|
@@ -2890,35 +2890,35 @@ function J1(e, t, r) {
|
|
|
2890
2890
|
"is-collapse": z.value
|
|
2891
2891
|
})), Z = R(), S = R(), M = x(() => H.value || Ve(n.height) || ""), z = R(!1), H = R(""), j = R(!1);
|
|
2892
2892
|
let D = -1;
|
|
2893
|
-
const L = (
|
|
2893
|
+
const L = (K, te = !0) => {
|
|
2894
2894
|
const v = Z.value;
|
|
2895
|
-
if (v && z.value !==
|
|
2895
|
+
if (v && z.value !== K) {
|
|
2896
2896
|
if (D = D === -1 ? U1(v) : D, j.value = !0, te)
|
|
2897
2897
|
if (v.style["will-change"] = "height", v.ontransitionend = function() {
|
|
2898
|
-
v.ontransitionend = null, this.style["will-change"] = "auto",
|
|
2899
|
-
},
|
|
2898
|
+
v.ontransitionend = null, this.style["will-change"] = "auto", K || (H.value = "", j.value = !1);
|
|
2899
|
+
}, K) {
|
|
2900
2900
|
let h = 0;
|
|
2901
2901
|
n.collapseHeight ? h = ve(n.collapseHeight) : S.value && S.value.classList.contains(`${e}__header`) && (h = S.value.offsetHeight), H.value = `${D}px`, It(() => {
|
|
2902
2902
|
H.value = `${h}px`;
|
|
2903
2903
|
});
|
|
2904
2904
|
} else H.value = `${D}px`;
|
|
2905
|
-
else if (
|
|
2905
|
+
else if (K) {
|
|
2906
2906
|
let h = 0;
|
|
2907
2907
|
n.collapseHeight ? h = ve(n.collapseHeight) : S.value && S.value.classList.contains(`${e}__header`) && (h = S.value.offsetHeight), H.value = `${h}px`;
|
|
2908
2908
|
} else
|
|
2909
2909
|
j.value = !1, H.value = `${D}px`;
|
|
2910
|
-
z.value =
|
|
2910
|
+
z.value = K, l.emit("update:collapse", K);
|
|
2911
2911
|
}
|
|
2912
2912
|
};
|
|
2913
|
-
ce(() => n.collapse, (
|
|
2914
|
-
L(pe(
|
|
2913
|
+
ce(() => n.collapse, (K) => {
|
|
2914
|
+
L(pe(K));
|
|
2915
2915
|
});
|
|
2916
|
-
const X = (
|
|
2917
|
-
l.emit("header-click",
|
|
2918
|
-
},
|
|
2916
|
+
const X = (K) => {
|
|
2917
|
+
l.emit("header-click", K);
|
|
2918
|
+
}, W = () => {
|
|
2919
2919
|
F();
|
|
2920
|
-
}, F = (
|
|
2921
|
-
|
|
2920
|
+
}, F = (K) => {
|
|
2921
|
+
K = K ?? !z.value, L(K);
|
|
2922
2922
|
};
|
|
2923
2923
|
qe({
|
|
2924
2924
|
toggleCollapse: F,
|
|
@@ -2927,28 +2927,29 @@ function J1(e, t, r) {
|
|
|
2927
2927
|
}
|
|
2928
2928
|
});
|
|
2929
2929
|
let Y = null, C = !0;
|
|
2930
|
-
const G = (
|
|
2931
|
-
if (n.rules && N(xe(n.rules)), n.pureDataRules && N(xe(n.pureDataRules), !0), !!qt && (
|
|
2930
|
+
const G = (K) => {
|
|
2931
|
+
if (n.rules && N(xe(n.rules)), n.pureDataRules && N(xe(n.pureDataRules), !0), !!qt && (K && L(pe(n.collapse), !1), n.autoLayout && Array.isArray(A) && A.length > 0)) {
|
|
2932
2932
|
const te = A[0];
|
|
2933
|
-
if (_(te), window.ResizeObserver) {
|
|
2933
|
+
if (te && (_(te), window.ResizeObserver)) {
|
|
2934
2934
|
const v = gt(() => _(te), 120);
|
|
2935
2935
|
Y = new window.ResizeObserver(v), Y.observe(te);
|
|
2936
2936
|
}
|
|
2937
2937
|
}
|
|
2938
2938
|
}, Q = () => {
|
|
2939
|
-
|
|
2939
|
+
const K = A[0];
|
|
2940
|
+
K && Y?.observe(K), Y?.disconnect(), Y = null;
|
|
2940
2941
|
}, le = !d.value || i?.acquire();
|
|
2941
2942
|
le && (f.value = d.value ? !0 : null), Te(() => {
|
|
2942
2943
|
if (le && (G(C), C = !1), d.value && i) {
|
|
2943
|
-
let
|
|
2944
|
+
let K = null, te = i.initialHeight;
|
|
2944
2945
|
i.observe(Z.value, (v) => {
|
|
2945
2946
|
if (v !== f.value)
|
|
2946
2947
|
if (v)
|
|
2947
|
-
f.value = !0, z.value || (H.value = ""),
|
|
2948
|
-
|
|
2948
|
+
f.value = !0, z.value || (H.value = ""), K = setTimeout(() => {
|
|
2949
|
+
K = null, f.value !== !1 && (G(C), C = !1);
|
|
2949
2950
|
}, 100);
|
|
2950
2951
|
else {
|
|
2951
|
-
if (
|
|
2952
|
+
if (K !== null && clearTimeout(K), f.value = !1, !z.value) if (C) H.value = i.initialHeight;
|
|
2952
2953
|
else {
|
|
2953
2954
|
let h = zr(Z.value);
|
|
2954
2955
|
h <= 0 ? H.value = te : (H.value = `${h}px`, te = H.value);
|
|
@@ -2958,9 +2959,9 @@ function J1(e, t, r) {
|
|
|
2958
2959
|
});
|
|
2959
2960
|
}
|
|
2960
2961
|
}), dt(() => {
|
|
2961
|
-
|
|
2962
|
+
Q(), i && i.unobserve(Z.value);
|
|
2962
2963
|
});
|
|
2963
|
-
const ne = (
|
|
2964
|
+
const ne = (K = "right") => {
|
|
2964
2965
|
const te = [];
|
|
2965
2966
|
if (U.value) {
|
|
2966
2967
|
const T = V("span", { class: m.value }, [U.value]);
|
|
@@ -2970,11 +2971,11 @@ function J1(e, t, r) {
|
|
|
2970
2971
|
return h && te.push(h), te.length > 0 ? V("div", {
|
|
2971
2972
|
class: {
|
|
2972
2973
|
[`${p}__header-collapse`]: !0,
|
|
2973
|
-
[`is-${
|
|
2974
|
+
[`is-${K}`]: !0
|
|
2974
2975
|
},
|
|
2975
|
-
onClick:
|
|
2976
|
+
onClick: W
|
|
2976
2977
|
}, te) : null;
|
|
2977
|
-
}, oe = (
|
|
2978
|
+
}, oe = (K, te, v, h) => {
|
|
2978
2979
|
const T = { ...g.value };
|
|
2979
2980
|
if (te === 0 && (T[`${p}__first`] = !0), v >= h - 1 && (T[`${p}__last`] = !0), I.value === !1) {
|
|
2980
2981
|
const q = l.attrs.class;
|
|
@@ -2985,13 +2986,13 @@ function J1(e, t, r) {
|
|
|
2985
2986
|
key: `${te}`,
|
|
2986
2987
|
class: T,
|
|
2987
2988
|
style: $.value
|
|
2988
|
-
},
|
|
2989
|
+
}, K);
|
|
2989
2990
|
};
|
|
2990
2991
|
return () => {
|
|
2991
|
-
const
|
|
2992
|
+
const K = n.prop ?? n.name;
|
|
2992
2993
|
if (d.value && f.value !== !0) return V(n.tag || "div", {
|
|
2993
2994
|
ref: Z,
|
|
2994
|
-
prop:
|
|
2995
|
+
prop: K,
|
|
2995
2996
|
class: {
|
|
2996
2997
|
[`${p}`]: !0,
|
|
2997
2998
|
"is-collapse": j.value
|
|
@@ -3064,7 +3065,7 @@ function J1(e, t, r) {
|
|
|
3064
3065
|
}
|
|
3065
3066
|
return I.value ? V(n.tag || "div", {
|
|
3066
3067
|
ref: Z,
|
|
3067
|
-
prop:
|
|
3068
|
+
prop: K,
|
|
3068
3069
|
class: {
|
|
3069
3070
|
[`${p}`]: !0,
|
|
3070
3071
|
"is-collapse": j.value
|
|
@@ -3075,7 +3076,7 @@ function J1(e, t, r) {
|
|
|
3075
3076
|
}
|
|
3076
3077
|
};
|
|
3077
3078
|
}
|
|
3078
|
-
var { componentName: Q1, create: eu, scope: tu } = fe("group"), lu = (e, t) => (e = e ?? Fr, V(
|
|
3079
|
+
var { componentName: Q1, create: eu, scope: tu } = fe("group"), lu = (e, t) => (e = e ?? Fr, V(tl, t, { default: () => [V(e)] })), ru = eu(J1(Q1, tu, lu)), nu = ru;
|
|
3079
3080
|
function au(e) {
|
|
3080
3081
|
return e === window;
|
|
3081
3082
|
}
|
|
@@ -3147,7 +3148,7 @@ var iu = /matrix\((.+)\)/, Ia = (e) => {
|
|
|
3147
3148
|
l && (l.remove(t), l.size() === 0 && (this.monitorRegister.delete(r), r.removeEventListener("scroll", l.listen), r === document.body && r.removeEventListener("resize", l.listen))), r = r.parentNode;
|
|
3148
3149
|
}
|
|
3149
3150
|
}
|
|
3150
|
-
},
|
|
3151
|
+
}, gl = new ou(), Fa = {
|
|
3151
3152
|
price: {
|
|
3152
3153
|
type: [Number, String],
|
|
3153
3154
|
default: 0
|
|
@@ -3326,10 +3327,10 @@ var Pa = /* @__PURE__ */ pt(fu, [["render", gu]]), { componentName: cr, create:
|
|
|
3326
3327
|
right: null,
|
|
3327
3328
|
bottom: null,
|
|
3328
3329
|
left: null
|
|
3329
|
-
},
|
|
3330
|
+
}, W = [];
|
|
3330
3331
|
for (let F = 0; F < L.length; F++) {
|
|
3331
3332
|
const B = L[F];
|
|
3332
|
-
if (
|
|
3333
|
+
if (W[0] = B, D[1] && (W[1] = D[1]), B === "top") {
|
|
3333
3334
|
const Y = P.y - z - e.arrowSize - e.offset;
|
|
3334
3335
|
if (Y >= 0) {
|
|
3335
3336
|
X.top = Y;
|
|
@@ -3368,7 +3369,7 @@ var Pa = /* @__PURE__ */ pt(fu, [["render", gu]]), { componentName: cr, create:
|
|
|
3368
3369
|
}
|
|
3369
3370
|
}
|
|
3370
3371
|
return {
|
|
3371
|
-
bestPlacement:
|
|
3372
|
+
bestPlacement: W.join("-"),
|
|
3372
3373
|
bestInsetRect: X
|
|
3373
3374
|
};
|
|
3374
3375
|
}, d = (m, P, Z = 10) => {
|
|
@@ -3393,9 +3394,9 @@ var Pa = /* @__PURE__ */ pt(fu, [["render", gu]]), { componentName: cr, create:
|
|
|
3393
3394
|
}), Te(() => {
|
|
3394
3395
|
setTimeout(() => {
|
|
3395
3396
|
d(e.message, e.visible);
|
|
3396
|
-
}, 0),
|
|
3397
|
+
}, 0), gl.watch(e.reference, w), $.observe(e.reference);
|
|
3397
3398
|
}), ft(() => {
|
|
3398
|
-
|
|
3399
|
+
gl.unwatch(e.reference, w), $.unobserve(e.reference), $.disconnect();
|
|
3399
3400
|
});
|
|
3400
3401
|
const b = x(() => {
|
|
3401
3402
|
const m = { [cr]: !0 };
|
|
@@ -3469,19 +3470,19 @@ var Oa = /* @__PURE__ */ pt(pu, [["render", yu]]), bu = class {
|
|
|
3469
3470
|
let e = this.seed++;
|
|
3470
3471
|
return this.seed < 0 && (this.seed = 0), e;
|
|
3471
3472
|
}
|
|
3472
|
-
}, kr = {}, wu = new bu(), Yt = /* @__PURE__ */ new Map(),
|
|
3473
|
+
}, kr = {}, wu = new bu(), Yt = /* @__PURE__ */ new Map(), El = (e) => {
|
|
3473
3474
|
if (e) {
|
|
3474
3475
|
const t = document.getElementById(e);
|
|
3475
|
-
Yt.delete(e), t && t.parentNode?.removeChild(t);
|
|
3476
|
+
Yt.delete(e), t && (Gt(null, t), t.parentNode?.removeChild(t));
|
|
3476
3477
|
} else {
|
|
3477
3478
|
for (const t of Yt.keys()) {
|
|
3478
3479
|
const r = document.getElementById(t);
|
|
3479
|
-
r && r.parentNode?.removeChild(r);
|
|
3480
|
+
r && (Gt(null, r), r.parentNode?.removeChild(r));
|
|
3480
3481
|
}
|
|
3481
3482
|
Yt.clear();
|
|
3482
3483
|
}
|
|
3483
3484
|
}, Su = (e) => {
|
|
3484
|
-
e.unmount =
|
|
3485
|
+
e.unmount = El;
|
|
3485
3486
|
const t = document.getElementById(e.id);
|
|
3486
3487
|
if (t) {
|
|
3487
3488
|
const r = Yt.get(e.id);
|
|
@@ -3492,39 +3493,34 @@ var Oa = /* @__PURE__ */ pt(pu, [["render", yu]]), bu = class {
|
|
|
3492
3493
|
} : e = {
|
|
3493
3494
|
...kr,
|
|
3494
3495
|
...e
|
|
3495
|
-
}, e.transition = !1,
|
|
3496
|
+
}, e.transition = !1, Gt(ye(Oa, e), t);
|
|
3496
3497
|
}
|
|
3497
3498
|
return e.id;
|
|
3498
3499
|
}, xu = (e) => {
|
|
3499
|
-
e.unmount =
|
|
3500
|
+
e.unmount = El;
|
|
3500
3501
|
let t = e.id ?? `hinttext_${wu.get()}`;
|
|
3501
3502
|
e = {
|
|
3502
3503
|
...kr,
|
|
3503
3504
|
...e
|
|
3504
3505
|
}, e.id = t, Yt.set(t, e);
|
|
3505
3506
|
const r = document.createElement("div");
|
|
3506
|
-
return r.id = e.id,
|
|
3507
|
-
}, Nu = (e) => {
|
|
3508
|
-
if (!e) {
|
|
3509
|
-
console.warn("[FoxUI HintText]: msg不能为空");
|
|
3510
|
-
return;
|
|
3511
|
-
}
|
|
3512
|
-
}, Xe = {
|
|
3507
|
+
return r.id = e.id, Gt(ye(Oa, e), r), document.body.appendChild(r), t;
|
|
3508
|
+
}, Nu = (e) => e ? !0 : (console.warn("[FoxUI HintText]: msg不能为空"), !1), Xe = {
|
|
3513
3509
|
show(e, t, r = {}, n = !0) {
|
|
3514
|
-
Nu(t);
|
|
3510
|
+
if (!Nu(t)) return;
|
|
3515
3511
|
const l = r.id;
|
|
3516
3512
|
return l && Yt.has(l) ? Su({
|
|
3517
3513
|
...r,
|
|
3518
3514
|
message: t,
|
|
3519
3515
|
reference: e
|
|
3520
|
-
}) : (n &&
|
|
3516
|
+
}) : (n && El(), xu({
|
|
3521
3517
|
...r,
|
|
3522
3518
|
message: t,
|
|
3523
3519
|
reference: e
|
|
3524
3520
|
}));
|
|
3525
3521
|
},
|
|
3526
3522
|
hide(e) {
|
|
3527
|
-
|
|
3523
|
+
El(e);
|
|
3528
3524
|
},
|
|
3529
3525
|
install(e) {
|
|
3530
3526
|
e.config.globalProperties.$hintText = Xe;
|
|
@@ -3590,13 +3586,13 @@ function Cu(e, t, r, n = !1) {
|
|
|
3590
3586
|
set: (h) => {
|
|
3591
3587
|
c.value = h;
|
|
3592
3588
|
}
|
|
3593
|
-
}), $ = () => typeof l.label == "string" && l.label.length > 0 || typeof a.slots.label == "function", b = Je(
|
|
3589
|
+
}), $ = () => typeof l.label == "string" && l.label.length > 0 || typeof a.slots.label == "function", b = Je(pl(l, "labelPosition"), "labelPosition", Ze.Near), y = x(() => b && b.value === "top" ? "top" : b && b.value === "right" ? "right" : "left"), I = x(() => ({
|
|
3594
3590
|
[`${d}__main`]: !0,
|
|
3595
3591
|
[`${d}__main--${y.value}`]: !0
|
|
3596
3592
|
})), A = x(() => ({
|
|
3597
3593
|
label: !0,
|
|
3598
3594
|
[`label--${y.value}`]: !0
|
|
3599
|
-
})), E = Je(
|
|
3595
|
+
})), E = Je(pl(l, "labelWidth"), "labelWidth", Ze.Near), k = x(() => E && E.value ? { width: Ve(E.value) } : {}), O = x(() => ({
|
|
3600
3596
|
"label--string": !0,
|
|
3601
3597
|
"label--required": g.value
|
|
3602
3598
|
})), _ = x(() => ({
|
|
@@ -3639,7 +3635,7 @@ function Cu(e, t, r, n = !1) {
|
|
|
3639
3635
|
N.value = h;
|
|
3640
3636
|
}
|
|
3641
3637
|
});
|
|
3642
|
-
const P = x(() => l.infoTip || m.infoTip), Z = x(() => l.infoIcon || m.infoIcon), S = x(() => l.warnTip || m.warnTip), M = x(() => l.warnIcon || m.warnIcon), z = x(() => l.errorTip || m.errorTip), H = x(() => l.errorIcon || m.errorIcon), j = x(() => z.value ? "error" : S.value ? "warn" : P.value ? "info" : ""), D = () => j.value.length > 0, L = x(() => j.value === "error" ? z.value : j.value === "warn" ? S.value : j.value === "info" ? P.value : ""), X = x(() => j.value === "error" ? H.value : j.value === "warn" ? M.value : j.value === "info" ? Z.value : null),
|
|
3638
|
+
const P = x(() => l.infoTip || m.infoTip), Z = x(() => l.infoIcon || m.infoIcon), S = x(() => l.warnTip || m.warnTip), M = x(() => l.warnIcon || m.warnIcon), z = x(() => l.errorTip || m.errorTip), H = x(() => l.errorIcon || m.errorIcon), j = x(() => z.value ? "error" : S.value ? "warn" : P.value ? "info" : ""), D = () => j.value.length > 0, L = x(() => j.value === "error" ? z.value : j.value === "warn" ? S.value : j.value === "info" ? P.value : ""), X = x(() => j.value === "error" ? H.value : j.value === "warn" ? M.value : j.value === "info" ? Z.value : null), W = x(() => {
|
|
3643
3639
|
const h = {
|
|
3644
3640
|
[`${d}__tip`]: !0,
|
|
3645
3641
|
[`${d}__tip--${j.value}`]: !0,
|
|
@@ -3721,16 +3717,16 @@ function Cu(e, t, r, n = !1) {
|
|
|
3721
3717
|
}, oe = () => {
|
|
3722
3718
|
const h = X.value;
|
|
3723
3719
|
return h ? typeof h == "function" ? V("div", { class: "fox-item__tip--icon" }, [h()]) : V("div", { class: "fox-item__tip--icon" }, [V(h)]) : null;
|
|
3724
|
-
},
|
|
3720
|
+
}, K = () => {
|
|
3725
3721
|
const h = L.value;
|
|
3726
3722
|
return h ? typeof h == "function" ? V("div", { class: "fox-item__tip--text" }, [h()]) : V("div", { class: "fox-item__tip--text" }, [h]) : null;
|
|
3727
3723
|
}, te = () => {
|
|
3728
3724
|
if (!D()) return null;
|
|
3729
3725
|
const h = [], T = oe();
|
|
3730
3726
|
T && h.push(T);
|
|
3731
|
-
const q =
|
|
3727
|
+
const q = K();
|
|
3732
3728
|
return q && h.push(q), V("div", {
|
|
3733
|
-
class:
|
|
3729
|
+
class: W.value,
|
|
3734
3730
|
style: F.value
|
|
3735
3731
|
}, h);
|
|
3736
3732
|
}, v = () => a.slots?.hide?.() ?? null;
|
|
@@ -4118,7 +4114,7 @@ function Bu(e, t, r, n = !1) {
|
|
|
4118
4114
|
}
|
|
4119
4115
|
};
|
|
4120
4116
|
}
|
|
4121
|
-
var { componentName: qu, create: Hu, scope: ju } = fe("text"), Ku = Hu(Bu(qu, ju, Xe, !1)),
|
|
4117
|
+
var { componentName: qu, create: Hu, scope: ju } = fe("text"), Ku = Hu(Bu(qu, ju, Xe, !1)), Dl = Ku, Wu = {
|
|
4122
4118
|
visible: { type: Boolean },
|
|
4123
4119
|
reference: { type: Object },
|
|
4124
4120
|
referenceInset: { type: Object },
|
|
@@ -4183,7 +4179,7 @@ function Yu(e, t, r = !1) {
|
|
|
4183
4179
|
right: null,
|
|
4184
4180
|
bottom: null,
|
|
4185
4181
|
left: null
|
|
4186
|
-
}), i = R(0), f = R(0), d = R(0), u = R(0), w = R(n.placement), N = R(!1), p = R(!1), c = R(null), g = () => typeof n.reference == "string" ? document.querySelector(n.reference) : n.reference, $ = (L, X,
|
|
4182
|
+
}), i = R(0), f = R(0), d = R(0), u = R(0), w = R(n.placement), N = R(!1), p = R(!1), c = R(null), g = () => typeof n.reference == "string" ? document.querySelector(n.reference) : n.reference, $ = (L, X, W, F, B, Y, C, G = !0) => {
|
|
4187
4183
|
const Q = document.documentElement.clientWidth || document.body.clientWidth, le = document.documentElement.clientHeight || document.body.clientHeight, ne = L.split("-");
|
|
4188
4184
|
let oe = [];
|
|
4189
4185
|
G ? ne[0] === "top" ? oe = [
|
|
@@ -4207,7 +4203,7 @@ function Yu(e, t, r = !1) {
|
|
|
4207
4203
|
"bottom",
|
|
4208
4204
|
"left"
|
|
4209
4205
|
]) : oe = [L[0]];
|
|
4210
|
-
const
|
|
4206
|
+
const K = {
|
|
4211
4207
|
top: null,
|
|
4212
4208
|
right: null,
|
|
4213
4209
|
bottom: null,
|
|
@@ -4216,46 +4212,46 @@ function Yu(e, t, r = !1) {
|
|
|
4216
4212
|
for (let v = 0; v < oe.length; v++) {
|
|
4217
4213
|
const h = oe[v];
|
|
4218
4214
|
if (te[0] = h, ne[1] && (te[1] = ne[1]), h === "top") {
|
|
4219
|
-
const T =
|
|
4215
|
+
const T = W - C - n.arrowSize / 2 - n.offset;
|
|
4220
4216
|
if (T >= 0) {
|
|
4221
|
-
|
|
4217
|
+
K.top = T;
|
|
4222
4218
|
let q = 0;
|
|
4223
4219
|
ne[1] === "start" ? q = X : ne[1] === "end" ? q = X + F - Y : q = X + F / 2 - Y / 2;
|
|
4224
4220
|
const J = Q - q - Y;
|
|
4225
|
-
J < 0 ? (q += J, y.value = -J) : y.value = 0,
|
|
4221
|
+
J < 0 ? (q += J, y.value = -J) : y.value = 0, K.left = q < 0 ? 0 : q;
|
|
4226
4222
|
break;
|
|
4227
4223
|
}
|
|
4228
4224
|
} else if (h === "bottom") {
|
|
4229
|
-
const T =
|
|
4225
|
+
const T = W + B + n.arrowSize / 2 + n.offset;
|
|
4230
4226
|
if (T + C <= le) {
|
|
4231
|
-
|
|
4227
|
+
K.top = T;
|
|
4232
4228
|
let q = 0;
|
|
4233
4229
|
ne[1] === "start" ? q = X : ne[1] === "end" ? q = X + F - Y : q = X + F / 2 - Y / 2;
|
|
4234
4230
|
const J = Q - q - Y;
|
|
4235
|
-
J < 0 ? (q += J, y.value = -J) : y.value = 0,
|
|
4231
|
+
J < 0 ? (q += J, y.value = -J) : y.value = 0, K.left = q < 0 ? 0 : q;
|
|
4236
4232
|
break;
|
|
4237
4233
|
}
|
|
4238
4234
|
} else if (h === "left") {
|
|
4239
4235
|
const T = X - Y - n.arrowSize / 2 - n.offset;
|
|
4240
4236
|
if (T >= 0) {
|
|
4241
|
-
|
|
4237
|
+
K.left = T;
|
|
4242
4238
|
let q = 0;
|
|
4243
|
-
ne[1] === "start" ? q =
|
|
4239
|
+
ne[1] === "start" ? q = W : ne[1] === "end" ? q = W + B - C : q = W + B / 2 - C / 2, K.top = q < 0 ? 0 : q;
|
|
4244
4240
|
break;
|
|
4245
4241
|
}
|
|
4246
4242
|
} else if (h === "right") {
|
|
4247
4243
|
const T = X + F + n.arrowSize / 2 + n.offset;
|
|
4248
4244
|
if (T + Y <= Q) {
|
|
4249
|
-
|
|
4245
|
+
K.left = T;
|
|
4250
4246
|
let q = 0;
|
|
4251
|
-
ne[1] === "start" ? q =
|
|
4247
|
+
ne[1] === "start" ? q = W : ne[1] === "end" ? q = W + B - C : q = W + B / 2 - C / 2, K.top = q < 0 ? 0 : q;
|
|
4252
4248
|
break;
|
|
4253
4249
|
}
|
|
4254
4250
|
}
|
|
4255
4251
|
}
|
|
4256
4252
|
return {
|
|
4257
4253
|
bestPlacement: te.join("-"),
|
|
4258
|
-
bestInsetRect:
|
|
4254
|
+
bestInsetRect: K
|
|
4259
4255
|
};
|
|
4260
4256
|
}, b = () => {
|
|
4261
4257
|
const L = n.visible, X = n.autoFit;
|
|
@@ -4264,7 +4260,7 @@ function Yu(e, t, r = !1) {
|
|
|
4264
4260
|
const C = g(), G = Ia(C);
|
|
4265
4261
|
i.value = G.x, f.value = G.y, d.value = C.offsetWidth, u.value = C.offsetHeight;
|
|
4266
4262
|
} else n.referenceInset && (i.value = n.referenceInset.left, f.value = n.referenceInset.top, d.value = n.referenceInset.right - n.referenceInset.left, u.value = n.referenceInset.bottom - n.referenceInset.top);
|
|
4267
|
-
const
|
|
4263
|
+
const W = c.value.offsetWidth, F = c.value.offsetHeight, { bestPlacement: B, bestInsetRect: Y } = $(n.placement, i.value, f.value, d.value, u.value, W, F, X);
|
|
4268
4264
|
w.value = B, s.value = Y;
|
|
4269
4265
|
}, y = R(0), I = gt(() => {
|
|
4270
4266
|
b();
|
|
@@ -4278,12 +4274,12 @@ function Yu(e, t, r = !1) {
|
|
|
4278
4274
|
const X = L[0];
|
|
4279
4275
|
X && (k.value = X.isIntersecting);
|
|
4280
4276
|
}, 10), _ = new IntersectionObserver(O);
|
|
4281
|
-
ce([() => n.reference, () => n.referenceInset], ([L, X], [
|
|
4277
|
+
ce([() => n.reference, () => n.referenceInset], ([L, X], [W, F]) => {
|
|
4282
4278
|
!L && !X || (setTimeout(() => {
|
|
4283
4279
|
b();
|
|
4284
|
-
}, 0), n.autoFit && (
|
|
4280
|
+
}, 0), n.autoFit && (W && (gl.unwatch(W, I), _.unobserve(W)), L && (gl.watch(L, I), _.observe(L))));
|
|
4285
4281
|
}, { immediate: !0 }), ft(() => {
|
|
4286
|
-
n.reference && (
|
|
4282
|
+
n.reference && (gl.unwatch(n.reference, I), _.unobserve(n.reference), _.disconnect());
|
|
4287
4283
|
});
|
|
4288
4284
|
const U = x(() => {
|
|
4289
4285
|
const L = { [e]: !0 };
|
|
@@ -4316,13 +4312,13 @@ function Yu(e, t, r = !1) {
|
|
|
4316
4312
|
if (!N.value) return null;
|
|
4317
4313
|
const L = [], X = Z();
|
|
4318
4314
|
X && L.push(X);
|
|
4319
|
-
const
|
|
4320
|
-
if (F &&
|
|
4315
|
+
const W = [], F = S();
|
|
4316
|
+
if (F && W.push(F), a.default) {
|
|
4321
4317
|
const G = a.default();
|
|
4322
|
-
|
|
4318
|
+
W.push(G);
|
|
4323
4319
|
}
|
|
4324
4320
|
const B = H();
|
|
4325
|
-
B &&
|
|
4321
|
+
B && W.push(B);
|
|
4326
4322
|
const Y = {
|
|
4327
4323
|
ref: c,
|
|
4328
4324
|
class: U.value,
|
|
@@ -4330,8 +4326,8 @@ function Yu(e, t, r = !1) {
|
|
|
4330
4326
|
onAnimationend: j
|
|
4331
4327
|
};
|
|
4332
4328
|
n.leaveHide && (Y.onMouseleave = D);
|
|
4333
|
-
const C = V("div", Y, { default: () =>
|
|
4334
|
-
return L.push(C), V(
|
|
4329
|
+
const C = V("div", Y, { default: () => W });
|
|
4330
|
+
return L.push(C), V(Vl, {
|
|
4335
4331
|
to: n.teleport,
|
|
4336
4332
|
disabled: n.teleportDisable
|
|
4337
4333
|
}, { default: () => L });
|
|
@@ -4403,7 +4399,7 @@ function Qu(e, t, r) {
|
|
|
4403
4399
|
if (E >= A.length) return A;
|
|
4404
4400
|
const k = [], O = E - 1;
|
|
4405
4401
|
for (let Z = 0; Z < O; Z++) k.push(A[Z]);
|
|
4406
|
-
const _ = (l.moreIcon && l.moreIcon()) ?? (n.moreIcon && V(n.moreIcon)) ?? V(r), U = V(
|
|
4402
|
+
const _ = (l.moreIcon && l.moreIcon()) ?? (n.moreIcon && V(n.moreIcon)) ?? V(r), U = V(Dl, {
|
|
4407
4403
|
ref: (Z) => N.value = Z,
|
|
4408
4404
|
class: `${i}__dropdown-link`,
|
|
4409
4405
|
"text-position": "left",
|
|
@@ -4430,7 +4426,7 @@ function Qu(e, t, r) {
|
|
|
4430
4426
|
return k.push(P), k;
|
|
4431
4427
|
};
|
|
4432
4428
|
return () => {
|
|
4433
|
-
const { getChildren: A } = Yr(l?.default), E = I(A()), k =
|
|
4429
|
+
const { getChildren: A } = Yr(l?.default), E = I(A()), k = Zt(n, _r);
|
|
4434
4430
|
return Object.assign(k, a ?? {}), k.class = f.value, V(Da, k, { default: () => E });
|
|
4435
4431
|
};
|
|
4436
4432
|
}
|
|
@@ -4571,16 +4567,16 @@ function o2(e, t) {
|
|
|
4571
4567
|
}
|
|
4572
4568
|
};
|
|
4573
4569
|
}
|
|
4574
|
-
var { componentName: u2, create: c2, scope: f2 } = fe("mapping"), d2 = c2(o2(u2, f2)),
|
|
4570
|
+
var { componentName: u2, create: c2, scope: f2 } = fe("mapping"), d2 = c2(o2(u2, f2)), Rl = d2;
|
|
4575
4571
|
function it(e, t, r, n) {
|
|
4576
4572
|
const l = "fox-browse-item";
|
|
4577
4573
|
let a = null;
|
|
4578
|
-
r ? a = V(
|
|
4574
|
+
r ? a = V(Rl, {
|
|
4579
4575
|
class: [`${l}__mapping`],
|
|
4580
4576
|
source: r,
|
|
4581
4577
|
modelValue: e,
|
|
4582
4578
|
separator: n
|
|
4583
|
-
}, { default: (s) => V(
|
|
4579
|
+
}, { default: (s) => V(Dl, { class: [`${l}__text`] }, { default: () => s.text }) }) : a = V(Dl, { class: [`${l}__text`] }, { default: () => e });
|
|
4584
4580
|
const o = {
|
|
4585
4581
|
label: t.default,
|
|
4586
4582
|
default: () => a
|
|
@@ -4726,12 +4722,12 @@ function g2(e, t, r, n) {
|
|
|
4726
4722
|
D.push(L);
|
|
4727
4723
|
const X = { default: () => D };
|
|
4728
4724
|
X.label = a.slots.default, X.fixedPreTip = a.slots.fixedPreTip, X.fixedTip = a.slots.fixedTip;
|
|
4729
|
-
const
|
|
4725
|
+
const W = {
|
|
4730
4726
|
...rt(l, qa),
|
|
4731
4727
|
hintText: S.value,
|
|
4732
4728
|
hintVisible: Z.value
|
|
4733
4729
|
};
|
|
4734
|
-
return l.prop && (
|
|
4730
|
+
return l.prop && (W.prop = `${l.prop}_item`), r(W, X);
|
|
4735
4731
|
};
|
|
4736
4732
|
}
|
|
4737
4733
|
};
|
|
@@ -4740,7 +4736,7 @@ var { componentName: m2, create: p2, scope: v2 } = fe("input-item"), y2 = p2(g2(
|
|
|
4740
4736
|
function At(e, t) {
|
|
4741
4737
|
return typeof e.textKey == "string" && e.textKey.length > 0 ? t[e.textKey] : t.text;
|
|
4742
4738
|
}
|
|
4743
|
-
function
|
|
4739
|
+
function bl(e, t) {
|
|
4744
4740
|
return typeof e.valueKey == "string" && e.valueKey.length > 0 ? t[e.valueKey] : t.value;
|
|
4745
4741
|
}
|
|
4746
4742
|
function Ha(e, t) {
|
|
@@ -4766,7 +4762,7 @@ function x2() {
|
|
|
4766
4762
|
return new S2(Be().proxy);
|
|
4767
4763
|
}
|
|
4768
4764
|
function ja(e, t, r) {
|
|
4769
|
-
return !(At(e, t) !== At(e, r) ||
|
|
4765
|
+
return !(At(e, t) !== At(e, r) || bl(e, t) !== bl(e, r));
|
|
4770
4766
|
}
|
|
4771
4767
|
function Ka(e, t, r, n) {
|
|
4772
4768
|
if (n.length === 0 || t === "" || t === null || t === void 0) return null;
|
|
@@ -4783,7 +4779,7 @@ function Ka(e, t, r, n) {
|
|
|
4783
4779
|
if (r === "text") i = At(e, o) === a;
|
|
4784
4780
|
else if (r === "item") i = ja(e, o, a);
|
|
4785
4781
|
else {
|
|
4786
|
-
let f =
|
|
4782
|
+
let f = bl(e, o);
|
|
4787
4783
|
f == null && (f = At(e, o)), i = f === a;
|
|
4788
4784
|
}
|
|
4789
4785
|
if (i) {
|
|
@@ -4946,8 +4942,8 @@ function z2(e, t, r, n) {
|
|
|
4946
4942
|
c.value = J;
|
|
4947
4943
|
let ae = [], ge = [], Ne = [];
|
|
4948
4944
|
J.forEach((yt) => {
|
|
4949
|
-
const
|
|
4950
|
-
ae.push(
|
|
4945
|
+
const ll = bl(l, yt), xl = At(l, yt);
|
|
4946
|
+
ae.push(ll), Ne.push(xl), l.valueType === "text" ? ge.push(xl) : l.valueType === "item" ? ge.push(yt) : ge.push(ll);
|
|
4951
4947
|
});
|
|
4952
4948
|
let Ie, Ke, ht;
|
|
4953
4949
|
pe(l.multiple) ? (p.value = ae, Ie = xe(ge), Ke = Ne, ht = xe(J)) : (p.value = ae[0] ?? "", Ie = xe(ge[0] ?? ""), Ke = Ne[0] ?? "", ht = xe(J[0])), q && (u("update:modelValue", Ie), u("change", Ie, ht)), u("update:text", Ke);
|
|
@@ -5018,7 +5014,7 @@ function z2(e, t, r, n) {
|
|
|
5018
5014
|
}, 0);
|
|
5019
5015
|
const h = v.target.value;
|
|
5020
5016
|
le.value || u("blur", h, v);
|
|
5021
|
-
},
|
|
5017
|
+
}, W = () => {
|
|
5022
5018
|
u("clear", "");
|
|
5023
5019
|
}, F = R(!1);
|
|
5024
5020
|
let B = null;
|
|
@@ -5032,28 +5028,28 @@ function z2(e, t, r, n) {
|
|
|
5032
5028
|
le.value = v, u("visible-change", v), v || u("selected");
|
|
5033
5029
|
}, oe = (v) => {
|
|
5034
5030
|
u("remove-tag", v);
|
|
5035
|
-
},
|
|
5031
|
+
}, K = (v, h) => {
|
|
5036
5032
|
const T = [];
|
|
5037
5033
|
return v.forEach((q, J) => {
|
|
5038
5034
|
const re = Ha(l, q);
|
|
5039
5035
|
if (Array.isArray(re) && re.length > 0) {
|
|
5040
|
-
const ae =
|
|
5036
|
+
const ae = K(re, h), ge = At(l, q), Ne = {
|
|
5041
5037
|
key: `${ge}_${J}`,
|
|
5042
5038
|
label: ge
|
|
5043
5039
|
};
|
|
5044
5040
|
T.push(V(Wn, Ne, { default: () => ae }));
|
|
5045
5041
|
} else {
|
|
5046
|
-
const ae =
|
|
5042
|
+
const ae = bl(l, q), ge = At(l, q), Ne = w2(l, q), Ie = {
|
|
5047
5043
|
key: `${ae}_${J}`,
|
|
5048
5044
|
label: ge,
|
|
5049
5045
|
disabled: Ne,
|
|
5050
5046
|
value: ae
|
|
5051
5047
|
};
|
|
5052
|
-
if (typeof h == "function") T.push(V(
|
|
5048
|
+
if (typeof h == "function") T.push(V(cl, Ie, { default: () => h(q) }));
|
|
5053
5049
|
else if (l.optionType === "item") {
|
|
5054
5050
|
const Ke = V("div", { class: { "fox-select-item__option": !0 } }, [V("span", { class: { "fox-select-item__option-left": !0 } }, [ae]), V("span", { class: { "fox-select-item__option-right": !0 } }, [ge])]);
|
|
5055
|
-
T.push(V(
|
|
5056
|
-
} else l.optionType === "value" ? T.push(V(
|
|
5051
|
+
T.push(V(cl, Ie, { default: () => Ke }));
|
|
5052
|
+
} else l.optionType === "value" ? T.push(V(cl, Ie, { default: () => [ae] })) : T.push(V(cl, Ie));
|
|
5057
5053
|
}
|
|
5058
5054
|
}), T;
|
|
5059
5055
|
}, te = R();
|
|
@@ -5083,7 +5079,7 @@ function z2(e, t, r, n) {
|
|
|
5083
5079
|
modelValue: p.value,
|
|
5084
5080
|
"value-key": l.valueKey,
|
|
5085
5081
|
"allow-create": l.allowCreate,
|
|
5086
|
-
onClear:
|
|
5082
|
+
onClear: W,
|
|
5087
5083
|
onChange: H,
|
|
5088
5084
|
onFocus: L,
|
|
5089
5085
|
onBlur: X,
|
|
@@ -5092,7 +5088,7 @@ function z2(e, t, r, n) {
|
|
|
5092
5088
|
};
|
|
5093
5089
|
typeof U == "function" && (v["remote-method"] = U, v.loading = m.value), typeof P == "function" && (v["filter-method"] = P, v.loading = m.value);
|
|
5094
5090
|
const h = {};
|
|
5095
|
-
a.slots.prefix && (h.prefix = a.slots.prefix), a.slots.empty && (h.empty = a.slots.empty), a.slots.options ? h.default = a.slots.options : h.default = () =>
|
|
5091
|
+
a.slots.prefix && (h.prefix = a.slots.prefix), a.slots.empty && (h.empty = a.slots.empty), a.slots.options ? h.default = a.slots.options : h.default = () => K(I.value, a.slots.option);
|
|
5096
5092
|
const T = [], q = V(Zn, v, h);
|
|
5097
5093
|
T.push(q);
|
|
5098
5094
|
const J = { default: () => T };
|
|
@@ -5205,8 +5201,8 @@ var { componentName: k2, create: _2, scope: $2 } = fe("select-item"), T2 = _2(z2
|
|
|
5205
5201
|
if (typeof j == "string" && !/Z$/i.test(j)) {
|
|
5206
5202
|
var L = j.match(g);
|
|
5207
5203
|
if (L) {
|
|
5208
|
-
var X = L[2] - 1 || 0,
|
|
5209
|
-
return D ? new Date(Date.UTC(L[1], X, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0,
|
|
5204
|
+
var X = L[2] - 1 || 0, W = (L[7] || "0").substring(0, 3);
|
|
5205
|
+
return D ? new Date(Date.UTC(L[1], X, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, W)) : new Date(L[1], X, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, W);
|
|
5210
5206
|
}
|
|
5211
5207
|
}
|
|
5212
5208
|
return new Date(j);
|
|
@@ -5235,7 +5231,7 @@ var { componentName: k2, create: _2, scope: $2 } = fe("select-item"), T2 = _2(z2
|
|
|
5235
5231
|
var j = this, D = !!m.u(H) || H, L = m.p(z), X = function(le, ne) {
|
|
5236
5232
|
var oe = m.w(j.$u ? Date.UTC(j.$y, ne, le) : new Date(j.$y, ne, le), j);
|
|
5237
5233
|
return D ? oe : oe.endOf(f);
|
|
5238
|
-
},
|
|
5234
|
+
}, W = function(le, ne) {
|
|
5239
5235
|
return m.w(j.toDate()[le].apply(j.toDate("s"), (D ? [
|
|
5240
5236
|
0,
|
|
5241
5237
|
0,
|
|
@@ -5258,24 +5254,24 @@ var { componentName: k2, create: _2, scope: $2 } = fe("select-item"), T2 = _2(z2
|
|
|
5258
5254
|
return X(D ? Y - Q : Y + (6 - Q), B);
|
|
5259
5255
|
case f:
|
|
5260
5256
|
case p:
|
|
5261
|
-
return
|
|
5257
|
+
return W(C + "Hours", 0);
|
|
5262
5258
|
case i:
|
|
5263
|
-
return
|
|
5259
|
+
return W(C + "Minutes", 1);
|
|
5264
5260
|
case s:
|
|
5265
|
-
return
|
|
5261
|
+
return W(C + "Seconds", 2);
|
|
5266
5262
|
case o:
|
|
5267
|
-
return
|
|
5263
|
+
return W(C + "Milliseconds", 3);
|
|
5268
5264
|
default:
|
|
5269
5265
|
return this.clone();
|
|
5270
5266
|
}
|
|
5271
5267
|
}, M.endOf = function(z) {
|
|
5272
5268
|
return this.startOf(z, !1);
|
|
5273
5269
|
}, M.$set = function(z, H) {
|
|
5274
|
-
var j, D = m.p(z), L = "set" + (this.$u ? "UTC" : ""), X = (j = {}, j[f] = L + "Date", j[p] = L + "Date", j[u] = L + "Month", j[N] = L + "FullYear", j[i] = L + "Hours", j[s] = L + "Minutes", j[o] = L + "Seconds", j[a] = L + "Milliseconds", j)[D],
|
|
5270
|
+
var j, D = m.p(z), L = "set" + (this.$u ? "UTC" : ""), X = (j = {}, j[f] = L + "Date", j[p] = L + "Date", j[u] = L + "Month", j[N] = L + "FullYear", j[i] = L + "Hours", j[s] = L + "Minutes", j[o] = L + "Seconds", j[a] = L + "Milliseconds", j)[D], W = D === f ? this.$D + (H - this.$W) : H;
|
|
5275
5271
|
if (D === u || D === N) {
|
|
5276
5272
|
var F = this.clone().set(p, 1);
|
|
5277
|
-
F.$d[X](
|
|
5278
|
-
} else X && this.$d[X](
|
|
5273
|
+
F.$d[X](W), F.init(), this.$d = F.set(p, Math.min(this.$D, F.daysInMonth())).$d;
|
|
5274
|
+
} else X && this.$d[X](W);
|
|
5279
5275
|
return this.init(), this;
|
|
5280
5276
|
}, M.set = function(z, H) {
|
|
5281
5277
|
return this.clone().$set(z, H);
|
|
@@ -5292,24 +5288,24 @@ var { componentName: k2, create: _2, scope: $2 } = fe("select-item"), T2 = _2(z2
|
|
|
5292
5288
|
if (L === N) return this.set(N, this.$y + z);
|
|
5293
5289
|
if (L === f) return X(1);
|
|
5294
5290
|
if (L === d) return X(7);
|
|
5295
|
-
var
|
|
5291
|
+
var W = (j = {}, j[s] = n, j[i] = l, j[o] = r, j)[L] || 1, F = this.$d.getTime() + z * W;
|
|
5296
5292
|
return m.w(F, this);
|
|
5297
5293
|
}, M.subtract = function(z, H) {
|
|
5298
5294
|
return this.add(-1 * z, H);
|
|
5299
5295
|
}, M.format = function(z) {
|
|
5300
5296
|
var H = this, j = this.$locale();
|
|
5301
5297
|
if (!this.isValid()) return j.invalidDate || c;
|
|
5302
|
-
var D = z || "YYYY-MM-DDTHH:mm:ssZ", L = m.z(this), X = this.$H,
|
|
5303
|
-
return ne && (ne[oe] || ne(H, D)) ||
|
|
5298
|
+
var D = z || "YYYY-MM-DDTHH:mm:ssZ", L = m.z(this), X = this.$H, W = this.$m, F = this.$M, B = j.weekdays, Y = j.months, C = j.meridiem, G = function(ne, oe, K, te) {
|
|
5299
|
+
return ne && (ne[oe] || ne(H, D)) || K[oe].slice(0, te);
|
|
5304
5300
|
}, Q = function(ne) {
|
|
5305
5301
|
return m.s(X % 12 || 12, ne, "0");
|
|
5306
|
-
}, le = C || function(ne, oe,
|
|
5302
|
+
}, le = C || function(ne, oe, K) {
|
|
5307
5303
|
var te = ne < 12 ? "AM" : "PM";
|
|
5308
|
-
return
|
|
5304
|
+
return K ? te.toLowerCase() : te;
|
|
5309
5305
|
};
|
|
5310
5306
|
return D.replace($, (function(ne, oe) {
|
|
5311
|
-
return oe || (function(
|
|
5312
|
-
switch (
|
|
5307
|
+
return oe || (function(K) {
|
|
5308
|
+
switch (K) {
|
|
5313
5309
|
case "YY":
|
|
5314
5310
|
return String(H.$y).slice(-2);
|
|
5315
5311
|
case "YYYY":
|
|
@@ -5343,13 +5339,13 @@ var { componentName: k2, create: _2, scope: $2 } = fe("select-item"), T2 = _2(z2
|
|
|
5343
5339
|
case "hh":
|
|
5344
5340
|
return Q(2);
|
|
5345
5341
|
case "a":
|
|
5346
|
-
return le(X,
|
|
5342
|
+
return le(X, W, !0);
|
|
5347
5343
|
case "A":
|
|
5348
|
-
return le(X,
|
|
5344
|
+
return le(X, W, !1);
|
|
5349
5345
|
case "m":
|
|
5350
|
-
return String(
|
|
5346
|
+
return String(W);
|
|
5351
5347
|
case "mm":
|
|
5352
|
-
return m.s(
|
|
5348
|
+
return m.s(W, 2, "0");
|
|
5353
5349
|
case "s":
|
|
5354
5350
|
return String(H.$s);
|
|
5355
5351
|
case "ss":
|
|
@@ -5365,8 +5361,8 @@ var { componentName: k2, create: _2, scope: $2 } = fe("select-item"), T2 = _2(z2
|
|
|
5365
5361
|
}, M.utcOffset = function() {
|
|
5366
5362
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5367
5363
|
}, M.diff = function(z, H, j) {
|
|
5368
|
-
var D, L = this, X = m.p(H),
|
|
5369
|
-
return m.m(L,
|
|
5364
|
+
var D, L = this, X = m.p(H), W = U(z), F = (W.utcOffset() - this.utcOffset()) * n, B = this - W, Y = function() {
|
|
5365
|
+
return m.m(L, W);
|
|
5370
5366
|
};
|
|
5371
5367
|
switch (X) {
|
|
5372
5368
|
case N:
|
|
@@ -5572,10 +5568,10 @@ var { componentName: k2, create: _2, scope: $2 } = fe("select-item"), T2 = _2(z2
|
|
|
5572
5568
|
m && (Z = O[2]), i = this.$locale(), !U && Z && (i = b.Ls[Z]), this.$d = (function(H, j, D, L) {
|
|
5573
5569
|
try {
|
|
5574
5570
|
if (["x", "X"].indexOf(j) > -1) return /* @__PURE__ */ new Date((j === "X" ? 1e3 : 1) * H);
|
|
5575
|
-
var X = c(j)(H),
|
|
5576
|
-
|
|
5571
|
+
var X = c(j)(H), W = X.year, F = X.month, B = X.day, Y = X.hours, C = X.minutes, G = X.seconds, Q = X.milliseconds, le = X.zone, ne = X.week, oe = /* @__PURE__ */ new Date(), K = B || (W || F ? 1 : oe.getDate()), te = W || oe.getFullYear(), v = 0;
|
|
5572
|
+
W && !F || (v = F > 0 ? F - 1 : oe.getMonth());
|
|
5577
5573
|
var h, T = Y || 0, q = C || 0, J = G || 0, re = Q || 0;
|
|
5578
|
-
return le ? new Date(Date.UTC(te, v,
|
|
5574
|
+
return le ? new Date(Date.UTC(te, v, K, T, q, J, re + 60 * le.offset * 1e3)) : D ? new Date(Date.UTC(te, v, K, T, q, J, re)) : (h = new Date(te, v, K, T, q, J, re), ne && (h = L(h).week(ne).toDate()), h);
|
|
5579
5575
|
} catch {
|
|
5580
5576
|
return /* @__PURE__ */ new Date("");
|
|
5581
5577
|
}
|
|
@@ -6076,7 +6072,7 @@ function G2(e, t, r, n) {
|
|
|
6076
6072
|
D.value !== T && (D.value = T);
|
|
6077
6073
|
}, { immediate: !0 });
|
|
6078
6074
|
}
|
|
6079
|
-
const
|
|
6075
|
+
const W = x(() => ({
|
|
6080
6076
|
"fox-date-item__long": !0,
|
|
6081
6077
|
"is-active": p.value
|
|
6082
6078
|
})), F = R(), B = R(), Y = /^\d+$/, C = (v, h) => typeof l.flashFillThreshold == "function" ? l.flashFillThreshold(v, h) : Y.test(v) && v.length === l.flashFillThreshold, G = (v, h) => {
|
|
@@ -6116,7 +6112,7 @@ function G2(e, t, r, n) {
|
|
|
6116
6112
|
const v = F.value.$el.querySelector("input.el-input__inner");
|
|
6117
6113
|
v && v.addEventListener("input", le);
|
|
6118
6114
|
}
|
|
6119
|
-
},
|
|
6115
|
+
}, K = () => {
|
|
6120
6116
|
if (l.flashFill && F.value && F.value.$el) if (Q(l.type)) {
|
|
6121
6117
|
const v = F.value.$el.querySelectorAll("input.el-range-input");
|
|
6122
6118
|
v[0] && v[0].removeEventListener("input", le), v[1] && v[1].removeEventListener("input", ne);
|
|
@@ -6125,7 +6121,7 @@ function G2(e, t, r, n) {
|
|
|
6125
6121
|
v && v.removeEventListener("input", le);
|
|
6126
6122
|
}
|
|
6127
6123
|
};
|
|
6128
|
-
Te(oe), ft(
|
|
6124
|
+
Te(oe), ft(K), qe({
|
|
6129
6125
|
focus: () => {
|
|
6130
6126
|
B?.value.focus();
|
|
6131
6127
|
},
|
|
@@ -6193,11 +6189,11 @@ function G2(e, t, r, n) {
|
|
|
6193
6189
|
class: ["fox-date-item__long-text"],
|
|
6194
6190
|
value: S.value,
|
|
6195
6191
|
readonly: !0
|
|
6196
|
-
}), Ne = V("div", { class:
|
|
6192
|
+
}), Ne = V("div", { class: W.value }, { default: () => [ae, ge] });
|
|
6197
6193
|
T.push(Ne);
|
|
6198
6194
|
}
|
|
6199
6195
|
if (!f.value && !s.value) {
|
|
6200
|
-
const ae = V(
|
|
6196
|
+
const ae = V(Xt, {
|
|
6201
6197
|
label: M.value || S.value,
|
|
6202
6198
|
disabled: f.value || s.value,
|
|
6203
6199
|
modelValue: D.value,
|
|
@@ -6654,8 +6650,8 @@ function v3(e, t, r, n) {
|
|
|
6654
6650
|
p.value = "";
|
|
6655
6651
|
return;
|
|
6656
6652
|
}
|
|
6657
|
-
const
|
|
6658
|
-
p.value !==
|
|
6653
|
+
const W = gn(D, L, X, !1);
|
|
6654
|
+
p.value !== W && (p.value = W);
|
|
6659
6655
|
}, { immediate: !0 });
|
|
6660
6656
|
const c = x(() => {
|
|
6661
6657
|
let D = "";
|
|
@@ -6774,8 +6770,8 @@ function v3(e, t, r, n) {
|
|
|
6774
6770
|
onBlur: S
|
|
6775
6771
|
}, L = {};
|
|
6776
6772
|
a.slots.prepend && (L.prepend = a.slots.prepend), a.slots.append && (L.append = a.slots.append), a.slots.prefix && (L.prefix = a.slots.prefix), a.slots.suffix ? L.suffix = a.slots.suffix : z.value && (L.suffix = () => [l.unit]);
|
|
6777
|
-
const X = [],
|
|
6778
|
-
X.push(
|
|
6773
|
+
const X = [], W = V(Vr, D, L);
|
|
6774
|
+
X.push(W);
|
|
6779
6775
|
const F = { default: () => X };
|
|
6780
6776
|
F.label = a.slots.default, F.fixedPreTip = a.slots.fixedPreTip, F.fixedTip = a.slots.fixedTip;
|
|
6781
6777
|
const B = {
|
|
@@ -7094,11 +7090,11 @@ function F3(e, t, r, n) {
|
|
|
7094
7090
|
get disabled() {
|
|
7095
7091
|
return s.value;
|
|
7096
7092
|
}
|
|
7097
|
-
}, l.prop ?? a.attrs.name), { toLocaleRefs: w } = Qe(t), N = w(l, ["placeholder"]), p = R(null), c = R([]), g = x(() => c.value ? c.value.map((
|
|
7093
|
+
}, l.prop ?? a.attrs.name), { toLocaleRefs: w } = Qe(t), N = w(l, ["placeholder"]), p = R(null), c = R([]), g = x(() => c.value ? c.value.map((K) => Array.isArray(K) ? K.map((te) => Nt(l, te)).join(" ") : Nt(l, K)).join(" ") : ""), $ = (K, te, v, h = !0) => {
|
|
7098
7094
|
if (l.props && l.props.lazy === !0 || l.lazy === !0) {
|
|
7099
|
-
if (p.value ===
|
|
7100
|
-
p.value =
|
|
7101
|
-
const re = xe(
|
|
7095
|
+
if (p.value === K) return;
|
|
7096
|
+
p.value = K;
|
|
7097
|
+
const re = xe(K);
|
|
7102
7098
|
if (h) {
|
|
7103
7099
|
const ae = oe?.value.getCheckedNodes();
|
|
7104
7100
|
if (ae) if (l.multiple) {
|
|
@@ -7112,7 +7108,7 @@ function F3(e, t, r, n) {
|
|
|
7112
7108
|
}
|
|
7113
7109
|
return;
|
|
7114
7110
|
}
|
|
7115
|
-
const T = Qa(l,
|
|
7111
|
+
const T = Qa(l, K, te, v);
|
|
7116
7112
|
if (T === null) {
|
|
7117
7113
|
if (c.value.length === 0 || c.value === null) return;
|
|
7118
7114
|
c.value = [], p.value = null, h && (u("update:pathNodes", []), u("update:modelValue", null), u("change", null));
|
|
@@ -7154,28 +7150,28 @@ function F3(e, t, r, n) {
|
|
|
7154
7150
|
const ge = xe(ae);
|
|
7155
7151
|
h && (u("update:pathNodes", T), u("update:modelValue", ge), u("change", ge));
|
|
7156
7152
|
}
|
|
7157
|
-
}, b = R([]), y = Je(x(() => l.appearLoad), "appearLoad", Ze.Near, (
|
|
7158
|
-
if (
|
|
7159
|
-
const v = await I.load("cascader",
|
|
7153
|
+
}, b = R([]), y = Je(x(() => l.appearLoad), "appearLoad", Ze.Near, (K) => pe(K)), I = A3(), A = async (K, te) => {
|
|
7154
|
+
if (K) {
|
|
7155
|
+
const v = await I.load("cascader", K, te);
|
|
7160
7156
|
v.length > 0 && (typeof v[0] == "string" ? b.value = v.map((h) => V3(h)) : b.value = v);
|
|
7161
7157
|
}
|
|
7162
7158
|
};
|
|
7163
|
-
ce([() => l.source, () => l.params], async ([
|
|
7164
|
-
A(
|
|
7159
|
+
ce([() => l.source, () => l.params], async ([K, te]) => {
|
|
7160
|
+
A(K, te);
|
|
7165
7161
|
}, { immediate: !(y.value || l.lazy) });
|
|
7166
7162
|
let E = !1;
|
|
7167
7163
|
const k = () => {
|
|
7168
7164
|
E || (E = !0, A(l.source, l.params));
|
|
7169
7165
|
};
|
|
7170
|
-
ce([() => b.value, () => l.modelValue], ([
|
|
7171
|
-
$(te, l.valueType,
|
|
7166
|
+
ce([() => b.value, () => l.modelValue], ([K, te]) => {
|
|
7167
|
+
$(te, l.valueType, K, !1), u("setValue", te);
|
|
7172
7168
|
}), l.lazy && $(l.modelValue, "value", [], !1);
|
|
7173
7169
|
let O = null, _ = R(!1);
|
|
7174
|
-
typeof l.remoteMethod == "function" && (O = async (
|
|
7175
|
-
if (
|
|
7170
|
+
typeof l.remoteMethod == "function" && (O = async (K) => {
|
|
7171
|
+
if (K != null) {
|
|
7176
7172
|
_.value = !0;
|
|
7177
7173
|
try {
|
|
7178
|
-
b.value = await l.remoteMethod(
|
|
7174
|
+
b.value = await l.remoteMethod(K);
|
|
7179
7175
|
} catch (te) {
|
|
7180
7176
|
console.error(te);
|
|
7181
7177
|
}
|
|
@@ -7186,12 +7182,12 @@ function F3(e, t, r, n) {
|
|
|
7186
7182
|
[m]: !0,
|
|
7187
7183
|
"is-incomplete": P.value && P.value.length > 0
|
|
7188
7184
|
})), S = x(() => {
|
|
7189
|
-
let
|
|
7185
|
+
let K = {
|
|
7190
7186
|
label: l.textKey,
|
|
7191
7187
|
value: l.valueKey,
|
|
7192
7188
|
children: l.childrenKey
|
|
7193
7189
|
};
|
|
7194
|
-
return l.multiple === !0 && (
|
|
7190
|
+
return l.multiple === !0 && (K.multiple = !0), l.props && Object.assign(K, l.props), l.lazy && (K.lazy = !0, typeof l.lazyLoad == "function" ? K.lazyLoad = l.lazyLoad : K.lazyLoad = async (te, v) => {
|
|
7195
7191
|
let h = {};
|
|
7196
7192
|
l.params && Object.assign(h, l.params), te && Object.assign(h, te);
|
|
7197
7193
|
const T = await I.load("cascader", l.source, h, !0);
|
|
@@ -7203,36 +7199,36 @@ function F3(e, t, r, n) {
|
|
|
7203
7199
|
}), J.length > 0 && (P.value = J.join(l.separator));
|
|
7204
7200
|
} else P.value = null;
|
|
7205
7201
|
v(T);
|
|
7206
|
-
}),
|
|
7207
|
-
}), M = (
|
|
7208
|
-
l.allowCreate ? (u("update:modelValue",
|
|
7202
|
+
}), K;
|
|
7203
|
+
}), M = (K) => {
|
|
7204
|
+
l.allowCreate ? (u("update:modelValue", K), u("change", K), p.value = K) : $(K, "value", b.value, !0);
|
|
7209
7205
|
};
|
|
7210
7206
|
let z = _e(l, "hintText"), H = R(!1);
|
|
7211
|
-
const j = (
|
|
7212
|
-
let te =
|
|
7213
|
-
U.value = !0, we(z.value) || (H.value = !0), u("focus", te,
|
|
7214
|
-
}, D = (
|
|
7207
|
+
const j = (K) => {
|
|
7208
|
+
let te = K.target.value;
|
|
7209
|
+
U.value = !0, we(z.value) || (H.value = !0), u("focus", te, K);
|
|
7210
|
+
}, D = (K) => {
|
|
7215
7211
|
setTimeout(() => {
|
|
7216
7212
|
H.value && (H.value = !1), U.value = !1;
|
|
7217
7213
|
}, 0);
|
|
7218
|
-
let te =
|
|
7219
|
-
l.maxLength && te.length > Number(l.maxLength) && (te = te.slice(0, Number(l.maxLength))), G.value || u("blur", te,
|
|
7214
|
+
let te = K.target.value;
|
|
7215
|
+
l.maxLength && te.length > Number(l.maxLength) && (te = te.slice(0, Number(l.maxLength))), G.value || u("blur", te, K);
|
|
7220
7216
|
}, L = () => {
|
|
7221
7217
|
u("clear", "");
|
|
7222
7218
|
}, X = R(!1);
|
|
7223
|
-
let
|
|
7219
|
+
let W = null;
|
|
7224
7220
|
const F = () => {
|
|
7225
|
-
l.showTooltip && X.value === !1 && (
|
|
7221
|
+
l.showTooltip && X.value === !1 && (W && clearTimeout(W), W = setTimeout(() => {
|
|
7226
7222
|
X.value = !0;
|
|
7227
7223
|
}, 150));
|
|
7228
7224
|
}, B = () => {
|
|
7229
|
-
|
|
7230
|
-
}, Y = x(() => X.value || H.value), C = x(() => X.value ? g.value : z.value), G = R(!1), Q = (
|
|
7231
|
-
G.value =
|
|
7232
|
-
}, le = (
|
|
7233
|
-
u("remove-tag",
|
|
7234
|
-
}, ne = (
|
|
7235
|
-
u("expand-change",
|
|
7225
|
+
W && (clearTimeout(W), X.value = !1, W = null);
|
|
7226
|
+
}, Y = x(() => X.value || H.value), C = x(() => X.value ? g.value : z.value), G = R(!1), Q = (K) => {
|
|
7227
|
+
G.value = K, u("visible-change", K), K || u("selected");
|
|
7228
|
+
}, le = (K) => {
|
|
7229
|
+
u("remove-tag", K);
|
|
7230
|
+
}, ne = (K) => {
|
|
7231
|
+
u("expand-change", K);
|
|
7236
7232
|
}, oe = R();
|
|
7237
7233
|
return qe({
|
|
7238
7234
|
focus: () => {
|
|
@@ -7242,15 +7238,15 @@ function F3(e, t, r, n) {
|
|
|
7242
7238
|
oe?.value.blur();
|
|
7243
7239
|
},
|
|
7244
7240
|
getCheckedNodes: () => oe?.value.getCheckedNodes(),
|
|
7245
|
-
setDisabled: (
|
|
7246
|
-
o.value =
|
|
7241
|
+
setDisabled: (K) => {
|
|
7242
|
+
o.value = K;
|
|
7247
7243
|
},
|
|
7248
|
-
setReadonly: (
|
|
7249
|
-
i.value =
|
|
7244
|
+
setReadonly: (K) => {
|
|
7245
|
+
i.value = K;
|
|
7250
7246
|
}
|
|
7251
7247
|
}), () => {
|
|
7252
7248
|
if (d.value === "on" && (f.value || s.value)) return n(p.value, a.slots, b.value, l.separator);
|
|
7253
|
-
const
|
|
7249
|
+
const K = {
|
|
7254
7250
|
...a.attrs,
|
|
7255
7251
|
ref: oe,
|
|
7256
7252
|
class: Z.value,
|
|
@@ -7269,10 +7265,10 @@ function F3(e, t, r, n) {
|
|
|
7269
7265
|
onRemoveTag: le,
|
|
7270
7266
|
expandChange: ne
|
|
7271
7267
|
};
|
|
7272
|
-
typeof O == "function" && (
|
|
7268
|
+
typeof O == "function" && (K["remote-method"] = O, K.loading = _.value);
|
|
7273
7269
|
const te = {};
|
|
7274
7270
|
a.slots.option && (te.default = a.slots.option), a.slots.empty && (te.empty = a.slots.empty);
|
|
7275
|
-
const v = [], h = V(Bn,
|
|
7271
|
+
const v = [], h = V(Bn, K, te);
|
|
7276
7272
|
v.push(h);
|
|
7277
7273
|
const T = { default: () => v };
|
|
7278
7274
|
T.label = a.slots.default, T.fixedPreTip = a.slots.fixedPreTip, T.fixedTip = a.slots.fixedTip;
|
|
@@ -7435,10 +7431,10 @@ function G3(e, t) {
|
|
|
7435
7431
|
return () => {
|
|
7436
7432
|
const a = { default: (o) => {
|
|
7437
7433
|
const s = U3(o.row, o.column.property);
|
|
7438
|
-
return l.default ? V(
|
|
7434
|
+
return l.default ? V(Rl, {
|
|
7439
7435
|
...r,
|
|
7440
7436
|
modelValue: s
|
|
7441
|
-
}, { default: l.default }) : V(
|
|
7437
|
+
}, { default: l.default }) : V(Rl, {
|
|
7442
7438
|
...r,
|
|
7443
7439
|
modelValue: s
|
|
7444
7440
|
});
|
|
@@ -7573,10 +7569,10 @@ var f4 = /* @__PURE__ */ pt(o4, [["render", c4]]), { componentName: e7, create:
|
|
|
7573
7569
|
}, g4 = d4({
|
|
7574
7570
|
components: {
|
|
7575
7571
|
FoxPopover: Hl,
|
|
7576
|
-
FoxCheckbox:
|
|
7572
|
+
FoxCheckbox: Xt,
|
|
7577
7573
|
FoxCheckboxGroup: ql,
|
|
7578
7574
|
FoxButton: Ar,
|
|
7579
|
-
FoxIcon:
|
|
7575
|
+
FoxIcon: tl,
|
|
7580
7576
|
DragIcon: f4,
|
|
7581
7577
|
Download: sa,
|
|
7582
7578
|
RefreshLeft: oa
|
|
@@ -7660,11 +7656,11 @@ var f4 = /* @__PURE__ */ pt(o4, [["render", c4]]), { componentName: e7, create:
|
|
|
7660
7656
|
const ne = Number(_.index), oe = Number(Q.dataset.index);
|
|
7661
7657
|
if (ne !== oe) {
|
|
7662
7658
|
if (ne < oe) {
|
|
7663
|
-
const
|
|
7664
|
-
l.value.splice(ne, 1), l.value.splice(oe, 0,
|
|
7659
|
+
const K = l.value[ne];
|
|
7660
|
+
l.value.splice(ne, 1), l.value.splice(oe, 0, K);
|
|
7665
7661
|
} else {
|
|
7666
|
-
const
|
|
7667
|
-
l.value.splice(ne, 1), l.value.splice(oe + 1, 0,
|
|
7662
|
+
const K = l.value[ne];
|
|
7663
|
+
l.value.splice(ne, 1), l.value.splice(oe + 1, 0, K);
|
|
7668
7664
|
}
|
|
7669
7665
|
w(l.value, n), g();
|
|
7670
7666
|
}
|
|
@@ -7803,7 +7799,7 @@ function V4(e, t, r, n, l, a) {
|
|
|
7803
7799
|
onChange: e.handleCheckChange
|
|
7804
7800
|
}, {
|
|
7805
7801
|
default: be(() => [
|
|
7806
|
-
e.leftFixedColumns.length > 0 ? (se(), me("div", y4, [e.isShowLeftFixedTitle ? (se(), me("div", b4, Le(e.leftFixedTitle), 1)) : ze("", !0), (se(!0), me(Vt, null,
|
|
7802
|
+
e.leftFixedColumns.length > 0 ? (se(), me("div", y4, [e.isShowLeftFixedTitle ? (se(), me("div", b4, Le(e.leftFixedTitle), 1)) : ze("", !0), (se(!0), me(Vt, null, fl(e.leftFixedColumns, (c) => (se(), me("div", {
|
|
7807
7803
|
key: c.prop,
|
|
7808
7804
|
class: "fox-table-setting__body-row",
|
|
7809
7805
|
"data-role": "row",
|
|
@@ -7848,7 +7844,7 @@ function V4(e, t, r, n, l, a) {
|
|
|
7848
7844
|
_: 1
|
|
7849
7845
|
}, 8, ["onClick"])])
|
|
7850
7846
|
], 40, w4))), 128))])) : ze("", !0),
|
|
7851
|
-
e.unFixedColumns.length > 0 ? (se(), me("div", N4, [e.isShowNotFixedTitle ? (se(), me("div", C4, Le(e.unFixedTitle), 1)) : ze("", !0), (se(!0), me(Vt, null,
|
|
7847
|
+
e.unFixedColumns.length > 0 ? (se(), me("div", N4, [e.isShowNotFixedTitle ? (se(), me("div", C4, Le(e.unFixedTitle), 1)) : ze("", !0), (se(!0), me(Vt, null, fl(e.unFixedColumns, (c) => (se(), me("div", {
|
|
7852
7848
|
key: c.prop,
|
|
7853
7849
|
class: "fox-table-setting__body-row",
|
|
7854
7850
|
"data-role": "row",
|
|
@@ -7894,7 +7890,7 @@ function V4(e, t, r, n, l, a) {
|
|
|
7894
7890
|
_: 1
|
|
7895
7891
|
}, 8, ["onClick"])])
|
|
7896
7892
|
], 40, z4))), 128))])) : ze("", !0),
|
|
7897
|
-
e.rightFixedColumns.length > 0 ? (se(), me("div", $4, [e.isShowRightFixedTitle ? (se(), me("div", T4, Le(e.rightFixedTitle), 1)) : ze("", !0), (se(!0), me(Vt, null,
|
|
7893
|
+
e.rightFixedColumns.length > 0 ? (se(), me("div", $4, [e.isShowRightFixedTitle ? (se(), me("div", T4, Le(e.rightFixedTitle), 1)) : ze("", !0), (se(!0), me(Vt, null, fl(e.rightFixedColumns, (c) => (se(), me("div", {
|
|
7898
7894
|
key: c.prop,
|
|
7899
7895
|
class: "fox-table-setting__body-row",
|
|
7900
7896
|
"data-role": "row",
|
|
@@ -8337,7 +8333,7 @@ function B4(e, t, r) {
|
|
|
8337
8333
|
I() && !P.value && z();
|
|
8338
8334
|
const X = R(null);
|
|
8339
8335
|
Ae(O4, { currentRow: X });
|
|
8340
|
-
const
|
|
8336
|
+
const W = (ee, ie) => {
|
|
8341
8337
|
X.value = ee, i("current-change", ee, ie);
|
|
8342
8338
|
}, F = (ee, ie, ue) => {
|
|
8343
8339
|
i("row-click", ee, ie, ue), pe(n.rowClickSelectable) === !0 && Ee?.value.toggleRowSelection(ee);
|
|
@@ -8359,7 +8355,7 @@ function B4(e, t, r) {
|
|
|
8359
8355
|
columnPropertyList: Q.value
|
|
8360
8356
|
}), oe = (ee) => {
|
|
8361
8357
|
Q.value = [...ee], te();
|
|
8362
|
-
},
|
|
8358
|
+
}, K = async () => {
|
|
8363
8359
|
const ee = await G.load(C);
|
|
8364
8360
|
ee && (Q.value = ee);
|
|
8365
8361
|
}, te = () => {
|
|
@@ -8367,7 +8363,7 @@ function B4(e, t, r) {
|
|
|
8367
8363
|
}, v = () => {
|
|
8368
8364
|
G.remove(C);
|
|
8369
8365
|
};
|
|
8370
|
-
|
|
8366
|
+
K();
|
|
8371
8367
|
const h = (ee) => ee ? ee.type ? ee.type : ee.label ? ee.prop : "" : "", T = (ee, ie = {}) => {
|
|
8372
8368
|
for (let ue in ie) {
|
|
8373
8369
|
const he = ie[ue];
|
|
@@ -8430,14 +8426,14 @@ function B4(e, t, r) {
|
|
|
8430
8426
|
}), ge(), at(J);
|
|
8431
8427
|
}, ht = () => {
|
|
8432
8428
|
ge(), J.value.clear(), at(J);
|
|
8433
|
-
}, yt = Wt(/* @__PURE__ */ new Map()),
|
|
8429
|
+
}, yt = Wt(/* @__PURE__ */ new Map()), ll = ({ rowIndex: ee }) => {
|
|
8434
8430
|
const ie = `${ee}`;
|
|
8435
8431
|
return yt.value.get(ie) ?? "";
|
|
8436
|
-
},
|
|
8432
|
+
}, xl = (ee) => ee ? (ie) => {
|
|
8437
8433
|
const ue = [];
|
|
8438
|
-
let he =
|
|
8434
|
+
let he = ll(ie);
|
|
8439
8435
|
return he && ue.push(he), he = typeof ee == "function" ? ee(ie) : ee, he && ue.push(he), ue.length === 0 ? "" : ue.join(" ");
|
|
8440
|
-
} :
|
|
8436
|
+
} : ll, ki = (ee, ie) => {
|
|
8441
8437
|
const ue = `${ee}`;
|
|
8442
8438
|
ie ? yt.value.set(ue, ie) : yt.value.delete(ue), at(yt);
|
|
8443
8439
|
}, _i = () => {
|
|
@@ -8524,25 +8520,25 @@ function B4(e, t, r) {
|
|
|
8524
8520
|
}), () => {
|
|
8525
8521
|
const ee = {
|
|
8526
8522
|
...vt(l.attrs),
|
|
8527
|
-
onCurrentChange:
|
|
8523
|
+
onCurrentChange: W,
|
|
8528
8524
|
onRowClick: F,
|
|
8529
8525
|
onExpandChange: Y,
|
|
8530
8526
|
data: _.value,
|
|
8531
8527
|
ref: Ee,
|
|
8532
8528
|
class: u.value,
|
|
8533
8529
|
"cell-class-name": ae(n.cellClassName),
|
|
8534
|
-
"row-class-name":
|
|
8530
|
+
"row-class-name": xl(n.rowClassName)
|
|
8535
8531
|
}, ie = {};
|
|
8536
8532
|
if (l.slots.default && (ie.default = () => q(l.slots.default)), l.slots.append && (ie.append = l.slots.append), l.slots.empty && (ie.empty = l.slots.empty), y === !0) {
|
|
8537
8533
|
const Fe = [];
|
|
8538
8534
|
if (k.value) {
|
|
8539
|
-
const
|
|
8540
|
-
Fe.push(
|
|
8535
|
+
const rl = V(vo, { class: `${d}__infinite-icon` });
|
|
8536
|
+
Fe.push(rl);
|
|
8541
8537
|
const nr = V("span", { class: `${d}__infinite-text` }, [s.loadText.value]);
|
|
8542
8538
|
Fe.push(nr);
|
|
8543
8539
|
} else {
|
|
8544
|
-
const
|
|
8545
|
-
Fe.push(
|
|
8540
|
+
const rl = V("span", { class: `${d}__infinite-text` }, [s.noMoreText.value]);
|
|
8541
|
+
Fe.push(rl);
|
|
8546
8542
|
}
|
|
8547
8543
|
const Tt = V("div", {
|
|
8548
8544
|
ref: L,
|
|
@@ -8576,14 +8572,14 @@ function B4(e, t, r) {
|
|
|
8576
8572
|
})), n.showSetting) {
|
|
8577
8573
|
const Tt = [];
|
|
8578
8574
|
Fe && Tt.push(Fe);
|
|
8579
|
-
const
|
|
8580
|
-
...
|
|
8575
|
+
const rl = V(tl, { class: w.value }, { default: () => V(yo) }), nr = V(li, {
|
|
8576
|
+
...Zt(n, Tr),
|
|
8581
8577
|
tableRef: {
|
|
8582
8578
|
getColumnSetting: ne,
|
|
8583
8579
|
setColumnSetting: oe,
|
|
8584
8580
|
removeColumnSetting: v
|
|
8585
8581
|
}
|
|
8586
|
-
}, { default: () =>
|
|
8582
|
+
}, { default: () => rl });
|
|
8587
8583
|
Tt.push(nr);
|
|
8588
8584
|
const $i = V("div", { class: N.value }, Tt);
|
|
8589
8585
|
he.push($i);
|
|
@@ -8596,10 +8592,10 @@ function B4(e, t, r) {
|
|
|
8596
8592
|
};
|
|
8597
8593
|
}
|
|
8598
8594
|
var { componentName: q4, create: H4, scope: j4 } = fe("table-item"), K4 = H4(B4(q4, j4, et)), W4 = K4;
|
|
8599
|
-
function
|
|
8595
|
+
function Qt(e, t) {
|
|
8600
8596
|
return typeof e.textKey == "string" && e.textKey.length > 0 ? t[e.textKey] : t.text;
|
|
8601
8597
|
}
|
|
8602
|
-
function
|
|
8598
|
+
function wl(e, t) {
|
|
8603
8599
|
return typeof e.valueKey == "string" && e.valueKey.length > 0 ? t[e.valueKey] : t.value;
|
|
8604
8600
|
}
|
|
8605
8601
|
function Y4(e, t) {
|
|
@@ -8622,18 +8618,18 @@ function G4() {
|
|
|
8622
8618
|
return new U4(Be().proxy);
|
|
8623
8619
|
}
|
|
8624
8620
|
function ii(e, t, r) {
|
|
8625
|
-
return t === r ? !0 : !(t === null || r === null ||
|
|
8621
|
+
return t === r ? !0 : !(t === null || r === null || Qt(e, t) !== Qt(e, r) || wl(e, t) !== wl(e, r));
|
|
8626
8622
|
}
|
|
8627
8623
|
function X4(e, t, r, n) {
|
|
8628
8624
|
if (n.length == 0 || t === "" || t === null || t === void 0) return null;
|
|
8629
8625
|
let l = null;
|
|
8630
8626
|
for (let a of n) {
|
|
8631
8627
|
let o = !1;
|
|
8632
|
-
if (r === "text") o =
|
|
8628
|
+
if (r === "text") o = Qt(e, a) === t;
|
|
8633
8629
|
else if (r === "item") o = ii(e, a, t);
|
|
8634
8630
|
else {
|
|
8635
|
-
let s =
|
|
8636
|
-
s == null && (s =
|
|
8631
|
+
let s = wl(e, a);
|
|
8632
|
+
s == null && (s = Qt(e, a)), o = s === t;
|
|
8637
8633
|
}
|
|
8638
8634
|
if (o) {
|
|
8639
8635
|
l = a;
|
|
@@ -8762,7 +8758,7 @@ function ec(e, t, r, n) {
|
|
|
8762
8758
|
const z = xe(M);
|
|
8763
8759
|
N.value = z;
|
|
8764
8760
|
let H = null;
|
|
8765
|
-
l.valueType === "text" ? H =
|
|
8761
|
+
l.valueType === "text" ? H = Qt(l, z) : l.valueType === "item" ? H = z : H = wl(l, z), S && (u("update:modelValue", H), u("change", H));
|
|
8766
8762
|
}
|
|
8767
8763
|
}, c = R([]), g = Je(x(() => l.appearLoad), "appearLoad", Ze.Near, (m) => pe(m)), $ = G4(), b = async (m, P) => {
|
|
8768
8764
|
if (m) {
|
|
@@ -8791,7 +8787,7 @@ function ec(e, t, r, n) {
|
|
|
8791
8787
|
typeof l.sourceFilter == "function" && (m = m.filter(l.sourceFilter));
|
|
8792
8788
|
const Z = [];
|
|
8793
8789
|
return m.forEach((S, M) => {
|
|
8794
|
-
const z =
|
|
8790
|
+
const z = wl(l, S), H = Qt(l, S);
|
|
8795
8791
|
let j = Y4(l, S);
|
|
8796
8792
|
s.value === !0 && (j = s.value), f.value === !0 && (j = f.value);
|
|
8797
8793
|
const D = J4(l, S, M) ?? {}, L = `${z}_${M}`, X = {
|
|
@@ -8838,7 +8834,7 @@ function ec(e, t, r, n) {
|
|
|
8838
8834
|
};
|
|
8839
8835
|
}
|
|
8840
8836
|
var { componentName: tc, create: lc, scope: rc } = fe("radio-item"), nc = lc(ec(tc, rc, et, it)), ac = nc;
|
|
8841
|
-
function
|
|
8837
|
+
function el(e, t) {
|
|
8842
8838
|
return typeof e.textKey == "string" && e.textKey.length > 0 ? t[e.textKey] : t.text;
|
|
8843
8839
|
}
|
|
8844
8840
|
function Ut(e, t) {
|
|
@@ -8864,7 +8860,7 @@ function oc() {
|
|
|
8864
8860
|
return new sc(Be().proxy);
|
|
8865
8861
|
}
|
|
8866
8862
|
function oi(e, t, r) {
|
|
8867
|
-
return t === r ? !0 : !(t === null || r === null ||
|
|
8863
|
+
return t === r ? !0 : !(t === null || r === null || el(e, t) !== el(e, r) || Ut(e, t) !== Ut(e, r));
|
|
8868
8864
|
}
|
|
8869
8865
|
function uc(e, t, r, n) {
|
|
8870
8866
|
if (n.length == 0 || t === "" || t === null || t === void 0) return null;
|
|
@@ -8873,11 +8869,11 @@ function uc(e, t, r, n) {
|
|
|
8873
8869
|
return t.forEach((a) => {
|
|
8874
8870
|
for (let o of n) {
|
|
8875
8871
|
let s = !1;
|
|
8876
|
-
if (r === "text") s =
|
|
8872
|
+
if (r === "text") s = el(e, o) === a;
|
|
8877
8873
|
else if (r === "item") s = oi(e, o, a);
|
|
8878
8874
|
else {
|
|
8879
8875
|
let i = Ut(e, o);
|
|
8880
|
-
i == null && (i =
|
|
8876
|
+
i == null && (i = el(e, o)), s = i === a;
|
|
8881
8877
|
}
|
|
8882
8878
|
if (s) {
|
|
8883
8879
|
l.push(o);
|
|
@@ -9022,7 +9018,7 @@ function hc(e, t, r, n) {
|
|
|
9022
9018
|
N.value = M;
|
|
9023
9019
|
let H = [], j = [];
|
|
9024
9020
|
M.forEach((L) => {
|
|
9025
|
-
H.push(Ut(l, L)), l.valueType === "text" ? j.push(
|
|
9021
|
+
H.push(Ut(l, L)), l.valueType === "text" ? j.push(el(l, L)) : l.valueType === "item" ? j.push(L) : j.push(Ut(l, L));
|
|
9026
9022
|
}), w.value = H;
|
|
9027
9023
|
const D = xe(j);
|
|
9028
9024
|
S && (u("update:modelValue", D), u("change", D));
|
|
@@ -9054,7 +9050,7 @@ function hc(e, t, r, n) {
|
|
|
9054
9050
|
typeof l.sourceFilter == "function" && (m = m.filter(l.sourceFilter));
|
|
9055
9051
|
const Z = [];
|
|
9056
9052
|
return m.forEach((S, M) => {
|
|
9057
|
-
const z = Ut(l, S), H =
|
|
9053
|
+
const z = Ut(l, S), H = el(l, S);
|
|
9058
9054
|
let j = ic(l, S);
|
|
9059
9055
|
s.value === !0 && (j = s.value), f.value === !0 && (j = f.value);
|
|
9060
9056
|
const D = fc(l, S, M) ?? {}, L = `${z}_${M}`, X = {
|
|
@@ -9064,7 +9060,7 @@ function hc(e, t, r, n) {
|
|
|
9064
9060
|
size: l.size,
|
|
9065
9061
|
border: pe(l.border)
|
|
9066
9062
|
};
|
|
9067
|
-
j && (X.disabled = j), l.itemType === "button" ? Z.push(V(qn, X, { default: () => [H] })) : typeof P == "function" ? Z.push(V(
|
|
9063
|
+
j && (X.disabled = j), l.itemType === "button" ? Z.push(V(qn, X, { default: () => [H] })) : typeof P == "function" ? Z.push(V(Xt, X, { default: () => P(S) })) : Z.push(V(Xt, X, { default: () => [H] }));
|
|
9068
9064
|
}), Z;
|
|
9069
9065
|
};
|
|
9070
9066
|
return qe({
|
|
@@ -9533,10 +9529,10 @@ var jc = /* @__PURE__ */ pt(Bc, [["render", Hc]]), { componentName: l7, create:
|
|
|
9533
9529
|
}, Yc = Kc({
|
|
9534
9530
|
components: {
|
|
9535
9531
|
FoxPopover: Hl,
|
|
9536
|
-
FoxCheckbox:
|
|
9532
|
+
FoxCheckbox: Xt,
|
|
9537
9533
|
FoxCheckboxGroup: ql,
|
|
9538
9534
|
FoxButton: Ar,
|
|
9539
|
-
FoxIcon:
|
|
9535
|
+
FoxIcon: tl,
|
|
9540
9536
|
DragIcon: jc,
|
|
9541
9537
|
Download: sa,
|
|
9542
9538
|
RefreshLeft: oa
|
|
@@ -9545,17 +9541,17 @@ var jc = /* @__PURE__ */ pt(Bc, [["render", Hc]]), { componentName: l7, create:
|
|
|
9545
9541
|
emits: ["change"],
|
|
9546
9542
|
setup(e, { emit: t, attrs: r, expose: n }) {
|
|
9547
9543
|
let l = null;
|
|
9548
|
-
const a = R([]), o = ri(), s = (
|
|
9549
|
-
const
|
|
9550
|
-
a.value = [...a.value].map((F, B) => (F.visible !== !1 &&
|
|
9544
|
+
const a = R([]), o = ri(), s = (W) => W.length > 1, i = () => {
|
|
9545
|
+
const W = [];
|
|
9546
|
+
a.value = [...a.value].map((F, B) => (F.visible !== !1 && W.push(F.prop), {
|
|
9551
9547
|
...F,
|
|
9552
9548
|
sortIndex: B
|
|
9553
|
-
})), a.value.length ===
|
|
9554
|
-
}, f = (
|
|
9549
|
+
})), a.value.length === W.length ? c.value = !0 : W.length > 0 && (g.value = !0), y.value = W;
|
|
9550
|
+
}, f = (W) => {
|
|
9555
9551
|
let F = null;
|
|
9556
|
-
if (typeof
|
|
9557
|
-
else if (
|
|
9558
|
-
const Y =
|
|
9552
|
+
if (typeof W == "string") F = document.querySelectorAll(`.fox-group[prop="${W}"] > div > .fox-item[prop]`);
|
|
9553
|
+
else if (W && typeof W == "object") {
|
|
9554
|
+
const Y = W.$el ?? W;
|
|
9559
9555
|
typeof Y.querySelectorAll == "function" && (F = Y.querySelectorAll(".fox-item[prop]"));
|
|
9560
9556
|
}
|
|
9561
9557
|
if (!F) return [];
|
|
@@ -9574,12 +9570,12 @@ var jc = /* @__PURE__ */ pt(Bc, [["render", Hc]]), { componentName: l7, create:
|
|
|
9574
9570
|
}), B;
|
|
9575
9571
|
}, d = () => {
|
|
9576
9572
|
if (!l) {
|
|
9577
|
-
const
|
|
9578
|
-
if (
|
|
9579
|
-
l =
|
|
9573
|
+
const W = f(e.groupRef ?? e.groupProp);
|
|
9574
|
+
if (W.length === 0) return !1;
|
|
9575
|
+
l = W;
|
|
9580
9576
|
}
|
|
9581
9577
|
return !0;
|
|
9582
|
-
}, u = async (
|
|
9578
|
+
}, u = async (W = !1) => {
|
|
9583
9579
|
const F = await o.load(e.groupProp), B = (Y) => {
|
|
9584
9580
|
if (!Y || !l) return;
|
|
9585
9581
|
const C = l.map((G) => ({ ...G }));
|
|
@@ -9591,26 +9587,26 @@ var jc = /* @__PURE__ */ pt(Bc, [["render", Hc]]), { componentName: l7, create:
|
|
|
9591
9587
|
}
|
|
9592
9588
|
return !1;
|
|
9593
9589
|
});
|
|
9594
|
-
}), a.value = C.sort((G, Q) => G.sortIndex - Q.sortIndex), i(),
|
|
9590
|
+
}), a.value = C.sort((G, Q) => G.sortIndex - Q.sortIndex), i(), W && N(!1);
|
|
9595
9591
|
};
|
|
9596
9592
|
l ? B(!0) : Br(d, e.initDelay, 5, 50, !1, B);
|
|
9597
9593
|
}, w = () => {
|
|
9598
|
-
a.value = (l ?? []).map((
|
|
9599
|
-
}, N = (
|
|
9600
|
-
|
|
9601
|
-
}, p = x(() => ({ "max-width": `${e.popoverWidth - 125}px` })), c = R(!1), g = R(!1), $ = (
|
|
9594
|
+
a.value = (l ?? []).map((W) => ({ ...W })), i(), N();
|
|
9595
|
+
}, N = (W = !0) => {
|
|
9596
|
+
W && o.save(e.groupProp, a.value), t("change", a.value.map((F) => ({ ...F })));
|
|
9597
|
+
}, p = x(() => ({ "max-width": `${e.popoverWidth - 125}px` })), c = R(!1), g = R(!1), $ = (W) => {
|
|
9602
9598
|
const F = [];
|
|
9603
9599
|
a.value.forEach((B) => {
|
|
9604
|
-
|
|
9600
|
+
W && F.push(B.prop), B.visible = W;
|
|
9605
9601
|
}), c.value = !1, g.value = !1, a.value.length === F.length ? c.value = !0 : F.length > 0 && (g.value = !0), y.value = F, N();
|
|
9606
9602
|
}, b = () => {
|
|
9607
9603
|
w();
|
|
9608
|
-
}, y = R([]), I = (
|
|
9604
|
+
}, y = R([]), I = (W) => {
|
|
9609
9605
|
a.value.forEach((B) => {
|
|
9610
|
-
B.visible =
|
|
9606
|
+
B.visible = W.indexOf(B.prop) !== -1;
|
|
9611
9607
|
}), c.value = !1, g.value = !1;
|
|
9612
9608
|
const F = a.value.length;
|
|
9613
|
-
|
|
9609
|
+
W.length === F ? c.value = !0 : W.length > 0 && (g.value = !0), N();
|
|
9614
9610
|
}, A = () => {
|
|
9615
9611
|
u();
|
|
9616
9612
|
};
|
|
@@ -9620,22 +9616,22 @@ var jc = /* @__PURE__ */ pt(Bc, [["render", Hc]]), { componentName: l7, create:
|
|
|
9620
9616
|
const E = {
|
|
9621
9617
|
currentRow: null,
|
|
9622
9618
|
index: null
|
|
9623
|
-
}, k = (
|
|
9624
|
-
const F =
|
|
9619
|
+
}, k = (W) => W ? W.dataset && W.dataset.role === "row" ? W : W.tagName.toLowerCase() !== "body" ? (W = W.parentElement, k(W)) : null : null, O = (W) => {
|
|
9620
|
+
const F = W.currentTarget;
|
|
9625
9621
|
F && F.dataset && (E.index = F.dataset.index);
|
|
9626
|
-
}, _ = (
|
|
9622
|
+
}, _ = (W) => {
|
|
9627
9623
|
E.currentRow && (E.currentRow.classList.remove("is-dragover"), E.currentRow = null), E.index = null;
|
|
9628
|
-
}, U = (
|
|
9629
|
-
const F =
|
|
9630
|
-
|
|
9624
|
+
}, U = (W) => {
|
|
9625
|
+
const F = W.currentTarget;
|
|
9626
|
+
W.relatedTarget;
|
|
9631
9627
|
const B = k(F);
|
|
9632
|
-
B && (
|
|
9633
|
-
}, m = (
|
|
9634
|
-
|
|
9635
|
-
}, P = (
|
|
9636
|
-
const F =
|
|
9628
|
+
B && (W.preventDefault(), E.currentRow && E.currentRow !== B && E.currentRow.classList.remove("is-dragover"), B.classList.add("is-dragover"), E.currentRow = B);
|
|
9629
|
+
}, m = (W) => {
|
|
9630
|
+
W.preventDefault(), E.currentRow && (E.currentRow.classList.remove("is-dragover"), E.currentRow = null);
|
|
9631
|
+
}, P = (W) => {
|
|
9632
|
+
const F = W.currentTarget, B = k(F);
|
|
9637
9633
|
if (!B) return;
|
|
9638
|
-
|
|
9634
|
+
W.preventDefault();
|
|
9639
9635
|
const Y = Number(E.index), C = Number(B.dataset.index);
|
|
9640
9636
|
if (Y !== C) {
|
|
9641
9637
|
if (Y < C) {
|
|
@@ -9647,21 +9643,21 @@ var jc = /* @__PURE__ */ pt(Bc, [["render", Hc]]), { componentName: l7, create:
|
|
|
9647
9643
|
}
|
|
9648
9644
|
i(), N();
|
|
9649
9645
|
}
|
|
9650
|
-
}, Z = (
|
|
9651
|
-
const F = a.value[
|
|
9652
|
-
a.value.splice(
|
|
9653
|
-
}, S = (
|
|
9654
|
-
const F = a.value[
|
|
9655
|
-
a.value.splice(
|
|
9646
|
+
}, Z = (W) => {
|
|
9647
|
+
const F = a.value[W];
|
|
9648
|
+
a.value.splice(W, 1), a.value.splice(0, 0, F), i(), N();
|
|
9649
|
+
}, S = (W) => {
|
|
9650
|
+
const F = a.value[W];
|
|
9651
|
+
a.value.splice(W, 1), a.value.push(F), i(), N();
|
|
9656
9652
|
};
|
|
9657
9653
|
n({ refresh: () => {
|
|
9658
9654
|
l = null, u(!1);
|
|
9659
9655
|
} });
|
|
9660
9656
|
const M = /* @__PURE__ */ new Map();
|
|
9661
9657
|
let z = null;
|
|
9662
|
-
function H(
|
|
9658
|
+
function H(W) {
|
|
9663
9659
|
const F = document.createRange();
|
|
9664
|
-
return F.setStart(
|
|
9660
|
+
return F.setStart(W, 0), F.setEnd(W, W.childNodes.length), F.getBoundingClientRect().width;
|
|
9665
9661
|
}
|
|
9666
9662
|
return {
|
|
9667
9663
|
attrs: r,
|
|
@@ -9682,8 +9678,8 @@ var jc = /* @__PURE__ */ pt(Bc, [["render", Hc]]), { componentName: l7, create:
|
|
|
9682
9678
|
checkboxLabelStyle: p,
|
|
9683
9679
|
toTop: Z,
|
|
9684
9680
|
toBottom: S,
|
|
9685
|
-
onMouseOverForOverflowText: (
|
|
9686
|
-
const Y =
|
|
9681
|
+
onMouseOverForOverflowText: (W, F, B) => {
|
|
9682
|
+
const Y = W.currentTarget;
|
|
9687
9683
|
if (Y) {
|
|
9688
9684
|
const C = Math.floor(Y.offsetWidth);
|
|
9689
9685
|
if (Math.floor(H(Y)) > C) {
|
|
@@ -9700,19 +9696,19 @@ var jc = /* @__PURE__ */ pt(Bc, [["render", Hc]]), { componentName: l7, create:
|
|
|
9700
9696
|
}
|
|
9701
9697
|
}
|
|
9702
9698
|
},
|
|
9703
|
-
onMouseLeaveForOverflowText: (
|
|
9699
|
+
onMouseLeaveForOverflowText: (W, F) => {
|
|
9704
9700
|
const B = M.get(F);
|
|
9705
9701
|
B && (Xe.hide(B), B === z && (z = null));
|
|
9706
9702
|
},
|
|
9707
|
-
onMouseOverForTip: (
|
|
9708
|
-
const B =
|
|
9703
|
+
onMouseOverForTip: (W, F) => {
|
|
9704
|
+
const B = W.currentTarget;
|
|
9709
9705
|
B && (z && Xe.hide(z), z = Xe.show(B, F, {
|
|
9710
9706
|
type: "text",
|
|
9711
9707
|
placement: "top",
|
|
9712
9708
|
closeOnClick: !1
|
|
9713
9709
|
}, !0));
|
|
9714
9710
|
},
|
|
9715
|
-
onMouseLeaveForTip: (
|
|
9711
|
+
onMouseLeaveForTip: (W) => {
|
|
9716
9712
|
z && (Xe.hide(z), z = null);
|
|
9717
9713
|
}
|
|
9718
9714
|
};
|
|
@@ -9755,7 +9751,7 @@ function t0(e, t, r, n, l, a) {
|
|
|
9755
9751
|
"onUpdate:modelValue": t[10] || (t[10] = (N) => e.checkedValue = N),
|
|
9756
9752
|
onChange: e.handleCheckChange
|
|
9757
9753
|
}, {
|
|
9758
|
-
default: be(() => [de("div", Zc, [(se(!0), me(Vt, null,
|
|
9754
|
+
default: be(() => [de("div", Zc, [(se(!0), me(Vt, null, fl(e.itemPropertyList, (N) => (se(), me("div", {
|
|
9759
9755
|
key: N.prop,
|
|
9760
9756
|
class: "fox-group-setting__body-row",
|
|
9761
9757
|
"data-role": "row",
|
|
@@ -9981,7 +9977,7 @@ function s0(e, t, r) {
|
|
|
9981
9977
|
const I = [], A = V(la, y, l.slots);
|
|
9982
9978
|
I.push(A);
|
|
9983
9979
|
const E = { default: () => I };
|
|
9984
|
-
return V(r, { ...
|
|
9980
|
+
return V(r, { ...Zt(n, Gr) }, E);
|
|
9985
9981
|
};
|
|
9986
9982
|
}
|
|
9987
9983
|
};
|
|
@@ -10069,8 +10065,8 @@ function g0(e, t, r, n) {
|
|
|
10069
10065
|
onFocus: A,
|
|
10070
10066
|
onBlur: E
|
|
10071
10067
|
};
|
|
10072
|
-
let
|
|
10073
|
-
a.slots.main ?
|
|
10068
|
+
let W = null;
|
|
10069
|
+
a.slots.main ? W = V("view", X, [a.slots.main($.value)]) : W = V("view", X, [$.value]), D.push(W);
|
|
10074
10070
|
}
|
|
10075
10071
|
if (b.value) {
|
|
10076
10072
|
const X = {
|
|
@@ -10080,8 +10076,8 @@ function g0(e, t, r, n) {
|
|
|
10080
10076
|
onFocus: A,
|
|
10081
10077
|
onBlur: E
|
|
10082
10078
|
};
|
|
10083
|
-
let
|
|
10084
|
-
a.slots.sub ?
|
|
10079
|
+
let W = null;
|
|
10080
|
+
a.slots.sub ? W = V("view", X, [a.slots.sub(l.desc)]) : W = V("view", X, [l.desc]), D.push(W);
|
|
10085
10081
|
}
|
|
10086
10082
|
const L = V("view", {
|
|
10087
10083
|
class: w.value,
|
|
@@ -10108,7 +10104,7 @@ function g0(e, t, r, n) {
|
|
|
10108
10104
|
m.push(z);
|
|
10109
10105
|
const H = { default: () => m };
|
|
10110
10106
|
H.label = a.slots.default, H.prepend = a.slots.prepend, H.append = a.slots.append, H.fixedPreTip = a.slots.fixedPreTip, H.fixedTip = a.slots.fixedTip;
|
|
10111
|
-
const j = { ...
|
|
10107
|
+
const j = { ...Zt(l, je, Oe) };
|
|
10112
10108
|
return l.prop && (j.prop = `${l.prop}_item`), n(j, H);
|
|
10113
10109
|
};
|
|
10114
10110
|
}
|
|
@@ -10845,7 +10841,7 @@ var Xr = {
|
|
|
10845
10841
|
default: !1
|
|
10846
10842
|
},
|
|
10847
10843
|
beforeChange: { type: Function }
|
|
10848
|
-
}, vn = (e, t) => t[e.textKey],
|
|
10844
|
+
}, vn = (e, t) => t[e.textKey], sl = (e, t) => t[e.valueKey], J0 = (e, t) => t[e.visibleKey], yn = (e, t) => t[e.disabledKey], Q0 = (e, t) => {
|
|
10849
10845
|
const r = t[e.doitKey];
|
|
10850
10846
|
return pe(r);
|
|
10851
10847
|
}, e5 = (e, t) => {
|
|
@@ -10914,7 +10910,7 @@ function t5(e, t, r, n, l, a = !1) {
|
|
|
10914
10910
|
}
|
|
10915
10911
|
ge();
|
|
10916
10912
|
}, U = (v, h) => {
|
|
10917
|
-
const T =
|
|
10913
|
+
const T = sl(o, v), q = {};
|
|
10918
10914
|
return q[`${e}__titles-item`] = !0, q.disabled = yn(o, v), q.active = T === N.value, o.shape && (q[`${o.shape}`] = !0), o.ellipsis && (q.ellipsis = !0), h && (h.class && (q[`${h.class}`] = !0), h.disabled === !0 && (q.disabled = h.disabled)), q;
|
|
10919
10915
|
}, m = (v, h) => {
|
|
10920
10916
|
const T = {};
|
|
@@ -10923,13 +10919,13 @@ function t5(e, t, r, n, l, a = !1) {
|
|
|
10923
10919
|
o.direction === "vertical" ? (T["margin-top"] = `${q}px`, T["margin-bottom"] = `${q}px`) : (T["margin-left"] = `${q}px`, T["margin-right"] = `${q}px`);
|
|
10924
10920
|
}
|
|
10925
10921
|
return h && h.style && Object.assign(T, h.style), T;
|
|
10926
|
-
}, P = (v, h) => `${
|
|
10927
|
-
const T =
|
|
10922
|
+
}, P = (v, h) => `${sl(o, v) ?? h}`, Z = (v, h) => {
|
|
10923
|
+
const T = sl(o, v), q = {};
|
|
10928
10924
|
q[`${e}__popup-item`] = !0, q.disabled = yn(o, v), q.active = T === N.value, o.shape && (q[`${o.shape}`] = !0);
|
|
10929
10925
|
const J = bn(o, v, h);
|
|
10930
10926
|
return J && J.disabled === !0 && (q.disabled = J.disabled), q;
|
|
10931
10927
|
}, S = x(() => (o.data ?? []).filter((v) => J0(o, v) !== !1)), M = (v, h) => {
|
|
10932
|
-
const T =
|
|
10928
|
+
const T = sl(o, v);
|
|
10933
10929
|
if (i("click", v, h), N.value == T) return;
|
|
10934
10930
|
const q = () => {
|
|
10935
10931
|
N.value = T, o.scroll && O(h, !1), i("update:modelValue", T), i("change", v, h);
|
|
@@ -10951,10 +10947,10 @@ function t5(e, t, r, n, l, a = !1) {
|
|
|
10951
10947
|
}, D = (v) => {
|
|
10952
10948
|
if (!Array.isArray(o.data) || !o.scroll) return;
|
|
10953
10949
|
Y() && oe();
|
|
10954
|
-
const h = o.data.findIndex((T) =>
|
|
10950
|
+
const h = o.data.findIndex((T) => sl(o, T) === N.value);
|
|
10955
10951
|
h !== -1 && O(h, v);
|
|
10956
10952
|
}, L = () => {
|
|
10957
|
-
Y() ||
|
|
10953
|
+
Y() || K();
|
|
10958
10954
|
};
|
|
10959
10955
|
ce(() => o.data, () => {
|
|
10960
10956
|
setTimeout(D, 0);
|
|
@@ -11002,7 +10998,7 @@ function t5(e, t, r, n, l, a = !1) {
|
|
|
11002
10998
|
key: P(v, h),
|
|
11003
10999
|
onClick: z(v, h)
|
|
11004
11000
|
}, q);
|
|
11005
|
-
},
|
|
11001
|
+
}, W = () => {
|
|
11006
11002
|
const v = s.default ? s.default() : [];
|
|
11007
11003
|
if (v.length === 0) for (let h = 0; h < S.value.length; h++) {
|
|
11008
11004
|
const T = S.value[h], q = X(T, h);
|
|
@@ -11076,7 +11072,7 @@ function t5(e, t, r, n, l, a = !1) {
|
|
|
11076
11072
|
}, oe = () => {
|
|
11077
11073
|
const v = I.value;
|
|
11078
11074
|
v && (le(), v.addEventListener("scroll", ne));
|
|
11079
|
-
},
|
|
11075
|
+
}, K = () => {
|
|
11080
11076
|
const v = I.value;
|
|
11081
11077
|
v && v.removeEventListener("scroll", ne);
|
|
11082
11078
|
}, te = (v) => {
|
|
@@ -11090,7 +11086,7 @@ function t5(e, t, r, n, l, a = !1) {
|
|
|
11090
11086
|
}, [h]);
|
|
11091
11087
|
};
|
|
11092
11088
|
return () => {
|
|
11093
|
-
const v = [], h =
|
|
11089
|
+
const v = [], h = W();
|
|
11094
11090
|
if (v.push(h), Y()) {
|
|
11095
11091
|
const T = te("left");
|
|
11096
11092
|
T && v.push(T);
|
|
@@ -11523,7 +11519,7 @@ function z5(e, t, r, n) {
|
|
|
11523
11519
|
const b = {};
|
|
11524
11520
|
for (let O in o)
|
|
11525
11521
|
O !== "default" && (b[O] = o[O]);
|
|
11526
|
-
const y =
|
|
11522
|
+
const y = Zt(l, Xr);
|
|
11527
11523
|
Object.assign(y, {
|
|
11528
11524
|
data: $,
|
|
11529
11525
|
class: d.value,
|
|
@@ -11532,7 +11528,7 @@ function z5(e, t, r, n) {
|
|
|
11532
11528
|
onChange: N,
|
|
11533
11529
|
"onUpdate:modelValue": p
|
|
11534
11530
|
});
|
|
11535
|
-
const I = V(r, y, b), A = { default: () => g }, E =
|
|
11531
|
+
const I = V(r, y, b), A = { default: () => g }, E = Zt(l, Zr);
|
|
11536
11532
|
Object.assign(E, {
|
|
11537
11533
|
class: u.value,
|
|
11538
11534
|
modelValue: w.value,
|
|
@@ -11810,13 +11806,13 @@ function P5(e, t, r, n) {
|
|
|
11810
11806
|
const T = U(F, B, C);
|
|
11811
11807
|
T && le.push(T);
|
|
11812
11808
|
}
|
|
11813
|
-
const
|
|
11809
|
+
const K = V("view", { class: "fox-steps-bar__head" }, le), te = Y.class, v = Y.style ?? {};
|
|
11814
11810
|
let h = Cn(l, F);
|
|
11815
11811
|
return Y.doit === !0 && (h = !0), V("view", {
|
|
11816
11812
|
ref: L(B),
|
|
11817
11813
|
class: $(B, C, G, h, te),
|
|
11818
11814
|
style: y(B, v)
|
|
11819
|
-
}, [
|
|
11815
|
+
}, [K]);
|
|
11820
11816
|
}, z = (F, B) => {
|
|
11821
11817
|
const Y = hr(l, F, B) ?? {}, C = Y.status ?? dr(l, F);
|
|
11822
11818
|
let G = Nn(l, F);
|
|
@@ -11835,12 +11831,12 @@ function P5(e, t, r, n) {
|
|
|
11835
11831
|
const h = m();
|
|
11836
11832
|
le.push(h);
|
|
11837
11833
|
}
|
|
11838
|
-
const oe = Y.class,
|
|
11834
|
+
const oe = Y.class, K = Y.style ?? {};
|
|
11839
11835
|
let te = Cn(l, F);
|
|
11840
11836
|
return Y.doit === !0 && (te = !0), V("view", {
|
|
11841
11837
|
ref: L(B),
|
|
11842
11838
|
class: $(B, C, G, te, oe),
|
|
11843
|
-
style: y(B,
|
|
11839
|
+
style: y(B, K)
|
|
11844
11840
|
}, le);
|
|
11845
11841
|
}, H = R(), j = R([]), D = (F, B) => {
|
|
11846
11842
|
j.value[B] = F;
|
|
@@ -11851,8 +11847,8 @@ function P5(e, t, r, n) {
|
|
|
11851
11847
|
if (!Y || !C || !C[F]) return;
|
|
11852
11848
|
const G = C[F];
|
|
11853
11849
|
let Q = 0;
|
|
11854
|
-
l.direction === "vertical" ? Q = G.offsetTop - (Y.offsetHeight - G.offsetHeight) / 2 : Q = G.offsetLeft - (Y.offsetWidth - G.offsetWidth) / 2,
|
|
11855
|
-
},
|
|
11850
|
+
l.direction === "vertical" ? Q = G.offsetTop - (Y.offsetHeight - G.offsetHeight) / 2 : Q = G.offsetLeft - (Y.offsetWidth - G.offsetWidth) / 2, W(Y, Q, B ? 0 : 0.3, l.direction);
|
|
11851
|
+
}, W = (F, B, Y, C) => {
|
|
11856
11852
|
let G = 0;
|
|
11857
11853
|
const Q = C === "horizontal" ? F.scrollLeft : F.scrollTop, le = Y === 0 ? 1 : Math.round(Y * 1e3 / 16);
|
|
11858
11854
|
function ne() {
|
|
@@ -11937,14 +11933,14 @@ function H5(e, t) {
|
|
|
11937
11933
|
}
|
|
11938
11934
|
};
|
|
11939
11935
|
}
|
|
11940
|
-
var { componentName: j5, create: K5, scope: W5 } = fe("dialog-item"), Y5 = K5(H5(j5, W5)), U5 = Y5,
|
|
11936
|
+
var { componentName: j5, create: K5, scope: W5 } = fe("dialog-item"), Y5 = K5(H5(j5, W5)), U5 = Y5, ol = 0, kn = "fox-overflow-hidden", _n = () => qt ? document.body : { classList: [] }, G5 = (e) => [() => {
|
|
11941
11937
|
if (e()) try {
|
|
11942
|
-
!
|
|
11938
|
+
!ol && _n().classList.add(kn), ol++;
|
|
11943
11939
|
} catch {
|
|
11944
11940
|
}
|
|
11945
11941
|
}, () => {
|
|
11946
|
-
if (e() &&
|
|
11947
|
-
|
|
11942
|
+
if (e() && ol) try {
|
|
11943
|
+
ol--, !ol && _n().classList.remove(kn);
|
|
11948
11944
|
} catch {
|
|
11949
11945
|
}
|
|
11950
11946
|
}], X5 = {
|
|
@@ -11997,7 +11993,7 @@ var { componentName: j5, create: K5, scope: W5 } = fe("dialog-item"), Y5 = K5(H5
|
|
|
11997
11993
|
}
|
|
11998
11994
|
});
|
|
11999
11995
|
function e6(e, t, r, n, l, a) {
|
|
12000
|
-
return se(), Pe(
|
|
11996
|
+
return se(), Pe(Bl, { name: "overlay-fade" }, {
|
|
12001
11997
|
default: be(() => [Bt(de("view", {
|
|
12002
11998
|
class: Ce(e.classes),
|
|
12003
11999
|
onClick: t[0] || (t[0] = Ei((...o) => e.onClick && e.onClick(...o), ["stop"])),
|
|
@@ -12150,7 +12146,7 @@ var yi = /* @__PURE__ */ pt(Q5, [["render", e6]]), t6 = {
|
|
|
12150
12146
|
}));
|
|
12151
12147
|
function i6(e, t, r, n, l, a) {
|
|
12152
12148
|
const o = Me("FoxOverLay"), s = Me("Close");
|
|
12153
|
-
return se(), Pe(
|
|
12149
|
+
return se(), Pe(Vl, {
|
|
12154
12150
|
to: e.teleport,
|
|
12155
12151
|
disabled: e.teleportDisable
|
|
12156
12152
|
}, [e.overlay ? (se(), Pe(o, Lr({
|
|
@@ -12172,7 +12168,7 @@ function i6(e, t, r, n, l, a) {
|
|
|
12172
12168
|
"overlay-class",
|
|
12173
12169
|
"overlay-style",
|
|
12174
12170
|
"onClick"
|
|
12175
|
-
])) : ze("", !0), ye(
|
|
12171
|
+
])) : ze("", !0), ye(Bl, {
|
|
12176
12172
|
name: e.transitionName,
|
|
12177
12173
|
onAfterEnter: e.onOpened,
|
|
12178
12174
|
onAfterLeave: e.onClosed
|
|
@@ -12332,7 +12328,7 @@ var s6 = /* @__PURE__ */ pt(a6, [["render", i6]]), { create: o6 } = fe("toast"),
|
|
|
12332
12328
|
class: "fox-toast-title"
|
|
12333
12329
|
}, f6 = ["innerHTML"];
|
|
12334
12330
|
function d6(e, t, r, n, l, a) {
|
|
12335
|
-
return se(), Pe(
|
|
12331
|
+
return se(), Pe(Bl, {
|
|
12336
12332
|
name: "toast-fade",
|
|
12337
12333
|
onAfterLeave: e.onAfterLeave
|
|
12338
12334
|
}, {
|
|
@@ -12353,7 +12349,7 @@ function d6(e, t, r, n, l, a) {
|
|
|
12353
12349
|
e.hasIcon ? (se(), me("view", {
|
|
12354
12350
|
key: 0,
|
|
12355
12351
|
class: Ce(e.toastIconWrapperClass)
|
|
12356
|
-
}, [(se(), Pe(
|
|
12352
|
+
}, [(se(), Pe(Al(e.renderIcon())))], 2)) : ze("", !0),
|
|
12357
12353
|
e.title ? (se(), me("div", c6, Le(e.title), 1)) : ze("", !0),
|
|
12358
12354
|
de("view", {
|
|
12359
12355
|
class: "fox-toast-text",
|
|
@@ -12383,19 +12379,19 @@ var Jr = /* @__PURE__ */ pt(u6, [["render", d6]]), Mr = {
|
|
|
12383
12379
|
cover: !1,
|
|
12384
12380
|
coverColor: "",
|
|
12385
12381
|
closeOnClickOverlay: !1
|
|
12386
|
-
}, Kt = [],
|
|
12382
|
+
}, Kt = [], ml = [], wi = (e) => {
|
|
12387
12383
|
if (e) {
|
|
12388
12384
|
const t = document.getElementById(e);
|
|
12389
|
-
|
|
12385
|
+
ml = ml.filter((r) => r.id !== e), Kt = Kt.filter((r) => r !== e), t && document.body.removeChild(t);
|
|
12390
12386
|
} else
|
|
12391
12387
|
Kt.forEach((t) => {
|
|
12392
12388
|
const r = document.getElementById(t);
|
|
12393
12389
|
r && document.body.removeChild(r);
|
|
12394
|
-
}),
|
|
12390
|
+
}), ml = [], Kt = [];
|
|
12395
12391
|
}, h6 = (e) => {
|
|
12396
12392
|
const t = document.getElementById(e.id);
|
|
12397
12393
|
if (t) {
|
|
12398
|
-
const r =
|
|
12394
|
+
const r = ml.find((n) => n.id === e.id);
|
|
12399
12395
|
return r ? e = {
|
|
12400
12396
|
...Mr,
|
|
12401
12397
|
...r,
|
|
@@ -12403,9 +12399,9 @@ var Jr = /* @__PURE__ */ pt(u6, [["render", d6]]), Mr = {
|
|
|
12403
12399
|
} : e = {
|
|
12404
12400
|
...Mr,
|
|
12405
12401
|
...e
|
|
12406
|
-
},
|
|
12402
|
+
}, Gt(ye(Jr, e), t), lr;
|
|
12407
12403
|
}
|
|
12408
|
-
},
|
|
12404
|
+
}, ul = (e) => {
|
|
12409
12405
|
e.unmount = wi;
|
|
12410
12406
|
let t;
|
|
12411
12407
|
if (e.id) {
|
|
@@ -12414,24 +12410,24 @@ var Jr = /* @__PURE__ */ pt(u6, [["render", d6]]), Mr = {
|
|
|
12414
12410
|
e = {
|
|
12415
12411
|
...Mr,
|
|
12416
12412
|
...e
|
|
12417
|
-
}, e.id = t, Kt.push(e.id),
|
|
12413
|
+
}, e.id = t, Kt.push(e.id), ml.push(e);
|
|
12418
12414
|
const r = document.createElement("div");
|
|
12419
|
-
return r.id = e.id,
|
|
12420
|
-
},
|
|
12415
|
+
return r.id = e.id, Gt(ye(Jr, e), r), document.body.appendChild(r), lr;
|
|
12416
|
+
}, $l = (e) => {
|
|
12421
12417
|
if (!e) {
|
|
12422
12418
|
console.warn("[FoxUI Toast]: msg不能为空");
|
|
12423
12419
|
return;
|
|
12424
12420
|
}
|
|
12425
12421
|
}, lr = {
|
|
12426
12422
|
text(e, t = {}) {
|
|
12427
|
-
return
|
|
12423
|
+
return $l(e), ul({
|
|
12428
12424
|
...t,
|
|
12429
12425
|
type: "text",
|
|
12430
12426
|
msg: e
|
|
12431
12427
|
});
|
|
12432
12428
|
},
|
|
12433
12429
|
success(e, t = {}) {
|
|
12434
|
-
return
|
|
12430
|
+
return $l(e), ul({
|
|
12435
12431
|
icon: $0,
|
|
12436
12432
|
...t,
|
|
12437
12433
|
msg: e,
|
|
@@ -12439,7 +12435,7 @@ var Jr = /* @__PURE__ */ pt(u6, [["render", d6]]), Mr = {
|
|
|
12439
12435
|
});
|
|
12440
12436
|
},
|
|
12441
12437
|
fail(e, t = {}) {
|
|
12442
|
-
return
|
|
12438
|
+
return $l(e), ul({
|
|
12443
12439
|
icon: q0,
|
|
12444
12440
|
...t,
|
|
12445
12441
|
msg: e,
|
|
@@ -12447,7 +12443,7 @@ var Jr = /* @__PURE__ */ pt(u6, [["render", d6]]), Mr = {
|
|
|
12447
12443
|
});
|
|
12448
12444
|
},
|
|
12449
12445
|
warn(e, t = {}) {
|
|
12450
|
-
return
|
|
12446
|
+
return $l(e), ul({
|
|
12451
12447
|
icon: z0,
|
|
12452
12448
|
...t,
|
|
12453
12449
|
msg: e,
|
|
@@ -12455,7 +12451,7 @@ var Jr = /* @__PURE__ */ pt(u6, [["render", d6]]), Mr = {
|
|
|
12455
12451
|
});
|
|
12456
12452
|
},
|
|
12457
12453
|
loading(e, t = {}) {
|
|
12458
|
-
return
|
|
12454
|
+
return ul({
|
|
12459
12455
|
icon: Ql,
|
|
12460
12456
|
...t,
|
|
12461
12457
|
msg: e,
|
|
@@ -13102,7 +13098,7 @@ var l8 = /\B([A-Z])/g, i7 = Ci((e) => e.replace(l8, "-$1").toLowerCase()), r8 =
|
|
|
13102
13098
|
}, i8 = {
|
|
13103
13099
|
cancelable: !0,
|
|
13104
13100
|
bubbles: !1
|
|
13105
|
-
}, Vn = "foxFocusAfterTrapped", In = "foxFocusAfterReleased", s8 = Symbol("foxFocusTrap"), Qr = R(), rr = R(0), en = R(0),
|
|
13101
|
+
}, Vn = "foxFocusAfterTrapped", In = "foxFocusAfterReleased", s8 = Symbol("foxFocusTrap"), Qr = R(), rr = R(0), en = R(0), Tl = 0, zi = (e) => {
|
|
13106
13102
|
const t = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (n) => {
|
|
13107
13103
|
const l = n.tagName === "INPUT" && n.type === "hidden";
|
|
13108
13104
|
return n.disabled || n.hidden || l ? NodeFilter.FILTER_SKIP : n.tabIndex >= 0 || n === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -13147,19 +13143,19 @@ var f8 = () => {
|
|
|
13147
13143
|
const r = document.activeElement;
|
|
13148
13144
|
for (const n of e)
|
|
13149
13145
|
if (Mt(n, t), document.activeElement !== r) return;
|
|
13150
|
-
}, On = f8(), h8 = () => rr.value > en.value,
|
|
13146
|
+
}, On = f8(), h8 = () => rr.value > en.value, Ml = () => {
|
|
13151
13147
|
Qr.value = "pointer", rr.value = window.performance.now();
|
|
13152
13148
|
}, En = () => {
|
|
13153
13149
|
Qr.value = "keyboard", rr.value = window.performance.now();
|
|
13154
13150
|
}, g8 = () => (Te(() => {
|
|
13155
|
-
|
|
13151
|
+
Tl === 0 && (document.addEventListener("mousedown", Ml), document.addEventListener("touchstart", Ml), document.addEventListener("keydown", En)), Tl++;
|
|
13156
13152
|
}), ft(() => {
|
|
13157
|
-
|
|
13153
|
+
Tl--, Tl <= 0 && (document.removeEventListener("mousedown", Ml), document.removeEventListener("touchstart", Ml), document.removeEventListener("keydown", En));
|
|
13158
13154
|
}), {
|
|
13159
13155
|
focusReason: Qr,
|
|
13160
13156
|
lastUserFocusTimestamp: rr,
|
|
13161
13157
|
lastAutomatedFocusTimestamp: en
|
|
13162
|
-
}),
|
|
13158
|
+
}), Ll = (e) => new CustomEvent(a8, {
|
|
13163
13159
|
...i8,
|
|
13164
13160
|
detail: e
|
|
13165
13161
|
}), { componentName: o7, create: m8, scope: u7 } = fe("focus-trap"), p8 = {
|
|
@@ -13211,14 +13207,14 @@ var f8 = () => {
|
|
|
13211
13207
|
const _ = I, [U, m] = u8(_);
|
|
13212
13208
|
if (U && m) {
|
|
13213
13209
|
if (!A && O === m) {
|
|
13214
|
-
const P =
|
|
13210
|
+
const P = Ll({ focusReason: o.value });
|
|
13215
13211
|
r("focusout-prevented", P), P.defaultPrevented || (c.preventDefault(), E && Mt(U, !0));
|
|
13216
13212
|
} else if (A && [U, _].includes(O)) {
|
|
13217
|
-
const P =
|
|
13213
|
+
const P = Ll({ focusReason: o.value });
|
|
13218
13214
|
r("focusout-prevented", P), P.defaultPrevented || (c.preventDefault(), E && Mt(m, !0));
|
|
13219
13215
|
}
|
|
13220
13216
|
} else if (O === _) {
|
|
13221
|
-
const P =
|
|
13217
|
+
const P = Ll({ focusReason: o.value });
|
|
13222
13218
|
r("focusout-prevented", P), P.defaultPrevented || c.preventDefault();
|
|
13223
13219
|
}
|
|
13224
13220
|
}
|
|
@@ -13245,7 +13241,7 @@ var f8 = () => {
|
|
|
13245
13241
|
const $ = c.relatedTarget;
|
|
13246
13242
|
!lt($) && !g.contains($) && setTimeout(() => {
|
|
13247
13243
|
if (!s.paused && pe(e.trapped)) {
|
|
13248
|
-
const b =
|
|
13244
|
+
const b = Ll({ focusReason: o.value });
|
|
13249
13245
|
r("focusout-prevented", b), b.defaultPrevented || Mt(a, !0);
|
|
13250
13246
|
}
|
|
13251
13247
|
}, 0);
|
|
@@ -13402,7 +13398,7 @@ var f8 = () => {
|
|
|
13402
13398
|
}, C8 = w8({
|
|
13403
13399
|
inheritAttrs: !1,
|
|
13404
13400
|
components: {
|
|
13405
|
-
FoxIcon:
|
|
13401
|
+
FoxIcon: tl,
|
|
13406
13402
|
FocusTrap: y8
|
|
13407
13403
|
},
|
|
13408
13404
|
props: { ...N8 },
|
|
@@ -13458,7 +13454,7 @@ var f8 = () => {
|
|
|
13458
13454
|
get: () => n.value === !1 ? !1 : D.value
|
|
13459
13455
|
});
|
|
13460
13456
|
let X = null;
|
|
13461
|
-
const
|
|
13457
|
+
const W = () => {
|
|
13462
13458
|
typeof X == "function" && (X(), X = null);
|
|
13463
13459
|
}, F = () => {
|
|
13464
13460
|
S.value && S.value.classList.add("slide-in"), L.value = !0, X = () => {
|
|
@@ -13527,7 +13523,7 @@ var f8 = () => {
|
|
|
13527
13523
|
fixedNavRef: S,
|
|
13528
13524
|
fixedNavClasses: z,
|
|
13529
13525
|
fixedNavStyles: j,
|
|
13530
|
-
onAnimationEnd:
|
|
13526
|
+
onAnimationEnd: W,
|
|
13531
13527
|
teleportDisabled: l,
|
|
13532
13528
|
fixedNavTeleportDisabled: M
|
|
13533
13529
|
};
|
|
@@ -13538,10 +13534,10 @@ var f8 = () => {
|
|
|
13538
13534
|
}, k8 = { class: "fox-floating-window__title" }, _8 = { class: "fox-floating-window__tools" }, $8 = { class: "fox-floating-window__body" }, T8 = { class: "fox-floating-window__fixednav__text" };
|
|
13539
13535
|
function M8(e, t, r, n, l, a) {
|
|
13540
13536
|
const o = Me("FoxIcon"), s = Me("FocusTrap");
|
|
13541
|
-
return se(), me(Vt, null, [(se(), Pe(
|
|
13537
|
+
return se(), me(Vt, null, [(se(), Pe(Vl, {
|
|
13542
13538
|
to: e.teleport,
|
|
13543
13539
|
disabled: e.teleportDisabled
|
|
13544
|
-
}, [ye(
|
|
13540
|
+
}, [ye(Bl, { name: "fox-floating-window-fade" }, {
|
|
13545
13541
|
default: be(() => [Bt(de("div", {
|
|
13546
13542
|
ref: "dialogRef",
|
|
13547
13543
|
class: Ce(e.classes),
|
|
@@ -13559,20 +13555,20 @@ function M8(e, t, r, n, l, a) {
|
|
|
13559
13555
|
class: "fox-floating-window__collapse",
|
|
13560
13556
|
onClick: t[0] || (t[0] = (...i) => e.onClickToggle && e.onClickToggle(...i))
|
|
13561
13557
|
}, [de("span", { class: Ce(e.collapseTextClasses) }, Le(e.collapseText), 3), ye(o, { class: Ce(e.collapseIconClasses) }, {
|
|
13562
|
-
default: be(() => [(se(), Pe(
|
|
13558
|
+
default: be(() => [(se(), Pe(Al(e.collapseIcon)))]),
|
|
13563
13559
|
_: 1
|
|
13564
13560
|
}, 8, ["class"])])) : ze("", !0), e.showClose ? (se(), Pe(o, {
|
|
13565
13561
|
key: 1,
|
|
13566
13562
|
class: "fox-floating-window__close",
|
|
13567
13563
|
onClick: e.onClose
|
|
13568
13564
|
}, {
|
|
13569
|
-
default: be(() => [(se(), Pe(
|
|
13565
|
+
default: be(() => [(se(), Pe(Al(e.closeIcon)))]),
|
|
13570
13566
|
_: 1
|
|
13571
13567
|
}, 8, ["onClick"])) : ze("", !0)])])], 512), de("div", $8, [wt(e.$slots, "default")])]),
|
|
13572
13568
|
_: 3
|
|
13573
13569
|
}, 8, ["trapped", "focus-trap-el"])], 6), [[Rt, e.isShow]])]),
|
|
13574
13570
|
_: 3
|
|
13575
|
-
})], 8, ["to", "disabled"])), (se(), Pe(
|
|
13571
|
+
})], 8, ["to", "disabled"])), (se(), Pe(Vl, {
|
|
13576
13572
|
to: e.fixedNavTeleport,
|
|
13577
13573
|
disabled: e.fixedNavTeleportDisabled
|
|
13578
13574
|
}, [Bt(de("div", {
|
|
@@ -13584,7 +13580,7 @@ function M8(e, t, r, n, l, a) {
|
|
|
13584
13580
|
class: "fox-floating-window__fixednav__inner",
|
|
13585
13581
|
onClick: t[1] || (t[1] = (...i) => e.onClickToggle && e.onClickToggle(...i))
|
|
13586
13582
|
}, [ye(o, { class: "fox-floating-window__fixednav__icon" }, {
|
|
13587
|
-
default: be(() => [(se(), Pe(
|
|
13583
|
+
default: be(() => [(se(), Pe(Al(e.expandIcon)))]),
|
|
13588
13584
|
_: 1
|
|
13589
13585
|
}), de("div", T8, Le(e.expandText), 1)])], 38), [[Rt, e.isShowFixedNav]])], 8, ["to", "disabled"]))], 64);
|
|
13590
13586
|
}
|
|
@@ -13818,7 +13814,7 @@ function Z8(e, t, r, n, l, a) {
|
|
|
13818
13814
|
return se(), me("div", { class: Ce(e.classes) }, [Bt(de("div", {
|
|
13819
13815
|
class: "fox-tour__masked",
|
|
13820
13816
|
onClick: t[0] || (t[0] = (...f) => e.handleClickMask && e.handleClickMask(...f))
|
|
13821
|
-
}, null, 512), [[Rt, e.showTour]]), (se(!0), me(Vt, null,
|
|
13817
|
+
}, null, 512), [[Rt, e.showTour]]), (se(!0), me(Vt, null, fl(e.steps, (f, d) => (se(), me("div", {
|
|
13822
13818
|
key: d,
|
|
13823
13819
|
style: { height: "0" }
|
|
13824
13820
|
}, [d == e.active ? (se(), Pe(i, {
|
|
@@ -14064,10 +14060,10 @@ var { componentName: of, create: uf, scope: cf } = fe("rolling-provider"), ff =
|
|
|
14064
14060
|
e8,
|
|
14065
14061
|
L8,
|
|
14066
14062
|
Ra,
|
|
14067
|
-
|
|
14063
|
+
Rl,
|
|
14068
14064
|
Pa,
|
|
14069
14065
|
O8,
|
|
14070
|
-
|
|
14066
|
+
Dl,
|
|
14071
14067
|
J8,
|
|
14072
14068
|
nf,
|
|
14073
14069
|
df
|
|
@@ -14081,7 +14077,7 @@ export {
|
|
|
14081
14077
|
R3 as CascaderItem,
|
|
14082
14078
|
yc as CheckboxItem,
|
|
14083
14079
|
H1 as Content,
|
|
14084
|
-
|
|
14080
|
+
il as DataItemsKey,
|
|
14085
14081
|
e3 as DateItem,
|
|
14086
14082
|
st as DateUtils,
|
|
14087
14083
|
U5 as DialogItem,
|
|
@@ -14115,7 +14111,7 @@ export {
|
|
|
14115
14111
|
R3 as FoxCascaderItem,
|
|
14116
14112
|
ts as FoxCascaderPanel,
|
|
14117
14113
|
ls as FoxCheckTag,
|
|
14118
|
-
|
|
14114
|
+
Xt as FoxCheckbox,
|
|
14119
14115
|
qn as FoxCheckboxButton,
|
|
14120
14116
|
ql as FoxCheckboxGroup,
|
|
14121
14117
|
yc as FoxCheckboxItem,
|
|
@@ -14152,7 +14148,7 @@ export {
|
|
|
14152
14148
|
xs as FoxHeader,
|
|
14153
14149
|
L1 as FoxHeaderBar,
|
|
14154
14150
|
Xe as FoxHintText,
|
|
14155
|
-
|
|
14151
|
+
tl as FoxIcon,
|
|
14156
14152
|
Ns as FoxImage,
|
|
14157
14153
|
Cs as FoxImageViewer,
|
|
14158
14154
|
O8 as FoxIndicator,
|
|
@@ -14166,7 +14162,7 @@ export {
|
|
|
14166
14162
|
ks as FoxLink,
|
|
14167
14163
|
b0 as FoxLinkItem,
|
|
14168
14164
|
$s as FoxMain,
|
|
14169
|
-
|
|
14165
|
+
Rl as FoxMapping,
|
|
14170
14166
|
wf as FoxMention,
|
|
14171
14167
|
Ts as FoxMenu,
|
|
14172
14168
|
Ms as FoxMenuItem,
|
|
@@ -14176,7 +14172,7 @@ export {
|
|
|
14176
14172
|
x3 as FoxMoneyItem,
|
|
14177
14173
|
j6 as FoxMoreButton,
|
|
14178
14174
|
Ps as FoxNotification,
|
|
14179
|
-
|
|
14175
|
+
cl as FoxOption,
|
|
14180
14176
|
Wn as FoxOptionGroup,
|
|
14181
14177
|
yi as FoxOverLay,
|
|
14182
14178
|
C1 as FoxPage,
|
|
@@ -14232,7 +14228,7 @@ export {
|
|
|
14232
14228
|
M5 as FoxTabsFrame,
|
|
14233
14229
|
N5 as FoxTabsPane,
|
|
14234
14230
|
io as FoxTag,
|
|
14235
|
-
|
|
14231
|
+
Dl as FoxText,
|
|
14236
14232
|
s3 as FoxTimeItem,
|
|
14237
14233
|
ea as FoxTimePicker,
|
|
14238
14234
|
ta as FoxTimeSelect,
|
|
@@ -14261,7 +14257,7 @@ export {
|
|
|
14261
14257
|
T3 as InputNumberItem,
|
|
14262
14258
|
Ur as Item,
|
|
14263
14259
|
b0 as LinkItem,
|
|
14264
|
-
|
|
14260
|
+
Rl as Mapping,
|
|
14265
14261
|
x3 as MoneyItem,
|
|
14266
14262
|
j6 as MoreButton,
|
|
14267
14263
|
yi as OverLay,
|
|
@@ -14288,7 +14284,7 @@ export {
|
|
|
14288
14284
|
vi as TabsContainer,
|
|
14289
14285
|
M5 as TabsFrame,
|
|
14290
14286
|
N5 as TabsPane,
|
|
14291
|
-
|
|
14287
|
+
Dl as Text,
|
|
14292
14288
|
s3 as TimeItem,
|
|
14293
14289
|
g3 as TimeSelectItem,
|
|
14294
14290
|
lr as Toast,
|
|
@@ -14321,7 +14317,7 @@ export {
|
|
|
14321
14317
|
a1 as disabledProperty,
|
|
14322
14318
|
da as divide,
|
|
14323
14319
|
rt as excludeProps,
|
|
14324
|
-
|
|
14320
|
+
yl as extend,
|
|
14325
14321
|
Of as floatData,
|
|
14326
14322
|
z1 as getGlobalIcons,
|
|
14327
14323
|
Ko as getGlobalValidateCheckEvents,
|
|
@@ -14330,9 +14326,9 @@ export {
|
|
|
14330
14326
|
Nr as getPageContentAreaWidth,
|
|
14331
14327
|
Kr as getPageFooterAreaHeight,
|
|
14332
14328
|
jr as getPageHeaderAreaHeight,
|
|
14333
|
-
|
|
14329
|
+
hl as getRootDomain,
|
|
14334
14330
|
Io as hasSymbol,
|
|
14335
|
-
|
|
14331
|
+
Zt as includeProps,
|
|
14336
14332
|
Ff as indexOf,
|
|
14337
14333
|
Wl as injectAbstractPageScope,
|
|
14338
14334
|
r1 as injectAbstractPageScopeForContent,
|
|
@@ -14363,7 +14359,7 @@ export {
|
|
|
14363
14359
|
Tf as isSymbol,
|
|
14364
14360
|
er as isTouch,
|
|
14365
14361
|
Eo as isWindow,
|
|
14366
|
-
|
|
14362
|
+
Fl as kebabToPascal,
|
|
14367
14363
|
Pf as lastIndexOf,
|
|
14368
14364
|
Vf as makeArray,
|
|
14369
14365
|
Ro as merge,
|
|
@@ -14401,7 +14397,7 @@ export {
|
|
|
14401
14397
|
Sr as typeOf,
|
|
14402
14398
|
Mo as unNumberFormat,
|
|
14403
14399
|
cn as updatePageState,
|
|
14404
|
-
|
|
14400
|
+
zl as useBroadcast,
|
|
14405
14401
|
Ht as useDomain,
|
|
14406
14402
|
qe as useExpose,
|
|
14407
14403
|
Wr as useInnerSize,
|