gy-ui-plus 1.0.2 → 1.0.4
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/README.md +115 -0
- package/dist/gy-ui-plus.css +1 -1
- package/dist/gy-ui-plus.es.js +140 -140
- package/dist/gy-ui-plus.umd.js +2 -2
- package/package.json +14 -2
- package/packages/{j-button → gy-button}/index.ts +2 -2
- package/packages/{j-table → gy-table}/index.ts +2 -2
- package/packages/index.ts +5 -5
- /package/packages/{j-button → gy-button}/src/index.vue +0 -0
- /package/packages/{j-table → gy-table}/src/ColumnSet.vue +0 -0
- /package/packages/{j-table → gy-table}/src/TTableColumn.vue +0 -0
- /package/packages/{j-table → gy-table}/src/index.vue +0 -0
- /package/packages/{j-table → gy-table}/src/operator.vue +0 -0
- /package/packages/{j-table → gy-table}/src/renderCol.vue +0 -0
- /package/packages/{j-table → gy-table}/src/renderHeader.vue +0 -0
- /package/packages/{j-table → gy-table}/src/singleEdit.vue +0 -0
- /package/packages/{j-table → gy-table}/src/singleEditCell.vue +0 -0
- /package/packages/{j-table → gy-table}/src/tableProps.ts +0 -0
- /package/packages/{j-table → gy-table}/src/useExpose.ts +0 -0
- /package/packages/{j-table → gy-table}/src/useVirtualized.ts +0 -0
- /package/packages/{j-table → gy-table}/style/table.scss +0 -0
package/dist/gy-ui-plus.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as le, ref as
|
|
1
|
+
import { defineComponent as le, ref as X, resolveComponent as oe, createBlock as A, openBlock as h, mergeProps as V, withCtx as N, renderSlot as q, createElementBlock as C, createElementVNode as re, getCurrentInstance as yt, inject as gt, computed as x, unref as _, readonly as Tr, getCurrentScope as Dr, onScopeDispose as kr, watch as Ue, onMounted as sn, isRef as Bt, warn as _r, provide as Or, normalizeClass as Ae, createVNode as ie, Transition as Do, withDirectives as Bn, normalizeStyle as We, createTextVNode as Be, toDisplayString as W, vShow as ko, shallowReactive as _o, createCommentVNode as k, resolveDynamicComponent as Pe, Fragment as ee, withModifiers as Oo, nextTick as Rn, isVNode as Io, render as to, toHandlers as mt, createSlots as _e, renderList as Te, useSlots as jn, withKeys as Ir, normalizeProps as rt, guardReactiveProps as un, useAttrs as No, reactive as xo, onBeforeUnmount as Nr, onUpdated as xr, resolveDirective as Pr } from "vue";
|
|
2
2
|
const $r = {
|
|
3
3
|
name: "JButton"
|
|
4
4
|
}, Ar = /* @__PURE__ */ le({
|
|
@@ -11,7 +11,7 @@ const $r = {
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["click"],
|
|
13
13
|
setup(e, { emit: t }) {
|
|
14
|
-
const n = e, o = t, r =
|
|
14
|
+
const n = e, o = t, r = X(0), a = () => {
|
|
15
15
|
(/* @__PURE__ */ new Date()).getTime() - r.value > n.time && o("click"), r.value = (/* @__PURE__ */ new Date()).getTime();
|
|
16
16
|
};
|
|
17
17
|
return (l, s) => {
|
|
@@ -113,7 +113,7 @@ var Br = /* @__PURE__ */ le({
|
|
|
113
113
|
})
|
|
114
114
|
]));
|
|
115
115
|
}
|
|
116
|
-
}), Yr = Ur,
|
|
116
|
+
}), Yr = Ur, Gr = /* @__PURE__ */ le({
|
|
117
117
|
name: "Rank",
|
|
118
118
|
__name: "rank",
|
|
119
119
|
setup(e) {
|
|
@@ -127,7 +127,7 @@ var Br = /* @__PURE__ */ le({
|
|
|
127
127
|
})
|
|
128
128
|
]));
|
|
129
129
|
}
|
|
130
|
-
}),
|
|
130
|
+
}), Kr = Gr, Xr = /* @__PURE__ */ le({
|
|
131
131
|
name: "SuccessFilled",
|
|
132
132
|
__name: "success-filled",
|
|
133
133
|
setup(e) {
|
|
@@ -141,7 +141,7 @@ var Br = /* @__PURE__ */ le({
|
|
|
141
141
|
})
|
|
142
142
|
]));
|
|
143
143
|
}
|
|
144
|
-
}), Wr =
|
|
144
|
+
}), Wr = Xr, qr = /* @__PURE__ */ le({
|
|
145
145
|
name: "WarningFilled",
|
|
146
146
|
__name: "warning-filled",
|
|
147
147
|
setup(e) {
|
|
@@ -156,12 +156,12 @@ var Br = /* @__PURE__ */ le({
|
|
|
156
156
|
]));
|
|
157
157
|
}
|
|
158
158
|
}), Jr = qr;
|
|
159
|
-
const Po = /* @__PURE__ */ Symbol(),
|
|
159
|
+
const Po = /* @__PURE__ */ Symbol(), Kt = "el", Zr = "is-", et = (e, t, n, o, r) => {
|
|
160
160
|
let a = `${e}-${t}`;
|
|
161
161
|
return n && (a += `-${n}`), o && (a += `__${o}`), r && (a += `--${r}`), a;
|
|
162
162
|
}, $o = /* @__PURE__ */ Symbol("namespaceContextKey"), Qr = (e) => {
|
|
163
|
-
const t = e || (yt() ? gt($o,
|
|
164
|
-
return x(() => _(t) ||
|
|
163
|
+
const t = e || (yt() ? gt($o, X(Kt)) : X(Kt));
|
|
164
|
+
return x(() => _(t) || Kt);
|
|
165
165
|
}, Ln = (e, t) => {
|
|
166
166
|
const n = Qr(t);
|
|
167
167
|
return {
|
|
@@ -318,10 +318,10 @@ function Ya(e) {
|
|
|
318
318
|
var t = this.__data__;
|
|
319
319
|
return Rt ? t[e] !== void 0 : Ua.call(t, e);
|
|
320
320
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
321
|
+
var Ga = "__lodash_hash_undefined__";
|
|
322
|
+
function Ka(e, t) {
|
|
323
323
|
var n = this.__data__;
|
|
324
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = Rt && t === void 0 ?
|
|
324
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = Rt && t === void 0 ? Ga : t, this;
|
|
325
325
|
}
|
|
326
326
|
function at(e) {
|
|
327
327
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -334,8 +334,8 @@ at.prototype.clear = ja;
|
|
|
334
334
|
at.prototype.delete = La;
|
|
335
335
|
at.prototype.get = Va;
|
|
336
336
|
at.prototype.has = Ya;
|
|
337
|
-
at.prototype.set =
|
|
338
|
-
function
|
|
337
|
+
at.prototype.set = Ka;
|
|
338
|
+
function Xa() {
|
|
339
339
|
this.__data__ = [], this.size = 0;
|
|
340
340
|
}
|
|
341
341
|
function cn(e, t) {
|
|
@@ -370,7 +370,7 @@ function Ct(e) {
|
|
|
370
370
|
this.set(o[0], o[1]);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
Ct.prototype.clear =
|
|
373
|
+
Ct.prototype.clear = Xa;
|
|
374
374
|
Ct.prototype.delete = Ja;
|
|
375
375
|
Ct.prototype.get = Za;
|
|
376
376
|
Ct.prototype.has = Qa;
|
|
@@ -487,7 +487,7 @@ const Sl = Object.prototype.toString, Cl = (e) => Sl.call(e) === "[object Object
|
|
|
487
487
|
function Dl(e, t, n = {}) {
|
|
488
488
|
const {
|
|
489
489
|
immediate: o = !0
|
|
490
|
-
} = n, r =
|
|
490
|
+
} = n, r = X(!1);
|
|
491
491
|
let a = null;
|
|
492
492
|
function l() {
|
|
493
493
|
a && (clearTimeout(a), a = null);
|
|
@@ -536,7 +536,7 @@ function kl(...e) {
|
|
|
536
536
|
return Hn(f), f;
|
|
537
537
|
}
|
|
538
538
|
function _l() {
|
|
539
|
-
const e =
|
|
539
|
+
const e = X(!1), t = yt();
|
|
540
540
|
return t && sn(() => {
|
|
541
541
|
e.value = !0;
|
|
542
542
|
}, t), e;
|
|
@@ -581,7 +581,7 @@ function jt(e, t) {
|
|
|
581
581
|
}
|
|
582
582
|
const io = {
|
|
583
583
|
current: 0
|
|
584
|
-
}, so =
|
|
584
|
+
}, so = X(0), zo = 2e3, uo = /* @__PURE__ */ Symbol("elZIndexContextKey"), Vo = /* @__PURE__ */ Symbol("zIndexContextKey"), xl = (e) => {
|
|
585
585
|
const t = yt() ? gt(uo, io) : io, n = e || (yt() ? gt(Vo, void 0) : void 0), o = x(() => {
|
|
586
586
|
const l = _(n);
|
|
587
587
|
return lt(l) ? l : zo;
|
|
@@ -797,14 +797,14 @@ const $l = (e) => (t, n) => Al(t, n, _(e)), Al = (e, t, n) => vl(n, e, e).replac
|
|
|
797
797
|
return `${(a = t?.[r]) != null ? a : `{${r}}`}`;
|
|
798
798
|
}
|
|
799
799
|
), Bl = (e) => {
|
|
800
|
-
const t = x(() => _(e).name), n = Bt(e) ? e :
|
|
800
|
+
const t = x(() => _(e).name), n = Bt(e) ? e : X(e);
|
|
801
801
|
return {
|
|
802
802
|
lang: t,
|
|
803
803
|
locale: n,
|
|
804
804
|
t: $l(e)
|
|
805
805
|
};
|
|
806
806
|
}, Ho = /* @__PURE__ */ Symbol("localeContextKey"), Rl = (e) => {
|
|
807
|
-
const t = e || gt(Ho,
|
|
807
|
+
const t = e || gt(Ho, X());
|
|
808
808
|
return Bl(x(() => t.value || Pl));
|
|
809
809
|
}, Uo = "__epPropKey", Ce = (e) => e, jl = (e) => Ao(e) && !!e[Uo], Yo = (e, t) => {
|
|
810
810
|
if (!Ao(e) || jl(e))
|
|
@@ -848,16 +848,16 @@ const $l = (e) => (t, n) => Al(t, n, _(e)), Al = (e, t, n) => vl(n, e, e).replac
|
|
|
848
848
|
default: void 0,
|
|
849
849
|
validator: (e) => (e = Qt(e) ? e() : e, ta(e) ? e.every((t) => !t) : !e)
|
|
850
850
|
}
|
|
851
|
-
}), co = (e) => Object.keys(e), en =
|
|
852
|
-
function
|
|
851
|
+
}), co = (e) => Object.keys(e), en = X();
|
|
852
|
+
function Go(e, t = void 0) {
|
|
853
853
|
return yt() ? gt(Po, en) : en;
|
|
854
854
|
}
|
|
855
855
|
function Hl(e, t) {
|
|
856
|
-
const n =
|
|
856
|
+
const n = Go(), o = Ln(
|
|
857
857
|
e,
|
|
858
858
|
x(() => {
|
|
859
859
|
var s;
|
|
860
|
-
return ((s = n.value) == null ? void 0 : s.namespace) ||
|
|
860
|
+
return ((s = n.value) == null ? void 0 : s.namespace) || Kt;
|
|
861
861
|
})
|
|
862
862
|
), r = Rl(x(() => {
|
|
863
863
|
var s;
|
|
@@ -871,16 +871,16 @@ function Hl(e, t) {
|
|
|
871
871
|
var s;
|
|
872
872
|
return _(t) || ((s = n.value) == null ? void 0 : s.size) || "";
|
|
873
873
|
});
|
|
874
|
-
return
|
|
874
|
+
return Ko(x(() => _(n) || {})), {
|
|
875
875
|
ns: o,
|
|
876
876
|
locale: r,
|
|
877
877
|
zIndex: a,
|
|
878
878
|
size: l
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
|
-
const
|
|
881
|
+
const Ko = (e, t, n = !1) => {
|
|
882
882
|
var o;
|
|
883
|
-
const r = !!yt(), a = r ?
|
|
883
|
+
const r = !!yt(), a = r ? Go() : void 0, l = (o = void 0) != null ? o : r ? Or : void 0;
|
|
884
884
|
if (!l) {
|
|
885
885
|
jt(
|
|
886
886
|
"provideGlobalConfig",
|
|
@@ -922,12 +922,12 @@ var Yn = (e, t) => {
|
|
|
922
922
|
n[o] = r;
|
|
923
923
|
return n;
|
|
924
924
|
};
|
|
925
|
-
const
|
|
925
|
+
const Xo = (e, t) => (e.install = (n) => {
|
|
926
926
|
for (const o of [e, ...Object.values({})])
|
|
927
927
|
n.component(o.name, o);
|
|
928
928
|
}, e), Yl = (e, t) => (e.install = (n) => {
|
|
929
929
|
e._context = n._context, n.config.globalProperties[t] = e;
|
|
930
|
-
}, e),
|
|
930
|
+
}, e), Gl = "utils/dom/style";
|
|
931
931
|
function On(e, t = "px") {
|
|
932
932
|
if (!e && e !== 0)
|
|
933
933
|
return "";
|
|
@@ -935,20 +935,20 @@ function On(e, t = "px") {
|
|
|
935
935
|
return `${e}${t}`;
|
|
936
936
|
if (St(e))
|
|
937
937
|
return e;
|
|
938
|
-
jt(
|
|
938
|
+
jt(Gl, "binding value must be a string or number");
|
|
939
939
|
}
|
|
940
|
-
const
|
|
940
|
+
const Kl = Lt({
|
|
941
941
|
size: {
|
|
942
942
|
type: Ce([Number, String])
|
|
943
943
|
},
|
|
944
944
|
color: {
|
|
945
945
|
type: String
|
|
946
946
|
}
|
|
947
|
-
}),
|
|
947
|
+
}), Xl = le({
|
|
948
948
|
name: "ElIcon",
|
|
949
949
|
inheritAttrs: !1,
|
|
950
950
|
__name: "icon",
|
|
951
|
-
props:
|
|
951
|
+
props: Kl,
|
|
952
952
|
setup(e) {
|
|
953
953
|
const t = e, n = Ln("icon"), o = x(() => {
|
|
954
954
|
const { size: r, color: a } = t, l = On(r);
|
|
@@ -970,8 +970,8 @@ const Xl = Lt({
|
|
|
970
970
|
));
|
|
971
971
|
}
|
|
972
972
|
});
|
|
973
|
-
var Wl = /* @__PURE__ */ Yn(
|
|
974
|
-
const fo =
|
|
973
|
+
var Wl = /* @__PURE__ */ Yn(Xl, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);
|
|
974
|
+
const fo = Xo(Wl), ql = Ce([
|
|
975
975
|
String,
|
|
976
976
|
Object,
|
|
977
977
|
Function
|
|
@@ -1106,7 +1106,7 @@ const fo = Go(Wl), ql = Ce([
|
|
|
1106
1106
|
}
|
|
1107
1107
|
});
|
|
1108
1108
|
var ri = /* @__PURE__ */ Yn(oi, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);
|
|
1109
|
-
const ai =
|
|
1109
|
+
const ai = Xo(ri), li = Lt({
|
|
1110
1110
|
a11y: {
|
|
1111
1111
|
type: Boolean,
|
|
1112
1112
|
default: !0
|
|
@@ -1150,7 +1150,7 @@ le({
|
|
|
1150
1150
|
name: "ElConfigProvider",
|
|
1151
1151
|
props: li,
|
|
1152
1152
|
setup(e, { slots: t }) {
|
|
1153
|
-
const n =
|
|
1153
|
+
const n = Ko(e);
|
|
1154
1154
|
return Ue(
|
|
1155
1155
|
() => e.message,
|
|
1156
1156
|
(o) => {
|
|
@@ -1275,7 +1275,7 @@ const Wo = [
|
|
|
1275
1275
|
props: ii,
|
|
1276
1276
|
emits: si,
|
|
1277
1277
|
setup(e, { expose: t, emit: n }) {
|
|
1278
|
-
const { Close: o } = Jl, r = e, a = n, l =
|
|
1278
|
+
const { Close: o } = Jl, r = e, a = n, l = X(!1), { ns: s, zIndex: u } = Hl("message"), { currentZIndex: f, nextZIndex: g } = u, d = X(), S = X(!1), D = X(0);
|
|
1279
1279
|
let b;
|
|
1280
1280
|
const p = x(
|
|
1281
1281
|
() => r.type ? r.type === "error" ? "danger" : r.type : "info"
|
|
@@ -1292,20 +1292,20 @@ const Wo = [
|
|
|
1292
1292
|
}));
|
|
1293
1293
|
function z() {
|
|
1294
1294
|
r.duration !== 0 && ({ stop: b } = Dl(() => {
|
|
1295
|
-
|
|
1295
|
+
G();
|
|
1296
1296
|
}, r.duration));
|
|
1297
1297
|
}
|
|
1298
1298
|
function P() {
|
|
1299
1299
|
b?.();
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function G() {
|
|
1302
1302
|
S.value = !1, Rn(() => {
|
|
1303
1303
|
var F;
|
|
1304
1304
|
l.value || ((F = r.onClose) == null || F.call(r), a("destroy"));
|
|
1305
1305
|
});
|
|
1306
1306
|
}
|
|
1307
1307
|
function ce(F) {
|
|
1308
|
-
ei(F) === In.esc &&
|
|
1308
|
+
ei(F) === In.esc && G();
|
|
1309
1309
|
}
|
|
1310
1310
|
return sn(() => {
|
|
1311
1311
|
z(), g(), S.value = !0;
|
|
@@ -1319,7 +1319,7 @@ const Wo = [
|
|
|
1319
1319
|
}), t({
|
|
1320
1320
|
visible: S,
|
|
1321
1321
|
bottom: I,
|
|
1322
|
-
close:
|
|
1322
|
+
close: G
|
|
1323
1323
|
}), (F, Q) => (h(), A(Do, {
|
|
1324
1324
|
name: _(s).b("fade"),
|
|
1325
1325
|
onBeforeEnter: Q[0] || (Q[0] = (ze) => l.value = !0),
|
|
@@ -1386,7 +1386,7 @@ const Wo = [
|
|
|
1386
1386
|
F.showClose ? (h(), A(_(fo), {
|
|
1387
1387
|
key: 2,
|
|
1388
1388
|
class: Ae(_(s).e("closeBtn")),
|
|
1389
|
-
onClick: Oo(
|
|
1389
|
+
onClick: Oo(G, ["stop"])
|
|
1390
1390
|
}, {
|
|
1391
1391
|
default: N(() => [
|
|
1392
1392
|
ie(_(o))
|
|
@@ -1528,13 +1528,13 @@ function Fe(e) {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
return e;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function Xt(e) {
|
|
1532
1532
|
"@babel/helpers - typeof";
|
|
1533
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
1533
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Xt = function(t) {
|
|
1534
1534
|
return typeof t;
|
|
1535
|
-
} :
|
|
1535
|
+
} : Xt = function(t) {
|
|
1536
1536
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1537
|
-
},
|
|
1537
|
+
}, Xt(e);
|
|
1538
1538
|
}
|
|
1539
1539
|
function Ti(e, t, n) {
|
|
1540
1540
|
return t in e ? Object.defineProperty(e, t, {
|
|
@@ -1576,15 +1576,15 @@ function He(e) {
|
|
|
1576
1576
|
if (typeof window < "u" && window.navigator)
|
|
1577
1577
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
1578
1578
|
}
|
|
1579
|
-
var
|
|
1579
|
+
var Ge = He(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Mt = He(/Edge/i), mo = He(/firefox/i), Nt = He(/safari/i) && !He(/chrome/i) && !He(/android/i), Zo = He(/iP(ad|od|hone)/i), Qo = He(/chrome/i) && He(/android/i), er = {
|
|
1580
1580
|
capture: !1,
|
|
1581
1581
|
passive: !1
|
|
1582
1582
|
};
|
|
1583
|
-
function
|
|
1584
|
-
e.addEventListener(t, n, !
|
|
1583
|
+
function K(e, t, n) {
|
|
1584
|
+
e.addEventListener(t, n, !Ge && er);
|
|
1585
1585
|
}
|
|
1586
1586
|
function Y(e, t, n) {
|
|
1587
|
-
e.removeEventListener(t, n, !
|
|
1587
|
+
e.removeEventListener(t, n, !Ge && er);
|
|
1588
1588
|
}
|
|
1589
1589
|
function tn(e, t) {
|
|
1590
1590
|
if (t) {
|
|
@@ -1663,7 +1663,7 @@ function Me() {
|
|
|
1663
1663
|
function ue(e, t, n, o, r) {
|
|
1664
1664
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
1665
1665
|
var a, l, s, u, f, g, d;
|
|
1666
|
-
if (e !== window && e.parentNode && e !== Me() ? (a = e.getBoundingClientRect(), l = a.top, s = a.left, u = a.bottom, f = a.right, g = a.height, d = a.width) : (l = 0, s = 0, u = window.innerHeight, f = window.innerWidth, g = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (r = r || e.parentNode, !
|
|
1666
|
+
if (e !== window && e.parentNode && e !== Me() ? (a = e.getBoundingClientRect(), l = a.top, s = a.left, u = a.bottom, f = a.right, g = a.height, d = a.width) : (l = 0, s = 0, u = window.innerHeight, f = window.innerWidth, g = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (r = r || e.parentNode, !Ge))
|
|
1667
1667
|
do
|
|
1668
1668
|
if (r && r.getBoundingClientRect && (B(r, "transform") !== "none" || n && B(r, "position") !== "static")) {
|
|
1669
1669
|
var S = r.getBoundingClientRect();
|
|
@@ -1705,7 +1705,7 @@ function Et(e, t, n, o) {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
return null;
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function Gn(e, t) {
|
|
1709
1709
|
for (var n = e.lastElementChild; n && (n === R.ghost || B(n, "display") === "none" || t && !tn(n, t)); )
|
|
1710
1710
|
n = n.previousElementSibling;
|
|
1711
1711
|
return n || null;
|
|
@@ -1901,7 +1901,7 @@ function Bi(e) {
|
|
|
1901
1901
|
var t = e.sortable, n = e.rootEl, o = e.name, r = e.targetEl, a = e.cloneEl, l = e.toEl, s = e.fromEl, u = e.oldIndex, f = e.newIndex, g = e.oldDraggableIndex, d = e.newDraggableIndex, S = e.originalEvent, D = e.putSortable, b = e.extraEventProperties;
|
|
1902
1902
|
if (t = t || n && n[Oe], !!t) {
|
|
1903
1903
|
var p, j = t.options, O = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
1904
|
-
window.CustomEvent && !
|
|
1904
|
+
window.CustomEvent && !Ge && !Mt ? p = new CustomEvent(o, {
|
|
1905
1905
|
bubbles: !0,
|
|
1906
1906
|
cancelable: !0
|
|
1907
1907
|
}) : (p = document.createEvent("Event"), p.initEvent(o, !0, !0)), p.to = l || n, p.from = s || n, p.item = r || n, p.clone = a, p.oldIndex = u, p.newIndex = f, p.oldDraggableIndex = g, p.newDraggableIndex = d, p.originalEvent = S, p.pullMode = D ? D.lastPutMode : void 0;
|
|
@@ -1929,7 +1929,7 @@ var Ri = ["evt"], Se = function(t, n) {
|
|
|
1929
1929
|
oldIndex: ht,
|
|
1930
1930
|
oldDraggableIndex: Pt,
|
|
1931
1931
|
newIndex: ke,
|
|
1932
|
-
newDraggableIndex:
|
|
1932
|
+
newDraggableIndex: Xe,
|
|
1933
1933
|
hideGhostForTarget: sr,
|
|
1934
1934
|
unhideGhostForTarget: ur,
|
|
1935
1935
|
cloneNowHidden: function() {
|
|
@@ -1956,12 +1956,12 @@ function be(e) {
|
|
|
1956
1956
|
oldIndex: ht,
|
|
1957
1957
|
oldDraggableIndex: Pt,
|
|
1958
1958
|
newIndex: ke,
|
|
1959
|
-
newDraggableIndex:
|
|
1959
|
+
newDraggableIndex: Xe
|
|
1960
1960
|
}, e));
|
|
1961
1961
|
}
|
|
1962
|
-
var E, ae, M, te, ot, Wt, ne, qe, ht, ke, Pt,
|
|
1962
|
+
var E, ae, M, te, ot, Wt, ne, qe, ht, ke, Pt, Xe, Ht, pe, pt = !1, nn = !1, on = [], tt, $e, yn, wn, wo, Eo, _t, ft, $t, At = !1, Ut = !1, qt, he, En = [], Nn = !1, rn = [], fn = typeof document < "u", Yt = Zo, So = Mt || Ge ? "cssFloat" : "float", ji = fn && !Qo && !Zo && "draggable" in document.createElement("div"), ar = (function() {
|
|
1963
1963
|
if (fn) {
|
|
1964
|
-
if (
|
|
1964
|
+
if (Ge)
|
|
1965
1965
|
return !1;
|
|
1966
1966
|
var e = document.createElement("x");
|
|
1967
1967
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
@@ -1984,7 +1984,7 @@ var E, ae, M, te, ot, Wt, ne, qe, ht, ke, Pt, Ge, Ht, pe, pt = !1, nn = !1, on =
|
|
|
1984
1984
|
var o;
|
|
1985
1985
|
return on.some(function(r) {
|
|
1986
1986
|
var a = r[Oe].options.emptyInsertThreshold;
|
|
1987
|
-
if (!(!a ||
|
|
1987
|
+
if (!(!a || Gn(r))) {
|
|
1988
1988
|
var l = ue(r), s = t >= l.left - a && t <= l.right + a, u = n >= l.top - a && n <= l.bottom + a;
|
|
1989
1989
|
if (s && u)
|
|
1990
1990
|
return o = r;
|
|
@@ -2007,7 +2007,7 @@ var E, ae, M, te, ot, Wt, ne, qe, ht, ke, Pt, Ge, Ht, pe, pt = !1, nn = !1, on =
|
|
|
2007
2007
|
};
|
|
2008
2008
|
}
|
|
2009
2009
|
var o = {}, r = t.group;
|
|
2010
|
-
(!r ||
|
|
2010
|
+
(!r || Xt(r) != "object") && (r = {
|
|
2011
2011
|
name: r
|
|
2012
2012
|
}), o.name = r.name, o.checkPull = n(r.pull, !0), o.checkPut = n(r.put), o.revertClone = r.revertClone, t.group = o;
|
|
2013
2013
|
}, sr = function() {
|
|
@@ -2088,7 +2088,7 @@ function R(e, t) {
|
|
|
2088
2088
|
ir(t);
|
|
2089
2089
|
for (var r in this)
|
|
2090
2090
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
2091
|
-
this.nativeDraggable = t.forceFallback ? !1 : ji, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ?
|
|
2091
|
+
this.nativeDraggable = t.forceFallback ? !1 : ji, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? K(e, "pointerdown", this._onTapStart) : (K(e, "mousedown", this._onTapStart), K(e, "touchstart", this._onTapStart)), this.nativeDraggable && (K(e, "dragover", this), K(e, "dragenter", this)), on.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Ye(this, Pi());
|
|
2092
2092
|
}
|
|
2093
2093
|
R.prototype = /** @lends Sortable.prototype */
|
|
2094
2094
|
{
|
|
@@ -2102,7 +2102,7 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2102
2102
|
_onTapStart: function(t) {
|
|
2103
2103
|
if (t.cancelable) {
|
|
2104
2104
|
var n = this, o = this.el, r = this.options, a = r.preventOnFilter, l = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, u = (s || t).target, f = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || u, g = r.filter;
|
|
2105
|
-
if (
|
|
2105
|
+
if (Xi(o), !E && !(/mousedown|pointerdown/.test(l) && t.button !== 0 || r.disabled) && !f.isContentEditable && !(!this.nativeDraggable && Nt && u && u.tagName.toUpperCase() === "SELECT") && (u = Le(u, r.draggable, o, !1), !(u && u.animated) && Wt !== u)) {
|
|
2106
2106
|
if (ht = xe(u), Pt = xe(u, r.draggable), typeof g == "function") {
|
|
2107
2107
|
if (g.call(this, t, u, this)) {
|
|
2108
2108
|
be({
|
|
@@ -2159,14 +2159,14 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2159
2159
|
}), De(E, l.chosenClass, !0);
|
|
2160
2160
|
}, l.ignore.split(",").forEach(function(g) {
|
|
2161
2161
|
tr(E, g.trim(), Sn);
|
|
2162
|
-
}),
|
|
2162
|
+
}), K(s, "dragover", nt), K(s, "mousemove", nt), K(s, "touchmove", nt), K(s, "mouseup", r._onDrop), K(s, "touchend", r._onDrop), K(s, "touchcancel", r._onDrop), mo && this.nativeDraggable && (this.options.touchStartThreshold = 4, E.draggable = !0), Se("delayStart", this, {
|
|
2163
2163
|
evt: t
|
|
2164
|
-
}), l.delay && (!l.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Mt ||
|
|
2164
|
+
}), l.delay && (!l.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Mt || Ge))) {
|
|
2165
2165
|
if (R.eventCanceled) {
|
|
2166
2166
|
this._onDrop();
|
|
2167
2167
|
return;
|
|
2168
2168
|
}
|
|
2169
|
-
|
|
2169
|
+
K(s, "mouseup", r._disableDelayedDrag), K(s, "touchend", r._disableDelayedDrag), K(s, "touchcancel", r._disableDelayedDrag), K(s, "mousemove", r._delayedDragTouchMoveHandler), K(s, "touchmove", r._delayedDragTouchMoveHandler), l.supportPointer && K(s, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(u, l.delay);
|
|
2170
2170
|
} else
|
|
2171
2171
|
u();
|
|
2172
2172
|
}
|
|
@@ -2183,7 +2183,7 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2183
2183
|
Y(t, "mouseup", this._disableDelayedDrag), Y(t, "touchend", this._disableDelayedDrag), Y(t, "touchcancel", this._disableDelayedDrag), Y(t, "mousemove", this._delayedDragTouchMoveHandler), Y(t, "touchmove", this._delayedDragTouchMoveHandler), Y(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2184
2184
|
},
|
|
2185
2185
|
_triggerDragStart: function(t, n) {
|
|
2186
|
-
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ?
|
|
2186
|
+
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? K(document, "pointermove", this._onTouchMove) : n ? K(document, "touchmove", this._onTouchMove) : K(document, "mousemove", this._onTouchMove) : (K(E, "dragend", this), K(te, "dragstart", this._onDragStart));
|
|
2187
2187
|
try {
|
|
2188
2188
|
document.selection ? Jt(function() {
|
|
2189
2189
|
document.selection.empty();
|
|
@@ -2195,7 +2195,7 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2195
2195
|
if (pt = !1, te && E) {
|
|
2196
2196
|
Se("dragStarted", this, {
|
|
2197
2197
|
evt: n
|
|
2198
|
-
}), this.nativeDraggable &&
|
|
2198
|
+
}), this.nativeDraggable && K(document, "dragover", Fi);
|
|
2199
2199
|
var o = this.options;
|
|
2200
2200
|
!t && De(E, o.dragClass, !1), De(E, o.ghostClass, !0), R.active = this, t && this._appendGhost(), be({
|
|
2201
2201
|
sortable: this,
|
|
@@ -2274,13 +2274,13 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2274
2274
|
sortable: o,
|
|
2275
2275
|
name: "clone"
|
|
2276
2276
|
}));
|
|
2277
|
-
}), !n && De(E, a.dragClass, !0), n ? (nn = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (Y(document, "mouseup", o._onDrop), Y(document, "touchend", o._onDrop), Y(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", a.setData && a.setData.call(o, r, E)),
|
|
2277
|
+
}), !n && De(E, a.dragClass, !0), n ? (nn = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (Y(document, "mouseup", o._onDrop), Y(document, "touchend", o._onDrop), Y(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", a.setData && a.setData.call(o, r, E)), K(document, "drop", o), B(E, "transform", "translateZ(0)")), pt = !0, o._dragStartId = Jt(o._dragStarted.bind(o, n, t)), K(document, "selectstart", o), _t = !0, Nt && B(document.body, "user-select", "none");
|
|
2278
2278
|
},
|
|
2279
2279
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2280
2280
|
_onDragOver: function(t) {
|
|
2281
2281
|
var n = this.el, o = t.target, r, a, l, s = this.options, u = s.group, f = R.active, g = Ht === u, d = s.sort, S = pe || f, D, b = this, p = !1;
|
|
2282
2282
|
if (Nn) return;
|
|
2283
|
-
function j(de,
|
|
2283
|
+
function j(de, Ke) {
|
|
2284
2284
|
Se(de, b, Fe({
|
|
2285
2285
|
evt: t,
|
|
2286
2286
|
isOwner: g,
|
|
@@ -2293,10 +2293,10 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2293
2293
|
target: o,
|
|
2294
2294
|
completed: $,
|
|
2295
2295
|
onMove: function(Dt, zt) {
|
|
2296
|
-
return
|
|
2296
|
+
return Gt(te, n, E, r, Dt, ue(Dt), t, zt);
|
|
2297
2297
|
},
|
|
2298
2298
|
changed: w
|
|
2299
|
-
},
|
|
2299
|
+
}, Ke));
|
|
2300
2300
|
}
|
|
2301
2301
|
function O() {
|
|
2302
2302
|
j("dragOverAnimationCapture"), b.captureAnimationState(), b !== S && S.captureAnimationState();
|
|
@@ -2309,12 +2309,12 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2309
2309
|
}), b !== S && (S.animateAll(), S._ignoreWhileAnimating = null)), (o === E && !E.animated || o === n && !o.animated) && (ft = null), !s.dragoverBubble && !t.rootEl && o !== document && (E.parentNode[Oe]._isOutsideThisEl(t.target), !de && nt(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), p = !0;
|
|
2310
2310
|
}
|
|
2311
2311
|
function w() {
|
|
2312
|
-
ke = xe(E),
|
|
2312
|
+
ke = xe(E), Xe = xe(E, s.draggable), be({
|
|
2313
2313
|
sortable: b,
|
|
2314
2314
|
name: "change",
|
|
2315
2315
|
toEl: n,
|
|
2316
2316
|
newIndex: ke,
|
|
2317
|
-
newDraggableIndex:
|
|
2317
|
+
newDraggableIndex: Xe,
|
|
2318
2318
|
originalEvent: t
|
|
2319
2319
|
});
|
|
2320
2320
|
}
|
|
@@ -2325,21 +2325,21 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2325
2325
|
if (D = this._getDirection(t, o) === "vertical", r = ue(E), j("dragOverValid"), R.eventCanceled) return p;
|
|
2326
2326
|
if (l)
|
|
2327
2327
|
return ae = te, O(), this._hideClone(), j("revert"), R.eventCanceled || (ot ? te.insertBefore(E, ot) : te.appendChild(E)), $(!0);
|
|
2328
|
-
var T =
|
|
2328
|
+
var T = Gn(n, s.draggable);
|
|
2329
2329
|
if (!T || Ui(t, D, this) && !T.animated) {
|
|
2330
2330
|
if (T === E)
|
|
2331
2331
|
return $(!1);
|
|
2332
|
-
if (T && n === t.target && (o = T), o && (a = ue(o)),
|
|
2332
|
+
if (T && n === t.target && (o = T), o && (a = ue(o)), Gt(te, n, E, r, o, a, t, !!o) !== !1)
|
|
2333
2333
|
return O(), T && T.nextSibling ? n.insertBefore(E, T.nextSibling) : n.appendChild(E), ae = n, w(), $(!0);
|
|
2334
2334
|
} else if (T && Hi(t, D, this)) {
|
|
2335
2335
|
var I = Et(n, 0, s, !0);
|
|
2336
2336
|
if (I === E)
|
|
2337
2337
|
return $(!1);
|
|
2338
|
-
if (o = I, a = ue(o),
|
|
2338
|
+
if (o = I, a = ue(o), Gt(te, n, E, r, o, a, t, !1) !== !1)
|
|
2339
2339
|
return O(), n.insertBefore(E, I), ae = n, w(), $(!0);
|
|
2340
2340
|
} else if (o.parentNode === n) {
|
|
2341
2341
|
a = ue(o);
|
|
2342
|
-
var H = 0, m, y = E.parentNode !== n, z = !Li(E.animated && E.toRect || r, o.animated && o.toRect || a, D), P = D ? "top" : "left",
|
|
2342
|
+
var H = 0, m, y = E.parentNode !== n, z = !Li(E.animated && E.toRect || r, o.animated && o.toRect || a, D), P = D ? "top" : "left", G = vo(o, "top", "top") || vo(E, "top", "top"), ce = G ? G.scrollTop : void 0;
|
|
2343
2343
|
ft !== o && (m = a[P], At = !1, Ut = !z && s.invertSwap || y), H = Yi(t, o, a, D, z ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Ut, ft === o);
|
|
2344
2344
|
var F;
|
|
2345
2345
|
if (H !== 0) {
|
|
@@ -2353,9 +2353,9 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2353
2353
|
ft = o, $t = H;
|
|
2354
2354
|
var ze = o.nextElementSibling, ve = !1;
|
|
2355
2355
|
ve = H === 1;
|
|
2356
|
-
var ut =
|
|
2356
|
+
var ut = Gt(te, n, E, r, o, a, t, ve);
|
|
2357
2357
|
if (ut !== !1)
|
|
2358
|
-
return (ut === 1 || ut === -1) && (ve = ut === 1), Nn = !0, setTimeout(Vi, 30), O(), ve && !ze ? n.appendChild(E) : o.parentNode.insertBefore(E, ve ? ze : o),
|
|
2358
|
+
return (ut === 1 || ut === -1) && (ve = ut === 1), Nn = !0, setTimeout(Vi, 30), O(), ve && !ze ? n.appendChild(E) : o.parentNode.insertBefore(E, ve ? ze : o), G && or(G, 0, ce - G.scrollTop), ae = E.parentNode, m !== void 0 && !Ut && (qt = Math.abs(m - ue(o)[P])), w(), $(!0);
|
|
2359
2359
|
}
|
|
2360
2360
|
if (n.contains(E))
|
|
2361
2361
|
return $(!1);
|
|
@@ -2372,9 +2372,9 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2372
2372
|
},
|
|
2373
2373
|
_onDrop: function(t) {
|
|
2374
2374
|
var n = this.el, o = this.options;
|
|
2375
|
-
if (ke = xe(E),
|
|
2375
|
+
if (ke = xe(E), Xe = xe(E, o.draggable), Se("drop", this, {
|
|
2376
2376
|
evt: t
|
|
2377
|
-
}), ae = E && E.parentNode, ke = xe(E),
|
|
2377
|
+
}), ae = E && E.parentNode, ke = xe(E), Xe = xe(E, o.draggable), R.eventCanceled) {
|
|
2378
2378
|
this._nulling();
|
|
2379
2379
|
return;
|
|
2380
2380
|
}
|
|
@@ -2417,7 +2417,7 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2417
2417
|
name: "sort",
|
|
2418
2418
|
toEl: ae,
|
|
2419
2419
|
originalEvent: t
|
|
2420
|
-
})), R.active && ((ke == null || ke === -1) && (ke = ht,
|
|
2420
|
+
})), R.active && ((ke == null || ke === -1) && (ke = ht, Xe = Pt), be({
|
|
2421
2421
|
sortable: this,
|
|
2422
2422
|
name: "end",
|
|
2423
2423
|
toEl: ae,
|
|
@@ -2425,7 +2425,7 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2425
2425
|
}), this.save()))), this._nulling();
|
|
2426
2426
|
},
|
|
2427
2427
|
_nulling: function() {
|
|
2428
|
-
Se("nulling", this), te = E = ae = M = ot = ne = Wt = qe = tt = $e = _t = ke =
|
|
2428
|
+
Se("nulling", this), te = E = ae = M = ot = ne = Wt = qe = tt = $e = _t = ke = Xe = ht = Pt = ft = $t = pe = Ht = R.dragged = R.ghost = R.clone = R.active = null, rn.forEach(function(t) {
|
|
2429
2429
|
t.checked = !0;
|
|
2430
2430
|
}), rn.length = yn = wn = 0;
|
|
2431
2431
|
},
|
|
@@ -2450,7 +2450,7 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2450
2450
|
*/
|
|
2451
2451
|
toArray: function() {
|
|
2452
2452
|
for (var t = [], n, o = this.el.children, r = 0, a = o.length, l = this.options; r < a; r++)
|
|
2453
|
-
n = o[r], Le(n, l.draggable, this.el, !1) && t.push(n.getAttribute(l.dataIdAttr) ||
|
|
2453
|
+
n = o[r], Le(n, l.draggable, this.el, !1) && t.push(n.getAttribute(l.dataIdAttr) || Ki(n));
|
|
2454
2454
|
return t;
|
|
2455
2455
|
},
|
|
2456
2456
|
/**
|
|
@@ -2525,9 +2525,9 @@ R.prototype = /** @lends Sortable.prototype */
|
|
|
2525
2525
|
function zi(e) {
|
|
2526
2526
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function Gt(e, t, n, o, r, a, l, s) {
|
|
2529
2529
|
var u, f = e[Oe], g = f.options.onMove, d;
|
|
2530
|
-
return window.CustomEvent && !
|
|
2530
|
+
return window.CustomEvent && !Ge && !Mt ? u = new CustomEvent("move", {
|
|
2531
2531
|
bubbles: !0,
|
|
2532
2532
|
cancelable: !0
|
|
2533
2533
|
}) : (u = document.createEvent("Event"), u.initEvent("move", !0, !0)), u.to = t, u.from = e, u.dragged = n, u.draggedRect = o, u.related = r || t, u.relatedRect = a || ue(t), u.willInsertAfter = s, u.originalEvent = l, e.dispatchEvent(u), g && (d = g.call(f, u, l)), d;
|
|
@@ -2543,7 +2543,7 @@ function Hi(e, t, n) {
|
|
|
2543
2543
|
return t ? e.clientX < o.left - r || e.clientY < o.top && e.clientX < o.right : e.clientY < o.top - r || e.clientY < o.bottom && e.clientX < o.left;
|
|
2544
2544
|
}
|
|
2545
2545
|
function Ui(e, t, n) {
|
|
2546
|
-
var o = ue(
|
|
2546
|
+
var o = ue(Gn(n.el, n.options.draggable)), r = 10;
|
|
2547
2547
|
return t ? e.clientX > o.right + r || e.clientX <= o.right && e.clientY > o.bottom && e.clientX >= o.left : e.clientX > o.right && e.clientY > o.top || e.clientX <= o.right && e.clientY > o.bottom + r;
|
|
2548
2548
|
}
|
|
2549
2549
|
function Yi(e, t, n, o, r, a, l, s) {
|
|
@@ -2555,19 +2555,19 @@ function Yi(e, t, n, o, r, a, l, s) {
|
|
|
2555
2555
|
else if ($t === 1 ? u < g + qt : u > d - qt)
|
|
2556
2556
|
return -$t;
|
|
2557
2557
|
} else if (u > g + f * (1 - r) / 2 && u < d - f * (1 - r) / 2)
|
|
2558
|
-
return
|
|
2558
|
+
return Gi(t);
|
|
2559
2559
|
}
|
|
2560
2560
|
return S = S || l, S && (u < g + f * a / 2 || u > d - f * a / 2) ? u > g + f / 2 ? 1 : -1 : 0;
|
|
2561
2561
|
}
|
|
2562
|
-
function
|
|
2562
|
+
function Gi(e) {
|
|
2563
2563
|
return xe(E) < xe(e) ? 1 : -1;
|
|
2564
2564
|
}
|
|
2565
|
-
function
|
|
2565
|
+
function Ki(e) {
|
|
2566
2566
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
|
|
2567
2567
|
o += t.charCodeAt(n);
|
|
2568
2568
|
return o.toString(36);
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2570
|
+
function Xi(e) {
|
|
2571
2571
|
rn.length = 0;
|
|
2572
2572
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
2573
2573
|
var o = t[n];
|
|
@@ -2580,11 +2580,11 @@ function Jt(e) {
|
|
|
2580
2580
|
function xn(e) {
|
|
2581
2581
|
return clearTimeout(e);
|
|
2582
2582
|
}
|
|
2583
|
-
fn &&
|
|
2583
|
+
fn && K(document, "touchmove", function(e) {
|
|
2584
2584
|
(R.active || pt) && e.cancelable && e.preventDefault();
|
|
2585
2585
|
});
|
|
2586
2586
|
R.utils = {
|
|
2587
|
-
on:
|
|
2587
|
+
on: K,
|
|
2588
2588
|
off: Y,
|
|
2589
2589
|
css: B,
|
|
2590
2590
|
find: tr,
|
|
@@ -2634,7 +2634,7 @@ function Wi() {
|
|
|
2634
2634
|
return e.prototype = {
|
|
2635
2635
|
dragStarted: function(n) {
|
|
2636
2636
|
var o = n.originalEvent;
|
|
2637
|
-
this.sortable.nativeDraggable ?
|
|
2637
|
+
this.sortable.nativeDraggable ? K(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? K(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? K(document, "touchmove", this._handleFallbackAutoScroll) : K(document, "mousemove", this._handleFallbackAutoScroll);
|
|
2638
2638
|
},
|
|
2639
2639
|
dragOverCompleted: function(n) {
|
|
2640
2640
|
var o = n.originalEvent;
|
|
@@ -2651,7 +2651,7 @@ function Wi() {
|
|
|
2651
2651
|
},
|
|
2652
2652
|
_handleAutoScroll: function(n, o) {
|
|
2653
2653
|
var r = this, a = (n.touches ? n.touches[0] : n).clientX, l = (n.touches ? n.touches[0] : n).clientY, s = document.elementFromPoint(a, l);
|
|
2654
|
-
if (an = n, o || this.options.forceAutoScrollFallback || Mt ||
|
|
2654
|
+
if (an = n, o || this.options.forceAutoScrollFallback || Mt || Ge || Nt) {
|
|
2655
2655
|
Dn(n, this.options, s, o);
|
|
2656
2656
|
var u = Je(s, !0);
|
|
2657
2657
|
$n && (!It || a !== Cn || l !== Tn) && (It && Co(), It = setInterval(function() {
|
|
@@ -2685,9 +2685,9 @@ var Dn = nr(function(e, t, n, o) {
|
|
|
2685
2685
|
Pn !== n && (Pn = n, Zt(), Ot = t.scroll, g = t.scrollFn, Ot === !0 && (Ot = Je(n, !0)));
|
|
2686
2686
|
var d = 0, S = Ot;
|
|
2687
2687
|
do {
|
|
2688
|
-
var D = S, b = ue(D), p = b.top, j = b.bottom, O = b.left, $ = b.right, w = b.width, T = b.height, I = void 0, H = void 0, m = D.scrollWidth, y = D.scrollHeight, z = B(D), P = D.scrollLeft,
|
|
2688
|
+
var D = S, b = ue(D), p = b.top, j = b.bottom, O = b.left, $ = b.right, w = b.width, T = b.height, I = void 0, H = void 0, m = D.scrollWidth, y = D.scrollHeight, z = B(D), P = D.scrollLeft, G = D.scrollTop;
|
|
2689
2689
|
D === u ? (I = w < m && (z.overflowX === "auto" || z.overflowX === "scroll" || z.overflowX === "visible"), H = T < y && (z.overflowY === "auto" || z.overflowY === "scroll" || z.overflowY === "visible")) : (I = w < m && (z.overflowX === "auto" || z.overflowX === "scroll"), H = T < y && (z.overflowY === "auto" || z.overflowY === "scroll"));
|
|
2690
|
-
var ce = I && (Math.abs($ - r) <= l && P + w < m) - (Math.abs(O - r) <= l && !!P), F = H && (Math.abs(j - a) <= l &&
|
|
2690
|
+
var ce = I && (Math.abs($ - r) <= l && P + w < m) - (Math.abs(O - r) <= l && !!P), F = H && (Math.abs(j - a) <= l && G + T < y) - (Math.abs(p - a) <= l && !!G);
|
|
2691
2691
|
if (!se[d])
|
|
2692
2692
|
for (var Q = 0; Q <= d; Q++)
|
|
2693
2693
|
se[Q] || (se[Q] = {});
|
|
@@ -2713,9 +2713,9 @@ var Dn = nr(function(e, t, n, o) {
|
|
|
2713
2713
|
}));
|
|
2714
2714
|
}
|
|
2715
2715
|
};
|
|
2716
|
-
function
|
|
2716
|
+
function Kn() {
|
|
2717
2717
|
}
|
|
2718
|
-
|
|
2718
|
+
Kn.prototype = {
|
|
2719
2719
|
startIndex: null,
|
|
2720
2720
|
dragStart: function(t) {
|
|
2721
2721
|
var n = t.oldDraggableIndex;
|
|
@@ -2729,23 +2729,23 @@ Xn.prototype = {
|
|
|
2729
2729
|
},
|
|
2730
2730
|
drop: cr
|
|
2731
2731
|
};
|
|
2732
|
-
Ye(
|
|
2732
|
+
Ye(Kn, {
|
|
2733
2733
|
pluginName: "revertOnSpill"
|
|
2734
2734
|
});
|
|
2735
|
-
function
|
|
2735
|
+
function Xn() {
|
|
2736
2736
|
}
|
|
2737
|
-
|
|
2737
|
+
Xn.prototype = {
|
|
2738
2738
|
onSpill: function(t) {
|
|
2739
2739
|
var n = t.dragEl, o = t.putSortable, r = o || this.sortable;
|
|
2740
2740
|
r.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), r.animateAll();
|
|
2741
2741
|
},
|
|
2742
2742
|
drop: cr
|
|
2743
2743
|
};
|
|
2744
|
-
Ye(
|
|
2744
|
+
Ye(Xn, {
|
|
2745
2745
|
pluginName: "removeOnSpill"
|
|
2746
2746
|
});
|
|
2747
2747
|
R.mount(new Wi());
|
|
2748
|
-
R.mount(
|
|
2748
|
+
R.mount(Xn, Kn);
|
|
2749
2749
|
const dr = /* @__PURE__ */ le({
|
|
2750
2750
|
name: "SingleEditCell",
|
|
2751
2751
|
__name: "singleEditCell",
|
|
@@ -2880,7 +2880,7 @@ const dr = /* @__PURE__ */ le({
|
|
|
2880
2880
|
}
|
|
2881
2881
|
}), b = (w, T) => {
|
|
2882
2882
|
r("getRefs", w, T);
|
|
2883
|
-
}, p =
|
|
2883
|
+
}, p = X({}), j = (w, T) => {
|
|
2884
2884
|
r("getRefs", w, T), w && (p.value[`tselecttableref-${o.indexColumns}`] = w);
|
|
2885
2885
|
}, O = () => {
|
|
2886
2886
|
const w = Object.keys(p.value).filter(
|
|
@@ -3205,13 +3205,13 @@ const dr = /* @__PURE__ */ le({
|
|
|
3205
3205
|
},
|
|
3206
3206
|
emits: ["handleEvent", "update:modelValue"],
|
|
3207
3207
|
setup(e, { expose: t, emit: n }) {
|
|
3208
|
-
const o = e, r = n, a = jn(), l =
|
|
3208
|
+
const o = e, r = n, a = jn(), l = X([
|
|
3209
3209
|
"select-arr",
|
|
3210
3210
|
"checkbox",
|
|
3211
3211
|
"radio",
|
|
3212
3212
|
"select-obj",
|
|
3213
3213
|
"el-select-multiple"
|
|
3214
|
-
]), s =
|
|
3214
|
+
]), s = X(!1), u = X({}), f = (m) => {
|
|
3215
3215
|
m && (u.value[`tselecttableref-${o.indexColumns}`] = m);
|
|
3216
3216
|
}, g = () => {
|
|
3217
3217
|
const m = Object.keys(u.value).filter(
|
|
@@ -3237,8 +3237,8 @@ const dr = /* @__PURE__ */ le({
|
|
|
3237
3237
|
);
|
|
3238
3238
|
const S = x(() => ({ eventHandle: m }, y = "") => {
|
|
3239
3239
|
let z = { ...m }, P = {};
|
|
3240
|
-
return Object.keys(z).forEach((
|
|
3241
|
-
P[
|
|
3240
|
+
return Object.keys(z).forEach((G) => {
|
|
3241
|
+
P[G] = (ce, F) => {
|
|
3242
3242
|
if (y === "t-select-table") {
|
|
3243
3243
|
const Q = {
|
|
3244
3244
|
row: ce,
|
|
@@ -3246,13 +3246,13 @@ const dr = /* @__PURE__ */ le({
|
|
|
3246
3246
|
prop: o.prop,
|
|
3247
3247
|
scope: o.scope
|
|
3248
3248
|
};
|
|
3249
|
-
z[
|
|
3249
|
+
z[G] && z[G](Q);
|
|
3250
3250
|
} else
|
|
3251
|
-
typeof ce == "number" && ce === 0 || ce ? z[
|
|
3251
|
+
typeof ce == "number" && ce === 0 || ce ? z[G] && z[G]({
|
|
3252
3252
|
val: ce,
|
|
3253
3253
|
prop: o.prop,
|
|
3254
3254
|
scope: o.scope
|
|
3255
|
-
}) : z[
|
|
3255
|
+
}) : z[G] && z[G]({ prop: o.prop, scope: o.scope });
|
|
3256
3256
|
};
|
|
3257
3257
|
}), { ...P };
|
|
3258
3258
|
}), D = x({
|
|
@@ -3323,7 +3323,7 @@ const dr = /* @__PURE__ */ le({
|
|
|
3323
3323
|
case "select-obj":
|
|
3324
3324
|
return y;
|
|
3325
3325
|
}
|
|
3326
|
-
}), $ =
|
|
3326
|
+
}), $ = X(), w = () => {
|
|
3327
3327
|
o.isClickEdit && (s.value = !0, Rn(() => {
|
|
3328
3328
|
let m = $.value;
|
|
3329
3329
|
m && m.focus && m.focus();
|
|
@@ -3438,11 +3438,11 @@ const dr = /* @__PURE__ */ le({
|
|
|
3438
3438
|
default: N(() => [
|
|
3439
3439
|
q(m.$slots, "editChild"),
|
|
3440
3440
|
m.$slots.editChild ? k("", !0) : (h(), C("div", os, [
|
|
3441
|
-
(h(!0), C(ee, null, Te(e.listTypeInfo[e.configEdit.list], (P,
|
|
3442
|
-
key:
|
|
3441
|
+
(h(!0), C(ee, null, Te(e.listTypeInfo[e.configEdit.list], (P, G) => (h(), A(Pe(b.value(e.configEdit)), {
|
|
3442
|
+
key: G,
|
|
3443
3443
|
disabled: P.disabled,
|
|
3444
3444
|
label: p.value(e.configEdit, P),
|
|
3445
|
-
value: j.value(e.configEdit, P,
|
|
3445
|
+
value: j.value(e.configEdit, P, G)
|
|
3446
3446
|
}, {
|
|
3447
3447
|
default: N(() => [
|
|
3448
3448
|
Be(W(O.value(e.configEdit, P)), 1)
|
|
@@ -3453,10 +3453,10 @@ const dr = /* @__PURE__ */ le({
|
|
|
3453
3453
|
]),
|
|
3454
3454
|
_: 2
|
|
3455
3455
|
}, [
|
|
3456
|
-
Te(_(a), (P,
|
|
3457
|
-
name:
|
|
3456
|
+
Te(_(a), (P, G) => ({
|
|
3457
|
+
name: G,
|
|
3458
3458
|
fn: N((ce) => [
|
|
3459
|
-
q(m.$slots,
|
|
3459
|
+
q(m.$slots, G, rt(un(ce)))
|
|
3460
3460
|
])
|
|
3461
3461
|
})),
|
|
3462
3462
|
e.configEdit.prepend ? {
|
|
@@ -3492,12 +3492,12 @@ const dr = /* @__PURE__ */ le({
|
|
|
3492
3492
|
},
|
|
3493
3493
|
emits: ["columnSetting"],
|
|
3494
3494
|
setup(e, { expose: t, emit: n }) {
|
|
3495
|
-
const o = e, r =
|
|
3495
|
+
const o = e, r = X(), a = No(), l = x(() => {
|
|
3496
3496
|
const O = { btnTxt: "列设置", title: "列设置", ...o.columnSetBind };
|
|
3497
3497
|
return { size: "default", icon: "Setting", isShowTitle: !0, ...a, ...O };
|
|
3498
3498
|
}), s = n, u = xo({
|
|
3499
3499
|
columnSet: []
|
|
3500
|
-
}), f =
|
|
3500
|
+
}), f = X([]), g = () => {
|
|
3501
3501
|
let O = localStorage.getItem(`t-ui-plus:TTable.columnSet-${o.name || o.title}`) || "[]", $ = d(), w = JSON.parse(O) || [];
|
|
3502
3502
|
return $.forEach((T) => {
|
|
3503
3503
|
let I = w.find(
|
|
@@ -3772,7 +3772,7 @@ const dr = /* @__PURE__ */ le({
|
|
|
3772
3772
|
}
|
|
3773
3773
|
});
|
|
3774
3774
|
function ds() {
|
|
3775
|
-
const e =
|
|
3775
|
+
const e = X(null), t = X(null), n = X(null), o = X([]), r = {}, a = () => {
|
|
3776
3776
|
e.value = document.querySelector(
|
|
3777
3777
|
".t_table_use_virtual .el-scrollbar__view"
|
|
3778
3778
|
), t.value = document.querySelector(".t_table_use_virtual .el-table__body"), n.value = document.querySelector(".t_table_use_virtual .el-scrollbar__wrap");
|
|
@@ -3805,7 +3805,7 @@ function ds() {
|
|
|
3805
3805
|
};
|
|
3806
3806
|
}
|
|
3807
3807
|
function fs() {
|
|
3808
|
-
const e =
|
|
3808
|
+
const e = X(null);
|
|
3809
3809
|
return {
|
|
3810
3810
|
TTable: e,
|
|
3811
3811
|
clearSelection: () => e.value.clearSelection(),
|
|
@@ -4036,11 +4036,11 @@ const ps = {
|
|
|
4036
4036
|
copyTableData: []
|
|
4037
4037
|
// 键盘事件
|
|
4038
4038
|
});
|
|
4039
|
-
const z = x(() => m.isEmptyDataRequired ? y.tableData.length > 0 : !0), P =
|
|
4039
|
+
const z = x(() => m.isEmptyDataRequired ? y.tableData.length > 0 : !0), P = X(""), G = X(!0), ce = X(null), F = X(null), Q = X({}), ze = (i, v, L) => {
|
|
4040
4040
|
i && (Q.value[`formRef-${v.$index}-${L.prop || v.column.property}`] = i);
|
|
4041
|
-
}, ve =
|
|
4041
|
+
}, ve = X({}), ut = (i, v, L) => {
|
|
4042
4042
|
i && (ve.value[`singleEditRef-${v.$index}-${L.prop || v.column.property}`] = i);
|
|
4043
|
-
}, de = n,
|
|
4043
|
+
}, de = n, Ke = jn();
|
|
4044
4044
|
Ue(
|
|
4045
4045
|
() => m.tableData,
|
|
4046
4046
|
(i) => {
|
|
@@ -4124,11 +4124,11 @@ const ps = {
|
|
|
4124
4124
|
break;
|
|
4125
4125
|
}
|
|
4126
4126
|
}, mr = () => {
|
|
4127
|
-
|
|
4128
|
-
|
|
4127
|
+
G.value = !1, setTimeout(() => {
|
|
4128
|
+
G.value = !0;
|
|
4129
4129
|
}, 0);
|
|
4130
4130
|
}, Jn = (i, v) => {
|
|
4131
|
-
|
|
4131
|
+
G.value = !G.value, P.value === v ? P.value = null : P.value = v, mr(), de("radioChange", P.value ? i : null, P.value);
|
|
4132
4132
|
}, Zn = (i, v) => {
|
|
4133
4133
|
i?.isRadioDisabled || m.rowClickRadio || Jn(i, v);
|
|
4134
4134
|
}, br = (i) => {
|
|
@@ -4154,7 +4154,7 @@ const ps = {
|
|
|
4154
4154
|
} catch (Z) {
|
|
4155
4155
|
Qn("error", Z.message || "复制失败");
|
|
4156
4156
|
}
|
|
4157
|
-
}, Vt = (i) => Object.keys(
|
|
4157
|
+
}, Vt = (i) => Object.keys(Ke).includes(i), eo = () => new Promise((i) => {
|
|
4158
4158
|
if (!ct.value) {
|
|
4159
4159
|
de("save", y.tableData), i(y.tableData);
|
|
4160
4160
|
return;
|
|
@@ -4353,7 +4353,7 @@ const ps = {
|
|
|
4353
4353
|
size: i.rowSortIconBind.size
|
|
4354
4354
|
}, {
|
|
4355
4355
|
default: N(() => [
|
|
4356
|
-
ie(_(
|
|
4356
|
+
ie(_(Kr))
|
|
4357
4357
|
]),
|
|
4358
4358
|
_: 1
|
|
4359
4359
|
}, 8, ["color", "size"])
|
|
@@ -4452,7 +4452,7 @@ const ps = {
|
|
|
4452
4452
|
item: c,
|
|
4453
4453
|
align: i.align
|
|
4454
4454
|
}, { ref_for: !0 }, i.$attrs, { sortable: i.sortable }), _e({ _: 2 }, [
|
|
4455
|
-
Te(_(
|
|
4455
|
+
Te(_(Ke), (J, fe) => ({
|
|
4456
4456
|
name: fe,
|
|
4457
4457
|
fn: N((Qe) => [
|
|
4458
4458
|
q(i.$slots, fe, V({ ref_for: !0 }, Qe), void 0, !0)
|
|
@@ -4516,7 +4516,7 @@ const ps = {
|
|
|
4516
4516
|
onHandleEvent: (fe) => Er(fe, J.$index),
|
|
4517
4517
|
onKeyupHandle: gr
|
|
4518
4518
|
}, { ref_for: !0 }, i.$attrs), _e({ _: 2 }, [
|
|
4519
|
-
Te(_(
|
|
4519
|
+
Te(_(Ke), (fe, Qe) => ({
|
|
4520
4520
|
name: Qe,
|
|
4521
4521
|
fn: N((hn) => [
|
|
4522
4522
|
q(i.$slots, Qe, V({ ref_for: !0 }, hn), void 0, !0)
|
|
@@ -4536,7 +4536,7 @@ const ps = {
|
|
|
4536
4536
|
ref_for: !0,
|
|
4537
4537
|
ref: "editClickCell"
|
|
4538
4538
|
}), _e({ _: 2 }, [
|
|
4539
|
-
Te(_(
|
|
4539
|
+
Te(_(Ke), (fe, Qe) => ({
|
|
4540
4540
|
name: Qe,
|
|
4541
4541
|
fn: N((hn) => [
|
|
4542
4542
|
q(i.$slots, Qe, V({ ref_for: !0 }, hn), void 0, !0)
|
|
@@ -4632,7 +4632,7 @@ const ps = {
|
|
|
4632
4632
|
]),
|
|
4633
4633
|
_: 2
|
|
4634
4634
|
}, [
|
|
4635
|
-
Te(_(
|
|
4635
|
+
Te(_(Ke), (c, Ne) => ({
|
|
4636
4636
|
name: Ne,
|
|
4637
4637
|
fn: N((J) => [
|
|
4638
4638
|
q(i.$slots, Ne, rt(un(J)), void 0, !0)
|
|
@@ -4667,7 +4667,7 @@ const ps = {
|
|
|
4667
4667
|
style: We({ textAlign: i.footerBtnAlign })
|
|
4668
4668
|
}, [
|
|
4669
4669
|
q(i.$slots, "footer", {}, void 0, !0),
|
|
4670
|
-
_(
|
|
4670
|
+
_(Ke).footer ? k("", !0) : (h(), C("div", _s, [
|
|
4671
4671
|
ie(je, {
|
|
4672
4672
|
type: "primary",
|
|
4673
4673
|
onClick: eo
|
|
@@ -4689,9 +4689,9 @@ const ps = {
|
|
|
4689
4689
|
for (const [o, r] of t)
|
|
4690
4690
|
n[o] = r;
|
|
4691
4691
|
return n;
|
|
4692
|
-
}, Ns = /* @__PURE__ */ Is(Os, [["__scopeId", "data-v-
|
|
4693
|
-
|
|
4694
|
-
|
|
4692
|
+
}, Ns = /* @__PURE__ */ Is(Os, [["__scopeId", "data-v-09defa6b"]]), To = {
|
|
4693
|
+
GyButton: Ar,
|
|
4694
|
+
GyTable: Ns
|
|
4695
4695
|
}, xs = (e) => {
|
|
4696
4696
|
for (const t in To)
|
|
4697
4697
|
e.component(t, To[t]);
|
|
@@ -4702,7 +4702,7 @@ const ps = {
|
|
|
4702
4702
|
install: Ps
|
|
4703
4703
|
};
|
|
4704
4704
|
export {
|
|
4705
|
-
Ar as
|
|
4706
|
-
Ns as
|
|
4705
|
+
Ar as GyButton,
|
|
4706
|
+
Ns as GyTable,
|
|
4707
4707
|
Ms as default
|
|
4708
4708
|
};
|