@vtj/ui 0.13.12 → 0.13.14
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.mjs +312 -325
- package/dist/index.umd.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
import { getCurrentInstance as Ge, inject as pt, defineComponent as G, useAttrs as
|
2
|
-
import { ElMessage as Qe, ElMessageBox as mt, ElNotification as Io, ElIcon as
|
3
|
-
import { storage as rr, rAF as Ii, cAF as $i, isEqual as
|
1
|
+
import { getCurrentInstance as Ge, inject as pt, defineComponent as G, useAttrs as $t, computed as D, markRaw as tn, createBlock as k, openBlock as v, unref as u, normalizeStyle as et, normalizeClass as pe, withCtx as b, renderSlot as N, createCommentVNode as $, createElementBlock as F, resolveDynamicComponent as Ee, mergeProps as q, Fragment as de, renderList as he, createElementVNode as Z, toDisplayString as ee, h as ae, isVNode as ai, shallowRef as wn, ref as L, watch as re, onMounted as Ye, onUnmounted as ot, useSlots as zo, toRef as zt, createTextVNode as W, toRaw as Je, createVNode as I, normalizeProps as At, guardReactiveProps as Bt, effectScope as ta, reactive as Vt, watchEffect as Mo, nextTick as Pe, Teleport as na, withDirectives as xe, createSlots as Ue, render as Zo, vShow as Ne, withModifiers as Ve, KeepAlive as ii, provide as Mt, isRef as je, toValue as li, toHandlers as Ke, withKeys as Rt, mergeModels as _n, useModel as Po, onUpdated as si, onActivated as ui } from "vue";
|
2
|
+
import { ElMessage as Qe, ElMessageBox as mt, ElNotification as Io, ElIcon as Xt, ElSubMenu as ci, ElBadge as yo, ElMenuItem as di, ElMenu as fi, ElButton as Le, ElDropdown as pi, ElDropdownMenu as mi, ElDropdownItem as gi, ElTooltip as oa, ElDivider as Be, ElSwitch as ra, ElInput as Re, ElEmpty as $o, ElTabs as aa, ElTabPane as bo, ElPopover as ia, ElAvatar as hi, ElSelect as Ao, ElOption as Bo, ElCheckboxButton as vi, ElCheckbox as yi, ElCheckboxGroup as bi, ElRadioButton as wi, ElRadio as _i, ElRadioGroup as Ci, ElDatePicker as Cn, ElImage as wo, ElLink as _o, ElTag as er, ElText as tr, ElInputNumber as Vo, ElPagination as la, ElCascader as Si, ElSlider as xi, ElRate as Ei, ElTimePicker as ki, formContextKey as Ti, ElFormItem as Di, ElForm as zi, ElInfiniteScroll as nr, ElDescriptions as or, ElDescriptionsItem as Vn, ElUpload as sa, vLoading as Mi, ElImageViewer as Pi } from "element-plus";
|
3
|
+
import { storage as rr, rAF as Ii, cAF as $i, isEqual as zn, isObject as Ro, uid as ua, arrayToMap as Ai, isUrl as Bi, delay as Mn, upperFirstCamelCase as ca, isString as Vi, isFunction as Co, camelCase as da, get as kt, merge as fa, kebabCase as Ri, toFixed as ar, cloneDeep as So, set as pn, toArray as Fo, dedupArray as pa, numberFormat as Fi, downloadRemoteFile as Oi, downloadUrl as Ni } from "@vtj/utils";
|
4
4
|
import { ArrowDown as ji, ArrowRight as Li, Minimize as Hi, Popup as Ui, Maximize as Xi, RawClose as qi, Menu as Gi, StarFilled as ma, Search as xo, Close as ga, Expand as Yi, Fold as Ki, Star as ha, Document as yt, Refresh as va, CopyDocument as Wi, Sunny as Ji, Moon as Qi, MoreFilled as ya, UserFilled as Zi, HomeFilled as el, Plus as ba, Minus as tl, EditPen as wa, CaretBottom as nl, CaretTop as ol, VtjIconDatabase as rl, VtjIconNpSearch as al, VtjIconNpReturn as il, VtjIconCheck as ll, WarningFilled as sl, SuccessFilled as ul, CircleCloseFilled as cl, ZoomIn as dl, Download as fl, Delete as pl } from "@vtj/icons";
|
5
|
-
import { useDraggable as ml, useMouseInElement as gl, useEventListener as
|
5
|
+
import { useDraggable as ml, useMouseInElement as gl, useEventListener as Sn, useElementSize as _a, useDark as Ca, useVirtualList as hl } from "@vueuse/core";
|
6
6
|
import { useRouter as Oo, RouterView as vl, useRoute as Sa, routeLocationKey as yl } from "vue-router";
|
7
|
-
import { VXETable as
|
7
|
+
import { VXETable as Lt, VxeTableFilterModule as bl, VxeTableEditModule as wl, VxeTableMenuModule as _l, VxeTableExportModule as Cl, VxeTableKeyboardModule as Sl, VxeTableValidatorModule as xl, VxeTableCustomModule as El, VxeGrid as ir, VxeTooltip as kl, VxeToolbar as Tl, VxeModal as Dl } from "vxe-table";
|
8
8
|
/**!
|
9
9
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
10
10
|
* @name @vtj/ui
|
11
11
|
* @author CHC chenhuachun1549@dingtalk.com
|
12
|
-
* @version 0.13.
|
12
|
+
* @version 0.13.14
|
13
13
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
14
14
|
*/
|
15
|
-
const n2 = "0.13.
|
15
|
+
const n2 = "0.13.14", zl = {
|
16
16
|
default: 14,
|
17
17
|
small: 12,
|
18
18
|
large: 18
|
@@ -46,7 +46,7 @@ const n2 = "0.13.12", zl = {
|
|
46
46
|
function tt(o) {
|
47
47
|
return typeof o == "string" ? o : `${o}px`;
|
48
48
|
}
|
49
|
-
function
|
49
|
+
function rn(o = 0, t) {
|
50
50
|
if (typeof o == "number")
|
51
51
|
return o;
|
52
52
|
if (/(%|vh|vw)$/i.test(o)) {
|
@@ -133,10 +133,10 @@ const Vl = ["src"], Fe = /* @__PURE__ */ G({
|
|
133
133
|
__name: "Icon",
|
134
134
|
props: Ml,
|
135
135
|
setup(o) {
|
136
|
-
const t = o, n =
|
136
|
+
const t = o, n = $t(), e = Ge(), r = D(() => {
|
137
137
|
if (!t.icon) return null;
|
138
138
|
const s = e?.appContext.app;
|
139
|
-
return typeof t.icon == "object" ?
|
139
|
+
return typeof t.icon == "object" ? tn(t.icon) : s?.component(t.icon) || t.icon;
|
140
140
|
}), a = D(() => {
|
141
141
|
const s = {
|
142
142
|
"is-pointer": !!n.onClick,
|
@@ -148,7 +148,7 @@ const Vl = ["src"], Fe = /* @__PURE__ */ G({
|
|
148
148
|
"border-radius": t.radius ? tt(t.radius) : void 0,
|
149
149
|
padding: t.padding ? tt(t.padding) : void 0
|
150
150
|
})), i = D(() => typeof t.size == "number" ? t.size : zl[t.size] ?? Number.parseInt(t.size) ?? void 0);
|
151
|
-
return (s, c) => (v(), k(u(
|
151
|
+
return (s, c) => (v(), k(u(Xt), {
|
152
152
|
class: pe(["x-icon", a.value]),
|
153
153
|
color: t.color,
|
154
154
|
size: i.value,
|
@@ -179,7 +179,7 @@ const Vl = ["src"], Fe = /* @__PURE__ */ G({
|
|
179
179
|
props: {
|
180
180
|
item: {},
|
181
181
|
subMenu: {},
|
182
|
-
defaultIcon: {}
|
182
|
+
defaultIcon: { type: [Object, Function] }
|
183
183
|
},
|
184
184
|
setup(o) {
|
185
185
|
const t = o, n = Ge(), e = (l) => {
|
@@ -203,11 +203,10 @@ const Vl = ["src"], Fe = /* @__PURE__ */ G({
|
|
203
203
|
key: 2,
|
204
204
|
class: "x-menu__badge"
|
205
205
|
}, r(t.item.badge)), {
|
206
|
-
default: b(() => i[0] || (i[0] = [
|
206
|
+
default: b(() => [...i[0] || (i[0] = [
|
207
207
|
Z("i", null, null, -1)
|
208
|
-
])),
|
209
|
-
_: 1
|
210
|
-
__: [0]
|
208
|
+
])]),
|
209
|
+
_: 1
|
211
210
|
}, 16)) : $("", !0)
|
212
211
|
])
|
213
212
|
]),
|
@@ -231,11 +230,10 @@ const Vl = ["src"], Fe = /* @__PURE__ */ G({
|
|
231
230
|
key: 1,
|
232
231
|
class: "x-menu__badge"
|
233
232
|
}, r(t.item.badge)), {
|
234
|
-
default: b(() => i[1] || (i[1] = [
|
233
|
+
default: b(() => [...i[1] || (i[1] = [
|
235
234
|
Z("i", null, null, -1)
|
236
|
-
])),
|
237
|
-
_: 1
|
238
|
-
__: [1]
|
235
|
+
])]),
|
236
|
+
_: 1
|
239
237
|
}, 16)) : $("", !0)
|
240
238
|
]),
|
241
239
|
default: b(() => [
|
@@ -426,9 +424,9 @@ function Hl(o) {
|
|
426
424
|
return null;
|
427
425
|
});
|
428
426
|
}
|
429
|
-
function
|
427
|
+
function Pt(o) {
|
430
428
|
const t = Hl(o);
|
431
|
-
return t.value ?
|
429
|
+
return t.value ? tn(G({ render: () => ae(Fe, t.value) })) : void 0;
|
432
430
|
}
|
433
431
|
function Lo(o, t) {
|
434
432
|
return D(() => {
|
@@ -437,7 +435,7 @@ function Lo(o, t) {
|
|
437
435
|
});
|
438
436
|
}
|
439
437
|
function Ul(o, t, n) {
|
440
|
-
const e =
|
438
|
+
const e = wn(t), r = L(!1), a = async (i) => {
|
441
439
|
const s = u(o);
|
442
440
|
return s ? typeof s == "function" ? await s(i) : s : t;
|
443
441
|
}, l = async (i) => (r.value = !0, await a(i).then((s) => (e.value = s || t, r.value = !1, u(e))));
|
@@ -476,7 +474,7 @@ const ql = { key: 0 }, Gl = /* @__PURE__ */ G({
|
|
476
474
|
props: ka,
|
477
475
|
emits: ["click"],
|
478
476
|
setup(o, { emit: t }) {
|
479
|
-
const n = o, e = t, r =
|
477
|
+
const n = o, e = t, r = Pt(zt(n, "icon")), a = Lo(zt(n, "disabled")), l = D(() => ({
|
480
478
|
[`is-${n.mode}`]: !!n.mode,
|
481
479
|
[`is-${n.type}`]: !!n.type,
|
482
480
|
[`is-${n.size}`]: !!n.size && n.size !== "default",
|
@@ -518,7 +516,7 @@ const ql = { key: 0 }, Gl = /* @__PURE__ */ G({
|
|
518
516
|
props: ka,
|
519
517
|
emits: ["click", "command", "dragstart", "dragend"],
|
520
518
|
setup(o, { emit: t }) {
|
521
|
-
const n = o, e = zo(), r = t, a = Nl(n), l = jl(n), i = Ll(n), s = Lo(
|
519
|
+
const n = o, e = zo(), r = t, a = Nl(n), l = jl(n), i = Ll(n), s = Lo(zt(n, "disabled")), c = D(() => !!n.draggable && !s.value), d = D(() => ({
|
522
520
|
[`x-action--${n.mode}`]: !!n.mode
|
523
521
|
})), f = () => {
|
524
522
|
s.value || r("click", Je(n));
|
@@ -549,7 +547,7 @@ const ql = { key: 0 }, Gl = /* @__PURE__ */ G({
|
|
549
547
|
), _ = (x) => ae(oa, { ...a.value, disabled: s.value }, () => [
|
550
548
|
x
|
551
549
|
]), S = D(() => {
|
552
|
-
let x = ae(
|
550
|
+
let x = ae(tn(Gl), { ...n, onClick: f });
|
553
551
|
const C = e.default?.();
|
554
552
|
return C && C.length && (x = C[0]), l.value && (x = h(x)), i.value && (x = y(x)), a.value && (x = _(x)), x;
|
555
553
|
});
|
@@ -632,7 +630,7 @@ const ql = { key: 0 }, Gl = /* @__PURE__ */ G({
|
|
632
630
|
button: {
|
633
631
|
type: Object
|
634
632
|
}
|
635
|
-
},
|
633
|
+
}, en = /* @__PURE__ */ G({
|
636
634
|
name: "XActionBar",
|
637
635
|
__name: "ActionBar",
|
638
636
|
props: Kl,
|
@@ -803,7 +801,7 @@ const ql = { key: 0 }, Gl = /* @__PURE__ */ G({
|
|
803
801
|
__name: "Container",
|
804
802
|
props: Wl,
|
805
803
|
setup(o, { expose: t }) {
|
806
|
-
const n = o, e =
|
804
|
+
const n = o, e = $t(), r = Ge(), a = L(), l = D(() => a.value?.$el), i = D(() => {
|
807
805
|
const d = r?.parent;
|
808
806
|
if (!d) return !1;
|
809
807
|
const f = d.proxy;
|
@@ -875,7 +873,7 @@ const ql = { key: 0 }, Gl = /* @__PURE__ */ G({
|
|
875
873
|
__name: "Header",
|
876
874
|
props: Jl,
|
877
875
|
setup(o) {
|
878
|
-
const t = o, n =
|
876
|
+
const t = o, n = Pt(zt(t, "icon")), e = $t(), r = D(() => ({
|
879
877
|
[`is-size-${t.size}`]: !!t.size && t.size !== "default",
|
880
878
|
"is-border": t.border,
|
881
879
|
"is-pointer": !!e.onClick
|
@@ -998,7 +996,7 @@ const ql = { key: 0 }, Gl = /* @__PURE__ */ G({
|
|
998
996
|
footer: {
|
999
997
|
type: Object
|
1000
998
|
}
|
1001
|
-
},
|
999
|
+
}, mn = /* @__PURE__ */ G({
|
1002
1000
|
name: "XPanel",
|
1003
1001
|
__name: "Panel",
|
1004
1002
|
props: ts,
|
@@ -1035,7 +1033,7 @@ const ql = { key: 0 }, Gl = /* @__PURE__ */ G({
|
|
1035
1033
|
}, {
|
1036
1034
|
default: b(() => [
|
1037
1035
|
N(c.$slots, "header", {}, () => [
|
1038
|
-
I(u(es),
|
1036
|
+
I(u(es), At(Bt(l.value)), {
|
1039
1037
|
default: b(() => [
|
1040
1038
|
N(c.$slots, "title")
|
1041
1039
|
]),
|
@@ -1147,7 +1145,7 @@ const ns = {
|
|
1147
1145
|
updated(o, t) {
|
1148
1146
|
const n = t.value || {};
|
1149
1147
|
let e = o.__draggable__;
|
1150
|
-
e && !
|
1148
|
+
e && !zn(e.options, n) && (e.destory(), o.__draggable__ = new dr(o, n));
|
1151
1149
|
},
|
1152
1150
|
unmounted(o) {
|
1153
1151
|
const t = o.__draggable__;
|
@@ -1169,9 +1167,9 @@ class fr {
|
|
1169
1167
|
init() {
|
1170
1168
|
const { el: t, options: n } = this, { disabled: e, onStart: r, onEnd: a } = n;
|
1171
1169
|
if (e) return;
|
1172
|
-
this.MIE = gl(t), this.cleanMousedown =
|
1170
|
+
this.MIE = gl(t), this.cleanMousedown = Sn(document, "mousedown", () => {
|
1173
1171
|
this.direction?.value && this.MIE && (this.resizing.value = !0, t.classList.add("is-resizing", `is-${this.direction.value}-resizing`), r && r(this.direction.value, this.MIE));
|
1174
|
-
}), this.cleanMouseup =
|
1172
|
+
}), this.cleanMouseup = Sn(document, "mouseup", () => {
|
1175
1173
|
this.resizing.value && this.direction?.value && this.MIE && (t.classList.remove(
|
1176
1174
|
"is-resizing",
|
1177
1175
|
`is-${this.direction.value}-resizing`
|
@@ -1239,7 +1237,7 @@ const Ta = {
|
|
1239
1237
|
updated(o, t) {
|
1240
1238
|
const n = t.value || {};
|
1241
1239
|
let e = o.__resizable__;
|
1242
|
-
e && !
|
1240
|
+
e && !zn(e.options, n) && (e.destory(), o.__resizable__ = new fr(o, n));
|
1243
1241
|
},
|
1244
1242
|
unmounted(o) {
|
1245
1243
|
const t = o.__resizable__;
|
@@ -1336,9 +1334,9 @@ const Ta = {
|
|
1336
1334
|
type: Number
|
1337
1335
|
}
|
1338
1336
|
};
|
1339
|
-
let
|
1337
|
+
let Tt = 1e3;
|
1340
1338
|
function rs(o, t) {
|
1341
|
-
const { width: n, height: e } = _a(t), r =
|
1339
|
+
const { width: n, height: e } = _a(t), r = Vt({
|
1342
1340
|
mode: o.mode || "normal",
|
1343
1341
|
wrapperWidth: 0,
|
1344
1342
|
wrapperHeight: 0,
|
@@ -1346,16 +1344,16 @@ function rs(o, t) {
|
|
1346
1344
|
height: 0,
|
1347
1345
|
top: 0,
|
1348
1346
|
left: 0,
|
1349
|
-
zIndex: o.zIndex || ++
|
1347
|
+
zIndex: o.zIndex || ++Tt,
|
1350
1348
|
dragging: !1,
|
1351
1349
|
resizing: !1
|
1352
1350
|
});
|
1353
1351
|
return re([n, e], ([a, l]) => {
|
1354
|
-
r.wrapperWidth = a, r.wrapperHeight = l, r.width =
|
1352
|
+
r.wrapperWidth = a, r.wrapperHeight = l, r.width = rn(o.width, a), r.height = rn(o.height, l), r.left = o.left ? rn(o.left, a) - r.width / 2 : Math.max(Math.floor((a - r.width) / 2), 0), r.top = o.top ? rn(o.top, l) : Math.max(Math.floor((l - r.height) / 2), 0);
|
1355
1353
|
}), re(r, (a) => {
|
1356
|
-
|
1354
|
+
Tt = Math.max(
|
1357
1355
|
a.zIndex,
|
1358
|
-
|
1356
|
+
Tt,
|
1359
1357
|
o.zIndex || 1
|
1360
1358
|
);
|
1361
1359
|
}), {
|
@@ -1418,7 +1416,7 @@ function is(o, t, n) {
|
|
1418
1416
|
f.toUpperCase()
|
1419
1417
|
) || (t.zIndex = Math.max(
|
1420
1418
|
t.zIndex,
|
1421
|
-
++
|
1419
|
+
++Tt,
|
1422
1420
|
o.zIndex || 1
|
1423
1421
|
));
|
1424
1422
|
},
|
@@ -1437,7 +1435,7 @@ function ls(o, t, n, e) {
|
|
1437
1435
|
target: e,
|
1438
1436
|
selector: ".x-panel__header",
|
1439
1437
|
onStart(a) {
|
1440
|
-
t.dragging = !0, t.zIndex = Math.max(t.zIndex, ++
|
1438
|
+
t.dragging = !0, t.zIndex = Math.max(t.zIndex, ++Tt), n("dragStart", a);
|
1441
1439
|
},
|
1442
1440
|
onMove(a) {
|
1443
1441
|
n("dragging", a);
|
@@ -1460,7 +1458,7 @@ function ss(o, t, n) {
|
|
1460
1458
|
disabled: e,
|
1461
1459
|
dirs: ["e", "s", "w"],
|
1462
1460
|
onStart(r, a) {
|
1463
|
-
t.resizing = !0, t.zIndex = Math.max(t.zIndex, ++
|
1461
|
+
t.resizing = !0, t.zIndex = Math.max(t.zIndex, ++Tt), n("resizeStart", r, a);
|
1464
1462
|
},
|
1465
1463
|
onResizing(r, a) {
|
1466
1464
|
n("resizing", r, a);
|
@@ -1485,7 +1483,7 @@ function us(o, t) {
|
|
1485
1483
|
componentInstance: n
|
1486
1484
|
};
|
1487
1485
|
}
|
1488
|
-
const cs = ["src"],
|
1486
|
+
const cs = ["src"], Pn = /* @__PURE__ */ G({
|
1489
1487
|
name: "XDialog",
|
1490
1488
|
__name: "Dialog",
|
1491
1489
|
props: os,
|
@@ -1533,7 +1531,7 @@ const cs = ["src"], Mn = /* @__PURE__ */ G({
|
|
1533
1531
|
class: "x-dialog__modal",
|
1534
1532
|
style: et(u(h))
|
1535
1533
|
}, null, 4)) : $("", !0),
|
1536
|
-
xe((v(), k(u(
|
1534
|
+
xe((v(), k(u(mn), q({
|
1537
1535
|
ref_key: "panelRef",
|
1538
1536
|
ref: i,
|
1539
1537
|
class: ["x-dialog", u(g)],
|
@@ -1654,7 +1652,7 @@ const cs = ["src"], Mn = /* @__PURE__ */ G({
|
|
1654
1652
|
}
|
1655
1653
|
});
|
1656
1654
|
function Ho(o, t) {
|
1657
|
-
const n = document.createElement("div"), e = I(
|
1655
|
+
const n = document.createElement("div"), e = I(Pn, o);
|
1658
1656
|
e.appContext = t ?? Ho._context, Zo(e, n);
|
1659
1657
|
const r = () => {
|
1660
1658
|
Zo(null, n), n.parentNode?.removeChild(n);
|
@@ -1693,8 +1691,7 @@ const ds = /* @__PURE__ */ G({
|
|
1693
1691
|
N(n.$slots, "default"),
|
1694
1692
|
e[0] || (e[0] = Z("div", { class: "x-mask-sidebar__helper" }, null, -1))
|
1695
1693
|
]),
|
1696
|
-
_: 3
|
1697
|
-
__: [0]
|
1694
|
+
_: 3
|
1698
1695
|
})
|
1699
1696
|
]),
|
1700
1697
|
_: 3
|
@@ -1866,7 +1863,7 @@ const ds = /* @__PURE__ */ G({
|
|
1866
1863
|
_: 3
|
1867
1864
|
}, 8, ["class"]));
|
1868
1865
|
}
|
1869
|
-
}),
|
1866
|
+
}), an = "__favorites__", ln = "__search__", hs = /* @__PURE__ */ G({
|
1870
1867
|
__name: "Menu",
|
1871
1868
|
props: {
|
1872
1869
|
collapse: { type: Boolean, default: !1 },
|
@@ -1881,12 +1878,12 @@ const ds = /* @__PURE__ */ G({
|
|
1881
1878
|
setup(o, { emit: t }) {
|
1882
1879
|
const n = o, e = D(() => n.menus || []), r = t, a = D(() => String(n.active?.id)), l = D(() => [
|
1883
1880
|
{
|
1884
|
-
id:
|
1881
|
+
id: an,
|
1885
1882
|
title: "收藏",
|
1886
1883
|
icon: ha,
|
1887
1884
|
children: n.favorites?.length ? n.favorites : [
|
1888
1885
|
{
|
1889
|
-
id:
|
1886
|
+
id: an + "empty",
|
1890
1887
|
disabled: !0,
|
1891
1888
|
title: "暂无收藏菜单"
|
1892
1889
|
}
|
@@ -1896,12 +1893,12 @@ const ds = /* @__PURE__ */ G({
|
|
1896
1893
|
const c = (n.keyword || "").trim(), d = c ? (n.flatMenus || []).filter((f) => f.title?.includes(c)) : [];
|
1897
1894
|
return [
|
1898
1895
|
{
|
1899
|
-
id:
|
1896
|
+
id: ln,
|
1900
1897
|
title: "搜索",
|
1901
1898
|
icon: xo,
|
1902
1899
|
children: d?.length ? d : [
|
1903
1900
|
{
|
1904
|
-
id:
|
1901
|
+
id: ln + "empty",
|
1905
1902
|
disabled: !0,
|
1906
1903
|
title: "查询匹配不到菜单项"
|
1907
1904
|
}
|
@@ -1978,7 +1975,7 @@ const ds = /* @__PURE__ */ G({
|
|
1978
1975
|
collapse: !0,
|
1979
1976
|
"collapse-transition": !1,
|
1980
1977
|
"default-active": a.value,
|
1981
|
-
"default-openeds": [
|
1978
|
+
"default-openeds": [an],
|
1982
1979
|
onSelect: s
|
1983
1980
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
1984
1981
|
[Ne, n.collapse]
|
@@ -1996,7 +1993,7 @@ const ds = /* @__PURE__ */ G({
|
|
1996
1993
|
collapse: !1,
|
1997
1994
|
"collapse-transition": !1,
|
1998
1995
|
"default-active": a.value,
|
1999
|
-
"default-openeds": [
|
1996
|
+
"default-openeds": [an],
|
2000
1997
|
onSelect: s
|
2001
1998
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
2002
1999
|
[Ne, !n.collapse]
|
@@ -2027,7 +2024,7 @@ const ds = /* @__PURE__ */ G({
|
|
2027
2024
|
collapse: !0,
|
2028
2025
|
"collapse-transition": !1,
|
2029
2026
|
"default-active": a.value,
|
2030
|
-
"default-openeds": [
|
2027
|
+
"default-openeds": [ln],
|
2031
2028
|
onSelect: s
|
2032
2029
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
2033
2030
|
[Ne, n.collapse]
|
@@ -2045,7 +2042,7 @@ const ds = /* @__PURE__ */ G({
|
|
2045
2042
|
collapse: !1,
|
2046
2043
|
"collapse-transition": !1,
|
2047
2044
|
"default-active": a.value,
|
2048
|
-
"default-openeds": [
|
2045
|
+
"default-openeds": [ln],
|
2049
2046
|
onSelect: s
|
2050
2047
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
2051
2048
|
[Ne, !n.collapse]
|
@@ -2239,7 +2236,7 @@ const ds = /* @__PURE__ */ G({
|
|
2239
2236
|
}, {
|
2240
2237
|
label: b(() => [
|
2241
2238
|
Z("div", ws, [
|
2242
|
-
n.home.icon ? (v(), k(Ee(u(
|
2239
|
+
n.home.icon ? (v(), k(Ee(u(Pt)(n.home.icon)), { key: 0 })) : $("", !0),
|
2243
2240
|
n.home.title ? (v(), F("span", _s, ee(n.home.title), 1)) : $("", !0)
|
2244
2241
|
])
|
2245
2242
|
]),
|
@@ -2266,12 +2263,12 @@ const ds = /* @__PURE__ */ G({
|
|
2266
2263
|
onDragstart: (g) => s(m, g),
|
2267
2264
|
onDragend: (g) => c(m, g)
|
2268
2265
|
}, [
|
2269
|
-
m.icon ? (v(), k(Ee(u(
|
2266
|
+
m.icon ? (v(), k(Ee(u(Pt)(m.icon)), { key: 0 })) : $("", !0),
|
2270
2267
|
m.title ? (v(), F("span", Ss, ee(m.title), 1)) : $("", !0)
|
2271
2268
|
], 40, Cs)
|
2272
2269
|
]),
|
2273
2270
|
default: b(() => [
|
2274
|
-
I(u(
|
2271
|
+
I(u(en), {
|
2275
2272
|
items: r(m),
|
2276
2273
|
mode: "text",
|
2277
2274
|
size: "small",
|
@@ -2387,7 +2384,7 @@ const ds = /* @__PURE__ */ G({
|
|
2387
2384
|
_: 1
|
2388
2385
|
}, 8, ["icon", "menus"]),
|
2389
2386
|
I(u(Be), { direction: "vertical" }),
|
2390
|
-
n.actions ? (v(), k(u(
|
2387
|
+
n.actions ? (v(), k(u(en), {
|
2391
2388
|
key: 0,
|
2392
2389
|
circle: "",
|
2393
2390
|
mode: "icon",
|
@@ -2504,7 +2501,7 @@ function Ma(o, t) {
|
|
2504
2501
|
}), n;
|
2505
2502
|
}
|
2506
2503
|
function Ps(o, t) {
|
2507
|
-
const n = Oo(), e =
|
2504
|
+
const n = Oo(), e = wn([]), r = wn([]), a = D(() => Ma(e.value, o.menuAdapter)), l = D(() => Ai(a.value, "id")), i = L(null), s = (p) => {
|
2508
2505
|
const h = typeof p == "object" ? p.id : p, y = l.value.get(h);
|
2509
2506
|
if (!y) {
|
2510
2507
|
console.warn("找不到菜单", p);
|
@@ -2606,7 +2603,7 @@ function Is(o, t, n, e, r) {
|
|
2606
2603
|
const z = s.value.filter((T) => T.id !== U.id);
|
2607
2604
|
s.value = [U, ...z], P(U);
|
2608
2605
|
}, X = async (U) => {
|
2609
|
-
x.value && x.value.closable && (y(x.value) || (await M(x.value, !0), await
|
2606
|
+
x.value && x.value.closable && (y(x.value) || (await M(x.value, !0), await Mn(0), U ? l.push(U) : l.push(r.value.url)));
|
2610
2607
|
}, ue = async () => {
|
2611
2608
|
await Pe();
|
2612
2609
|
const U = r.value.url === a.path, z = p(a.fullPath);
|
@@ -2618,7 +2615,7 @@ function Is(o, t, n, e, r) {
|
|
2618
2615
|
}
|
2619
2616
|
await Pe(), e.value = z || null;
|
2620
2617
|
};
|
2621
|
-
return re(n, ue), re(a, ue, { immediate: !0 }),
|
2618
|
+
return re(n, ue), re(a, ue, { immediate: !0 }), Mt(Da, i), {
|
2622
2619
|
tabRef: c,
|
2623
2620
|
tabs: s,
|
2624
2621
|
showTabs: m,
|
@@ -2640,7 +2637,7 @@ function Is(o, t, n, e, r) {
|
|
2640
2637
|
};
|
2641
2638
|
}
|
2642
2639
|
function $s(o, t) {
|
2643
|
-
const n = /* @__PURE__ */ new Map(), e = L([]), r =
|
2640
|
+
const n = /* @__PURE__ */ new Map(), e = L([]), r = Vt({}), a = Ge(), l = {}, { updateTab: i, isCurrentTab: s, activeHome: c, tabs: d } = o, f = (C, P) => {
|
2644
2641
|
const E = P.fullPath;
|
2645
2642
|
if (n.has(E))
|
2646
2643
|
return n.get(E);
|
@@ -2649,7 +2646,7 @@ function $s(o, t) {
|
|
2649
2646
|
name: w,
|
2650
2647
|
setup() {
|
2651
2648
|
const M = D(() => r[E] || document.body), H = D(() => !r[E]), O = D(() => !e.value.includes(w));
|
2652
|
-
return
|
2649
|
+
return Mt(
|
2653
2650
|
yl,
|
2654
2651
|
Je({ ...P })
|
2655
2652
|
), () => O.value ? ae(
|
@@ -2716,7 +2713,7 @@ function $s(o, t) {
|
|
2716
2713
|
}
|
2717
2714
|
}
|
2718
2715
|
}, x = (C) => !!r[C];
|
2719
|
-
return
|
2716
|
+
return Sn(document, "dragover", _), Sn(document, "drop", S), {
|
2720
2717
|
createView: f,
|
2721
2718
|
openDialog: p,
|
2722
2719
|
refresh: h,
|
@@ -2774,15 +2771,15 @@ const l2 = /* @__PURE__ */ G({
|
|
2774
2771
|
ie && (T(ie), await z(ie));
|
2775
2772
|
}, ke = (ie) => {
|
2776
2773
|
e("actionClick", ie);
|
2777
|
-
},
|
2774
|
+
}, jt = (ie, ve) => {
|
2778
2775
|
e("actionCommand", ie, ve);
|
2779
|
-
},
|
2776
|
+
}, An = async (ie) => {
|
2780
2777
|
const ve = li(ie || y);
|
2781
|
-
ve && (ve.dialog && X(ve), await S(ve, !0), await
|
2778
|
+
ve && (ve.dialog && X(ve), await S(ve, !0), await Mn(50));
|
2782
2779
|
};
|
2783
2780
|
return re(y, (ie) => {
|
2784
2781
|
ie?.dialog && X(ie);
|
2785
|
-
}),
|
2782
|
+
}), Mt(za, {
|
2786
2783
|
tabs: x,
|
2787
2784
|
flatMenus: d,
|
2788
2785
|
favorites: c,
|
@@ -2790,7 +2787,7 @@ const l2 = /* @__PURE__ */ G({
|
|
2790
2787
|
active: f,
|
2791
2788
|
currentTab: y,
|
2792
2789
|
closeCurrnetTab: O,
|
2793
|
-
close:
|
2790
|
+
close: An
|
2794
2791
|
}), (ie, ve) => (v(), k(u(oe), {
|
2795
2792
|
class: pe(["x-mask", { "is-disabled": n.disabled }]),
|
2796
2793
|
fit: ""
|
@@ -2875,7 +2872,7 @@ const l2 = /* @__PURE__ */ G({
|
|
2875
2872
|
onCloseTab: j,
|
2876
2873
|
onClickTab: u(H),
|
2877
2874
|
onActionClick: ke,
|
2878
|
-
onActionCommand:
|
2875
|
+
onActionCommand: jt
|
2879
2876
|
}, {
|
2880
2877
|
default: b(() => [
|
2881
2878
|
I(Ds, {
|
@@ -2962,9 +2959,9 @@ const Uo = /* @__PURE__ */ G({
|
|
2962
2959
|
},
|
2963
2960
|
setup(o) {
|
2964
2961
|
const t = o, n = D(
|
2965
|
-
() =>
|
2962
|
+
() => tn(t.button ? vi : yi)
|
2966
2963
|
);
|
2967
|
-
return (e, r) => (v(), k(u(bi),
|
2964
|
+
return (e, r) => (v(), k(u(bi), At(Bt(e.$attrs)), {
|
2968
2965
|
default: b(() => [
|
2969
2966
|
(v(!0), F(de, null, he(t.options, (a, l) => (v(), k(Ee(n.value), q({
|
2970
2967
|
key: `item_${l}_${a.value}`
|
@@ -2986,9 +2983,9 @@ const Uo = /* @__PURE__ */ G({
|
|
2986
2983
|
},
|
2987
2984
|
setup(o) {
|
2988
2985
|
const t = o, n = D(
|
2989
|
-
() =>
|
2986
|
+
() => tn(t.button ? wi : _i)
|
2990
2987
|
);
|
2991
|
-
return (e, r) => (v(), k(u(Ci),
|
2988
|
+
return (e, r) => (v(), k(u(Ci), At(Bt(e.$attrs)), {
|
2992
2989
|
default: b(() => [
|
2993
2990
|
(v(!0), F(de, null, he(t.options, (a, l) => (v(), k(Ee(n.value), q({
|
2994
2991
|
key: `item_${l}_${a.value}`
|
@@ -3002,7 +2999,7 @@ const Uo = /* @__PURE__ */ G({
|
|
3002
2999
|
_: 1
|
3003
3000
|
}, 16));
|
3004
3001
|
}
|
3005
|
-
}),
|
3002
|
+
}), Ft = {
|
3006
3003
|
// 重置数据方法
|
3007
3004
|
filterResetMethod(o) {
|
3008
3005
|
const { options: t, column: n } = o;
|
@@ -3039,7 +3036,7 @@ const Uo = /* @__PURE__ */ G({
|
|
3039
3036
|
renderOpts: {}
|
3040
3037
|
},
|
3041
3038
|
setup(o) {
|
3042
|
-
const t = o, { renderProps: n, renderEvents: e, cellValue: r, onChange: a } =
|
3039
|
+
const t = o, { renderProps: n, renderEvents: e, cellValue: r, onChange: a } = Nt(
|
3043
3040
|
t.renderOpts,
|
3044
3041
|
t.params
|
3045
3042
|
);
|
@@ -3059,7 +3056,7 @@ const Uo = /* @__PURE__ */ G({
|
|
3059
3056
|
renderOpts: {}
|
3060
3057
|
},
|
3061
3058
|
setup(o) {
|
3062
|
-
const t = o, { renderProps: n, renderEvents: e, state: r, load: a, onChange: l, onKeyup: i } =
|
3059
|
+
const t = o, { renderProps: n, renderEvents: e, state: r, load: a, onChange: l, onKeyup: i } = $n(t.renderOpts, t.params);
|
3063
3060
|
return a(), (s, c) => (v(), F("div", Rs, [
|
3064
3061
|
I(u(Re), q({
|
3065
3062
|
size: "small",
|
@@ -3068,11 +3065,11 @@ const Uo = /* @__PURE__ */ G({
|
|
3068
3065
|
modelValue: u(r).option.value,
|
3069
3066
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => u(r).option.value = d),
|
3070
3067
|
onInput: u(l),
|
3071
|
-
onKeyup:
|
3068
|
+
onKeyup: Rt(Ve(u(i), ["stop"]), ["enter"])
|
3072
3069
|
}, u(n), Ke(u(e))), null, 16, ["modelValue", "onInput", "onKeyup"])
|
3073
3070
|
]));
|
3074
3071
|
}
|
3075
|
-
}),
|
3072
|
+
}), Ot = {
|
3076
3073
|
autofocus: ".el-input__inner",
|
3077
3074
|
renderDefault(o, t) {
|
3078
3075
|
const { row: n, column: e } = t;
|
@@ -3087,8 +3084,8 @@ const Uo = /* @__PURE__ */ G({
|
|
3087
3084
|
}
|
3088
3085
|
}, Fs = {
|
3089
3086
|
cellClassName: "x-grid__edit",
|
3087
|
+
...Ot,
|
3090
3088
|
...Ft,
|
3091
|
-
...Rt,
|
3092
3089
|
renderFilter(o, t) {
|
3093
3090
|
return [ae(Xo, { params: t, renderOpts: o })];
|
3094
3091
|
}
|
@@ -3120,13 +3117,13 @@ function Xe(o) {
|
|
3120
3117
|
}
|
3121
3118
|
return o;
|
3122
3119
|
}
|
3123
|
-
function
|
3120
|
+
function gn(o) {
|
3124
3121
|
"@babel/helpers - typeof";
|
3125
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
3122
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? gn = function(t) {
|
3126
3123
|
return typeof t;
|
3127
|
-
} :
|
3124
|
+
} : gn = function(t) {
|
3128
3125
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
3129
|
-
},
|
3126
|
+
}, gn(o);
|
3130
3127
|
}
|
3131
3128
|
function Os(o, t, n) {
|
3132
3129
|
return t in o ? Object.defineProperty(o, t, {
|
@@ -3168,7 +3165,7 @@ function Ze(o) {
|
|
3168
3165
|
if (typeof window < "u" && window.navigator)
|
3169
3166
|
return !!/* @__PURE__ */ navigator.userAgent.match(o);
|
3170
3167
|
}
|
3171
|
-
var rt = Ze(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
3168
|
+
var rt = Ze(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), nn = Ze(/Edge/i), gr = Ze(/firefox/i), Kt = Ze(/safari/i) && !Ze(/chrome/i) && !Ze(/android/i), qo = Ze(/iP(ad|od|hone)/i), Pa = Ze(/chrome/i) && Ze(/android/i), Ia = {
|
3172
3169
|
capture: !1,
|
3173
3170
|
passive: !1
|
3174
3171
|
};
|
@@ -3178,7 +3175,7 @@ function ne(o, t, n) {
|
|
3178
3175
|
function te(o, t, n) {
|
3179
3176
|
o.removeEventListener(t, n, !rt && Ia);
|
3180
3177
|
}
|
3181
|
-
function
|
3178
|
+
function xn(o, t) {
|
3182
3179
|
if (t) {
|
3183
3180
|
if (t[0] === ">" && (t = t.substring(1)), o)
|
3184
3181
|
try {
|
@@ -3201,7 +3198,7 @@ function Ae(o, t, n, e) {
|
|
3201
3198
|
if (o) {
|
3202
3199
|
n = n || document;
|
3203
3200
|
do {
|
3204
|
-
if (t != null && (t[0] === ">" ? o.parentNode === n &&
|
3201
|
+
if (t != null && (t[0] === ">" ? o.parentNode === n && xn(o, t) : xn(o, t)) || e && o === n)
|
3205
3202
|
return o;
|
3206
3203
|
if (o === n) break;
|
3207
3204
|
} while (o = $a(o));
|
@@ -3226,7 +3223,7 @@ function Y(o, t, n) {
|
|
3226
3223
|
!(t in e) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), e[t] = n + (typeof n == "string" ? "" : "px");
|
3227
3224
|
}
|
3228
3225
|
}
|
3229
|
-
function
|
3226
|
+
function Dt(o, t) {
|
3230
3227
|
var n = "";
|
3231
3228
|
if (typeof o == "string")
|
3232
3229
|
n = o;
|
@@ -3264,7 +3261,7 @@ function ge(o, t, n, e, r) {
|
|
3264
3261
|
}
|
3265
3262
|
while (r = r.parentNode);
|
3266
3263
|
if (e && o !== window) {
|
3267
|
-
var g =
|
3264
|
+
var g = Dt(r || o), p = g && g.a, h = g && g.d;
|
3268
3265
|
g && (l /= h, i /= p, f /= p, d /= h, s = l + d, c = i + f);
|
3269
3266
|
}
|
3270
3267
|
return {
|
@@ -3286,7 +3283,7 @@ function vr(o, t, n) {
|
|
3286
3283
|
}
|
3287
3284
|
return !1;
|
3288
3285
|
}
|
3289
|
-
function
|
3286
|
+
function It(o, t, n, e) {
|
3290
3287
|
for (var r = 0, a = 0, l = o.children; a < l.length; ) {
|
3291
3288
|
if (l[a].style.display !== "none" && l[a] !== K.ghost && (e || l[a] !== K.dragged) && Ae(l[a], n.draggable, o, !1)) {
|
3292
3289
|
if (r === t)
|
@@ -3298,7 +3295,7 @@ function Pt(o, t, n, e) {
|
|
3298
3295
|
return null;
|
3299
3296
|
}
|
3300
3297
|
function Go(o, t) {
|
3301
|
-
for (var n = o.lastElementChild; n && (n === K.ghost || Y(n, "display") === "none" || t && !
|
3298
|
+
for (var n = o.lastElementChild; n && (n === K.ghost || Y(n, "display") === "none" || t && !xn(n, t)); )
|
3302
3299
|
n = n.previousElementSibling;
|
3303
3300
|
return n || null;
|
3304
3301
|
}
|
@@ -3307,14 +3304,14 @@ function Ie(o, t) {
|
|
3307
3304
|
if (!o || !o.parentNode)
|
3308
3305
|
return -1;
|
3309
3306
|
for (; o = o.previousElementSibling; )
|
3310
|
-
o.nodeName.toUpperCase() !== "TEMPLATE" && o !== K.clone && (!t ||
|
3307
|
+
o.nodeName.toUpperCase() !== "TEMPLATE" && o !== K.clone && (!t || xn(o, t)) && n++;
|
3311
3308
|
return n;
|
3312
3309
|
}
|
3313
3310
|
function yr(o) {
|
3314
3311
|
var t = 0, n = 0, e = He();
|
3315
3312
|
if (o)
|
3316
3313
|
do {
|
3317
|
-
var r =
|
3314
|
+
var r = Dt(o), a = r.a, l = r.d;
|
3318
3315
|
t += o.scrollLeft * a, n += o.scrollTop * l;
|
3319
3316
|
} while (o !== e && (o = o.parentNode));
|
3320
3317
|
return [t, n];
|
@@ -3351,19 +3348,19 @@ function Us(o, t) {
|
|
3351
3348
|
function Fn(o, t) {
|
3352
3349
|
return Math.round(o.top) === Math.round(t.top) && Math.round(o.left) === Math.round(t.left) && Math.round(o.height) === Math.round(t.height) && Math.round(o.width) === Math.round(t.width);
|
3353
3350
|
}
|
3354
|
-
var
|
3351
|
+
var Wt;
|
3355
3352
|
function Ba(o, t) {
|
3356
3353
|
return function() {
|
3357
|
-
if (!
|
3354
|
+
if (!Wt) {
|
3358
3355
|
var n = arguments, e = this;
|
3359
|
-
n.length === 1 ? o.call(e, n[0]) : o.apply(e, n),
|
3360
|
-
|
3356
|
+
n.length === 1 ? o.call(e, n[0]) : o.apply(e, n), Wt = setTimeout(function() {
|
3357
|
+
Wt = void 0;
|
3361
3358
|
}, t);
|
3362
3359
|
}
|
3363
3360
|
};
|
3364
3361
|
}
|
3365
3362
|
function Xs() {
|
3366
|
-
clearTimeout(
|
3363
|
+
clearTimeout(Wt), Wt = void 0;
|
3367
3364
|
}
|
3368
3365
|
function Va(o, t, n) {
|
3369
3366
|
o.scrollLeft += t, o.scrollTop += n;
|
@@ -3397,7 +3394,7 @@ function qs() {
|
|
3397
3394
|
});
|
3398
3395
|
var a = Xe({}, o[o.length - 1].rect);
|
3399
3396
|
if (r.thisAnimationDuration) {
|
3400
|
-
var l =
|
3397
|
+
var l = Dt(r, !0);
|
3401
3398
|
l && (a.top -= l.f, a.left -= l.e);
|
3402
3399
|
}
|
3403
3400
|
r.fromRect = a;
|
@@ -3421,7 +3418,7 @@ function qs() {
|
|
3421
3418
|
}
|
3422
3419
|
var a = !1, l = 0;
|
3423
3420
|
o.forEach(function(i) {
|
3424
|
-
var s = 0, c = i.target, d = c.fromRect, f = ge(c), m = c.prevFromRect, g = c.prevToRect, p = i.rect, h =
|
3421
|
+
var s = 0, c = i.target, d = c.fromRect, f = ge(c), m = c.prevFromRect, g = c.prevToRect, p = i.rect, h = Dt(c, !0);
|
3425
3422
|
h && (f.top -= h.f, f.left -= h.e), c.toRect = f, c.thisAnimationDuration && Fn(m, f) && !Fn(d, f) && // Make sure animatingRect is on line between toRect & fromRect
|
3426
3423
|
(p.top - f.top) / (p.left - f.left) === (d.top - f.top) / (d.left - f.left) && (s = Ys(p, m, g, r.options)), Fn(f, d) || (c.prevFromRect = d, c.prevToRect = f, s || (s = r.options.animation), r.animate(c, p, f, s)), s && (a = !0, l = Math.max(l, s), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
3427
3424
|
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
@@ -3433,7 +3430,7 @@ function qs() {
|
|
3433
3430
|
animate: function(e, r, a, l) {
|
3434
3431
|
if (l) {
|
3435
3432
|
Y(e, "transition", ""), Y(e, "transform", "");
|
3436
|
-
var i =
|
3433
|
+
var i = Dt(this.el), s = i && i.a, c = i && i.d, d = (r.left - a.left) / (s || 1), f = (r.top - a.top) / (c || 1);
|
3437
3434
|
e.animatingX = !!d, e.animatingY = !!f, Y(e, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy = Gs(e), Y(e, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), Y(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
3438
3435
|
Y(e, "transition", ""), Y(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
3439
3436
|
}, l);
|
@@ -3449,7 +3446,7 @@ function Ys(o, t, n, e) {
|
|
3449
3446
|
}
|
3450
3447
|
var _t = [], On = {
|
3451
3448
|
initializeByDefault: !0
|
3452
|
-
},
|
3449
|
+
}, on = {
|
3453
3450
|
mount: function(t) {
|
3454
3451
|
for (var n in On)
|
3455
3452
|
On.hasOwnProperty(n) && !(n in t) && (t[n] = On[n]);
|
@@ -3503,11 +3500,11 @@ function Ks(o) {
|
|
3503
3500
|
var t = o.sortable, n = o.rootEl, e = o.name, r = o.targetEl, a = o.cloneEl, l = o.toEl, i = o.fromEl, s = o.oldIndex, c = o.newIndex, d = o.oldDraggableIndex, f = o.newDraggableIndex, m = o.originalEvent, g = o.putSortable, p = o.extraEventProperties;
|
3504
3501
|
if (t = t || n && n[De], !!t) {
|
3505
3502
|
var h, y = t.options, _ = "on" + e.charAt(0).toUpperCase() + e.substr(1);
|
3506
|
-
window.CustomEvent && !rt && !
|
3503
|
+
window.CustomEvent && !rt && !nn ? h = new CustomEvent(e, {
|
3507
3504
|
bubbles: !0,
|
3508
3505
|
cancelable: !0
|
3509
3506
|
}) : (h = document.createEvent("Event"), h.initEvent(e, !0, !0)), h.to = l || n, h.from = i || n, h.item = r || n, h.clone = a, h.oldIndex = s, h.newIndex = c, h.oldDraggableIndex = d, h.newDraggableIndex = f, h.originalEvent = m, h.pullMode = g ? g.lastPutMode : void 0;
|
3510
|
-
var S = Xe(Xe({}, p),
|
3507
|
+
var S = Xe(Xe({}, p), on.getEventProperties(e, t));
|
3511
3508
|
for (var x in S)
|
3512
3509
|
h[x] = S[x];
|
3513
3510
|
n && n.dispatchEvent(h), y[_] && y[_].call(t, h);
|
@@ -3515,21 +3512,21 @@ function Ks(o) {
|
|
3515
3512
|
}
|
3516
3513
|
var Ws = ["evt"], Te = function(t, n) {
|
3517
3514
|
var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = e.evt, a = js(e, Ws);
|
3518
|
-
|
3515
|
+
on.pluginEvent.bind(K)(t, n, Xe({
|
3519
3516
|
dragEl: B,
|
3520
3517
|
parentEl: fe,
|
3521
3518
|
ghostEl: J,
|
3522
3519
|
rootEl: se,
|
3523
3520
|
nextEl: dt,
|
3524
|
-
lastDownEl:
|
3521
|
+
lastDownEl: hn,
|
3525
3522
|
cloneEl: ce,
|
3526
3523
|
cloneHidden: lt,
|
3527
|
-
dragStarted:
|
3524
|
+
dragStarted: qt,
|
3528
3525
|
putSortable: ye,
|
3529
3526
|
activeSortable: K.active,
|
3530
3527
|
originalEvent: r,
|
3531
3528
|
oldIndex: Et,
|
3532
|
-
oldDraggableIndex:
|
3529
|
+
oldDraggableIndex: Jt,
|
3533
3530
|
newIndex: Me,
|
3534
3531
|
newDraggableIndex: it,
|
3535
3532
|
hideGhostForTarget: La,
|
@@ -3556,20 +3553,20 @@ function Se(o) {
|
|
3556
3553
|
targetEl: B,
|
3557
3554
|
rootEl: se,
|
3558
3555
|
oldIndex: Et,
|
3559
|
-
oldDraggableIndex:
|
3556
|
+
oldDraggableIndex: Jt,
|
3560
3557
|
newIndex: Me,
|
3561
3558
|
newDraggableIndex: it
|
3562
3559
|
}, o));
|
3563
3560
|
}
|
3564
|
-
var B, fe, J, se, dt,
|
3565
|
-
if (
|
3561
|
+
var B, fe, J, se, dt, hn, ce, lt, Et, Me, Jt, it, sn, ye, xt = !1, En = !1, kn = [], ut, $e, Nn, jn, br, wr, qt, Ct, Qt, Zt = !1, un = !1, vn, we, Ln = [], Eo = !1, Tn = [], In = typeof document < "u", cn = qo, _r = nn || rt ? "cssFloat" : "float", Js = In && !Pa && !qo && "draggable" in document.createElement("div"), Oa = (function() {
|
3562
|
+
if (In) {
|
3566
3563
|
if (rt)
|
3567
3564
|
return !1;
|
3568
3565
|
var o = document.createElement("x");
|
3569
3566
|
return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
|
3570
3567
|
}
|
3571
3568
|
})(), Na = function(t, n) {
|
3572
|
-
var e = Y(t), r = parseInt(e.width) - parseInt(e.paddingLeft) - parseInt(e.paddingRight) - parseInt(e.borderLeftWidth) - parseInt(e.borderRightWidth), a =
|
3569
|
+
var e = Y(t), r = parseInt(e.width) - parseInt(e.paddingLeft) - parseInt(e.paddingRight) - parseInt(e.borderLeftWidth) - parseInt(e.borderRightWidth), a = It(t, 0, n), l = It(t, 1, n), i = a && Y(a), s = l && Y(l), c = i && parseInt(i.marginLeft) + parseInt(i.marginRight) + ge(a).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + ge(l).width;
|
3573
3570
|
if (e.display === "flex")
|
3574
3571
|
return e.flexDirection === "column" || e.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
3575
3572
|
if (e.display === "grid")
|
@@ -3584,7 +3581,7 @@ var B, fe, J, se, dt, gn, ce, lt, Et, Me, Wt, it, ln, ye, xt = !1, xn = !1, En =
|
|
3584
3581
|
return r === i || a === s || r + l / 2 === i + c / 2;
|
3585
3582
|
}, Zs = function(t, n) {
|
3586
3583
|
var e;
|
3587
|
-
return
|
3584
|
+
return kn.some(function(r) {
|
3588
3585
|
var a = r[De].options.emptyInsertThreshold;
|
3589
3586
|
if (!(!a || Go(r))) {
|
3590
3587
|
var l = ge(r), i = t >= l.left - a && t <= l.right + a, s = n >= l.top - a && n <= l.bottom + a;
|
@@ -3609,7 +3606,7 @@ var B, fe, J, se, dt, gn, ce, lt, Et, Me, Wt, it, ln, ye, xt = !1, xn = !1, En =
|
|
3609
3606
|
};
|
3610
3607
|
}
|
3611
3608
|
var e = {}, r = t.group;
|
3612
|
-
(!r ||
|
3609
|
+
(!r || gn(r) != "object") && (r = {
|
3613
3610
|
name: r
|
3614
3611
|
}), e.name = r.name, e.checkPull = n(r.pull, !0), e.checkPut = n(r.put), e.revertClone = r.revertClone, t.group = e;
|
3615
3612
|
}, La = function() {
|
@@ -3617,9 +3614,9 @@ var B, fe, J, se, dt, gn, ce, lt, Et, Me, Wt, it, ln, ye, xt = !1, xn = !1, En =
|
|
3617
3614
|
}, Ha = function() {
|
3618
3615
|
!Oa && J && Y(J, "display", "");
|
3619
3616
|
};
|
3620
|
-
|
3621
|
-
if (
|
3622
|
-
return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(),
|
3617
|
+
In && !Pa && document.addEventListener("click", function(o) {
|
3618
|
+
if (En)
|
3619
|
+
return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(), En = !1, !1;
|
3623
3620
|
}, !0);
|
3624
3621
|
var ct = function(t) {
|
3625
3622
|
if (B) {
|
@@ -3682,16 +3679,16 @@ function K(o, t) {
|
|
3682
3679
|
y: 0
|
3683
3680
|
},
|
3684
3681
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
3685
|
-
supportPointer: K.supportPointer !== !1 && "PointerEvent" in window && (!
|
3682
|
+
supportPointer: K.supportPointer !== !1 && "PointerEvent" in window && (!Kt || qo),
|
3686
3683
|
emptyInsertThreshold: 5
|
3687
3684
|
};
|
3688
|
-
|
3685
|
+
on.initializePlugins(this, o, n);
|
3689
3686
|
for (var e in n)
|
3690
3687
|
!(e in t) && (t[e] = n[e]);
|
3691
3688
|
ja(t);
|
3692
3689
|
for (var r in this)
|
3693
3690
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
3694
|
-
this.nativeDraggable = t.forceFallback ? !1 : Js, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? ne(o, "pointerdown", this._onTapStart) : (ne(o, "mousedown", this._onTapStart), ne(o, "touchstart", this._onTapStart)), this.nativeDraggable && (ne(o, "dragover", this), ne(o, "dragenter", this)),
|
3691
|
+
this.nativeDraggable = t.forceFallback ? !1 : Js, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? ne(o, "pointerdown", this._onTapStart) : (ne(o, "mousedown", this._onTapStart), ne(o, "touchstart", this._onTapStart)), this.nativeDraggable && (ne(o, "dragover", this), ne(o, "dragenter", this)), kn.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), nt(this, qs());
|
3695
3692
|
}
|
3696
3693
|
K.prototype = /** @lends Sortable.prototype */
|
3697
3694
|
{
|
@@ -3705,8 +3702,8 @@ K.prototype = /** @lends Sortable.prototype */
|
|
3705
3702
|
_onTapStart: function(t) {
|
3706
3703
|
if (t.cancelable) {
|
3707
3704
|
var n = this, e = this.el, r = this.options, a = r.preventOnFilter, l = t.type, i = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (i || t).target, c = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, d = r.filter;
|
3708
|
-
if (s0(e), !B && !(/mousedown|pointerdown/.test(l) && t.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable &&
|
3709
|
-
if (Et = Ie(s),
|
3705
|
+
if (s0(e), !B && !(/mousedown|pointerdown/.test(l) && t.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Kt && s && s.tagName.toUpperCase() === "SELECT") && (s = Ae(s, r.draggable, e, !1), !(s && s.animated) && hn !== s)) {
|
3706
|
+
if (Et = Ie(s), Jt = Ie(s, r.draggable), typeof d == "function") {
|
3710
3707
|
if (d.call(this, t, s, this)) {
|
3711
3708
|
Se({
|
3712
3709
|
sortable: n,
|
@@ -3744,7 +3741,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
3744
3741
|
var r = this, a = r.el, l = r.options, i = a.ownerDocument, s;
|
3745
3742
|
if (e && !B && e.parentNode === a) {
|
3746
3743
|
var c = ge(e);
|
3747
|
-
if (se = a, B = e, fe = B.parentNode, dt = B.nextSibling,
|
3744
|
+
if (se = a, B = e, fe = B.parentNode, dt = B.nextSibling, hn = e, sn = l.group, K.dragged = B, ut = {
|
3748
3745
|
target: B,
|
3749
3746
|
clientX: (n || t).clientX,
|
3750
3747
|
clientY: (n || t).clientY
|
@@ -3764,7 +3761,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
3764
3761
|
Aa(B, d.trim(), Hn);
|
3765
3762
|
}), ne(i, "dragover", ct), ne(i, "mousemove", ct), ne(i, "touchmove", ct), l.supportPointer ? (ne(i, "pointerup", r._onDrop), !this.nativeDraggable && ne(i, "pointercancel", r._onDrop)) : (ne(i, "mouseup", r._onDrop), ne(i, "touchend", r._onDrop), ne(i, "touchcancel", r._onDrop)), gr && this.nativeDraggable && (this.options.touchStartThreshold = 4, B.draggable = !0), Te("delayStart", this, {
|
3766
3763
|
evt: t
|
3767
|
-
}), l.delay && (!l.delayOnTouchOnly || n) && (!this.nativeDraggable || !(
|
3764
|
+
}), l.delay && (!l.delayOnTouchOnly || n) && (!this.nativeDraggable || !(nn || rt))) {
|
3768
3765
|
if (K.eventCanceled) {
|
3769
3766
|
this._onDrop();
|
3770
3767
|
return;
|
@@ -3788,7 +3785,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
3788
3785
|
_triggerDragStart: function(t, n) {
|
3789
3786
|
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? ne(document, "pointermove", this._onTouchMove) : n ? ne(document, "touchmove", this._onTouchMove) : ne(document, "mousemove", this._onTouchMove) : (ne(B, "dragend", this), ne(se, "dragstart", this._onDragStart));
|
3790
3787
|
try {
|
3791
|
-
document.selection ?
|
3788
|
+
document.selection ? yn(function() {
|
3792
3789
|
document.selection.empty();
|
3793
3790
|
}) : window.getSelection().removeAllRanges();
|
3794
3791
|
} catch {
|
@@ -3832,7 +3829,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
3832
3829
|
},
|
3833
3830
|
_onTouchMove: function(t) {
|
3834
3831
|
if (ut) {
|
3835
|
-
var n = this.options, e = n.fallbackTolerance, r = n.fallbackOffset, a = t.touches ? t.touches[0] : t, l = J &&
|
3832
|
+
var n = this.options, e = n.fallbackTolerance, r = n.fallbackOffset, a = t.touches ? t.touches[0] : t, l = J && Dt(J, !0), i = J && l && l.a, s = J && l && l.d, c = cn && we && yr(we), d = (a.clientX - ut.clientX + r.x) / (i || 1) + (c ? c[0] - Ln[0] : 0) / (i || 1), f = (a.clientY - ut.clientY + r.y) / (s || 1) + (c ? c[1] - Ln[1] : 0) / (s || 1);
|
3836
3833
|
if (!K.active && !xt) {
|
3837
3834
|
if (e && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < e)
|
3838
3835
|
return;
|
@@ -3855,13 +3852,13 @@ K.prototype = /** @lends Sortable.prototype */
|
|
3855
3852
|
},
|
3856
3853
|
_appendGhost: function() {
|
3857
3854
|
if (!J) {
|
3858
|
-
var t = this.options.fallbackOnBody ? document.body : se, n = ge(B, !0,
|
3859
|
-
if (
|
3855
|
+
var t = this.options.fallbackOnBody ? document.body : se, n = ge(B, !0, cn, !0, t), e = this.options;
|
3856
|
+
if (cn) {
|
3860
3857
|
for (we = t; Y(we, "position") === "static" && Y(we, "transform") === "none" && we !== document; )
|
3861
3858
|
we = we.parentNode;
|
3862
3859
|
we !== document.body && we !== document.documentElement ? (we === document && (we = He()), n.top += we.scrollTop, n.left += we.scrollLeft) : we = He(), Ln = yr(we);
|
3863
3860
|
}
|
3864
|
-
J = B.cloneNode(!0), ze(J, e.ghostClass, !1), ze(J, e.fallbackClass, !0), ze(J, e.dragClass, !0), Y(J, "transition", ""), Y(J, "transform", ""), Y(J, "box-sizing", "border-box"), Y(J, "margin", 0), Y(J, "top", n.top), Y(J, "left", n.left), Y(J, "width", n.width), Y(J, "height", n.height), Y(J, "opacity", "0.8"), Y(J, "position",
|
3861
|
+
J = B.cloneNode(!0), ze(J, e.ghostClass, !1), ze(J, e.fallbackClass, !0), ze(J, e.dragClass, !0), Y(J, "transition", ""), Y(J, "transform", ""), Y(J, "box-sizing", "border-box"), Y(J, "margin", 0), Y(J, "top", n.top), Y(J, "left", n.left), Y(J, "width", n.width), Y(J, "height", n.height), Y(J, "opacity", "0.8"), Y(J, "position", cn ? "absolute" : "fixed"), Y(J, "zIndex", "100000"), Y(J, "pointerEvents", "none"), K.ghost = J, t.appendChild(J), Y(J, "transform-origin", br / parseInt(J.style.width) * 100 + "% " + wr / parseInt(J.style.height) * 100 + "%");
|
3865
3862
|
}
|
3866
3863
|
},
|
3867
3864
|
_onDragStart: function(t, n) {
|
@@ -3872,16 +3869,16 @@ K.prototype = /** @lends Sortable.prototype */
|
|
3872
3869
|
this._onDrop();
|
3873
3870
|
return;
|
3874
3871
|
}
|
3875
|
-
Te("setupClone", this), K.eventCanceled || (ce = Ra(B), ce.removeAttribute("id"), ce.draggable = !1, ce.style["will-change"] = "", this._hideClone(), ze(ce, this.options.chosenClass, !1), K.clone = ce), e.cloneId =
|
3872
|
+
Te("setupClone", this), K.eventCanceled || (ce = Ra(B), ce.removeAttribute("id"), ce.draggable = !1, ce.style["will-change"] = "", this._hideClone(), ze(ce, this.options.chosenClass, !1), K.clone = ce), e.cloneId = yn(function() {
|
3876
3873
|
Te("clone", e), !K.eventCanceled && (e.options.removeCloneOnHide || se.insertBefore(ce, B), e._hideClone(), Se({
|
3877
3874
|
sortable: e,
|
3878
3875
|
name: "clone"
|
3879
3876
|
}));
|
3880
|
-
}), !n && ze(B, a.dragClass, !0), n ? (
|
3877
|
+
}), !n && ze(B, a.dragClass, !0), n ? (En = !0, e._loopId = setInterval(e._emulateDragOver, 50)) : (te(document, "mouseup", e._onDrop), te(document, "touchend", e._onDrop), te(document, "touchcancel", e._onDrop), r && (r.effectAllowed = "move", a.setData && a.setData.call(e, r, B)), ne(document, "drop", e), Y(B, "transform", "translateZ(0)")), xt = !0, e._dragStartId = yn(e._dragStarted.bind(e, n, t)), ne(document, "selectstart", e), qt = !0, window.getSelection().removeAllRanges(), Kt && Y(document.body, "user-select", "none");
|
3881
3878
|
},
|
3882
3879
|
// Returns true - if no further action is needed (either inserted or another condition)
|
3883
3880
|
_onDragOver: function(t) {
|
3884
|
-
var n = this.el, e = t.target, r, a, l, i = this.options, s = i.group, c = K.active, d =
|
3881
|
+
var n = this.el, e = t.target, r, a, l, i = this.options, s = i.group, c = K.active, d = sn === s, f = i.sort, m = ye || c, g, p = this, h = !1;
|
3885
3882
|
if (Eo) return;
|
3886
3883
|
function y(T, j) {
|
3887
3884
|
Te(T, p, Xe({
|
@@ -3896,7 +3893,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
3896
3893
|
target: e,
|
3897
3894
|
completed: S,
|
3898
3895
|
onMove: function(le, ke) {
|
3899
|
-
return
|
3896
|
+
return dn(se, n, B, r, le, ge(le), t, ke);
|
3900
3897
|
},
|
3901
3898
|
changed: x
|
3902
3899
|
}, j));
|
@@ -3924,7 +3921,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
3924
3921
|
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), e = Ae(e, i.draggable, n, !0), y("dragOver"), K.eventCanceled) return h;
|
3925
3922
|
if (B.contains(t.target) || e.animated && e.animatingX && e.animatingY || p._ignoreWhileAnimating === e)
|
3926
3923
|
return S(!1);
|
3927
|
-
if (
|
3924
|
+
if (En = !1, c && !i.disabled && (d ? f || (l = fe !== se) : ye === this || (this.lastPutMode = sn.checkPull(this, c, B, t)) && s.checkPut(this, c, B, t))) {
|
3928
3925
|
if (g = this._getDirection(t, e) === "vertical", r = ge(B), y("dragOverValid"), K.eventCanceled) return h;
|
3929
3926
|
if (l)
|
3930
3927
|
return fe = se, _(), this._hideClone(), y("revert"), K.eventCanceled || (dt ? se.insertBefore(B, dt) : se.appendChild(B)), S(!0);
|
@@ -3932,18 +3929,18 @@ K.prototype = /** @lends Sortable.prototype */
|
|
3932
3929
|
if (!C || r0(t, g, this) && !C.animated) {
|
3933
3930
|
if (C === B)
|
3934
3931
|
return S(!1);
|
3935
|
-
if (C && n === t.target && (e = C), e && (a = ge(e)),
|
3932
|
+
if (C && n === t.target && (e = C), e && (a = ge(e)), dn(se, n, B, r, e, a, t, !!e) !== !1)
|
3936
3933
|
return _(), C && C.nextSibling ? n.insertBefore(B, C.nextSibling) : n.appendChild(B), fe = n, x(), S(!0);
|
3937
3934
|
} else if (C && o0(t, g, this)) {
|
3938
|
-
var P =
|
3935
|
+
var P = It(n, 0, i, !0);
|
3939
3936
|
if (P === B)
|
3940
3937
|
return S(!1);
|
3941
|
-
if (e = P, a = ge(e),
|
3938
|
+
if (e = P, a = ge(e), dn(se, n, B, r, e, a, t, !1) !== !1)
|
3942
3939
|
return _(), n.insertBefore(B, P), fe = n, x(), S(!0);
|
3943
3940
|
} else if (e.parentNode === n) {
|
3944
3941
|
a = ge(e);
|
3945
3942
|
var E = 0, w, A = B.parentNode !== n, M = !Qs(B.animated && B.toRect || r, e.animated && e.toRect || a, g), H = g ? "top" : "left", O = vr(e, "top", "top") || vr(B, "top", "top"), R = O ? O.scrollTop : void 0;
|
3946
|
-
Ct !== e && (w = a[H],
|
3943
|
+
Ct !== e && (w = a[H], Zt = !1, un = !M && i.invertSwap || A), E = a0(t, e, a, g, M ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, un, Ct === e);
|
3947
3944
|
var V;
|
3948
3945
|
if (E !== 0) {
|
3949
3946
|
var X = Ie(B);
|
@@ -3953,12 +3950,12 @@ K.prototype = /** @lends Sortable.prototype */
|
|
3953
3950
|
}
|
3954
3951
|
if (E === 0 || V === e)
|
3955
3952
|
return S(!1);
|
3956
|
-
Ct = e,
|
3953
|
+
Ct = e, Qt = E;
|
3957
3954
|
var ue = e.nextElementSibling, U = !1;
|
3958
3955
|
U = E === 1;
|
3959
|
-
var z =
|
3956
|
+
var z = dn(se, n, B, r, e, a, t, U);
|
3960
3957
|
if (z !== !1)
|
3961
|
-
return (z === 1 || z === -1) && (U = z === 1), Eo = !0, setTimeout(n0, 30), _(), U && !ue ? n.appendChild(B) : e.parentNode.insertBefore(B, U ? ue : e), O && Va(O, 0, R - O.scrollTop), fe = B.parentNode, w !== void 0 && !
|
3958
|
+
return (z === 1 || z === -1) && (U = z === 1), Eo = !0, setTimeout(n0, 30), _(), U && !ue ? n.appendChild(B) : e.parentNode.insertBefore(B, U ? ue : e), O && Va(O, 0, R - O.scrollTop), fe = B.parentNode, w !== void 0 && !un && (vn = Math.abs(w - ge(e)[H])), x(), S(!0);
|
3962
3959
|
}
|
3963
3960
|
if (n.contains(B))
|
3964
3961
|
return S(!1);
|
@@ -3981,7 +3978,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
3981
3978
|
this._nulling();
|
3982
3979
|
return;
|
3983
3980
|
}
|
3984
|
-
xt = !1,
|
3981
|
+
xt = !1, un = !1, Zt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ko(this.cloneId), ko(this._dragStartId), this.nativeDraggable && (te(document, "drop", this), te(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Kt && Y(document.body, "user-select", ""), Y(B, "transform", ""), t && (qt && (t.cancelable && t.preventDefault(), !e.dropBubble && t.stopPropagation()), J && J.parentNode && J.parentNode.removeChild(J), (se === fe || ye && ye.lastPutMode !== "clone") && ce && ce.parentNode && ce.parentNode.removeChild(ce), B && (this.nativeDraggable && te(B, "dragend", this), Hn(B), B.style["will-change"] = "", qt && !xt && ze(B, ye ? ye.options.ghostClass : this.options.ghostClass, !1), ze(B, this.options.chosenClass, !1), Se({
|
3985
3982
|
sortable: this,
|
3986
3983
|
name: "unchoose",
|
3987
3984
|
toEl: fe,
|
@@ -4020,7 +4017,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
4020
4017
|
name: "sort",
|
4021
4018
|
toEl: fe,
|
4022
4019
|
originalEvent: t
|
4023
|
-
})), K.active && ((Me == null || Me === -1) && (Me = Et, it =
|
4020
|
+
})), K.active && ((Me == null || Me === -1) && (Me = Et, it = Jt), Se({
|
4024
4021
|
sortable: this,
|
4025
4022
|
name: "end",
|
4026
4023
|
toEl: fe,
|
@@ -4028,9 +4025,9 @@ K.prototype = /** @lends Sortable.prototype */
|
|
4028
4025
|
}), this.save()))), this._nulling();
|
4029
4026
|
},
|
4030
4027
|
_nulling: function() {
|
4031
|
-
Te("nulling", this), se = B = fe = J = dt = ce =
|
4028
|
+
Te("nulling", this), se = B = fe = J = dt = ce = hn = lt = ut = $e = qt = Me = it = Et = Jt = Ct = Qt = ye = sn = K.dragged = K.ghost = K.clone = K.active = null, Tn.forEach(function(t) {
|
4032
4029
|
t.checked = !0;
|
4033
|
-
}),
|
4030
|
+
}), Tn.length = Nn = jn = 0;
|
4034
4031
|
},
|
4035
4032
|
handleEvent: function(t) {
|
4036
4033
|
switch (t.type) {
|
@@ -4095,7 +4092,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
4095
4092
|
var e = this.options;
|
4096
4093
|
if (n === void 0)
|
4097
4094
|
return e[t];
|
4098
|
-
var r =
|
4095
|
+
var r = on.modifyOption(this, t, n);
|
4099
4096
|
typeof r < "u" ? e[t] = r : e[t] = n, t === "group" && ja(e);
|
4100
4097
|
},
|
4101
4098
|
/**
|
@@ -4106,7 +4103,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
4106
4103
|
var t = this.el;
|
4107
4104
|
t[De] = null, te(t, "mousedown", this._onTapStart), te(t, "touchstart", this._onTapStart), te(t, "pointerdown", this._onTapStart), this.nativeDraggable && (te(t, "dragover", this), te(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
|
4108
4105
|
n.removeAttribute("draggable");
|
4109
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
4106
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), kn.splice(kn.indexOf(this.el), 1), this.el = t = null;
|
4110
4107
|
},
|
4111
4108
|
_hideClone: function() {
|
4112
4109
|
if (!lt) {
|
@@ -4128,9 +4125,9 @@ K.prototype = /** @lends Sortable.prototype */
|
|
4128
4125
|
function t0(o) {
|
4129
4126
|
o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
|
4130
4127
|
}
|
4131
|
-
function
|
4128
|
+
function dn(o, t, n, e, r, a, l, i) {
|
4132
4129
|
var s, c = o[De], d = c.options.onMove, f;
|
4133
|
-
return window.CustomEvent && !rt && !
|
4130
|
+
return window.CustomEvent && !rt && !nn ? s = new CustomEvent("move", {
|
4134
4131
|
bubbles: !0,
|
4135
4132
|
cancelable: !0
|
4136
4133
|
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = o, s.dragged = n, s.draggedRect = e, s.related = r || t, s.relatedRect = a || ge(t), s.willInsertAfter = i, s.originalEvent = l, o.dispatchEvent(s), d && (f = d.call(c, s, l)), f;
|
@@ -4142,7 +4139,7 @@ function n0() {
|
|
4142
4139
|
Eo = !1;
|
4143
4140
|
}
|
4144
4141
|
function o0(o, t, n) {
|
4145
|
-
var e = ge(
|
4142
|
+
var e = ge(It(n.el, 0, n.options, !0)), r = Fa(n.el, n.options, J), a = 10;
|
4146
4143
|
return t ? o.clientX < r.left - a || o.clientY < e.top && o.clientX < e.right : o.clientY < r.top - a || o.clientY < e.bottom && o.clientX < e.left;
|
4147
4144
|
}
|
4148
4145
|
function r0(o, t, n) {
|
@@ -4152,11 +4149,11 @@ function r0(o, t, n) {
|
|
4152
4149
|
function a0(o, t, n, e, r, a, l, i) {
|
4153
4150
|
var s = e ? o.clientY : o.clientX, c = e ? n.height : n.width, d = e ? n.top : n.left, f = e ? n.bottom : n.right, m = !1;
|
4154
4151
|
if (!l) {
|
4155
|
-
if (i &&
|
4156
|
-
if (!
|
4152
|
+
if (i && vn < c * r) {
|
4153
|
+
if (!Zt && (Qt === 1 ? s > d + c * a / 2 : s < f - c * a / 2) && (Zt = !0), Zt)
|
4157
4154
|
m = !0;
|
4158
|
-
else if (
|
4159
|
-
return -
|
4155
|
+
else if (Qt === 1 ? s < d + vn : s > f - vn)
|
4156
|
+
return -Qt;
|
4160
4157
|
} else if (s > d + c * (1 - r) / 2 && s < f - c * (1 - r) / 2)
|
4161
4158
|
return i0(t);
|
4162
4159
|
}
|
@@ -4171,19 +4168,19 @@ function l0(o) {
|
|
4171
4168
|
return e.toString(36);
|
4172
4169
|
}
|
4173
4170
|
function s0(o) {
|
4174
|
-
|
4171
|
+
Tn.length = 0;
|
4175
4172
|
for (var t = o.getElementsByTagName("input"), n = t.length; n--; ) {
|
4176
4173
|
var e = t[n];
|
4177
|
-
e.checked &&
|
4174
|
+
e.checked && Tn.push(e);
|
4178
4175
|
}
|
4179
4176
|
}
|
4180
|
-
function
|
4177
|
+
function yn(o) {
|
4181
4178
|
return setTimeout(o, 0);
|
4182
4179
|
}
|
4183
4180
|
function ko(o) {
|
4184
4181
|
return clearTimeout(o);
|
4185
4182
|
}
|
4186
|
-
|
4183
|
+
In && ne(document, "touchmove", function(o) {
|
4187
4184
|
(K.active || xt) && o.cancelable && o.preventDefault();
|
4188
4185
|
});
|
4189
4186
|
K.utils = {
|
@@ -4200,10 +4197,10 @@ K.utils = {
|
|
4200
4197
|
toggleClass: ze,
|
4201
4198
|
clone: Ra,
|
4202
4199
|
index: Ie,
|
4203
|
-
nextTick:
|
4200
|
+
nextTick: yn,
|
4204
4201
|
cancelNextTick: ko,
|
4205
4202
|
detectDirection: Na,
|
4206
|
-
getChild:
|
4203
|
+
getChild: It,
|
4207
4204
|
expando: De
|
4208
4205
|
};
|
4209
4206
|
K.get = function(o) {
|
@@ -4215,14 +4212,14 @@ K.mount = function() {
|
|
4215
4212
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(e) {
|
4216
4213
|
if (!e.prototype || !e.prototype.constructor)
|
4217
4214
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));
|
4218
|
-
e.utils && (K.utils = Xe(Xe({}, K.utils), e.utils)),
|
4215
|
+
e.utils && (K.utils = Xe(Xe({}, K.utils), e.utils)), on.mount(e);
|
4219
4216
|
});
|
4220
4217
|
};
|
4221
4218
|
K.create = function(o, t) {
|
4222
4219
|
return new K(o, t);
|
4223
4220
|
};
|
4224
4221
|
K.version = Ls;
|
4225
|
-
var me = [],
|
4222
|
+
var me = [], Gt, To, Do = !1, Un, Xn, Dn, Yt;
|
4226
4223
|
function u0() {
|
4227
4224
|
function o() {
|
4228
4225
|
this.defaults = {
|
@@ -4245,26 +4242,26 @@ function u0() {
|
|
4245
4242
|
!this.options.dragOverBubble && !e.rootEl && this._handleAutoScroll(e);
|
4246
4243
|
},
|
4247
4244
|
drop: function() {
|
4248
|
-
this.sortable.nativeDraggable ? te(document, "dragover", this._handleAutoScroll) : (te(document, "pointermove", this._handleFallbackAutoScroll), te(document, "touchmove", this._handleFallbackAutoScroll), te(document, "mousemove", this._handleFallbackAutoScroll)), Cr(),
|
4245
|
+
this.sortable.nativeDraggable ? te(document, "dragover", this._handleAutoScroll) : (te(document, "pointermove", this._handleFallbackAutoScroll), te(document, "touchmove", this._handleFallbackAutoScroll), te(document, "mousemove", this._handleFallbackAutoScroll)), Cr(), bn(), Xs();
|
4249
4246
|
},
|
4250
4247
|
nulling: function() {
|
4251
|
-
|
4248
|
+
Dn = To = Gt = Do = Yt = Un = Xn = null, me.length = 0;
|
4252
4249
|
},
|
4253
4250
|
_handleFallbackAutoScroll: function(n) {
|
4254
4251
|
this._handleAutoScroll(n, !0);
|
4255
4252
|
},
|
4256
4253
|
_handleAutoScroll: function(n, e) {
|
4257
4254
|
var r = this, a = (n.touches ? n.touches[0] : n).clientX, l = (n.touches ? n.touches[0] : n).clientY, i = document.elementFromPoint(a, l);
|
4258
|
-
if (
|
4255
|
+
if (Dn = n, e || this.options.forceAutoScrollFallback || nn || rt || Kt) {
|
4259
4256
|
qn(n, this.options, i, e);
|
4260
4257
|
var s = st(i, !0);
|
4261
|
-
Do && (!
|
4258
|
+
Do && (!Yt || a !== Un || l !== Xn) && (Yt && Cr(), Yt = setInterval(function() {
|
4262
4259
|
var c = st(document.elementFromPoint(a, l), !0);
|
4263
|
-
c !== s && (s = c,
|
4260
|
+
c !== s && (s = c, bn()), qn(n, r.options, c, e);
|
4264
4261
|
}, 10), Un = a, Xn = l);
|
4265
4262
|
} else {
|
4266
4263
|
if (!this.options.bubbleScroll || st(i, !0) === He()) {
|
4267
|
-
|
4264
|
+
bn();
|
4268
4265
|
return;
|
4269
4266
|
}
|
4270
4267
|
qn(n, this.options, st(i, !1), !1);
|
@@ -4275,19 +4272,19 @@ function u0() {
|
|
4275
4272
|
initializeByDefault: !0
|
4276
4273
|
});
|
4277
4274
|
}
|
4278
|
-
function
|
4275
|
+
function bn() {
|
4279
4276
|
me.forEach(function(o) {
|
4280
4277
|
clearInterval(o.pid);
|
4281
4278
|
}), me = [];
|
4282
4279
|
}
|
4283
4280
|
function Cr() {
|
4284
|
-
clearInterval(
|
4281
|
+
clearInterval(Yt);
|
4285
4282
|
}
|
4286
4283
|
var qn = Ba(function(o, t, n, e) {
|
4287
4284
|
if (t.scroll) {
|
4288
4285
|
var r = (o.touches ? o.touches[0] : o).clientX, a = (o.touches ? o.touches[0] : o).clientY, l = t.scrollSensitivity, i = t.scrollSpeed, s = He(), c = !1, d;
|
4289
|
-
To !== n && (To = n,
|
4290
|
-
var f = 0, m =
|
4286
|
+
To !== n && (To = n, bn(), Gt = t.scroll, d = t.scrollFn, Gt === !0 && (Gt = st(n, !0)));
|
4287
|
+
var f = 0, m = Gt;
|
4291
4288
|
do {
|
4292
4289
|
var g = m, p = ge(g), h = p.top, y = p.bottom, _ = p.left, S = p.right, x = p.width, C = p.height, P = void 0, E = void 0, w = g.scrollWidth, A = g.scrollHeight, M = Y(g), H = g.scrollLeft, O = g.scrollTop;
|
4293
4290
|
g === s ? (P = x < w && (M.overflowX === "auto" || M.overflowX === "scroll" || M.overflowX === "visible"), E = C < A && (M.overflowY === "auto" || M.overflowY === "scroll" || M.overflowY === "visible")) : (P = x < w && (M.overflowX === "auto" || M.overflowX === "scroll"), E = C < A && (M.overflowY === "auto" || M.overflowY === "scroll"));
|
@@ -4296,9 +4293,9 @@ var qn = Ba(function(o, t, n, e) {
|
|
4296
4293
|
for (var X = 0; X <= f; X++)
|
4297
4294
|
me[X] || (me[X] = {});
|
4298
4295
|
(me[f].vx != R || me[f].vy != V || me[f].el !== g) && (me[f].el = g, me[f].vx = R, me[f].vy = V, clearInterval(me[f].pid), (R != 0 || V != 0) && (c = !0, me[f].pid = setInterval(function() {
|
4299
|
-
e && this.layer === 0 && K.active._onTouchMove(
|
4296
|
+
e && this.layer === 0 && K.active._onTouchMove(Dn);
|
4300
4297
|
var ue = me[this.layer].vy ? me[this.layer].vy * i : 0, U = me[this.layer].vx ? me[this.layer].vx * i : 0;
|
4301
|
-
typeof d == "function" && d.call(K.dragged.parentNode[De], U, ue, o,
|
4298
|
+
typeof d == "function" && d.call(K.dragged.parentNode[De], U, ue, o, Dn, me[this.layer].el) !== "continue" || Va(me[this.layer].el, U, ue);
|
4302
4299
|
}.bind({
|
4303
4300
|
layer: f
|
4304
4301
|
}), 24))), f++;
|
@@ -4328,7 +4325,7 @@ Yo.prototype = {
|
|
4328
4325
|
onSpill: function(t) {
|
4329
4326
|
var n = t.dragEl, e = t.putSortable;
|
4330
4327
|
this.sortable.captureAnimationState(), e && e.captureAnimationState();
|
4331
|
-
var r =
|
4328
|
+
var r = It(this.sortable.el, this.startIndex, this.options);
|
4332
4329
|
r ? this.sortable.el.insertBefore(n, r) : this.sortable.el.appendChild(n), this.sortable.animateAll(), e && e.animateAll();
|
4333
4330
|
},
|
4334
4331
|
drop: Ua
|
@@ -4438,11 +4435,11 @@ const g0 = {
|
|
4438
4435
|
cellClassName: "x-grid__x-actions",
|
4439
4436
|
renderDefault(o, t) {
|
4440
4437
|
const { props: n } = qe(o, t);
|
4441
|
-
return [ae(
|
4438
|
+
return [ae(en, { ...n })];
|
4442
4439
|
},
|
4443
4440
|
renderCell(o, t) {
|
4444
4441
|
const { props: n } = qe(o, t);
|
4445
|
-
return [ae(
|
4442
|
+
return [ae(en, { ...n })];
|
4446
4443
|
}
|
4447
4444
|
}, h0 = /* @__PURE__ */ G({
|
4448
4445
|
name: "DateEdit",
|
@@ -4452,13 +4449,13 @@ const g0 = {
|
|
4452
4449
|
renderOpts: {}
|
4453
4450
|
},
|
4454
4451
|
setup(o) {
|
4455
|
-
const t = o, n = L(), { renderProps: e, renderEvents: r, cellValue: a, onChange: l } =
|
4452
|
+
const t = o, n = L(), { renderProps: e, renderEvents: r, cellValue: a, onChange: l } = Nt(
|
4456
4453
|
t.renderOpts,
|
4457
4454
|
t.params
|
4458
4455
|
);
|
4459
4456
|
return Ye(() => {
|
4460
4457
|
n.value?.focus();
|
4461
|
-
}), (i, s) => (v(), k(u(
|
4458
|
+
}), (i, s) => (v(), k(u(Cn), q({
|
4462
4459
|
ref_key: "elRef",
|
4463
4460
|
ref: n,
|
4464
4461
|
size: "small",
|
@@ -4477,9 +4474,9 @@ const g0 = {
|
|
4477
4474
|
renderOpts: {}
|
4478
4475
|
},
|
4479
4476
|
setup(o) {
|
4480
|
-
const t = o, { renderProps: n, renderEvents: e, state: r, load: a, onChange: l, onKeyup: i } =
|
4477
|
+
const t = o, { renderProps: n, renderEvents: e, state: r, load: a, onChange: l, onKeyup: i } = $n(t.renderOpts, t.params);
|
4481
4478
|
return a(), (s, c) => (v(), F("div", v0, [
|
4482
|
-
I(u(
|
4479
|
+
I(u(Cn), q({
|
4483
4480
|
size: "small",
|
4484
4481
|
placeholder: "选择日期筛选",
|
4485
4482
|
"value-format": "YYYY-MM-DD",
|
@@ -4487,7 +4484,7 @@ const g0 = {
|
|
4487
4484
|
modelValue: u(r).option.value,
|
4488
4485
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => u(r).option.value = d),
|
4489
4486
|
onChange: u(l),
|
4490
|
-
onKeyup:
|
4487
|
+
onKeyup: Rt(Ve(u(i), ["stop"]), ["enter"])
|
4491
4488
|
}, u(n), Ke(u(e))), null, 16, ["modelValue", "onChange", "onKeyup"])
|
4492
4489
|
]));
|
4493
4490
|
}
|
@@ -4502,12 +4499,12 @@ const g0 = {
|
|
4502
4499
|
},
|
4503
4500
|
renderCell: Sr,
|
4504
4501
|
renderDefault: Sr,
|
4505
|
-
...
|
4502
|
+
...Ft,
|
4506
4503
|
renderFilter(o, t) {
|
4507
4504
|
return [ae(y0, { params: t, renderOpts: o })];
|
4508
4505
|
}
|
4509
4506
|
}, w0 = {
|
4510
|
-
...
|
4507
|
+
...Ot,
|
4511
4508
|
cellClassName: "x-grid__x-image",
|
4512
4509
|
renderDefault(o, t) {
|
4513
4510
|
const { props: n, cellValue: e } = qe(o, t);
|
@@ -4530,7 +4527,7 @@ const g0 = {
|
|
4530
4527
|
];
|
4531
4528
|
}
|
4532
4529
|
}, _0 = {
|
4533
|
-
...
|
4530
|
+
...Ot,
|
4534
4531
|
cellClassName: "x-grid__x-link",
|
4535
4532
|
renderDefault(o, t) {
|
4536
4533
|
const { props: n, cellValue: e } = qe(o, t);
|
@@ -4556,7 +4553,7 @@ const g0 = {
|
|
4556
4553
|
renderOpts: {}
|
4557
4554
|
},
|
4558
4555
|
setup(o) {
|
4559
|
-
const t = o, { renderProps: n, renderEvents: e, cellValue: r, onChange: a } =
|
4556
|
+
const t = o, { renderProps: n, renderEvents: e, cellValue: r, onChange: a } = Nt(
|
4560
4557
|
t.renderOpts,
|
4561
4558
|
t.params
|
4562
4559
|
);
|
@@ -4576,7 +4573,7 @@ const g0 = {
|
|
4576
4573
|
renderOpts: {}
|
4577
4574
|
},
|
4578
4575
|
setup(o) {
|
4579
|
-
const t = o, { renderProps: n, renderEvents: e, state: r, load: a, onChange: l, onKeyup: i } =
|
4576
|
+
const t = o, { renderProps: n, renderEvents: e, state: r, load: a, onChange: l, onKeyup: i } = $n(t.renderOpts, t.params);
|
4580
4577
|
return a(), (s, c) => (v(), F("div", S0, [
|
4581
4578
|
I(Uo, q({
|
4582
4579
|
size: "small",
|
@@ -4585,13 +4582,13 @@ const g0 = {
|
|
4585
4582
|
modelValue: u(r).option.value,
|
4586
4583
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => u(r).option.value = d),
|
4587
4584
|
onChange: u(l),
|
4588
|
-
onKeyup:
|
4585
|
+
onKeyup: Rt(Ve(u(i), ["stop"]), ["enter"])
|
4589
4586
|
}, u(n), Ke(u(e))), null, 16, ["modelValue", "onChange", "onKeyup"])
|
4590
4587
|
]));
|
4591
4588
|
}
|
4592
4589
|
});
|
4593
4590
|
function xr(o, t) {
|
4594
|
-
const { props: n = {} } = o, { options: e = [], multiple: r, parser: a } = n, { row: l, column: i } = t, s = l
|
4591
|
+
const { props: n = {} } = o, { options: e = [], multiple: r, parser: a } = n, { row: l, column: i } = t, s = kt(l, i.field) ?? "";
|
4595
4592
|
let c;
|
4596
4593
|
if (Array.isArray(e))
|
4597
4594
|
if (r) {
|
@@ -4602,20 +4599,20 @@ function xr(o, t) {
|
|
4602
4599
|
return [W(c || s)];
|
4603
4600
|
}
|
4604
4601
|
const E0 = {
|
4605
|
-
...
|
4602
|
+
...Ot,
|
4606
4603
|
cellClassName: "x-grid__edit",
|
4607
4604
|
autofocus: ".el-select__input",
|
4608
4605
|
renderEdit(o, t) {
|
4609
4606
|
return [ae(C0, { params: t, renderOpts: o })];
|
4610
4607
|
},
|
4611
|
-
...
|
4608
|
+
...Ft,
|
4612
4609
|
renderFilter(o, t) {
|
4613
4610
|
return [ae(x0, { params: t, renderOpts: o })];
|
4614
4611
|
},
|
4615
4612
|
renderDefault: xr,
|
4616
4613
|
renderCell: xr
|
4617
4614
|
}, k0 = {
|
4618
|
-
...
|
4615
|
+
...Ot,
|
4619
4616
|
cellClassName: "x-grid__x-tag",
|
4620
4617
|
renderDefault(o, t) {
|
4621
4618
|
const { props: n, cellValue: e } = qe(o, t);
|
@@ -4634,7 +4631,7 @@ const E0 = {
|
|
4634
4631
|
)];
|
4635
4632
|
}
|
4636
4633
|
}, T0 = {
|
4637
|
-
...
|
4634
|
+
...Ot,
|
4638
4635
|
cellClassName: "x-grid__x-text",
|
4639
4636
|
renderDefault(o, t) {
|
4640
4637
|
const { props: n, cellValue: e } = qe(o, t);
|
@@ -4652,7 +4649,7 @@ const E0 = {
|
|
4652
4649
|
renderOpts: {}
|
4653
4650
|
},
|
4654
4651
|
setup(o) {
|
4655
|
-
const t = o, n = L(), { renderProps: e, renderEvents: r, cellValue: a, onChange: l } =
|
4652
|
+
const t = o, n = L(), { renderProps: e, renderEvents: r, cellValue: a, onChange: l } = Nt(
|
4656
4653
|
t.renderOpts,
|
4657
4654
|
t.params
|
4658
4655
|
);
|
@@ -4679,7 +4676,7 @@ const E0 = {
|
|
4679
4676
|
},
|
4680
4677
|
renderCell: Er,
|
4681
4678
|
renderDefault: Er,
|
4682
|
-
...
|
4679
|
+
...Ft,
|
4683
4680
|
renderFilter(o, t) {
|
4684
4681
|
return [ae(Xo, { params: t, renderOpts: o })];
|
4685
4682
|
}
|
@@ -4691,7 +4688,7 @@ const E0 = {
|
|
4691
4688
|
renderOpts: {}
|
4692
4689
|
},
|
4693
4690
|
setup(o) {
|
4694
|
-
const t = o, { renderProps: n, renderEvents: e, cellValue: r, onChange: a } =
|
4691
|
+
const t = o, { renderProps: n, renderEvents: e, cellValue: r, onChange: a } = Nt(
|
4695
4692
|
t.renderOpts,
|
4696
4693
|
t.params
|
4697
4694
|
);
|
@@ -4711,7 +4708,7 @@ const E0 = {
|
|
4711
4708
|
renderOpts: {}
|
4712
4709
|
},
|
4713
4710
|
setup(o) {
|
4714
|
-
const t = o, { renderProps: n, renderEvents: e, state: r, load: a, onChange: l, onKeyup: i } =
|
4711
|
+
const t = o, { renderProps: n, renderEvents: e, state: r, load: a, onChange: l, onKeyup: i } = $n(t.renderOpts, t.params);
|
4715
4712
|
return a(), (s, c) => (v(), F("div", P0, [
|
4716
4713
|
I(u(Vo), q({
|
4717
4714
|
size: "small",
|
@@ -4720,7 +4717,7 @@ const E0 = {
|
|
4720
4717
|
modelValue: u(r).option.value,
|
4721
4718
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => u(r).option.value = d),
|
4722
4719
|
onInput: u(l),
|
4723
|
-
onKeyup:
|
4720
|
+
onKeyup: Rt(Ve(u(i), ["stop"]), ["enter"])
|
4724
4721
|
}, u(n), Ke(u(e))), null, 16, ["modelValue", "onInput", "onKeyup"])
|
4725
4722
|
]));
|
4726
4723
|
}
|
@@ -4740,14 +4737,14 @@ const E0 = {
|
|
4740
4737
|
}, A0 = {
|
4741
4738
|
cellClassName: "x-grid__edit",
|
4742
4739
|
...$0,
|
4743
|
-
...
|
4740
|
+
...Ft,
|
4744
4741
|
renderFilter(o, t) {
|
4745
4742
|
return [ae(I0, { params: t, renderOpts: o })];
|
4746
4743
|
}
|
4747
4744
|
}, B0 = /* @__PURE__ */ G({
|
4748
4745
|
name: "XDialogGrid",
|
4749
4746
|
__name: "DialogGrid",
|
4750
|
-
props: /* @__PURE__ */
|
4747
|
+
props: /* @__PURE__ */ _n({
|
4751
4748
|
columns: {},
|
4752
4749
|
model: {},
|
4753
4750
|
formatter: {},
|
@@ -4761,7 +4758,7 @@ const E0 = {
|
|
4761
4758
|
modelValue: { type: Boolean },
|
4762
4759
|
modelModifiers: {}
|
4763
4760
|
}),
|
4764
|
-
emits: /* @__PURE__ */
|
4761
|
+
emits: /* @__PURE__ */ _n(["submit"], ["update:modelValue"]),
|
4765
4762
|
setup(o, { expose: t, emit: n }) {
|
4766
4763
|
const e = L(), r = L(), a = o, l = n, i = Po(o, "modelValue"), s = D(() => r.value?.$vtjEl), c = Xl(["top", "extra", "buttons"]), d = D(() => a.formatter ? a.formatter(a.model) : a.model), f = () => {
|
4767
4764
|
e.value?.insertActived();
|
@@ -4777,7 +4774,7 @@ const E0 = {
|
|
4777
4774
|
}
|
4778
4775
|
}, h = () => e.value?.$vtjDynamicSlots();
|
4779
4776
|
return re(e, async (y) => {
|
4780
|
-
y && (await
|
4777
|
+
y && (await Mn(), y.doLayout());
|
4781
4778
|
}), t({
|
4782
4779
|
$vtjEl: s,
|
4783
4780
|
$vtjDynamicSlots: h,
|
@@ -4786,7 +4783,7 @@ const E0 = {
|
|
4786
4783
|
addRow: f,
|
4787
4784
|
removeRow: m,
|
4788
4785
|
validate: g
|
4789
|
-
}), (y, _) => (v(), k(u(
|
4786
|
+
}), (y, _) => (v(), k(u(Pn), {
|
4790
4787
|
ref_key: "dialogRef",
|
4791
4788
|
ref: r,
|
4792
4789
|
class: "x-dialog-grid",
|
@@ -4836,7 +4833,7 @@ const E0 = {
|
|
4836
4833
|
he(u(c), (S) => ({
|
4837
4834
|
name: S,
|
4838
4835
|
fn: b((x) => [
|
4839
|
-
N(y.$slots, S,
|
4836
|
+
N(y.$slots, S, At(Bt(x)))
|
4840
4837
|
])
|
4841
4838
|
}))
|
4842
4839
|
]), 1040, ["columns", "data", "edit-rules"])
|
@@ -4908,7 +4905,7 @@ const E0 = {
|
|
4908
4905
|
renderOpts: {}
|
4909
4906
|
},
|
4910
4907
|
setup(o) {
|
4911
|
-
const t = o, n = L(), { renderProps: e, renderEvents: r, cellValue: a, onChange: l } =
|
4908
|
+
const t = o, n = L(), { renderProps: e, renderEvents: r, cellValue: a, onChange: l } = Nt(
|
4912
4909
|
t.renderOpts,
|
4913
4910
|
t.params
|
4914
4911
|
);
|
@@ -4935,7 +4932,7 @@ const E0 = {
|
|
4935
4932
|
},
|
4936
4933
|
renderCell: kr,
|
4937
4934
|
renderDefault: kr,
|
4938
|
-
...
|
4935
|
+
...Ft,
|
4939
4936
|
renderFilter(o, t) {
|
4940
4937
|
return [ae(Xo, { params: t, renderOpts: o })];
|
4941
4938
|
}
|
@@ -4979,18 +4976,18 @@ function j0(o = {}) {
|
|
4979
4976
|
Tl,
|
4980
4977
|
Dl
|
4981
4978
|
], e = Ge()?.appContext.app, { vxeConfig: r, vxePlugin: a } = jo(), l = Ca();
|
4982
|
-
return e && !e.__installVxe && (
|
4979
|
+
return e && !e.__installVxe && (Lt.use(N0), a && Lt.use(a), Lt.setConfig({
|
4983
4980
|
...r,
|
4984
4981
|
...o
|
4985
4982
|
}), t.forEach((i) => e.use(i)), e.__installVxe = !0), re(
|
4986
4983
|
l,
|
4987
4984
|
(i) => {
|
4988
|
-
|
4985
|
+
Lt.setTheme(i ? "dark" : "light");
|
4989
4986
|
},
|
4990
4987
|
{ immediate: !0 }
|
4991
4988
|
), {
|
4992
4989
|
VxeGrid: ir,
|
4993
|
-
VXETable:
|
4990
|
+
VXETable: Lt
|
4994
4991
|
};
|
4995
4992
|
}
|
4996
4993
|
const L0 = "toolbar__buttons";
|
@@ -5114,7 +5111,7 @@ function W0(o, t) {
|
|
5114
5111
|
};
|
5115
5112
|
}
|
5116
5113
|
function J0(o, t, n) {
|
5117
|
-
const e =
|
5114
|
+
const e = $t(), r = {
|
5118
5115
|
layouts: ["Toolbar", "Form", "Top", "Table", "Bottom", "Pager"],
|
5119
5116
|
loading: !1,
|
5120
5117
|
size: "small",
|
@@ -5236,7 +5233,7 @@ function Ga(o) {
|
|
5236
5233
|
return l;
|
5237
5234
|
}
|
5238
5235
|
function eu(o, t) {
|
5239
|
-
const n =
|
5236
|
+
const n = wn([]), e = jo();
|
5240
5237
|
let r = null;
|
5241
5238
|
const {
|
5242
5239
|
customable: a,
|
@@ -5293,14 +5290,14 @@ function tu(o = []) {
|
|
5293
5290
|
const t = zo();
|
5294
5291
|
return Object.keys(t).filter((n) => !o.includes(n));
|
5295
5292
|
}
|
5296
|
-
function
|
5293
|
+
function Nt(o, t) {
|
5297
5294
|
const { row: n, column: e } = t, { props: r = {}, events: a = {} } = o, { parser: l, stringify: i } = r, s = D({
|
5298
5295
|
get() {
|
5299
|
-
const f = n
|
5296
|
+
const f = kt(n, e.field);
|
5300
5297
|
return l ? l(f) : f;
|
5301
5298
|
},
|
5302
5299
|
set(f) {
|
5303
|
-
n
|
5300
|
+
pn(n, e.field, i ? i(f) : f);
|
5304
5301
|
}
|
5305
5302
|
});
|
5306
5303
|
return {
|
@@ -5314,8 +5311,8 @@ function Ot(o, t) {
|
|
5314
5311
|
}
|
5315
5312
|
};
|
5316
5313
|
}
|
5317
|
-
function
|
5318
|
-
const { props: n = {}, events: e = {} } = o, r =
|
5314
|
+
function $n(o, t) {
|
5315
|
+
const { props: n = {}, events: e = {} } = o, r = Vt({
|
5319
5316
|
option: null
|
5320
5317
|
});
|
5321
5318
|
return {
|
@@ -5344,7 +5341,7 @@ function In(o, t) {
|
|
5344
5341
|
};
|
5345
5342
|
}
|
5346
5343
|
function nu(o) {
|
5347
|
-
const t =
|
5344
|
+
const t = zt(o, "page"), n = zt(o, "pageSize"), e = Vt({
|
5348
5345
|
page: o.page,
|
5349
5346
|
pageSize: o.pageSize,
|
5350
5347
|
total: 0,
|
@@ -5569,7 +5566,7 @@ const ru = {
|
|
5569
5566
|
search: C,
|
5570
5567
|
doLayout: P
|
5571
5568
|
} = ou(a, r, l), E = Ge();
|
5572
|
-
|
5569
|
+
Mt(Ya, E);
|
5573
5570
|
const w = async (T = {}, j = -1) => {
|
5574
5571
|
a.editable || console.warn("XGrid在编辑模式需要开启editable");
|
5575
5572
|
const Q = r.value;
|
@@ -5692,7 +5689,7 @@ const ru = {
|
|
5692
5689
|
he(u(i), (Q) => ({
|
5693
5690
|
name: Q,
|
5694
5691
|
fn: b((le) => [
|
5695
|
-
N(T.$slots, Q,
|
5692
|
+
N(T.$slots, Q, At(Bt(le)))
|
5696
5693
|
])
|
5697
5694
|
}))
|
5698
5695
|
]), 1040, ["columns", "onCustom", "onResizableChange", "onFilterChange", "onSortChange"]));
|
@@ -5714,7 +5711,7 @@ const ru = {
|
|
5714
5711
|
}
|
5715
5712
|
};
|
5716
5713
|
function iu(o, t) {
|
5717
|
-
const n = L(!!o.collapsible), e =
|
5714
|
+
const n = L(!!o.collapsible), e = $t(), r = pt(Ya, null), a = {
|
5718
5715
|
large: 45,
|
5719
5716
|
default: 37,
|
5720
5717
|
small: 29
|
@@ -5867,7 +5864,7 @@ const lu = {
|
|
5867
5864
|
return t({
|
5868
5865
|
pick: a,
|
5869
5866
|
gridRef: e
|
5870
|
-
}), (d, f) => (v(), k(u(
|
5867
|
+
}), (d, f) => (v(), k(u(Pn), {
|
5871
5868
|
title: "选择数据",
|
5872
5869
|
width: "70%",
|
5873
5870
|
height: "70%",
|
@@ -6088,7 +6085,7 @@ function du(o, t) {
|
|
6088
6085
|
const g = l ? l(m) : m;
|
6089
6086
|
if (g) {
|
6090
6087
|
const p = f(g);
|
6091
|
-
d(p.length ? p : g), o.multiple || (await
|
6088
|
+
d(p.length ? p : g), o.multiple || (await Mn(0), c.value = []);
|
6092
6089
|
} else
|
6093
6090
|
d([]);
|
6094
6091
|
},
|
@@ -6096,7 +6093,7 @@ function du(o, t) {
|
|
6096
6093
|
immediate: !0
|
6097
6094
|
}
|
6098
6095
|
), re(s, (m, g) => {
|
6099
|
-
if (!
|
6096
|
+
if (!zn(m, g)) {
|
6100
6097
|
const p = f(m), h = e ? p : m, y = i ? i(h) : h;
|
6101
6098
|
n && Array.isArray(h) && (c.value = c.value.filter((_) => h.includes(_.value))), t("update:modelValue", y), t("change", y, o.data);
|
6102
6099
|
}
|
@@ -6147,7 +6144,7 @@ const Wa = /* @__PURE__ */ G({
|
|
6147
6144
|
props: cu,
|
6148
6145
|
emits: ["update:modelValue", "change", "picked"],
|
6149
6146
|
setup(o, { expose: t, emit: n }) {
|
6150
|
-
const e = o, r = n, a =
|
6147
|
+
const e = o, r = n, a = $t(), l = L(!1), i = L(), s = L(), { options: c, setOptions: d, current: f } = du(e, r), { formModel: m } = pu(e), g = fu(e), p = D(() => l.value ? !0 : !!e.disabled), h = (P) => e.loader ? (P.form = m.value, e.loader(P)) : {
|
6151
6148
|
list: [],
|
6152
6149
|
total: 0
|
6153
6150
|
}, y = () => {
|
@@ -6206,7 +6203,7 @@ const Wa = /* @__PURE__ */ G({
|
|
6206
6203
|
"collapse-tags-tooltip": "",
|
6207
6204
|
"reserve-keyword": !1,
|
6208
6205
|
"suffix-icon": u(ll),
|
6209
|
-
onKeydownCapture:
|
6206
|
+
onKeydownCapture: Rt(Ve(S, ["stop", "prevent"]), ["enter"]),
|
6210
6207
|
modelValue: u(f),
|
6211
6208
|
"onUpdate:modelValue": E[0] || (E[0] = (w) => je(f) ? f.value = w : null)
|
6212
6209
|
}, u(a)), {
|
@@ -6285,7 +6282,7 @@ const Wa = /* @__PURE__ */ G({
|
|
6285
6282
|
props: {}
|
6286
6283
|
},
|
6287
6284
|
date: {
|
6288
|
-
component:
|
6285
|
+
component: Cn,
|
6289
6286
|
props: {}
|
6290
6287
|
},
|
6291
6288
|
time: {
|
@@ -6293,7 +6290,7 @@ const Wa = /* @__PURE__ */ G({
|
|
6293
6290
|
props: {}
|
6294
6291
|
},
|
6295
6292
|
datetime: {
|
6296
|
-
component:
|
6293
|
+
component: Cn,
|
6297
6294
|
props: {
|
6298
6295
|
type: "datetime"
|
6299
6296
|
}
|
@@ -6458,7 +6455,7 @@ async function hu(o, t) {
|
|
6458
6455
|
return n ? typeof n == "function" ? await n(t) || [] : n : [];
|
6459
6456
|
}
|
6460
6457
|
function vu(o, t, n, e, r) {
|
6461
|
-
const a = L([]), l = D(() => !e || !r ? {} : Fo(o.cascader).reduce((d, f) => (d[f] =
|
6458
|
+
const a = L([]), l = D(() => !e || !r ? {} : Fo(o.cascader).reduce((d, f) => (d[f] = kt(r, f), d), {}));
|
6462
6459
|
re(
|
6463
6460
|
[l, () => o.options],
|
6464
6461
|
async ([c, d]) => {
|
@@ -6508,7 +6505,7 @@ const yu = {
|
|
6508
6505
|
props: gu,
|
6509
6506
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
6510
6507
|
setup(o, { expose: t, emit: n }) {
|
6511
|
-
const e = o, r = n, a = pt(Qa, null), l = pt(Ti, null), i = pt(Za, null), s = D(() => !a?.proxy || !i ? e.visible : typeof e.visible == "function" ? e.visible(i) : Ro(e.visible) ? Object.entries(e.visible).every(([A, M]) =>
|
6508
|
+
const e = o, r = n, a = pt(Qa, null), l = pt(Ti, null), i = pt(Za, null), s = D(() => !a?.proxy || !i ? e.visible : typeof e.visible == "function" ? e.visible(i) : Ro(e.visible) ? Object.entries(e.visible).every(([A, M]) => kt(i, A) === M) : e.visible), c = () => a?.proxy && i && e.name ? kt(i, e.name) ?? e.modelValue ?? e.defaultValue : e.modelValue ?? e.defaultValue, d = L(c()), { editor: f } = vu(
|
6512
6509
|
e,
|
6513
6510
|
r,
|
6514
6511
|
s,
|
@@ -6540,9 +6537,9 @@ const yu = {
|
|
6540
6537
|
}
|
6541
6538
|
}));
|
6542
6539
|
return re(d, (w, A) => {
|
6543
|
-
s.value && !
|
6540
|
+
s.value && !zn(w, A) && (r("update:modelValue", w), a?.proxy && i && e.name && pn(i, e.name, w));
|
6544
6541
|
}), re(
|
6545
|
-
() => !a?.proxy || !e.name || !i ? e.modelValue :
|
6542
|
+
() => !a?.proxy || !e.name || !i ? e.modelValue : kt(i, e.name) ?? e.modelValue,
|
6546
6543
|
(w) => {
|
6547
6544
|
s.value && (d.value = w);
|
6548
6545
|
},
|
@@ -6552,7 +6549,7 @@ const yu = {
|
|
6552
6549
|
), re(
|
6553
6550
|
s,
|
6554
6551
|
(w) => {
|
6555
|
-
a?.proxy && i && e.name ? w ? (d.value = c(),
|
6552
|
+
a?.proxy && i && e.name ? w ? (d.value = c(), pn(i, e.name, d.value)) : (d.value = void 0, pn(i, e.name, void 0)) : d.value = e.modelValue ?? e.defaultValue;
|
6556
6553
|
},
|
6557
6554
|
{
|
6558
6555
|
immediate: !0
|
@@ -6726,12 +6723,12 @@ const yu = {
|
|
6726
6723
|
props: wu,
|
6727
6724
|
emits: ["change", "submit", "reset"],
|
6728
6725
|
setup(o, { expose: t, emit: n }) {
|
6729
|
-
const e = o, r = n, a = Ge(), l = L(), i =
|
6726
|
+
const e = o, r = n, a = Ge(), l = L(), i = Vt(e.model || {}), s = L(!1), c = D(() => ({
|
6730
6727
|
"is-sticky": !!e.sticky
|
6731
6728
|
})), d = D(() => ({
|
6732
6729
|
[`is-algin-${e.footerAlign}`]: !0
|
6733
6730
|
}));
|
6734
|
-
|
6731
|
+
Mt(Qa, a), Mt(Za, i), re(
|
6735
6732
|
() => e.model,
|
6736
6733
|
(y) => {
|
6737
6734
|
Object.assign(i, y);
|
@@ -6762,7 +6759,7 @@ const yu = {
|
|
6762
6759
|
class: ["x-form", c.value],
|
6763
6760
|
inline: e.inline,
|
6764
6761
|
model: i,
|
6765
|
-
onKeyup:
|
6762
|
+
onKeyup: Rt(p, ["enter"]),
|
6766
6763
|
onSubmit: _[1] || (_[1] = Ve(() => {
|
6767
6764
|
}, ["stop", "prevent"]))
|
6768
6765
|
}, y.$attrs), {
|
@@ -6864,7 +6861,7 @@ const yu = {
|
|
6864
6861
|
$vtjEl: i,
|
6865
6862
|
formRef: a,
|
6866
6863
|
dialogRef: l
|
6867
|
-
}), (g, p) => (v(), k(u(
|
6864
|
+
}), (g, p) => (v(), k(u(Pn), q({
|
6868
6865
|
ref_key: "dialogRef",
|
6869
6866
|
ref: l,
|
6870
6867
|
class: "x-dialog-form",
|
@@ -6978,7 +6975,7 @@ const yu = {
|
|
6978
6975
|
}, { ref_for: !0 }, i(p)), {
|
6979
6976
|
label: b(() => [
|
6980
6977
|
N(m.$slots, "label", q({ ref_for: !0 }, p), () => [
|
6981
|
-
p.icon ? (v(), k(Ee(u(
|
6978
|
+
p.icon ? (v(), k(Ee(u(Pt)(p.icon)), {
|
6982
6979
|
key: 0,
|
6983
6980
|
class: "x-tabs__icon"
|
6984
6981
|
})) : $("", !0),
|
@@ -7138,7 +7135,7 @@ const yu = {
|
|
7138
7135
|
onClick: n.onTitleClick ? s : void 0
|
7139
7136
|
}, {
|
7140
7137
|
default: b(() => [
|
7141
|
-
n.icon ? (v(), k(Ee(u(
|
7138
|
+
n.icon ? (v(), k(Ee(u(Pt)(n.icon)), {
|
7142
7139
|
key: 0,
|
7143
7140
|
class: "x-data-item__icon"
|
7144
7141
|
})) : $("", !0),
|
@@ -7160,7 +7157,7 @@ const yu = {
|
|
7160
7157
|
])) : $("", !0),
|
7161
7158
|
n.actions || n.actionBarProps || f.$slots.actions ? (v(), F("div", zu, [
|
7162
7159
|
N(f.$slots, "actions", {}, () => [
|
7163
|
-
I(u(
|
7160
|
+
I(u(en), q(l.value, {
|
7164
7161
|
onClick: c,
|
7165
7162
|
onCommand: d
|
7166
7163
|
}), null, 16)
|
@@ -7232,7 +7229,7 @@ const yu = {
|
|
7232
7229
|
props: Mu,
|
7233
7230
|
emits: ["load"],
|
7234
7231
|
setup(o, { expose: t, emit: n }) {
|
7235
|
-
const e = o, r = n, a =
|
7232
|
+
const e = o, r = n, a = Vt({
|
7236
7233
|
page: e.page,
|
7237
7234
|
pageSize: e.pageSize
|
7238
7235
|
});
|
@@ -7469,18 +7466,17 @@ const yu = {
|
|
7469
7466
|
data: c,
|
7470
7467
|
change: m,
|
7471
7468
|
$vtjDynamicSlots: l
|
7472
|
-
}), (p, h) => (v(), k(u(
|
7469
|
+
}), (p, h) => (v(), k(u(mn), {
|
7473
7470
|
class: "x-test",
|
7474
7471
|
header: "VTJ 低代码测试组件",
|
7475
7472
|
border: ""
|
7476
7473
|
}, {
|
7477
7474
|
default: b(() => [
|
7478
7475
|
I(u(Be), null, {
|
7479
|
-
default: b(() => h[2] || (h[2] = [
|
7476
|
+
default: b(() => [...h[2] || (h[2] = [
|
7480
7477
|
W("内部数据", -1)
|
7481
|
-
])),
|
7482
|
-
_: 1
|
7483
|
-
__: [2]
|
7478
|
+
])]),
|
7479
|
+
_: 1
|
7484
7480
|
}),
|
7485
7481
|
I(u(oe), null, {
|
7486
7482
|
default: b(() => [
|
@@ -7489,18 +7485,17 @@ const yu = {
|
|
7489
7485
|
_: 1
|
7490
7486
|
}),
|
7491
7487
|
I(u(Be), null, {
|
7492
|
-
default: b(() => h[3] || (h[3] = [
|
7488
|
+
default: b(() => [...h[3] || (h[3] = [
|
7493
7489
|
W("属性", -1)
|
7494
|
-
])),
|
7495
|
-
_: 1
|
7496
|
-
__: [3]
|
7490
|
+
])]),
|
7491
|
+
_: 1
|
7497
7492
|
}),
|
7498
7493
|
I(u(or), {
|
7499
7494
|
column: 3,
|
7500
7495
|
border: ""
|
7501
7496
|
}, {
|
7502
7497
|
default: b(() => [
|
7503
|
-
(v(!0), F(de, null, he(a.value, ([y, _]) => (v(), k(u(
|
7498
|
+
(v(!0), F(de, null, he(a.value, ([y, _]) => (v(), k(u(Vn), { label: y }, {
|
7504
7499
|
default: b(() => [
|
7505
7500
|
Z("pre", null, ee(JSON.stringify(_, null, 2)), 1)
|
7506
7501
|
]),
|
@@ -7510,11 +7505,10 @@ const yu = {
|
|
7510
7505
|
_: 1
|
7511
7506
|
}),
|
7512
7507
|
I(u(Be), null, {
|
7513
|
-
default: b(() => h[4] || (h[4] = [
|
7508
|
+
default: b(() => [...h[4] || (h[4] = [
|
7514
7509
|
W("插槽", -1)
|
7515
|
-
])),
|
7516
|
-
_: 1
|
7517
|
-
__: [4]
|
7510
|
+
])]),
|
7511
|
+
_: 1
|
7518
7512
|
}),
|
7519
7513
|
I(u(oe), {
|
7520
7514
|
justify: "space-around",
|
@@ -7522,7 +7516,7 @@ const yu = {
|
|
7522
7516
|
gap: ""
|
7523
7517
|
}, {
|
7524
7518
|
default: b(() => [
|
7525
|
-
I(u(
|
7519
|
+
I(u(mn), {
|
7526
7520
|
header: "default",
|
7527
7521
|
grow: "",
|
7528
7522
|
card: ""
|
@@ -7539,7 +7533,7 @@ const yu = {
|
|
7539
7533
|
]),
|
7540
7534
|
_: 3
|
7541
7535
|
}),
|
7542
|
-
I(u(
|
7536
|
+
I(u(mn), {
|
7543
7537
|
header: "extra",
|
7544
7538
|
grow: "",
|
7545
7539
|
card: ""
|
@@ -7560,11 +7554,10 @@ const yu = {
|
|
7560
7554
|
_: 3
|
7561
7555
|
}),
|
7562
7556
|
I(u(Be), null, {
|
7563
|
-
default: b(() => h[5] || (h[5] = [
|
7557
|
+
default: b(() => [...h[5] || (h[5] = [
|
7564
7558
|
W("动态插槽", -1)
|
7565
|
-
])),
|
7566
|
-
_: 1
|
7567
|
-
__: [5]
|
7559
|
+
])]),
|
7560
|
+
_: 1
|
7568
7561
|
}),
|
7569
7562
|
I(u(oe), null, {
|
7570
7563
|
default: b(() => [
|
@@ -7573,11 +7566,10 @@ const yu = {
|
|
7573
7566
|
_: 3
|
7574
7567
|
}),
|
7575
7568
|
I(u(Be), null, {
|
7576
|
-
default: b(() => h[6] || (h[6] = [
|
7569
|
+
default: b(() => [...h[6] || (h[6] = [
|
7577
7570
|
W("双向绑定", -1)
|
7578
|
-
])),
|
7579
|
-
_: 1
|
7580
|
-
__: [6]
|
7571
|
+
])]),
|
7572
|
+
_: 1
|
7581
7573
|
}),
|
7582
7574
|
I(u(oe), null, {
|
7583
7575
|
default: b(() => [
|
@@ -7586,7 +7578,7 @@ const yu = {
|
|
7586
7578
|
border: ""
|
7587
7579
|
}, {
|
7588
7580
|
default: b(() => [
|
7589
|
-
I(u(
|
7581
|
+
I(u(Vn), { label: "modelValue" }, {
|
7590
7582
|
default: b(() => [
|
7591
7583
|
I(u(Re), {
|
7592
7584
|
modelValue: i.value,
|
@@ -7595,7 +7587,7 @@ const yu = {
|
|
7595
7587
|
]),
|
7596
7588
|
_: 1
|
7597
7589
|
}),
|
7598
|
-
I(u(
|
7590
|
+
I(u(Vn), { label: "syncProp" }, {
|
7599
7591
|
default: b(() => [
|
7600
7592
|
I(u(Re), {
|
7601
7593
|
modelValue: s.value,
|
@@ -7611,34 +7603,30 @@ const yu = {
|
|
7611
7603
|
_: 1
|
7612
7604
|
}),
|
7613
7605
|
I(u(Be), null, {
|
7614
|
-
default: b(() => h[7] || (h[7] = [
|
7606
|
+
default: b(() => [...h[7] || (h[7] = [
|
7615
7607
|
W("事件和方法", -1)
|
7616
|
-
])),
|
7617
|
-
_: 1
|
7618
|
-
__: [7]
|
7608
|
+
])]),
|
7609
|
+
_: 1
|
7619
7610
|
}),
|
7620
7611
|
I(u(oe), null, {
|
7621
7612
|
default: b(() => [
|
7622
7613
|
I(u(Le), { onClick: d }, {
|
7623
|
-
default: b(() => h[8] || (h[8] = [
|
7614
|
+
default: b(() => [...h[8] || (h[8] = [
|
7624
7615
|
W("click", -1)
|
7625
|
-
])),
|
7626
|
-
_: 1
|
7627
|
-
__: [8]
|
7616
|
+
])]),
|
7617
|
+
_: 1
|
7628
7618
|
}),
|
7629
7619
|
I(u(Le), { onClick: f }, {
|
7630
|
-
default: b(() => h[9] || (h[9] = [
|
7620
|
+
default: b(() => [...h[9] || (h[9] = [
|
7631
7621
|
W("submit", -1)
|
7632
|
-
])),
|
7633
|
-
_: 1
|
7634
|
-
__: [9]
|
7622
|
+
])]),
|
7623
|
+
_: 1
|
7635
7624
|
}),
|
7636
7625
|
I(u(Le), { onClick: g }, {
|
7637
|
-
default: b(() => h[10] || (h[10] = [
|
7626
|
+
default: b(() => [...h[10] || (h[10] = [
|
7638
7627
|
W("change", -1)
|
7639
|
-
])),
|
7640
|
-
_: 1
|
7641
|
-
__: [10]
|
7628
|
+
])]),
|
7629
|
+
_: 1
|
7642
7630
|
})
|
7643
7631
|
]),
|
7644
7632
|
_: 1
|
@@ -7762,7 +7750,7 @@ const yu = {
|
|
7762
7750
|
}), Yu = ["src"], h2 = /* @__PURE__ */ G({
|
7763
7751
|
name: "XCaptcha",
|
7764
7752
|
__name: "Captcha",
|
7765
|
-
props: /* @__PURE__ */
|
7753
|
+
props: /* @__PURE__ */ _n({
|
7766
7754
|
src: {},
|
7767
7755
|
maxlength: { default: 4 },
|
7768
7756
|
placeholder: { default: "请输入图形验证码" },
|
@@ -8106,9 +8094,9 @@ function tc() {
|
|
8106
8094
|
};
|
8107
8095
|
})(eo)), eo;
|
8108
8096
|
}
|
8109
|
-
var
|
8097
|
+
var fn = {}, Br;
|
8110
8098
|
function ti() {
|
8111
|
-
if (Br) return
|
8099
|
+
if (Br) return fn;
|
8112
8100
|
Br = 1;
|
8113
8101
|
const o = Jo(), t = [
|
8114
8102
|
// L M Q H
|
@@ -8435,7 +8423,7 @@ function ti() {
|
|
8435
8423
|
2040,
|
8436
8424
|
2430
|
8437
8425
|
];
|
8438
|
-
return
|
8426
|
+
return fn.getBlocksCount = function(r, a) {
|
8439
8427
|
switch (a) {
|
8440
8428
|
case o.L:
|
8441
8429
|
return t[(r - 1) * 4 + 0];
|
@@ -8448,7 +8436,7 @@ function ti() {
|
|
8448
8436
|
default:
|
8449
8437
|
return;
|
8450
8438
|
}
|
8451
|
-
},
|
8439
|
+
}, fn.getTotalCodewordsCount = function(r, a) {
|
8452
8440
|
switch (a) {
|
8453
8441
|
case o.L:
|
8454
8442
|
return n[(r - 1) * 4 + 0];
|
@@ -8461,11 +8449,11 @@ function ti() {
|
|
8461
8449
|
default:
|
8462
8450
|
return;
|
8463
8451
|
}
|
8464
|
-
},
|
8452
|
+
}, fn;
|
8465
8453
|
}
|
8466
|
-
var to = {},
|
8454
|
+
var to = {}, Ht = {}, Vr;
|
8467
8455
|
function nc() {
|
8468
|
-
if (Vr) return
|
8456
|
+
if (Vr) return Ht;
|
8469
8457
|
Vr = 1;
|
8470
8458
|
const o = new Uint8Array(512), t = new Uint8Array(256);
|
8471
8459
|
return (function() {
|
@@ -8474,14 +8462,14 @@ function nc() {
|
|
8474
8462
|
o[r] = e, t[e] = r, e <<= 1, e & 256 && (e ^= 285);
|
8475
8463
|
for (let r = 255; r < 512; r++)
|
8476
8464
|
o[r] = o[r - 255];
|
8477
|
-
})(),
|
8465
|
+
})(), Ht.log = function(e) {
|
8478
8466
|
if (e < 1) throw new Error("log(" + e + ")");
|
8479
8467
|
return t[e];
|
8480
|
-
},
|
8468
|
+
}, Ht.exp = function(e) {
|
8481
8469
|
return o[e];
|
8482
|
-
},
|
8470
|
+
}, Ht.mul = function(e, r) {
|
8483
8471
|
return e === 0 || r === 0 ? 0 : o[t[e] + t[r]];
|
8484
|
-
},
|
8472
|
+
}, Ht;
|
8485
8473
|
}
|
8486
8474
|
var Rr;
|
8487
8475
|
function oc() {
|
@@ -9121,15 +9109,15 @@ function pc() {
|
|
9121
9109
|
const M = o.getSymbolTotalCodewords(w), H = i.getTotalCodewordsCount(w, A), O = M - H, R = i.getBlocksCount(w, A), V = M % R, X = R - V, ue = Math.floor(M / R), U = Math.floor(O / R), z = U + 1, T = ue - U, j = new s(T);
|
9122
9110
|
let Q = 0;
|
9123
9111
|
const le = new Array(R), ke = new Array(R);
|
9124
|
-
let
|
9125
|
-
const
|
9112
|
+
let jt = 0;
|
9113
|
+
const An = new Uint8Array(E.buffer);
|
9126
9114
|
for (let vt = 0; vt < R; vt++) {
|
9127
|
-
const
|
9128
|
-
le[vt] =
|
9115
|
+
const Bn = vt < X ? U : z;
|
9116
|
+
le[vt] = An.slice(Q, Q + Bn), ke[vt] = j.encode(le[vt]), Q += Bn, jt = Math.max(jt, Bn);
|
9129
9117
|
}
|
9130
9118
|
const ie = new Uint8Array(M);
|
9131
9119
|
let ve = 0, Ce, We;
|
9132
|
-
for (Ce = 0; Ce <
|
9120
|
+
for (Ce = 0; Ce < jt; Ce++)
|
9133
9121
|
for (We = 0; We < R; We++)
|
9134
9122
|
Ce < le[We].length && (ie[ve++] = le[We][Ce]);
|
9135
9123
|
for (Ce = 0; Ce < T; Ce++)
|
@@ -9405,7 +9393,7 @@ const yc = /* @__PURE__ */ Ku(vc), bc = ["src"], wc = {
|
|
9405
9393
|
}), Sc = { key: 0 }, y2 = /* @__PURE__ */ G({
|
9406
9394
|
name: "XVerify",
|
9407
9395
|
__name: "Verify",
|
9408
|
-
props: /* @__PURE__ */
|
9396
|
+
props: /* @__PURE__ */ _n({
|
9409
9397
|
api: {},
|
9410
9398
|
seconds: { default: 60 },
|
9411
9399
|
maxlength: { default: 6 },
|
@@ -9446,11 +9434,10 @@ const yc = /* @__PURE__ */ Ku(vc), bc = ["src"], wc = {
|
|
9446
9434
|
underline: !1,
|
9447
9435
|
onClick: Ve(i, ["stop"])
|
9448
9436
|
}, {
|
9449
|
-
default: b(() => d[3] || (d[3] = [
|
9437
|
+
default: b(() => [...d[3] || (d[3] = [
|
9450
9438
|
W(" 获取验证码 ", -1)
|
9451
|
-
])),
|
9452
|
-
_: 1
|
9453
|
-
__: [3]
|
9439
|
+
])]),
|
9440
|
+
_: 1
|
9454
9441
|
}))
|
9455
9442
|
]),
|
9456
9443
|
_: 1
|
@@ -9599,7 +9586,7 @@ function Qo(o) {
|
|
9599
9586
|
function vo(o) {
|
9600
9587
|
return Qo(o) === "img";
|
9601
9588
|
}
|
9602
|
-
function
|
9589
|
+
function Ut(o) {
|
9603
9590
|
const { url: t, type: n } = o || {};
|
9604
9591
|
return {
|
9605
9592
|
url: t,
|
@@ -9705,7 +9692,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9705
9692
|
}
|
9706
9693
|
}, w = (z) => {
|
9707
9694
|
const T = f.value.findIndex((j) => j.url === z.url);
|
9708
|
-
T > -1 ? r.multiple ? f.value.splice(T, 1) : f.value = [] : r.multiple ? f.value.push(
|
9695
|
+
T > -1 ? r.multiple ? f.value.splice(T, 1) : f.value = [] : r.multiple ? f.value.push(Ut(z)) : f.value = [Ut(z)], a("select", f.value), a(
|
9709
9696
|
"update:selectValue",
|
9710
9697
|
r.multiple ? f.value : f.value[0]
|
9711
9698
|
);
|
@@ -9713,17 +9700,17 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9713
9700
|
const T = f.value.findIndex((j) => j.url === z.url);
|
9714
9701
|
T > -1 && f.value.splice(T, 1);
|
9715
9702
|
}, M = (z) => !!f.value.find((T) => T.url === z.url), H = (z) => {
|
9716
|
-
r.clickable && a("click",
|
9703
|
+
r.clickable && a("click", Ut(z)), r.selectable && w(z);
|
9717
9704
|
}, O = async (z, T) => {
|
9718
9705
|
if (T.every((Q) => Q.status === "success") && T.length === g.value.length) {
|
9719
|
-
const Q = g.value.map((le) =>
|
9706
|
+
const Q = g.value.map((le) => Ut(le));
|
9720
9707
|
a("change", Q), a("update:modelValue", await x(Q)), z?.response && (s.value = Symbol());
|
9721
9708
|
}
|
9722
9709
|
}, R = async (z) => {
|
9723
9710
|
if (!await mt.confirm("确定删除文件?", "提示", {
|
9724
9711
|
type: "warning"
|
9725
9712
|
}).catch(() => !1)) return;
|
9726
|
-
const j = g.value.filter((Q) => Q.uid !== z.uid || Q.url !== z.url).map((Q) =>
|
9713
|
+
const j = g.value.filter((Q) => Q.uid !== z.uid || Q.url !== z.url).map((Q) => Ut(Q));
|
9727
9714
|
g.value = j, a("remove", z), a("change", j), a("update:modelValue", await x(j)), A(z), z?.raw || (s.value = Symbol());
|
9728
9715
|
}, V = (z) => {
|
9729
9716
|
r.downloader ? r.downloader(z) : Oi(z.url, z.name).catch(() => {
|
@@ -9782,7 +9769,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9782
9769
|
onClick: Ve((Q) => X(j), ["stop"]),
|
9783
9770
|
class: "el-upload-list__item-preview"
|
9784
9771
|
}, [
|
9785
|
-
I(u(
|
9772
|
+
I(u(Xt), null, {
|
9786
9773
|
default: b(() => [
|
9787
9774
|
I(u(dl))
|
9788
9775
|
]),
|
@@ -9794,7 +9781,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9794
9781
|
onClick: Ve((Q) => V(j), ["stop"]),
|
9795
9782
|
class: "el-upload-list__item-delete"
|
9796
9783
|
}, [
|
9797
|
-
I(u(
|
9784
|
+
I(u(Xt), null, {
|
9798
9785
|
default: b(() => [
|
9799
9786
|
I(u(fl))
|
9800
9787
|
]),
|
@@ -9806,7 +9793,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9806
9793
|
onClick: Ve((Q) => R(j), ["stop"]),
|
9807
9794
|
class: "el-upload-list__item-delete"
|
9808
9795
|
}, [
|
9809
|
-
I(u(
|
9796
|
+
I(u(Xt), null, {
|
9810
9797
|
default: b(() => [
|
9811
9798
|
I(u(pl))
|
9812
9799
|
]),
|
@@ -9824,7 +9811,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9824
9811
|
default: b(() => [
|
9825
9812
|
Z("div", Rc, [
|
9826
9813
|
N(z.$slots, "upload", {}, () => [
|
9827
|
-
I(u(
|
9814
|
+
I(u(Xt), null, {
|
9828
9815
|
default: b(() => [
|
9829
9816
|
I(u(ba))
|
9830
9817
|
]),
|
@@ -9916,7 +9903,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9916
9903
|
"before-upload": a
|
9917
9904
|
}, {
|
9918
9905
|
default: b(() => [
|
9919
|
-
I(u(Le),
|
9906
|
+
I(u(Le), At(Bt(l.$attrs)), {
|
9920
9907
|
default: b(() => [
|
9921
9908
|
N(l.$slots, "default", {}, () => [
|
9922
9909
|
i[0] || (i[0] = W("导入", -1))
|
@@ -9940,12 +9927,12 @@ export {
|
|
9940
9927
|
ys as TAB_ITEM_WIDTH,
|
9941
9928
|
n2 as VTJ_UI_VERSION,
|
9942
9929
|
be as XAction,
|
9943
|
-
|
9930
|
+
en as XActionBar,
|
9944
9931
|
b2 as XAttachment,
|
9945
9932
|
h2 as XCaptcha,
|
9946
9933
|
oe as XContainer,
|
9947
9934
|
d2 as XDataItem,
|
9948
|
-
|
9935
|
+
Pn as XDialog,
|
9949
9936
|
u2 as XDialogForm,
|
9950
9937
|
B0 as XDialogGrid,
|
9951
9938
|
Ja as XField,
|
@@ -9959,7 +9946,7 @@ export {
|
|
9959
9946
|
f2 as XList,
|
9960
9947
|
l2 as XMask,
|
9961
9948
|
wt as XMenu,
|
9962
|
-
|
9949
|
+
mn as XPanel,
|
9963
9950
|
Wa as XPicker,
|
9964
9951
|
v2 as XQrCode,
|
9965
9952
|
su as XQueryForm,
|
@@ -9990,9 +9977,9 @@ export {
|
|
9990
9977
|
r2 as makeInstaller,
|
9991
9978
|
bs as maskProps,
|
9992
9979
|
ts as panelProps,
|
9993
|
-
|
9980
|
+
rn as parseSize,
|
9994
9981
|
mu as registerFieldEditors,
|
9995
|
-
|
9982
|
+
Ft as sharedFilterOptions,
|
9996
9983
|
Vu as startupProps,
|
9997
9984
|
Cu as tabsProps,
|
9998
9985
|
Hu as testProps,
|
@@ -10001,8 +9988,8 @@ export {
|
|
10001
9988
|
i2 as useDefer,
|
10002
9989
|
Xl as useDefineSlots,
|
10003
9990
|
Lo as useDisabled,
|
10004
|
-
|
10005
|
-
|
9991
|
+
Nt as useEditRender,
|
9992
|
+
Pt as useIcon,
|
10006
9993
|
Hl as useIconProps,
|
10007
9994
|
Ul as useLoader,
|
10008
9995
|
ns as vDraggable,
|