@fox-js/foxui-pad 4.1.1-42 → 4.1.1-43
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 +811 -790
- 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 Do, Fragment as Je, Teleport as zl, Text as Mo, Transition as ia, computed as x, createBlock as Le, createCommentVNode as Se, createElementBlock as ue, createElementVNode as se, createSlots as $n, createTextVNode as xt, createVNode as xe, customRef as Ao, defineComponent as ot, effectScope as Io, getCurrentScope as Vo, h as E, hasInjectionContext as Cr, inject as ct, isReactive as
|
|
1
|
+
import { Comment as Do, Fragment as Je, Teleport as zl, Text as Mo, Transition as ia, computed as x, createBlock as Le, createCommentVNode as Se, createElementBlock as ue, createElementVNode as se, createSlots as $n, createTextVNode as xt, createVNode as xe, customRef as Ao, defineComponent as ot, effectScope as Io, getCurrentScope as Vo, h as E, hasInjectionContext as Cr, inject as ct, isReactive as pt, markRaw as Po, mergeProps as oa, nextTick as $t, normalizeClass as Ne, normalizeStyle as De, onActivated as Lo, onBeforeUnmount as gt, onDeactivated as Eo, onMounted as Re, onScopeDispose as Pl, onUnmounted as Jt, openBlock as ne, provide as at, reactive as mt, ref as B, render as zt, renderList as dt, renderSlot as Oe, resolveComponent as $e, resolveDynamicComponent as Xl, shallowReactive as Fo, shallowRef as Gt, toDisplayString as we, toRaw as Ae, toRef as Dl, toRefs as fl, triggerRef as ut, unref as Ft, useAttrs as I9, useSlots as V9, vShow as Ot, watch as fe, watchEffect as Ro, withCtx as be, withDirectives as Bt, withModifiers as Oo } from "vue";
|
|
2
2
|
import { Schema as Wt } from "@fox-js/validator";
|
|
3
|
-
import { ElAffix as Bo, ElAlert as qo, ElAnchor as Ho, ElAnchorLink as jo, ElAside as Ko, ElAutoResizer as Wo, ElAutocomplete as kr, ElAvatar as Yo, ElBacktop as Uo, ElBadge as Go, ElBreadcrumb as Xo, ElBreadcrumbItem as Qo, ElButton as Ll, ElButtonGroup as Zo, ElCalendar as Jo, ElCard as es, ElCarousel as ts, ElCarouselItem as ls, ElCascader as Tr, ElCascaderPanel as as, ElCheckTag as ns, ElCheckbox as dl, ElCheckboxButton as _r, ElCheckboxGroup as sa, ElCol as rs, ElCollapse as is, ElCollapseItem as os, ElCollapseTransition as ss, ElColorPicker as us, ElConfigProvider as cs, ElContainer as fs, ElCountdown as ds, ElDatePicker as $r, ElDescriptions as hs, ElDescriptionsItem as
|
|
3
|
+
import { ElAffix as Bo, ElAlert as qo, ElAnchor as Ho, ElAnchorLink as jo, ElAside as Ko, ElAutoResizer as Wo, ElAutocomplete as kr, ElAvatar as Yo, ElBacktop as Uo, ElBadge as Go, ElBreadcrumb as Xo, ElBreadcrumbItem as Qo, ElButton as Ll, ElButtonGroup as Zo, ElCalendar as Jo, ElCard as es, ElCarousel as ts, ElCarouselItem as ls, ElCascader as Tr, ElCascaderPanel as as, ElCheckTag as ns, ElCheckbox as dl, ElCheckboxButton as _r, ElCheckboxGroup as sa, ElCol as rs, ElCollapse as is, ElCollapseItem as os, ElCollapseTransition as ss, ElColorPicker as us, ElConfigProvider as cs, ElContainer as fs, ElCountdown as ds, ElDatePicker as $r, ElDescriptions as hs, ElDescriptionsItem as ps, ElDialog as zr, ElDivider as gs, ElDrawer as ms, ElDropdown as vs, ElDropdownItem as ys, ElDropdownMenu as bs, ElEmpty as ws, ElFooter as Ss, ElForm as xs, ElFormItem as Ns, ElHeader as Cs, ElIcon as Vt, ElImage as ks, ElImageViewer as Ts, ElInfiniteScroll as _s, ElInput as ml, ElInputNumber as Dr, ElInputTag as E9, ElLink as $s, ElLoading as zs, ElMain as Ds, ElMention as F9, ElMenu as Ms, ElMenuItem as As, ElMenuItemGroup as Is, ElMessage as Vs, ElMessage as Ps, ElMessageBox as Ls, ElMessageBox as Es, ElNotification as Fs, ElNotification as Rs, ElOption as Nl, ElOptionGroup as Mr, ElPageHeader as Os, ElPagination as Ar, ElPopconfirm as Bs, ElPopover as ua, ElPopoverDirective as qs, ElPopper as Hs, ElProgress as js, ElRadio as Fa, ElRadioButton as Ir, ElRadioGroup as Vr, ElRate as Pr, ElResult as Ks, ElRow as Ws, ElScrollbar as Ys, ElSegmented as Us, ElSelect as Lr, ElSelectV2 as Gs, ElSkeleton as Xs, ElSkeletonItem as Qs, ElSlider as Zs, ElSpace as Js, ElSplitter as eu, ElStatistic as tu, ElStep as lu, ElSteps as au, ElSubMenu as nu, ElSwitch as Er, ElTabPane as ru, ElTable as Fr, ElTableColumn as Ja, ElTableV2 as iu, ElTabs as ou, ElTag as su, ElTimePicker as Rr, ElTimeSelect as Or, ElTimeline as uu, ElTimelineItem as cu, ElTooltip as fu, ElTransfer as du, ElTree as Br, ElTreeSelect as qr, ElTreeV2 as hu, ElUpload as pu, ElWatermark as gu } from "element-plus";
|
|
4
4
|
import { ArrowDown as en, ArrowLeft as Hr, ArrowRight as jr, ArrowUp as tn, Calendar as mu, CircleClose as vu, Close as Kr, Download as Wr, Loading as yu, RefreshLeft as Yr, Setting as bu } from "@element-plus/icons-vue";
|
|
5
5
|
import { useFoxI18n as Fe } from "@fox-js/i18n";
|
|
6
6
|
var wu = Object.create, Ur = Object.defineProperty, Su = Object.getOwnPropertyDescriptor, xu = Object.getOwnPropertyNames, Nu = Object.getPrototypeOf, Cu = Object.prototype.hasOwnProperty, Pt = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ku = (e, t, a, n) => {
|
|
@@ -1064,7 +1064,7 @@ function ni(e, t, a) {
|
|
|
1064
1064
|
const b = {};
|
|
1065
1065
|
Al(!0, b, Ae(m)), s.setData(za, b);
|
|
1066
1066
|
}, d = e.props, D = e.ignorePropKeys;
|
|
1067
|
-
|
|
1067
|
+
pt(d) || typeof d == "function" ? fe(d, (m) => {
|
|
1068
1068
|
s?.merge(m, D), m.modelValue && u(m.modelValue);
|
|
1069
1069
|
}, { immediate: !0 }) : (s.merge(d, D), d.modelValue && u(d.modelValue));
|
|
1070
1070
|
const C = (m, b) => {
|
|
@@ -1207,11 +1207,11 @@ function ni(e, t, a) {
|
|
|
1207
1207
|
Pl(function() {
|
|
1208
1208
|
s?.validateSchema && s.validateSchema.destroy(), s?.broadcast && s?.broadcast?.destroy(), s.componentPublicExposed[jl] && s.componentPublicExposed[jl].clear(), s?.destroy(), s = null;
|
|
1209
1209
|
});
|
|
1210
|
-
const
|
|
1210
|
+
const p = e.context?.expose;
|
|
1211
1211
|
return {
|
|
1212
1212
|
domain: s,
|
|
1213
1213
|
exposeApi: (m = {}) => {
|
|
1214
|
-
Object.assign(s.componentPublicExposed, m),
|
|
1214
|
+
Object.assign(s.componentPublicExposed, m), p?.(s.componentPublicExposed);
|
|
1215
1215
|
}
|
|
1216
1216
|
};
|
|
1217
1217
|
}
|
|
@@ -1221,7 +1221,7 @@ function Xu(e, t) {
|
|
|
1221
1221
|
let n = new un(t);
|
|
1222
1222
|
n.parent = a;
|
|
1223
1223
|
const l = e.props, r = e.ignorePropKeys;
|
|
1224
|
-
|
|
1224
|
+
pt(l) || typeof l == "function" ? fe(l, (s) => {
|
|
1225
1225
|
n?.merge(s, r);
|
|
1226
1226
|
}, { immediate: !0 }) : n.merge(l, r), n.componentPublicExposed[Xt] = n, at(Xt, n), Pl(() => {
|
|
1227
1227
|
n?.destroy(), n = null;
|
|
@@ -1250,17 +1250,17 @@ function Ke(e, t, a) {
|
|
|
1250
1250
|
const d = [];
|
|
1251
1251
|
let D = null;
|
|
1252
1252
|
const C = {};
|
|
1253
|
-
let y = !1,
|
|
1253
|
+
let y = !1, p = !1;
|
|
1254
1254
|
if (u === !0)
|
|
1255
|
-
D = { name: "*" },
|
|
1255
|
+
D = { name: "*" }, p = !0, y = !0;
|
|
1256
1256
|
else if (Array.isArray(u) && u.indexOf(l) !== -1) {
|
|
1257
1257
|
const m = u;
|
|
1258
|
-
D = { name: (b) => b ? m.indexOf(b) !== -1 : !1 },
|
|
1258
|
+
D = { name: (b) => b ? m.indexOf(b) !== -1 : !1 }, p = !0, y = !0;
|
|
1259
1259
|
} else if (u && typeof u == "object") {
|
|
1260
1260
|
const m = u, b = m.ignoreDisabled ?? !0, S = m.ignoreReadonly ?? !0, c = m.ignoreHidden ?? !0;
|
|
1261
|
-
b === !0 && e.disabled === !0 || S === !0 && e.readonly === !0 || c === !0 && Pn(e.templateRefProxy?.$el ?? e.templateRefProxy) ?
|
|
1261
|
+
b === !0 && e.disabled === !0 || S === !0 && e.readonly === !0 || c === !0 && Pn(e.templateRefProxy?.$el ?? e.templateRefProxy) ? p = !1 : (Array.isArray(m.include) && m.include.indexOf(l) !== -1 || Array.isArray(m.exclude) && m.exclude.indexOf(l), p = !0), Object.assign(C, m), y = m.deep ?? !1;
|
|
1262
1262
|
}
|
|
1263
|
-
if (
|
|
1263
|
+
if (p) {
|
|
1264
1264
|
const m = s?.validate();
|
|
1265
1265
|
d.push(m);
|
|
1266
1266
|
}
|
|
@@ -1289,11 +1289,11 @@ function Ke(e, t, a) {
|
|
|
1289
1289
|
if (u === !0)
|
|
1290
1290
|
d = { name: "*" }, y = !0, C = !0;
|
|
1291
1291
|
else if (Array.isArray(u) && u.indexOf(l) !== -1) {
|
|
1292
|
-
const
|
|
1293
|
-
d = { name: (m) => m ?
|
|
1292
|
+
const p = u;
|
|
1293
|
+
d = { name: (m) => m ? p.indexOf(m) !== -1 : !1 }, y = !0, C = !0;
|
|
1294
1294
|
} else if (u && typeof u == "object") {
|
|
1295
|
-
const
|
|
1296
|
-
(
|
|
1295
|
+
const p = u;
|
|
1296
|
+
(p.ignoreHidden ?? !0) === !0 && Pn(e.templateRefProxy?.$el ?? e.templateRefProxy) ? y = !1 : (Array.isArray(p.include) && p.include.indexOf(l) !== -1 || Array.isArray(p.exclude) && p.exclude.indexOf(l), y = !0), Object.assign(D, p), C = p.deep ?? !1;
|
|
1297
1297
|
}
|
|
1298
1298
|
y && s?.clear(), C && d && (D.deep = !1, r?.emitToChildren(d, "clearValidate", D));
|
|
1299
1299
|
};
|
|
@@ -1369,14 +1369,14 @@ function Qu(e, t, a, n, l) {
|
|
|
1369
1369
|
}
|
|
1370
1370
|
if (D) {
|
|
1371
1371
|
let y = null;
|
|
1372
|
-
const
|
|
1372
|
+
const p = {};
|
|
1373
1373
|
if (u === !0) y = { name: "*" };
|
|
1374
1374
|
else if (Array.isArray(u) && u.length > 0) {
|
|
1375
1375
|
const m = u;
|
|
1376
1376
|
y = { name: (b) => b ? m.indexOf(b) !== -1 : !1 };
|
|
1377
1377
|
} else if (u != null && typeof u == "object") {
|
|
1378
1378
|
const m = u;
|
|
1379
|
-
if (Object.assign(
|
|
1379
|
+
if (Object.assign(p, m), Array.isArray(m.include) && m.include.length > 0) {
|
|
1380
1380
|
const b = m.include;
|
|
1381
1381
|
y = { name: (S) => S ? b.indexOf(S) !== -1 : !1 };
|
|
1382
1382
|
} else if (Array.isArray(m.exclude) && m.exclude.length > 0) {
|
|
@@ -1385,18 +1385,18 @@ function Qu(e, t, a, n, l) {
|
|
|
1385
1385
|
} else y = { name: "*" };
|
|
1386
1386
|
}
|
|
1387
1387
|
if (y && f) {
|
|
1388
|
-
|
|
1389
|
-
const m = f.emitToChildren(y, "validate",
|
|
1388
|
+
p.deep = !1;
|
|
1389
|
+
const m = f.emitToChildren(y, "validate", p);
|
|
1390
1390
|
Reflect.apply([].push, d, m);
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
1393
|
return d.length == 1 ? d[0] : d.length > 1 ? Promise.all(d).then((y) => {
|
|
1394
|
-
let
|
|
1394
|
+
let p = [];
|
|
1395
1395
|
return y.forEach((m) => {
|
|
1396
|
-
m.pass === !1 && Array.isArray(m.errors) && (
|
|
1397
|
-
}),
|
|
1396
|
+
m.pass === !1 && Array.isArray(m.errors) && (p = [...p, ...m.errors]);
|
|
1397
|
+
}), p.length > 0 ? {
|
|
1398
1398
|
pass: !1,
|
|
1399
|
-
errors:
|
|
1399
|
+
errors: p
|
|
1400
1400
|
} : { pass: !0 };
|
|
1401
1401
|
}) : Promise.resolve({ pass: !0 });
|
|
1402
1402
|
}, r.setValidateRule = (u) => i?.setRule(u), r.setNameValidateRules = (u) => {
|
|
@@ -1556,7 +1556,7 @@ function Wa(e, t) {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
return 0;
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1559
|
+
function ph(e) {
|
|
1560
1560
|
return !!e.getForParent(Ht);
|
|
1561
1561
|
}
|
|
1562
1562
|
var ri = Symbol.for("InnerPageScopeKey");
|
|
@@ -1779,7 +1779,7 @@ var h1 = class {
|
|
|
1779
1779
|
getRootDomain() {
|
|
1780
1780
|
return kl();
|
|
1781
1781
|
}
|
|
1782
|
-
},
|
|
1782
|
+
}, p1 = [
|
|
1783
1783
|
Bo,
|
|
1784
1784
|
qo,
|
|
1785
1785
|
kr,
|
|
@@ -1814,9 +1814,9 @@ var h1 = class {
|
|
|
1814
1814
|
Ds,
|
|
1815
1815
|
$r,
|
|
1816
1816
|
hs,
|
|
1817
|
-
gs,
|
|
1818
|
-
zr,
|
|
1819
1817
|
ps,
|
|
1818
|
+
zr,
|
|
1819
|
+
gs,
|
|
1820
1820
|
ms,
|
|
1821
1821
|
vs,
|
|
1822
1822
|
ys,
|
|
@@ -1873,18 +1873,18 @@ var h1 = class {
|
|
|
1873
1873
|
Br,
|
|
1874
1874
|
qr,
|
|
1875
1875
|
hu,
|
|
1876
|
-
|
|
1876
|
+
pu,
|
|
1877
1877
|
tu,
|
|
1878
1878
|
ds,
|
|
1879
1879
|
Us,
|
|
1880
1880
|
Ho,
|
|
1881
1881
|
jo,
|
|
1882
|
-
|
|
1882
|
+
gu,
|
|
1883
1883
|
Ls,
|
|
1884
1884
|
Vs,
|
|
1885
1885
|
Fs,
|
|
1886
1886
|
eu
|
|
1887
|
-
],
|
|
1887
|
+
], g1 = [
|
|
1888
1888
|
_s,
|
|
1889
1889
|
zs,
|
|
1890
1890
|
Ps,
|
|
@@ -1893,13 +1893,13 @@ var h1 = class {
|
|
|
1893
1893
|
qs
|
|
1894
1894
|
], m1 = (e, t = {}) => {
|
|
1895
1895
|
const a = t.componentPrefix ?? "fox";
|
|
1896
|
-
|
|
1896
|
+
p1.forEach((n) => {
|
|
1897
1897
|
if (typeof n.name == "string") {
|
|
1898
1898
|
let l = "";
|
|
1899
1899
|
const r = qu(n.name), o = r.indexOf("-");
|
|
1900
1900
|
o !== -1 ? l = `${a}${r.slice(o)}` : l = `${a}-${r}`, l = ea(l), e.component(l, n);
|
|
1901
1901
|
} else e.use(n);
|
|
1902
|
-
}),
|
|
1902
|
+
}), g1.forEach((n) => {
|
|
1903
1903
|
e.use(n);
|
|
1904
1904
|
});
|
|
1905
1905
|
};
|
|
@@ -2296,16 +2296,16 @@ var v1 = {
|
|
|
2296
2296
|
};
|
|
2297
2297
|
return fe([() => a.rules, () => a.pureDataRules], ([u, d], [D, C]) => {
|
|
2298
2298
|
if (u && D) {
|
|
2299
|
-
const y = Ae(D),
|
|
2299
|
+
const y = Ae(D), p = Ae(u), m = p ? Reflect.ownKeys(p) : [];
|
|
2300
2300
|
(y ? Reflect.ownKeys(y) : []).forEach((b) => {
|
|
2301
|
-
m.includes(b) || (
|
|
2302
|
-
}), h(
|
|
2301
|
+
m.includes(b) || (p[b] = []);
|
|
2302
|
+
}), h(p);
|
|
2303
2303
|
}
|
|
2304
2304
|
if (d && C) {
|
|
2305
|
-
const y = Ae(C),
|
|
2305
|
+
const y = Ae(C), p = Ae(d), m = p ? Reflect.ownKeys(p) : [];
|
|
2306
2306
|
(y ? Reflect.ownKeys(y) : []).forEach((b) => {
|
|
2307
|
-
m.includes(b) || (
|
|
2308
|
-
}), h(
|
|
2307
|
+
m.includes(b) || (p[b] = []);
|
|
2308
|
+
}), h(p, !0);
|
|
2309
2309
|
}
|
|
2310
2310
|
}, { deep: !0 }), Re(() => {
|
|
2311
2311
|
if (a.rules) {
|
|
@@ -2329,23 +2329,23 @@ function hi(e) {
|
|
|
2329
2329
|
height: t.offsetHeight
|
|
2330
2330
|
};
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2332
|
+
function pn(e) {
|
|
2333
2333
|
const t = Ft(e), a = window.getComputedStyle(t, null), n = parseFloat(a.getPropertyValue("padding-left")), l = parseFloat(a.getPropertyValue("padding-right")), r = parseFloat(a.getPropertyValue("padding-top")), o = parseFloat(a.getPropertyValue("padding-bottom"));
|
|
2334
2334
|
return {
|
|
2335
2335
|
width: t.clientWidth - n - l,
|
|
2336
2336
|
height: t.clientHeight - r - o
|
|
2337
2337
|
};
|
|
2338
2338
|
}
|
|
2339
|
-
var
|
|
2339
|
+
var pi = {
|
|
2340
2340
|
headerbar: {},
|
|
2341
2341
|
radio: {},
|
|
2342
2342
|
checkbox: {}
|
|
2343
2343
|
};
|
|
2344
|
-
function
|
|
2345
|
-
Object.assign(
|
|
2344
|
+
function gh(e) {
|
|
2345
|
+
Object.assign(pi, e);
|
|
2346
2346
|
}
|
|
2347
2347
|
function k1() {
|
|
2348
|
-
return
|
|
2348
|
+
return pi;
|
|
2349
2349
|
}
|
|
2350
2350
|
var T1 = (e, t, a, n = !1) => ({
|
|
2351
2351
|
props: {
|
|
@@ -2461,10 +2461,10 @@ var T1 = (e, t, a, n = !1) => ({
|
|
|
2461
2461
|
Object.assign(v, z);
|
|
2462
2462
|
}
|
|
2463
2463
|
return v;
|
|
2464
|
-
}),
|
|
2465
|
-
if (f &&
|
|
2464
|
+
}), p = B(null), m = () => {
|
|
2465
|
+
if (f && p.value && !Jr(p.value)) {
|
|
2466
2466
|
if (!n) {
|
|
2467
|
-
const v = hi(
|
|
2467
|
+
const v = hi(p.value);
|
|
2468
2468
|
f.headerAllHeight = v.height;
|
|
2469
2469
|
}
|
|
2470
2470
|
return f.headerMounted = !0, !0;
|
|
@@ -2473,7 +2473,7 @@ var T1 = (e, t, a, n = !1) => ({
|
|
|
2473
2473
|
}, b = yt(m, 120);
|
|
2474
2474
|
let S = null;
|
|
2475
2475
|
Re(() => {
|
|
2476
|
-
o || f && (sn(m, 50, 5, 50, !0), window.ResizeObserver &&
|
|
2476
|
+
o || f && (sn(m, 50, 5, 50, !0), window.ResizeObserver && p.value && (S = new window.ResizeObserver(b), S.observe(p.value)));
|
|
2477
2477
|
}), Jt(() => {
|
|
2478
2478
|
o || f && (f.headerMounted = !1, S && (S.disconnect(), S = null));
|
|
2479
2479
|
});
|
|
@@ -2598,7 +2598,7 @@ var T1 = (e, t, a, n = !1) => ({
|
|
|
2598
2598
|
return v.length === 0 ? null : E("view", {
|
|
2599
2599
|
class: d.value,
|
|
2600
2600
|
style: c.value,
|
|
2601
|
-
ref:
|
|
2601
|
+
ref: p
|
|
2602
2602
|
}, v);
|
|
2603
2603
|
};
|
|
2604
2604
|
}
|
|
@@ -2680,11 +2680,11 @@ function A1(e, t, a = !1) {
|
|
|
2680
2680
|
}
|
|
2681
2681
|
return !1;
|
|
2682
2682
|
}, y = yt(C, 120);
|
|
2683
|
-
let
|
|
2683
|
+
let p = null;
|
|
2684
2684
|
Re(() => {
|
|
2685
|
-
r || i && (sn(C, 50, 5, 50, !0), window.ResizeObserver && D.value && (
|
|
2685
|
+
r || i && (sn(C, 50, 5, 50, !0), window.ResizeObserver && D.value && (p = new window.ResizeObserver(y), p.observe(D.value)));
|
|
2686
2686
|
}), Jt(() => {
|
|
2687
|
-
r || i && (i.footerMounted = !1,
|
|
2687
|
+
r || i && (i.footerMounted = !1, p && (p.disconnect(), p = null));
|
|
2688
2688
|
});
|
|
2689
2689
|
const m = x(() => {
|
|
2690
2690
|
const b = {};
|
|
@@ -2725,11 +2725,11 @@ function F1(e, t) {
|
|
|
2725
2725
|
const M = It(a.padding);
|
|
2726
2726
|
Object.assign(f.contentPadding, M);
|
|
2727
2727
|
}
|
|
2728
|
-
const
|
|
2728
|
+
const p = fn(s, f), m = dn(s, f);
|
|
2729
2729
|
let b = "";
|
|
2730
2730
|
f.contentHeight ? b = `${f.contentHeight}` : b = `${f.height}px`, y.height = b;
|
|
2731
2731
|
let S = ke((f && f.contentPadding && f.contentPadding.top) ?? -1);
|
|
2732
|
-
(S >= 0 ||
|
|
2732
|
+
(S >= 0 || p > 0) && (S = S < 0 ? 0 : S, y.paddingTop = `${p + S}px`);
|
|
2733
2733
|
let c = ke((f && f.contentPadding && f.contentPadding.bottom) ?? -1);
|
|
2734
2734
|
(c >= 0 || m > 0) && (c = c < 0 ? 0 : c, y.paddingBottom = `${m + c}px`);
|
|
2735
2735
|
const _ = ke((f && f.contentPadding && f.contentPadding.left) ?? -1);
|
|
@@ -2738,13 +2738,13 @@ function F1(e, t) {
|
|
|
2738
2738
|
return T >= 0 && (y.paddingRight = `${T}px`), y;
|
|
2739
2739
|
}
|
|
2740
2740
|
if (a.padding) {
|
|
2741
|
-
const
|
|
2742
|
-
|
|
2741
|
+
const p = It(a.padding);
|
|
2742
|
+
p.left && (y.paddingLeft = `${p.left}px`), p.top && (y.paddingTop = `${p.top}px`), p.right && (y.paddingRight = `${p.right}px`), p.bottom && (y.paddingBottom = `${p.bottom}px`);
|
|
2743
2743
|
}
|
|
2744
2744
|
return y;
|
|
2745
2745
|
}), u = B(null), d = () => {
|
|
2746
2746
|
if (f && u.value) {
|
|
2747
|
-
const y =
|
|
2747
|
+
const y = pn(u.value);
|
|
2748
2748
|
f.contentInnerHeight = y.height, f.contentInnerWidth = y.width;
|
|
2749
2749
|
}
|
|
2750
2750
|
}, D = yt(d, 120);
|
|
@@ -2762,12 +2762,12 @@ function F1(e, t) {
|
|
|
2762
2762
|
}
|
|
2763
2763
|
};
|
|
2764
2764
|
}
|
|
2765
|
-
var { componentName: R1, create: O1, scope: B1 } = he("content"), q1 = O1(F1(R1, B1)), H1 = q1, hl = "GroupStateKey",
|
|
2765
|
+
var { componentName: R1, create: O1, scope: B1 } = he("content"), q1 = O1(F1(R1, B1)), H1 = q1, hl = "GroupStateKey", gi = Symbol.for("GroupScopeKey");
|
|
2766
2766
|
function ha() {
|
|
2767
|
-
return ct(
|
|
2767
|
+
return ct(gi, !1);
|
|
2768
2768
|
}
|
|
2769
|
-
function
|
|
2770
|
-
at(
|
|
2769
|
+
function pa(e = !0) {
|
|
2770
|
+
at(gi, e);
|
|
2771
2771
|
}
|
|
2772
2772
|
function j1(e, t = {}) {
|
|
2773
2773
|
Reflect.ownKeys(t).forEach((a) => {
|
|
@@ -2801,17 +2801,17 @@ function Da(e, t, a = -1, n = -1, l = !1, r, o, s) {
|
|
|
2801
2801
|
const d = () => {
|
|
2802
2802
|
const D = t === "" || t === -1, C = ke(t);
|
|
2803
2803
|
let y = Pe(a);
|
|
2804
|
-
const
|
|
2804
|
+
const p = ke(n);
|
|
2805
2805
|
if (!D) {
|
|
2806
|
-
let S = (C - (y - 1) *
|
|
2806
|
+
let S = (C - (y - 1) * p) / y;
|
|
2807
2807
|
for (; u !== -1 && S > u; )
|
|
2808
|
-
y++, S = (C - (y - 1) *
|
|
2808
|
+
y++, S = (C - (y - 1) * p) / y;
|
|
2809
2809
|
for (; h !== -1 && y > 1 && S < h; )
|
|
2810
|
-
y--, S = (C - (y - 1) *
|
|
2810
|
+
y--, S = (C - (y - 1) * p) / y;
|
|
2811
2811
|
}
|
|
2812
2812
|
let m = !1;
|
|
2813
2813
|
const b = i.layout;
|
|
2814
|
-
b.value.width = t, b.value.column !== y && (b.value.column = y, m = !0), b.value.gutter !==
|
|
2814
|
+
b.value.width = t, b.value.column !== y && (b.value.column = y, m = !0), b.value.gutter !== p && (b.value.gutter = p, m = !0), b.value.type !== s && (b.value.type = s, m = !0), m && ut(b);
|
|
2815
2815
|
};
|
|
2816
2816
|
if (l) d();
|
|
2817
2817
|
else {
|
|
@@ -2821,7 +2821,7 @@ function Da(e, t, a = -1, n = -1, l = !1, r, o, s) {
|
|
|
2821
2821
|
}, 50);
|
|
2822
2822
|
}
|
|
2823
2823
|
}
|
|
2824
|
-
function
|
|
2824
|
+
function ga(e, t = !1) {
|
|
2825
2825
|
let a;
|
|
2826
2826
|
return t ? a = e.getForParent(hl) : a = e.get(hl), a.layout;
|
|
2827
2827
|
}
|
|
@@ -2921,23 +2921,23 @@ function Z1(e, t, a) {
|
|
|
2921
2921
|
ignorePropKeys: di,
|
|
2922
2922
|
context: l
|
|
2923
2923
|
}, n.prop ?? n.name), s = K1(r, { type: n.type }), i = ha();
|
|
2924
|
-
|
|
2925
|
-
const f = n.rollingDisplay ? Y1() : null, h = B(null), u = x(() => n.rollingDisplay ? f && !f.disabled : !1), d = x(() => i && r ?
|
|
2924
|
+
pa(!0);
|
|
2925
|
+
const f = n.rollingDisplay ? Y1() : null, h = B(null), u = x(() => n.rollingDisplay ? f && !f.disabled : !1), d = x(() => i && r ? ga(r, !0).value : null), D = (k, G = !1) => {
|
|
2926
2926
|
const ae = r?.componentPublicExposed;
|
|
2927
2927
|
ae && typeof ae.setNameValidateRules == "function" && ae.setNameValidateRules(k, !0, G);
|
|
2928
2928
|
};
|
|
2929
2929
|
fe([() => n.rules, () => n.pureDataRules], ([k, G], [ae, H]) => {
|
|
2930
2930
|
if (k && ae) {
|
|
2931
|
-
const w = Ae(ae),
|
|
2931
|
+
const w = Ae(ae), g = Ae(k), O = g ? Reflect.ownKeys(g) : [];
|
|
2932
2932
|
(w ? Reflect.ownKeys(w) : []).forEach((te) => {
|
|
2933
|
-
O.includes(te) || (
|
|
2934
|
-
}), D(
|
|
2933
|
+
O.includes(te) || (g[te] = []);
|
|
2934
|
+
}), D(g);
|
|
2935
2935
|
}
|
|
2936
2936
|
if (G && H) {
|
|
2937
|
-
const w = Ae(H),
|
|
2937
|
+
const w = Ae(H), g = Ae(G), O = g ? Reflect.ownKeys(g) : [];
|
|
2938
2938
|
(w ? Reflect.ownKeys(w) : []).forEach((te) => {
|
|
2939
|
-
O.includes(te) || (
|
|
2940
|
-
}), D(
|
|
2939
|
+
O.includes(te) || (g[te] = []);
|
|
2940
|
+
}), D(g, !0);
|
|
2941
2941
|
}
|
|
2942
2942
|
}, { deep: !0 });
|
|
2943
2943
|
const C = e, y = x(() => {
|
|
@@ -2954,7 +2954,7 @@ function Z1(e, t, a) {
|
|
|
2954
2954
|
}
|
|
2955
2955
|
} else n.width && (k.width = Me(n.width));
|
|
2956
2956
|
return k;
|
|
2957
|
-
}),
|
|
2957
|
+
}), p = x(() => {
|
|
2958
2958
|
const k = s.layout.value.type;
|
|
2959
2959
|
return k === "grid" || k === "flow" ? {
|
|
2960
2960
|
[`${C}--${k}`]: !0,
|
|
@@ -2984,7 +2984,7 @@ function Z1(e, t, a) {
|
|
|
2984
2984
|
let k = _.length;
|
|
2985
2985
|
_.splice(0, k);
|
|
2986
2986
|
}, Y = B(-1), L = (k) => {
|
|
2987
|
-
const G =
|
|
2987
|
+
const G = pn(k).width;
|
|
2988
2988
|
G > 0 && G !== Y.value && (Y.value = G);
|
|
2989
2989
|
};
|
|
2990
2990
|
Da(r, Y.value, S.value, b.value, !0, n.minItemWidth, n.maxItemWidth, n.type), n.autoLayout && fe([
|
|
@@ -3095,10 +3095,10 @@ function Z1(e, t, a) {
|
|
|
3095
3095
|
onClick: W
|
|
3096
3096
|
}, G) : null;
|
|
3097
3097
|
}, U = (k, G, ae, H) => {
|
|
3098
|
-
const w = { ...
|
|
3098
|
+
const w = { ...p.value };
|
|
3099
3099
|
if (G === 0 && (w[`${C}__first`] = !0), ae >= H - 1 && (w[`${C}__last`] = !0), c.value === !1) {
|
|
3100
|
-
const
|
|
3101
|
-
|
|
3100
|
+
const g = l.attrs.class;
|
|
3101
|
+
g && (w[`${g}`] = !0);
|
|
3102
3102
|
}
|
|
3103
3103
|
return E("div", {
|
|
3104
3104
|
ref: T,
|
|
@@ -3171,11 +3171,11 @@ function Z1(e, t, a) {
|
|
|
3171
3171
|
}
|
|
3172
3172
|
}
|
|
3173
3173
|
M();
|
|
3174
|
-
const { getChildren: H } = ba(l.slots.default), w = H(),
|
|
3175
|
-
if (
|
|
3174
|
+
const { getChildren: H } = ba(l.slots.default), w = H(), g = s.layout.value.type;
|
|
3175
|
+
if (g === "grid") {
|
|
3176
3176
|
const O = U(w, ae++, 0, w.length);
|
|
3177
3177
|
G.push(O);
|
|
3178
|
-
} else if (
|
|
3178
|
+
} else if (g === "flow") {
|
|
3179
3179
|
const O = U(w, ae++, 0, w.length);
|
|
3180
3180
|
G.push(O);
|
|
3181
3181
|
} else for (let O = 0; O < w.length; O++) {
|
|
@@ -3329,7 +3329,7 @@ var ic = /matrix\((.+)\)/, yi = (e) => {
|
|
|
3329
3329
|
for (const [n, l] of t) a[n] = l;
|
|
3330
3330
|
return a;
|
|
3331
3331
|
}, dc = ["innerHTML"], hc = ["innerHTML"];
|
|
3332
|
-
function
|
|
3332
|
+
function pc(e, t, a, n, l, r) {
|
|
3333
3333
|
return ne(), ue("view", { class: Ne(e.classes) }, [
|
|
3334
3334
|
e.needSymbol && e.position == "before" ? (ne(), ue("view", {
|
|
3335
3335
|
key: 0,
|
|
@@ -3349,7 +3349,7 @@ function gc(e, t, a, n, l, r) {
|
|
|
3349
3349
|
}, null, 10, hc)) : Se("", !0)
|
|
3350
3350
|
], 2);
|
|
3351
3351
|
}
|
|
3352
|
-
var wi = /* @__PURE__ */ We(fc, [["render",
|
|
3352
|
+
var wi = /* @__PURE__ */ We(fc, [["render", pc]]), gc = {
|
|
3353
3353
|
...bi,
|
|
3354
3354
|
type: {
|
|
3355
3355
|
type: String,
|
|
@@ -3407,7 +3407,7 @@ var wi = /* @__PURE__ */ We(fc, [["render", gc]]), pc = {
|
|
|
3407
3407
|
zIndex: { type: [String, Number] }
|
|
3408
3408
|
}, { componentName: Ma, create: mc } = he("hint-text"), vc = mc({
|
|
3409
3409
|
components: { Price: wi },
|
|
3410
|
-
props:
|
|
3410
|
+
props: gc,
|
|
3411
3411
|
emits: ["update:visible"],
|
|
3412
3412
|
setup(e, t) {
|
|
3413
3413
|
const a = B({
|
|
@@ -3511,10 +3511,10 @@ var wi = /* @__PURE__ */ We(fc, [["render", gc]]), pc = {
|
|
|
3511
3511
|
fe(() => e.visible, (N) => {
|
|
3512
3512
|
D.value = N;
|
|
3513
3513
|
});
|
|
3514
|
-
const C = x(() => D.value && y.value), y = B(!0),
|
|
3514
|
+
const C = x(() => D.value && y.value), y = B(!0), p = yt((N) => {
|
|
3515
3515
|
const $ = N[0];
|
|
3516
3516
|
$ && (y.value = $.isIntersecting);
|
|
3517
|
-
}, 10), m = new IntersectionObserver(
|
|
3517
|
+
}, 10), m = new IntersectionObserver(p);
|
|
3518
3518
|
fe([() => e.message, () => e.visible], ([N, $]) => {
|
|
3519
3519
|
setTimeout(() => {
|
|
3520
3520
|
h(e.message, e.visible);
|
|
@@ -3523,7 +3523,7 @@ var wi = /* @__PURE__ */ We(fc, [["render", gc]]), pc = {
|
|
|
3523
3523
|
setTimeout(() => {
|
|
3524
3524
|
h(e.message, e.visible);
|
|
3525
3525
|
}, 0), e.reference && (Tl.watch(e.reference, d), m.observe(e.reference));
|
|
3526
|
-
}),
|
|
3526
|
+
}), gt(() => {
|
|
3527
3527
|
e.reference && (Tl.unwatch(e.reference, d), m.unobserve(e.reference), m.disconnect());
|
|
3528
3528
|
}), e.referenceRect && fe(() => e.referenceRect, () => {
|
|
3529
3529
|
h(e.message, e.visible);
|
|
@@ -3690,50 +3690,50 @@ function xc(e, t, a, n = !1) {
|
|
|
3690
3690
|
return s.value;
|
|
3691
3691
|
}
|
|
3692
3692
|
}, o), f = tl(), h = ha();
|
|
3693
|
-
|
|
3694
|
-
const u = x(() => h && f ?
|
|
3695
|
-
const
|
|
3693
|
+
pa(!1);
|
|
3694
|
+
const u = x(() => h && f ? ga(f, !1).value : null), d = e, D = B(null), C = x(() => {
|
|
3695
|
+
const g = {
|
|
3696
3696
|
[d]: !0,
|
|
3697
3697
|
[`${d}__gutter`]: u.value && u.value.type !== "flow",
|
|
3698
3698
|
[`${d}__stretch`]: l.span === "stretch",
|
|
3699
3699
|
[`${d}__input--border`]: Ce(l.hasBorder)
|
|
3700
3700
|
};
|
|
3701
|
-
if (
|
|
3701
|
+
if (g[l.errorMarkClass] = !!K.value, g[l.warnMarkClass] = !!P.value, g[l.infoMarkClass] = !!v.value, typeof D.value == "function") {
|
|
3702
3702
|
const O = D.value(o);
|
|
3703
|
-
|
|
3703
|
+
g[O] = !0;
|
|
3704
3704
|
} else if (typeof D.value == "string") {
|
|
3705
3705
|
const O = D.value;
|
|
3706
|
-
|
|
3706
|
+
g[O] = !0;
|
|
3707
3707
|
}
|
|
3708
|
-
return
|
|
3709
|
-
}), y = B(null),
|
|
3710
|
-
const
|
|
3708
|
+
return g;
|
|
3709
|
+
}), y = B(null), p = x(() => {
|
|
3710
|
+
const g = {};
|
|
3711
3711
|
if (l.width)
|
|
3712
|
-
l.width !== "auto" && (
|
|
3712
|
+
l.width !== "auto" && (g.width = Me(l.width));
|
|
3713
3713
|
else {
|
|
3714
3714
|
const O = h && f ? ma(f, !1) : null;
|
|
3715
3715
|
if (u.value && O) {
|
|
3716
3716
|
if (u.value.type === "grid") {
|
|
3717
3717
|
const te = ya(O, u.value, l.span, l.offset);
|
|
3718
|
-
Object.assign(
|
|
3718
|
+
Object.assign(g, te);
|
|
3719
3719
|
} else if (u.value.type === "flow") {
|
|
3720
3720
|
const te = va(O, u.value, l.span, l.offset, l.width);
|
|
3721
|
-
Object.assign(
|
|
3721
|
+
Object.assign(g, te);
|
|
3722
3722
|
}
|
|
3723
3723
|
}
|
|
3724
3724
|
}
|
|
3725
3725
|
if (typeof y.value == "function") {
|
|
3726
3726
|
const O = y.value(o);
|
|
3727
|
-
O && Object.assign(
|
|
3727
|
+
O && Object.assign(g, O);
|
|
3728
3728
|
} else if (y.value && typeof y.value == "object") {
|
|
3729
3729
|
const O = y.value;
|
|
3730
|
-
Object.assign(
|
|
3730
|
+
Object.assign(g, O);
|
|
3731
3731
|
}
|
|
3732
|
-
return
|
|
3732
|
+
return g;
|
|
3733
3733
|
}), m = B(null), b = x({
|
|
3734
3734
|
get: () => m.value ?? Ce(l.isRequired),
|
|
3735
|
-
set: (
|
|
3736
|
-
m.value =
|
|
3735
|
+
set: (g) => {
|
|
3736
|
+
m.value = g;
|
|
3737
3737
|
}
|
|
3738
3738
|
}), S = () => typeof l.label == "string" && l.label.length > 0 || typeof r.slots.label == "function", c = Ze(Dl(l, "labelPosition"), "labelPosition", St.Near), _ = x(() => c && c.value === "top" ? "top" : c && c.value === "right" ? "right" : "left"), T = x(() => ({
|
|
3739
3739
|
[`${d}__main`]: !0,
|
|
@@ -3756,44 +3756,44 @@ function xc(e, t, a, n = !1) {
|
|
|
3756
3756
|
infoIcon: null
|
|
3757
3757
|
});
|
|
3758
3758
|
i({
|
|
3759
|
-
setRequired(
|
|
3760
|
-
b.value =
|
|
3759
|
+
setRequired(g) {
|
|
3760
|
+
b.value = g;
|
|
3761
3761
|
},
|
|
3762
|
-
setErrorTip(
|
|
3763
|
-
Q.errorTip =
|
|
3762
|
+
setErrorTip(g) {
|
|
3763
|
+
Q.errorTip = g;
|
|
3764
3764
|
},
|
|
3765
|
-
setErrorIcon(
|
|
3766
|
-
Q.errorIcon =
|
|
3765
|
+
setErrorIcon(g) {
|
|
3766
|
+
Q.errorIcon = g;
|
|
3767
3767
|
},
|
|
3768
|
-
setWarnTip(
|
|
3769
|
-
Q.warnTip =
|
|
3768
|
+
setWarnTip(g) {
|
|
3769
|
+
Q.warnTip = g;
|
|
3770
3770
|
},
|
|
3771
|
-
setWarnIcon(
|
|
3772
|
-
Q.warnIcon =
|
|
3771
|
+
setWarnIcon(g) {
|
|
3772
|
+
Q.warnIcon = g;
|
|
3773
3773
|
},
|
|
3774
|
-
setInfoTip(
|
|
3775
|
-
Q.infoTip =
|
|
3774
|
+
setInfoTip(g) {
|
|
3775
|
+
Q.infoTip = g;
|
|
3776
3776
|
},
|
|
3777
|
-
setInfoIcon(
|
|
3778
|
-
Q.infoIcon =
|
|
3777
|
+
setInfoIcon(g) {
|
|
3778
|
+
Q.infoIcon = g;
|
|
3779
3779
|
},
|
|
3780
|
-
setCustomClassName(
|
|
3781
|
-
D.value =
|
|
3780
|
+
setCustomClassName(g) {
|
|
3781
|
+
D.value = g;
|
|
3782
3782
|
},
|
|
3783
|
-
setCustomStyle(
|
|
3784
|
-
y.value =
|
|
3783
|
+
setCustomStyle(g) {
|
|
3784
|
+
y.value = g;
|
|
3785
3785
|
}
|
|
3786
3786
|
});
|
|
3787
3787
|
const v = x(() => l.infoTip || Q.infoTip), z = x(() => l.infoIcon || Q.infoIcon), P = x(() => l.warnTip || Q.warnTip), j = x(() => l.warnIcon || Q.warnIcon), K = x(() => l.errorTip || Q.errorTip), X = x(() => l.errorIcon || Q.errorIcon), V = x(() => K.value ? "error" : P.value ? "warn" : v.value ? "info" : ""), le = () => V.value.length > 0, W = x(() => V.value === "error" ? K.value : V.value === "warn" ? P.value : V.value === "info" ? v.value : ""), Z = x(() => V.value === "error" ? X.value : V.value === "warn" ? j.value : V.value === "info" ? z.value : null), q = x(() => {
|
|
3788
|
-
const
|
|
3788
|
+
const g = {
|
|
3789
3789
|
[`${d}__tip`]: !0,
|
|
3790
3790
|
[`${d}__tip--${V.value}`]: !0,
|
|
3791
3791
|
[`${d}--animate`]: !0
|
|
3792
3792
|
};
|
|
3793
|
-
return V.value === "error" && l.errorClass ?
|
|
3793
|
+
return V.value === "error" && l.errorClass ? g[`${l.errorClass}`] = !0 : V.value === "warn" && l.warnClass ? g[`${l.warnClass}`] = !0 : V.value === "info" && l.infoClass && (g[`${l.infoClass}`] = !0), g;
|
|
3794
3794
|
}), R = x(() => {
|
|
3795
|
-
const
|
|
3796
|
-
return c && c.value === "top" || !S() ?
|
|
3795
|
+
const g = {};
|
|
3796
|
+
return c && c.value === "top" || !S() ? g["padding-left"] = "0px" : Y && Y.value && (g["padding-left"] = Me(Y.value)), g;
|
|
3797
3797
|
}), A = B();
|
|
3798
3798
|
let J = null;
|
|
3799
3799
|
fe([
|
|
@@ -3801,8 +3801,8 @@ function xc(e, t, a, n = !1) {
|
|
|
3801
3801
|
() => l.hintText,
|
|
3802
3802
|
() => l.hintType,
|
|
3803
3803
|
() => l.hintProps
|
|
3804
|
-
], ([
|
|
3805
|
-
A.value && (
|
|
3804
|
+
], ([g, O, te, oe]) => {
|
|
3805
|
+
A.value && (g && !_e(O) ? J ? a.show(A.value, O, {
|
|
3806
3806
|
...oe,
|
|
3807
3807
|
id: J,
|
|
3808
3808
|
type: te
|
|
@@ -3813,9 +3813,9 @@ function xc(e, t, a, n = !1) {
|
|
|
3813
3813
|
});
|
|
3814
3814
|
let re = null;
|
|
3815
3815
|
const ee = () => {
|
|
3816
|
-
re || !A.value || (re = new IntersectionObserver((
|
|
3816
|
+
re || !A.value || (re = new IntersectionObserver((g) => {
|
|
3817
3817
|
let O = !1;
|
|
3818
|
-
for (let te of
|
|
3818
|
+
for (let te of g) if (te.isIntersecting) {
|
|
3819
3819
|
O = !0, O && r.emit("appear", te);
|
|
3820
3820
|
break;
|
|
3821
3821
|
}
|
|
@@ -3824,8 +3824,8 @@ function xc(e, t, a, n = !1) {
|
|
|
3824
3824
|
}, F = () => {
|
|
3825
3825
|
!re || !A.value || (re.unobserve(A.value), re = null);
|
|
3826
3826
|
};
|
|
3827
|
-
fe(() => Ce(l.appearListen), (
|
|
3828
|
-
|
|
3827
|
+
fe(() => Ce(l.appearListen), (g) => {
|
|
3828
|
+
g ? ee() : F();
|
|
3829
3829
|
}), Re(() => {
|
|
3830
3830
|
Ce(l.appearListen) && ee();
|
|
3831
3831
|
}), Jt(() => {
|
|
@@ -3833,75 +3833,75 @@ function xc(e, t, a, n = !1) {
|
|
|
3833
3833
|
});
|
|
3834
3834
|
const U = () => {
|
|
3835
3835
|
if (!S()) return null;
|
|
3836
|
-
const
|
|
3837
|
-
if (
|
|
3836
|
+
const g = [], O = r.slots?.label?.() ?? l.label, te = E("div", { class: I.value }, [O]);
|
|
3837
|
+
if (g.push(te), r.slots.fixedPreTip) {
|
|
3838
3838
|
const oe = r.slots.fixedPreTip();
|
|
3839
|
-
|
|
3839
|
+
g.push(oe);
|
|
3840
3840
|
}
|
|
3841
3841
|
return E("div", {
|
|
3842
3842
|
class: M.value,
|
|
3843
3843
|
style: L.value
|
|
3844
|
-
},
|
|
3844
|
+
}, g);
|
|
3845
3845
|
}, k = () => {
|
|
3846
|
-
const
|
|
3846
|
+
const g = [];
|
|
3847
3847
|
if (r.slots.prepend) {
|
|
3848
3848
|
const O = r.slots.prepend();
|
|
3849
|
-
|
|
3849
|
+
g.push(O);
|
|
3850
3850
|
}
|
|
3851
3851
|
if (r.slots.default) {
|
|
3852
3852
|
const O = r.slots.default();
|
|
3853
|
-
|
|
3853
|
+
g.push(O);
|
|
3854
3854
|
}
|
|
3855
3855
|
if (r.slots.append) {
|
|
3856
3856
|
const O = r.slots.append();
|
|
3857
|
-
|
|
3857
|
+
g.push(O);
|
|
3858
3858
|
}
|
|
3859
3859
|
if (r.slots.fixedTip) {
|
|
3860
3860
|
const O = E("div", { class: [`${d}__fixed-tip`] }, [r.slots.fixedTip()]);
|
|
3861
|
-
|
|
3861
|
+
g.push(O);
|
|
3862
3862
|
}
|
|
3863
3863
|
return E("div", {
|
|
3864
3864
|
ref: A,
|
|
3865
3865
|
class: N.value,
|
|
3866
3866
|
style: $.value
|
|
3867
|
-
},
|
|
3867
|
+
}, g);
|
|
3868
3868
|
}, G = () => {
|
|
3869
|
-
const
|
|
3870
|
-
return
|
|
3869
|
+
const g = Z.value;
|
|
3870
|
+
return g ? typeof g == "function" ? E("div", { class: "fox-item__tip--icon" }, [g()]) : E("div", { class: "fox-item__tip--icon" }, [E(g)]) : null;
|
|
3871
3871
|
}, ae = () => {
|
|
3872
|
-
const
|
|
3873
|
-
return
|
|
3872
|
+
const g = W.value;
|
|
3873
|
+
return g ? typeof g == "function" ? E("div", { class: "fox-item__tip--text" }, [g()]) : E("div", { class: "fox-item__tip--text" }, [g]) : null;
|
|
3874
3874
|
}, H = () => {
|
|
3875
3875
|
if (!le()) return null;
|
|
3876
|
-
const
|
|
3877
|
-
O &&
|
|
3876
|
+
const g = [], O = G();
|
|
3877
|
+
O && g.push(O);
|
|
3878
3878
|
const te = ae();
|
|
3879
|
-
return te &&
|
|
3879
|
+
return te && g.push(te), E("div", {
|
|
3880
3880
|
class: q.value,
|
|
3881
3881
|
style: R.value
|
|
3882
|
-
},
|
|
3882
|
+
}, g);
|
|
3883
3883
|
}, w = () => r.slots?.hide?.() ?? null;
|
|
3884
3884
|
return () => {
|
|
3885
|
-
const
|
|
3885
|
+
const g = [], O = [], te = U();
|
|
3886
3886
|
te && O.push(te);
|
|
3887
3887
|
const oe = k();
|
|
3888
3888
|
oe && O.push(oe);
|
|
3889
3889
|
const de = E("div", { class: T.value }, O);
|
|
3890
|
-
|
|
3891
|
-
const
|
|
3892
|
-
|
|
3890
|
+
g.push(de);
|
|
3891
|
+
const pe = H();
|
|
3892
|
+
pe && g.push(pe);
|
|
3893
3893
|
const ve = w();
|
|
3894
|
-
return ve &&
|
|
3894
|
+
return ve && g.push(ve), E("div", {
|
|
3895
3895
|
class: C.value,
|
|
3896
|
-
style:
|
|
3896
|
+
style: p.value,
|
|
3897
3897
|
prop: l.prop,
|
|
3898
3898
|
ref: s
|
|
3899
|
-
},
|
|
3899
|
+
}, g);
|
|
3900
3900
|
};
|
|
3901
3901
|
}
|
|
3902
3902
|
};
|
|
3903
3903
|
}
|
|
3904
|
-
var { componentName: Nc, create: Cc, scope: kc } = he("item"), Tc = Cc(xc(Nc, kc, it, !1)),
|
|
3904
|
+
var { componentName: Nc, create: Cc, scope: kc } = he("item"), Tc = Cc(xc(Nc, kc, it, !1)), gn = Tc, mn = {
|
|
3905
3905
|
span: {
|
|
3906
3906
|
type: [Number, String],
|
|
3907
3907
|
required: !1,
|
|
@@ -3921,8 +3921,8 @@ function _c(e, t) {
|
|
|
3921
3921
|
props: mn,
|
|
3922
3922
|
setup(a, n) {
|
|
3923
3923
|
const l = tl(), r = ha();
|
|
3924
|
-
|
|
3925
|
-
const o = x(() => r && l ?
|
|
3924
|
+
pa(!1);
|
|
3925
|
+
const o = x(() => r && l ? ga(l, !1).value : null), s = e, i = x(() => ({
|
|
3926
3926
|
[s]: !0,
|
|
3927
3927
|
[`${s}__gutter`]: o.value && o.value.type !== "flow",
|
|
3928
3928
|
[`${s}__stretch`]: a.span === "stretch"
|
|
@@ -3996,13 +3996,13 @@ function Ac(e, t) {
|
|
|
3996
3996
|
[`${l}__stretch`]: a.span === "stretch",
|
|
3997
3997
|
[`${l}__${a.align}`]: !0
|
|
3998
3998
|
})), o = tl(), s = ha();
|
|
3999
|
-
|
|
3999
|
+
pa(!1);
|
|
4000
4000
|
const i = x(() => {
|
|
4001
4001
|
const f = {};
|
|
4002
4002
|
if (a.width)
|
|
4003
4003
|
a.width !== "auto" && (f.width = Me(a.width));
|
|
4004
4004
|
else if (s && o) {
|
|
4005
|
-
const h =
|
|
4005
|
+
const h = ga(o, !1), u = ma(o, !1);
|
|
4006
4006
|
if (h.value && u)
|
|
4007
4007
|
if (h.value.type === "grid") {
|
|
4008
4008
|
const d = ya(u, h.value, a.span, a.offset);
|
|
@@ -4186,20 +4186,20 @@ function Rc(e, t, a, n = !1) {
|
|
|
4186
4186
|
C || (C = setTimeout(() => {
|
|
4187
4187
|
d(), C = null;
|
|
4188
4188
|
}, l.showAfter ?? 0));
|
|
4189
|
-
},
|
|
4189
|
+
}, p = (S) => {
|
|
4190
4190
|
C && (clearTimeout(C), C = null), setTimeout(() => {
|
|
4191
4191
|
D();
|
|
4192
4192
|
}, l.hideAfter ?? 0);
|
|
4193
4193
|
}, m = () => {
|
|
4194
4194
|
const S = o.value;
|
|
4195
|
-
S && (S.addEventListener("mouseover", y), S.addEventListener("mouseleave",
|
|
4195
|
+
S && (S.addEventListener("mouseover", y), S.addEventListener("mouseleave", p));
|
|
4196
4196
|
}, b = () => {
|
|
4197
4197
|
const S = o.value;
|
|
4198
|
-
S && (S.removeEventListener("mouseover", y), S.removeEventListener("mouseleave",
|
|
4198
|
+
S && (S.removeEventListener("mouseover", y), S.removeEventListener("mouseleave", p));
|
|
4199
4199
|
};
|
|
4200
4200
|
return Re(() => {
|
|
4201
4201
|
!Ce(l.showOverflowTooltip) || !a || m();
|
|
4202
|
-
}),
|
|
4202
|
+
}), gt(() => {
|
|
4203
4203
|
!Ce(l.showOverflowTooltip) || !a || b();
|
|
4204
4204
|
}), () => {
|
|
4205
4205
|
const S = {
|
|
@@ -4335,7 +4335,7 @@ function Kc(e, t, a = !1) {
|
|
|
4335
4335
|
right: null,
|
|
4336
4336
|
bottom: null,
|
|
4337
4337
|
left: null
|
|
4338
|
-
}), i = B(0), f = B(0), h = B(0), u = B(0), d = B(n.placement), D = B(!1), C = B(!1), y = B(null),
|
|
4338
|
+
}), i = B(0), f = B(0), h = B(0), u = B(0), d = B(n.placement), D = B(!1), C = B(!1), y = B(null), p = () => typeof n.reference == "string" ? document.querySelector(n.reference) : n.reference, m = (V, le, W, Z, q, R, A, J = !0) => {
|
|
4339
4339
|
const re = document.documentElement.clientWidth || document.body.clientWidth, ee = document.documentElement.clientHeight || document.body.clientHeight, F = V.split("-");
|
|
4340
4340
|
let U = [];
|
|
4341
4341
|
J ? F[0] === "top" ? U = [
|
|
@@ -4371,36 +4371,36 @@ function Kc(e, t, a = !1) {
|
|
|
4371
4371
|
const w = W - A - n.arrowSize / 2 - n.offset;
|
|
4372
4372
|
if (w >= 0) {
|
|
4373
4373
|
k.top = w;
|
|
4374
|
-
let
|
|
4375
|
-
F[1] === "start" ?
|
|
4376
|
-
const O = re -
|
|
4377
|
-
O < 0 ? (
|
|
4374
|
+
let g = 0;
|
|
4375
|
+
F[1] === "start" ? g = le : F[1] === "end" ? g = le + Z - R : g = le + Z / 2 - R / 2;
|
|
4376
|
+
const O = re - g - R;
|
|
4377
|
+
O < 0 ? (g += O, S.value = -O) : S.value = 0, k.left = g < 0 ? 0 : g;
|
|
4378
4378
|
break;
|
|
4379
4379
|
}
|
|
4380
4380
|
} else if (H === "bottom") {
|
|
4381
4381
|
const w = W + q + n.arrowSize / 2 + n.offset;
|
|
4382
4382
|
if (w + A <= ee) {
|
|
4383
4383
|
k.top = w;
|
|
4384
|
-
let
|
|
4385
|
-
F[1] === "start" ?
|
|
4386
|
-
const O = re -
|
|
4387
|
-
O < 0 ? (
|
|
4384
|
+
let g = 0;
|
|
4385
|
+
F[1] === "start" ? g = le : F[1] === "end" ? g = le + Z - R : g = le + Z / 2 - R / 2;
|
|
4386
|
+
const O = re - g - R;
|
|
4387
|
+
O < 0 ? (g += O, S.value = -O) : S.value = 0, k.left = g < 0 ? 0 : g;
|
|
4388
4388
|
break;
|
|
4389
4389
|
}
|
|
4390
4390
|
} else if (H === "left") {
|
|
4391
4391
|
const w = le - R - n.arrowSize / 2 - n.offset;
|
|
4392
4392
|
if (w >= 0) {
|
|
4393
4393
|
k.left = w;
|
|
4394
|
-
let
|
|
4395
|
-
F[1] === "start" ?
|
|
4394
|
+
let g = 0;
|
|
4395
|
+
F[1] === "start" ? g = W : F[1] === "end" ? g = W + q - A : g = W + q / 2 - A / 2, k.top = g < 0 ? 0 : g;
|
|
4396
4396
|
break;
|
|
4397
4397
|
}
|
|
4398
4398
|
} else if (H === "right") {
|
|
4399
4399
|
const w = le + Z + n.arrowSize / 2 + n.offset;
|
|
4400
4400
|
if (w + R <= re) {
|
|
4401
4401
|
k.left = w;
|
|
4402
|
-
let
|
|
4403
|
-
F[1] === "start" ?
|
|
4402
|
+
let g = 0;
|
|
4403
|
+
F[1] === "start" ? g = W : F[1] === "end" ? g = W + q - A : g = W + q / 2 - A / 2, k.top = g < 0 ? 0 : g;
|
|
4404
4404
|
break;
|
|
4405
4405
|
}
|
|
4406
4406
|
}
|
|
@@ -4413,7 +4413,7 @@ function Kc(e, t, a = !1) {
|
|
|
4413
4413
|
const V = n.visible, le = n.autoFit;
|
|
4414
4414
|
if (!el || V === !1) return;
|
|
4415
4415
|
if (n.reference) {
|
|
4416
|
-
const A =
|
|
4416
|
+
const A = p(), J = yi(A);
|
|
4417
4417
|
i.value = J.x, f.value = J.y, h.value = A.offsetWidth, u.value = A.offsetHeight;
|
|
4418
4418
|
} else n.referenceInset && (i.value = n.referenceInset.left, f.value = n.referenceInset.top, h.value = n.referenceInset.right - n.referenceInset.left, u.value = n.referenceInset.bottom - n.referenceInset.top);
|
|
4419
4419
|
const W = y.value.offsetWidth, Z = y.value.offsetHeight, { bestPlacement: q, bestInsetRect: R } = m(n.placement, i.value, f.value, h.value, u.value, W, Z, le);
|
|
@@ -4434,7 +4434,7 @@ function Kc(e, t, a = !1) {
|
|
|
4434
4434
|
!V && !le || (setTimeout(() => {
|
|
4435
4435
|
b();
|
|
4436
4436
|
}, 0), n.autoFit && (W && (Tl.unwatch(W, c), L.unobserve(W)), V && (Tl.watch(V, c), L.observe(V))));
|
|
4437
|
-
}, { immediate: !0 }),
|
|
4437
|
+
}, { immediate: !0 }), gt(() => {
|
|
4438
4438
|
n.reference && (Tl.unwatch(n.reference, c), L.unobserve(n.reference), L.disconnect());
|
|
4439
4439
|
});
|
|
4440
4440
|
const I = x(() => {
|
|
@@ -4540,7 +4540,7 @@ function Xc(e, t, a) {
|
|
|
4540
4540
|
}
|
|
4541
4541
|
const d = B(), D = x(() => d.value?.$el ?? null), C = B(!1), y = (c) => {
|
|
4542
4542
|
C.value = c;
|
|
4543
|
-
},
|
|
4543
|
+
}, p = () => {
|
|
4544
4544
|
C.value = !C.value;
|
|
4545
4545
|
};
|
|
4546
4546
|
function m(c, _) {
|
|
@@ -4566,7 +4566,7 @@ function Xc(e, t, a) {
|
|
|
4566
4566
|
"text-position": "left",
|
|
4567
4567
|
"show-overflow-tooltip": !1,
|
|
4568
4568
|
type: n.type,
|
|
4569
|
-
onClick:
|
|
4569
|
+
onClick: p
|
|
4570
4570
|
}, {
|
|
4571
4571
|
default: () => o.moreText.value,
|
|
4572
4572
|
mark: () => Y
|
|
@@ -4598,7 +4598,7 @@ function Xc(e, t, a) {
|
|
|
4598
4598
|
}
|
|
4599
4599
|
var { componentName: Qc, create: Zc, scope: Jc } = he("buttons-item"), e2 = Zc(Xc(Qc, Jc, en)), t2 = e2;
|
|
4600
4600
|
function tt(e, t = {}) {
|
|
4601
|
-
return E(
|
|
4601
|
+
return E(gn, e, t);
|
|
4602
4602
|
}
|
|
4603
4603
|
function l2(e, t, a, n, l) {
|
|
4604
4604
|
let r = [];
|
|
@@ -4639,7 +4639,7 @@ var a2 = class {
|
|
|
4639
4639
|
if (Array.isArray(t)) return t;
|
|
4640
4640
|
if (typeof t == "function") return await t(a);
|
|
4641
4641
|
const n = ft(e, this.scope);
|
|
4642
|
-
return n === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) &&
|
|
4642
|
+
return n === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) && pt(a) && (a = Ae(a)), await n(t, a));
|
|
4643
4643
|
}
|
|
4644
4644
|
};
|
|
4645
4645
|
function n2() {
|
|
@@ -4763,7 +4763,7 @@ function nt(e, t) {
|
|
|
4763
4763
|
label: t.default,
|
|
4764
4764
|
default: () => n
|
|
4765
4765
|
};
|
|
4766
|
-
return E(
|
|
4766
|
+
return E(gn, { class: [a] }, l);
|
|
4767
4767
|
}
|
|
4768
4768
|
var kt = (e = {}) => {
|
|
4769
4769
|
if (!e) return {};
|
|
@@ -4839,7 +4839,7 @@ function d2(e, t, a, n) {
|
|
|
4839
4839
|
get templateRefProxy() {
|
|
4840
4840
|
return o.value;
|
|
4841
4841
|
}
|
|
4842
|
-
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]),
|
|
4842
|
+
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]), p = B(!1), m = Ee(l, "modelValue", null, d), b = e, S = x(() => ({
|
|
4843
4843
|
[`${b}`]: !0,
|
|
4844
4844
|
disabled: i.value,
|
|
4845
4845
|
readonly: h.value
|
|
@@ -4851,10 +4851,10 @@ function d2(e, t, a, n) {
|
|
|
4851
4851
|
let M = Ee(l, "hintText"), Y = B(!1);
|
|
4852
4852
|
const L = (V) => {
|
|
4853
4853
|
let le = V.target.value;
|
|
4854
|
-
|
|
4854
|
+
p.value = !0, _e(M.value) || (Y.value = !0), d("focus", le, V);
|
|
4855
4855
|
}, I = (V) => {
|
|
4856
4856
|
setTimeout(() => {
|
|
4857
|
-
Y.value && (Y.value = !1),
|
|
4857
|
+
Y.value && (Y.value = !1), p.value = !1;
|
|
4858
4858
|
}, 0);
|
|
4859
4859
|
let le = V.target.value;
|
|
4860
4860
|
l.maxLength && le.length > Number(l.maxLength) && (le = le.slice(0, Number(l.maxLength))), d("blur", le, V);
|
|
@@ -4926,7 +4926,7 @@ function d2(e, t, a, n) {
|
|
|
4926
4926
|
}
|
|
4927
4927
|
};
|
|
4928
4928
|
}
|
|
4929
|
-
var { componentName: h2, create:
|
|
4929
|
+
var { componentName: h2, create: p2, scope: g2 } = he("input-item"), m2 = p2(d2(h2, g2, tt, nt)), v2 = m2;
|
|
4930
4930
|
function Rt(e, t) {
|
|
4931
4931
|
return typeof e.textKey == "string" && e.textKey.length > 0 ? t[e.textKey] : t.text;
|
|
4932
4932
|
}
|
|
@@ -4949,7 +4949,7 @@ var b2 = class {
|
|
|
4949
4949
|
if (Array.isArray(t)) return t;
|
|
4950
4950
|
if (typeof t == "function") return await t(a);
|
|
4951
4951
|
const n = ft(e, this.scope);
|
|
4952
|
-
return n === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) &&
|
|
4952
|
+
return n === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) && pt(a) && (a = Ae(a)), await n(t, a));
|
|
4953
4953
|
}
|
|
4954
4954
|
};
|
|
4955
4955
|
function w2() {
|
|
@@ -5078,7 +5078,24 @@ var Mi = {
|
|
|
5078
5078
|
showTooltip: {
|
|
5079
5079
|
type: [Boolean],
|
|
5080
5080
|
default: !1
|
|
5081
|
-
}
|
|
5081
|
+
},
|
|
5082
|
+
popperClass: {
|
|
5083
|
+
type: [String],
|
|
5084
|
+
default: !1
|
|
5085
|
+
},
|
|
5086
|
+
popperStyle: {
|
|
5087
|
+
type: [String, Object],
|
|
5088
|
+
default: !1
|
|
5089
|
+
},
|
|
5090
|
+
showArrow: {
|
|
5091
|
+
type: [Boolean],
|
|
5092
|
+
default: !0
|
|
5093
|
+
},
|
|
5094
|
+
teleported: {
|
|
5095
|
+
type: [Boolean],
|
|
5096
|
+
default: !0
|
|
5097
|
+
},
|
|
5098
|
+
appendTo: { type: [String, Object] }
|
|
5082
5099
|
}, x2 = {
|
|
5083
5100
|
...qe,
|
|
5084
5101
|
...He,
|
|
@@ -5120,27 +5137,27 @@ function N2(e, t, a, n) {
|
|
|
5120
5137
|
get templateRefProxy() {
|
|
5121
5138
|
return o.value;
|
|
5122
5139
|
}
|
|
5123
|
-
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]),
|
|
5140
|
+
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]), p = B(null), m = B([]), b = x(() => m.value ? m.value.map((g) => Rt(l, g)).join(" ") : ""), S = (g, O, te, oe = !0) => {
|
|
5124
5141
|
if (!te || te.length == 0) {
|
|
5125
|
-
|
|
5142
|
+
p.value = g, oe && (d("update:modelValue", g), d("change", g));
|
|
5126
5143
|
return;
|
|
5127
5144
|
}
|
|
5128
|
-
const de = Di(l,
|
|
5145
|
+
const de = Di(l, g, O, te);
|
|
5129
5146
|
if (de === null) {
|
|
5130
5147
|
if (m.value === null || m.value.length === 0) return;
|
|
5131
|
-
|
|
5148
|
+
p.value = null, m.value = [], oe && (d("update:modelValue", null), d("update:text", null), d("change", null));
|
|
5132
5149
|
return;
|
|
5133
5150
|
}
|
|
5134
|
-
let
|
|
5135
|
-
if (de.length !== m.value.length)
|
|
5151
|
+
let pe = !0;
|
|
5152
|
+
if (de.length !== m.value.length) pe = !1;
|
|
5136
5153
|
else for (let ve = 0; ve < de.length; ve++) {
|
|
5137
5154
|
const Te = de[ve], ze = m.value[ve];
|
|
5138
5155
|
if (!zi(l, Te, ze)) {
|
|
5139
|
-
|
|
5156
|
+
pe = !1;
|
|
5140
5157
|
break;
|
|
5141
5158
|
}
|
|
5142
5159
|
}
|
|
5143
|
-
if (!
|
|
5160
|
+
if (!pe) {
|
|
5144
5161
|
m.value = de;
|
|
5145
5162
|
let ve = [], Te = [], ze = [];
|
|
5146
5163
|
de.forEach((Mt) => {
|
|
@@ -5148,14 +5165,14 @@ function N2(e, t, a, n) {
|
|
|
5148
5165
|
ve.push(al), ze.push(Rl), l.valueType === "text" ? Te.push(Rl) : l.valueType === "item" ? Te.push(Mt) : Te.push(al);
|
|
5149
5166
|
});
|
|
5150
5167
|
let Ve, Ye, vt;
|
|
5151
|
-
Ce(l.multiple) ? (
|
|
5168
|
+
Ce(l.multiple) ? (p.value = ve, Ve = Ae(Te), Ye = ze, vt = Ae(de)) : (p.value = ve[0] ?? "", Ve = Ae(Te[0] ?? ""), Ye = ze[0] ?? "", vt = Ae(de[0])), oe && (d("update:modelValue", Ve), d("change", Ve, vt)), d("update:text", Ye);
|
|
5152
5169
|
}
|
|
5153
5170
|
}, c = B(null), _ = B(null), T = x(() => {
|
|
5154
|
-
let
|
|
5155
|
-
return Array.isArray(
|
|
5156
|
-
}), M = Ze(x(() => l.appearLoad), "appearLoad", St.Near, (
|
|
5157
|
-
if (
|
|
5158
|
-
const te = await Y.load("select",
|
|
5171
|
+
let g = _.value ?? c.value ?? [];
|
|
5172
|
+
return Array.isArray(g) && typeof l.sourceFilter == "function" && (g = g.filter(l.sourceFilter)), g;
|
|
5173
|
+
}), M = Ze(x(() => l.appearLoad), "appearLoad", St.Near, (g) => Ce(g)), Y = w2(), L = async (g, O) => {
|
|
5174
|
+
if (g) {
|
|
5175
|
+
const te = await Y.load("select", g, O);
|
|
5159
5176
|
if (te.length > 0) if (typeof te[0] == "string") {
|
|
5160
5177
|
let oe = te.map((de) => S2(de));
|
|
5161
5178
|
c.value = oe;
|
|
@@ -5163,29 +5180,29 @@ function N2(e, t, a, n) {
|
|
|
5163
5180
|
else c.value = null;
|
|
5164
5181
|
}
|
|
5165
5182
|
};
|
|
5166
|
-
fe([() => l.source, () => l.params], ([
|
|
5167
|
-
_.value = null, L(
|
|
5183
|
+
fe([() => l.source, () => l.params], ([g, O]) => {
|
|
5184
|
+
_.value = null, L(g, O);
|
|
5168
5185
|
}, { immediate: !M.value });
|
|
5169
5186
|
let I = !1;
|
|
5170
5187
|
const N = () => {
|
|
5171
5188
|
I || (I = !0, L(l.source, l.params));
|
|
5172
5189
|
};
|
|
5173
|
-
fe([() => c.value, () => l.modelValue], ([
|
|
5190
|
+
fe([() => c.value, () => l.modelValue], ([g, O]) => {
|
|
5174
5191
|
if (z() && Ce(l.multiple)) {
|
|
5175
|
-
Ct(O,
|
|
5192
|
+
Ct(O, p.value) || (p.value = O);
|
|
5176
5193
|
return;
|
|
5177
5194
|
}
|
|
5178
5195
|
S(O, l.valueType, T.value, !1), d("setValue", O);
|
|
5179
|
-
}), l.source || (
|
|
5196
|
+
}), l.source || (p.value = l.modelValue);
|
|
5180
5197
|
let $ = null, Q = B(!1);
|
|
5181
|
-
typeof l.remoteMethod == "function" && ($ = async (
|
|
5182
|
-
if (
|
|
5198
|
+
typeof l.remoteMethod == "function" && ($ = async (g) => {
|
|
5199
|
+
if (g == null) {
|
|
5183
5200
|
_.value = null;
|
|
5184
5201
|
return;
|
|
5185
5202
|
}
|
|
5186
5203
|
Q.value = !0;
|
|
5187
5204
|
try {
|
|
5188
|
-
const O = await l.remoteMethod(
|
|
5205
|
+
const O = await l.remoteMethod(g);
|
|
5189
5206
|
O && (_.value = O);
|
|
5190
5207
|
} catch (O) {
|
|
5191
5208
|
_.value = null, console.error(O);
|
|
@@ -5193,14 +5210,14 @@ function N2(e, t, a, n) {
|
|
|
5193
5210
|
Q.value = !1;
|
|
5194
5211
|
});
|
|
5195
5212
|
let v = null;
|
|
5196
|
-
typeof l.filterMethod == "function" && (v = async (
|
|
5197
|
-
if (
|
|
5213
|
+
typeof l.filterMethod == "function" && (v = async (g) => {
|
|
5214
|
+
if (g == null) {
|
|
5198
5215
|
_.value = null;
|
|
5199
5216
|
return;
|
|
5200
5217
|
}
|
|
5201
5218
|
Q.value = !0;
|
|
5202
5219
|
try {
|
|
5203
|
-
const O = await l.filterMethod(
|
|
5220
|
+
const O = await l.filterMethod(g, c.value);
|
|
5204
5221
|
O && (_.value = O);
|
|
5205
5222
|
} catch (O) {
|
|
5206
5223
|
_.value = null, console.error(O);
|
|
@@ -5211,19 +5228,19 @@ function N2(e, t, a, n) {
|
|
|
5211
5228
|
[j]: !0,
|
|
5212
5229
|
disabled: i.value,
|
|
5213
5230
|
readonly: h.value
|
|
5214
|
-
})), X = x(() => ({ [`${j}__content`]: !0 })), V = (
|
|
5215
|
-
l.allowCreate || z() && Ce(l.multiple) ? (d("update:modelValue",
|
|
5231
|
+
})), X = x(() => ({ [`${j}__content`]: !0 })), V = (g) => {
|
|
5232
|
+
l.allowCreate || z() && Ce(l.multiple) ? (d("update:modelValue", g), d("change", g), d("update:text", g), p.value = g) : S(g, "value", T.value, !0);
|
|
5216
5233
|
};
|
|
5217
5234
|
let le = Ee(l, "hintText"), W = B(!1);
|
|
5218
|
-
const Z = (
|
|
5219
|
-
let O =
|
|
5220
|
-
P.value = !0, _e(le.value) || (W.value = !0), d("focus", O,
|
|
5221
|
-
}, q = (
|
|
5235
|
+
const Z = (g) => {
|
|
5236
|
+
let O = g.target.value;
|
|
5237
|
+
P.value = !0, _e(le.value) || (W.value = !0), d("focus", O, g);
|
|
5238
|
+
}, q = (g) => {
|
|
5222
5239
|
setTimeout(() => {
|
|
5223
5240
|
W.value && (W.value = !1), P.value = !1;
|
|
5224
5241
|
}, 0);
|
|
5225
|
-
const O =
|
|
5226
|
-
k.value || d("blur", O,
|
|
5242
|
+
const O = g.target.value;
|
|
5243
|
+
k.value || d("blur", O, g);
|
|
5227
5244
|
}, R = () => {
|
|
5228
5245
|
d("clear", "");
|
|
5229
5246
|
}, A = B(!1);
|
|
@@ -5234,16 +5251,16 @@ function N2(e, t, a, n) {
|
|
|
5234
5251
|
}, 150));
|
|
5235
5252
|
}, ee = () => {
|
|
5236
5253
|
J && (clearTimeout(J), A.value = !1, J = null);
|
|
5237
|
-
}, F = x(() => A.value || W.value), U = x(() => A.value ? b.value : le.value), k = B(!1), G = (
|
|
5238
|
-
k.value =
|
|
5239
|
-
}, ae = (
|
|
5240
|
-
d("remove-tag",
|
|
5241
|
-
}, H = (
|
|
5254
|
+
}, F = x(() => A.value || W.value), U = x(() => A.value ? b.value : le.value), k = B(!1), G = (g) => {
|
|
5255
|
+
k.value = g, d("visible-change", g), g || d("selected");
|
|
5256
|
+
}, ae = (g) => {
|
|
5257
|
+
d("remove-tag", g);
|
|
5258
|
+
}, H = (g, O) => {
|
|
5242
5259
|
const te = [];
|
|
5243
|
-
return
|
|
5244
|
-
const
|
|
5245
|
-
if (Array.isArray(
|
|
5246
|
-
const ve = H(
|
|
5260
|
+
return g.forEach((oe, de) => {
|
|
5261
|
+
const pe = $i(l, oe);
|
|
5262
|
+
if (Array.isArray(pe) && pe.length > 0) {
|
|
5263
|
+
const ve = H(pe, O), Te = Rt(l, oe), ze = {
|
|
5247
5264
|
key: `${Te}_${de}`,
|
|
5248
5265
|
label: Te
|
|
5249
5266
|
};
|
|
@@ -5270,19 +5287,19 @@ function N2(e, t, a, n) {
|
|
|
5270
5287
|
blur: () => {
|
|
5271
5288
|
w?.value.blur();
|
|
5272
5289
|
},
|
|
5273
|
-
setDisabled: (
|
|
5274
|
-
s.value =
|
|
5290
|
+
setDisabled: (g) => {
|
|
5291
|
+
s.value = g;
|
|
5275
5292
|
},
|
|
5276
|
-
setReadonly: (
|
|
5277
|
-
f.value =
|
|
5293
|
+
setReadonly: (g) => {
|
|
5294
|
+
f.value = g;
|
|
5278
5295
|
}
|
|
5279
5296
|
}), () => {
|
|
5280
5297
|
if (u.value === "on" && (h.value || i.value)) return n({
|
|
5281
|
-
modelValue:
|
|
5298
|
+
modelValue: p.value,
|
|
5282
5299
|
source: T.value,
|
|
5283
5300
|
unit: l.unit
|
|
5284
5301
|
}, r.slots);
|
|
5285
|
-
const
|
|
5302
|
+
const g = {
|
|
5286
5303
|
...kt(r.attrs),
|
|
5287
5304
|
ref: w,
|
|
5288
5305
|
class: X.value,
|
|
@@ -5290,9 +5307,13 @@ function N2(e, t, a, n) {
|
|
|
5290
5307
|
multiple: l.multiple,
|
|
5291
5308
|
placeholder: y.placeholder.value,
|
|
5292
5309
|
disabled: i.value || h.value,
|
|
5293
|
-
modelValue:
|
|
5310
|
+
modelValue: p.value,
|
|
5294
5311
|
"value-key": l.valueKey,
|
|
5295
5312
|
"allow-create": l.allowCreate,
|
|
5313
|
+
"popper-class": l.popperClass,
|
|
5314
|
+
"popper-style": l.popperStyle,
|
|
5315
|
+
"show-arrow": l.showArrow,
|
|
5316
|
+
"append-to": l.appendTo,
|
|
5296
5317
|
onClear: R,
|
|
5297
5318
|
onChange: V,
|
|
5298
5319
|
onFocus: Z,
|
|
@@ -5300,14 +5321,14 @@ function N2(e, t, a, n) {
|
|
|
5300
5321
|
onVisibleChange: G,
|
|
5301
5322
|
onRemoveTag: ae
|
|
5302
5323
|
};
|
|
5303
|
-
typeof $ == "function" && (
|
|
5324
|
+
typeof $ == "function" && (g["remote-method"] = $, g.loading = Q.value), typeof v == "function" && (g["filter-method"] = v, g.loading = Q.value);
|
|
5304
5325
|
const O = {};
|
|
5305
5326
|
r.slots.prefix && (O.prefix = r.slots.prefix), r.slots.empty && (O.empty = r.slots.empty), r.slots.options ? O.default = r.slots.options : O.default = () => H(T.value, r.slots.option);
|
|
5306
|
-
const te = [], oe = E(Lr,
|
|
5327
|
+
const te = [], oe = E(Lr, g, O);
|
|
5307
5328
|
te.push(oe);
|
|
5308
5329
|
const de = { default: () => te };
|
|
5309
5330
|
de.label = r.slots.default, de.fixedPreTip = r.slots.fixedPreTip, de.fixedTip = r.slots.fixedTip;
|
|
5310
|
-
const
|
|
5331
|
+
const pe = {
|
|
5311
5332
|
...et(l, Mi),
|
|
5312
5333
|
ref: o,
|
|
5313
5334
|
class: K.value,
|
|
@@ -5316,7 +5337,7 @@ function N2(e, t, a, n) {
|
|
|
5316
5337
|
onMouseover: re,
|
|
5317
5338
|
onMouseleave: ee
|
|
5318
5339
|
};
|
|
5319
|
-
return l.prop && (
|
|
5340
|
+
return l.prop && (pe.prop = `${l.prop}_item`), M.value && (pe["appear-listen"] = !0, pe.onAppear = N), a(pe, de);
|
|
5320
5341
|
};
|
|
5321
5342
|
}
|
|
5322
5343
|
};
|
|
@@ -5326,7 +5347,7 @@ var { componentName: C2, create: k2, scope: T2 } = he("select-item"), _2 = k2(N2
|
|
|
5326
5347
|
typeof e == "object" && typeof t < "u" ? t.exports = n() : typeof define == "function" && define.amd ? define(n) : (a = typeof globalThis < "u" ? globalThis : a || self).dayjs = n();
|
|
5327
5348
|
})(e, (function() {
|
|
5328
5349
|
"use strict";
|
|
5329
|
-
var a = 1e3, n = 6e4, l = 36e5, r = "millisecond", o = "second", s = "minute", i = "hour", f = "day", h = "week", u = "month", d = "quarter", D = "year", C = "date", y = "Invalid Date",
|
|
5350
|
+
var a = 1e3, n = 6e4, l = 36e5, r = "millisecond", o = "second", s = "minute", i = "hour", f = "day", h = "week", u = "month", d = "quarter", D = "year", C = "date", y = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = {
|
|
5330
5351
|
name: "en",
|
|
5331
5352
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
5332
5353
|
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
@@ -5415,7 +5436,7 @@ var { componentName: C2, create: k2, scope: T2 } = he("select-item"), _2 = k2(N2
|
|
|
5415
5436
|
if (N.u(K)) return /* @__PURE__ */ new Date();
|
|
5416
5437
|
if (K instanceof Date) return new Date(K);
|
|
5417
5438
|
if (typeof K == "string" && !/Z$/i.test(K)) {
|
|
5418
|
-
var V = K.match(
|
|
5439
|
+
var V = K.match(p);
|
|
5419
5440
|
if (V) {
|
|
5420
5441
|
var le = V[2] - 1 || 0, W = (V[7] || "0").substring(0, 3);
|
|
5421
5442
|
return X ? new Date(Date.UTC(V[1], le, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, W)) : new Date(V[1], le, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, W);
|
|
@@ -5660,48 +5681,48 @@ var { componentName: C2, create: k2, scope: T2 } = he("select-item"), _2 = k2(N2
|
|
|
5660
5681
|
LL: "MMMM D, YYYY",
|
|
5661
5682
|
LLL: "MMMM D, YYYY h:mm A",
|
|
5662
5683
|
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
5663
|
-
}, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, l = /\d/, r = /\d\d/, o = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, i = {}, f = function(
|
|
5664
|
-
return (
|
|
5665
|
-
}, h = function(
|
|
5684
|
+
}, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, l = /\d/, r = /\d\d/, o = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, i = {}, f = function(p) {
|
|
5685
|
+
return (p = +p) + (p > 68 ? 1900 : 2e3);
|
|
5686
|
+
}, h = function(p) {
|
|
5666
5687
|
return function(m) {
|
|
5667
|
-
this[
|
|
5688
|
+
this[p] = +m;
|
|
5668
5689
|
};
|
|
5669
|
-
}, u = [/[+-]\d\d:?(\d\d)?|Z/, function(
|
|
5690
|
+
}, u = [/[+-]\d\d:?(\d\d)?|Z/, function(p) {
|
|
5670
5691
|
(this.zone || (this.zone = {})).offset = (function(m) {
|
|
5671
5692
|
if (!m || m === "Z") return 0;
|
|
5672
5693
|
var b = m.match(/([+-]|\d\d)/g), S = 60 * b[1] + (+b[2] || 0);
|
|
5673
5694
|
return S === 0 ? 0 : b[0] === "+" ? -S : S;
|
|
5674
|
-
})(
|
|
5675
|
-
}], d = function(
|
|
5676
|
-
var m = i[
|
|
5695
|
+
})(p);
|
|
5696
|
+
}], d = function(p) {
|
|
5697
|
+
var m = i[p];
|
|
5677
5698
|
return m && (m.indexOf ? m : m.s.concat(m.f));
|
|
5678
|
-
}, D = function(
|
|
5699
|
+
}, D = function(p, m) {
|
|
5679
5700
|
var b, S = i.meridiem;
|
|
5680
5701
|
if (S) {
|
|
5681
|
-
for (var c = 1; c <= 24; c += 1) if (
|
|
5702
|
+
for (var c = 1; c <= 24; c += 1) if (p.indexOf(S(c, 0, m)) > -1) {
|
|
5682
5703
|
b = c > 12;
|
|
5683
5704
|
break;
|
|
5684
5705
|
}
|
|
5685
|
-
} else b =
|
|
5706
|
+
} else b = p === (m ? "pm" : "PM");
|
|
5686
5707
|
return b;
|
|
5687
5708
|
}, C = {
|
|
5688
|
-
A: [s, function(
|
|
5689
|
-
this.afternoon = D(
|
|
5709
|
+
A: [s, function(p) {
|
|
5710
|
+
this.afternoon = D(p, !1);
|
|
5690
5711
|
}],
|
|
5691
|
-
a: [s, function(
|
|
5692
|
-
this.afternoon = D(
|
|
5712
|
+
a: [s, function(p) {
|
|
5713
|
+
this.afternoon = D(p, !0);
|
|
5693
5714
|
}],
|
|
5694
|
-
Q: [l, function(
|
|
5695
|
-
this.month = 3 * (
|
|
5715
|
+
Q: [l, function(p) {
|
|
5716
|
+
this.month = 3 * (p - 1) + 1;
|
|
5696
5717
|
}],
|
|
5697
|
-
S: [l, function(
|
|
5698
|
-
this.milliseconds = 100 * +
|
|
5718
|
+
S: [l, function(p) {
|
|
5719
|
+
this.milliseconds = 100 * +p;
|
|
5699
5720
|
}],
|
|
5700
|
-
SS: [r, function(
|
|
5701
|
-
this.milliseconds = 10 * +
|
|
5721
|
+
SS: [r, function(p) {
|
|
5722
|
+
this.milliseconds = 10 * +p;
|
|
5702
5723
|
}],
|
|
5703
|
-
SSS: [/\d{3}/, function(
|
|
5704
|
-
this.milliseconds = +
|
|
5724
|
+
SSS: [/\d{3}/, function(p) {
|
|
5725
|
+
this.milliseconds = +p;
|
|
5705
5726
|
}],
|
|
5706
5727
|
s: [o, h("seconds")],
|
|
5707
5728
|
ss: [o, h("seconds")],
|
|
@@ -5713,36 +5734,36 @@ var { componentName: C2, create: k2, scope: T2 } = he("select-item"), _2 = k2(N2
|
|
|
5713
5734
|
hh: [o, h("hours")],
|
|
5714
5735
|
D: [o, h("day")],
|
|
5715
5736
|
DD: [r, h("day")],
|
|
5716
|
-
Do: [s, function(
|
|
5717
|
-
var m = i.ordinal, b =
|
|
5718
|
-
if (this.day = b[0], m) for (var S = 1; S <= 31; S += 1) m(S).replace(/\[|\]/g, "") ===
|
|
5737
|
+
Do: [s, function(p) {
|
|
5738
|
+
var m = i.ordinal, b = p.match(/\d+/);
|
|
5739
|
+
if (this.day = b[0], m) for (var S = 1; S <= 31; S += 1) m(S).replace(/\[|\]/g, "") === p && (this.day = S);
|
|
5719
5740
|
}],
|
|
5720
5741
|
w: [o, h("week")],
|
|
5721
5742
|
ww: [r, h("week")],
|
|
5722
5743
|
M: [o, h("month")],
|
|
5723
5744
|
MM: [r, h("month")],
|
|
5724
|
-
MMM: [s, function(
|
|
5745
|
+
MMM: [s, function(p) {
|
|
5725
5746
|
var m = d("months"), b = (d("monthsShort") || m.map((function(S) {
|
|
5726
5747
|
return S.slice(0, 3);
|
|
5727
|
-
}))).indexOf(
|
|
5748
|
+
}))).indexOf(p) + 1;
|
|
5728
5749
|
if (b < 1) throw new Error();
|
|
5729
5750
|
this.month = b % 12 || b;
|
|
5730
5751
|
}],
|
|
5731
|
-
MMMM: [s, function(
|
|
5732
|
-
var m = d("months").indexOf(
|
|
5752
|
+
MMMM: [s, function(p) {
|
|
5753
|
+
var m = d("months").indexOf(p) + 1;
|
|
5733
5754
|
if (m < 1) throw new Error();
|
|
5734
5755
|
this.month = m % 12 || m;
|
|
5735
5756
|
}],
|
|
5736
5757
|
Y: [/[+-]?\d+/, h("year")],
|
|
5737
|
-
YY: [r, function(
|
|
5738
|
-
this.year = f(
|
|
5758
|
+
YY: [r, function(p) {
|
|
5759
|
+
this.year = f(p);
|
|
5739
5760
|
}],
|
|
5740
5761
|
YYYY: [/\d{4}/, h("year")],
|
|
5741
5762
|
Z: u,
|
|
5742
5763
|
ZZ: u
|
|
5743
5764
|
};
|
|
5744
|
-
function y(
|
|
5745
|
-
for (var m =
|
|
5765
|
+
function y(p) {
|
|
5766
|
+
for (var m = p, b = i && i.formats, S = (p = m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(I, N, $) {
|
|
5746
5767
|
var Q = $ && $.toUpperCase();
|
|
5747
5768
|
return N || b[$] || a[$] || b[Q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(v, z, P) {
|
|
5748
5769
|
return z || P.slice(1);
|
|
@@ -5772,8 +5793,8 @@ var { componentName: C2, create: k2, scope: T2 } = he("select-item"), _2 = k2(N2
|
|
|
5772
5793
|
})(N), N;
|
|
5773
5794
|
};
|
|
5774
5795
|
}
|
|
5775
|
-
return function(
|
|
5776
|
-
b.p.customParseFormat = !0,
|
|
5796
|
+
return function(p, m, b) {
|
|
5797
|
+
b.p.customParseFormat = !0, p && p.parseTwoDigitYear && (f = p.parseTwoDigitYear);
|
|
5777
5798
|
var S = m.prototype, c = S.parse;
|
|
5778
5799
|
S.parse = function(_) {
|
|
5779
5800
|
var T = _.date, M = _.utc, Y = _.args;
|
|
@@ -5786,8 +5807,8 @@ var { componentName: C2, create: k2, scope: T2 } = he("select-item"), _2 = k2(N2
|
|
|
5786
5807
|
if (["x", "X"].indexOf(K) > -1) return /* @__PURE__ */ new Date((K === "X" ? 1e3 : 1) * j);
|
|
5787
5808
|
var le = y(K)(j), W = le.year, Z = le.month, q = le.day, R = le.hours, A = le.minutes, J = le.seconds, re = le.milliseconds, ee = le.zone, F = le.week, U = /* @__PURE__ */ new Date(), k = q || (W || Z ? 1 : U.getDate()), G = W || U.getFullYear(), ae = 0;
|
|
5788
5809
|
W && !Z || (ae = Z > 0 ? Z - 1 : U.getMonth());
|
|
5789
|
-
var H, w = R || 0,
|
|
5790
|
-
return ee ? new Date(Date.UTC(G, ae, k, w,
|
|
5810
|
+
var H, w = R || 0, g = A || 0, O = J || 0, te = re || 0;
|
|
5811
|
+
return ee ? new Date(Date.UTC(G, ae, k, w, g, O, te + 60 * ee.offset * 1e3)) : X ? new Date(Date.UTC(G, ae, k, w, g, O, te)) : (H = new Date(G, ae, k, w, g, O, te), F && (H = V(H).week(F).toDate()), H);
|
|
5791
5812
|
} catch {
|
|
5792
5813
|
return /* @__PURE__ */ new Date("");
|
|
5793
5814
|
}
|
|
@@ -5861,11 +5882,11 @@ var { componentName: C2, create: k2, scope: T2 } = he("select-item"), _2 = k2(N2
|
|
|
5861
5882
|
var r = n.prototype, o = function(u) {
|
|
5862
5883
|
return u && (u.indexOf ? u : u.s);
|
|
5863
5884
|
}, s = function(u, d, D, C, y) {
|
|
5864
|
-
var
|
|
5885
|
+
var p = u.name ? u : u.$locale(), m = o(p[d]), b = o(p[D]), S = m || b.map((function(_) {
|
|
5865
5886
|
return _.slice(0, C);
|
|
5866
5887
|
}));
|
|
5867
5888
|
if (!y) return S;
|
|
5868
|
-
var c =
|
|
5889
|
+
var c = p.weekStart;
|
|
5869
5890
|
return S.map((function(_, T) {
|
|
5870
5891
|
return S[(T + (c || 0)) % 7];
|
|
5871
5892
|
}));
|
|
@@ -5873,8 +5894,8 @@ var { componentName: C2, create: k2, scope: T2 } = he("select-item"), _2 = k2(N2
|
|
|
5873
5894
|
return l.Ls[l.locale()];
|
|
5874
5895
|
}, f = function(u, d) {
|
|
5875
5896
|
return u.formats[d] || (function(D) {
|
|
5876
|
-
return D.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(C, y,
|
|
5877
|
-
return y ||
|
|
5897
|
+
return D.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(C, y, p) {
|
|
5898
|
+
return y || p.slice(1);
|
|
5878
5899
|
}));
|
|
5879
5900
|
})(u.formats[d.toUpperCase()]);
|
|
5880
5901
|
}, h = function() {
|
|
@@ -6219,10 +6240,10 @@ function Y2(e, t, a, n) {
|
|
|
6219
6240
|
get templateRefProxy() {
|
|
6220
6241
|
return o.value;
|
|
6221
6242
|
}
|
|
6222
|
-
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]),
|
|
6243
|
+
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]), p = B(!1), m = Ee(l, "modelValue", null, d), b = x(() => W.value && Array.isArray(m.value) && m.value.length == 2 ? m.value[0] : m.value), S = x(() => W.value ? "longTermKey" : "normalKey"), c = (w) => {
|
|
6223
6244
|
if (W.value && l.type === "daterange") {
|
|
6224
|
-
const
|
|
6225
|
-
|
|
6245
|
+
const g = [...m.value];
|
|
6246
|
+
g[0] = w, m.value = g;
|
|
6226
6247
|
} else m.value = w;
|
|
6227
6248
|
d("update:modelValue", m.value), d("change", m.value);
|
|
6228
6249
|
}, _ = x(() => W.value && l.type === "daterange" ? "date" : l.type), T = Ce(l.isLongTerm), M = e, Y = x(() => ({
|
|
@@ -6234,33 +6255,33 @@ function Y2(e, t, a, n) {
|
|
|
6234
6255
|
})), L = x(() => ({ [`${M}__content`]: !0 }));
|
|
6235
6256
|
let I = Ee(l, "hintText"), N = B(!1);
|
|
6236
6257
|
const $ = (w) => {
|
|
6237
|
-
let
|
|
6238
|
-
|
|
6258
|
+
let g = w.target.value;
|
|
6259
|
+
p.value = !0, _e(I.value) || (N.value = !0), d("focus", g, w);
|
|
6239
6260
|
}, Q = (w) => {
|
|
6240
6261
|
setTimeout(() => {
|
|
6241
|
-
N.value && (N.value = !1),
|
|
6262
|
+
N.value && (N.value = !1), p.value = !1;
|
|
6242
6263
|
}, 0);
|
|
6243
|
-
let
|
|
6244
|
-
l.maxLength &&
|
|
6264
|
+
let g = w.target.value;
|
|
6265
|
+
l.maxLength && g.length > Number(l.maxLength) && (g = g.slice(0, Number(l.maxLength))), d("blur", g, w);
|
|
6245
6266
|
}, v = () => {
|
|
6246
6267
|
d("clear", "");
|
|
6247
6268
|
}, z = (w) => {
|
|
6248
6269
|
d("calendar-change", w);
|
|
6249
|
-
}, P = (w,
|
|
6250
|
-
d("panel-change", w,
|
|
6270
|
+
}, P = (w, g, O) => {
|
|
6271
|
+
d("panel-change", w, g, O);
|
|
6251
6272
|
}, j = (w) => {
|
|
6252
6273
|
d("visible-change", w);
|
|
6253
6274
|
}, K = Ze(x(() => l.longTermText), "longTermText", St.Near), X = Ze(x(() => l.longTermActionLabel), "longTermActionLabel", St.Near), V = Ze(x(() => l.longTermValue), "longTermValue", St.Near);
|
|
6254
6275
|
Ze(x(() => l.compatibleLongTermValue), "compatibleLongTermValue", St.Near);
|
|
6255
6276
|
let le = null;
|
|
6256
6277
|
const W = B(Ce(l.longTerm)), Z = (w) => {
|
|
6257
|
-
const
|
|
6258
|
-
return Array.isArray(V.value) ?
|
|
6278
|
+
const g = [Array.isArray(w) ? w[0] : w];
|
|
6279
|
+
return Array.isArray(V.value) ? g[1] = V.value[1] ?? V.value[0] : g[1] = W.value, g[0] || (g[0] = l.valueFormat ? Tt.format(/* @__PURE__ */ new Date(), l.valueFormat) : /* @__PURE__ */ new Date()), g[1] || (g[1] = l.valueFormat ? Tt.format(/* @__PURE__ */ new Date(), l.valueFormat) : /* @__PURE__ */ new Date()), g;
|
|
6259
6280
|
}, q = (w) => {
|
|
6260
6281
|
if (W.value = w, d("update:longTerm", w), w) {
|
|
6261
6282
|
le = m.value;
|
|
6262
|
-
const
|
|
6263
|
-
l.type === "daterange" ? m.value =
|
|
6283
|
+
const g = Z(m.value);
|
|
6284
|
+
l.type === "daterange" ? m.value = g : m.value = g[1], d("update:modelValue", m.value);
|
|
6264
6285
|
} else
|
|
6265
6286
|
m.value = le, d("update:modelValue", m.value), setTimeout(() => {
|
|
6266
6287
|
G();
|
|
@@ -6270,20 +6291,20 @@ function Y2(e, t, a, n) {
|
|
|
6270
6291
|
const w = () => {
|
|
6271
6292
|
if (W.value === !0) {
|
|
6272
6293
|
le = m.value;
|
|
6273
|
-
const
|
|
6274
|
-
l.type === "daterange" ? m.value =
|
|
6294
|
+
const g = Z(m.value);
|
|
6295
|
+
l.type === "daterange" ? m.value = g : m.value = g[1], d("update:modelValue", m.value);
|
|
6275
6296
|
} else Ct(V.value, m.value) && (W.value = !0);
|
|
6276
6297
|
};
|
|
6277
|
-
w(), fe([() => l.longTerm], ([
|
|
6278
|
-
W.value !==
|
|
6298
|
+
w(), fe([() => l.longTerm], ([g]) => {
|
|
6299
|
+
W.value !== g && w();
|
|
6279
6300
|
});
|
|
6280
6301
|
}
|
|
6281
6302
|
const R = x(() => ({
|
|
6282
6303
|
"fox-date-item__long": !0,
|
|
6283
|
-
"is-active":
|
|
6284
|
-
})), A = B(), J = /^\d+$/, re = (w,
|
|
6304
|
+
"is-active": p.value
|
|
6305
|
+
})), A = B(), J = /^\d+$/, re = (w, g) => typeof l.flashFillThreshold == "function" ? l.flashFillThreshold(w, g) : J.test(w) && w.length === l.flashFillThreshold, ee = (w, g) => {
|
|
6285
6306
|
let O;
|
|
6286
|
-
if (typeof l.flashFillFormat == "function") O = l.flashFillFormat(w,
|
|
6307
|
+
if (typeof l.flashFillFormat == "function") O = l.flashFillFormat(w, g);
|
|
6287
6308
|
else {
|
|
6288
6309
|
const oe = l.flashFillFormat ?? "YYYYMMDD";
|
|
6289
6310
|
O = Tt.parser(w, oe);
|
|
@@ -6292,9 +6313,9 @@ function Y2(e, t, a, n) {
|
|
|
6292
6313
|
return Tt.format(O, te);
|
|
6293
6314
|
}, F = (w) => w ? w.endsWith("range") : !1, U = (w) => {
|
|
6294
6315
|
if (!w.target) return;
|
|
6295
|
-
const
|
|
6296
|
-
if (re(
|
|
6297
|
-
const O = ee(
|
|
6316
|
+
const g = w.target.value ?? "";
|
|
6317
|
+
if (re(g, l.type)) {
|
|
6318
|
+
const O = ee(g, l.type);
|
|
6298
6319
|
if (F(l.type)) {
|
|
6299
6320
|
const te = Array.isArray(m.value) ? [...m.value] : [];
|
|
6300
6321
|
te[0] = O, c(te);
|
|
@@ -6302,9 +6323,9 @@ function Y2(e, t, a, n) {
|
|
|
6302
6323
|
}
|
|
6303
6324
|
}, k = (w) => {
|
|
6304
6325
|
if (!w.target) return;
|
|
6305
|
-
const
|
|
6306
|
-
if (re(
|
|
6307
|
-
const O = ee(
|
|
6326
|
+
const g = w.target.value ?? "";
|
|
6327
|
+
if (re(g, l.type)) {
|
|
6328
|
+
const O = ee(g, l.type);
|
|
6308
6329
|
if (F(l.type)) {
|
|
6309
6330
|
const te = Array.isArray(m.value) ? [...m.value] : [];
|
|
6310
6331
|
te[1] = O, c(te);
|
|
@@ -6327,7 +6348,7 @@ function Y2(e, t, a, n) {
|
|
|
6327
6348
|
w && w.removeEventListener("input", U);
|
|
6328
6349
|
}
|
|
6329
6350
|
};
|
|
6330
|
-
Re(G),
|
|
6351
|
+
Re(G), gt(ae), D({
|
|
6331
6352
|
focus: () => {
|
|
6332
6353
|
A?.value.focus();
|
|
6333
6354
|
},
|
|
@@ -6349,14 +6370,14 @@ function Y2(e, t, a, n) {
|
|
|
6349
6370
|
});
|
|
6350
6371
|
const H = x(() => {
|
|
6351
6372
|
if (Qe(b.value)) return "";
|
|
6352
|
-
const w = l.rangeSeparator ?? " - ",
|
|
6353
|
-
T && W.value && (
|
|
6373
|
+
const w = l.rangeSeparator ?? " - ", g = Array.isArray(b.value) ? b.value : [b.value];
|
|
6374
|
+
T && W.value && (g[1] = K.value);
|
|
6354
6375
|
const O = [];
|
|
6355
|
-
for (let oe = 0; oe <
|
|
6356
|
-
const de =
|
|
6376
|
+
for (let oe = 0; oe < g.length; oe++) {
|
|
6377
|
+
const de = g[oe];
|
|
6357
6378
|
if (typeof de == "string" && O.push(de), de instanceof Date) {
|
|
6358
|
-
const
|
|
6359
|
-
O.push(
|
|
6379
|
+
const pe = Tt.format(de, l.format);
|
|
6380
|
+
O.push(pe);
|
|
6360
6381
|
}
|
|
6361
6382
|
}
|
|
6362
6383
|
const te = ` ${w} `;
|
|
@@ -6385,34 +6406,34 @@ function Y2(e, t, a, n) {
|
|
|
6385
6406
|
onCalendarChange: z,
|
|
6386
6407
|
onPanelChange: P,
|
|
6387
6408
|
onVisibleChange: j
|
|
6388
|
-
},
|
|
6389
|
-
r.slots["range-separator"] && (
|
|
6390
|
-
const O = [], te = E($r, w,
|
|
6409
|
+
}, g = {};
|
|
6410
|
+
r.slots["range-separator"] && (g["range-separator"] = r.slots["range-separator"]), r.slots.cell && (g.default = r.slots.cell);
|
|
6411
|
+
const O = [], te = E($r, w, g);
|
|
6391
6412
|
O.push(te);
|
|
6392
6413
|
const oe = { default: () => O };
|
|
6393
6414
|
if (oe.label = r.slots.default, oe.fixedPreTip = r.slots.fixedPreTip, oe.fixedTip = r.slots.fixedTip, r.slots.prepend && (oe.prepend = r.slots.prepend), r.slots.append && (oe.append = r.slots.append), T) {
|
|
6394
6415
|
if (W.value) {
|
|
6395
|
-
const
|
|
6416
|
+
const pe = E("input", {
|
|
6396
6417
|
class: ["fox-date-item__long-text"],
|
|
6397
6418
|
value: K.value,
|
|
6398
6419
|
readonly: !0
|
|
6399
6420
|
}), ve = { class: R.value };
|
|
6400
6421
|
if (l.type === "daterange") {
|
|
6401
|
-
const Te = E("span", { class: ["fox-date-item__long-splitor"] }, ["-"]), ze = E("div", ve, { default: () => [Te,
|
|
6422
|
+
const Te = E("span", { class: ["fox-date-item__long-splitor"] }, ["-"]), ze = E("div", ve, { default: () => [Te, pe] });
|
|
6402
6423
|
O.push(ze);
|
|
6403
6424
|
} else {
|
|
6404
6425
|
O.splice(0, O.length);
|
|
6405
|
-
const Te = E("div", ve, { default: () => [
|
|
6426
|
+
const Te = E("div", ve, { default: () => [pe] });
|
|
6406
6427
|
O.push(Te);
|
|
6407
6428
|
}
|
|
6408
6429
|
}
|
|
6409
6430
|
if (!h.value && !i.value) {
|
|
6410
|
-
const
|
|
6431
|
+
const pe = E(dl, {
|
|
6411
6432
|
label: X.value || K.value,
|
|
6412
6433
|
disabled: h.value || i.value,
|
|
6413
6434
|
modelValue: W.value,
|
|
6414
6435
|
"onUpdate:modelValue": q
|
|
6415
|
-
}), ve = E("div", { class: { [`${M}__append`]: !0 } }, [
|
|
6436
|
+
}), ve = E("div", { class: { [`${M}__append`]: !0 } }, [pe]);
|
|
6416
6437
|
oe.append = () => ve;
|
|
6417
6438
|
}
|
|
6418
6439
|
}
|
|
@@ -6661,10 +6682,10 @@ var { componentName: U2, create: G2, scope: X2 } = he("date-item"), Q2 = G2(Y2(U
|
|
|
6661
6682
|
});
|
|
6662
6683
|
a.visible && (l.zIndex = jn());
|
|
6663
6684
|
const r = x(() => {
|
|
6664
|
-
const y = e,
|
|
6665
|
-
return a.round &&
|
|
6666
|
-
|
|
6667
|
-
}),
|
|
6685
|
+
const y = e, p = [y, `${y}--${a.position}`];
|
|
6686
|
+
return a.round && p.push("round"), a.position === "bottom" && a.safeAreaInsetBottom && p.push(`${y}--${a.position}--safebottom`), typeof a.popClass == "string" ? p.push(a.popClass) : Array.isArray(a.popClass) && a.popClass.forEach((m) => {
|
|
6687
|
+
p.push(m);
|
|
6688
|
+
}), p;
|
|
6668
6689
|
}), o = x(() => ({
|
|
6669
6690
|
zIndex: l.zIndex,
|
|
6670
6691
|
transitionDuration: `${a.duration}s`,
|
|
@@ -6943,7 +6964,7 @@ var f0 = ["aria-labelledby"], d0 = /* @__PURE__ */ ot({
|
|
|
6943
6964
|
}, null, -1)]], 14, f0));
|
|
6944
6965
|
}
|
|
6945
6966
|
});
|
|
6946
|
-
var h0 = ["aria-labelledby"],
|
|
6967
|
+
var h0 = ["aria-labelledby"], p0 = /* @__PURE__ */ ot({
|
|
6947
6968
|
__name: "Search2",
|
|
6948
6969
|
props: {
|
|
6949
6970
|
class: {
|
|
@@ -7000,7 +7021,7 @@ var h0 = ["aria-labelledby"], g0 = /* @__PURE__ */ ot({
|
|
|
7000
7021
|
}, null, -1)]], 14, h0));
|
|
7001
7022
|
}
|
|
7002
7023
|
});
|
|
7003
|
-
var
|
|
7024
|
+
var g0 = ["aria-labelledby"], m0 = /* @__PURE__ */ ot({
|
|
7004
7025
|
__name: "Right",
|
|
7005
7026
|
props: {
|
|
7006
7027
|
class: {
|
|
@@ -7054,7 +7075,7 @@ var p0 = ["aria-labelledby"], m0 = /* @__PURE__ */ ot({
|
|
|
7054
7075
|
d: "M381.262 1005.563c-16.132 21.51-45.708 24.198-67.216 8.066-21.51-16.132-24.198-45.708-8.066-67.217C413.526 806.602 518.384 666.79 625.932 529.67c8.066-10.755 8.066-24.198 0-34.953C518.384 354.905 413.526 215.093 305.98 77.972c-16.132-21.51-10.755-51.085 8.066-67.217C335.556-5.377 365.13 0 381.262 18.82c107.547 142.5 212.405 282.31 319.952 419.433 34.952 43.019 34.952 104.858 0 150.565C593.667 728.63 488.81 868.44 381.262 1005.562",
|
|
7055
7076
|
fill: "currentColor",
|
|
7056
7077
|
"fill-opacity": "0.9"
|
|
7057
|
-
}, null, -1)]], 14,
|
|
7078
|
+
}, null, -1)]], 14, g0));
|
|
7058
7079
|
}
|
|
7059
7080
|
});
|
|
7060
7081
|
var v0 = ["aria-labelledby"], y0 = /* @__PURE__ */ ot({
|
|
@@ -7687,7 +7708,7 @@ var ll = /* @__PURE__ */ We(V0, [["render", P0]]), { create: L0, scope: E0 } = h
|
|
|
7687
7708
|
"startText",
|
|
7688
7709
|
"endText",
|
|
7689
7710
|
"today"
|
|
7690
|
-
]), s = x(() => ({ height: "39px" })), i = x(() => ({ height: "64px" })), f = JSON.parse(r("weekdays")), h = B([...f.slice(e.firstDayOfWeek, 7), ...f.slice(0, e.firstDayOfWeek)]), u = B(null), d = B(null), D = B(null), C = B(null), y = B(0),
|
|
7711
|
+
]), s = x(() => ({ height: "39px" })), i = x(() => ({ height: "64px" })), f = JSON.parse(r("weekdays")), h = B([...f.slice(e.firstDayOfWeek, 7), ...f.slice(0, e.firstDayOfWeek)]), u = B(null), d = B(null), D = B(null), C = B(null), y = B(0), p = x(() => c.monthsData.slice(c.defaultRange[0], c.defaultRange[1])), m = x(() => a.btn), b = x(() => a["top-info"]), S = x(() => a["bottom-info"]), c = mt({
|
|
7691
7712
|
yearMonthTitle: "",
|
|
7692
7713
|
defaultRange: [],
|
|
7693
7714
|
currDate: "",
|
|
@@ -7731,23 +7752,23 @@ var ll = /* @__PURE__ */ We(V0, [["render", P0]]), { create: L0, scope: E0 } = h
|
|
|
7731
7752
|
const { type: G } = e;
|
|
7732
7753
|
let [ae, H] = U.curData, w = [...U.curData];
|
|
7733
7754
|
if (w[2] = ye.getNumTwoBit(Number(F.day)), w[3] = `${w[0]}-${w[1]}-${w[2]}`, w[4] = ye.getWhatDay(+w[0], +w[1], +w[2]), G == "multiple") if (c.currDate?.length > 0) {
|
|
7734
|
-
let
|
|
7755
|
+
let g;
|
|
7735
7756
|
c.currDate?.forEach((O, te) => {
|
|
7736
|
-
O == w[3] && (
|
|
7737
|
-
}), k ? c.chooseData.push([...w]) :
|
|
7757
|
+
O == w[3] && (g = te);
|
|
7758
|
+
}), k ? c.chooseData.push([...w]) : g !== void 0 ? (c.currDate.splice(g, 1), c.chooseData.splice(g, 1)) : (c.currDate.push(w[3]), c.chooseData.push([...w]));
|
|
7738
7759
|
} else
|
|
7739
7760
|
c.currDate = [w[3]], c.chooseData = [[...w]];
|
|
7740
7761
|
else if (G == "range") {
|
|
7741
|
-
let
|
|
7742
|
-
|
|
7762
|
+
let g = Object.values(c.currDate).length;
|
|
7763
|
+
g == 2 || g == 0 ? c.currDate = [w[3]] : ye.compareDate(c.currDate[0], w[3]) ? Array.isArray(c.currDate) && c.currDate.push(w[3]) : Array.isArray(c.currDate) && c.currDate.unshift(w[3]), c.chooseData.length == 2 || !c.chooseData.length ? c.chooseData = [[...w]] : ye.compareDate(c.chooseData[0][3], w[3]) ? c.chooseData = [...c.chooseData, [...w]] : c.chooseData = [[...w], ...c.chooseData];
|
|
7743
7764
|
} else if (G == "week") {
|
|
7744
|
-
let
|
|
7745
|
-
c.propStartDate && ye.compareDate(
|
|
7765
|
+
let g = ye.getWeekDate(ae, H, F.day, e.firstDayOfWeek);
|
|
7766
|
+
c.propStartDate && ye.compareDate(g[0], c.propStartDate) && g.splice(0, 1, c.propStartDate), c.propEndDate && ye.compareDate(c.propEndDate, g[1]) && g.splice(1, 1, c.propEndDate), c.currDate = g, c.chooseData = [ye.formatResultDate(g[0]), ye.formatResultDate(g[1])];
|
|
7746
7767
|
} else
|
|
7747
7768
|
c.currDate = w[3], c.chooseData = [...w];
|
|
7748
7769
|
if (!k) {
|
|
7749
|
-
let
|
|
7750
|
-
G == "week" && (
|
|
7770
|
+
let g = c.chooseData;
|
|
7771
|
+
G == "week" && (g = { weekDate: [Q(c.chooseData[0]), Q(c.chooseData[1])] }), t("select", g), (e.isAutoBackFill || !e.poppable) && N();
|
|
7751
7772
|
}
|
|
7752
7773
|
}
|
|
7753
7774
|
}, Q = (F) => {
|
|
@@ -7784,8 +7805,8 @@ var ll = /* @__PURE__ */ We(V0, [["render", P0]]), { create: L0, scope: E0 } = h
|
|
|
7784
7805
|
}, P = (F, U, k, G) => {
|
|
7785
7806
|
F = F - e.firstDayOfWeek;
|
|
7786
7807
|
let { year: ae, month: H } = k;
|
|
7787
|
-
return U == "prev" && F >= 7 && (F -= 7), Array.from(Array(G), (w,
|
|
7788
|
-
day: String(
|
|
7808
|
+
return U == "prev" && F >= 7 && (F -= 7), Array.from(Array(G), (w, g) => ({
|
|
7809
|
+
day: String(g + 1),
|
|
7789
7810
|
type: U,
|
|
7790
7811
|
year: ae,
|
|
7791
7812
|
month: H
|
|
@@ -7794,19 +7815,19 @@ var ll = /* @__PURE__ */ We(V0, [["render", P0]]), { create: L0, scope: E0 } = h
|
|
|
7794
7815
|
const k = ye.getMonthPreDay(+F[0], +F[1]);
|
|
7795
7816
|
let G = Number(F[1]) - 1, ae = Number(F[0]);
|
|
7796
7817
|
G <= 0 && (G = 12, ae += 1);
|
|
7797
|
-
const H = ye.getMonthDays(String(F[0]), String(F[1])), w = ye.getMonthDays(ae + "", G + ""),
|
|
7818
|
+
const H = ye.getMonthDays(String(F[0]), String(F[1])), w = ye.getMonthDays(ae + "", G + ""), g = {
|
|
7798
7819
|
year: F[0],
|
|
7799
7820
|
month: F[1]
|
|
7800
7821
|
}, O = {
|
|
7801
7822
|
curData: F,
|
|
7802
7823
|
title: r("monthTitle", {
|
|
7803
|
-
year:
|
|
7804
|
-
month:
|
|
7824
|
+
year: g.year,
|
|
7825
|
+
month: g.month
|
|
7805
7826
|
}),
|
|
7806
7827
|
monthData: [...P(k, "prev", {
|
|
7807
7828
|
month: String(G),
|
|
7808
7829
|
year: String(ae)
|
|
7809
|
-
}, w), ...z(H, "curr",
|
|
7830
|
+
}, w), ...z(H, "curr", g)],
|
|
7810
7831
|
cssHeight: 0,
|
|
7811
7832
|
cssScrollHeight: 0
|
|
7812
7833
|
};
|
|
@@ -7833,14 +7854,14 @@ var ll = /* @__PURE__ */ We(V0, [["render", P0]]), { create: L0, scope: E0 } = h
|
|
|
7833
7854
|
c.currDate.length > 0 && (F && ye.compareDate(c.currDate[0], F) && c.currDate.splice(0, 1, F), U && ye.compareDate(U, c.currDate[1]) && c.currDate.splice(1, 1, U), c.defaultData = [..._(c.currDate[0]), ..._(c.currDate[1])]);
|
|
7834
7855
|
else if (e.type == "multiple" && Array.isArray(c.currDate)) {
|
|
7835
7856
|
if (c.currDate.length > 0) {
|
|
7836
|
-
let w = [],
|
|
7857
|
+
let w = [], g = {};
|
|
7837
7858
|
c.currDate.forEach((O) => {
|
|
7838
|
-
F && !ye.compareDate(O, F) && U && !ye.compareDate(U, O) && (Object.hasOwnProperty.call(
|
|
7859
|
+
F && !ye.compareDate(O, F) && U && !ye.compareDate(U, O) && (Object.hasOwnProperty.call(g, O) || (w.push(O), g[O] = O));
|
|
7839
7860
|
}), c.currDate = [...w], c.defaultData = [..._(w[0])];
|
|
7840
7861
|
}
|
|
7841
7862
|
} else if (e.type == "week" && Array.isArray(c.currDate)) {
|
|
7842
7863
|
if (c.currDate.length > 0) {
|
|
7843
|
-
let [w,
|
|
7864
|
+
let [w, g, O] = _(c.currDate[0]), te = ye.getWeekDate(w, g, O, e.firstDayOfWeek);
|
|
7844
7865
|
c.currDate = te, F && ye.compareDate(c.currDate[0], F) && c.currDate.splice(0, 1, F), U && ye.compareDate(U, c.currDate[1]) && c.currDate.splice(1, 1, U), c.defaultData = [..._(c.currDate[0]), ..._(c.currDate[1])];
|
|
7845
7866
|
}
|
|
7846
7867
|
} else c.currDate && (F && ye.compareDate(c.currDate, F) ? c.currDate = F : U && !ye.compareDate(c.currDate, U) && (c.currDate = U), c.defaultData = [..._(c.currDate)]);
|
|
@@ -7858,8 +7879,8 @@ var ll = /* @__PURE__ */ We(V0, [["render", P0]]), { create: L0, scope: E0 } = h
|
|
|
7858
7879
|
if (e.toDateAnimation) {
|
|
7859
7880
|
let H = 0, w = setInterval(() => {
|
|
7860
7881
|
if (H++, u.value) {
|
|
7861
|
-
let
|
|
7862
|
-
u.value.scrollTop = u.value.scrollTop +
|
|
7882
|
+
let g = ae / 10;
|
|
7883
|
+
u.value.scrollTop = u.value.scrollTop + g;
|
|
7863
7884
|
}
|
|
7864
7885
|
H >= 10 && (clearInterval(w), u.value && (u.value.scrollTop = c.monthsData[G].cssScrollHeight));
|
|
7865
7886
|
}, 40);
|
|
@@ -7891,8 +7912,8 @@ var ll = /* @__PURE__ */ We(V0, [["render", P0]]), { create: L0, scope: E0 } = h
|
|
|
7891
7912
|
type: "curr"
|
|
7892
7913
|
}, c.monthsData[c.currentIndex], !0) : e.type == "multiple" ? [...c.currDate].forEach((ae) => {
|
|
7893
7914
|
let H = _(ae), w = c.currentIndex;
|
|
7894
|
-
c.monthsData.forEach((
|
|
7895
|
-
|
|
7915
|
+
c.monthsData.forEach((g, O) => {
|
|
7916
|
+
g.title == r("monthTitle", {
|
|
7896
7917
|
year: H[0],
|
|
7897
7918
|
month: H[1]
|
|
7898
7919
|
}) && (w = O);
|
|
@@ -7941,7 +7962,7 @@ var ll = /* @__PURE__ */ We(V0, [["render", P0]]), { create: L0, scope: E0 } = h
|
|
|
7941
7962
|
dayTitleStyle: s,
|
|
7942
7963
|
dayCellStyle: i,
|
|
7943
7964
|
weeks: h,
|
|
7944
|
-
compConthsData:
|
|
7965
|
+
compConthsData: p,
|
|
7945
7966
|
showTopBtn: m,
|
|
7946
7967
|
topInfo: b,
|
|
7947
7968
|
bottomInfo: S,
|
|
@@ -8330,7 +8351,7 @@ function r4(e, t, a, n) {
|
|
|
8330
8351
|
return o.value;
|
|
8331
8352
|
}
|
|
8332
8353
|
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]);
|
|
8333
|
-
let
|
|
8354
|
+
let p = Ee(l, "hintText"), m = B(!1);
|
|
8334
8355
|
const b = B(!1), S = x(() => l.type === "range"), c = mt({
|
|
8335
8356
|
startDate: null,
|
|
8336
8357
|
endDate: null,
|
|
@@ -8461,7 +8482,7 @@ function r4(e, t, a, n) {
|
|
|
8461
8482
|
...et(l, Ri),
|
|
8462
8483
|
ref: o,
|
|
8463
8484
|
class: I.value,
|
|
8464
|
-
hintText:
|
|
8485
|
+
hintText: p.value,
|
|
8465
8486
|
hintVisible: m.value
|
|
8466
8487
|
};
|
|
8467
8488
|
return l.prop && (U.prop = `${l.prop}_item`), a(U, J);
|
|
@@ -8529,7 +8550,7 @@ function d4(e, t, a, n) {
|
|
|
8529
8550
|
get templateRefProxy() {
|
|
8530
8551
|
return o.value;
|
|
8531
8552
|
}
|
|
8532
|
-
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]),
|
|
8553
|
+
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]), p = B(!1), m = Ee(l, "modelValue", null, d), b = e, S = x(() => ({
|
|
8533
8554
|
[b]: !0,
|
|
8534
8555
|
disabled: i.value,
|
|
8535
8556
|
readonly: h.value
|
|
@@ -8539,10 +8560,10 @@ function d4(e, t, a, n) {
|
|
|
8539
8560
|
let T = Ee(l, "hintText"), M = B(!1);
|
|
8540
8561
|
const Y = (v) => {
|
|
8541
8562
|
let z = v.target.value;
|
|
8542
|
-
|
|
8563
|
+
p.value = !0, _e(T.value) || (M.value = !0), d("focus", z, v);
|
|
8543
8564
|
}, L = (v) => {
|
|
8544
8565
|
setTimeout(() => {
|
|
8545
|
-
M.value && (M.value = !1),
|
|
8566
|
+
M.value && (M.value = !1), p.value = !1;
|
|
8546
8567
|
}, 0);
|
|
8547
8568
|
let z = v.target.value;
|
|
8548
8569
|
l.maxLength && z.length > Number(l.maxLength) && (z = z.slice(0, Number(l.maxLength))), d("blur", z, v);
|
|
@@ -8617,7 +8638,7 @@ function d4(e, t, a, n) {
|
|
|
8617
8638
|
}
|
|
8618
8639
|
};
|
|
8619
8640
|
}
|
|
8620
|
-
var { componentName: h4, create:
|
|
8641
|
+
var { componentName: h4, create: p4, scope: g4 } = he("time-item"), m4 = p4(d4(h4, g4, tt, nt)), v4 = m4, Bi = {
|
|
8621
8642
|
modelValue: {
|
|
8622
8643
|
type: [
|
|
8623
8644
|
Date,
|
|
@@ -8676,7 +8697,7 @@ function b4(e, t, a, n) {
|
|
|
8676
8697
|
get templateRefProxy() {
|
|
8677
8698
|
return o.value;
|
|
8678
8699
|
}
|
|
8679
|
-
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]),
|
|
8700
|
+
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]), p = B(!1), m = Ee(l, "modelValue", null, d), b = e, S = x(() => ({
|
|
8680
8701
|
[b]: !0,
|
|
8681
8702
|
disabled: i.value,
|
|
8682
8703
|
readonly: h.value
|
|
@@ -8686,10 +8707,10 @@ function b4(e, t, a, n) {
|
|
|
8686
8707
|
let T = Ee(l, "hintText"), M = B(!1);
|
|
8687
8708
|
const Y = (Q) => {
|
|
8688
8709
|
let v = Q.target.value;
|
|
8689
|
-
|
|
8710
|
+
p.value = !0, _e(T.value) || (M.value = !0), d("focus", v, Q);
|
|
8690
8711
|
}, L = (Q) => {
|
|
8691
8712
|
setTimeout(() => {
|
|
8692
|
-
M.value && (M.value = !1),
|
|
8713
|
+
M.value && (M.value = !1), p.value = !1;
|
|
8693
8714
|
}, 0);
|
|
8694
8715
|
let v = Q.target.value;
|
|
8695
8716
|
l.maxLength && v.length > Number(l.maxLength) && (v = v.slice(0, Number(l.maxLength))), d("blur", v, Q);
|
|
@@ -8925,38 +8946,38 @@ function _4(e, t, a, n) {
|
|
|
8925
8946
|
get templateRefProxy() {
|
|
8926
8947
|
return o.value;
|
|
8927
8948
|
}
|
|
8928
|
-
}, l.prop ?? r.attrs.name), C = B(!1), y = Ee(l, "modelValue", null, d),
|
|
8949
|
+
}, l.prop ?? r.attrs.name), C = B(!1), y = Ee(l, "modelValue", null, d), p = B("");
|
|
8929
8950
|
fe([
|
|
8930
8951
|
() => y.value,
|
|
8931
8952
|
() => l.rates,
|
|
8932
8953
|
() => l.precision
|
|
8933
8954
|
], ([W, Z, q]) => {
|
|
8934
8955
|
if (_e(W)) {
|
|
8935
|
-
|
|
8956
|
+
p.value = "";
|
|
8936
8957
|
return;
|
|
8937
8958
|
}
|
|
8938
8959
|
const R = Gn(W, Z, q, !1);
|
|
8939
|
-
|
|
8960
|
+
p.value !== R && (p.value = R);
|
|
8940
8961
|
}, { immediate: !0 });
|
|
8941
8962
|
const m = x(() => {
|
|
8942
8963
|
let W = "";
|
|
8943
|
-
return C.value && (W =
|
|
8964
|
+
return C.value && (W = p.value), W;
|
|
8944
8965
|
}), { t: b } = Fe(t), S = x(() => {
|
|
8945
8966
|
let W = l.placeholder ?? "";
|
|
8946
|
-
return !C.value && !_e(
|
|
8967
|
+
return !C.value && !_e(p.value) ? W = k4(p.value, l.decimalLength, l.autoPadding, l.digits, l.separator) : W = b(["placeholder", W]), W;
|
|
8947
8968
|
}), c = e, _ = x(() => ({
|
|
8948
8969
|
[c]: !0,
|
|
8949
8970
|
disabled: i.value,
|
|
8950
8971
|
readonly: h.value
|
|
8951
8972
|
})), T = x(() => ({
|
|
8952
8973
|
[`${c}__content`]: !0,
|
|
8953
|
-
[`${c}__placeholder`]:
|
|
8974
|
+
[`${c}__placeholder`]: p.value.length > 0
|
|
8954
8975
|
})), M = Ze(x(() => l.textAlign), "textAlign"), Y = x(() => C.value ? { textAlign: "left" } : { textAlign: M.value ?? "right" }), L = B(""), I = x(() => {
|
|
8955
8976
|
let W = L.value;
|
|
8956
8977
|
return _e(W) && (W = l.errorTip ?? ""), W;
|
|
8957
8978
|
}), N = B(""), $ = B(!1), Q = (W, Z) => {
|
|
8958
8979
|
if (W = `${W}`, _e(W)) {
|
|
8959
|
-
|
|
8980
|
+
p.value = "", y.value = "", Z.forEach((q) => {
|
|
8960
8981
|
d(q, "");
|
|
8961
8982
|
}), Ce(l.showTip) && $.value && ($.value = !1);
|
|
8962
8983
|
return;
|
|
@@ -8964,33 +8985,33 @@ function _4(e, t, a, n) {
|
|
|
8964
8985
|
if (W.length >= 2) {
|
|
8965
8986
|
let q = W;
|
|
8966
8987
|
if (q.charAt(0) == "-" && (q = q.substring(1)), q.length >= 2 && q.charAt(0) == "0" && q.charAt(1) != ".") {
|
|
8967
|
-
ut(
|
|
8988
|
+
ut(p);
|
|
8968
8989
|
return;
|
|
8969
8990
|
}
|
|
8970
8991
|
}
|
|
8971
8992
|
if (W != "-") {
|
|
8972
8993
|
if (!ei(W)) {
|
|
8973
|
-
ut(
|
|
8994
|
+
ut(p);
|
|
8974
8995
|
return;
|
|
8975
8996
|
}
|
|
8976
8997
|
if (l.integerLength != -1 && Ou(W) > Number(l.integerLength)) {
|
|
8977
|
-
ut(
|
|
8998
|
+
ut(p);
|
|
8978
8999
|
return;
|
|
8979
9000
|
}
|
|
8980
9001
|
if (l.decimalLength && l.decimalLength != -1 && Bu(W) > Number(l.decimalLength)) {
|
|
8981
|
-
ut(
|
|
9002
|
+
ut(p);
|
|
8982
9003
|
return;
|
|
8983
9004
|
}
|
|
8984
9005
|
let q = Xn(W, l);
|
|
8985
9006
|
if (q.maxValid === !1) {
|
|
8986
|
-
L.value = q.message, ut(
|
|
9007
|
+
L.value = q.message, ut(p);
|
|
8987
9008
|
return;
|
|
8988
9009
|
}
|
|
8989
9010
|
} else if (l.min != null && Pe(l.min) >= 0) {
|
|
8990
|
-
ut(
|
|
9011
|
+
ut(p);
|
|
8991
9012
|
return;
|
|
8992
9013
|
}
|
|
8993
|
-
N.value = W, Ce(l.showTip) && ($.value = W.length > 0),
|
|
9014
|
+
N.value = W, Ce(l.showTip) && ($.value = W.length > 0), p.value = W, y.value = Gn(W, l.rates, l.precision, !0), Z.forEach((q) => {
|
|
8994
9015
|
d(q, y.value);
|
|
8995
9016
|
});
|
|
8996
9017
|
}, v = (W) => {
|
|
@@ -8999,15 +9020,15 @@ function _4(e, t, a, n) {
|
|
|
8999
9020
|
Q(W, ["update:modelValue", "change"]);
|
|
9000
9021
|
}, P = (W) => {
|
|
9001
9022
|
if (C.value = !0, Ce(l.showTip)) {
|
|
9002
|
-
let Z =
|
|
9023
|
+
let Z = p.value;
|
|
9003
9024
|
_e(Z) && (Z = l.hintText), _e(Z) || (N.value = Z, $.value = !0);
|
|
9004
9025
|
}
|
|
9005
9026
|
L.value = "", d("focus", y.value, W);
|
|
9006
9027
|
}, j = (W) => {
|
|
9007
9028
|
if (setTimeout(() => {
|
|
9008
9029
|
C.value = !1, Ce(l.showTip) && $.value === !0 && ($.value = !1);
|
|
9009
|
-
}, 0), !_e(
|
|
9010
|
-
let Z = Xn(
|
|
9030
|
+
}, 0), !_e(p.value)) {
|
|
9031
|
+
let Z = Xn(p.value, l);
|
|
9011
9032
|
if (Z.minValid === !1 || Z.maxValid === !1) {
|
|
9012
9033
|
L.value = Z.message;
|
|
9013
9034
|
return;
|
|
@@ -9139,7 +9160,7 @@ function V4(e, t, a, n) {
|
|
|
9139
9160
|
get templateRefProxy() {
|
|
9140
9161
|
return o.value;
|
|
9141
9162
|
}
|
|
9142
|
-
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]),
|
|
9163
|
+
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]), p = B(!1), m = Ee(l, "modelValue", null, d), b = e, S = x(() => ({
|
|
9143
9164
|
[b]: !0,
|
|
9144
9165
|
disabled: i.value,
|
|
9145
9166
|
readonly: h.value
|
|
@@ -9154,10 +9175,10 @@ function V4(e, t, a, n) {
|
|
|
9154
9175
|
let Y = Ee(l, "hintText"), L = B(!1);
|
|
9155
9176
|
const I = (z) => {
|
|
9156
9177
|
let P = z.target.value;
|
|
9157
|
-
|
|
9178
|
+
p.value = !0, _e(Y.value) || (L.value = !0), d("focus", P, z);
|
|
9158
9179
|
}, N = (z) => {
|
|
9159
9180
|
setTimeout(() => {
|
|
9160
|
-
L.value && (L.value = !1),
|
|
9181
|
+
L.value && (L.value = !1), p.value = !1;
|
|
9161
9182
|
}, 0);
|
|
9162
9183
|
let P = z.target.value;
|
|
9163
9184
|
l.maxLength && P.length > Number(l.maxLength) && (P = P.slice(0, Number(l.maxLength))), d("blur", P, z);
|
|
@@ -9239,7 +9260,7 @@ var B4 = class {
|
|
|
9239
9260
|
if (Array.isArray(t)) return t;
|
|
9240
9261
|
if (typeof t == "function") return await t(a, n);
|
|
9241
9262
|
const l = ft(e, this.scope);
|
|
9242
|
-
return l === null ? (console.error(`[FoxUI] ${e} component not found api function`), []) : (ht(a) &&
|
|
9263
|
+
return l === null ? (console.error(`[FoxUI] ${e} component not found api function`), []) : (ht(a) && pt(a) && (a = Ae(a)), await l(t, a, n));
|
|
9243
9264
|
}
|
|
9244
9265
|
};
|
|
9245
9266
|
function q4() {
|
|
@@ -9408,11 +9429,11 @@ function K4(e, t, a, n) {
|
|
|
9408
9429
|
get templateRefProxy() {
|
|
9409
9430
|
return o.value;
|
|
9410
9431
|
}
|
|
9411
|
-
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]),
|
|
9432
|
+
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]), p = B(null), m = B([]), b = x(() => m.value ? m.value.map((H) => Array.isArray(H) ? H.map((w) => At(l, w)).join(" ") : At(l, H)).join(" ") : ""), S = (H, w, g, O = !0) => {
|
|
9412
9433
|
if (l.props && l.props.lazy === !0 || l.lazy === !0) {
|
|
9413
|
-
if (
|
|
9414
|
-
|
|
9415
|
-
const
|
|
9434
|
+
if (p.value === H) return;
|
|
9435
|
+
p.value = H;
|
|
9436
|
+
const pe = Ae(H);
|
|
9416
9437
|
if (O) {
|
|
9417
9438
|
const ve = ae?.value.getCheckedNodes();
|
|
9418
9439
|
if (ve) if (l.multiple) {
|
|
@@ -9425,28 +9446,28 @@ function K4(e, t, a, n) {
|
|
|
9425
9446
|
const Te = (ve[0]?.pathNodes ?? []).map((ze) => ze.data);
|
|
9426
9447
|
d("update:pathNodes", Te);
|
|
9427
9448
|
}
|
|
9428
|
-
d("update:modelValue",
|
|
9449
|
+
d("update:modelValue", pe), d("change", pe);
|
|
9429
9450
|
}
|
|
9430
9451
|
return;
|
|
9431
9452
|
}
|
|
9432
|
-
const te = ji(l, H, w,
|
|
9453
|
+
const te = ji(l, H, w, g);
|
|
9433
9454
|
if (te === null) {
|
|
9434
9455
|
if (m.value.length === 0 || m.value === null) return;
|
|
9435
|
-
m.value = [],
|
|
9456
|
+
m.value = [], p.value = null, O && (d("update:pathNodes", []), d("update:modelValue", null), d("change", null));
|
|
9436
9457
|
return;
|
|
9437
9458
|
}
|
|
9438
9459
|
const oe = te[te.length - 1];
|
|
9439
9460
|
if (j.value.checkStrictly !== !0 && oe && !Array.isArray(oe) && Array.isArray(oe.children) && oe.children.length > 0) {
|
|
9440
|
-
const
|
|
9461
|
+
const pe = [];
|
|
9441
9462
|
te.forEach((ve) => {
|
|
9442
9463
|
const Te = `${At(l, ve)}`;
|
|
9443
|
-
|
|
9444
|
-
}),
|
|
9464
|
+
pe.push(Te);
|
|
9465
|
+
}), pe.length > 0 && (v.value = pe.join(l.separator));
|
|
9445
9466
|
} else v.value = null;
|
|
9446
9467
|
let de = !0;
|
|
9447
9468
|
if (te.length !== m.value.length) de = !1;
|
|
9448
|
-
else for (let
|
|
9449
|
-
const ve = te[
|
|
9469
|
+
else for (let pe = 0; pe < te.length; pe++) {
|
|
9470
|
+
const ve = te[pe], Te = m.value[pe];
|
|
9450
9471
|
if (Array.isArray(ve)) {
|
|
9451
9472
|
if (!Array.isArray(Te) || ve.length !== Te.length) de = !1;
|
|
9452
9473
|
else for (let ze = 0; ze < ve.length; ze++) if (!Ga(l, ve[ze], Te[ze])) {
|
|
@@ -9458,26 +9479,26 @@ function K4(e, t, a, n) {
|
|
|
9458
9479
|
}
|
|
9459
9480
|
if (!de) {
|
|
9460
9481
|
m.value = te;
|
|
9461
|
-
let
|
|
9482
|
+
let pe = [], ve = [];
|
|
9462
9483
|
te.forEach((ze) => {
|
|
9463
9484
|
if (Array.isArray(ze)) {
|
|
9464
9485
|
let Ve = [], Ye = [];
|
|
9465
9486
|
for (let vt of ze)
|
|
9466
9487
|
Ve.push(Ut(l, vt)), l.valueType === "text" ? Ye.push(At(l, vt)) : l.valueType === "item" ? Ye.push(vt) : Ye.push(Ut(l, vt));
|
|
9467
|
-
|
|
9488
|
+
pe.push(Ve), ve.push(Ye);
|
|
9468
9489
|
} else
|
|
9469
|
-
|
|
9470
|
-
}),
|
|
9490
|
+
pe.push(Ut(l, ze)), l.valueType === "text" ? ve.push(At(l, ze)) : l.valueType === "item" ? ve.push(ze) : ve.push(Ut(l, ze));
|
|
9491
|
+
}), p.value = pe;
|
|
9471
9492
|
const Te = Ae(ve);
|
|
9472
9493
|
O && (d("update:pathNodes", te), d("update:modelValue", Te), d("change", Te));
|
|
9473
9494
|
}
|
|
9474
9495
|
}, c = B([]), _ = Ze(x(() => l.appearLoad), "appearLoad", St.Near, (H) => Ce(H)), T = q4(), M = async (H, w) => {
|
|
9475
9496
|
if (H) {
|
|
9476
|
-
const
|
|
9477
|
-
if (
|
|
9478
|
-
let O =
|
|
9497
|
+
const g = await T.load("cascader", H, w);
|
|
9498
|
+
if (g.length > 0) if (typeof g[0] == "string") {
|
|
9499
|
+
let O = g.map((te) => H4(te));
|
|
9479
9500
|
c.value = O;
|
|
9480
|
-
} else c.value =
|
|
9501
|
+
} else c.value = g;
|
|
9481
9502
|
}
|
|
9482
9503
|
};
|
|
9483
9504
|
fe([() => l.source, () => l.params], async ([H, w]) => {
|
|
@@ -9514,21 +9535,21 @@ function K4(e, t, a, n) {
|
|
|
9514
9535
|
value: l.valueKey,
|
|
9515
9536
|
children: l.childrenKey
|
|
9516
9537
|
};
|
|
9517
|
-
return l.multiple === !0 && (H.multiple = !0), l.props && Object.assign(H, l.props), l.lazy && (H.lazy = !0, typeof l.lazyLoad == "function" ? H.lazyLoad = l.lazyLoad : H.lazyLoad = async (w,
|
|
9538
|
+
return l.multiple === !0 && (H.multiple = !0), l.props && Object.assign(H, l.props), l.lazy && (H.lazy = !0, typeof l.lazyLoad == "function" ? H.lazyLoad = l.lazyLoad : H.lazyLoad = async (w, g) => {
|
|
9518
9539
|
let O = {};
|
|
9519
9540
|
l.params && Object.assign(O, l.params), w && Object.assign(O, w);
|
|
9520
9541
|
const te = await T.load("cascader", l.source, O, !0);
|
|
9521
|
-
if (w?.config?.checkStrictly !== !0 && Array.isArray(
|
|
9542
|
+
if (w?.config?.checkStrictly !== !0 && Array.isArray(p.value) && p.value.length === w.level) {
|
|
9522
9543
|
const oe = w.pathLabels ?? [];
|
|
9523
9544
|
let de = [];
|
|
9524
|
-
oe.forEach((
|
|
9525
|
-
|
|
9545
|
+
oe.forEach((pe) => {
|
|
9546
|
+
pe && de.push(pe);
|
|
9526
9547
|
}), de.length > 0 && (v.value = de.join(l.separator));
|
|
9527
9548
|
} else v.value = l.emptyText ?? null;
|
|
9528
|
-
|
|
9549
|
+
g(te);
|
|
9529
9550
|
}), H;
|
|
9530
9551
|
}), K = (H) => {
|
|
9531
|
-
l.allowCreate ? (d("update:modelValue", H), d("change", H),
|
|
9552
|
+
l.allowCreate ? (d("update:modelValue", H), d("change", H), p.value = H) : S(H, "value", c.value, !0);
|
|
9532
9553
|
};
|
|
9533
9554
|
let X = Ee(l, "hintText"), V = B(!1);
|
|
9534
9555
|
const le = (H) => {
|
|
@@ -9573,7 +9594,7 @@ function K4(e, t, a, n) {
|
|
|
9573
9594
|
}
|
|
9574
9595
|
}), () => {
|
|
9575
9596
|
if (u.value === "on" && (h.value || i.value)) return n({
|
|
9576
|
-
modelValue:
|
|
9597
|
+
modelValue: p.value,
|
|
9577
9598
|
source: c.value,
|
|
9578
9599
|
separator: l.separator,
|
|
9579
9600
|
emptyText: l.emptyText
|
|
@@ -9587,7 +9608,7 @@ function K4(e, t, a, n) {
|
|
|
9587
9608
|
placeholder: v.value || y.placeholder.value,
|
|
9588
9609
|
disabled: i.value || h.value,
|
|
9589
9610
|
options: c.value,
|
|
9590
|
-
modelValue:
|
|
9611
|
+
modelValue: p.value,
|
|
9591
9612
|
separator: l.separator,
|
|
9592
9613
|
onClear: Z,
|
|
9593
9614
|
onChange: K,
|
|
@@ -9600,9 +9621,9 @@ function K4(e, t, a, n) {
|
|
|
9600
9621
|
typeof I == "function" && (H["remote-method"] = I, H.loading = N.value);
|
|
9601
9622
|
const w = {};
|
|
9602
9623
|
r.slots.option && (w.default = r.slots.option), r.slots.empty && (w.empty = r.slots.empty);
|
|
9603
|
-
const
|
|
9604
|
-
|
|
9605
|
-
const te = { default: () =>
|
|
9624
|
+
const g = [], O = E(Tr, H, w);
|
|
9625
|
+
g.push(O);
|
|
9626
|
+
const te = { default: () => g };
|
|
9606
9627
|
te.label = r.slots.default, te.fixedPreTip = r.slots.fixedPreTip, te.fixedTip = r.slots.fixedTip;
|
|
9607
9628
|
const oe = {
|
|
9608
9629
|
...et(l, Ki),
|
|
@@ -9676,7 +9697,7 @@ function Z4(e, t, a, n) {
|
|
|
9676
9697
|
get templateRefProxy() {
|
|
9677
9698
|
return o.value;
|
|
9678
9699
|
}
|
|
9679
|
-
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]),
|
|
9700
|
+
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]), p = B(!1), m = Ee(l, "modelValue", null, d), b = e, S = x(() => ({
|
|
9680
9701
|
[b]: !0,
|
|
9681
9702
|
disabled: i.value,
|
|
9682
9703
|
readonly: h.value
|
|
@@ -9690,10 +9711,10 @@ function Z4(e, t, a, n) {
|
|
|
9690
9711
|
let Y = Ee(l, "hintText"), L = B(!1);
|
|
9691
9712
|
const I = (v) => {
|
|
9692
9713
|
let z = v.target.value;
|
|
9693
|
-
|
|
9714
|
+
p.value = !0, _e(Y.value) || (L.value = !0), d("focus", z, v);
|
|
9694
9715
|
}, N = (v) => {
|
|
9695
9716
|
setTimeout(() => {
|
|
9696
|
-
L.value && (L.value = !1),
|
|
9717
|
+
L.value && (L.value = !1), p.value = !1;
|
|
9697
9718
|
}, 0);
|
|
9698
9719
|
let z = v.target.value;
|
|
9699
9720
|
l.maxLength && z.length > Number(l.maxLength) && (z = z.slice(0, Number(l.maxLength))), d("blur", z, v);
|
|
@@ -9852,7 +9873,7 @@ function d3(e, t) {
|
|
|
9852
9873
|
}
|
|
9853
9874
|
};
|
|
9854
9875
|
}
|
|
9855
|
-
var { componentName: h3, create:
|
|
9876
|
+
var { componentName: h3, create: p3, scope: g3 } = he("table-radio-column"), m3 = p3(d3(h3, g3)), v3 = m3, y3 = {}, b3 = {
|
|
9856
9877
|
t: "1685254841130",
|
|
9857
9878
|
class: "fox-table-setting__drag-icon",
|
|
9858
9879
|
viewBox: "0 0 1024 1024",
|
|
@@ -9943,11 +9964,11 @@ var S3 = /* @__PURE__ */ We(y3, [["render", w3]]), { componentName: mh, create:
|
|
|
9943
9964
|
...k,
|
|
9944
9965
|
sortIndex: G
|
|
9945
9966
|
})), h.value.length + i.value.length + f.value.length === U.length ? _.value = !0 : U.length > 0 && (T.value = !0), L.value = U;
|
|
9946
|
-
},
|
|
9967
|
+
}, p = (ee) => ee ? ee.type ? ee.type : ee.label ? ee.prop : "" : "", m = (ee, F) => {
|
|
9947
9968
|
if (ee.length !== F.length) return !1;
|
|
9948
|
-
const U = ee.map((k) =>
|
|
9969
|
+
const U = ee.map((k) => p(k));
|
|
9949
9970
|
for (let k of F) {
|
|
9950
|
-
const G =
|
|
9971
|
+
const G = p(k);
|
|
9951
9972
|
if (U.indexOf(G) === -1) return !1;
|
|
9952
9973
|
}
|
|
9953
9974
|
return !0;
|
|
@@ -10161,11 +10182,11 @@ function j3(e, t, a, n, l, r) {
|
|
|
10161
10182
|
"data-role-type": "leftFixed",
|
|
10162
10183
|
"data-index": y.sortIndex,
|
|
10163
10184
|
draggable: e.isDraggble(e.leftFixedColumns),
|
|
10164
|
-
onDragstart: t[5] || (t[5] = (...
|
|
10165
|
-
onDragend: t[6] || (t[6] = (...
|
|
10166
|
-
onDrop: t[7] || (t[7] = (...
|
|
10167
|
-
onDragover: t[8] || (t[8] = (...
|
|
10168
|
-
onDragleave: t[9] || (t[9] = (...
|
|
10185
|
+
onDragstart: t[5] || (t[5] = (...p) => e.onDragStart && e.onDragStart(...p)),
|
|
10186
|
+
onDragend: t[6] || (t[6] = (...p) => e.onDragEnd && e.onDragEnd(...p)),
|
|
10187
|
+
onDrop: t[7] || (t[7] = (...p) => e.onDrop && e.onDrop(...p)),
|
|
10188
|
+
onDragover: t[8] || (t[8] = (...p) => e.onDragOver && e.onDragOver(...p)),
|
|
10189
|
+
onDragleave: t[9] || (t[9] = (...p) => e.onDragLeave && e.onDragLeave(...p))
|
|
10169
10190
|
}, [
|
|
10170
10191
|
e.isDraggble(e.leftFixedColumns) ? (ne(), Le(i, {
|
|
10171
10192
|
key: 0,
|
|
@@ -10176,24 +10197,24 @@ function j3(e, t, a, n, l, r) {
|
|
|
10176
10197
|
value: y.prop
|
|
10177
10198
|
}, {
|
|
10178
10199
|
default: be(() => [se("span", {
|
|
10179
|
-
onMouseover: (
|
|
10180
|
-
onMouseleave: (
|
|
10200
|
+
onMouseover: (p) => e.onMouseOverForOverflowText(p, y.prop, y.label),
|
|
10201
|
+
onMouseleave: (p) => e.onMouseLeaveForOverflowText(p, y.prop),
|
|
10181
10202
|
class: "checkbox-item__label",
|
|
10182
10203
|
style: De(e.checkboxLabelStyle)
|
|
10183
10204
|
}, we(y.label), 45, A3)]),
|
|
10184
10205
|
_: 2
|
|
10185
10206
|
}, 1032, ["value"]),
|
|
10186
10207
|
se("div", I3, [xe(h, {
|
|
10187
|
-
onClick: (
|
|
10188
|
-
onMouseover: t[1] || (t[1] = (
|
|
10189
|
-
onMouseleave: t[2] || (t[2] = (
|
|
10208
|
+
onClick: (p) => e.toUnFixed(y.sortIndex),
|
|
10209
|
+
onMouseover: t[1] || (t[1] = (p) => e.onMouseOverForTip(p, e.unFixedText)),
|
|
10210
|
+
onMouseleave: t[2] || (t[2] = (p) => e.onMouseLeaveForTip(p))
|
|
10190
10211
|
}, {
|
|
10191
10212
|
default: be(() => [xe(f)]),
|
|
10192
10213
|
_: 1
|
|
10193
10214
|
}, 8, ["onClick"]), xe(h, {
|
|
10194
|
-
onClick: (
|
|
10195
|
-
onMouseover: t[3] || (t[3] = (
|
|
10196
|
-
onMouseleave: t[4] || (t[4] = (
|
|
10215
|
+
onClick: (p) => e.toRightFixed(y.sortIndex),
|
|
10216
|
+
onMouseover: t[3] || (t[3] = (p) => e.onMouseOverForTip(p, e.fixedRightText)),
|
|
10217
|
+
onMouseleave: t[4] || (t[4] = (p) => e.onMouseLeaveForTip(p))
|
|
10197
10218
|
}, {
|
|
10198
10219
|
default: be(() => [xe(u)]),
|
|
10199
10220
|
_: 1
|
|
@@ -10206,11 +10227,11 @@ function j3(e, t, a, n, l, r) {
|
|
|
10206
10227
|
"data-role-type": "unFixed",
|
|
10207
10228
|
"data-index": y.sortIndex,
|
|
10208
10229
|
draggable: e.isDraggble(e.unFixedColumns),
|
|
10209
|
-
onDragstart: t[14] || (t[14] = (...
|
|
10210
|
-
onDragend: t[15] || (t[15] = (...
|
|
10211
|
-
onDrop: t[16] || (t[16] = (...
|
|
10212
|
-
onDragover: t[17] || (t[17] = (...
|
|
10213
|
-
onDragleave: t[18] || (t[18] = (...
|
|
10230
|
+
onDragstart: t[14] || (t[14] = (...p) => e.onDragStart && e.onDragStart(...p)),
|
|
10231
|
+
onDragend: t[15] || (t[15] = (...p) => e.onDragEnd && e.onDragEnd(...p)),
|
|
10232
|
+
onDrop: t[16] || (t[16] = (...p) => e.onDrop && e.onDrop(...p)),
|
|
10233
|
+
onDragover: t[17] || (t[17] = (...p) => e.onDragOver && e.onDragOver(...p)),
|
|
10234
|
+
onDragleave: t[18] || (t[18] = (...p) => e.onDragLeave && e.onDragLeave(...p))
|
|
10214
10235
|
}, [
|
|
10215
10236
|
e.isDraggble(e.unFixedColumns) ? (ne(), Le(i, {
|
|
10216
10237
|
key: 0,
|
|
@@ -10221,25 +10242,25 @@ function j3(e, t, a, n, l, r) {
|
|
|
10221
10242
|
value: y.prop
|
|
10222
10243
|
}, {
|
|
10223
10244
|
default: be(() => [se("span", {
|
|
10224
|
-
onMouseover: (
|
|
10225
|
-
onMouseleave: (
|
|
10245
|
+
onMouseover: (p) => e.onMouseOverForOverflowText(p, y.prop, y.label),
|
|
10246
|
+
onMouseleave: (p) => e.onMouseLeaveForOverflowText(p, y.prop),
|
|
10226
10247
|
class: "checkbox-item__label",
|
|
10227
10248
|
style: De(e.checkboxLabelStyle)
|
|
10228
10249
|
}, we(y.label), 45, E3)]),
|
|
10229
10250
|
_: 2
|
|
10230
10251
|
}, 1032, ["value"]),
|
|
10231
10252
|
se("div", F3, [xe(h, {
|
|
10232
|
-
onClick: (
|
|
10233
|
-
onMouseover: t[10] || (t[10] = (
|
|
10234
|
-
onMouseleave: t[11] || (t[11] = (
|
|
10253
|
+
onClick: (p) => e.toLeftFixed(y.sortIndex),
|
|
10254
|
+
onMouseover: t[10] || (t[10] = (p) => e.onMouseOverForTip(p, e.fixedLeftText)),
|
|
10255
|
+
onMouseleave: t[11] || (t[11] = (p) => e.onMouseLeaveForTip(p)),
|
|
10235
10256
|
class: "is-reverse"
|
|
10236
10257
|
}, {
|
|
10237
10258
|
default: be(() => [xe(u)]),
|
|
10238
10259
|
_: 1
|
|
10239
10260
|
}, 8, ["onClick"]), xe(h, {
|
|
10240
|
-
onClick: (
|
|
10241
|
-
onMouseover: t[12] || (t[12] = (
|
|
10242
|
-
onMouseleave: t[13] || (t[13] = (
|
|
10261
|
+
onClick: (p) => e.toRightFixed(y.sortIndex),
|
|
10262
|
+
onMouseover: t[12] || (t[12] = (p) => e.onMouseOverForTip(p, e.fixedRightText)),
|
|
10263
|
+
onMouseleave: t[13] || (t[13] = (p) => e.onMouseLeaveForTip(p))
|
|
10243
10264
|
}, {
|
|
10244
10265
|
default: be(() => [xe(u)]),
|
|
10245
10266
|
_: 1
|
|
@@ -10252,11 +10273,11 @@ function j3(e, t, a, n, l, r) {
|
|
|
10252
10273
|
"data-role-type": "rightFixed",
|
|
10253
10274
|
"data-index": y.sortIndex,
|
|
10254
10275
|
draggable: e.isDraggble(e.rightFixedColumns),
|
|
10255
|
-
onDragstart: t[23] || (t[23] = (...
|
|
10256
|
-
onDragend: t[24] || (t[24] = (...
|
|
10257
|
-
onDrop: t[25] || (t[25] = (...
|
|
10258
|
-
onDragover: t[26] || (t[26] = (...
|
|
10259
|
-
onDragleave: t[27] || (t[27] = (...
|
|
10276
|
+
onDragstart: t[23] || (t[23] = (...p) => e.onDragStart && e.onDragStart(...p)),
|
|
10277
|
+
onDragend: t[24] || (t[24] = (...p) => e.onDragEnd && e.onDragEnd(...p)),
|
|
10278
|
+
onDrop: t[25] || (t[25] = (...p) => e.onDrop && e.onDrop(...p)),
|
|
10279
|
+
onDragover: t[26] || (t[26] = (...p) => e.onDragOver && e.onDragOver(...p)),
|
|
10280
|
+
onDragleave: t[27] || (t[27] = (...p) => e.onDragLeave && e.onDragLeave(...p))
|
|
10260
10281
|
}, [
|
|
10261
10282
|
e.isDraggble(e.rightFixedColumns) ? (ne(), Le(i, {
|
|
10262
10283
|
key: 0,
|
|
@@ -10267,24 +10288,24 @@ function j3(e, t, a, n, l, r) {
|
|
|
10267
10288
|
label: y.prop
|
|
10268
10289
|
}, {
|
|
10269
10290
|
default: be(() => [se("span", {
|
|
10270
|
-
onMouseover: (
|
|
10271
|
-
onMouseleave: (
|
|
10291
|
+
onMouseover: (p) => e.onMouseOverForOverflowText(p, y.prop, y.label),
|
|
10292
|
+
onMouseleave: (p) => e.onMouseLeaveForOverflowText(p, y.prop),
|
|
10272
10293
|
class: "checkbox-item__label",
|
|
10273
10294
|
style: De(e.checkboxLabelStyle)
|
|
10274
10295
|
}, we(y.label), 45, q3)]),
|
|
10275
10296
|
_: 2
|
|
10276
10297
|
}, 1032, ["label"]),
|
|
10277
10298
|
se("div", H3, [xe(h, {
|
|
10278
|
-
onClick: (
|
|
10279
|
-
onMouseover: t[19] || (t[19] = (
|
|
10280
|
-
onMouseleave: t[20] || (t[20] = (
|
|
10299
|
+
onClick: (p) => e.toUnFixed(y.sortIndex),
|
|
10300
|
+
onMouseover: t[19] || (t[19] = (p) => e.onMouseOverForTip(p, e.unFixedText)),
|
|
10301
|
+
onMouseleave: t[20] || (t[20] = (p) => e.onMouseLeaveForTip(p))
|
|
10281
10302
|
}, {
|
|
10282
10303
|
default: be(() => [xe(f)]),
|
|
10283
10304
|
_: 1
|
|
10284
10305
|
}, 8, ["onClick"]), xe(h, {
|
|
10285
|
-
onClick: (
|
|
10286
|
-
onMouseover: t[21] || (t[21] = (
|
|
10287
|
-
onMouseleave: t[22] || (t[22] = (
|
|
10306
|
+
onClick: (p) => e.toLeftFixed(y.sortIndex),
|
|
10307
|
+
onMouseover: t[21] || (t[21] = (p) => e.onMouseOverForTip(p, e.fixedLeftText)),
|
|
10308
|
+
onMouseleave: t[22] || (t[22] = (p) => e.onMouseLeaveForTip(p)),
|
|
10288
10309
|
class: "is-reverse"
|
|
10289
10310
|
}, {
|
|
10290
10311
|
default: be(() => [xe(u)]),
|
|
@@ -10331,7 +10352,7 @@ var Yi = /* @__PURE__ */ We(k3, [["render", j3]]), K3 = class {
|
|
|
10331
10352
|
return s === null ? (console.error(`[FoxUI]${e} component not found api function`), {
|
|
10332
10353
|
totalSize: 0,
|
|
10333
10354
|
page: []
|
|
10334
|
-
}) : (ht(l) &&
|
|
10355
|
+
}) : (ht(l) && pt(l) && (l = Ae(l)), await Reflect.apply(s, null, [
|
|
10335
10356
|
t,
|
|
10336
10357
|
a,
|
|
10337
10358
|
n,
|
|
@@ -10603,7 +10624,7 @@ function Z3(e, t, a) {
|
|
|
10603
10624
|
get templateRefProxy() {
|
|
10604
10625
|
return i.value;
|
|
10605
10626
|
}
|
|
10606
|
-
}, n.prop ?? l.attrs.name), d = e, D = x(() => ({ [d]: !0 })), C = x(() => ({ [`${d}__content`]: !0 })), y = x(() => ({ [`${d}__setting`]: !0 })),
|
|
10627
|
+
}, n.prop ?? l.attrs.name), d = e, D = x(() => ({ [d]: !0 })), C = x(() => ({ [`${d}__content`]: !0 })), y = x(() => ({ [`${d}__setting`]: !0 })), p = x(() => ({
|
|
10607
10628
|
[`${d}__footer`]: !0,
|
|
10608
10629
|
[`${d}__footer__${n.footerAlign}`]: !0
|
|
10609
10630
|
})), m = x(() => ({
|
|
@@ -10618,7 +10639,7 @@ function Z3(e, t, a) {
|
|
|
10618
10639
|
_.value = ie;
|
|
10619
10640
|
}), fe(() => n.pageSize, (ie) => {
|
|
10620
10641
|
T.value = ie;
|
|
10621
|
-
}), fe([_, T], ([ie, ce], [
|
|
10642
|
+
}), fe([_, T], ([ie, ce], [ge, me]) => {
|
|
10622
10643
|
ce !== me && (_.value = 1, ie = 1), j(n.data, ie, ce, S.value);
|
|
10623
10644
|
}));
|
|
10624
10645
|
const M = () => Array.isArray(n.data) ? !0 : Ce(n.autoLoad);
|
|
@@ -10633,16 +10654,16 @@ function Z3(e, t, a) {
|
|
|
10633
10654
|
T.value = ie, f("page-size-change", ie);
|
|
10634
10655
|
}, I = B(!0), N = B(0), $ = B([]), Q = () => Array.isArray($.value) ? $.value.length : 0, v = W3();
|
|
10635
10656
|
let z = !0;
|
|
10636
|
-
const P = Ze(x(() => n.appearLoad), "appearLoad", St.Near, (ie) => Ce(ie)), j = async (ie, ce,
|
|
10657
|
+
const P = Ze(x(() => n.appearLoad), "appearLoad", St.Near, (ie) => Ce(ie)), j = async (ie, ce, ge, me, je) => {
|
|
10637
10658
|
try {
|
|
10638
10659
|
if (je === !0) {
|
|
10639
10660
|
if (!I.value) return !1;
|
|
10640
|
-
const Be = await v.load("table", ie, ce,
|
|
10661
|
+
const Be = await v.load("table", ie, ce, ge, me, z, r.value);
|
|
10641
10662
|
return N.value = Be?.totalSize ?? 0, !Be.page || !Array.isArray(Be.page) ? (I.value = !1, !1) : (Reflect.apply([].push, $.value, Be.page), setTimeout(() => {
|
|
10642
10663
|
f("loaded-data");
|
|
10643
|
-
}, 250), (($.value?.length ?? 0) >= N.value || Be.page.length <
|
|
10664
|
+
}, 250), (($.value?.length ?? 0) >= N.value || Be.page.length < ge) && (I.value = !1), !0);
|
|
10644
10665
|
} else {
|
|
10645
|
-
const Be = await v.load("table", ie, ce,
|
|
10666
|
+
const Be = await v.load("table", ie, ce, ge, me, z, r.value);
|
|
10646
10667
|
return N.value = Be?.totalSize ?? 0, $.value = Be?.page ?? [], setTimeout(() => {
|
|
10647
10668
|
f("loaded-data");
|
|
10648
10669
|
}, 250), !0;
|
|
@@ -10670,8 +10691,8 @@ function Z3(e, t, a) {
|
|
|
10670
10691
|
try {
|
|
10671
10692
|
if (ie && _.value > 0) {
|
|
10672
10693
|
_.value = _.value - 1;
|
|
10673
|
-
const
|
|
10674
|
-
$.value.splice(
|
|
10694
|
+
const ge = _.value * T.value, me = $.value.length - ge;
|
|
10695
|
+
$.value.splice(ge, me);
|
|
10675
10696
|
} else
|
|
10676
10697
|
_.value = 0, $.value = [];
|
|
10677
10698
|
I.value = !0;
|
|
@@ -10689,10 +10710,10 @@ function Z3(e, t, a) {
|
|
|
10689
10710
|
} finally {
|
|
10690
10711
|
K = !1;
|
|
10691
10712
|
}
|
|
10692
|
-
}, W = async (ie = {}, ce = 100) => new Promise((
|
|
10713
|
+
}, W = async (ie = {}, ce = 100) => new Promise((ge, me) => {
|
|
10693
10714
|
setTimeout(async () => {
|
|
10694
10715
|
try {
|
|
10695
|
-
await le(ie),
|
|
10716
|
+
await le(ie), ge();
|
|
10696
10717
|
} catch (je) {
|
|
10697
10718
|
me(je);
|
|
10698
10719
|
}
|
|
@@ -10712,37 +10733,37 @@ function Z3(e, t, a) {
|
|
|
10712
10733
|
J.value && (ie = new IntersectionObserver((me) => {
|
|
10713
10734
|
me.some((je) => je.isIntersecting) && z === !1 && X();
|
|
10714
10735
|
}), ie.observe(J.value), A = !0);
|
|
10715
|
-
},
|
|
10736
|
+
}, ge = () => {
|
|
10716
10737
|
!ie || !J.value || (ie.unobserve(J.value), ie = null, A = !1);
|
|
10717
10738
|
};
|
|
10718
10739
|
Re(() => {
|
|
10719
10740
|
re.value = !0;
|
|
10720
10741
|
}), fe([() => J.value, () => re.value], ([me, je]) => {
|
|
10721
10742
|
me && je && !ie && ce();
|
|
10722
|
-
}),
|
|
10743
|
+
}), gt(ge);
|
|
10723
10744
|
}
|
|
10724
10745
|
M() && !P.value && le();
|
|
10725
10746
|
const ee = B(null);
|
|
10726
10747
|
at(U3, { currentRow: ee });
|
|
10727
10748
|
const F = (ie, ce) => {
|
|
10728
10749
|
ee.value = ie, f("current-change", ie, ce);
|
|
10729
|
-
}, U = (ie, ce,
|
|
10730
|
-
f("row-click", ie, ce,
|
|
10750
|
+
}, U = (ie, ce, ge) => {
|
|
10751
|
+
f("row-click", ie, ce, ge), Ce(n.rowClickSelectable) === !0 && Ue?.value.toggleRowSelection(ie);
|
|
10731
10752
|
}, k = [], G = (ie, ce) => {
|
|
10732
10753
|
if (f("expand-change", ie, ce), Ce(n.uniqueExpansion)) if (Array.isArray(ce) && ce.length == 0) {
|
|
10733
|
-
const
|
|
10734
|
-
k.splice(0,
|
|
10754
|
+
const ge = k.length;
|
|
10755
|
+
k.splice(0, ge);
|
|
10735
10756
|
} else {
|
|
10736
10757
|
k.forEach((me) => {
|
|
10737
10758
|
me !== ie && Ue?.value.toggleRowExpansion(me, !1);
|
|
10738
10759
|
});
|
|
10739
|
-
const
|
|
10740
|
-
k.splice(0,
|
|
10760
|
+
const ge = k.length;
|
|
10761
|
+
k.splice(0, ge, ie);
|
|
10741
10762
|
}
|
|
10742
10763
|
}, ae = l.attrs.id ?? n.prop ?? l.attrs.name, H = Ui(), w = B([]);
|
|
10743
|
-
let
|
|
10764
|
+
let g = [];
|
|
10744
10765
|
const O = () => ({
|
|
10745
|
-
srcColumnPropertyList:
|
|
10766
|
+
srcColumnPropertyList: g.map((ie) => ({ ...ie })),
|
|
10746
10767
|
columnPropertyList: w.value
|
|
10747
10768
|
}), te = (ie) => {
|
|
10748
10769
|
w.value = [...ie], de();
|
|
@@ -10751,31 +10772,31 @@ function Z3(e, t, a) {
|
|
|
10751
10772
|
ie && (w.value = ie);
|
|
10752
10773
|
}, de = () => {
|
|
10753
10774
|
H.save(ae, w.value);
|
|
10754
|
-
},
|
|
10775
|
+
}, pe = () => {
|
|
10755
10776
|
H.remove(ae);
|
|
10756
10777
|
};
|
|
10757
10778
|
oe();
|
|
10758
10779
|
const ve = (ie) => ie ? ie.type ? ie.type : ie.label ? ie.prop : "" : "", Te = (ie, ce = {}) => {
|
|
10759
|
-
for (let
|
|
10760
|
-
const me = ce[
|
|
10761
|
-
typeof me != "function" && (ie[
|
|
10780
|
+
for (let ge in ce) {
|
|
10781
|
+
const me = ce[ge];
|
|
10782
|
+
typeof me != "function" && (ie[ge] = me);
|
|
10762
10783
|
}
|
|
10763
10784
|
}, ze = (ie) => {
|
|
10764
|
-
const ce = ie ? ie() : [],
|
|
10765
|
-
if (
|
|
10785
|
+
const ce = ie ? ie() : [], ge = /* @__PURE__ */ new Map();
|
|
10786
|
+
if (g = [], ce.forEach((me) => {
|
|
10766
10787
|
const je = me;
|
|
10767
10788
|
if (!je.props) return;
|
|
10768
10789
|
const Be = ve(je.props);
|
|
10769
|
-
|
|
10790
|
+
ge.set(Be, je);
|
|
10770
10791
|
const Ge = {
|
|
10771
10792
|
label: "",
|
|
10772
10793
|
prop: ""
|
|
10773
10794
|
};
|
|
10774
|
-
Te(Ge, je.props),
|
|
10775
|
-
}), w.value.length ===
|
|
10795
|
+
Te(Ge, je.props), g.push(Ge);
|
|
10796
|
+
}), w.value.length === g.length) {
|
|
10776
10797
|
const me = [];
|
|
10777
10798
|
for (let je of w.value) {
|
|
10778
|
-
const Be = ve(je), Ge =
|
|
10799
|
+
const Be = ve(je), Ge = ge.get(Be);
|
|
10779
10800
|
if (!Ge) return ce;
|
|
10780
10801
|
if (je.visible === !1) continue;
|
|
10781
10802
|
const wt = Ge;
|
|
@@ -10784,21 +10805,21 @@ function Z3(e, t, a) {
|
|
|
10784
10805
|
return me;
|
|
10785
10806
|
}
|
|
10786
10807
|
return ce;
|
|
10787
|
-
}, Ve = Gt(/* @__PURE__ */ new Map()), Ye = ({ row: ie, column: ce, rowIndex:
|
|
10788
|
-
const je = `${
|
|
10808
|
+
}, Ve = Gt(/* @__PURE__ */ new Map()), Ye = ({ row: ie, column: ce, rowIndex: ge, columnIndex: me }) => {
|
|
10809
|
+
const je = `${ge}_${ce.property}`, Be = `${ge}_${me}`;
|
|
10789
10810
|
let Ge = Ve.value.get(je);
|
|
10790
10811
|
return Ge || (Ge = Ve.value.get(Be)), typeof Ge == "string" ? Ge : "";
|
|
10791
10812
|
}, vt = (ie) => ie ? (ce) => {
|
|
10792
|
-
const
|
|
10813
|
+
const ge = [];
|
|
10793
10814
|
let me = Ye(ce);
|
|
10794
|
-
return me &&
|
|
10815
|
+
return me && ge.push(me), me = typeof ie == "function" ? ie(ce) : ie, me && ge.push(me), ge.length === 0 ? "" : ge.join(" ");
|
|
10795
10816
|
} : Ye, Mt = (ie = !1) => {
|
|
10796
|
-
Ve.value.forEach((ce,
|
|
10797
|
-
al(
|
|
10817
|
+
Ve.value.forEach((ce, ge) => {
|
|
10818
|
+
al(ge, ce, ie);
|
|
10798
10819
|
});
|
|
10799
|
-
}, al = (ie, ce,
|
|
10820
|
+
}, al = (ie, ce, ge = !1) => {
|
|
10800
10821
|
const me = `${ie}_item`;
|
|
10801
|
-
|
|
10822
|
+
ge ? (h.clearPersistantMessage(), Array.isArray(ce) ? h.emitToChildren({ name: ie }, "setCellClassNames", []) : h.emitToChildren({ name: me }, "setCustomClassName", "")) : Array.isArray(ce) ? h.emitToChildren({
|
|
10802
10823
|
name: ie,
|
|
10803
10824
|
cachePolicy: "Persistant",
|
|
10804
10825
|
uniqueId: me
|
|
@@ -10807,13 +10828,13 @@ function Z3(e, t, a) {
|
|
|
10807
10828
|
cachePolicy: "Persistant",
|
|
10808
10829
|
uniqueId: me
|
|
10809
10830
|
}, "setCustomClassName", ce);
|
|
10810
|
-
}, Rl = (ie, ce,
|
|
10831
|
+
}, Rl = (ie, ce, ge) => {
|
|
10811
10832
|
const me = `${ie}_${ce}`;
|
|
10812
|
-
|
|
10833
|
+
ge ? (Ve.value.set(me, ge), al(me, ge)) : (Ve.value.delete(me), al(me, "", !0)), ut(Ve);
|
|
10813
10834
|
}, ko = (ie) => {
|
|
10814
10835
|
Mt(!0), Ve.value.clear(), ie.forEach((ce) => {
|
|
10815
|
-
const
|
|
10816
|
-
Array.isArray(ce.children) ? Ve.value.set(
|
|
10836
|
+
const ge = `${ce.rowIndex}_${ce.column}`;
|
|
10837
|
+
Array.isArray(ce.children) ? Ve.value.set(ge, ce.children) : typeof ce.cellClassName == "string" && Ve.value.set(ge, ce.cellClassName);
|
|
10817
10838
|
}), Mt(), ut(Ve);
|
|
10818
10839
|
}, To = () => {
|
|
10819
10840
|
Mt(), Ve.value.clear(), ut(Ve);
|
|
@@ -10821,12 +10842,12 @@ function Z3(e, t, a) {
|
|
|
10821
10842
|
const ce = `${ie}`;
|
|
10822
10843
|
return nl.value.get(ce) ?? "";
|
|
10823
10844
|
}, _o = (ie) => ie ? (ce) => {
|
|
10824
|
-
const
|
|
10845
|
+
const ge = [];
|
|
10825
10846
|
let me = _n(ce);
|
|
10826
|
-
return me &&
|
|
10847
|
+
return me && ge.push(me), me = typeof ie == "function" ? ie(ce) : ie, me && ge.push(me), ge.length === 0 ? "" : ge.join(" ");
|
|
10827
10848
|
} : _n, $o = (ie, ce) => {
|
|
10828
|
-
const
|
|
10829
|
-
ce ? nl.value.set(
|
|
10849
|
+
const ge = `${ie}`;
|
|
10850
|
+
ce ? nl.value.set(ge, ce) : nl.value.delete(ge), ut(nl);
|
|
10830
10851
|
}, zo = () => {
|
|
10831
10852
|
nl.value.clear(), ut(nl);
|
|
10832
10853
|
}, Ue = B();
|
|
@@ -10838,8 +10859,8 @@ function Z3(e, t, a) {
|
|
|
10838
10859
|
},
|
|
10839
10860
|
toggleRowSelectionByProp: (ie, ce) => {
|
|
10840
10861
|
if (!$.value) return;
|
|
10841
|
-
const
|
|
10842
|
-
|
|
10862
|
+
const ge = Ia($.value, ie);
|
|
10863
|
+
ge.length !== 0 && ge.forEach((me) => {
|
|
10843
10864
|
Ue?.value.toggleRowSelection(me, ce);
|
|
10844
10865
|
});
|
|
10845
10866
|
},
|
|
@@ -10851,8 +10872,8 @@ function Z3(e, t, a) {
|
|
|
10851
10872
|
},
|
|
10852
10873
|
toggleRowExpansionByProp: (ie, ce) => {
|
|
10853
10874
|
if (!$.value) return;
|
|
10854
|
-
const
|
|
10855
|
-
|
|
10875
|
+
const ge = Ia($.value, ie);
|
|
10876
|
+
ge.length !== 0 && ge.forEach((me) => {
|
|
10856
10877
|
Ue?.value.toggleRowExpansion(me, ce);
|
|
10857
10878
|
});
|
|
10858
10879
|
},
|
|
@@ -10903,7 +10924,7 @@ function Z3(e, t, a) {
|
|
|
10903
10924
|
},
|
|
10904
10925
|
getColumnSetting: O,
|
|
10905
10926
|
setColumnSetting: te,
|
|
10906
|
-
removeColumnSetting:
|
|
10927
|
+
removeColumnSetting: pe,
|
|
10907
10928
|
setCellClassName: Rl,
|
|
10908
10929
|
setCellClassNames: ko,
|
|
10909
10930
|
clearCellClassName: To,
|
|
@@ -10945,8 +10966,8 @@ function Z3(e, t, a) {
|
|
|
10945
10966
|
ce.append = () => Ca;
|
|
10946
10967
|
}
|
|
10947
10968
|
}
|
|
10948
|
-
const
|
|
10949
|
-
if (me.push(
|
|
10969
|
+
const ge = E(Fr, ie, ce), me = [];
|
|
10970
|
+
if (me.push(ge), !c) {
|
|
10950
10971
|
let Ge = null;
|
|
10951
10972
|
if (typeof l.slots.pagination == "function" ? Ge = l.slots.pagination() : n.showPagination && (Ge = E(Ar, {
|
|
10952
10973
|
class: m.value,
|
|
@@ -10976,11 +10997,11 @@ function Z3(e, t, a) {
|
|
|
10976
10997
|
tableRef: {
|
|
10977
10998
|
getColumnSetting: O,
|
|
10978
10999
|
setColumnSetting: te,
|
|
10979
|
-
removeColumnSetting:
|
|
11000
|
+
removeColumnSetting: pe
|
|
10980
11001
|
}
|
|
10981
11002
|
}, { default: () => Ol });
|
|
10982
11003
|
wt.push(Ca);
|
|
10983
|
-
const rl = E("div", { class:
|
|
11004
|
+
const rl = E("div", { class: p.value }, wt);
|
|
10984
11005
|
me.push(rl);
|
|
10985
11006
|
} else Ge && me.push(Ge);
|
|
10986
11007
|
}
|
|
@@ -10994,7 +11015,7 @@ function Z3(e, t, a) {
|
|
|
10994
11015
|
};
|
|
10995
11016
|
}
|
|
10996
11017
|
var { componentName: J3, create: ef, scope: tf } = he("table-item"), lf = ef(Z3(J3, tf, tt)), af = lf;
|
|
10997
|
-
function
|
|
11018
|
+
function pl(e, t) {
|
|
10998
11019
|
return typeof e.textKey == "string" && e.textKey.length > 0 ? t[e.textKey] : t.text;
|
|
10999
11020
|
}
|
|
11000
11021
|
function Vl(e, t) {
|
|
@@ -11013,7 +11034,7 @@ var rf = class {
|
|
|
11013
11034
|
if (Array.isArray(t)) return t;
|
|
11014
11035
|
if (typeof t == "function") return await t(a);
|
|
11015
11036
|
const n = ft(e, this.scope);
|
|
11016
|
-
return n === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) &&
|
|
11037
|
+
return n === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) && pt(a) && (a = Ae(a)), await n(t, a));
|
|
11017
11038
|
}
|
|
11018
11039
|
};
|
|
11019
11040
|
function of() {
|
|
@@ -11021,18 +11042,18 @@ function of() {
|
|
|
11021
11042
|
return new rf(e);
|
|
11022
11043
|
}
|
|
11023
11044
|
function Qi(e, t, a) {
|
|
11024
|
-
return t === a ? !0 : !(t === null || a === null ||
|
|
11045
|
+
return t === a ? !0 : !(t === null || a === null || pl(e, t) !== pl(e, a) || Vl(e, t) !== Vl(e, a));
|
|
11025
11046
|
}
|
|
11026
11047
|
function sf(e, t, a, n) {
|
|
11027
11048
|
if (n.length == 0 || t === "" || t === null || t === void 0) return null;
|
|
11028
11049
|
let l = null;
|
|
11029
11050
|
for (let r of n) {
|
|
11030
11051
|
let o = !1;
|
|
11031
|
-
if (a === "text") o =
|
|
11052
|
+
if (a === "text") o = pl(e, r) === t;
|
|
11032
11053
|
else if (a === "item") o = Qi(e, r, t);
|
|
11033
11054
|
else {
|
|
11034
11055
|
let s = Vl(e, r);
|
|
11035
|
-
s == null && (s =
|
|
11056
|
+
s == null && (s = pl(e, r)), o = s === t;
|
|
11036
11057
|
}
|
|
11037
11058
|
if (o) {
|
|
11038
11059
|
l = r;
|
|
@@ -11156,7 +11177,7 @@ function df(e, t, a, n) {
|
|
|
11156
11177
|
get templateRefProxy() {
|
|
11157
11178
|
return o.value;
|
|
11158
11179
|
}
|
|
11159
|
-
}, l.prop ?? r.attrs.name), C = B(null), y = B(null),
|
|
11180
|
+
}, l.prop ?? r.attrs.name), C = B(null), y = B(null), p = (v, z, P, j = !0) => {
|
|
11160
11181
|
const K = sf(l, v, z, P);
|
|
11161
11182
|
if (K === null) {
|
|
11162
11183
|
if (y.value === null) return;
|
|
@@ -11168,7 +11189,7 @@ function df(e, t, a, n) {
|
|
|
11168
11189
|
const X = Ae(K);
|
|
11169
11190
|
y.value = X;
|
|
11170
11191
|
let V = null;
|
|
11171
|
-
l.valueType === "text" ? V =
|
|
11192
|
+
l.valueType === "text" ? V = pl(l, X) : l.valueType === "item" ? V = X : V = Vl(l, X), j && (d("update:modelValue", V), d("change", V));
|
|
11172
11193
|
}
|
|
11173
11194
|
}, m = B([]), b = Ze(x(() => l.appearLoad), "appearLoad", St.Near, (v) => Ce(v)), S = of(), c = async (v, z) => {
|
|
11174
11195
|
if (v) {
|
|
@@ -11187,7 +11208,7 @@ function df(e, t, a, n) {
|
|
|
11187
11208
|
_ || (_ = !0, c(l.source, l.params));
|
|
11188
11209
|
};
|
|
11189
11210
|
fe([() => m.value, () => l.modelValue], ([v, z]) => {
|
|
11190
|
-
|
|
11211
|
+
p(z, l.valueType, v, !1), d("setValue", z);
|
|
11191
11212
|
});
|
|
11192
11213
|
const M = e, Y = x(() => ({
|
|
11193
11214
|
[M]: !0,
|
|
@@ -11197,14 +11218,14 @@ function df(e, t, a, n) {
|
|
|
11197
11218
|
[`${M}__content`]: !0,
|
|
11198
11219
|
[`is-${l.direction}`]: !0
|
|
11199
11220
|
})), I = (v) => {
|
|
11200
|
-
|
|
11221
|
+
p(v, "value", m.value, !0);
|
|
11201
11222
|
};
|
|
11202
11223
|
let N = Ee(l, "hintText"), $ = Ee(l, "hintVisible");
|
|
11203
11224
|
const Q = (v, z) => {
|
|
11204
11225
|
typeof l.sourceFilter == "function" && (v = v.filter(l.sourceFilter));
|
|
11205
11226
|
const P = [];
|
|
11206
11227
|
return v.forEach((j, K) => {
|
|
11207
|
-
const X = Vl(l, j), V =
|
|
11228
|
+
const X = Vl(l, j), V = pl(l, j);
|
|
11208
11229
|
let le = nf(l, j);
|
|
11209
11230
|
i.value === !0 && (le = i.value), h.value === !0 && (le = h.value);
|
|
11210
11231
|
const W = cf(l, j, K) ?? {}, Z = `${X}_${K}`, q = {
|
|
@@ -11255,8 +11276,8 @@ function df(e, t, a, n) {
|
|
|
11255
11276
|
}
|
|
11256
11277
|
};
|
|
11257
11278
|
}
|
|
11258
|
-
var { componentName: hf, create:
|
|
11259
|
-
function
|
|
11279
|
+
var { componentName: hf, create: pf, scope: gf } = he("radio-item"), mf = pf(df(hf, gf, tt, nt)), vf = mf;
|
|
11280
|
+
function gl(e, t) {
|
|
11260
11281
|
return typeof e.textKey == "string" && e.textKey.length > 0 ? t[e.textKey] : t.text;
|
|
11261
11282
|
}
|
|
11262
11283
|
function cl(e, t) {
|
|
@@ -11275,7 +11296,7 @@ var bf = class {
|
|
|
11275
11296
|
if (Array.isArray(t)) return t;
|
|
11276
11297
|
if (typeof t == "function") return await t(a);
|
|
11277
11298
|
const n = ft(e, this.scope);
|
|
11278
|
-
return n === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) &&
|
|
11299
|
+
return n === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) && pt(a) && (a = Ae(a)), await n(t, a));
|
|
11279
11300
|
}
|
|
11280
11301
|
};
|
|
11281
11302
|
function wf() {
|
|
@@ -11283,7 +11304,7 @@ function wf() {
|
|
|
11283
11304
|
return new bf(e);
|
|
11284
11305
|
}
|
|
11285
11306
|
function Ji(e, t, a) {
|
|
11286
|
-
return t === a ? !0 : !(t === null || a === null ||
|
|
11307
|
+
return t === a ? !0 : !(t === null || a === null || gl(e, t) !== gl(e, a) || cl(e, t) !== cl(e, a));
|
|
11287
11308
|
}
|
|
11288
11309
|
function Sf(e, t, a, n) {
|
|
11289
11310
|
if (n.length == 0 || t === "" || t === null || t === void 0) return null;
|
|
@@ -11292,11 +11313,11 @@ function Sf(e, t, a, n) {
|
|
|
11292
11313
|
return t.forEach((r) => {
|
|
11293
11314
|
for (let o of n) {
|
|
11294
11315
|
let s = !1;
|
|
11295
|
-
if (a === "text") s =
|
|
11316
|
+
if (a === "text") s = gl(e, o) === r;
|
|
11296
11317
|
else if (a === "item") s = Ji(e, o, r);
|
|
11297
11318
|
else {
|
|
11298
11319
|
let i = cl(e, o);
|
|
11299
|
-
i == null && (i =
|
|
11320
|
+
i == null && (i = gl(e, o)), s = i === r;
|
|
11300
11321
|
}
|
|
11301
11322
|
if (s) {
|
|
11302
11323
|
l.push(o);
|
|
@@ -11428,7 +11449,7 @@ function kf(e, t, a, n) {
|
|
|
11428
11449
|
get templateRefProxy() {
|
|
11429
11450
|
return o.value;
|
|
11430
11451
|
}
|
|
11431
|
-
}, l.prop ?? r.attrs.name), C = B([]), y = B([]),
|
|
11452
|
+
}, l.prop ?? r.attrs.name), C = B([]), y = B([]), p = (v, z, P, j = !0) => {
|
|
11432
11453
|
const K = Sf(l, v, z, P);
|
|
11433
11454
|
if (K === null) {
|
|
11434
11455
|
if (y.value === null || y.value.length === 0) return;
|
|
@@ -11448,7 +11469,7 @@ function kf(e, t, a, n) {
|
|
|
11448
11469
|
y.value = K;
|
|
11449
11470
|
let V = [], le = [];
|
|
11450
11471
|
K.forEach((Z) => {
|
|
11451
|
-
V.push(cl(l, Z)), l.valueType === "text" ? le.push(
|
|
11472
|
+
V.push(cl(l, Z)), l.valueType === "text" ? le.push(gl(l, Z)) : l.valueType === "item" ? le.push(Z) : le.push(cl(l, Z));
|
|
11452
11473
|
}), C.value = V;
|
|
11453
11474
|
const W = Ae(le);
|
|
11454
11475
|
j && (d("update:modelValue", W), d("change", W));
|
|
@@ -11470,7 +11491,7 @@ function kf(e, t, a, n) {
|
|
|
11470
11491
|
_ || (_ = !0, c(l.source, l.params));
|
|
11471
11492
|
};
|
|
11472
11493
|
fe([() => m.value, () => l.modelValue], ([v, z]) => {
|
|
11473
|
-
|
|
11494
|
+
p(z, l.valueType, v, !1), d("setValue", z);
|
|
11474
11495
|
});
|
|
11475
11496
|
const M = e, Y = x(() => ({
|
|
11476
11497
|
[M]: !0,
|
|
@@ -11480,14 +11501,14 @@ function kf(e, t, a, n) {
|
|
|
11480
11501
|
[`${M}__content`]: !0,
|
|
11481
11502
|
[`is-${l.direction}`]: !0
|
|
11482
11503
|
})), I = (v) => {
|
|
11483
|
-
|
|
11504
|
+
p(v, "value", m.value, !0);
|
|
11484
11505
|
};
|
|
11485
11506
|
let N = Ee(l, "hintText"), $ = Ee(l, "hintVisible");
|
|
11486
11507
|
const Q = (v, z) => {
|
|
11487
11508
|
typeof l.sourceFilter == "function" && (v = v.filter(l.sourceFilter));
|
|
11488
11509
|
const P = [];
|
|
11489
11510
|
return v.forEach((j, K) => {
|
|
11490
|
-
const X = cl(l, j), V =
|
|
11511
|
+
const X = cl(l, j), V = gl(l, j);
|
|
11491
11512
|
let le = yf(l, j);
|
|
11492
11513
|
i.value === !0 && (le = i.value), h.value === !0 && (le = h.value);
|
|
11493
11514
|
const W = Nf(l, j, K) ?? {}, Z = `${X}_${K}`, q = {
|
|
@@ -11579,7 +11600,7 @@ function Af(e, t, a, n) {
|
|
|
11579
11600
|
get templateRefProxy() {
|
|
11580
11601
|
return o.value;
|
|
11581
11602
|
}
|
|
11582
|
-
}, l.prop ?? r.attrs.name), C = Ee(l, "modelValue", (T) => Pe(T), d), y = e,
|
|
11603
|
+
}, l.prop ?? r.attrs.name), C = Ee(l, "modelValue", (T) => Pe(T), d), y = e, p = x(() => ({
|
|
11583
11604
|
[y]: !0,
|
|
11584
11605
|
disabled: i.value,
|
|
11585
11606
|
readonly: h.value
|
|
@@ -11611,7 +11632,7 @@ function Af(e, t, a, n) {
|
|
|
11611
11632
|
const N = {
|
|
11612
11633
|
...et(l, to),
|
|
11613
11634
|
ref: o,
|
|
11614
|
-
class:
|
|
11635
|
+
class: p.value,
|
|
11615
11636
|
hintText: S.value,
|
|
11616
11637
|
hintVisible: c.value
|
|
11617
11638
|
};
|
|
@@ -11694,7 +11715,7 @@ function Rf(e, t, a, n) {
|
|
|
11694
11715
|
fe(() => l.modelValue, (M) => {
|
|
11695
11716
|
C.value !== M && (C.value = M);
|
|
11696
11717
|
});
|
|
11697
|
-
const y = e,
|
|
11718
|
+
const y = e, p = x(() => ({
|
|
11698
11719
|
[y]: !0,
|
|
11699
11720
|
disabled: i.value,
|
|
11700
11721
|
readonly: h.value
|
|
@@ -11735,7 +11756,7 @@ function Rf(e, t, a, n) {
|
|
|
11735
11756
|
const $ = {
|
|
11736
11757
|
...et(l, lo),
|
|
11737
11758
|
ref: o,
|
|
11738
|
-
class:
|
|
11759
|
+
class: p.value,
|
|
11739
11760
|
hintText: S.value,
|
|
11740
11761
|
hintVisible: c.value
|
|
11741
11762
|
};
|
|
@@ -11806,7 +11827,7 @@ var { componentName: Of, create: Bf, scope: qf } = he("switch-item"), Hf = Bf(Rf
|
|
|
11806
11827
|
if (Array.isArray(t)) return t;
|
|
11807
11828
|
if (typeof t == "function") return await t(a, n);
|
|
11808
11829
|
const r = ft(e, this.scope);
|
|
11809
|
-
return r === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) &&
|
|
11830
|
+
return r === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) && pt(a) && (a = Ae(a)), await r(t, a, n));
|
|
11810
11831
|
}
|
|
11811
11832
|
};
|
|
11812
11833
|
function Wf() {
|
|
@@ -11858,11 +11879,11 @@ function Uf(e, t, a, n) {
|
|
|
11858
11879
|
get templateRefProxy() {
|
|
11859
11880
|
return o.value;
|
|
11860
11881
|
}
|
|
11861
|
-
}, l.prop ?? r.attrs.name), y = Ee(l, "modelValue", null, D),
|
|
11862
|
-
[
|
|
11882
|
+
}, l.prop ?? r.attrs.name), y = Ee(l, "modelValue", null, D), p = e, m = x(() => ({
|
|
11883
|
+
[p]: !0,
|
|
11863
11884
|
disabled: i.value,
|
|
11864
11885
|
readonly: h.value
|
|
11865
|
-
})), b = x(() => ({ [`${
|
|
11886
|
+
})), b = x(() => ({ [`${p}__content`]: !0 })), S = (j) => {
|
|
11866
11887
|
y.value = j, D("update:modelValue", j), D("change", j);
|
|
11867
11888
|
};
|
|
11868
11889
|
let c = Ee(l, "hintText"), _ = B(!1);
|
|
@@ -12070,18 +12091,18 @@ var ad = /* @__PURE__ */ We(ed, [["render", ld]]), { componentName: vh, create:
|
|
|
12070
12091
|
}
|
|
12071
12092
|
return !1;
|
|
12072
12093
|
});
|
|
12073
|
-
}), i.value = ee.sort((F, U) => F.sortIndex - U.sortIndex), u(), R &&
|
|
12094
|
+
}), i.value = ee.sort((F, U) => F.sortIndex - U.sortIndex), u(), R && p(!1);
|
|
12074
12095
|
};
|
|
12075
12096
|
s ? J(!0) : sn(D, e.initDelay, 5, 50, !1, J);
|
|
12076
12097
|
}, y = () => {
|
|
12077
|
-
i.value = (s ?? []).map((R) => ({ ...R })), u(),
|
|
12078
|
-
},
|
|
12098
|
+
i.value = (s ?? []).map((R) => ({ ...R })), u(), p();
|
|
12099
|
+
}, p = (R = !0) => {
|
|
12079
12100
|
R && f.save(e.groupProp, i.value), t("change", i.value.map((A) => ({ ...A })));
|
|
12080
12101
|
}, m = x(() => ({ "max-width": `${ke(e.popoverWidth) - 125}px` })), b = B(!1), S = B(!1), c = (R) => {
|
|
12081
12102
|
const A = [];
|
|
12082
12103
|
i.value.forEach((J) => {
|
|
12083
12104
|
R && A.push(J.prop), J.visible = R;
|
|
12084
|
-
}), b.value = !1, S.value = !1, i.value.length === A.length ? b.value = !0 : A.length > 0 && (S.value = !0), T.value = A,
|
|
12105
|
+
}), b.value = !1, S.value = !1, i.value.length === A.length ? b.value = !0 : A.length > 0 && (S.value = !0), T.value = A, p();
|
|
12085
12106
|
}, _ = () => {
|
|
12086
12107
|
y();
|
|
12087
12108
|
}, T = B([]), M = (R) => {
|
|
@@ -12089,7 +12110,7 @@ var ad = /* @__PURE__ */ We(ed, [["render", ld]]), { componentName: vh, create:
|
|
|
12089
12110
|
J.visible = R.indexOf(J.prop) !== -1;
|
|
12090
12111
|
}), b.value = !1, S.value = !1;
|
|
12091
12112
|
const A = i.value.length;
|
|
12092
|
-
R.length === A ? b.value = !0 : R.length > 0 && (S.value = !0),
|
|
12113
|
+
R.length === A ? b.value = !0 : R.length > 0 && (S.value = !0), p();
|
|
12093
12114
|
}, Y = () => {
|
|
12094
12115
|
C();
|
|
12095
12116
|
};
|
|
@@ -12124,14 +12145,14 @@ var ad = /* @__PURE__ */ We(ed, [["render", ld]]), { componentName: vh, create:
|
|
|
12124
12145
|
const F = i.value[re];
|
|
12125
12146
|
i.value.splice(re, 1), i.value.splice(ee + 1, 0, F);
|
|
12126
12147
|
}
|
|
12127
|
-
u(),
|
|
12148
|
+
u(), p();
|
|
12128
12149
|
}
|
|
12129
12150
|
}, P = (R) => {
|
|
12130
12151
|
const A = i.value[R];
|
|
12131
|
-
i.value.splice(R, 1), i.value.splice(0, 0, A), u(),
|
|
12152
|
+
i.value.splice(R, 1), i.value.splice(0, 0, A), u(), p();
|
|
12132
12153
|
}, j = (R) => {
|
|
12133
12154
|
const A = i.value[R];
|
|
12134
|
-
i.value.splice(R, 1), i.value.push(A), u(),
|
|
12155
|
+
i.value.splice(R, 1), i.value.push(A), u(), p();
|
|
12135
12156
|
};
|
|
12136
12157
|
n({ refresh: () => {
|
|
12137
12158
|
s = null, C(!1);
|
|
@@ -12200,8 +12221,8 @@ var ad = /* @__PURE__ */ We(ed, [["render", ld]]), { componentName: vh, create:
|
|
|
12200
12221
|
}), sd = { class: "fox-group-setting" }, ud = { class: "fox-group-setting__header" }, cd = { class: "fox-group-setting__body" }, fd = {
|
|
12201
12222
|
class: "fox-group-setting__body-list",
|
|
12202
12223
|
"data-role": "container"
|
|
12203
|
-
}, dd = ["data-index", "draggable"], hd = ["onMouseover", "onMouseleave"],
|
|
12204
|
-
function
|
|
12224
|
+
}, dd = ["data-index", "draggable"], hd = ["onMouseover", "onMouseleave"], pd = { class: "tools-item" };
|
|
12225
|
+
function gd(e, t, a, n, l, r) {
|
|
12205
12226
|
const o = $e("FoxCheckbox"), s = $e("FoxButton"), i = $e("DragIcon"), f = $e("Download"), h = $e("FoxIcon"), u = $e("FoxCheckboxGroup"), d = $e("FoxPopover");
|
|
12206
12227
|
return ne(), Le(d, oa(e.attrs, {
|
|
12207
12228
|
placement: e.popoverPlacement,
|
|
@@ -12263,7 +12284,7 @@ function pd(e, t, a, n, l, r) {
|
|
|
12263
12284
|
}, we(D.label), 45, hd)]),
|
|
12264
12285
|
_: 2
|
|
12265
12286
|
}, 1032, ["label"]),
|
|
12266
|
-
se("div",
|
|
12287
|
+
se("div", pd, [xe(h, {
|
|
12267
12288
|
onClick: (C) => e.toTop(D.sortIndex),
|
|
12268
12289
|
onMouseover: t[1] || (t[1] = (C) => e.onMouseOverForTip(C, e.toTopText)),
|
|
12269
12290
|
onMouseleave: t[2] || (t[2] = (C) => e.onMouseLeaveForTip(C)),
|
|
@@ -12289,7 +12310,7 @@ function pd(e, t, a, n, l, r) {
|
|
|
12289
12310
|
"onShow"
|
|
12290
12311
|
]);
|
|
12291
12312
|
}
|
|
12292
|
-
var md = /* @__PURE__ */ We(od, [["render",
|
|
12313
|
+
var md = /* @__PURE__ */ We(od, [["render", gd]]), vd = {
|
|
12293
12314
|
data: {
|
|
12294
12315
|
type: [
|
|
12295
12316
|
String,
|
|
@@ -12371,7 +12392,7 @@ var md = /* @__PURE__ */ We(od, [["render", pd]]), vd = {
|
|
|
12371
12392
|
if (Array.isArray(t)) return t;
|
|
12372
12393
|
if (typeof t == "function") return await t(a, n);
|
|
12373
12394
|
const r = ft(e, this.scope);
|
|
12374
|
-
return r === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) &&
|
|
12395
|
+
return r === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) && pt(a) && (a = Ae(a)), await r(t, a, n));
|
|
12375
12396
|
}
|
|
12376
12397
|
};
|
|
12377
12398
|
function bd() {
|
|
@@ -12406,17 +12427,16 @@ function Sd(e, t, a) {
|
|
|
12406
12427
|
let C = null;
|
|
12407
12428
|
n.lazy && (typeof n.load == "function" ? C = n.load : C = async (c, _) => {
|
|
12408
12429
|
let T = {};
|
|
12409
|
-
n.params && Object.assign(T, n.params), c && Object.assign(T, c), _(await f.load("
|
|
12430
|
+
n.params && Object.assign(T, n.params), c && Object.assign(T, c), _(await f.load("tree", n.data, T, !0));
|
|
12410
12431
|
});
|
|
12411
12432
|
const y = {
|
|
12412
12433
|
label: n.textKey,
|
|
12413
|
-
value: n.valueKey,
|
|
12414
12434
|
children: n.childrenKey,
|
|
12415
12435
|
isLeaf: n.leafKey,
|
|
12416
12436
|
class: n.classKey,
|
|
12417
12437
|
disabled: n.disabledKey,
|
|
12418
12438
|
...n.props ?? {}
|
|
12419
|
-
},
|
|
12439
|
+
}, p = (c = {}) => new Promise(async (_) => {
|
|
12420
12440
|
u.value = { ...Ae(c ?? {}) }, await h(n.data, d.value), _();
|
|
12421
12441
|
}), m = function(c, _) {
|
|
12422
12442
|
if (typeof n.filterNodeMethod == "function") return n.filterNodeMethod(c, _);
|
|
@@ -12432,7 +12452,7 @@ function Sd(e, t, a) {
|
|
|
12432
12452
|
return Reflect.apply(T, b.value, [..._]);
|
|
12433
12453
|
};
|
|
12434
12454
|
return l.expose({
|
|
12435
|
-
loadData:
|
|
12455
|
+
loadData: p,
|
|
12436
12456
|
filter: S("filter"),
|
|
12437
12457
|
updateKeyChildren: S("updateKeyChildren"),
|
|
12438
12458
|
getCheckedNodes: S("getCheckedNodes"),
|
|
@@ -12457,6 +12477,7 @@ function Sd(e, t, a) {
|
|
|
12457
12477
|
class: s.value,
|
|
12458
12478
|
lazy: n.lazy,
|
|
12459
12479
|
props: y,
|
|
12480
|
+
nodekey: n.valueKey,
|
|
12460
12481
|
ref: (Y) => b.value = Y
|
|
12461
12482
|
};
|
|
12462
12483
|
C ? c.load = C : c.data = i.value, c["filter-node-method"] = m;
|
|
@@ -12653,7 +12674,7 @@ var Dd = class {
|
|
|
12653
12674
|
return s === null ? (console.error(`[FoxUI]${e} component not found api function`), {
|
|
12654
12675
|
totalSize: 0,
|
|
12655
12676
|
page: []
|
|
12656
|
-
}) : (ht(l) &&
|
|
12677
|
+
}) : (ht(l) && pt(l) && (l = Ae(l)), await Reflect.apply(s, null, [
|
|
12657
12678
|
t,
|
|
12658
12679
|
a,
|
|
12659
12680
|
n,
|
|
@@ -12676,7 +12697,7 @@ function Ad(e, t, a, n, l, r, o, s, i, f, h) {
|
|
|
12676
12697
|
"update:visible"
|
|
12677
12698
|
],
|
|
12678
12699
|
setup(u, d) {
|
|
12679
|
-
const { emitEvent: D, exposeApi: C } = vl({ context: d }, u.prop), { slots: y } = d, { toLocaleRefs:
|
|
12700
|
+
const { emitEvent: D, exposeApi: C } = vl({ context: d }, u.prop), { slots: y } = d, { toLocaleRefs: p } = Fe(t), m = p(u, [
|
|
12680
12701
|
"title",
|
|
12681
12702
|
"loadText",
|
|
12682
12703
|
"noMoreText",
|
|
@@ -12691,10 +12712,10 @@ function Ad(e, t, a, n, l, r, o, s, i, f, h) {
|
|
|
12691
12712
|
try {
|
|
12692
12713
|
if (N.value === !1) return;
|
|
12693
12714
|
let H = null;
|
|
12694
|
-
_e(_.value) || (H = (
|
|
12695
|
-
const O = Ql(u,
|
|
12715
|
+
_e(_.value) || (H = (g) => {
|
|
12716
|
+
const O = Ql(u, g);
|
|
12696
12717
|
if (typeof O == "string" && O.includes(_.value)) return !0;
|
|
12697
|
-
const te = Zn(u,
|
|
12718
|
+
const te = Zn(u, g);
|
|
12698
12719
|
return !!(typeof te == "string" && te.includes(_.value));
|
|
12699
12720
|
});
|
|
12700
12721
|
const w = await b.load("actionsheet", k, G, ae, M.value, Y, H ?? void 0);
|
|
@@ -12753,11 +12774,11 @@ function Ad(e, t, a, n, l, r, o, s, i, f, h) {
|
|
|
12753
12774
|
k.push(de);
|
|
12754
12775
|
}
|
|
12755
12776
|
}
|
|
12756
|
-
let H = null, w = null,
|
|
12757
|
-
return u.multiple ? (H = k, w = ae,
|
|
12777
|
+
let H = null, w = null, g = null;
|
|
12778
|
+
return u.multiple ? (H = k, w = ae, g = G) : (H = k[0] ?? null, w = ae[0] ?? null, g = G[0] ?? null), {
|
|
12758
12779
|
value: H,
|
|
12759
12780
|
text: w,
|
|
12760
|
-
item:
|
|
12781
|
+
item: g
|
|
12761
12782
|
};
|
|
12762
12783
|
}, X = (k) => {
|
|
12763
12784
|
D("update:modelValue", k.value), D("update:text", k.text), D("change", k.value, k.item, k.text);
|
|
@@ -12819,12 +12840,12 @@ function Ad(e, t, a, n, l, r, o, s, i, f, h) {
|
|
|
12819
12840
|
subText: H,
|
|
12820
12841
|
item: w
|
|
12821
12842
|
});
|
|
12822
|
-
const
|
|
12823
|
-
if (
|
|
12843
|
+
const g = [], O = E("view", { class: "fox-actionsheet__list-item-text" }, [k]);
|
|
12844
|
+
if (g.push(O), H) {
|
|
12824
12845
|
const te = E("view", { class: "fox-actionsheet__list-item-subtext" }, [H]);
|
|
12825
|
-
|
|
12846
|
+
g.push(te);
|
|
12826
12847
|
}
|
|
12827
|
-
return E("view", { class: ["fox-actionsheet__list-item-label"] },
|
|
12848
|
+
return E("view", { class: ["fox-actionsheet__list-item-label"] }, g);
|
|
12828
12849
|
}, ee = (k, G, ae, H) => y.optionIcon ? y.optionIcon({
|
|
12829
12850
|
checked: k,
|
|
12830
12851
|
disabled: G,
|
|
@@ -12847,14 +12868,14 @@ function Ad(e, t, a, n, l, r, o, s, i, f, h) {
|
|
|
12847
12868
|
}), F = () => {
|
|
12848
12869
|
const k = [];
|
|
12849
12870
|
for (let G = 0; G < S.value.length; G++) {
|
|
12850
|
-
const ae = S.value[G], H = Ql(u, ae), w = Zn(u, ae),
|
|
12871
|
+
const ae = S.value[G], H = Ql(u, ae), w = Zn(u, ae), g = ["fox-actionsheet__list-item"], O = {};
|
|
12851
12872
|
let te = $d(u, ae), oe = u.iconSize ? ke(u.iconSize) : null;
|
|
12852
12873
|
const de = zd(u, ae, G);
|
|
12853
|
-
de && (te = te || de.disabled, de.class &&
|
|
12854
|
-
const
|
|
12855
|
-
te &&
|
|
12874
|
+
de && (te = te || de.disabled, de.class && g.push(de.class), de.style && Object.assign(O, de.style)), te = !!(u.disabled || te);
|
|
12875
|
+
const pe = v.value.includes(G);
|
|
12876
|
+
te && g.push("is-disabled"), pe && g.push("is-checked");
|
|
12856
12877
|
const ve = {
|
|
12857
|
-
class:
|
|
12878
|
+
class: g,
|
|
12858
12879
|
style: O,
|
|
12859
12880
|
key: `${G}`,
|
|
12860
12881
|
onClick: () => {
|
|
@@ -12864,13 +12885,13 @@ function Ad(e, t, a, n, l, r, o, s, i, f, h) {
|
|
|
12864
12885
|
let Te = [];
|
|
12865
12886
|
if (y.option) Te.push(y.option({
|
|
12866
12887
|
item: ae,
|
|
12867
|
-
checked:
|
|
12888
|
+
checked: pe,
|
|
12868
12889
|
disabled: te
|
|
12869
12890
|
}));
|
|
12870
12891
|
else {
|
|
12871
|
-
const Ve = re(H,
|
|
12892
|
+
const Ve = re(H, pe, te, w, ae);
|
|
12872
12893
|
Te.push(Ve);
|
|
12873
|
-
const Ye = ee(
|
|
12894
|
+
const Ye = ee(pe, te, oe, ae);
|
|
12874
12895
|
Te.push(Ye);
|
|
12875
12896
|
}
|
|
12876
12897
|
const ze = E("view", ve, Te);
|
|
@@ -12944,8 +12965,8 @@ function Ad(e, t, a, n, l, r, o, s, i, f, h) {
|
|
|
12944
12965
|
const te = U();
|
|
12945
12966
|
k.push(te);
|
|
12946
12967
|
}
|
|
12947
|
-
const
|
|
12948
|
-
if (!u.poppable) return
|
|
12968
|
+
const g = E("view", { class: "fox-actionsheet" }, k);
|
|
12969
|
+
if (!u.poppable) return g;
|
|
12949
12970
|
const O = ["fox-actionsheet__popup"];
|
|
12950
12971
|
return u.popClass && O.push(u.popClass), E(a, {
|
|
12951
12972
|
popClass: O.join(" "),
|
|
@@ -12956,7 +12977,7 @@ function Ad(e, t, a, n, l, r, o, s, i, f, h) {
|
|
|
12956
12977
|
round: "round",
|
|
12957
12978
|
onClickOverlay: Z,
|
|
12958
12979
|
closeOnClickOverlay: u.closeOnClickOverlay
|
|
12959
|
-
}, { default: () =>
|
|
12980
|
+
}, { default: () => g });
|
|
12960
12981
|
};
|
|
12961
12982
|
}
|
|
12962
12983
|
};
|
|
@@ -13041,18 +13062,18 @@ function Ed(e, t, a) {
|
|
|
13041
13062
|
c = M - Y - L, _ = L;
|
|
13042
13063
|
}
|
|
13043
13064
|
return u.beforeScrollTop > _ ? T = "up" : T = "down", u.beforeScrollTop = _, l("scroll-change", _), c <= n.threshold && T == "down";
|
|
13044
|
-
},
|
|
13065
|
+
}, p = () => {
|
|
13045
13066
|
ln(() => {
|
|
13046
13067
|
if (!y() || !n.hasMore || u.isInfiniting) return !1;
|
|
13047
13068
|
u.isInfiniting = !0, l("update:modelValue", !0), $t(() => l("load-more"));
|
|
13048
13069
|
});
|
|
13049
13070
|
}, m = () => {
|
|
13050
|
-
h.value && h.value.addEventListener("scroll",
|
|
13071
|
+
h.value && h.value.addEventListener("scroll", p, n.useCapture);
|
|
13051
13072
|
}, b = () => {
|
|
13052
|
-
h.value && h.value.removeEventListener("scroll",
|
|
13073
|
+
h.value && h.value.removeEventListener("scroll", p, n.useCapture);
|
|
13053
13074
|
};
|
|
13054
13075
|
Re(() => {
|
|
13055
|
-
m(), n.immediate &&
|
|
13076
|
+
m(), n.immediate && p();
|
|
13056
13077
|
}), Jt(() => {
|
|
13057
13078
|
b();
|
|
13058
13079
|
});
|
|
@@ -13182,7 +13203,7 @@ var { componentName: Fd, create: Rd, scope: Od } = he("infinite-loading"), Bd =
|
|
|
13182
13203
|
}, 0);
|
|
13183
13204
|
let N = I.target.value;
|
|
13184
13205
|
n.maxLength && N.length > Number(n.maxLength) && (N = N.slice(0, Number(n.maxLength))), D.value = {}, r("blur", N, I);
|
|
13185
|
-
},
|
|
13206
|
+
}, p = (I) => {
|
|
13186
13207
|
r("update:modelValue", "", I), r("change", "", I), r("clear", "");
|
|
13187
13208
|
}, m = x(() => String(n.modelValue).length > 0), b = x(() => {
|
|
13188
13209
|
const I = {};
|
|
@@ -13234,7 +13255,7 @@ var { componentName: Fd, create: Rd, scope: Od } = he("infinite-loading"), Bd =
|
|
|
13234
13255
|
const v = E("view", {
|
|
13235
13256
|
class: [`${e}__search-icon`, `${e}__input-clear-icon`],
|
|
13236
13257
|
style: b.value,
|
|
13237
|
-
onClick:
|
|
13258
|
+
onClick: p
|
|
13238
13259
|
}, [E(i?.clear?.() ?? n.clearIcon ?? a)]);
|
|
13239
13260
|
Q.push(v);
|
|
13240
13261
|
}
|
|
@@ -13275,7 +13296,7 @@ var { componentName: Fd, create: Rd, scope: Od } = he("infinite-loading"), Bd =
|
|
|
13275
13296
|
}, I);
|
|
13276
13297
|
};
|
|
13277
13298
|
}
|
|
13278
|
-
}), { componentName: jd, create: Kd, scope: Wd } = he("searchbar"), Yd = Kd(Hd(jd, Wd, vu)), co = Yd, { componentName: Ud, create: Gd, scope: Xd } = he("actionsheet-pane"), Qd = Gd(Ad(Ud, Xd, ll, uo, Ll, co, z0, _0, Li,
|
|
13299
|
+
}), { componentName: jd, create: Kd, scope: Wd } = he("searchbar"), Yd = Kd(Hd(jd, Wd, vu)), co = Yd, { componentName: Ud, create: Gd, scope: Xd } = he("actionsheet-pane"), Qd = Gd(Ad(Ud, Xd, ll, uo, Ll, co, z0, _0, Li, p0, !1)), fo = Qd, ho = {
|
|
13279
13300
|
type: {
|
|
13280
13301
|
type: String,
|
|
13281
13302
|
default: "text"
|
|
@@ -13342,7 +13363,7 @@ function Jd(e, t, a, n, l, r) {
|
|
|
13342
13363
|
get templateRefProxy() {
|
|
13343
13364
|
return i.value;
|
|
13344
13365
|
}
|
|
13345
|
-
}, o.prop ?? s.attrs.name), { toLocaleRefs:
|
|
13366
|
+
}, o.prop ?? s.attrs.name), { toLocaleRefs: p } = Fe(t), m = p(o, ["placeholder"]), b = B(!1), S = Ee(o, "modelValue", null, C), c = B(""), _ = x(() => Array.isArray(c.value) && c.value.length > 0 ? c.value.join(o.separator) : c.value ? c.value : o.emptyText ?? ""), T = e, M = x(() => ({
|
|
13346
13367
|
[T]: !0,
|
|
13347
13368
|
readonly: d.value,
|
|
13348
13369
|
disabled: h.value
|
|
@@ -13438,7 +13459,7 @@ function Jd(e, t, a, n, l, r) {
|
|
|
13438
13459
|
}
|
|
13439
13460
|
};
|
|
13440
13461
|
}
|
|
13441
|
-
var { componentName: e5, create: t5, scope: l5 } = he("actionsheet-item"), a5 = t5(Jd(e5, l5, tt, nt, fo)), n5 = a5,
|
|
13462
|
+
var { componentName: e5, create: t5, scope: l5 } = he("actionsheet-item"), a5 = t5(Jd(e5, l5, tt, nt, fo)), n5 = a5, po = {
|
|
13442
13463
|
readonly: {
|
|
13443
13464
|
type: Boolean,
|
|
13444
13465
|
default: !1
|
|
@@ -13472,7 +13493,7 @@ var { componentName: e5, create: t5, scope: l5 } = he("actionsheet-item"), a5 =
|
|
|
13472
13493
|
}
|
|
13473
13494
|
}, bn = {
|
|
13474
13495
|
...yn,
|
|
13475
|
-
...
|
|
13496
|
+
...po,
|
|
13476
13497
|
modelValue: {
|
|
13477
13498
|
type: [
|
|
13478
13499
|
String,
|
|
@@ -13515,7 +13536,7 @@ var { componentName: e5, create: t5, scope: l5 } = he("actionsheet-item"), a5 =
|
|
|
13515
13536
|
function r5(e) {
|
|
13516
13537
|
return e === window;
|
|
13517
13538
|
}
|
|
13518
|
-
var
|
|
13539
|
+
var go = (e) => {
|
|
13519
13540
|
const t = Ft(e);
|
|
13520
13541
|
if (r5(t)) {
|
|
13521
13542
|
const a = t.innerWidth, n = t.innerHeight;
|
|
@@ -13592,22 +13613,22 @@ function i5() {
|
|
|
13592
13613
|
o.value = 0, s.value = 0, i.value = 0, f.value = 0, h.value = "", a.value = 0;
|
|
13593
13614
|
};
|
|
13594
13615
|
return {
|
|
13595
|
-
move: ((
|
|
13596
|
-
if (
|
|
13597
|
-
const m =
|
|
13616
|
+
move: ((p) => {
|
|
13617
|
+
if (p.touches) {
|
|
13618
|
+
const m = p.touches[0];
|
|
13598
13619
|
o.value = m.clientX - e.value, s.value = m.clientY - t.value, l.value = m.clientX, r.value = m.clientY;
|
|
13599
13620
|
} else {
|
|
13600
|
-
const m =
|
|
13621
|
+
const m = p;
|
|
13601
13622
|
o.value = m.clientX - e.value, s.value = m.clientY - t.value, l.value = m.clientX, r.value = m.clientY;
|
|
13602
13623
|
}
|
|
13603
13624
|
i.value = Math.abs(o.value), f.value = Math.abs(s.value), n.value = Date.now() - a.value, h.value || (h.value = mo(i.value, f.value));
|
|
13604
13625
|
}),
|
|
13605
|
-
start: ((
|
|
13606
|
-
if (D(),
|
|
13607
|
-
const m =
|
|
13626
|
+
start: ((p) => {
|
|
13627
|
+
if (D(), p.touches) {
|
|
13628
|
+
const m = p.touches[0];
|
|
13608
13629
|
e.value = m.clientX, t.value = m.clientY;
|
|
13609
13630
|
} else {
|
|
13610
|
-
const m =
|
|
13631
|
+
const m = p;
|
|
13611
13632
|
e.value = m.clientX, t.value = m.clientY;
|
|
13612
13633
|
}
|
|
13613
13634
|
a.value = Date.now();
|
|
@@ -13660,7 +13681,7 @@ var c5 = class {
|
|
|
13660
13681
|
if (Array.isArray(t)) return t;
|
|
13661
13682
|
if (typeof t == "function") return await t(a);
|
|
13662
13683
|
const n = ft(e, this.scope);
|
|
13663
|
-
return n === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) &&
|
|
13684
|
+
return n === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) && pt(a) && (a = Ae(a)), await n(t, a));
|
|
13664
13685
|
}
|
|
13665
13686
|
};
|
|
13666
13687
|
function f5() {
|
|
@@ -13747,7 +13768,7 @@ function ar(e) {
|
|
|
13747
13768
|
value: e
|
|
13748
13769
|
};
|
|
13749
13770
|
}
|
|
13750
|
-
var h5 = 15,
|
|
13771
|
+
var h5 = 15, p5 = 300, g5 = 200, { create: m5 } = he("picker-column");
|
|
13751
13772
|
function v5(e) {
|
|
13752
13773
|
e.stopPropagation();
|
|
13753
13774
|
}
|
|
@@ -13778,7 +13799,7 @@ var b5 = {
|
|
|
13778
13799
|
type: Boolean,
|
|
13779
13800
|
default: !1
|
|
13780
13801
|
},
|
|
13781
|
-
...
|
|
13802
|
+
...po
|
|
13782
13803
|
}, w5 = m5({
|
|
13783
13804
|
props: b5,
|
|
13784
13805
|
emits: [
|
|
@@ -13815,7 +13836,7 @@ var b5 = {
|
|
|
13815
13836
|
transitionEndTrigger: null
|
|
13816
13837
|
}), d = (M) => _t(e, M), D = (M) => Zt(e, M), C = i5(), y = () => {
|
|
13817
13838
|
u.transitionEndTrigger && (u.transitionEndTrigger(), u.transitionEndTrigger = null);
|
|
13818
|
-
},
|
|
13839
|
+
}, p = (M, Y = !1, L = !1) => {
|
|
13819
13840
|
if (u.currIndex = M, Y) {
|
|
13820
13841
|
const I = () => {
|
|
13821
13842
|
u.moving = !1, t("update:modelValue", M), t("change", M);
|
|
@@ -13829,14 +13850,14 @@ var b5 = {
|
|
|
13829
13850
|
I < N && (I = N), I > 0 && (I = 0);
|
|
13830
13851
|
let $ = Math.abs(Math.round(-I / e.itemHeight));
|
|
13831
13852
|
const Q = -$ * e.itemHeight, v = `${($ + 1) * u.rotation}deg`;
|
|
13832
|
-
|
|
13853
|
+
p($, !0, L ? L > 0 : !1), b(Q, Y, L, v);
|
|
13833
13854
|
} else {
|
|
13834
13855
|
let N = (-I / e.itemHeight + 1) * u.rotation;
|
|
13835
13856
|
const $ = (e.source.length + 1) * u.rotation, Q = 0;
|
|
13836
13857
|
if (N = Math.min(Math.max(N, Q), $), e.threeDimensional && (N < Q || N > $)) return;
|
|
13837
13858
|
b(I, null, void 0, `${N}deg`);
|
|
13838
13859
|
}
|
|
13839
|
-
}, b = (M = 0, Y, L =
|
|
13860
|
+
}, b = (M = 0, Y, L = g5, I) => {
|
|
13840
13861
|
Y === "end" ? u.scrollTime = L : u.scrollTime = 0, u.deg = I, u.scrollDistance = M;
|
|
13841
13862
|
}, S = (M, Y) => (M = Math.abs(M / Y) / 3e-3 * (M < 0 ? -1 : 1), M), c = (M) => {
|
|
13842
13863
|
e.readonly || (u.startDistance = u.scrollDistance, C.start(M), u.transitionEndTrigger = null);
|
|
@@ -13845,7 +13866,7 @@ var b5 = {
|
|
|
13845
13866
|
}, T = () => {
|
|
13846
13867
|
if (e.readonly) return;
|
|
13847
13868
|
const M = C.deltaY.value, Y = C.duration.value;
|
|
13848
|
-
if (Y <
|
|
13869
|
+
if (Y < p5 && Math.abs(M) > h5) {
|
|
13849
13870
|
const L = S(M, Y);
|
|
13850
13871
|
m(L, "end", Pe(e.swipeDuration));
|
|
13851
13872
|
} else m(M, "end", 0);
|
|
@@ -13934,7 +13955,7 @@ var N5 = /* @__PURE__ */ We(w5, [["render", x5]]), { create: C5, componentName:
|
|
|
13934
13955
|
fe(() => e.visible, ($) => {
|
|
13935
13956
|
$ && o.value <= 0 && setTimeout(() => {
|
|
13936
13957
|
if (r.value) {
|
|
13937
|
-
const Q =
|
|
13958
|
+
const Q = go(r.value);
|
|
13938
13959
|
o.value = Q.height, s5(o.value);
|
|
13939
13960
|
}
|
|
13940
13961
|
}, 50);
|
|
@@ -13986,9 +14007,9 @@ var N5 = /* @__PURE__ */ We(w5, [["render", x5]]), { create: C5, componentName:
|
|
|
13986
14007
|
z && (d.value = z.texts, t("update:text", d.value));
|
|
13987
14008
|
}
|
|
13988
14009
|
});
|
|
13989
|
-
const
|
|
14010
|
+
const p = B(e.visible);
|
|
13990
14011
|
fe(() => e.visible, ($) => {
|
|
13991
|
-
|
|
14012
|
+
p.value = $;
|
|
13992
14013
|
});
|
|
13993
14014
|
const m = ($) => {
|
|
13994
14015
|
let Q = er(e, $);
|
|
@@ -14047,14 +14068,14 @@ var N5 = /* @__PURE__ */ We(w5, [["render", x5]]), { create: C5, componentName:
|
|
|
14047
14068
|
classes: s,
|
|
14048
14069
|
columns: _,
|
|
14049
14070
|
dataType: f,
|
|
14050
|
-
show:
|
|
14071
|
+
show: p,
|
|
14051
14072
|
itemHeight: o,
|
|
14052
14073
|
top: T,
|
|
14053
14074
|
isReadonly: b,
|
|
14054
14075
|
getIndex: c,
|
|
14055
14076
|
change: ($, Q) => {
|
|
14056
14077
|
if (S($, Q), e.isAutoBackFill) {
|
|
14057
|
-
const v = !
|
|
14078
|
+
const v = !p.value;
|
|
14058
14079
|
M(v);
|
|
14059
14080
|
}
|
|
14060
14081
|
},
|
|
@@ -14214,7 +14235,7 @@ function I5(e, t, a, n) {
|
|
|
14214
14235
|
get templateRefProxy() {
|
|
14215
14236
|
return o.value;
|
|
14216
14237
|
}
|
|
14217
|
-
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]),
|
|
14238
|
+
}, l.prop ?? r.attrs.name), { toLocaleRefs: C } = Fe(t), y = C(l, ["placeholder"]), p = B(!1), m = e, b = x(() => ({
|
|
14218
14239
|
[m]: !0,
|
|
14219
14240
|
readonly: h.value,
|
|
14220
14241
|
disabled: i.value
|
|
@@ -14232,10 +14253,10 @@ function I5(e, t, a, n) {
|
|
|
14232
14253
|
let z = Ee(l, "hintText"), P = B(!1);
|
|
14233
14254
|
const j = (W) => {
|
|
14234
14255
|
let Z = W.target.value;
|
|
14235
|
-
|
|
14256
|
+
p.value = !0, _e(z.value) || (P.value = !0), d("focus", Z, W);
|
|
14236
14257
|
}, K = (W) => {
|
|
14237
14258
|
setTimeout(() => {
|
|
14238
|
-
P.value && (P.value = !1),
|
|
14259
|
+
P.value && (P.value = !1), p.value = !1;
|
|
14239
14260
|
}, 0);
|
|
14240
14261
|
let Z = W.target.value;
|
|
14241
14262
|
l.maxLength && Z.length > Number(l.maxLength) && (Z = Z.slice(0, Number(l.maxLength))), L.value ? setTimeout(() => {
|
|
@@ -14357,7 +14378,7 @@ function O5(e, t, a, n) {
|
|
|
14357
14378
|
[`${C}`]: !0,
|
|
14358
14379
|
disabled: s.value,
|
|
14359
14380
|
readonly: i.value
|
|
14360
|
-
})),
|
|
14381
|
+
})), p = x(() => ({ [`${C}__content`]: !0 })), m = x(() => ({
|
|
14361
14382
|
[`${C}__main`]: !0,
|
|
14362
14383
|
[`${C}__placeholder`]: !s.value && _e(D.value)
|
|
14363
14384
|
})), b = Ze(x(() => l.textAlign), "textAlign"), S = x(() => {
|
|
@@ -14403,7 +14424,7 @@ function O5(e, t, a, n) {
|
|
|
14403
14424
|
r.slots.sub ? J = E("view", A, [r.slots.sub(l.desc)]) : J = E("view", A, [l.desc]), q.push(J);
|
|
14404
14425
|
}
|
|
14405
14426
|
const R = E("view", {
|
|
14406
|
-
class:
|
|
14427
|
+
class: p.value,
|
|
14407
14428
|
onClick: Q
|
|
14408
14429
|
}, q);
|
|
14409
14430
|
P.push(R);
|
|
@@ -14544,7 +14565,7 @@ function G5(e, t, a, n, l, r = !1) {
|
|
|
14544
14565
|
fe(() => o.modelValue, (w) => {
|
|
14545
14566
|
y.value !== w && (y.value = w, le(!1));
|
|
14546
14567
|
});
|
|
14547
|
-
const
|
|
14568
|
+
const p = B({
|
|
14548
14569
|
"fox-tabs-bar__popup": !0,
|
|
14549
14570
|
"fox-tabs-bar__popup--show": !1,
|
|
14550
14571
|
"fox-tabs-bar__popup--hide": !1
|
|
@@ -14555,71 +14576,71 @@ function G5(e, t, a, n, l, r = !1) {
|
|
|
14555
14576
|
const w = !S.value;
|
|
14556
14577
|
_(w);
|
|
14557
14578
|
}, _ = (w) => {
|
|
14558
|
-
const
|
|
14559
|
-
|
|
14560
|
-
|
|
14561
|
-
}, 0)) : (
|
|
14579
|
+
const g = w;
|
|
14580
|
+
g ? (S.value = g, setTimeout(() => {
|
|
14581
|
+
p.value["fox-tabs-bar__popup--show"] = !0, p.value["fox-tabs-bar__popup--hide"] = !1;
|
|
14582
|
+
}, 0)) : (p.value["fox-tabs-bar__popup--show"] = !1, p.value["fox-tabs-bar__popup--hide"] = !0, b.value ? b.value.addEventListener("transitionend", () => {
|
|
14562
14583
|
S.value = !1;
|
|
14563
14584
|
}, { once: !0 }) : setTimeout(() => {
|
|
14564
14585
|
S.value = !1;
|
|
14565
14586
|
}, 0));
|
|
14566
|
-
}, T = B(), M = B([]), Y = (w,
|
|
14567
|
-
M.value[
|
|
14568
|
-
}, L = (w) => (
|
|
14569
|
-
Y(
|
|
14570
|
-
}, I = (w,
|
|
14587
|
+
}, T = B(), M = B([]), Y = (w, g) => {
|
|
14588
|
+
M.value[g] = w;
|
|
14589
|
+
}, L = (w) => (g) => {
|
|
14590
|
+
Y(g, w);
|
|
14591
|
+
}, I = (w, g) => {
|
|
14571
14592
|
const O = T.value, te = M.value;
|
|
14572
14593
|
if (!O || !te || !te[w]) return;
|
|
14573
14594
|
const oe = te[w];
|
|
14574
14595
|
let de = 0;
|
|
14575
|
-
o.direction === "vertical" ? de = oe.offsetTop - (O.offsetHeight - oe.offsetHeight) / 2 : de = oe.offsetLeft - (O.offsetWidth - oe.offsetWidth) / 2, N(O, de,
|
|
14576
|
-
}, N = (w,
|
|
14596
|
+
o.direction === "vertical" ? de = oe.offsetTop - (O.offsetHeight - oe.offsetHeight) / 2 : de = oe.offsetLeft - (O.offsetWidth - oe.offsetWidth) / 2, N(O, de, g ? 0 : 0.3, o.direction);
|
|
14597
|
+
}, N = (w, g, O, te) => {
|
|
14577
14598
|
let oe = 0;
|
|
14578
|
-
const de = te === "horizontal" ? w.scrollLeft : w.scrollTop,
|
|
14599
|
+
const de = te === "horizontal" ? w.scrollLeft : w.scrollTop, pe = O === 0 ? 1 : Math.round(O * 1e3 / 16);
|
|
14579
14600
|
function ve() {
|
|
14580
|
-
te === "horizontal" ? w.scrollLeft += (
|
|
14601
|
+
te === "horizontal" ? w.scrollLeft += (g - de) / pe : w.scrollTop += (g - de) / pe, ++oe < pe && Qr(ve);
|
|
14581
14602
|
}
|
|
14582
14603
|
ve();
|
|
14583
|
-
}, $ = (w,
|
|
14604
|
+
}, $ = (w, g) => {
|
|
14584
14605
|
const O = Sl(o, w), te = {};
|
|
14585
|
-
return te[`${e}__titles-item`] = !0, te.disabled = ir(o, w), te.active = O === y.value, o.shape && (te[`${o.shape}`] = !0), o.ellipsis && (te.ellipsis = !0),
|
|
14586
|
-
}, Q = (w,
|
|
14606
|
+
return te[`${e}__titles-item`] = !0, te.disabled = ir(o, w), te.active = O === y.value, o.shape && (te[`${o.shape}`] = !0), o.ellipsis && (te.ellipsis = !0), g && (g.class && (te[`${g.class}`] = !0), g.disabled === !0 && (te.disabled = g.disabled)), te;
|
|
14607
|
+
}, Q = (w, g) => {
|
|
14587
14608
|
const O = {};
|
|
14588
14609
|
if (C.value > 0) {
|
|
14589
14610
|
const te = Math.abs(C.value / 2);
|
|
14590
14611
|
o.direction === "vertical" ? (O["margin-top"] = `${te}px`, O["margin-bottom"] = `${te}px`) : (O["margin-left"] = `${te}px`, O["margin-right"] = `${te}px`);
|
|
14591
14612
|
}
|
|
14592
|
-
return
|
|
14593
|
-
}, v = (w,
|
|
14613
|
+
return g && g.style && Object.assign(O, g.style), O;
|
|
14614
|
+
}, v = (w, g) => `${Sl(o, w) ?? g}`, z = (w, g) => {
|
|
14594
14615
|
const O = Sl(o, w), te = {};
|
|
14595
14616
|
te[`${e}__popup-item`] = !0, te.disabled = ir(o, w), te.active = O === y.value, o.shape && (te[`${o.shape}`] = !0);
|
|
14596
|
-
const oe = or(o, w,
|
|
14617
|
+
const oe = or(o, w, g);
|
|
14597
14618
|
return oe && oe.disabled === !0 && (te.disabled = oe.disabled), te;
|
|
14598
|
-
}, P = x(() => (o.data ?? []).filter((w) => W5(o, w) !== !1)), j = (w,
|
|
14619
|
+
}, P = x(() => (o.data ?? []).filter((w) => W5(o, w) !== !1)), j = (w, g) => {
|
|
14599
14620
|
const O = Sl(o, w);
|
|
14600
|
-
if (i("click", w,
|
|
14621
|
+
if (i("click", w, g), y.value == O) return;
|
|
14601
14622
|
const te = () => {
|
|
14602
|
-
y.value = O, o.scroll && I(
|
|
14623
|
+
y.value = O, o.scroll && I(g, !1), i("update:modelValue", O), i("change", w, g);
|
|
14603
14624
|
};
|
|
14604
14625
|
if (typeof o.beforeChange == "function") {
|
|
14605
|
-
const oe = o.beforeChange(w,
|
|
14626
|
+
const oe = o.beforeChange(w, g);
|
|
14606
14627
|
Ha(oe) ? oe.then((de) => {
|
|
14607
14628
|
de !== !1 && te();
|
|
14608
14629
|
}).catch(() => {
|
|
14609
14630
|
te();
|
|
14610
14631
|
}) : oe !== !1 && te();
|
|
14611
14632
|
} else te();
|
|
14612
|
-
}, K = (w,
|
|
14613
|
-
j(w,
|
|
14614
|
-
}, X = (w,
|
|
14615
|
-
j(w,
|
|
14616
|
-
}, V = (w,
|
|
14617
|
-
X(w,
|
|
14633
|
+
}, K = (w, g) => function() {
|
|
14634
|
+
j(w, g);
|
|
14635
|
+
}, X = (w, g) => {
|
|
14636
|
+
j(w, g), _(!1);
|
|
14637
|
+
}, V = (w, g) => function() {
|
|
14638
|
+
X(w, g);
|
|
14618
14639
|
}, le = (w) => {
|
|
14619
14640
|
if (!Array.isArray(o.data) || !o.scroll) return;
|
|
14620
14641
|
J() && G();
|
|
14621
|
-
const
|
|
14622
|
-
|
|
14642
|
+
const g = o.data.findIndex((O) => Sl(o, O) === y.value);
|
|
14643
|
+
g !== -1 && I(g, w);
|
|
14623
14644
|
}, W = () => {
|
|
14624
14645
|
J() || ae();
|
|
14625
14646
|
};
|
|
@@ -14627,19 +14648,19 @@ function G5(e, t, a, n, l, r = !1) {
|
|
|
14627
14648
|
setTimeout(le, 0);
|
|
14628
14649
|
}), Re(() => {
|
|
14629
14650
|
le(!0);
|
|
14630
|
-
}),
|
|
14651
|
+
}), gt(() => {
|
|
14631
14652
|
W();
|
|
14632
14653
|
}), f({});
|
|
14633
|
-
const Z = (w,
|
|
14654
|
+
const Z = (w, g) => {
|
|
14634
14655
|
if (h.item) return h.item({
|
|
14635
14656
|
item: w,
|
|
14636
|
-
index:
|
|
14657
|
+
index: g
|
|
14637
14658
|
});
|
|
14638
|
-
const O = or(o, w,
|
|
14659
|
+
const O = or(o, w, g), te = [];
|
|
14639
14660
|
if (h.text) {
|
|
14640
14661
|
const de = h.text({
|
|
14641
14662
|
item: w,
|
|
14642
|
-
index:
|
|
14663
|
+
index: g
|
|
14643
14664
|
});
|
|
14644
14665
|
te.push(de);
|
|
14645
14666
|
} else {
|
|
@@ -14648,10 +14669,10 @@ function G5(e, t, a, n, l, r = !1) {
|
|
|
14648
14669
|
const ze = E("view", { class: [`${e}__titles-item-tip`, "doit"] });
|
|
14649
14670
|
de.push(ze);
|
|
14650
14671
|
}
|
|
14651
|
-
const
|
|
14652
|
-
if (
|
|
14672
|
+
const pe = O?.num ?? U5(o, w);
|
|
14673
|
+
if (pe) {
|
|
14653
14674
|
let ze = "";
|
|
14654
|
-
const Ve = Pe(
|
|
14675
|
+
const Ve = Pe(pe);
|
|
14655
14676
|
Ve >= 100 ? ze = "99+" : ze = `${Ve}`;
|
|
14656
14677
|
const Ye = E("view", { class: [`${e}__titles-item-tip`, "num"] }, [ze]);
|
|
14657
14678
|
de.push(Ye);
|
|
@@ -14663,16 +14684,16 @@ function G5(e, t, a, n, l, r = !1) {
|
|
|
14663
14684
|
}
|
|
14664
14685
|
const oe = E("view", { class: `${e}__titles-item-line` });
|
|
14665
14686
|
return te.push(oe), E("view", {
|
|
14666
|
-
ref: L(
|
|
14687
|
+
ref: L(g),
|
|
14667
14688
|
class: $(w, O),
|
|
14668
14689
|
style: Q(w, O),
|
|
14669
|
-
key: v(w,
|
|
14670
|
-
onClick: K(w,
|
|
14690
|
+
key: v(w, g),
|
|
14691
|
+
onClick: K(w, g)
|
|
14671
14692
|
}, te);
|
|
14672
14693
|
}, q = () => {
|
|
14673
14694
|
const w = h.default ? h.default() : [];
|
|
14674
|
-
if (w.length === 0) for (let
|
|
14675
|
-
const O = P.value[
|
|
14695
|
+
if (w.length === 0) for (let g = 0; g < P.value.length; g++) {
|
|
14696
|
+
const O = P.value[g], te = Z(O, g);
|
|
14676
14697
|
w.push(te);
|
|
14677
14698
|
}
|
|
14678
14699
|
return E("view", {
|
|
@@ -14688,54 +14709,54 @@ function G5(e, t, a, n, l, r = !1) {
|
|
|
14688
14709
|
}, [w]);
|
|
14689
14710
|
}, A = () => {
|
|
14690
14711
|
const w = [];
|
|
14691
|
-
for (let
|
|
14692
|
-
const O = P.value[
|
|
14712
|
+
for (let g = 0; g < P.value.length; g++) {
|
|
14713
|
+
const O = P.value[g];
|
|
14693
14714
|
let te = null;
|
|
14694
14715
|
h.popupItem ? te = h.popupItem({
|
|
14695
14716
|
item: O,
|
|
14696
|
-
index:
|
|
14717
|
+
index: g
|
|
14697
14718
|
}) : te = rr(o, O);
|
|
14698
14719
|
const oe = E("view", {
|
|
14699
|
-
class: z(O,
|
|
14700
|
-
key: v(O,
|
|
14701
|
-
onClick: V(O,
|
|
14720
|
+
class: z(O, g),
|
|
14721
|
+
key: v(O, g),
|
|
14722
|
+
onClick: V(O, g)
|
|
14702
14723
|
}, [te]);
|
|
14703
14724
|
w.push(oe);
|
|
14704
14725
|
}
|
|
14705
14726
|
return E("view", {
|
|
14706
|
-
class:
|
|
14727
|
+
class: p.value,
|
|
14707
14728
|
style: m.value
|
|
14708
14729
|
}, w);
|
|
14709
14730
|
}, J = () => o.showScrollArrow && o.direction == "horizontal", re = B(!1), ee = B(!1), F = (w) => {
|
|
14710
|
-
const
|
|
14711
|
-
if (!(!
|
|
14731
|
+
const g = T.value, O = M.value;
|
|
14732
|
+
if (!(!g || !O))
|
|
14712
14733
|
if (w === "left") {
|
|
14713
|
-
const te =
|
|
14734
|
+
const te = g.scrollLeft;
|
|
14714
14735
|
let oe = te;
|
|
14715
14736
|
for (let de = 0; de < O.length; de++) {
|
|
14716
|
-
const
|
|
14717
|
-
if (te -
|
|
14718
|
-
oe =
|
|
14737
|
+
const pe = O[de].offsetLeft;
|
|
14738
|
+
if (te - pe < 0) break;
|
|
14739
|
+
oe = pe;
|
|
14719
14740
|
}
|
|
14720
|
-
N(
|
|
14741
|
+
N(g, oe, 0.3, "horizontal");
|
|
14721
14742
|
} else {
|
|
14722
|
-
const te =
|
|
14723
|
-
let oe = te, de =
|
|
14724
|
-
for (let
|
|
14725
|
-
const ve = O[
|
|
14726
|
-
if (ve - te <
|
|
14743
|
+
const te = g.scrollLeft;
|
|
14744
|
+
let oe = te, de = g.offsetWidth;
|
|
14745
|
+
for (let pe = O.length - 1; pe >= 0; pe--) {
|
|
14746
|
+
const ve = O[pe].offsetLeft + O[pe].offsetWidth;
|
|
14747
|
+
if (ve - te < g.offsetWidth) {
|
|
14727
14748
|
oe += de - ve;
|
|
14728
14749
|
break;
|
|
14729
14750
|
}
|
|
14730
14751
|
de = ve;
|
|
14731
14752
|
}
|
|
14732
|
-
N(
|
|
14753
|
+
N(g, oe, 0.3, "horizontal");
|
|
14733
14754
|
}
|
|
14734
14755
|
}, U = yt(() => {
|
|
14735
14756
|
const w = T.value;
|
|
14736
14757
|
if (!w) return;
|
|
14737
|
-
let
|
|
14738
|
-
|
|
14758
|
+
let g = w.scrollLeft > 0;
|
|
14759
|
+
g !== re.value && (re.value = g);
|
|
14739
14760
|
let O = w.scrollWidth - w.scrollLeft > w.offsetWidth;
|
|
14740
14761
|
O !== ee.value && (ee.value = O);
|
|
14741
14762
|
}, 50), k = (w) => {
|
|
@@ -14748,17 +14769,17 @@ function G5(e, t, a, n, l, r = !1) {
|
|
|
14748
14769
|
w && w.removeEventListener("scroll", k);
|
|
14749
14770
|
}, H = (w) => {
|
|
14750
14771
|
if (w === "left" && re.value !== !0 || w === "right" && ee.value !== !0) return null;
|
|
14751
|
-
let
|
|
14752
|
-
return w === "left" ? h.leftArrow ?
|
|
14772
|
+
let g = null;
|
|
14773
|
+
return w === "left" ? h.leftArrow ? g = h.leftArrow() : g = E(n) : h.rightArrow ? g = h.rightArrow() : g = E(l), E("view", {
|
|
14753
14774
|
class: [`${e}__scroll-arrow`, w],
|
|
14754
14775
|
onClick: () => {
|
|
14755
14776
|
F(w);
|
|
14756
14777
|
}
|
|
14757
|
-
}, [
|
|
14778
|
+
}, [g]);
|
|
14758
14779
|
};
|
|
14759
14780
|
return () => {
|
|
14760
|
-
const w = [],
|
|
14761
|
-
if (w.push(
|
|
14781
|
+
const w = [], g = q();
|
|
14782
|
+
if (w.push(g), J()) {
|
|
14762
14783
|
const O = H("left");
|
|
14763
14784
|
O && w.push(O);
|
|
14764
14785
|
const te = H("right");
|
|
@@ -14934,7 +14955,7 @@ function i6(e, t, a = !1) {
|
|
|
14934
14955
|
return L;
|
|
14935
14956
|
});
|
|
14936
14957
|
let y = !0;
|
|
14937
|
-
const
|
|
14958
|
+
const p = x(() => {
|
|
14938
14959
|
const L = {};
|
|
14939
14960
|
if (n.transition === !1) return L;
|
|
14940
14961
|
const I = i.value.length;
|
|
@@ -14966,20 +14987,20 @@ function i6(e, t, a = !1) {
|
|
|
14966
14987
|
}, c = () => {
|
|
14967
14988
|
}, _ = () => {
|
|
14968
14989
|
if (!u.value) return;
|
|
14969
|
-
const L =
|
|
14990
|
+
const L = pn(u.value);
|
|
14970
14991
|
f.tabWidth.value = L.width, f.tabHeight.value = L.height;
|
|
14971
14992
|
}, T = Uu(_, 250);
|
|
14972
14993
|
let M = null, Y = null;
|
|
14973
14994
|
return Re(() => {
|
|
14974
14995
|
n.transition !== !1 && u.value && (_(), window.ResizeObserver && (Y = new window.ResizeObserver(T), Y.observe(u.value)), n.draggle && (M = r6(b, S, c), M.open(d.value)));
|
|
14975
|
-
}),
|
|
14996
|
+
}), gt(() => {
|
|
14976
14997
|
Y && (Y.disconnect(), Y = null), M && M.close();
|
|
14977
14998
|
}), o({ doLayout() {
|
|
14978
14999
|
_();
|
|
14979
15000
|
} }), () => {
|
|
14980
15001
|
const L = E("view", {
|
|
14981
15002
|
class: `${e}__panes`,
|
|
14982
|
-
style:
|
|
15003
|
+
style: p.value,
|
|
14983
15004
|
ref: d
|
|
14984
15005
|
}, [s?.default?.()]);
|
|
14985
15006
|
return E("view", {
|
|
@@ -15020,7 +15041,7 @@ function d6(e, t, a) {
|
|
|
15020
15041
|
const o = ct(bo);
|
|
15021
15042
|
Re(() => {
|
|
15022
15043
|
o.add(n.paneKey);
|
|
15023
|
-
}),
|
|
15044
|
+
}), gt(() => {
|
|
15024
15045
|
o.remove(n.paneKey);
|
|
15025
15046
|
});
|
|
15026
15047
|
const s = x(() => {
|
|
@@ -15047,7 +15068,7 @@ function d6(e, t, a) {
|
|
|
15047
15068
|
}
|
|
15048
15069
|
};
|
|
15049
15070
|
}
|
|
15050
|
-
var { create: h6, componentName:
|
|
15071
|
+
var { create: h6, componentName: p6, scope: g6 } = he("tabs-pane"), m6 = h6(d6(p6, g6, Fl)), wo = m6, v6 = {
|
|
15051
15072
|
...wn,
|
|
15052
15073
|
...xn,
|
|
15053
15074
|
modelValue: {
|
|
@@ -15083,7 +15104,7 @@ function y6(e, t, a, n) {
|
|
|
15083
15104
|
});
|
|
15084
15105
|
const y = (m) => {
|
|
15085
15106
|
o("change", m);
|
|
15086
|
-
},
|
|
15107
|
+
}, p = (m) => {
|
|
15087
15108
|
C.value !== m && (C.value = m, o("update:modelValue", m));
|
|
15088
15109
|
};
|
|
15089
15110
|
return s({}), () => {
|
|
@@ -15107,7 +15128,7 @@ function y6(e, t, a, n) {
|
|
|
15107
15128
|
modelValue: C.value,
|
|
15108
15129
|
direction: l.direction,
|
|
15109
15130
|
onChange: y,
|
|
15110
|
-
"onUpdate:modelValue":
|
|
15131
|
+
"onUpdate:modelValue": p
|
|
15111
15132
|
});
|
|
15112
15133
|
const T = E(a, _, c), M = { default: () => b }, Y = qt(l, xn);
|
|
15113
15134
|
Object.assign(Y, {
|
|
@@ -15115,7 +15136,7 @@ function y6(e, t, a, n) {
|
|
|
15115
15136
|
class: D.value,
|
|
15116
15137
|
modelValue: C.value,
|
|
15117
15138
|
onChange: y,
|
|
15118
|
-
"onUpdate:modelValue":
|
|
15139
|
+
"onUpdate:modelValue": p
|
|
15119
15140
|
});
|
|
15120
15141
|
const L = E(n, Y, M);
|
|
15121
15142
|
return E("view", {
|
|
@@ -15243,7 +15264,7 @@ var _6 = class {
|
|
|
15243
15264
|
if (Array.isArray(t)) return t;
|
|
15244
15265
|
if (typeof t == "function") return await Reflect.apply(t, null, [a]);
|
|
15245
15266
|
const n = ft(e, this.scope);
|
|
15246
|
-
return n === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) &&
|
|
15267
|
+
return n === null ? (console.error(`[FoxUI]${e} component not found api function`), []) : (ht(a) && pt(a) && (a = Ae(a)), await Reflect.apply(n, null, [t, a]));
|
|
15247
15268
|
}
|
|
15248
15269
|
};
|
|
15249
15270
|
function $6() {
|
|
@@ -15271,7 +15292,7 @@ function z6(e, t, a, n) {
|
|
|
15271
15292
|
if (q < 0 && q >= u.value.length) return !1;
|
|
15272
15293
|
const R = u.value[q], A = (Pa(l, R, q) ?? {}).status ?? Va(l, R);
|
|
15273
15294
|
return C(q) || A;
|
|
15274
|
-
},
|
|
15295
|
+
}, p = x(() => {
|
|
15275
15296
|
const q = { [i]: !0 };
|
|
15276
15297
|
return l.mode ? q[`is-${l.mode}`] = !0 : l.direction && (q[`is-${l.direction}`] = !0), l.scroll && (q["is-scroll"] = !0), q;
|
|
15277
15298
|
}), m = x(() => ({})), b = (q, R, A, J, re) => {
|
|
@@ -15406,10 +15427,10 @@ function z6(e, t, a, n) {
|
|
|
15406
15427
|
ae.push(H);
|
|
15407
15428
|
const w = z(q, R, J);
|
|
15408
15429
|
w && ae.push(w);
|
|
15409
|
-
const
|
|
15430
|
+
const g = A.class, O = A.style ?? {};
|
|
15410
15431
|
return E("view", {
|
|
15411
15432
|
ref: le(R),
|
|
15412
|
-
class: b(R, J, re, ee,
|
|
15433
|
+
class: b(R, J, re, ee, g),
|
|
15413
15434
|
style: c(R, O)
|
|
15414
15435
|
}, ae);
|
|
15415
15436
|
}, j = (q, R) => {
|
|
@@ -15468,7 +15489,7 @@ function z6(e, t, a, n) {
|
|
|
15468
15489
|
}
|
|
15469
15490
|
const R = {
|
|
15470
15491
|
ref: K,
|
|
15471
|
-
class:
|
|
15492
|
+
class: p.value,
|
|
15472
15493
|
style: m.value
|
|
15473
15494
|
};
|
|
15474
15495
|
return q.length === 0 && typeof r.slots.default == "function" && (q = r.slots.default()), E("view", R, q);
|
|
@@ -15518,19 +15539,19 @@ var { componentName: D6, create: M6, scope: A6 } = he("steps-bar"), I6 = M6(z6(D
|
|
|
15518
15539
|
function hr(e, t) {
|
|
15519
15540
|
return new P6(e, t);
|
|
15520
15541
|
}
|
|
15521
|
-
var
|
|
15542
|
+
var pr = typeof window < "u" && typeof document < "u", yh = typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
15522
15543
|
function So(e) {
|
|
15523
15544
|
const t = /* @__PURE__ */ Object.create(null);
|
|
15524
15545
|
return ((a) => t[a] || (t[a] = e(a)));
|
|
15525
15546
|
}
|
|
15526
|
-
var L6 = /\B([A-Z])/g, bh = So((e) => e.replace(L6, "-$1").toLowerCase()), E6 = /-(\w)/g, wh = So((e) => e.replace(E6, (t, a) => a ? a.toUpperCase() : "")), sl = [],
|
|
15547
|
+
var L6 = /\B([A-Z])/g, bh = So((e) => e.replace(L6, "-$1").toLowerCase()), E6 = /-(\w)/g, wh = So((e) => e.replace(E6, (t, a) => a ? a.toUpperCase() : "")), sl = [], gr = (e) => {
|
|
15527
15548
|
const t = e;
|
|
15528
15549
|
t.key === "Escape" && sl.forEach((a) => a(t));
|
|
15529
15550
|
}, F6 = (e) => {
|
|
15530
15551
|
Re(() => {
|
|
15531
|
-
sl.length === 0 && document.addEventListener("keydown",
|
|
15532
|
-
}),
|
|
15533
|
-
sl = sl.filter((t) => t !== e), sl.length === 0 &&
|
|
15552
|
+
sl.length === 0 && document.addEventListener("keydown", gr), pr && sl.push(e);
|
|
15553
|
+
}), gt(() => {
|
|
15554
|
+
sl = sl.filter((t) => t !== e), sl.length === 0 && pr && document.removeEventListener("keydown", gr);
|
|
15534
15555
|
});
|
|
15535
15556
|
}, La = "fox-focus-trap.focus-after-trapped", Ea = "fox-focus-trap.focus-after-released", R6 = "fox-focus-trap.focusout-prevented", mr = {
|
|
15536
15557
|
cancelable: !0,
|
|
@@ -15589,7 +15610,7 @@ var K6 = () => {
|
|
|
15589
15610
|
Cn.value = "keyboard", xa.value = window.performance.now();
|
|
15590
15611
|
}, U6 = () => (Re(() => {
|
|
15591
15612
|
Wl === 0 && (document.addEventListener("mousedown", Yl), document.addEventListener("touchstart", Yl), document.addEventListener("keydown", xr)), Wl++;
|
|
15592
|
-
}),
|
|
15613
|
+
}), gt(() => {
|
|
15593
15614
|
Wl--, Wl <= 0 && (document.removeEventListener("mousedown", Yl), document.removeEventListener("touchstart", Yl), document.removeEventListener("keydown", xr));
|
|
15594
15615
|
}), {
|
|
15595
15616
|
focusReason: Cn,
|
|
@@ -15642,7 +15663,7 @@ var K6 = () => {
|
|
|
15642
15663
|
}
|
|
15643
15664
|
}, i = (y) => {
|
|
15644
15665
|
if (!e.loop && !Ce(e.trapped) || s.paused) return;
|
|
15645
|
-
const { key:
|
|
15666
|
+
const { key: p, altKey: m, ctrlKey: b, metaKey: S, currentTarget: c, shiftKey: _ } = y, { loop: T } = e, M = p === "Tab" && !m && !b && !S, Y = document.activeElement;
|
|
15646
15667
|
if (M && Y) {
|
|
15647
15668
|
const L = c, [I, N] = H6(L);
|
|
15648
15669
|
if (I && N) {
|
|
@@ -15664,22 +15685,22 @@ var K6 = () => {
|
|
|
15664
15685
|
onKeydown: i
|
|
15665
15686
|
}), fe(() => e.focusTrapEl, (y) => {
|
|
15666
15687
|
y && (n.value = y);
|
|
15667
|
-
}, { immediate: !0 }), fe([n], ([y], [
|
|
15668
|
-
y && (y.addEventListener("keydown", i), y.addEventListener("focusin", u), y.addEventListener("focusout", d)),
|
|
15688
|
+
}, { immediate: !0 }), fe([n], ([y], [p]) => {
|
|
15689
|
+
y && (y.addEventListener("keydown", i), y.addEventListener("focusin", u), y.addEventListener("focusout", d)), p && (p.removeEventListener("keydown", i), p.removeEventListener("focusin", u), p.removeEventListener("focusout", d));
|
|
15669
15690
|
});
|
|
15670
15691
|
const f = (y) => {
|
|
15671
15692
|
a(vr, y);
|
|
15672
15693
|
}, h = (y) => a(yr, y), u = (y) => {
|
|
15673
|
-
const
|
|
15674
|
-
if (!
|
|
15675
|
-
const m = y.target, b = y.relatedTarget, S = m &&
|
|
15676
|
-
Ce(e.trapped) || b &&
|
|
15694
|
+
const p = Ft(n);
|
|
15695
|
+
if (!p) return;
|
|
15696
|
+
const m = y.target, b = y.relatedTarget, S = m && p.contains(m);
|
|
15697
|
+
Ce(e.trapped) || b && p.contains(b) || (l = b), S && a("focusin", y), !s.paused && Ce(e.trapped) && (S ? r = m : Et(r, !0));
|
|
15677
15698
|
}, d = (y) => {
|
|
15678
|
-
const
|
|
15679
|
-
if (!(s.paused || !
|
|
15699
|
+
const p = Ft(n);
|
|
15700
|
+
if (!(s.paused || !p))
|
|
15680
15701
|
if (!e.escape && Ce(e.trapped)) {
|
|
15681
15702
|
const m = y.relatedTarget;
|
|
15682
|
-
!Qe(m) && !
|
|
15703
|
+
!Qe(m) && !p.contains(m) && setTimeout(() => {
|
|
15683
15704
|
if (!s.paused && Ce(e.trapped)) {
|
|
15684
15705
|
const b = Ul({ focusReason: o.value });
|
|
15685
15706
|
a("focusout-prevented", b), b.defaultPrevented || Et(r, !0);
|
|
@@ -15687,7 +15708,7 @@ var K6 = () => {
|
|
|
15687
15708
|
}, 0);
|
|
15688
15709
|
} else {
|
|
15689
15710
|
const m = y.target;
|
|
15690
|
-
m &&
|
|
15711
|
+
m && p.contains(m) || a("focusout", y);
|
|
15691
15712
|
}
|
|
15692
15713
|
};
|
|
15693
15714
|
async function D() {
|
|
@@ -15695,12 +15716,12 @@ var K6 = () => {
|
|
|
15695
15716
|
const y = Ft(n);
|
|
15696
15717
|
if (y) {
|
|
15697
15718
|
Sr.push(s);
|
|
15698
|
-
const
|
|
15699
|
-
if (l =
|
|
15719
|
+
const p = y.contains(document.activeElement) ? l : document.activeElement;
|
|
15720
|
+
if (l = p, !y.contains(p)) {
|
|
15700
15721
|
const m = new Event(La, mr);
|
|
15701
15722
|
y.addEventListener(La, f), y.dispatchEvent(m), m.defaultPrevented || $t(() => {
|
|
15702
15723
|
let b = e.focusStartEl;
|
|
15703
|
-
Au(b) || (Et(b), document.activeElement !== b && (b = "first")), b === "first" && W6(xo(y), !0), (document.activeElement ===
|
|
15724
|
+
Au(b) || (Et(b), document.activeElement !== b && (b = "first")), b === "first" && W6(xo(y), !0), (document.activeElement === p || b === "container") && Et(y);
|
|
15704
15725
|
});
|
|
15705
15726
|
}
|
|
15706
15727
|
}
|
|
@@ -15709,18 +15730,18 @@ var K6 = () => {
|
|
|
15709
15730
|
const y = Ft(n);
|
|
15710
15731
|
if (y) {
|
|
15711
15732
|
y.removeEventListener(La, f);
|
|
15712
|
-
const
|
|
15733
|
+
const p = new CustomEvent(Ea, {
|
|
15713
15734
|
...mr,
|
|
15714
15735
|
detail: { focusReason: o.value }
|
|
15715
15736
|
});
|
|
15716
|
-
y.addEventListener(Ea, h), y.dispatchEvent(
|
|
15737
|
+
y.addEventListener(Ea, h), y.dispatchEvent(p), !p.defaultPrevented && (o.value == "keyboard" || !Y6()) && Et(l ?? document.body, !0), y.removeEventListener(Ea, f), Sr.remove(s);
|
|
15717
15738
|
}
|
|
15718
15739
|
}
|
|
15719
15740
|
return Re(() => {
|
|
15720
15741
|
Ce(e.trapped) && D(), fe(() => e.trapped, (y) => {
|
|
15721
15742
|
Ce(y) ? D() : C();
|
|
15722
15743
|
});
|
|
15723
|
-
}),
|
|
15744
|
+
}), gt(() => {
|
|
15724
15745
|
Ce(e.trapped) && C();
|
|
15725
15746
|
}), () => typeof t.default == "function" ? t.default({ "handle-keydown": i }) : null;
|
|
15726
15747
|
}
|
|
@@ -15854,7 +15875,7 @@ var K6 = () => {
|
|
|
15854
15875
|
}), u = x(() => {
|
|
15855
15876
|
const H = {};
|
|
15856
15877
|
return Kt(o.value) ? H.left = "auto" : H.left = st(o.value), Kt(s.value) ? H.top = "auto" : H.top = st(s.value), Kt(i.value) ? H.right = "auto" : H.right = st(i.value), Kt(f.value) ? H.bottom = "auto" : H.bottom = st(f.value), Kt(e.zIndex) || (H["z-index"] = st(e.zIndex)), Kt(T.value) || (H.height = T.value), Kt(M.value) || (H.width = M.value), H;
|
|
15857
|
-
}), d = x(() => e.closeIcon ?? Kr), D = x(() => e.collapseIcon ?? tn), C = x(() => e.collapseText ?? ""), y = x(() => e.collapsePosition === "left" ? e.expandIcon ?? jr : e.expandIcon ?? Hr),
|
|
15878
|
+
}), d = x(() => e.closeIcon ?? Kr), D = x(() => e.collapseIcon ?? tn), C = x(() => e.collapseText ?? ""), y = x(() => e.collapsePosition === "left" ? e.expandIcon ?? jr : e.expandIcon ?? Hr), p = x(() => e.expandText ?? e.title ?? "展开"), m = x(() => ({ [`${a}__collapse-text`]: !0 })), b = x(() => ({
|
|
15858
15879
|
[`${a}__collapse-icon`]: !0,
|
|
15859
15880
|
"is-expand": !Y.value,
|
|
15860
15881
|
"is-collapse": Y.value
|
|
@@ -15915,14 +15936,14 @@ var K6 = () => {
|
|
|
15915
15936
|
if (R(), e.origin === "left-top")
|
|
15916
15937
|
o.value = w.offsetLeft, s.value = w.offsetTop, A.x = o.value, A.y = s.value;
|
|
15917
15938
|
else if (e.origin === "left-bottom") {
|
|
15918
|
-
const
|
|
15919
|
-
o.value = w.offsetLeft, f.value =
|
|
15939
|
+
const g = document.documentElement.clientHeight || document.body.clientHeight;
|
|
15940
|
+
o.value = w.offsetLeft, f.value = g - (w.offsetTop + w.offsetHeight), A.x = o.value, A.y = f.value;
|
|
15920
15941
|
} else if (e.origin === "right-bottom") {
|
|
15921
|
-
const
|
|
15922
|
-
i.value =
|
|
15942
|
+
const g = document.documentElement.clientWidth || document.body.clientWidth, O = document.documentElement.clientHeight || document.body.clientHeight;
|
|
15943
|
+
i.value = g - (w.offsetLeft + w.offsetWidth), f.value = O - (w.offsetTop + w.offsetHeight), A.x = i.value, A.y = f.value;
|
|
15923
15944
|
} else {
|
|
15924
|
-
const
|
|
15925
|
-
i.value =
|
|
15945
|
+
const g = document.documentElement.clientWidth || document.body.clientWidth;
|
|
15946
|
+
i.value = g - (w.offsetLeft + w.offsetWidth), s.value = w.offsetTop, A.x = i.value, A.y = s.value;
|
|
15926
15947
|
}
|
|
15927
15948
|
}, (H) => {
|
|
15928
15949
|
if (!S.value) return;
|
|
@@ -15949,7 +15970,7 @@ var K6 = () => {
|
|
|
15949
15970
|
c.value && H.push(c.value), e.footerDraggable && (ae(), _.value && H.push(_.value)), ee.open(H);
|
|
15950
15971
|
}
|
|
15951
15972
|
e.collapse === !0 && L(e.collapse, !1), v.value && G.open(v.value);
|
|
15952
|
-
}),
|
|
15973
|
+
}), gt(() => {
|
|
15953
15974
|
e.draggable && c.value && ee.close(), v.value && G.close();
|
|
15954
15975
|
}), {
|
|
15955
15976
|
classes: h,
|
|
@@ -15965,7 +15986,7 @@ var K6 = () => {
|
|
|
15965
15986
|
collapseTextClasses: m,
|
|
15966
15987
|
collapseIconClasses: b,
|
|
15967
15988
|
expandIcon: y,
|
|
15968
|
-
expandText:
|
|
15989
|
+
expandText: p,
|
|
15969
15990
|
isShowFixedNav: V,
|
|
15970
15991
|
fixedNavRef: v,
|
|
15971
15992
|
fixedNavClasses: P,
|
|
@@ -16105,7 +16126,7 @@ var f8 = /* @__PURE__ */ We(n8, [["render", c8]]), Zl = (e, t, a) => e.map((n) =
|
|
|
16105
16126
|
const { children: a } = e;
|
|
16106
16127
|
return Array.isArray(a) && !!a.length;
|
|
16107
16128
|
}
|
|
16108
|
-
}, { create:
|
|
16129
|
+
}, { create: p8, scope: g8 } = he("cascader-pane"), m8 = p8({
|
|
16109
16130
|
components: {
|
|
16110
16131
|
Loading: Fl,
|
|
16111
16132
|
Checklist: Ei,
|
|
@@ -16157,7 +16178,7 @@ var f8 = /* @__PURE__ */ We(n8, [["render", c8]]), Zl = (e, t, a) => e.map((n) =
|
|
|
16157
16178
|
"pathChange"
|
|
16158
16179
|
],
|
|
16159
16180
|
setup(e, { emit: t }) {
|
|
16160
|
-
const { t: a } = Fe(
|
|
16181
|
+
const { t: a } = Fe(g8), n = x(() => ({
|
|
16161
16182
|
lazy: e.lazy,
|
|
16162
16183
|
lazyLoad: e.lazyLoad,
|
|
16163
16184
|
valueKey: e.valueKey,
|
|
@@ -16231,7 +16252,7 @@ var f8 = /* @__PURE__ */ We(n8, [["render", c8]]), Zl = (e, t, a) => e.map((n) =
|
|
|
16231
16252
|
}), u.set(b, c));
|
|
16232
16253
|
const _ = await c;
|
|
16233
16254
|
Array.isArray(_) && _.length > 0 ? s.value.updateChildren(_, S) : b.leaf = !0, b.loading = !1, u.delete(b);
|
|
16234
|
-
},
|
|
16255
|
+
}, p = (b) => {
|
|
16235
16256
|
const S = b.map((c) => c.value);
|
|
16236
16257
|
o.value = S, t("change", S, b), t("update:modelValue", S, b);
|
|
16237
16258
|
}, m = {
|
|
@@ -16241,7 +16262,7 @@ var f8 = /* @__PURE__ */ We(n8, [["render", c8]]), Zl = (e, t, a) => e.map((n) =
|
|
|
16241
16262
|
if (s.value.isLeaf(b, f.value)) {
|
|
16242
16263
|
if (b.leaf = !0, i.value[l.value].selectedNode = b, i.value = i.value.slice(0, b.level + 1), !S) {
|
|
16243
16264
|
const T = i.value.map((M) => M.selectedNode);
|
|
16244
|
-
|
|
16265
|
+
p(T), t("pathChange", T);
|
|
16245
16266
|
}
|
|
16246
16267
|
return;
|
|
16247
16268
|
}
|
|
@@ -16864,7 +16885,7 @@ var Tn = /* @__PURE__ */ We(L8, [["render", R8]]), Za = {
|
|
|
16864
16885
|
default:
|
|
16865
16886
|
return "";
|
|
16866
16887
|
}
|
|
16867
|
-
}),
|
|
16888
|
+
}), p = x(() => ({
|
|
16868
16889
|
transitionDuration: `${n.duration}s`,
|
|
16869
16890
|
transform: d.distance ? `translate3d(0,${d.distance}px, 0)` : ""
|
|
16870
16891
|
})), m = x(() => {
|
|
@@ -16902,7 +16923,7 @@ var Tn = /* @__PURE__ */ We(L8, [["render", R8]]), Za = {
|
|
|
16902
16923
|
style: m.value
|
|
16903
16924
|
}, L), Q = E("div", {
|
|
16904
16925
|
class: C.value,
|
|
16905
|
-
style:
|
|
16926
|
+
style: p.value
|
|
16906
16927
|
}, [$, r?.default?.()]), v = {
|
|
16907
16928
|
ref: h,
|
|
16908
16929
|
class: D.value
|
|
@@ -16970,9 +16991,9 @@ function G8(e, t, a) {
|
|
|
16970
16991
|
const m = E("span", { class: u.value }, [h.value]);
|
|
16971
16992
|
C.push(m);
|
|
16972
16993
|
}
|
|
16973
|
-
const y = { class: d.value },
|
|
16974
|
-
if (
|
|
16975
|
-
const m = E("div", y, [
|
|
16994
|
+
const y = { class: d.value }, p = (r.icon && r.icon()) ?? (n.icon && E(n.icon)) ?? E(a);
|
|
16995
|
+
if (p) {
|
|
16996
|
+
const m = E("div", y, [p]);
|
|
16976
16997
|
C.push(m);
|
|
16977
16998
|
}
|
|
16978
16999
|
return n.textPosition === "right" && C.reverse(), E("div", {
|
|
@@ -17070,7 +17091,7 @@ var n7 = {
|
|
|
17070
17091
|
return _e(h.top) || (_.top = Me(h.top)), _e(h.right) || (_.right = Me(h.right)), _e(h.bottom) || (_.bottom = Me(h.bottom)), _e(h.left) || (_.left = Me(h.left)), _e(l.width) || (_.width = Me(l.width)), _e(l.height) || (_.height = Me(l.height)), _e(l.color) || (_.color = l.color), _e(l.background) || (_.background = l.background), _e(l.borderRadius) || (_["border-radius"] = l.borderRadius), _e(l.zIndex) || (_["z-index"] = l.zIndex), _;
|
|
17071
17092
|
}), D = x(() => ({ [`${e}__icon`]: !0 })), C = () => {
|
|
17072
17093
|
o("click");
|
|
17073
|
-
}, y = B(null),
|
|
17094
|
+
}, y = B(null), p = () => {
|
|
17074
17095
|
h.top = null, h.right = null, h.bottom = null, h.left = null;
|
|
17075
17096
|
}, m = {
|
|
17076
17097
|
x: 0,
|
|
@@ -17078,11 +17099,11 @@ var n7 = {
|
|
|
17078
17099
|
}, c = a7((_) => {
|
|
17079
17100
|
if (!y.value) return;
|
|
17080
17101
|
const T = y.value;
|
|
17081
|
-
|
|
17102
|
+
p(), h.left = T.offsetLeft, h.top = T.offsetTop, T.style.left = Me(h.left), T.style.top = Me(h.top), T.style.right = null, T.style.bottom = null, m.x = T.offsetLeft, m.y = T.offsetTop, h.width = T.offsetWidth, h.height = T.offsetHeight, i = document.documentElement.clientWidth || document.body.clientWidth, f = document.documentElement.clientHeight || document.body.clientHeight;
|
|
17082
17103
|
}, (_) => {
|
|
17083
17104
|
if (!y.value) return;
|
|
17084
17105
|
const T = y.value;
|
|
17085
|
-
|
|
17106
|
+
p();
|
|
17086
17107
|
let M = m.x + _.x;
|
|
17087
17108
|
M < 0 && (M = 0), M > i - h.width && (M = i - h.width);
|
|
17088
17109
|
let Y = m.y + _.y;
|
|
@@ -17093,7 +17114,7 @@ var n7 = {
|
|
|
17093
17114
|
const _ = [y.value];
|
|
17094
17115
|
c.open(_);
|
|
17095
17116
|
}
|
|
17096
|
-
}),
|
|
17117
|
+
}), gt(() => {
|
|
17097
17118
|
l.draggable && y.value && c.close();
|
|
17098
17119
|
}), () => {
|
|
17099
17120
|
let _ = [];
|
|
@@ -17171,7 +17192,7 @@ function f7(e, t) {
|
|
|
17171
17192
|
}
|
|
17172
17193
|
};
|
|
17173
17194
|
}
|
|
17174
|
-
var { componentName: d7, create: h7, scope:
|
|
17195
|
+
var { componentName: d7, create: h7, scope: p7 } = he("indicator"), g7 = h7(f7(d7, p7)), m7 = g7, { componentName: v7, create: y7, scope: Ch } = he("tour"), b7 = y7({
|
|
17175
17196
|
components: {
|
|
17176
17197
|
Close: Kr,
|
|
17177
17198
|
ElPopover: ua
|
|
@@ -17262,7 +17283,7 @@ var { componentName: d7, create: h7, scope: g7 } = he("indicator"), p7 = h7(f7(d
|
|
|
17262
17283
|
showPopup: !1,
|
|
17263
17284
|
active: 0
|
|
17264
17285
|
}), l = B({}), r = x(() => `${a}`), o = x(() => {
|
|
17265
|
-
const { offset: C, maskWidth: y, maskHeight:
|
|
17286
|
+
const { offset: C, maskWidth: y, maskHeight: p } = e, { width: m, height: b, left: S, top: c } = l.value, _ = e.steps[n.active].offset ?? C, T = [S + m / 2, c + b / 2], M = Number(y || m), Y = Number(p || b);
|
|
17266
17287
|
return {
|
|
17267
17288
|
width: `${M + +_.left + _.right}px`,
|
|
17268
17289
|
height: `${Y + _.top + _.bottom}px`,
|
|
@@ -17274,7 +17295,7 @@ var { componentName: d7, create: h7, scope: g7 } = he("indicator"), p7 = h7(f7(d
|
|
|
17274
17295
|
n.showPopup = !0, h();
|
|
17275
17296
|
}), t("change", n.active);
|
|
17276
17297
|
}, i = (C) => C.popoverWidth ?? e.width, f = (C) => C.location ?? e.location, h = () => {
|
|
17277
|
-
const C =
|
|
17298
|
+
const C = go(document.querySelector(`${e.steps[n.active].target}`));
|
|
17278
17299
|
l.value = {
|
|
17279
17300
|
x: C.left,
|
|
17280
17301
|
y: C.top,
|
|
@@ -17499,7 +17520,7 @@ var z7 = /* @__PURE__ */ We(b7, [["render", $7]]), D7 = "data:image/png;base64,i
|
|
|
17499
17520
|
function y(b) {
|
|
17500
17521
|
b.stopPropagation();
|
|
17501
17522
|
}
|
|
17502
|
-
function
|
|
17523
|
+
function p(b) {
|
|
17503
17524
|
b.preventDefault(), r.value = void 0;
|
|
17504
17525
|
}
|
|
17505
17526
|
function m() {
|
|
@@ -17513,7 +17534,7 @@ var z7 = /* @__PURE__ */ We(b7, [["render", $7]]), D7 = "data:image/png;base64,i
|
|
|
17513
17534
|
clickKeyIndex: r,
|
|
17514
17535
|
defaultKey: i,
|
|
17515
17536
|
closeBoard: m,
|
|
17516
|
-
onTouchEnd:
|
|
17537
|
+
onTouchEnd: p,
|
|
17517
17538
|
onTouchMove: y,
|
|
17518
17539
|
onTouchstart: C,
|
|
17519
17540
|
keysList: u,
|
|
@@ -17772,7 +17793,7 @@ var i9 = /* @__PURE__ */ We(Q7, [["render", r9]]), { componentName: o9, create:
|
|
|
17772
17793
|
S.preventDefault(), r.value.removeEventListener(i.events[1], d, !1), r.value.removeEventListener(i.events[2], D, !1);
|
|
17773
17794
|
}, y = () => {
|
|
17774
17795
|
r.value.addEventListener(i.events[2], D, !1), i.ctx.clearRect(0, 0, i.canvasWidth, i.canvasHeight), i.ctx.closePath(), t("clear");
|
|
17775
|
-
},
|
|
17796
|
+
}, p = () => {
|
|
17776
17797
|
b(r.value);
|
|
17777
17798
|
}, m = (S) => {
|
|
17778
17799
|
if (!S) return !0;
|
|
@@ -17793,7 +17814,7 @@ var i9 = /* @__PURE__ */ We(Q7, [["render", r9]]), { componentName: o9, create:
|
|
|
17793
17814
|
return Re(() => {
|
|
17794
17815
|
f() && (i.ctx = r.value.getContext("2d"), i.canvasWidth = o.value.offsetWidth, i.canvasHeight = o.value.offsetHeight, h());
|
|
17795
17816
|
}), a({
|
|
17796
|
-
confirm:
|
|
17817
|
+
confirm: p,
|
|
17797
17818
|
clear: y
|
|
17798
17819
|
}), {
|
|
17799
17820
|
...l,
|
|
@@ -17801,7 +17822,7 @@ var i9 = /* @__PURE__ */ We(Q7, [["render", r9]]), { componentName: o9, create:
|
|
|
17801
17822
|
canvas: r,
|
|
17802
17823
|
wrap: o,
|
|
17803
17824
|
isCanvasSupported: f,
|
|
17804
|
-
confirm:
|
|
17825
|
+
confirm: p,
|
|
17805
17826
|
clear: y,
|
|
17806
17827
|
classes: s
|
|
17807
17828
|
};
|
|
@@ -17812,14 +17833,14 @@ var i9 = /* @__PURE__ */ We(Q7, [["render", r9]]), { componentName: o9, create:
|
|
|
17812
17833
|
}, d9 = ["height", "width"], h9 = {
|
|
17813
17834
|
key: 0,
|
|
17814
17835
|
class: "fox-signature-unsopport"
|
|
17815
|
-
},
|
|
17816
|
-
function
|
|
17836
|
+
}, p9 = { class: "fox-signature__toolbar" };
|
|
17837
|
+
function g9(e, t, a, n, l, r) {
|
|
17817
17838
|
const o = $e("FoxButton");
|
|
17818
17839
|
return ne(), ue("div", { class: Ne(e.classes) }, [se("div", f9, [Bt(se("canvas", {
|
|
17819
17840
|
ref: "canvas",
|
|
17820
17841
|
height: e.canvasHeight,
|
|
17821
17842
|
width: e.canvasWidth
|
|
17822
|
-
}, null, 8, d9), [[Ot, e.isCanvasSupported()]]), e.isCanvasSupported() ? Se("", !0) : (ne(), ue("p", h9, we(e.unSupportTpl), 1))], 512), se("div",
|
|
17843
|
+
}, null, 8, d9), [[Ot, e.isCanvasSupported()]]), e.isCanvasSupported() ? Se("", !0) : (ne(), ue("p", h9, we(e.unSupportTpl), 1))], 512), se("div", p9, [Oe(e.$slots, "toolbar", {}, () => [xe(o, {
|
|
17823
17844
|
class: "fox-signature-btn",
|
|
17824
17845
|
type: "default",
|
|
17825
17846
|
onClick: t[0] || (t[0] = (s) => e.clear())
|
|
@@ -17835,7 +17856,7 @@ function p9(e, t, a, n, l, r) {
|
|
|
17835
17856
|
_: 1
|
|
17836
17857
|
})])])], 2);
|
|
17837
17858
|
}
|
|
17838
|
-
var m9 = /* @__PURE__ */ We(c9, [["render",
|
|
17859
|
+
var m9 = /* @__PURE__ */ We(c9, [["render", g9]]), v9 = {
|
|
17839
17860
|
name: {
|
|
17840
17861
|
type: [String],
|
|
17841
17862
|
required: !1,
|
|
@@ -17948,10 +17969,10 @@ function k9(e, t) {
|
|
|
17948
17969
|
const u = (d, D, C) => {
|
|
17949
17970
|
h = new IntersectionObserver((y) => {
|
|
17950
17971
|
if (l("change", y), a.loadPolicy !== "always")
|
|
17951
|
-
for (let
|
|
17972
|
+
for (let p of y) {
|
|
17952
17973
|
let m = !1;
|
|
17953
|
-
|
|
17954
|
-
const b = r.get(
|
|
17974
|
+
p.intersectionRatio > 0 && (m = !0);
|
|
17975
|
+
const b = r.get(p.target);
|
|
17955
17976
|
if (b) try {
|
|
17956
17977
|
if (a.loadPolicy === "lazy" && !m && b.visible !== null) return;
|
|
17957
17978
|
b.visible = m, b.callback(m);
|
|
@@ -17963,8 +17984,8 @@ function k9(e, t) {
|
|
|
17963
17984
|
root: d,
|
|
17964
17985
|
rootMargin: D,
|
|
17965
17986
|
threshold: C
|
|
17966
|
-
}), o.forEach((y,
|
|
17967
|
-
r.set(
|
|
17987
|
+
}), o.forEach((y, p) => {
|
|
17988
|
+
r.set(p, y), h?.observe(p);
|
|
17968
17989
|
}), o.clear();
|
|
17969
17990
|
};
|
|
17970
17991
|
fe([() => a.root, () => a.disabled], ([d, D]) => {
|
|
@@ -17985,7 +18006,7 @@ var { componentName: T9, create: _9, scope: $9 } = he("rolling-provider"), z9 =
|
|
|
17985
18006
|
E1,
|
|
17986
18007
|
H1,
|
|
17987
18008
|
nc,
|
|
17988
|
-
|
|
18009
|
+
gn,
|
|
17989
18010
|
xi,
|
|
17990
18011
|
Ci,
|
|
17991
18012
|
t2,
|
|
@@ -18110,10 +18131,10 @@ export {
|
|
|
18110
18131
|
Z2 as FoxDateItem,
|
|
18111
18132
|
$r as FoxDatePicker,
|
|
18112
18133
|
hs as FoxDescriptions,
|
|
18113
|
-
|
|
18134
|
+
ps as FoxDescriptionsItem,
|
|
18114
18135
|
zr as FoxDialog,
|
|
18115
18136
|
V8 as FoxDialogItem,
|
|
18116
|
-
|
|
18137
|
+
gs as FoxDivider,
|
|
18117
18138
|
N9 as FoxDomainProvider,
|
|
18118
18139
|
ms as FoxDrawer,
|
|
18119
18140
|
vs as FoxDropdown,
|
|
@@ -18141,7 +18162,7 @@ export {
|
|
|
18141
18162
|
Dr as FoxInputNumber,
|
|
18142
18163
|
R4 as FoxInputNumberItem,
|
|
18143
18164
|
E9 as FoxInputTag,
|
|
18144
|
-
|
|
18165
|
+
gn as FoxItem,
|
|
18145
18166
|
$s as FoxLink,
|
|
18146
18167
|
K5 as FoxLinkItem,
|
|
18147
18168
|
Ds as FoxMain,
|
|
@@ -18231,8 +18252,8 @@ export {
|
|
|
18231
18252
|
qr as FoxTreeSelect,
|
|
18232
18253
|
Jf as FoxTreeSelectItem,
|
|
18233
18254
|
hu as FoxTreeV2,
|
|
18234
|
-
|
|
18235
|
-
|
|
18255
|
+
pu as FoxUpload,
|
|
18256
|
+
gu as FoxWatermark,
|
|
18236
18257
|
Fi as Foxcalendarpicker,
|
|
18237
18258
|
_8 as Foxcascaderpicker,
|
|
18238
18259
|
yo as Foxpicker,
|
|
@@ -18245,7 +18266,7 @@ export {
|
|
|
18245
18266
|
ri as InnerPageScopeKey,
|
|
18246
18267
|
v2 as InputItem,
|
|
18247
18268
|
R4 as InputNumberItem,
|
|
18248
|
-
|
|
18269
|
+
gn as Item,
|
|
18249
18270
|
K5 as LinkItem,
|
|
18250
18271
|
na as Mapping,
|
|
18251
18272
|
A4 as MoneyItem,
|
|
@@ -18350,7 +18371,7 @@ export {
|
|
|
18350
18371
|
Ln as isRegExp,
|
|
18351
18372
|
K9 as isSet,
|
|
18352
18373
|
Au as isString,
|
|
18353
|
-
|
|
18374
|
+
ph as isSubPage,
|
|
18354
18375
|
W9 as isSymbol,
|
|
18355
18376
|
wa as isTouch,
|
|
18356
18377
|
Eu as isWindow,
|
|
@@ -18364,7 +18385,7 @@ export {
|
|
|
18364
18385
|
nn as numberFormat,
|
|
18365
18386
|
Iu as objectToString,
|
|
18366
18387
|
dh as once,
|
|
18367
|
-
|
|
18388
|
+
gh as overrideGlobalIcons,
|
|
18368
18389
|
rh as overrideGlobalValidateHandler,
|
|
18369
18390
|
lh as padZero,
|
|
18370
18391
|
qu as pascalToKebab,
|
|
@@ -18395,11 +18416,11 @@ export {
|
|
|
18395
18416
|
Fn as updatePageState,
|
|
18396
18417
|
ql as useBroadcast,
|
|
18397
18418
|
tl as useDomain,
|
|
18398
|
-
|
|
18419
|
+
pn as useInnerSize,
|
|
18399
18420
|
cn as usePageState,
|
|
18400
18421
|
yi as usePosition,
|
|
18401
18422
|
Sa as useRawTouch,
|
|
18402
|
-
|
|
18423
|
+
go as useRect,
|
|
18403
18424
|
hi as useSize,
|
|
18404
18425
|
ba as useSlotChildren,
|
|
18405
18426
|
i5 as useTouch,
|