@das-fed/upf-ui 6.4.0-dev.125 → 6.4.0-dev.127
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/package.json +5 -5
- package/packages/components/image-viewer/index.js +265 -265
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/select-list/index.js +150 -167
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
|
@@ -5,7 +5,7 @@ import { getVar as ut, setThemeRule as _i } from "@das-fed/upf-web/packages/them
|
|
|
5
5
|
import { ElInfiniteScroll as Ei } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
7
7
|
import "element-plus/es/components/infinite-scroll/style/css";
|
|
8
|
-
import { pushScopeId as Di, popScopeId as Ii, nextTick as et, withScopeId as Ti, createBlock as
|
|
8
|
+
import { pushScopeId as Di, popScopeId as Ii, nextTick as et, withScopeId as Ti, createBlock as le, openBlock as k, markRaw as Ci, shallowReactive as Oi, resolveComponent as Ai, resolveDirective as zi, withDirectives as Se, createElementBlock as W, normalizeClass as oe, createCommentVNode as G, createVNode as ki, renderSlot as he, resolveDynamicComponent as Rt, normalizeStyle as Jt, withCtx as tt, Fragment as _t, renderList as Et, mergeProps as Pi, toHandlers as Ni, ref as Pe, computed as Ne, onMounted as Zt, onBeforeUnmount as $i, watch as Ft, defineComponent as Mi, useCssVars as xi, createElementVNode as Ce, toDisplayString as Oe, unref as w, createTextVNode as Le } from "vue";
|
|
9
9
|
import { vDasTooltip as dt } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
|
|
10
10
|
import { DasButton as Vi } from "@das-fed/upf-ui/packages/components/button/index";
|
|
11
11
|
import { vOverlay as Ri } from "@das-fed/upf-ui/packages/components/overlay/index";
|
|
@@ -85,7 +85,7 @@ const Yi = {
|
|
|
85
85
|
tabindex: "-1"
|
|
86
86
|
};
|
|
87
87
|
Ii();
|
|
88
|
-
const Xi = /* @__PURE__ */ Bi((t, e, i, n, r, o) => (k(),
|
|
88
|
+
const Xi = /* @__PURE__ */ Bi((t, e, i, n, r, o) => (k(), le("div", Yi)));
|
|
89
89
|
at.render = Xi;
|
|
90
90
|
at.__scopeId = "data-v-b329ee4c";
|
|
91
91
|
at.__file = "src/components/ResizeObserver.vue";
|
|
@@ -530,10 +530,10 @@ var Pt = {
|
|
|
530
530
|
I.end += z;
|
|
531
531
|
}
|
|
532
532
|
if (i === null) {
|
|
533
|
-
let z, J = 0,
|
|
533
|
+
let z, J = 0, de = u - 1, F = ~~(u / 2), me;
|
|
534
534
|
do
|
|
535
|
-
|
|
536
|
-
while (F !==
|
|
535
|
+
me = F, z = c[F].accumulator, z < I.start ? J = F : F < u - 1 && c[F + 1].accumulator > I.start && (de = F), F = ~~((J + de) / 2);
|
|
536
|
+
while (F !== me);
|
|
537
537
|
for (F < 0 && (F = 0), g = F, V = c[u - 1].accumulator, D = F; D < u && c[D].accumulator < I.end; D++) ;
|
|
538
538
|
for (D === -1 ? D = s.length - 1 : (D++, D > u && (D = u)), O = g; O < u && N + c[O].accumulator < I.start; O++) ;
|
|
539
539
|
for (p = O; p < u && N + c[p].accumulator < I.end; p++) ;
|
|
@@ -643,10 +643,10 @@ const fn = {
|
|
|
643
643
|
};
|
|
644
644
|
function pn(t, e, i, n, r, o) {
|
|
645
645
|
const l = Ai("ResizeObserver"), a = zi("observe-visibility");
|
|
646
|
-
return
|
|
646
|
+
return Se((k(), W(
|
|
647
647
|
"div",
|
|
648
648
|
{
|
|
649
|
-
class:
|
|
649
|
+
class: oe(["vue-recycle-scroller", {
|
|
650
650
|
ready: r.ready,
|
|
651
651
|
"page-mode": i.pageMode,
|
|
652
652
|
[`direction-${t.direction}`]: !0
|
|
@@ -658,21 +658,21 @@ function pn(t, e, i, n, r, o) {
|
|
|
658
658
|
"div",
|
|
659
659
|
fn,
|
|
660
660
|
[
|
|
661
|
-
|
|
661
|
+
he(t.$slots, "before")
|
|
662
662
|
],
|
|
663
663
|
512
|
|
664
664
|
/* NEED_PATCH */
|
|
665
665
|
)) : G("v-if", !0),
|
|
666
|
-
(k(),
|
|
666
|
+
(k(), le(Rt(i.listTag), {
|
|
667
667
|
ref: "wrapper",
|
|
668
668
|
style: Jt({ [t.direction === "vertical" ? "minHeight" : "minWidth"]: r.totalSize + "px" }),
|
|
669
|
-
class:
|
|
669
|
+
class: oe(["vue-recycle-scroller__item-wrapper", i.listClass])
|
|
670
670
|
}, {
|
|
671
671
|
default: tt(() => [
|
|
672
672
|
(k(!0), W(
|
|
673
673
|
_t,
|
|
674
674
|
null,
|
|
675
|
-
Et(r.pool, (s) => (k(),
|
|
675
|
+
Et(r.pool, (s) => (k(), le(Rt(i.itemTag), Pi({
|
|
676
676
|
key: s.nr.id,
|
|
677
677
|
style: r.ready ? {
|
|
678
678
|
transform: `translate${t.direction === "vertical" ? "Y" : "X"}(${s.position}px) translate${t.direction === "vertical" ? "X" : "Y"}(${s.offset}px)`,
|
|
@@ -694,7 +694,7 @@ function pn(t, e, i, n, r, o) {
|
|
|
694
694
|
}
|
|
695
695
|
})), {
|
|
696
696
|
default: tt(() => [
|
|
697
|
-
|
|
697
|
+
he(t.$slots, "default", {
|
|
698
698
|
item: s.item,
|
|
699
699
|
index: s.nr.index,
|
|
700
700
|
active: s.nr.used
|
|
@@ -706,7 +706,7 @@ function pn(t, e, i, n, r, o) {
|
|
|
706
706
|
128
|
|
707
707
|
/* KEYED_FRAGMENT */
|
|
708
708
|
)),
|
|
709
|
-
|
|
709
|
+
he(t.$slots, "empty")
|
|
710
710
|
]),
|
|
711
711
|
_: 3
|
|
712
712
|
/* FORWARDED */
|
|
@@ -715,7 +715,7 @@ function pn(t, e, i, n, r, o) {
|
|
|
715
715
|
"div",
|
|
716
716
|
hn,
|
|
717
717
|
[
|
|
718
|
-
|
|
718
|
+
he(t.$slots, "after")
|
|
719
719
|
],
|
|
720
720
|
512
|
|
721
721
|
/* NEED_PATCH */
|
|
@@ -731,7 +731,12 @@ function pn(t, e, i, n, r, o) {
|
|
|
731
731
|
Pt.render = pn;
|
|
732
732
|
Pt.__file = "src/components/RecycleScroller.vue";
|
|
733
733
|
const mn = (t, e) => {
|
|
734
|
-
const i = Pe(), n = Pe(), r = Qt(t, "modelValue"), o = t.valueKey, l = Ne(() => t.selectedNum ? t.selectedNum : `${t.customTitle || je("das-select-list-selected").value}${je("das-select-list-parentheses-left").value}${r.value.length}${je("das-select-list-parentheses-right").value}`), a = Ne(() => ({
|
|
734
|
+
const i = Pe(), n = Pe(), r = Qt(t, "modelValue"), o = t.valueKey, l = Ne(() => t.selectedNum ? t.selectedNum : `${t.customTitle || je("das-select-list-selected").value}${je("das-select-list-parentheses-left").value}${r.value.length}${je("das-select-list-parentheses-right").value}`), a = Ne(() => ({
|
|
735
|
+
disabled: "disabled",
|
|
736
|
+
disableDrag: "disableDrag",
|
|
737
|
+
disableDelete: "disableDelete",
|
|
738
|
+
...t.props
|
|
739
|
+
})), s = (p) => {
|
|
735
740
|
let d = !1;
|
|
736
741
|
return typeof a.value.disabled == "string" ? d = p[a.value.disabled] : d = a.value.disabled(p) ?? !1, d;
|
|
737
742
|
}, u = (p) => {
|
|
@@ -839,15 +844,15 @@ function gn(t, e, i) {
|
|
|
839
844
|
writable: !0
|
|
840
845
|
}) : t[e] = i, t;
|
|
841
846
|
}
|
|
842
|
-
function
|
|
843
|
-
return
|
|
847
|
+
function se() {
|
|
848
|
+
return se = Object.assign || function(t) {
|
|
844
849
|
for (var e = 1; e < arguments.length; e++) {
|
|
845
850
|
var i = arguments[e];
|
|
846
851
|
for (var n in i)
|
|
847
852
|
Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]);
|
|
848
853
|
}
|
|
849
854
|
return t;
|
|
850
|
-
},
|
|
855
|
+
}, se.apply(this, arguments);
|
|
851
856
|
}
|
|
852
857
|
function vn(t, e) {
|
|
853
858
|
if (t == null) return {};
|
|
@@ -867,19 +872,19 @@ function bn(t, e) {
|
|
|
867
872
|
return i;
|
|
868
873
|
}
|
|
869
874
|
var yn = "1.15.6";
|
|
870
|
-
function
|
|
875
|
+
function ae(t) {
|
|
871
876
|
if (typeof window < "u" && window.navigator)
|
|
872
877
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
873
878
|
}
|
|
874
|
-
var
|
|
879
|
+
var ue = ae(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Fe = ae(/Edge/i), Yt = ae(/firefox/i), $e = ae(/safari/i) && !ae(/chrome/i) && !ae(/android/i), Nt = ae(/iP(ad|od|hone)/i), ri = ae(/chrome/i) && ae(/android/i), oi = {
|
|
875
880
|
capture: !1,
|
|
876
881
|
passive: !1
|
|
877
882
|
};
|
|
878
883
|
function C(t, e, i) {
|
|
879
|
-
t.addEventListener(e, i, !
|
|
884
|
+
t.addEventListener(e, i, !ue && oi);
|
|
880
885
|
}
|
|
881
886
|
function T(t, e, i) {
|
|
882
|
-
t.removeEventListener(e, i, !
|
|
887
|
+
t.removeEventListener(e, i, !ue && oi);
|
|
883
888
|
}
|
|
884
889
|
function it(t, e) {
|
|
885
890
|
if (e) {
|
|
@@ -929,7 +934,7 @@ function b(t, e, i) {
|
|
|
929
934
|
!(e in n) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), n[e] = i + (typeof i == "string" ? "" : "px");
|
|
930
935
|
}
|
|
931
936
|
}
|
|
932
|
-
function
|
|
937
|
+
function De(t, e) {
|
|
933
938
|
var i = "";
|
|
934
939
|
if (typeof t == "string")
|
|
935
940
|
i = t;
|
|
@@ -958,7 +963,7 @@ function ne() {
|
|
|
958
963
|
function L(t, e, i, n, r) {
|
|
959
964
|
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
960
965
|
var o, l, a, s, u, c, f;
|
|
961
|
-
if (t !== window && t.parentNode && t !== ne() ? (o = t.getBoundingClientRect(), l = o.top, a = o.left, s = o.bottom, u = o.right, c = o.height, f = o.width) : (l = 0, a = 0, s = window.innerHeight, u = window.innerWidth, c = window.innerHeight, f = window.innerWidth), (e || i) && t !== window && (r = r || t.parentNode, !
|
|
966
|
+
if (t !== window && t.parentNode && t !== ne() ? (o = t.getBoundingClientRect(), l = o.top, a = o.left, s = o.bottom, u = o.right, c = o.height, f = o.width) : (l = 0, a = 0, s = window.innerHeight, u = window.innerWidth, c = window.innerHeight, f = window.innerWidth), (e || i) && t !== window && (r = r || t.parentNode, !ue))
|
|
962
967
|
do
|
|
963
968
|
if (r && r.getBoundingClientRect && (b(r, "transform") !== "none" || i && b(r, "position") !== "static")) {
|
|
964
969
|
var m = r.getBoundingClientRect();
|
|
@@ -967,7 +972,7 @@ function L(t, e, i, n, r) {
|
|
|
967
972
|
}
|
|
968
973
|
while (r = r.parentNode);
|
|
969
974
|
if (n && t !== window) {
|
|
970
|
-
var E =
|
|
975
|
+
var E = De(r || t), _ = E && E.a, g = E && E.d;
|
|
971
976
|
E && (l /= g, a /= _, f /= _, c /= g, s = l + c, u = a + f);
|
|
972
977
|
}
|
|
973
978
|
return {
|
|
@@ -981,15 +986,15 @@ function L(t, e, i, n, r) {
|
|
|
981
986
|
}
|
|
982
987
|
}
|
|
983
988
|
function Wt(t, e, i) {
|
|
984
|
-
for (var n =
|
|
989
|
+
for (var n = pe(t, !0), r = L(t)[e]; n; ) {
|
|
985
990
|
var o = L(n)[i], l = void 0;
|
|
986
991
|
if (l = r >= o, !l) return n;
|
|
987
992
|
if (n === ne()) break;
|
|
988
|
-
n =
|
|
993
|
+
n = pe(n, !1);
|
|
989
994
|
}
|
|
990
995
|
return !1;
|
|
991
996
|
}
|
|
992
|
-
function
|
|
997
|
+
function Ie(t, e, i, n) {
|
|
993
998
|
for (var r = 0, o = 0, l = t.children; o < l.length; ) {
|
|
994
999
|
if (l[o].style.display !== "none" && l[o] !== y.ghost && (n || l[o] !== y.dragged) && ie(l[o], i.draggable, t, !1)) {
|
|
995
1000
|
if (r === e)
|
|
@@ -1017,7 +1022,7 @@ function jt(t) {
|
|
|
1017
1022
|
var e = 0, i = 0, n = ne();
|
|
1018
1023
|
if (t)
|
|
1019
1024
|
do {
|
|
1020
|
-
var r =
|
|
1025
|
+
var r = De(t), o = r.a, l = r.d;
|
|
1021
1026
|
e += t.scrollLeft * o, i += t.scrollTop * l;
|
|
1022
1027
|
} while (t !== n && (t = t.parentNode));
|
|
1023
1028
|
return [e, i];
|
|
@@ -1030,7 +1035,7 @@ function wn(t, e) {
|
|
|
1030
1035
|
}
|
|
1031
1036
|
return -1;
|
|
1032
1037
|
}
|
|
1033
|
-
function
|
|
1038
|
+
function pe(t, e) {
|
|
1034
1039
|
if (!t || !t.getBoundingClientRect) return ne();
|
|
1035
1040
|
var i = t, n = !1;
|
|
1036
1041
|
do
|
|
@@ -1100,7 +1105,7 @@ function En() {
|
|
|
1100
1105
|
});
|
|
1101
1106
|
var o = re({}, t[t.length - 1].rect);
|
|
1102
1107
|
if (r.thisAnimationDuration) {
|
|
1103
|
-
var l =
|
|
1108
|
+
var l = De(r, !0);
|
|
1104
1109
|
l && (o.top -= l.f, o.left -= l.e);
|
|
1105
1110
|
}
|
|
1106
1111
|
r.fromRect = o;
|
|
@@ -1124,7 +1129,7 @@ function En() {
|
|
|
1124
1129
|
}
|
|
1125
1130
|
var o = !1, l = 0;
|
|
1126
1131
|
t.forEach(function(a) {
|
|
1127
|
-
var s = 0, u = a.target, c = u.fromRect, f = L(u), m = u.prevFromRect, E = u.prevToRect, _ = a.rect, g =
|
|
1132
|
+
var s = 0, u = a.target, c = u.fromRect, f = L(u), m = u.prevFromRect, E = u.prevToRect, _ = a.rect, g = De(u, !0);
|
|
1128
1133
|
g && (f.top -= g.f, f.left -= g.e), u.toRect = f, u.thisAnimationDuration && ht(m, f) && !ht(c, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1129
1134
|
(_.top - f.top) / (_.left - f.left) === (c.top - f.top) / (c.left - f.left) && (s = In(_, m, E, r.options)), ht(f, c) || (u.prevFromRect = c, u.prevToRect = f, s || (s = r.options.animation), r.animate(u, _, f, s)), s && (o = !0, l = Math.max(l, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
1130
1135
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
@@ -1136,7 +1141,7 @@ function En() {
|
|
|
1136
1141
|
animate: function(n, r, o, l) {
|
|
1137
1142
|
if (l) {
|
|
1138
1143
|
b(n, "transition", ""), b(n, "transform", "");
|
|
1139
|
-
var a =
|
|
1144
|
+
var a = De(this.el), s = a && a.a, u = a && a.d, c = (r.left - o.left) / (s || 1), f = (r.top - o.top) / (u || 1);
|
|
1140
1145
|
n.animatingX = !!c, n.animatingY = !!f, b(n, "transform", "translate3d(" + c + "px," + f + "px,0)"), this.forRepaintDummy = Dn(n), b(n, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
1141
1146
|
b(n, "transition", ""), b(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1142
1147
|
}, l);
|
|
@@ -1150,16 +1155,16 @@ function Dn(t) {
|
|
|
1150
1155
|
function In(t, e, i, n) {
|
|
1151
1156
|
return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - i.top, 2) + Math.pow(e.left - i.left, 2)) * n.animation;
|
|
1152
1157
|
}
|
|
1153
|
-
var
|
|
1158
|
+
var ye = [], pt = {
|
|
1154
1159
|
initializeByDefault: !0
|
|
1155
1160
|
}, He = {
|
|
1156
1161
|
mount: function(e) {
|
|
1157
1162
|
for (var i in pt)
|
|
1158
1163
|
pt.hasOwnProperty(i) && !(i in e) && (e[i] = pt[i]);
|
|
1159
|
-
|
|
1164
|
+
ye.forEach(function(n) {
|
|
1160
1165
|
if (n.pluginName === e.pluginName)
|
|
1161
1166
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
1162
|
-
}),
|
|
1167
|
+
}), ye.push(e);
|
|
1163
1168
|
},
|
|
1164
1169
|
pluginEvent: function(e, i, n) {
|
|
1165
1170
|
var r = this;
|
|
@@ -1167,7 +1172,7 @@ var we = [], pt = {
|
|
|
1167
1172
|
r.eventCanceled = !0;
|
|
1168
1173
|
};
|
|
1169
1174
|
var o = e + "Global";
|
|
1170
|
-
|
|
1175
|
+
ye.forEach(function(l) {
|
|
1171
1176
|
i[l.pluginName] && (i[l.pluginName][o] && i[l.pluginName][o](re({
|
|
1172
1177
|
sortable: i
|
|
1173
1178
|
}, n)), i.options[l.pluginName] && i[l.pluginName][e] && i[l.pluginName][e](re({
|
|
@@ -1176,11 +1181,11 @@ var we = [], pt = {
|
|
|
1176
1181
|
});
|
|
1177
1182
|
},
|
|
1178
1183
|
initializePlugins: function(e, i, n, r) {
|
|
1179
|
-
|
|
1184
|
+
ye.forEach(function(a) {
|
|
1180
1185
|
var s = a.pluginName;
|
|
1181
1186
|
if (!(!e.options[s] && !a.initializeByDefault)) {
|
|
1182
1187
|
var u = new a(e, i, e.options);
|
|
1183
|
-
u.sortable = e, u.options = e.options, e[s] = u,
|
|
1188
|
+
u.sortable = e, u.options = e.options, e[s] = u, se(n, u.defaults);
|
|
1184
1189
|
}
|
|
1185
1190
|
});
|
|
1186
1191
|
for (var o in e.options)
|
|
@@ -1191,13 +1196,13 @@ var we = [], pt = {
|
|
|
1191
1196
|
},
|
|
1192
1197
|
getEventProperties: function(e, i) {
|
|
1193
1198
|
var n = {};
|
|
1194
|
-
return
|
|
1195
|
-
typeof r.eventProperties == "function" &&
|
|
1199
|
+
return ye.forEach(function(r) {
|
|
1200
|
+
typeof r.eventProperties == "function" && se(n, r.eventProperties.call(i[r.pluginName], e));
|
|
1196
1201
|
}), n;
|
|
1197
1202
|
},
|
|
1198
1203
|
modifyOption: function(e, i, n) {
|
|
1199
1204
|
var r;
|
|
1200
|
-
return
|
|
1205
|
+
return ye.forEach(function(o) {
|
|
1201
1206
|
e[o.pluginName] && o.optionListeners && typeof o.optionListeners[i] == "function" && (r = o.optionListeners[i].call(e[o.pluginName], n));
|
|
1202
1207
|
}), r;
|
|
1203
1208
|
}
|
|
@@ -1206,7 +1211,7 @@ function Tn(t) {
|
|
|
1206
1211
|
var e = t.sortable, i = t.rootEl, n = t.name, r = t.targetEl, o = t.cloneEl, l = t.toEl, a = t.fromEl, s = t.oldIndex, u = t.newIndex, c = t.oldDraggableIndex, f = t.newDraggableIndex, m = t.originalEvent, E = t.putSortable, _ = t.extraEventProperties;
|
|
1207
1212
|
if (e = e || i && i[q], !!e) {
|
|
1208
1213
|
var g, D = e.options, V = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
1209
|
-
window.CustomEvent && !
|
|
1214
|
+
window.CustomEvent && !ue && !Fe ? g = new CustomEvent(n, {
|
|
1210
1215
|
bubbles: !0,
|
|
1211
1216
|
cancelable: !0
|
|
1212
1217
|
}) : (g = document.createEvent("Event"), g.initEvent(n, !0, !0)), g.to = l || i, g.from = a || i, g.item = r || i, g.clone = o, g.oldIndex = s, g.newIndex = u, g.oldDraggableIndex = c, g.newDraggableIndex = f, g.originalEvent = m, g.pullMode = E ? E.lastPutMode : void 0;
|
|
@@ -1223,25 +1228,25 @@ var Cn = ["evt"], U = function(e, i) {
|
|
|
1223
1228
|
parentEl: x,
|
|
1224
1229
|
ghostEl: S,
|
|
1225
1230
|
rootEl: P,
|
|
1226
|
-
nextEl:
|
|
1231
|
+
nextEl: be,
|
|
1227
1232
|
lastDownEl: qe,
|
|
1228
1233
|
cloneEl: $,
|
|
1229
|
-
cloneHidden:
|
|
1234
|
+
cloneHidden: fe,
|
|
1230
1235
|
dragStarted: Ae,
|
|
1231
1236
|
putSortable: X,
|
|
1232
1237
|
activeSortable: y.active,
|
|
1233
1238
|
originalEvent: r,
|
|
1234
|
-
oldIndex:
|
|
1239
|
+
oldIndex: Ee,
|
|
1235
1240
|
oldDraggableIndex: xe,
|
|
1236
1241
|
newIndex: Q,
|
|
1237
|
-
newDraggableIndex:
|
|
1242
|
+
newDraggableIndex: ce,
|
|
1238
1243
|
hideGhostForTarget: mi,
|
|
1239
1244
|
unhideGhostForTarget: gi,
|
|
1240
1245
|
cloneNowHidden: function() {
|
|
1241
|
-
|
|
1246
|
+
fe = !0;
|
|
1242
1247
|
},
|
|
1243
1248
|
cloneNowShown: function() {
|
|
1244
|
-
|
|
1249
|
+
fe = !1;
|
|
1245
1250
|
},
|
|
1246
1251
|
dispatchSortableEvent: function(a) {
|
|
1247
1252
|
K({
|
|
@@ -1258,21 +1263,21 @@ function K(t) {
|
|
|
1258
1263
|
cloneEl: $,
|
|
1259
1264
|
targetEl: h,
|
|
1260
1265
|
rootEl: P,
|
|
1261
|
-
oldIndex:
|
|
1266
|
+
oldIndex: Ee,
|
|
1262
1267
|
oldDraggableIndex: xe,
|
|
1263
1268
|
newIndex: Q,
|
|
1264
|
-
newDraggableIndex:
|
|
1269
|
+
newDraggableIndex: ce
|
|
1265
1270
|
}, t));
|
|
1266
1271
|
}
|
|
1267
|
-
var h, x, S, P,
|
|
1272
|
+
var h, x, S, P, be, qe, $, fe, Ee, Q, xe, ce, Be, X, _e = !1, nt = !1, rt = [], ge, te, mt, gt, Kt, Gt, Ae, we, Ve, Re = !1, Ye = !1, Je, j, vt = [], Ot = !1, ot = [], st = typeof document < "u", Xe = Nt, Ut = Fe || ue ? "cssFloat" : "float", On = st && !ri && !Nt && "draggable" in document.createElement("div"), fi = function() {
|
|
1268
1273
|
if (st) {
|
|
1269
|
-
if (
|
|
1274
|
+
if (ue)
|
|
1270
1275
|
return !1;
|
|
1271
1276
|
var t = document.createElement("x");
|
|
1272
1277
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
1273
1278
|
}
|
|
1274
1279
|
}(), hi = function(e, i) {
|
|
1275
|
-
var n = b(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o =
|
|
1280
|
+
var n = b(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = Ie(e, 0, i), l = Ie(e, 1, i), a = o && b(o), s = l && b(l), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + L(o).width, c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + L(l).width;
|
|
1276
1281
|
if (n.display === "flex")
|
|
1277
1282
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1278
1283
|
if (n.display === "grid")
|
|
@@ -1324,7 +1329,7 @@ st && !ri && document.addEventListener("click", function(t) {
|
|
|
1324
1329
|
if (nt)
|
|
1325
1330
|
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), nt = !1, !1;
|
|
1326
1331
|
}, !0);
|
|
1327
|
-
var
|
|
1332
|
+
var ve = function(e) {
|
|
1328
1333
|
if (h) {
|
|
1329
1334
|
e = e.touches ? e.touches[0] : e;
|
|
1330
1335
|
var i = zn(e.clientX, e.clientY);
|
|
@@ -1341,7 +1346,7 @@ var be = function(e) {
|
|
|
1341
1346
|
function y(t, e) {
|
|
1342
1347
|
if (!(t && t.nodeType && t.nodeType === 1))
|
|
1343
1348
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
|
|
1344
|
-
this.el = t, this.options = e =
|
|
1349
|
+
this.el = t, this.options = e = se({}, e), t[q] = this;
|
|
1345
1350
|
var i = {
|
|
1346
1351
|
group: null,
|
|
1347
1352
|
sort: !0,
|
|
@@ -1394,13 +1399,13 @@ function y(t, e) {
|
|
|
1394
1399
|
pi(e);
|
|
1395
1400
|
for (var r in this)
|
|
1396
1401
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
1397
|
-
this.nativeDraggable = e.forceFallback ? !1 : On, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? C(t, "pointerdown", this._onTapStart) : (C(t, "mousedown", this._onTapStart), C(t, "touchstart", this._onTapStart)), this.nativeDraggable && (C(t, "dragover", this), C(t, "dragenter", this)), rt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []),
|
|
1402
|
+
this.nativeDraggable = e.forceFallback ? !1 : On, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? C(t, "pointerdown", this._onTapStart) : (C(t, "mousedown", this._onTapStart), C(t, "touchstart", this._onTapStart)), this.nativeDraggable && (C(t, "dragover", this), C(t, "dragenter", this)), rt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), se(this, En());
|
|
1398
1403
|
}
|
|
1399
1404
|
y.prototype = /** @lends Sortable.prototype */
|
|
1400
1405
|
{
|
|
1401
1406
|
constructor: y,
|
|
1402
1407
|
_isOutsideThisEl: function(e) {
|
|
1403
|
-
!this.el.contains(e) && e !== this.el && (
|
|
1408
|
+
!this.el.contains(e) && e !== this.el && (we = null);
|
|
1404
1409
|
},
|
|
1405
1410
|
_getDirection: function(e, i) {
|
|
1406
1411
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, i, h) : this.options.direction;
|
|
@@ -1409,7 +1414,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1409
1414
|
if (e.cancelable) {
|
|
1410
1415
|
var i = this, n = this.el, r = this.options, o = r.preventOnFilter, l = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (a || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, c = r.filter;
|
|
1411
1416
|
if (Fn(n), !h && !(/mousedown|pointerdown/.test(l) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && $e && s && s.tagName.toUpperCase() === "SELECT") && (s = ie(s, r.draggable, n, !1), !(s && s.animated) && qe !== s)) {
|
|
1412
|
-
if (
|
|
1417
|
+
if (Ee = ee(s), xe = ee(s, r.draggable), typeof c == "function") {
|
|
1413
1418
|
if (c.call(this, e, s, this)) {
|
|
1414
1419
|
K({
|
|
1415
1420
|
sortable: i,
|
|
@@ -1447,11 +1452,11 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1447
1452
|
var r = this, o = r.el, l = r.options, a = o.ownerDocument, s;
|
|
1448
1453
|
if (n && !h && n.parentNode === o) {
|
|
1449
1454
|
var u = L(n);
|
|
1450
|
-
if (P = o, h = n, x = h.parentNode,
|
|
1455
|
+
if (P = o, h = n, x = h.parentNode, be = h.nextSibling, qe = n, Be = l.group, y.dragged = h, ge = {
|
|
1451
1456
|
target: h,
|
|
1452
1457
|
clientX: (i || e).clientX,
|
|
1453
1458
|
clientY: (i || e).clientY
|
|
1454
|
-
}, Kt =
|
|
1459
|
+
}, Kt = ge.clientX - u.left, Gt = ge.clientY - u.top, this._lastX = (i || e).clientX, this._lastY = (i || e).clientY, h.style["will-change"] = "all", s = function() {
|
|
1455
1460
|
if (U("delayEnded", r, {
|
|
1456
1461
|
evt: e
|
|
1457
1462
|
}), y.eventCanceled) {
|
|
@@ -1465,9 +1470,9 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1465
1470
|
}), Z(h, l.chosenClass, !0);
|
|
1466
1471
|
}, l.ignore.split(",").forEach(function(c) {
|
|
1467
1472
|
ai(h, c.trim(), bt);
|
|
1468
|
-
}), C(a, "dragover",
|
|
1473
|
+
}), C(a, "dragover", ve), C(a, "mousemove", ve), C(a, "touchmove", ve), l.supportPointer ? (C(a, "pointerup", r._onDrop), !this.nativeDraggable && C(a, "pointercancel", r._onDrop)) : (C(a, "mouseup", r._onDrop), C(a, "touchend", r._onDrop), C(a, "touchcancel", r._onDrop)), Yt && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), U("delayStart", this, {
|
|
1469
1474
|
evt: e
|
|
1470
|
-
}), l.delay && (!l.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Fe ||
|
|
1475
|
+
}), l.delay && (!l.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Fe || ue))) {
|
|
1471
1476
|
if (y.eventCanceled) {
|
|
1472
1477
|
this._onDrop();
|
|
1473
1478
|
return;
|
|
@@ -1498,7 +1503,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1498
1503
|
}
|
|
1499
1504
|
},
|
|
1500
1505
|
_dragStarted: function(e, i) {
|
|
1501
|
-
if (
|
|
1506
|
+
if (_e = !1, P && h) {
|
|
1502
1507
|
U("dragStarted", this, {
|
|
1503
1508
|
evt: i
|
|
1504
1509
|
}), this.nativeDraggable && C(document, "dragover", kn);
|
|
@@ -1534,9 +1539,9 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1534
1539
|
}
|
|
1535
1540
|
},
|
|
1536
1541
|
_onTouchMove: function(e) {
|
|
1537
|
-
if (
|
|
1538
|
-
var i = this.options, n = i.fallbackTolerance, r = i.fallbackOffset, o = e.touches ? e.touches[0] : e, l = S &&
|
|
1539
|
-
if (!y.active && !
|
|
1542
|
+
if (ge) {
|
|
1543
|
+
var i = this.options, n = i.fallbackTolerance, r = i.fallbackOffset, o = e.touches ? e.touches[0] : e, l = S && De(S, !0), a = S && l && l.a, s = S && l && l.d, u = Xe && j && jt(j), c = (o.clientX - ge.clientX + r.x) / (a || 1) + (u ? u[0] - vt[0] : 0) / (a || 1), f = (o.clientY - ge.clientY + r.y) / (s || 1) + (u ? u[1] - vt[1] : 0) / (s || 1);
|
|
1544
|
+
if (!y.active && !_e) {
|
|
1540
1545
|
if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
|
|
1541
1546
|
return;
|
|
1542
1547
|
this._onDragStart(e, !0);
|
|
@@ -1580,14 +1585,14 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1580
1585
|
sortable: n,
|
|
1581
1586
|
name: "clone"
|
|
1582
1587
|
}));
|
|
1583
|
-
}), !i && Z(h, o.dragClass, !0), i ? (nt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (T(document, "mouseup", n._onDrop), T(document, "touchend", n._onDrop), T(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), C(document, "drop", n), b(h, "transform", "translateZ(0)")),
|
|
1588
|
+
}), !i && Z(h, o.dragClass, !0), i ? (nt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (T(document, "mouseup", n._onDrop), T(document, "touchend", n._onDrop), T(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), C(document, "drop", n), b(h, "transform", "translateZ(0)")), _e = !0, n._dragStartId = Ze(n._dragStarted.bind(n, i, e)), C(document, "selectstart", n), Ae = !0, window.getSelection().removeAllRanges(), $e && b(document.body, "user-select", "none");
|
|
1584
1589
|
},
|
|
1585
1590
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1586
1591
|
_onDragOver: function(e) {
|
|
1587
1592
|
var i = this.el, n = e.target, r, o, l, a = this.options, s = a.group, u = y.active, c = Be === s, f = a.sort, m = X || u, E, _ = this, g = !1;
|
|
1588
1593
|
if (Ot) return;
|
|
1589
|
-
function D(
|
|
1590
|
-
U(
|
|
1594
|
+
function D(Te, bi) {
|
|
1595
|
+
U(Te, _, re({
|
|
1591
1596
|
evt: e,
|
|
1592
1597
|
isOwner: c,
|
|
1593
1598
|
axis: E ? "vertical" : "horizontal",
|
|
@@ -1607,20 +1612,20 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1607
1612
|
function V() {
|
|
1608
1613
|
D("dragOverAnimationCapture"), _.captureAnimationState(), _ !== m && m.captureAnimationState();
|
|
1609
1614
|
}
|
|
1610
|
-
function O(
|
|
1615
|
+
function O(Te) {
|
|
1611
1616
|
return D("dragOverCompleted", {
|
|
1612
|
-
insertion:
|
|
1613
|
-
}),
|
|
1617
|
+
insertion: Te
|
|
1618
|
+
}), Te && (c ? u._hideClone() : u._showClone(_), _ !== m && (Z(h, X ? X.options.ghostClass : u.options.ghostClass, !1), Z(h, a.ghostClass, !0)), X !== _ && _ !== y.active ? X = _ : _ === y.active && X && (X = null), m === _ && (_._ignoreWhileAnimating = n), _.animateAll(function() {
|
|
1614
1619
|
D("dragOverAnimationComplete"), _._ignoreWhileAnimating = null;
|
|
1615
|
-
}), _ !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (n === h && !h.animated || n === i && !n.animated) && (
|
|
1620
|
+
}), _ !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (n === h && !h.animated || n === i && !n.animated) && (we = null), !a.dragoverBubble && !e.rootEl && n !== document && (h.parentNode[q]._isOutsideThisEl(e.target), !Te && ve(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), g = !0;
|
|
1616
1621
|
}
|
|
1617
1622
|
function p() {
|
|
1618
|
-
Q = ee(h),
|
|
1623
|
+
Q = ee(h), ce = ee(h, a.draggable), K({
|
|
1619
1624
|
sortable: _,
|
|
1620
1625
|
name: "change",
|
|
1621
1626
|
toEl: i,
|
|
1622
1627
|
newIndex: Q,
|
|
1623
|
-
newDraggableIndex:
|
|
1628
|
+
newDraggableIndex: ce,
|
|
1624
1629
|
originalEvent: e
|
|
1625
1630
|
});
|
|
1626
1631
|
}
|
|
@@ -1630,7 +1635,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1630
1635
|
if (nt = !1, u && !a.disabled && (c ? f || (l = x !== P) : X === this || (this.lastPutMode = Be.checkPull(this, u, h, e)) && s.checkPut(this, u, h, e))) {
|
|
1631
1636
|
if (E = this._getDirection(e, n) === "vertical", r = L(h), D("dragOverValid"), y.eventCanceled) return g;
|
|
1632
1637
|
if (l)
|
|
1633
|
-
return x = P, V(), this._hideClone(), D("revert"), y.eventCanceled || (
|
|
1638
|
+
return x = P, V(), this._hideClone(), D("revert"), y.eventCanceled || (be ? P.insertBefore(h, be) : P.appendChild(h)), O(!0);
|
|
1634
1639
|
var d = $t(i, a.draggable);
|
|
1635
1640
|
if (!d || Mn(e, E, this) && !d.animated) {
|
|
1636
1641
|
if (d === h)
|
|
@@ -1638,7 +1643,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1638
1643
|
if (d && i === e.target && (n = d), n && (o = L(n)), We(P, i, h, r, n, o, e, !!n) !== !1)
|
|
1639
1644
|
return V(), d && d.nextSibling ? i.insertBefore(h, d.nextSibling) : i.appendChild(h), x = i, p(), O(!0);
|
|
1640
1645
|
} else if (d && $n(e, E, this)) {
|
|
1641
|
-
var A =
|
|
1646
|
+
var A = Ie(i, 0, a, !0);
|
|
1642
1647
|
if (A === h)
|
|
1643
1648
|
return O(!1);
|
|
1644
1649
|
if (n = A, o = L(n), We(P, i, h, r, n, o, e, !1) !== !1)
|
|
@@ -1646,7 +1651,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1646
1651
|
} else if (n.parentNode === i) {
|
|
1647
1652
|
o = L(n);
|
|
1648
1653
|
var Y = 0, v, B = h.parentNode !== i, M = !An(h.animated && h.toRect || r, n.animated && n.toRect || o, E), I = E ? "top" : "left", R = Wt(n, "top", "top") || Wt(h, "top", "top"), N = R ? R.scrollTop : void 0;
|
|
1649
|
-
|
|
1654
|
+
we !== n && (v = o[I], Re = !1, Ye = !M && a.invertSwap || B), Y = xn(e, n, o, E, M ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ye, we === n);
|
|
1650
1655
|
var z;
|
|
1651
1656
|
if (Y !== 0) {
|
|
1652
1657
|
var J = ee(h);
|
|
@@ -1656,12 +1661,12 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1656
1661
|
}
|
|
1657
1662
|
if (Y === 0 || z === n)
|
|
1658
1663
|
return O(!1);
|
|
1659
|
-
|
|
1660
|
-
var
|
|
1664
|
+
we = n, Ve = Y;
|
|
1665
|
+
var de = n.nextElementSibling, F = !1;
|
|
1661
1666
|
F = Y === 1;
|
|
1662
|
-
var
|
|
1663
|
-
if (
|
|
1664
|
-
return (
|
|
1667
|
+
var me = We(P, i, h, r, n, o, e, F);
|
|
1668
|
+
if (me !== !1)
|
|
1669
|
+
return (me === 1 || me === -1) && (F = me === 1), Ot = !0, setTimeout(Nn, 30), V(), F && !de ? i.appendChild(h) : n.parentNode.insertBefore(h, F ? de : n), R && ui(R, 0, N - R.scrollTop), x = h.parentNode, v !== void 0 && !Ye && (Je = Math.abs(v - L(n)[I])), p(), O(!0);
|
|
1665
1670
|
}
|
|
1666
1671
|
if (i.contains(h))
|
|
1667
1672
|
return O(!1);
|
|
@@ -1670,7 +1675,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1670
1675
|
},
|
|
1671
1676
|
_ignoreWhileAnimating: null,
|
|
1672
1677
|
_offMoveEvents: function() {
|
|
1673
|
-
T(document, "mousemove", this._onTouchMove), T(document, "touchmove", this._onTouchMove), T(document, "pointermove", this._onTouchMove), T(document, "dragover",
|
|
1678
|
+
T(document, "mousemove", this._onTouchMove), T(document, "touchmove", this._onTouchMove), T(document, "pointermove", this._onTouchMove), T(document, "dragover", ve), T(document, "mousemove", ve), T(document, "touchmove", ve);
|
|
1674
1679
|
},
|
|
1675
1680
|
_offUpEvents: function() {
|
|
1676
1681
|
var e = this.el.ownerDocument;
|
|
@@ -1678,13 +1683,13 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1678
1683
|
},
|
|
1679
1684
|
_onDrop: function(e) {
|
|
1680
1685
|
var i = this.el, n = this.options;
|
|
1681
|
-
if (Q = ee(h),
|
|
1686
|
+
if (Q = ee(h), ce = ee(h, n.draggable), U("drop", this, {
|
|
1682
1687
|
evt: e
|
|
1683
|
-
}), x = h && h.parentNode, Q = ee(h),
|
|
1688
|
+
}), x = h && h.parentNode, Q = ee(h), ce = ee(h, n.draggable), y.eventCanceled) {
|
|
1684
1689
|
this._nulling();
|
|
1685
1690
|
return;
|
|
1686
1691
|
}
|
|
1687
|
-
|
|
1692
|
+
_e = !1, Ye = !1, Re = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), At(this.cloneId), At(this._dragStartId), this.nativeDraggable && (T(document, "drop", this), T(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), $e && b(document.body, "user-select", ""), b(h, "transform", ""), e && (Ae && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), S && S.parentNode && S.parentNode.removeChild(S), (P === x || X && X.lastPutMode !== "clone") && $ && $.parentNode && $.parentNode.removeChild($), h && (this.nativeDraggable && T(h, "dragend", this), bt(h), h.style["will-change"] = "", Ae && !_e && Z(h, X ? X.options.ghostClass : this.options.ghostClass, !1), Z(h, this.options.chosenClass, !1), K({
|
|
1688
1693
|
sortable: this,
|
|
1689
1694
|
name: "unchoose",
|
|
1690
1695
|
toEl: x,
|
|
@@ -1713,7 +1718,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1713
1718
|
name: "sort",
|
|
1714
1719
|
toEl: x,
|
|
1715
1720
|
originalEvent: e
|
|
1716
|
-
})), X && X.save()) : Q !==
|
|
1721
|
+
})), X && X.save()) : Q !== Ee && Q >= 0 && (K({
|
|
1717
1722
|
sortable: this,
|
|
1718
1723
|
name: "update",
|
|
1719
1724
|
toEl: x,
|
|
@@ -1723,7 +1728,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1723
1728
|
name: "sort",
|
|
1724
1729
|
toEl: x,
|
|
1725
1730
|
originalEvent: e
|
|
1726
|
-
})), y.active && ((Q == null || Q === -1) && (Q =
|
|
1731
|
+
})), y.active && ((Q == null || Q === -1) && (Q = Ee, ce = xe), K({
|
|
1727
1732
|
sortable: this,
|
|
1728
1733
|
name: "end",
|
|
1729
1734
|
toEl: x,
|
|
@@ -1731,7 +1736,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1731
1736
|
}), this.save()))), this._nulling();
|
|
1732
1737
|
},
|
|
1733
1738
|
_nulling: function() {
|
|
1734
|
-
U("nulling", this), P = h = x = S =
|
|
1739
|
+
U("nulling", this), P = h = x = S = be = $ = qe = fe = ge = te = Ae = Q = ce = Ee = xe = we = Ve = X = Be = y.dragged = y.ghost = y.clone = y.active = null, ot.forEach(function(e) {
|
|
1735
1740
|
e.checked = !0;
|
|
1736
1741
|
}), ot.length = mt = gt = 0;
|
|
1737
1742
|
},
|
|
@@ -1812,9 +1817,9 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1812
1817
|
}), this._onDrop(), this._disableDelayedDragEvents(), rt.splice(rt.indexOf(this.el), 1), this.el = e = null;
|
|
1813
1818
|
},
|
|
1814
1819
|
_hideClone: function() {
|
|
1815
|
-
if (!
|
|
1820
|
+
if (!fe) {
|
|
1816
1821
|
if (U("hideClone", this), y.eventCanceled) return;
|
|
1817
|
-
b($, "display", "none"), this.options.removeCloneOnHide && $.parentNode && $.parentNode.removeChild($),
|
|
1822
|
+
b($, "display", "none"), this.options.removeCloneOnHide && $.parentNode && $.parentNode.removeChild($), fe = !0;
|
|
1818
1823
|
}
|
|
1819
1824
|
},
|
|
1820
1825
|
_showClone: function(e) {
|
|
@@ -1822,9 +1827,9 @@ y.prototype = /** @lends Sortable.prototype */
|
|
|
1822
1827
|
this._hideClone();
|
|
1823
1828
|
return;
|
|
1824
1829
|
}
|
|
1825
|
-
if (
|
|
1830
|
+
if (fe) {
|
|
1826
1831
|
if (U("showClone", this), y.eventCanceled) return;
|
|
1827
|
-
h.parentNode == P && !this.options.group.revertClone ? P.insertBefore($, h) :
|
|
1832
|
+
h.parentNode == P && !this.options.group.revertClone ? P.insertBefore($, h) : be ? P.insertBefore($, be) : P.appendChild($), this.options.group.revertClone && this.animate(h, $), b($, "display", ""), fe = !1;
|
|
1828
1833
|
}
|
|
1829
1834
|
}
|
|
1830
1835
|
};
|
|
@@ -1833,7 +1838,7 @@ function Pn(t) {
|
|
|
1833
1838
|
}
|
|
1834
1839
|
function We(t, e, i, n, r, o, l, a) {
|
|
1835
1840
|
var s, u = t[q], c = u.options.onMove, f;
|
|
1836
|
-
return window.CustomEvent && !
|
|
1841
|
+
return window.CustomEvent && !ue && !Fe ? s = new CustomEvent("move", {
|
|
1837
1842
|
bubbles: !0,
|
|
1838
1843
|
cancelable: !0
|
|
1839
1844
|
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = t, s.dragged = i, s.draggedRect = n, s.related = r || e, s.relatedRect = o || L(e), s.willInsertAfter = a, s.originalEvent = l, t.dispatchEvent(s), c && (f = c.call(u, s, l)), f;
|
|
@@ -1845,7 +1850,7 @@ function Nn() {
|
|
|
1845
1850
|
Ot = !1;
|
|
1846
1851
|
}
|
|
1847
1852
|
function $n(t, e, i) {
|
|
1848
|
-
var n = L(
|
|
1853
|
+
var n = L(Ie(i.el, 0, i.options, !0)), r = ci(i.el, i.options, S), o = 10;
|
|
1849
1854
|
return e ? t.clientX < r.left - o || t.clientY < n.top && t.clientX < n.right : t.clientY < r.top - o || t.clientY < n.bottom && t.clientX < n.left;
|
|
1850
1855
|
}
|
|
1851
1856
|
function Mn(t, e, i) {
|
|
@@ -1887,7 +1892,7 @@ function At(t) {
|
|
|
1887
1892
|
return clearTimeout(t);
|
|
1888
1893
|
}
|
|
1889
1894
|
st && C(document, "touchmove", function(t) {
|
|
1890
|
-
(y.active ||
|
|
1895
|
+
(y.active || _e) && t.cancelable && t.preventDefault();
|
|
1891
1896
|
});
|
|
1892
1897
|
y.utils = {
|
|
1893
1898
|
on: C,
|
|
@@ -1906,7 +1911,7 @@ y.utils = {
|
|
|
1906
1911
|
nextTick: Ze,
|
|
1907
1912
|
cancelNextTick: At,
|
|
1908
1913
|
detectDirection: hi,
|
|
1909
|
-
getChild:
|
|
1914
|
+
getChild: Ie,
|
|
1910
1915
|
expando: q
|
|
1911
1916
|
};
|
|
1912
1917
|
y.get = function(t) {
|
|
@@ -1958,22 +1963,22 @@ function Hn() {
|
|
|
1958
1963
|
},
|
|
1959
1964
|
_handleAutoScroll: function(i, n) {
|
|
1960
1965
|
var r = this, o = (i.touches ? i.touches[0] : i).clientX, l = (i.touches ? i.touches[0] : i).clientY, a = document.elementFromPoint(o, l);
|
|
1961
|
-
if (lt = i, n || this.options.forceAutoScrollFallback || Fe ||
|
|
1966
|
+
if (lt = i, n || this.options.forceAutoScrollFallback || Fe || ue || $e) {
|
|
1962
1967
|
St(i, this.options, a, n);
|
|
1963
|
-
var s =
|
|
1968
|
+
var s = pe(a, !0);
|
|
1964
1969
|
kt && (!ke || o !== yt || l !== wt) && (ke && qt(), ke = setInterval(function() {
|
|
1965
|
-
var u =
|
|
1970
|
+
var u = pe(document.elementFromPoint(o, l), !0);
|
|
1966
1971
|
u !== s && (s = u, Qe()), St(i, r.options, u, n);
|
|
1967
1972
|
}, 10), yt = o, wt = l);
|
|
1968
1973
|
} else {
|
|
1969
|
-
if (!this.options.bubbleScroll ||
|
|
1974
|
+
if (!this.options.bubbleScroll || pe(a, !0) === ne()) {
|
|
1970
1975
|
Qe();
|
|
1971
1976
|
return;
|
|
1972
1977
|
}
|
|
1973
|
-
St(i, this.options,
|
|
1978
|
+
St(i, this.options, pe(a, !1), !1);
|
|
1974
1979
|
}
|
|
1975
1980
|
}
|
|
1976
|
-
},
|
|
1981
|
+
}, se(t, {
|
|
1977
1982
|
pluginName: "scroll",
|
|
1978
1983
|
initializeByDefault: !0
|
|
1979
1984
|
});
|
|
@@ -1989,7 +1994,7 @@ function qt() {
|
|
|
1989
1994
|
var St = si(function(t, e, i, n) {
|
|
1990
1995
|
if (e.scroll) {
|
|
1991
1996
|
var r = (t.touches ? t.touches[0] : t).clientX, o = (t.touches ? t.touches[0] : t).clientY, l = e.scrollSensitivity, a = e.scrollSpeed, s = ne(), u = !1, c;
|
|
1992
|
-
zt !== i && (zt = i, Qe(), ze = e.scroll, c = e.scrollFn, ze === !0 && (ze =
|
|
1997
|
+
zt !== i && (zt = i, Qe(), ze = e.scroll, c = e.scrollFn, ze === !0 && (ze = pe(i, !0)));
|
|
1993
1998
|
var f = 0, m = ze;
|
|
1994
1999
|
do {
|
|
1995
2000
|
var E = m, _ = L(E), g = _.top, D = _.bottom, V = _.left, O = _.right, p = _.width, d = _.height, A = void 0, Y = void 0, v = E.scrollWidth, B = E.scrollHeight, M = b(E), I = E.scrollLeft, R = E.scrollTop;
|
|
@@ -2000,12 +2005,12 @@ var St = si(function(t, e, i, n) {
|
|
|
2000
2005
|
H[J] || (H[J] = {});
|
|
2001
2006
|
(H[f].vx != N || H[f].vy != z || H[f].el !== E) && (H[f].el = E, H[f].vx = N, H[f].vy = z, clearInterval(H[f].pid), (N != 0 || z != 0) && (u = !0, H[f].pid = setInterval((function() {
|
|
2002
2007
|
n && this.layer === 0 && y.active._onTouchMove(lt);
|
|
2003
|
-
var
|
|
2004
|
-
typeof c == "function" && c.call(y.dragged.parentNode[q], F,
|
|
2008
|
+
var de = H[this.layer].vy ? H[this.layer].vy * a : 0, F = H[this.layer].vx ? H[this.layer].vx * a : 0;
|
|
2009
|
+
typeof c == "function" && c.call(y.dragged.parentNode[q], F, de, t, lt, H[this.layer].el) !== "continue" || ui(H[this.layer].el, F, de);
|
|
2005
2010
|
}).bind({
|
|
2006
2011
|
layer: f
|
|
2007
2012
|
}), 24))), f++;
|
|
2008
|
-
} while (e.bubbleScroll && m !== s && (m =
|
|
2013
|
+
} while (e.bubbleScroll && m !== s && (m = pe(m, !1)));
|
|
2009
2014
|
kt = u;
|
|
2010
2015
|
}
|
|
2011
2016
|
}, 30), vi = function(e) {
|
|
@@ -2031,12 +2036,12 @@ Mt.prototype = {
|
|
|
2031
2036
|
onSpill: function(e) {
|
|
2032
2037
|
var i = e.dragEl, n = e.putSortable;
|
|
2033
2038
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
2034
|
-
var r =
|
|
2039
|
+
var r = Ie(this.sortable.el, this.startIndex, this.options);
|
|
2035
2040
|
r ? this.sortable.el.insertBefore(i, r) : this.sortable.el.appendChild(i), this.sortable.animateAll(), n && n.animateAll();
|
|
2036
2041
|
},
|
|
2037
2042
|
drop: vi
|
|
2038
2043
|
};
|
|
2039
|
-
|
|
2044
|
+
se(Mt, {
|
|
2040
2045
|
pluginName: "revertOnSpill"
|
|
2041
2046
|
});
|
|
2042
2047
|
function xt() {
|
|
@@ -2048,7 +2053,7 @@ xt.prototype = {
|
|
|
2048
2053
|
},
|
|
2049
2054
|
drop: vi
|
|
2050
2055
|
};
|
|
2051
|
-
|
|
2056
|
+
se(xt, {
|
|
2052
2057
|
pluginName: "removeOnSpill"
|
|
2053
2058
|
});
|
|
2054
2059
|
y.mount(new Hn());
|
|
@@ -2076,6 +2081,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2076
2081
|
u.style.cursor = "move", o = y.create(u, {
|
|
2077
2082
|
draggable: ".selected-item.enable",
|
|
2078
2083
|
//指定样式类的元素才允许拖动
|
|
2084
|
+
filter: ".selected-item.disableDrag",
|
|
2079
2085
|
animation: 300,
|
|
2080
2086
|
//过渡动画时间
|
|
2081
2087
|
//拖拽结束时事件
|
|
@@ -2111,9 +2117,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2111
2117
|
customTitle: { default: "" },
|
|
2112
2118
|
selectedNum: {},
|
|
2113
2119
|
props: { default: {
|
|
2114
|
-
disabled: "disabled"
|
|
2115
|
-
disableDrag: "disableDrag",
|
|
2116
|
-
disableDelete: "disableDelete"
|
|
2120
|
+
disabled: "disabled"
|
|
2117
2121
|
} },
|
|
2118
2122
|
virtual: { type: Boolean, default: !0 },
|
|
2119
2123
|
itemHeight: { default: 32 },
|
|
@@ -2124,7 +2128,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2124
2128
|
emits: ["update:modelValue", "update:selectdValue", "select-item", "item-remove", "remove-all", "sortEnd", "update:infiniteDisabled"],
|
|
2125
2129
|
setup(t, { expose: e, emit: i }) {
|
|
2126
2130
|
xi((d) => ({
|
|
2127
|
-
|
|
2131
|
+
"382cb14e": o.value
|
|
2128
2132
|
}));
|
|
2129
2133
|
const n = t, r = i, o = Ne(() => n.itemHeight + "px"), l = Ne(() => n.dragSort || n.infiniteScroll ? !1 : n.virtual), {
|
|
2130
2134
|
selectListRef: a,
|
|
@@ -2159,16 +2163,16 @@ const Ln = (t, e, i, n) => {
|
|
|
2159
2163
|
style: Jt({ width: d.width, height: d.height, ...d.customStyle })
|
|
2160
2164
|
},
|
|
2161
2165
|
[
|
|
2162
|
-
|
|
2166
|
+
he(d.$slots, "header", {}, () => [
|
|
2163
2167
|
d.hideHeader ? G("v-if", !0) : (k(), W("div", Bn, [
|
|
2164
|
-
|
|
2168
|
+
Ce(
|
|
2165
2169
|
"div",
|
|
2166
2170
|
Yn,
|
|
2167
2171
|
Oe(w(E)),
|
|
2168
2172
|
1
|
|
2169
2173
|
/* TEXT */
|
|
2170
2174
|
),
|
|
2171
|
-
!d.isView && d.clearable ? (k(),
|
|
2175
|
+
!d.isView && d.clearable ? (k(), le(w(Vi), {
|
|
2172
2176
|
key: 0,
|
|
2173
2177
|
"btn-type": "primary-text",
|
|
2174
2178
|
block: "",
|
|
@@ -2188,45 +2192,38 @@ const Ln = (t, e, i, n) => {
|
|
|
2188
2192
|
]))
|
|
2189
2193
|
], !0),
|
|
2190
2194
|
G(" 普通 "),
|
|
2191
|
-
!d.infiniteScroll && !l.value ?
|
|
2195
|
+
!d.infiniteScroll && !l.value ? Se((k(), W(
|
|
2192
2196
|
"div",
|
|
2193
2197
|
{
|
|
2194
2198
|
key: 0,
|
|
2195
2199
|
ref_key: "$list",
|
|
2196
2200
|
ref: s,
|
|
2197
|
-
class:
|
|
2201
|
+
class: oe(["selected-container", { "hide-header": d.hideHeader }])
|
|
2198
2202
|
},
|
|
2199
2203
|
[
|
|
2200
|
-
A[0] || (A[0] = de(
|
|
2201
|
-
"h1",
|
|
2202
|
-
null,
|
|
2203
|
-
"普通",
|
|
2204
|
-
-1
|
|
2205
|
-
/* HOISTED */
|
|
2206
|
-
)),
|
|
2207
2204
|
(k(!0), W(
|
|
2208
2205
|
_t,
|
|
2209
2206
|
null,
|
|
2210
2207
|
Et(w(m), (v, B) => (k(), W("div", {
|
|
2211
|
-
class:
|
|
2208
|
+
class: oe({
|
|
2212
2209
|
"selected-item": !0,
|
|
2213
2210
|
disabled: !d.isView && w(u)(v),
|
|
2214
|
-
enable: !d.isView && !w(u)(v)
|
|
2211
|
+
enable: !d.isView && !w(u)(v),
|
|
2215
2212
|
disableDrag: !d.isView && w(c)(v),
|
|
2216
2213
|
active: w(D) === v[d.valueKey]
|
|
2217
2214
|
}),
|
|
2218
2215
|
key: v[d.valueKey] + B,
|
|
2219
2216
|
onClick: (M) => w(V)(v)
|
|
2220
2217
|
}, [
|
|
2221
|
-
d.dragSort ? (k(),
|
|
2218
|
+
d.dragSort ? (k(), le(w(Fi), {
|
|
2222
2219
|
key: 0,
|
|
2223
|
-
class: "drag-icon",
|
|
2220
|
+
class: oe({ "drag-icon": !0, "hide-drag-icon": w(c)(v) }),
|
|
2224
2221
|
size: "medium",
|
|
2225
2222
|
style: { "margin-right": "8px" }
|
|
2226
|
-
})) : G("v-if", !0),
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2223
|
+
}, null, 8, ["class"])) : G("v-if", !0),
|
|
2224
|
+
Ce("div", Wn, [
|
|
2225
|
+
he(d.$slots, "default", { item: v }, () => [
|
|
2226
|
+
Se((k(), W("div", null, [
|
|
2230
2227
|
Le(
|
|
2231
2228
|
Oe(v[d.labelKey]),
|
|
2232
2229
|
1
|
|
@@ -2237,7 +2234,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2237
2234
|
])
|
|
2238
2235
|
], !0)
|
|
2239
2236
|
]),
|
|
2240
|
-
!d.isView && d.closeable && !w(f)(v) ? (k(),
|
|
2237
|
+
!d.isView && d.closeable && !w(f)(v) ? (k(), le(w(ct), {
|
|
2241
2238
|
key: 1,
|
|
2242
2239
|
size: "small",
|
|
2243
2240
|
class: "close-icon",
|
|
@@ -2261,17 +2258,10 @@ const Ln = (t, e, i, n) => {
|
|
|
2261
2258
|
key: 1,
|
|
2262
2259
|
ref_key: "$list",
|
|
2263
2260
|
ref: s,
|
|
2264
|
-
class:
|
|
2261
|
+
class: oe(["selected-container", { "hide-header": d.hideHeader }])
|
|
2265
2262
|
},
|
|
2266
2263
|
[
|
|
2267
|
-
|
|
2268
|
-
"h1",
|
|
2269
|
-
null,
|
|
2270
|
-
"虚拟滚动",
|
|
2271
|
-
-1
|
|
2272
|
-
/* HOISTED */
|
|
2273
|
-
)),
|
|
2274
|
-
p.value && w(m).length > 0 ? (k(), oe(w(Pt), {
|
|
2264
|
+
p.value && w(m).length > 0 ? (k(), le(w(Pt), {
|
|
2275
2265
|
key: w(m).length,
|
|
2276
2266
|
items: w(m),
|
|
2277
2267
|
"item-size": d.itemHeight,
|
|
@@ -2280,7 +2270,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2280
2270
|
}, {
|
|
2281
2271
|
default: tt(({ item: v, index: B }) => [
|
|
2282
2272
|
(k(), W("div", {
|
|
2283
|
-
class:
|
|
2273
|
+
class: oe({
|
|
2284
2274
|
"selected-item": !0,
|
|
2285
2275
|
disabled: !d.isView && w(u)(v),
|
|
2286
2276
|
enable: !d.isView && !w(u)(v),
|
|
@@ -2289,9 +2279,9 @@ const Ln = (t, e, i, n) => {
|
|
|
2289
2279
|
key: v[d.valueKey],
|
|
2290
2280
|
onClick: (M) => w(V)(v)
|
|
2291
2281
|
}, [
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2282
|
+
Ce("div", Kn, [
|
|
2283
|
+
he(d.$slots, "default", { item: v }, () => [
|
|
2284
|
+
Se((k(), W("div", null, [
|
|
2295
2285
|
Le(
|
|
2296
2286
|
Oe(v[d.labelKey]),
|
|
2297
2287
|
1
|
|
@@ -2302,7 +2292,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2302
2292
|
])
|
|
2303
2293
|
], !0)
|
|
2304
2294
|
]),
|
|
2305
|
-
!d.isView && d.closeable && !w(f)(v) ? (k(),
|
|
2295
|
+
!d.isView && d.closeable && !w(f)(v) ? (k(), le(w(ct), {
|
|
2306
2296
|
key: 0,
|
|
2307
2297
|
size: "small",
|
|
2308
2298
|
class: "close-icon",
|
|
@@ -2319,27 +2309,20 @@ const Ln = (t, e, i, n) => {
|
|
|
2319
2309
|
/* CLASS */
|
|
2320
2310
|
)) : G("v-if", !0),
|
|
2321
2311
|
G(" 分页加载 "),
|
|
2322
|
-
!d.dragSort && d.infiniteScroll ?
|
|
2312
|
+
!d.dragSort && d.infiniteScroll ? Se((k(), W("div", {
|
|
2323
2313
|
key: 2,
|
|
2324
2314
|
ref_key: "$list",
|
|
2325
2315
|
ref: s,
|
|
2326
|
-
class:
|
|
2316
|
+
class: oe(["selected-container selected-page-container", { "hide-header": d.hideHeader }]),
|
|
2327
2317
|
"infinite-scroll-disabled": d.infiniteDisabled,
|
|
2328
2318
|
style: { overflow: "overlay" }
|
|
2329
2319
|
}, [
|
|
2330
|
-
|
|
2331
|
-
"h1",
|
|
2332
|
-
null,
|
|
2333
|
-
"分页加载",
|
|
2334
|
-
-1
|
|
2335
|
-
/* HOISTED */
|
|
2336
|
-
)),
|
|
2337
|
-
de("div", Un, [
|
|
2320
|
+
Ce("div", Un, [
|
|
2338
2321
|
(k(!0), W(
|
|
2339
2322
|
_t,
|
|
2340
2323
|
null,
|
|
2341
2324
|
Et(w(m), (v) => (k(), W("div", {
|
|
2342
|
-
class:
|
|
2325
|
+
class: oe({
|
|
2343
2326
|
"selected-item": !0,
|
|
2344
2327
|
disabled: !d.isView && w(u)(v),
|
|
2345
2328
|
enable: !d.isView && !w(u)(v),
|
|
@@ -2348,9 +2331,9 @@ const Ln = (t, e, i, n) => {
|
|
|
2348
2331
|
key: v[d.valueKey],
|
|
2349
2332
|
onClick: (B) => w(V)(v)
|
|
2350
2333
|
}, [
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2334
|
+
Ce("div", Jn, [
|
|
2335
|
+
he(d.$slots, "default", { item: v }, () => [
|
|
2336
|
+
Se((k(), W("div", null, [
|
|
2354
2337
|
Le(
|
|
2355
2338
|
Oe(v[d.labelKey]),
|
|
2356
2339
|
1
|
|
@@ -2361,7 +2344,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2361
2344
|
])
|
|
2362
2345
|
], !0)
|
|
2363
2346
|
]),
|
|
2364
|
-
!d.isView && d.closeable && !w(f)(v) ? (k(),
|
|
2347
|
+
!d.isView && d.closeable && !w(f)(v) ? (k(), le(w(ct), {
|
|
2365
2348
|
key: 0,
|
|
2366
2349
|
size: "small",
|
|
2367
2350
|
class: "close-icon",
|
|
@@ -2387,7 +2370,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2387
2370
|
for (const [n, r] of e)
|
|
2388
2371
|
i[n] = r;
|
|
2389
2372
|
return i;
|
|
2390
|
-
}, er = /* @__PURE__ */ Qn(Zn, [["__scopeId", "data-v-
|
|
2373
|
+
}, er = /* @__PURE__ */ Qn(Zn, [["__scopeId", "data-v-b9342d8b"]]), tr = {
|
|
2391
2374
|
"das-select-list-removeAll": { "zh-CN": "清空", en: "Clear", _appCode: "framework" },
|
|
2392
2375
|
"das-select-list-selected": { "zh-CN": "已选", en: "Selected", _appCode: "framework" },
|
|
2393
2376
|
"das-select-list-parentheses-left": { "zh-CN": "(", en: "(", _appCode: "framework" },
|