@das-fed/ui 7.0.1-beta.6 → 7.0.2-beta.1
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/radio-tabs/index.js +1 -1
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/radio-tabs/style.css +1 -1
- package/packages/components/radio-tabs/style.css.gz +0 -0
- package/packages/components/select-list/index.d.ts +3 -3
- package/packages/components/select-list/index.js +390 -377
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/src/Index.vue.d.ts +4 -3
- package/packages/components/select-list/src/hooks/use-select-list.d.ts +1 -0
- package/packages/components/select-list/src/type.d.ts +1 -1
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
|
@@ -5,12 +5,12 @@ import { getVar as ut, setThemeRule as _i } from "@das-fed/web/packages/theme/in
|
|
|
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 oe, openBlock as
|
|
8
|
+
import { pushScopeId as Di, popScopeId as Ii, nextTick as et, withScopeId as Ti, createBlock as oe, openBlock as z, markRaw as Ci, shallowReactive as Oi, resolveComponent as Ai, resolveDirective as zi, withDirectives as Se, createElementBlock as X, normalizeClass as ce, createCommentVNode as G, createVNode as ki, renderSlot as he, resolveDynamicComponent as Ft, 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 Rt, defineComponent as Mi, useCssVars as xi, createElementVNode as Ce, toDisplayString as Oe, unref as E, createTextVNode as Le } from "vue";
|
|
9
9
|
import { vDasTooltip as ct } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
10
10
|
import { DasButton as Vi } from "@das-fed/ui/packages/components/button/index";
|
|
11
|
-
import { vOverlay as
|
|
11
|
+
import { vOverlay as Fi } from "@das-fed/ui/packages/components/overlay/index";
|
|
12
12
|
import { DasIconClose2 as dt } from "@das-fed/ui/packages/icons/close-2/index";
|
|
13
|
-
import { DasIconDrag as
|
|
13
|
+
import { DasIconDrag as Ri } from "@das-fed/ui/packages/icons/drag/index";
|
|
14
14
|
import { useModelValue as Qt } from "@das-fed/utils/vue";
|
|
15
15
|
import { SizeWatcher as Hi } from "@das-fed/utils/size-watcher";
|
|
16
16
|
import "@das-fed/ui/packages/global/theme";
|
|
@@ -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) => (
|
|
88
|
+
const Xi = /* @__PURE__ */ Bi((t, e, i, n, r, o) => (z(), oe("div", Yi)));
|
|
89
89
|
at.render = Xi;
|
|
90
90
|
at.__scopeId = "data-v-b329ee4c";
|
|
91
91
|
at.__file = "src/components/ResizeObserver.vue";
|
|
@@ -147,8 +147,8 @@ function Qi(t, e) {
|
|
|
147
147
|
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), h = 1; h < u; h++)
|
|
148
148
|
c[h - 1] = arguments[h];
|
|
149
149
|
if (o = c, !(n && a === r)) {
|
|
150
|
-
var
|
|
151
|
-
typeof
|
|
150
|
+
var g = i.leading;
|
|
151
|
+
typeof g == "function" && (g = g(a, r)), (!n || a !== r) && g && t.apply(void 0, [a].concat(Ht(o))), r = a, clearTimeout(n), n = setTimeout(function() {
|
|
152
152
|
t.apply(void 0, [a].concat(Ht(o))), n = 0;
|
|
153
153
|
}, e);
|
|
154
154
|
}
|
|
@@ -506,72 +506,72 @@ var Pt = {
|
|
|
506
506
|
})) : this.$emit("hidden"));
|
|
507
507
|
},
|
|
508
508
|
updateVisibleItems(t, e = !1) {
|
|
509
|
-
const i = this.itemSize, n = this.gridItems || 1, r = this.itemSecondarySize || i, o = this.$_computedMinItemSize, l = this.typeField, s = this.simpleArray ? null : this.keyField, a = this.items, u = a.length, c = this.sizes, h = this.$_views,
|
|
510
|
-
let
|
|
509
|
+
const i = this.itemSize, n = this.gridItems || 1, r = this.itemSecondarySize || i, o = this.$_computedMinItemSize, l = this.typeField, s = this.simpleArray ? null : this.keyField, a = this.items, u = a.length, c = this.sizes, h = this.$_views, g = this.$_unusedViews, D = this.pool, _ = this.itemIndexByKey;
|
|
510
|
+
let v, T, $, p, d;
|
|
511
511
|
if (!u)
|
|
512
|
-
|
|
512
|
+
v = T = p = d = $ = 0;
|
|
513
513
|
else if (this.$_prerender)
|
|
514
|
-
|
|
514
|
+
v = p = 0, T = d = Math.min(this.prerender, a.length), $ = null;
|
|
515
515
|
else {
|
|
516
|
-
const
|
|
516
|
+
const I = this.getScroll();
|
|
517
517
|
if (e) {
|
|
518
|
-
let
|
|
519
|
-
if (
|
|
518
|
+
let A = I.start - this.$_lastUpdateScrollPosition;
|
|
519
|
+
if (A < 0 && (A = -A), i === null && A < o || A < i)
|
|
520
520
|
return {
|
|
521
521
|
continuous: !0
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
|
-
this.$_lastUpdateScrollPosition =
|
|
524
|
+
this.$_lastUpdateScrollPosition = I.start;
|
|
525
525
|
const x = this.buffer;
|
|
526
|
-
|
|
527
|
-
let
|
|
528
|
-
if (this.$refs.before && (
|
|
529
|
-
const
|
|
530
|
-
|
|
526
|
+
I.start -= x, I.end += x;
|
|
527
|
+
let P = 0;
|
|
528
|
+
if (this.$refs.before && (P = this.$refs.before.scrollHeight, I.start -= P), this.$refs.after) {
|
|
529
|
+
const A = this.$refs.after.scrollHeight;
|
|
530
|
+
I.end += A;
|
|
531
531
|
}
|
|
532
532
|
if (i === null) {
|
|
533
|
-
let
|
|
533
|
+
let A, J = 0, ue = u - 1, V = ~~(u / 2), me;
|
|
534
534
|
do
|
|
535
|
-
me = V,
|
|
535
|
+
me = V, A = c[V].accumulator, A < I.start ? J = V : V < u - 1 && c[V + 1].accumulator > I.start && (ue = V), V = ~~((J + ue) / 2);
|
|
536
536
|
while (V !== me);
|
|
537
|
-
for (V < 0 && (V = 0),
|
|
538
|
-
for (
|
|
539
|
-
for (
|
|
537
|
+
for (V < 0 && (V = 0), v = V, $ = c[u - 1].accumulator, T = V; T < u && c[T].accumulator < I.end; T++) ;
|
|
538
|
+
for (T === -1 ? T = a.length - 1 : (T++, T > u && (T = u)), p = v; p < u && P + c[p].accumulator < I.start; p++) ;
|
|
539
|
+
for (d = p; d < u && P + c[d].accumulator < I.end; d++) ;
|
|
540
540
|
} else {
|
|
541
|
-
|
|
542
|
-
const
|
|
543
|
-
|
|
541
|
+
v = ~~(I.start / i * n);
|
|
542
|
+
const A = v % n;
|
|
543
|
+
v -= A, T = Math.ceil(I.end / i * n), p = Math.max(0, Math.floor((I.start - P) / i * n)), d = Math.floor((I.end - P) / i * n), v < 0 && (v = 0), T > u && (T = u), p < 0 && (p = 0), d > u && (d = u), $ = Math.ceil(u / n) * i;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
|
|
547
|
-
let
|
|
548
|
-
const
|
|
549
|
-
if (
|
|
550
|
-
for (let
|
|
551
|
-
|
|
552
|
-
const
|
|
553
|
-
let
|
|
554
|
-
for (let
|
|
555
|
-
|
|
556
|
-
const x = s ?
|
|
546
|
+
T - v > rn.itemsLimit && this.itemsLimitError(), this.totalSize = $;
|
|
547
|
+
let m;
|
|
548
|
+
const W = v <= this.$_endIndex && T >= this.$_startIndex;
|
|
549
|
+
if (W)
|
|
550
|
+
for (let I = 0, x = D.length; I < x; I++)
|
|
551
|
+
m = D[I], m.nr.used && (t && (m.nr.index = _[m.item[s]]), (m.nr.index == null || m.nr.index < v || m.nr.index >= T) && this.unuseView(m));
|
|
552
|
+
const w = W ? null : /* @__PURE__ */ new Map();
|
|
553
|
+
let F, L, B;
|
|
554
|
+
for (let I = v; I < T; I++) {
|
|
555
|
+
F = a[I];
|
|
556
|
+
const x = s ? F[s] : F;
|
|
557
557
|
if (x == null)
|
|
558
558
|
throw new Error(`Key is ${x} on item (keyField is '${s}')`);
|
|
559
|
-
if (
|
|
560
|
-
|
|
559
|
+
if (m = h.get(x), !i && !c[I].size) {
|
|
560
|
+
m && this.unuseView(m);
|
|
561
561
|
continue;
|
|
562
562
|
}
|
|
563
|
-
|
|
564
|
-
let
|
|
565
|
-
if (!
|
|
566
|
-
|
|
567
|
-
else if (!
|
|
568
|
-
const J =
|
|
569
|
-
J !== -1 &&
|
|
563
|
+
L = F[l];
|
|
564
|
+
let P = g.get(L), A = !1;
|
|
565
|
+
if (!m)
|
|
566
|
+
W ? P && P.length ? m = P.pop() : m = this.addView(D, I, F, x, L) : (B = w.get(L) || 0, (!P || B >= P.length) && (m = this.addView(D, I, F, x, L), this.unuseView(m, !0), P = g.get(L)), m = P[B], w.set(L, B + 1)), h.delete(m.nr.key), m.nr.used = !0, m.nr.index = I, m.nr.key = x, m.nr.type = L, h.set(x, m), A = !0;
|
|
567
|
+
else if (!m.nr.used && (m.nr.used = !0, A = !0, P)) {
|
|
568
|
+
const J = P.indexOf(m);
|
|
569
|
+
J !== -1 && P.splice(J, 1);
|
|
570
570
|
}
|
|
571
|
-
|
|
571
|
+
m.item = F, A && (I === a.length - 1 && this.$emit("scroll-end"), I === 0 && this.$emit("scroll-start")), i === null ? (m.position = c[I - 1].accumulator, m.offset = 0) : (m.position = Math.floor(I / n) * i, m.offset = I % n * r);
|
|
572
572
|
}
|
|
573
|
-
return this.$_startIndex =
|
|
574
|
-
continuous:
|
|
573
|
+
return this.$_startIndex = v, this.$_endIndex = T, this.emitUpdate && this.$emit("update", v, T, p, d), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
|
|
574
|
+
continuous: W
|
|
575
575
|
};
|
|
576
576
|
},
|
|
577
577
|
getListenerTarget() {
|
|
@@ -643,7 +643,7 @@ const fn = {
|
|
|
643
643
|
};
|
|
644
644
|
function pn(t, e, i, n, r, o) {
|
|
645
645
|
const l = Ai("ResizeObserver"), s = zi("observe-visibility");
|
|
646
|
-
return Se((
|
|
646
|
+
return Se((z(), X(
|
|
647
647
|
"div",
|
|
648
648
|
{
|
|
649
649
|
class: ce(["vue-recycle-scroller", {
|
|
@@ -654,7 +654,7 @@ function pn(t, e, i, n, r, o) {
|
|
|
654
654
|
onScrollPassive: e[0] || (e[0] = (...a) => o.handleScroll && o.handleScroll(...a))
|
|
655
655
|
},
|
|
656
656
|
[
|
|
657
|
-
t.$slots.before ? (
|
|
657
|
+
t.$slots.before ? (z(), X(
|
|
658
658
|
"div",
|
|
659
659
|
fn,
|
|
660
660
|
[
|
|
@@ -662,17 +662,17 @@ function pn(t, e, i, n, r, o) {
|
|
|
662
662
|
],
|
|
663
663
|
512
|
|
664
664
|
/* NEED_PATCH */
|
|
665
|
-
)) :
|
|
666
|
-
(
|
|
665
|
+
)) : G("v-if", !0),
|
|
666
|
+
(z(), oe(Ft(i.listTag), {
|
|
667
667
|
ref: "wrapper",
|
|
668
668
|
style: Jt({ [t.direction === "vertical" ? "minHeight" : "minWidth"]: r.totalSize + "px" }),
|
|
669
669
|
class: ce(["vue-recycle-scroller__item-wrapper", i.listClass])
|
|
670
670
|
}, {
|
|
671
671
|
default: tt(() => [
|
|
672
|
-
(
|
|
672
|
+
(z(!0), X(
|
|
673
673
|
_t,
|
|
674
674
|
null,
|
|
675
|
-
Et(r.pool, (a) => (
|
|
675
|
+
Et(r.pool, (a) => (z(), oe(Ft(i.itemTag), Pi({
|
|
676
676
|
key: a.nr.id,
|
|
677
677
|
style: r.ready ? {
|
|
678
678
|
transform: `translate${t.direction === "vertical" ? "Y" : "X"}(${a.position}px) translate${t.direction === "vertical" ? "X" : "Y"}(${a.offset}px)`,
|
|
@@ -711,7 +711,7 @@ function pn(t, e, i, n, r, o) {
|
|
|
711
711
|
_: 3
|
|
712
712
|
/* FORWARDED */
|
|
713
713
|
}, 8, ["style", "class"])),
|
|
714
|
-
t.$slots.after ? (
|
|
714
|
+
t.$slots.after ? (z(), X(
|
|
715
715
|
"div",
|
|
716
716
|
hn,
|
|
717
717
|
[
|
|
@@ -719,7 +719,7 @@ function pn(t, e, i, n, r, o) {
|
|
|
719
719
|
],
|
|
720
720
|
512
|
|
721
721
|
/* NEED_PATCH */
|
|
722
|
-
)) :
|
|
722
|
+
)) : G("v-if", !0),
|
|
723
723
|
ki(l, { onNotify: o.handleResize }, null, 8, ["onNotify"])
|
|
724
724
|
],
|
|
725
725
|
34
|
|
@@ -731,61 +731,73 @@ 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}`), s = Ne(() => ({ disabled: "disabled", ...t.props })), a = (
|
|
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}`), s = Ne(() => ({ disabled: "disabled", ...t.props })), a = (p) => {
|
|
735
|
+
if (t.closeable === void 0)
|
|
736
|
+
return !0;
|
|
737
|
+
if (typeof t.closeable == "boolean")
|
|
738
|
+
return t.closeable;
|
|
739
|
+
if (typeof t.closeable == "function") {
|
|
740
|
+
const d = t.closeable(p);
|
|
741
|
+
if (typeof d == "boolean")
|
|
742
|
+
return d;
|
|
743
|
+
}
|
|
744
|
+
return !1;
|
|
745
|
+
}, u = (p) => {
|
|
735
746
|
let d = !1;
|
|
736
|
-
return typeof s.value.disabled == "string" ? d =
|
|
737
|
-
},
|
|
747
|
+
return typeof s.value.disabled == "string" ? d = p[s.value.disabled] : d = s.value.disabled(p) ?? !1, d;
|
|
748
|
+
}, c = Ne({
|
|
738
749
|
get: () => t.selectdValue,
|
|
739
|
-
set: (
|
|
740
|
-
e("update:selectdValue",
|
|
750
|
+
set: (p) => {
|
|
751
|
+
e("update:selectdValue", p);
|
|
741
752
|
}
|
|
742
|
-
}),
|
|
743
|
-
t.isView ||
|
|
744
|
-
},
|
|
745
|
-
const d = r.value.filter((
|
|
746
|
-
e("item-remove",
|
|
747
|
-
},
|
|
748
|
-
const
|
|
749
|
-
e("remove-all",
|
|
753
|
+
}), h = (p) => {
|
|
754
|
+
t.isView || u(p) || (c.value = p[o], e("select-item", p));
|
|
755
|
+
}, g = (p) => {
|
|
756
|
+
const d = r.value.filter((m) => m[o] !== p[o]);
|
|
757
|
+
e("item-remove", p), e("update:modelValue", d);
|
|
758
|
+
}, D = () => {
|
|
759
|
+
const p = r.value.filter((m) => !u(m) && a(m)), d = r.value.filter((m) => u(m) || !a(m));
|
|
760
|
+
e("remove-all", p), e("update:modelValue", d);
|
|
750
761
|
}, _ = () => {
|
|
751
|
-
t.infiniteScroll && t.infiniteScroll().then((
|
|
752
|
-
if (
|
|
762
|
+
t.infiniteScroll && t.infiniteScroll().then((p) => {
|
|
763
|
+
if (p && p.length) {
|
|
753
764
|
let d = [];
|
|
754
|
-
d =
|
|
755
|
-
(
|
|
765
|
+
d = p, d = d.filter(
|
|
766
|
+
(W) => !r.value.map((w) => w[t.valueKey]).includes(W[t.valueKey])
|
|
756
767
|
);
|
|
757
|
-
const
|
|
758
|
-
e("update:modelValue",
|
|
768
|
+
const m = r.value.concat(d);
|
|
769
|
+
e("update:modelValue", m);
|
|
759
770
|
}
|
|
760
771
|
});
|
|
761
772
|
};
|
|
762
|
-
let
|
|
763
|
-
const
|
|
764
|
-
var
|
|
765
|
-
const d = ((
|
|
766
|
-
|
|
767
|
-
},
|
|
773
|
+
let v = 0;
|
|
774
|
+
const T = (p) => {
|
|
775
|
+
var m;
|
|
776
|
+
const d = ((m = n.value) == null ? void 0 : m.offsetHeight) || 0;
|
|
777
|
+
v !== 0 && p === 0 && _(), v = p, p !== 0 && p - d < 10 && _();
|
|
778
|
+
}, $ = Pe();
|
|
768
779
|
return Zt(() => {
|
|
769
780
|
var d;
|
|
770
781
|
if (t.infiniteDisabled) return;
|
|
771
|
-
const
|
|
772
|
-
|
|
773
|
-
m
|
|
774
|
-
},
|
|
782
|
+
const p = (d = n.value) == null ? void 0 : d.querySelector(".selected-group");
|
|
783
|
+
$.value = Hi((m) => {
|
|
784
|
+
T(m.height);
|
|
785
|
+
}, p);
|
|
775
786
|
}), $i(() => {
|
|
776
|
-
var
|
|
777
|
-
(
|
|
787
|
+
var p;
|
|
788
|
+
(p = $.value) == null || p.disconnect();
|
|
778
789
|
}), {
|
|
779
790
|
selectListRef: i,
|
|
780
791
|
$list: n,
|
|
781
|
-
disabledFlag:
|
|
792
|
+
disabledFlag: u,
|
|
782
793
|
itemGroups: r,
|
|
783
794
|
selectedLabel: l,
|
|
784
|
-
itemRemove:
|
|
785
|
-
removeAll:
|
|
786
|
-
innerSelectdValue:
|
|
787
|
-
selectItem:
|
|
788
|
-
infiniteLoad: _
|
|
795
|
+
itemRemove: g,
|
|
796
|
+
removeAll: D,
|
|
797
|
+
innerSelectdValue: c,
|
|
798
|
+
selectItem: h,
|
|
799
|
+
infiniteLoad: _,
|
|
800
|
+
closeableFn: a
|
|
789
801
|
};
|
|
790
802
|
};
|
|
791
803
|
/**!
|
|
@@ -863,14 +875,14 @@ function le(t) {
|
|
|
863
875
|
if (typeof window < "u" && window.navigator)
|
|
864
876
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
865
877
|
}
|
|
866
|
-
var se = le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
|
878
|
+
var se = le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = le(/Edge/i), Yt = le(/firefox/i), $e = le(/safari/i) && !le(/chrome/i) && !le(/android/i), Nt = le(/iP(ad|od|hone)/i), ri = le(/chrome/i) && le(/android/i), oi = {
|
|
867
879
|
capture: !1,
|
|
868
880
|
passive: !1
|
|
869
881
|
};
|
|
870
|
-
function
|
|
882
|
+
function O(t, e, i) {
|
|
871
883
|
t.addEventListener(e, i, !se && oi);
|
|
872
884
|
}
|
|
873
|
-
function
|
|
885
|
+
function C(t, e, i) {
|
|
874
886
|
t.removeEventListener(e, i, !se && oi);
|
|
875
887
|
}
|
|
876
888
|
function it(t, e) {
|
|
@@ -913,7 +925,7 @@ function Z(t, e, i) {
|
|
|
913
925
|
t.className = (n + (i ? " " + e : "")).replace(Xt, " ");
|
|
914
926
|
}
|
|
915
927
|
}
|
|
916
|
-
function
|
|
928
|
+
function b(t, e, i) {
|
|
917
929
|
var n = t && t.style;
|
|
918
930
|
if (n) {
|
|
919
931
|
if (i === void 0)
|
|
@@ -927,7 +939,7 @@ function De(t, e) {
|
|
|
927
939
|
i = t;
|
|
928
940
|
else
|
|
929
941
|
do {
|
|
930
|
-
var n =
|
|
942
|
+
var n = b(t, "transform");
|
|
931
943
|
n && n !== "none" && (i = n + " " + i);
|
|
932
944
|
} while (!e && (t = t.parentNode));
|
|
933
945
|
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
@@ -947,20 +959,20 @@ function ne() {
|
|
|
947
959
|
var t = document.scrollingElement;
|
|
948
960
|
return t || document.documentElement;
|
|
949
961
|
}
|
|
950
|
-
function
|
|
962
|
+
function H(t, e, i, n, r) {
|
|
951
963
|
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
952
964
|
var o, l, s, a, u, c, h;
|
|
953
965
|
if (t !== window && t.parentNode && t !== ne() ? (o = t.getBoundingClientRect(), l = o.top, s = o.left, a = o.bottom, u = o.right, c = o.height, h = o.width) : (l = 0, s = 0, a = window.innerHeight, u = window.innerWidth, c = window.innerHeight, h = window.innerWidth), (e || i) && t !== window && (r = r || t.parentNode, !se))
|
|
954
966
|
do
|
|
955
|
-
if (r && r.getBoundingClientRect && (
|
|
956
|
-
var
|
|
957
|
-
l -=
|
|
967
|
+
if (r && r.getBoundingClientRect && (b(r, "transform") !== "none" || i && b(r, "position") !== "static")) {
|
|
968
|
+
var g = r.getBoundingClientRect();
|
|
969
|
+
l -= g.top + parseInt(b(r, "border-top-width")), s -= g.left + parseInt(b(r, "border-left-width")), a = l + o.height, u = s + o.width;
|
|
958
970
|
break;
|
|
959
971
|
}
|
|
960
972
|
while (r = r.parentNode);
|
|
961
973
|
if (n && t !== window) {
|
|
962
|
-
var
|
|
963
|
-
|
|
974
|
+
var D = De(r || t), _ = D && D.a, v = D && D.d;
|
|
975
|
+
D && (l /= v, s /= _, h /= _, c /= v, a = l + c, u = s + h);
|
|
964
976
|
}
|
|
965
977
|
return {
|
|
966
978
|
top: l,
|
|
@@ -973,8 +985,8 @@ function F(t, e, i, n, r) {
|
|
|
973
985
|
}
|
|
974
986
|
}
|
|
975
987
|
function Wt(t, e, i) {
|
|
976
|
-
for (var n = pe(t, !0), r =
|
|
977
|
-
var o =
|
|
988
|
+
for (var n = pe(t, !0), r = H(t)[e]; n; ) {
|
|
989
|
+
var o = H(n)[i], l = void 0;
|
|
978
990
|
if (l = r >= o, !l) return n;
|
|
979
991
|
if (n === ne()) break;
|
|
980
992
|
n = pe(n, !1);
|
|
@@ -983,7 +995,7 @@ function Wt(t, e, i) {
|
|
|
983
995
|
}
|
|
984
996
|
function Ie(t, e, i, n) {
|
|
985
997
|
for (var r = 0, o = 0, l = t.children; o < l.length; ) {
|
|
986
|
-
if (l[o].style.display !== "none" && l[o] !==
|
|
998
|
+
if (l[o].style.display !== "none" && l[o] !== y.ghost && (n || l[o] !== y.dragged) && ie(l[o], i.draggable, t, !1)) {
|
|
987
999
|
if (r === e)
|
|
988
1000
|
return l[o];
|
|
989
1001
|
r++;
|
|
@@ -993,7 +1005,7 @@ function Ie(t, e, i, n) {
|
|
|
993
1005
|
return null;
|
|
994
1006
|
}
|
|
995
1007
|
function $t(t, e) {
|
|
996
|
-
for (var i = t.lastElementChild; i && (i ===
|
|
1008
|
+
for (var i = t.lastElementChild; i && (i === y.ghost || b(i, "display") === "none" || e && !it(i, e)); )
|
|
997
1009
|
i = i.previousElementSibling;
|
|
998
1010
|
return i || null;
|
|
999
1011
|
}
|
|
@@ -1002,7 +1014,7 @@ function ee(t, e) {
|
|
|
1002
1014
|
if (!t || !t.parentNode)
|
|
1003
1015
|
return -1;
|
|
1004
1016
|
for (; t = t.previousElementSibling; )
|
|
1005
|
-
t.nodeName.toUpperCase() !== "TEMPLATE" && t !==
|
|
1017
|
+
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== y.clone && (!e || it(t, e)) && i++;
|
|
1006
1018
|
return i;
|
|
1007
1019
|
}
|
|
1008
1020
|
function jt(t) {
|
|
@@ -1027,7 +1039,7 @@ function pe(t, e) {
|
|
|
1027
1039
|
var i = t, n = !1;
|
|
1028
1040
|
do
|
|
1029
1041
|
if (i.clientWidth < i.scrollWidth || i.clientHeight < i.scrollHeight) {
|
|
1030
|
-
var r =
|
|
1042
|
+
var r = b(i);
|
|
1031
1043
|
if (i.clientWidth < i.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || i.clientHeight < i.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
|
|
1032
1044
|
if (!i.getBoundingClientRect || i === document.body) return ne();
|
|
1033
1045
|
if (n || e) return i;
|
|
@@ -1072,7 +1084,7 @@ function di(t, e, i) {
|
|
|
1072
1084
|
return Array.from(t.children).forEach(function(r) {
|
|
1073
1085
|
var o, l, s, a;
|
|
1074
1086
|
if (!(!ie(r, e.draggable, t, !1) || r.animated || r === i)) {
|
|
1075
|
-
var u =
|
|
1087
|
+
var u = H(r);
|
|
1076
1088
|
n.left = Math.min((o = n.left) !== null && o !== void 0 ? o : 1 / 0, u.left), n.top = Math.min((l = n.top) !== null && l !== void 0 ? l : 1 / 0, u.top), n.right = Math.max((s = n.right) !== null && s !== void 0 ? s : -1 / 0, u.right), n.bottom = Math.max((a = n.bottom) !== null && a !== void 0 ? a : -1 / 0, u.bottom);
|
|
1077
1089
|
}
|
|
1078
1090
|
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
@@ -1085,10 +1097,10 @@ function En() {
|
|
|
1085
1097
|
if (t = [], !!this.options.animation) {
|
|
1086
1098
|
var n = [].slice.call(this.el.children);
|
|
1087
1099
|
n.forEach(function(r) {
|
|
1088
|
-
if (!(
|
|
1100
|
+
if (!(b(r, "display") === "none" || r === y.ghost)) {
|
|
1089
1101
|
t.push({
|
|
1090
1102
|
target: r,
|
|
1091
|
-
rect:
|
|
1103
|
+
rect: H(r)
|
|
1092
1104
|
});
|
|
1093
1105
|
var o = re({}, t[t.length - 1].rect);
|
|
1094
1106
|
if (r.thisAnimationDuration) {
|
|
@@ -1116,9 +1128,9 @@ function En() {
|
|
|
1116
1128
|
}
|
|
1117
1129
|
var o = !1, l = 0;
|
|
1118
1130
|
t.forEach(function(s) {
|
|
1119
|
-
var a = 0, u = s.target, c = u.fromRect, h =
|
|
1120
|
-
|
|
1121
|
-
(
|
|
1131
|
+
var a = 0, u = s.target, c = u.fromRect, h = H(u), g = u.prevFromRect, D = u.prevToRect, _ = s.rect, v = De(u, !0);
|
|
1132
|
+
v && (h.top -= v.f, h.left -= v.e), u.toRect = h, u.thisAnimationDuration && ht(g, h) && !ht(c, h) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1133
|
+
(_.top - h.top) / (_.left - h.left) === (c.top - h.top) / (c.left - h.left) && (a = In(_, g, D, r.options)), ht(h, c) || (u.prevFromRect = c, u.prevToRect = h, a || (a = r.options.animation), r.animate(u, _, h, a)), a && (o = !0, l = Math.max(l, a), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
1122
1134
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
1123
1135
|
}, a), u.thisAnimationDuration = a);
|
|
1124
1136
|
}), clearTimeout(e), o ? e = setTimeout(function() {
|
|
@@ -1127,10 +1139,10 @@ function En() {
|
|
|
1127
1139
|
},
|
|
1128
1140
|
animate: function(n, r, o, l) {
|
|
1129
1141
|
if (l) {
|
|
1130
|
-
|
|
1142
|
+
b(n, "transition", ""), b(n, "transform", "");
|
|
1131
1143
|
var s = De(this.el), a = s && s.a, u = s && s.d, c = (r.left - o.left) / (a || 1), h = (r.top - o.top) / (u || 1);
|
|
1132
|
-
n.animatingX = !!c, n.animatingY = !!h,
|
|
1133
|
-
|
|
1144
|
+
n.animatingX = !!c, n.animatingY = !!h, b(n, "transform", "translate3d(" + c + "px," + h + "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() {
|
|
1145
|
+
b(n, "transition", ""), b(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1134
1146
|
}, l);
|
|
1135
1147
|
}
|
|
1136
1148
|
}
|
|
@@ -1195,33 +1207,33 @@ var ye = [], pt = {
|
|
|
1195
1207
|
}
|
|
1196
1208
|
};
|
|
1197
1209
|
function Tn(t) {
|
|
1198
|
-
var e = t.sortable, i = t.rootEl, n = t.name, r = t.targetEl, o = t.cloneEl, l = t.toEl, s = t.fromEl, a = t.oldIndex, u = t.newIndex, c = t.oldDraggableIndex, h = t.newDraggableIndex,
|
|
1210
|
+
var e = t.sortable, i = t.rootEl, n = t.name, r = t.targetEl, o = t.cloneEl, l = t.toEl, s = t.fromEl, a = t.oldIndex, u = t.newIndex, c = t.oldDraggableIndex, h = t.newDraggableIndex, g = t.originalEvent, D = t.putSortable, _ = t.extraEventProperties;
|
|
1199
1211
|
if (e = e || i && i[q], !!e) {
|
|
1200
|
-
var
|
|
1201
|
-
window.CustomEvent && !se && !
|
|
1212
|
+
var v, T = e.options, $ = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
1213
|
+
window.CustomEvent && !se && !Re ? v = new CustomEvent(n, {
|
|
1202
1214
|
bubbles: !0,
|
|
1203
1215
|
cancelable: !0
|
|
1204
|
-
}) : (
|
|
1205
|
-
var
|
|
1206
|
-
for (var
|
|
1207
|
-
|
|
1208
|
-
i && i.dispatchEvent(
|
|
1216
|
+
}) : (v = document.createEvent("Event"), v.initEvent(n, !0, !0)), v.to = l || i, v.from = s || i, v.item = r || i, v.clone = o, v.oldIndex = a, v.newIndex = u, v.oldDraggableIndex = c, v.newDraggableIndex = h, v.originalEvent = g, v.pullMode = D ? D.lastPutMode : void 0;
|
|
1217
|
+
var p = re(re({}, _), He.getEventProperties(n, e));
|
|
1218
|
+
for (var d in p)
|
|
1219
|
+
v[d] = p[d];
|
|
1220
|
+
i && i.dispatchEvent(v), T[$] && T[$].call(e, v);
|
|
1209
1221
|
}
|
|
1210
1222
|
}
|
|
1211
1223
|
var Cn = ["evt"], U = function(e, i) {
|
|
1212
1224
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = bn(n, Cn);
|
|
1213
|
-
He.pluginEvent.bind(
|
|
1225
|
+
He.pluginEvent.bind(y)(e, i, re({
|
|
1214
1226
|
dragEl: f,
|
|
1215
1227
|
parentEl: M,
|
|
1216
|
-
ghostEl:
|
|
1217
|
-
rootEl:
|
|
1228
|
+
ghostEl: S,
|
|
1229
|
+
rootEl: k,
|
|
1218
1230
|
nextEl: be,
|
|
1219
1231
|
lastDownEl: qe,
|
|
1220
|
-
cloneEl:
|
|
1232
|
+
cloneEl: N,
|
|
1221
1233
|
cloneHidden: fe,
|
|
1222
1234
|
dragStarted: Ae,
|
|
1223
1235
|
putSortable: Y,
|
|
1224
|
-
activeSortable:
|
|
1236
|
+
activeSortable: y.active,
|
|
1225
1237
|
originalEvent: r,
|
|
1226
1238
|
oldIndex: Ee,
|
|
1227
1239
|
oldDraggableIndex: xe,
|
|
@@ -1236,7 +1248,7 @@ var Cn = ["evt"], U = function(e, i) {
|
|
|
1236
1248
|
fe = !1;
|
|
1237
1249
|
},
|
|
1238
1250
|
dispatchSortableEvent: function(s) {
|
|
1239
|
-
|
|
1251
|
+
K({
|
|
1240
1252
|
sortable: i,
|
|
1241
1253
|
name: s,
|
|
1242
1254
|
originalEvent: r
|
|
@@ -1244,19 +1256,19 @@ var Cn = ["evt"], U = function(e, i) {
|
|
|
1244
1256
|
}
|
|
1245
1257
|
}, o));
|
|
1246
1258
|
};
|
|
1247
|
-
function
|
|
1259
|
+
function K(t) {
|
|
1248
1260
|
Tn(re({
|
|
1249
1261
|
putSortable: Y,
|
|
1250
|
-
cloneEl:
|
|
1262
|
+
cloneEl: N,
|
|
1251
1263
|
targetEl: f,
|
|
1252
|
-
rootEl:
|
|
1264
|
+
rootEl: k,
|
|
1253
1265
|
oldIndex: Ee,
|
|
1254
1266
|
oldDraggableIndex: xe,
|
|
1255
1267
|
newIndex: Q,
|
|
1256
1268
|
newDraggableIndex: de
|
|
1257
1269
|
}, t));
|
|
1258
1270
|
}
|
|
1259
|
-
var f, M,
|
|
1271
|
+
var f, M, S, k, be, qe, N, fe, Ee, Q, xe, de, Be, Y, _e = !1, nt = !1, rt = [], ge, te, mt, gt, Kt, Gt, Ae, we, Ve, Fe = !1, Ye = !1, Je, j, vt = [], Ot = !1, ot = [], st = typeof document < "u", Xe = Nt, Ut = Re || se ? "cssFloat" : "float", On = st && !ri && !Nt && "draggable" in document.createElement("div"), fi = function() {
|
|
1260
1272
|
if (st) {
|
|
1261
1273
|
if (se)
|
|
1262
1274
|
return !1;
|
|
@@ -1264,7 +1276,7 @@ var f, M, w, P, be, qe, $, fe, Ee, Q, xe, de, Be, Y, _e = !1, nt = !1, rt = [],
|
|
|
1264
1276
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
1265
1277
|
}
|
|
1266
1278
|
}(), hi = function(e, i) {
|
|
1267
|
-
var n =
|
|
1279
|
+
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), s = o && b(o), a = l && b(l), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + H(o).width, c = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + H(l).width;
|
|
1268
1280
|
if (n.display === "flex")
|
|
1269
1281
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1270
1282
|
if (n.display === "grid")
|
|
@@ -1282,7 +1294,7 @@ var f, M, w, P, be, qe, $, fe, Ee, Q, xe, de, Be, Y, _e = !1, nt = !1, rt = [],
|
|
|
1282
1294
|
return rt.some(function(r) {
|
|
1283
1295
|
var o = r[q].options.emptyInsertThreshold;
|
|
1284
1296
|
if (!(!o || $t(r))) {
|
|
1285
|
-
var l =
|
|
1297
|
+
var l = H(r), s = e >= l.left - o && e <= l.right + o, a = i >= l.top - o && i <= l.bottom + o;
|
|
1286
1298
|
if (s && a)
|
|
1287
1299
|
return n = r;
|
|
1288
1300
|
}
|
|
@@ -1299,8 +1311,8 @@ var f, M, w, P, be, qe, $, fe, Ee, Q, xe, de, Be, Y, _e = !1, nt = !1, rt = [],
|
|
|
1299
1311
|
return o;
|
|
1300
1312
|
if (typeof o == "function")
|
|
1301
1313
|
return i(o(s, a, u, c), l)(s, a, u, c);
|
|
1302
|
-
var
|
|
1303
|
-
return o === !0 || typeof o == "string" && o ===
|
|
1314
|
+
var g = (l ? s : a).options.group.name;
|
|
1315
|
+
return o === !0 || typeof o == "string" && o === g || o.join && o.indexOf(g) > -1;
|
|
1304
1316
|
};
|
|
1305
1317
|
}
|
|
1306
1318
|
var n = {}, r = e.group;
|
|
@@ -1308,9 +1320,9 @@ var f, M, w, P, be, qe, $, fe, Ee, Q, xe, de, Be, Y, _e = !1, nt = !1, rt = [],
|
|
|
1308
1320
|
name: r
|
|
1309
1321
|
}), n.name = r.name, n.checkPull = i(r.pull, !0), n.checkPut = i(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
1310
1322
|
}, mi = function() {
|
|
1311
|
-
!fi &&
|
|
1323
|
+
!fi && S && b(S, "display", "none");
|
|
1312
1324
|
}, gi = function() {
|
|
1313
|
-
!fi &&
|
|
1325
|
+
!fi && S && b(S, "display", "");
|
|
1314
1326
|
};
|
|
1315
1327
|
st && !ri && document.addEventListener("click", function(t) {
|
|
1316
1328
|
if (nt)
|
|
@@ -1330,7 +1342,7 @@ var ve = function(e) {
|
|
|
1330
1342
|
}, kn = function(e) {
|
|
1331
1343
|
f && f.parentNode[q]._isOutsideThisEl(e.target);
|
|
1332
1344
|
};
|
|
1333
|
-
function
|
|
1345
|
+
function y(t, e) {
|
|
1334
1346
|
if (!(t && t.nodeType && t.nodeType === 1))
|
|
1335
1347
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
|
|
1336
1348
|
this.el = t, this.options = e = ae({}, e), t[q] = this;
|
|
@@ -1377,7 +1389,7 @@ function b(t, e) {
|
|
|
1377
1389
|
y: 0
|
|
1378
1390
|
},
|
|
1379
1391
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
1380
|
-
supportPointer:
|
|
1392
|
+
supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && (!$e || Nt),
|
|
1381
1393
|
emptyInsertThreshold: 5
|
|
1382
1394
|
};
|
|
1383
1395
|
He.initializePlugins(this, t, i);
|
|
@@ -1386,11 +1398,11 @@ function b(t, e) {
|
|
|
1386
1398
|
pi(e);
|
|
1387
1399
|
for (var r in this)
|
|
1388
1400
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
1389
|
-
this.nativeDraggable = e.forceFallback ? !1 : On, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ?
|
|
1401
|
+
this.nativeDraggable = e.forceFallback ? !1 : On, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? O(t, "pointerdown", this._onTapStart) : (O(t, "mousedown", this._onTapStart), O(t, "touchstart", this._onTapStart)), this.nativeDraggable && (O(t, "dragover", this), O(t, "dragenter", this)), rt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), ae(this, En());
|
|
1390
1402
|
}
|
|
1391
|
-
|
|
1403
|
+
y.prototype = /** @lends Sortable.prototype */
|
|
1392
1404
|
{
|
|
1393
|
-
constructor:
|
|
1405
|
+
constructor: y,
|
|
1394
1406
|
_isOutsideThisEl: function(e) {
|
|
1395
1407
|
!this.el.contains(e) && e !== this.el && (we = null);
|
|
1396
1408
|
},
|
|
@@ -1400,10 +1412,10 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1400
1412
|
_onTapStart: function(e) {
|
|
1401
1413
|
if (e.cancelable) {
|
|
1402
1414
|
var i = this, n = this.el, r = this.options, o = r.preventOnFilter, l = e.type, s = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, a = (s || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || a, c = r.filter;
|
|
1403
|
-
if (
|
|
1415
|
+
if (Rn(n), !f && !(/mousedown|pointerdown/.test(l) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && $e && a && a.tagName.toUpperCase() === "SELECT") && (a = ie(a, r.draggable, n, !1), !(a && a.animated) && qe !== a)) {
|
|
1404
1416
|
if (Ee = ee(a), xe = ee(a, r.draggable), typeof c == "function") {
|
|
1405
1417
|
if (c.call(this, e, a, this)) {
|
|
1406
|
-
|
|
1418
|
+
K({
|
|
1407
1419
|
sortable: i,
|
|
1408
1420
|
rootEl: u,
|
|
1409
1421
|
name: "filter",
|
|
@@ -1417,7 +1429,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1417
1429
|
}
|
|
1418
1430
|
} else if (c && (c = c.split(",").some(function(h) {
|
|
1419
1431
|
if (h = ie(u, h.trim(), n, !1), h)
|
|
1420
|
-
return
|
|
1432
|
+
return K({
|
|
1421
1433
|
sortable: i,
|
|
1422
1434
|
rootEl: h,
|
|
1423
1435
|
name: "filter",
|
|
@@ -1438,33 +1450,33 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1438
1450
|
_prepareDragStart: function(e, i, n) {
|
|
1439
1451
|
var r = this, o = r.el, l = r.options, s = o.ownerDocument, a;
|
|
1440
1452
|
if (n && !f && n.parentNode === o) {
|
|
1441
|
-
var u =
|
|
1442
|
-
if (
|
|
1453
|
+
var u = H(n);
|
|
1454
|
+
if (k = o, f = n, M = f.parentNode, be = f.nextSibling, qe = n, Be = l.group, y.dragged = f, ge = {
|
|
1443
1455
|
target: f,
|
|
1444
1456
|
clientX: (i || e).clientX,
|
|
1445
1457
|
clientY: (i || e).clientY
|
|
1446
1458
|
}, Kt = ge.clientX - u.left, Gt = ge.clientY - u.top, this._lastX = (i || e).clientX, this._lastY = (i || e).clientY, f.style["will-change"] = "all", a = function() {
|
|
1447
1459
|
if (U("delayEnded", r, {
|
|
1448
1460
|
evt: e
|
|
1449
|
-
}),
|
|
1461
|
+
}), y.eventCanceled) {
|
|
1450
1462
|
r._onDrop();
|
|
1451
1463
|
return;
|
|
1452
1464
|
}
|
|
1453
|
-
r._disableDelayedDragEvents(), !Yt && r.nativeDraggable && (f.draggable = !0), r._triggerDragStart(e, i),
|
|
1465
|
+
r._disableDelayedDragEvents(), !Yt && r.nativeDraggable && (f.draggable = !0), r._triggerDragStart(e, i), K({
|
|
1454
1466
|
sortable: r,
|
|
1455
1467
|
name: "choose",
|
|
1456
1468
|
originalEvent: e
|
|
1457
1469
|
}), Z(f, l.chosenClass, !0);
|
|
1458
1470
|
}, l.ignore.split(",").forEach(function(c) {
|
|
1459
1471
|
ai(f, c.trim(), bt);
|
|
1460
|
-
}),
|
|
1472
|
+
}), O(s, "dragover", ve), O(s, "mousemove", ve), O(s, "touchmove", ve), l.supportPointer ? (O(s, "pointerup", r._onDrop), !this.nativeDraggable && O(s, "pointercancel", r._onDrop)) : (O(s, "mouseup", r._onDrop), O(s, "touchend", r._onDrop), O(s, "touchcancel", r._onDrop)), Yt && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), U("delayStart", this, {
|
|
1461
1473
|
evt: e
|
|
1462
|
-
}), l.delay && (!l.delayOnTouchOnly || i) && (!this.nativeDraggable || !(
|
|
1463
|
-
if (
|
|
1474
|
+
}), l.delay && (!l.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Re || se))) {
|
|
1475
|
+
if (y.eventCanceled) {
|
|
1464
1476
|
this._onDrop();
|
|
1465
1477
|
return;
|
|
1466
1478
|
}
|
|
1467
|
-
l.supportPointer ? (
|
|
1479
|
+
l.supportPointer ? (O(s, "pointerup", r._disableDelayedDrag), O(s, "pointercancel", r._disableDelayedDrag)) : (O(s, "mouseup", r._disableDelayedDrag), O(s, "touchend", r._disableDelayedDrag), O(s, "touchcancel", r._disableDelayedDrag)), O(s, "mousemove", r._delayedDragTouchMoveHandler), O(s, "touchmove", r._delayedDragTouchMoveHandler), l.supportPointer && O(s, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(a, l.delay);
|
|
1468
1480
|
} else
|
|
1469
1481
|
a();
|
|
1470
1482
|
}
|
|
@@ -1478,10 +1490,10 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1478
1490
|
},
|
|
1479
1491
|
_disableDelayedDragEvents: function() {
|
|
1480
1492
|
var e = this.el.ownerDocument;
|
|
1481
|
-
|
|
1493
|
+
C(e, "mouseup", this._disableDelayedDrag), C(e, "touchend", this._disableDelayedDrag), C(e, "touchcancel", this._disableDelayedDrag), C(e, "pointerup", this._disableDelayedDrag), C(e, "pointercancel", this._disableDelayedDrag), C(e, "mousemove", this._delayedDragTouchMoveHandler), C(e, "touchmove", this._delayedDragTouchMoveHandler), C(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1482
1494
|
},
|
|
1483
1495
|
_triggerDragStart: function(e, i) {
|
|
1484
|
-
i = i || e.pointerType == "touch" && e, !this.nativeDraggable || i ? this.options.supportPointer ?
|
|
1496
|
+
i = i || e.pointerType == "touch" && e, !this.nativeDraggable || i ? this.options.supportPointer ? O(document, "pointermove", this._onTouchMove) : i ? O(document, "touchmove", this._onTouchMove) : O(document, "mousemove", this._onTouchMove) : (O(f, "dragend", this), O(k, "dragstart", this._onDragStart));
|
|
1485
1497
|
try {
|
|
1486
1498
|
document.selection ? Ze(function() {
|
|
1487
1499
|
document.selection.empty();
|
|
@@ -1490,12 +1502,12 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1490
1502
|
}
|
|
1491
1503
|
},
|
|
1492
1504
|
_dragStarted: function(e, i) {
|
|
1493
|
-
if (_e = !1,
|
|
1505
|
+
if (_e = !1, k && f) {
|
|
1494
1506
|
U("dragStarted", this, {
|
|
1495
1507
|
evt: i
|
|
1496
|
-
}), this.nativeDraggable &&
|
|
1508
|
+
}), this.nativeDraggable && O(document, "dragover", kn);
|
|
1497
1509
|
var n = this.options;
|
|
1498
|
-
!e && Z(f, n.dragClass, !1), Z(f, n.ghostClass, !0),
|
|
1510
|
+
!e && Z(f, n.dragClass, !1), Z(f, n.ghostClass, !0), y.active = this, e && this._appendGhost(), K({
|
|
1499
1511
|
sortable: this,
|
|
1500
1512
|
name: "start",
|
|
1501
1513
|
originalEvent: i
|
|
@@ -1527,13 +1539,13 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1527
1539
|
},
|
|
1528
1540
|
_onTouchMove: function(e) {
|
|
1529
1541
|
if (ge) {
|
|
1530
|
-
var i = this.options, n = i.fallbackTolerance, r = i.fallbackOffset, o = e.touches ? e.touches[0] : e, l =
|
|
1531
|
-
if (!
|
|
1542
|
+
var i = this.options, n = i.fallbackTolerance, r = i.fallbackOffset, o = e.touches ? e.touches[0] : e, l = S && De(S, !0), s = S && l && l.a, a = S && l && l.d, u = Xe && j && jt(j), c = (o.clientX - ge.clientX + r.x) / (s || 1) + (u ? u[0] - vt[0] : 0) / (s || 1), h = (o.clientY - ge.clientY + r.y) / (a || 1) + (u ? u[1] - vt[1] : 0) / (a || 1);
|
|
1543
|
+
if (!y.active && !_e) {
|
|
1532
1544
|
if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
|
|
1533
1545
|
return;
|
|
1534
1546
|
this._onDragStart(e, !0);
|
|
1535
1547
|
}
|
|
1536
|
-
if (
|
|
1548
|
+
if (S) {
|
|
1537
1549
|
l ? (l.e += c - (mt || 0), l.f += h - (gt || 0)) : l = {
|
|
1538
1550
|
a: 1,
|
|
1539
1551
|
b: 0,
|
|
@@ -1542,73 +1554,73 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1542
1554
|
e: c,
|
|
1543
1555
|
f: h
|
|
1544
1556
|
};
|
|
1545
|
-
var
|
|
1546
|
-
|
|
1557
|
+
var g = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
|
|
1558
|
+
b(S, "webkitTransform", g), b(S, "mozTransform", g), b(S, "msTransform", g), b(S, "transform", g), mt = c, gt = h, te = o;
|
|
1547
1559
|
}
|
|
1548
1560
|
e.cancelable && e.preventDefault();
|
|
1549
1561
|
}
|
|
1550
1562
|
},
|
|
1551
1563
|
_appendGhost: function() {
|
|
1552
|
-
if (!
|
|
1553
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
1564
|
+
if (!S) {
|
|
1565
|
+
var e = this.options.fallbackOnBody ? document.body : k, i = H(f, !0, Xe, !0, e), n = this.options;
|
|
1554
1566
|
if (Xe) {
|
|
1555
|
-
for (
|
|
1556
|
-
|
|
1557
|
-
|
|
1567
|
+
for (j = e; b(j, "position") === "static" && b(j, "transform") === "none" && j !== document; )
|
|
1568
|
+
j = j.parentNode;
|
|
1569
|
+
j !== document.body && j !== document.documentElement ? (j === document && (j = ne()), i.top += j.scrollTop, i.left += j.scrollLeft) : j = ne(), vt = jt(j);
|
|
1558
1570
|
}
|
|
1559
|
-
|
|
1571
|
+
S = f.cloneNode(!0), Z(S, n.ghostClass, !1), Z(S, n.fallbackClass, !0), Z(S, n.dragClass, !0), b(S, "transition", ""), b(S, "transform", ""), b(S, "box-sizing", "border-box"), b(S, "margin", 0), b(S, "top", i.top), b(S, "left", i.left), b(S, "width", i.width), b(S, "height", i.height), b(S, "opacity", "0.8"), b(S, "position", Xe ? "absolute" : "fixed"), b(S, "zIndex", "100000"), b(S, "pointerEvents", "none"), y.ghost = S, e.appendChild(S), b(S, "transform-origin", Kt / parseInt(S.style.width) * 100 + "% " + Gt / parseInt(S.style.height) * 100 + "%");
|
|
1560
1572
|
}
|
|
1561
1573
|
},
|
|
1562
1574
|
_onDragStart: function(e, i) {
|
|
1563
1575
|
var n = this, r = e.dataTransfer, o = n.options;
|
|
1564
1576
|
if (U("dragStart", this, {
|
|
1565
1577
|
evt: e
|
|
1566
|
-
}),
|
|
1578
|
+
}), y.eventCanceled) {
|
|
1567
1579
|
this._onDrop();
|
|
1568
1580
|
return;
|
|
1569
1581
|
}
|
|
1570
|
-
U("setupClone", this),
|
|
1571
|
-
U("clone", n), !
|
|
1582
|
+
U("setupClone", this), y.eventCanceled || (N = ci(f), N.removeAttribute("id"), N.draggable = !1, N.style["will-change"] = "", this._hideClone(), Z(N, this.options.chosenClass, !1), y.clone = N), n.cloneId = Ze(function() {
|
|
1583
|
+
U("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || k.insertBefore(N, f), n._hideClone(), K({
|
|
1572
1584
|
sortable: n,
|
|
1573
1585
|
name: "clone"
|
|
1574
1586
|
}));
|
|
1575
|
-
}), !i && Z(f, o.dragClass, !0), i ? (nt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (
|
|
1587
|
+
}), !i && Z(f, o.dragClass, !0), i ? (nt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (C(document, "mouseup", n._onDrop), C(document, "touchend", n._onDrop), C(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, f)), O(document, "drop", n), b(f, "transform", "translateZ(0)")), _e = !0, n._dragStartId = Ze(n._dragStarted.bind(n, i, e)), O(document, "selectstart", n), Ae = !0, window.getSelection().removeAllRanges(), $e && b(document.body, "user-select", "none");
|
|
1576
1588
|
},
|
|
1577
1589
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1578
1590
|
_onDragOver: function(e) {
|
|
1579
|
-
var i = this.el, n = e.target, r, o, l, s = this.options, a = s.group, u =
|
|
1591
|
+
var i = this.el, n = e.target, r, o, l, s = this.options, a = s.group, u = y.active, c = Be === a, h = s.sort, g = Y || u, D, _ = this, v = !1;
|
|
1580
1592
|
if (Ot) return;
|
|
1581
|
-
function
|
|
1582
|
-
U(Te,
|
|
1593
|
+
function T(Te, bi) {
|
|
1594
|
+
U(Te, _, re({
|
|
1583
1595
|
evt: e,
|
|
1584
1596
|
isOwner: c,
|
|
1585
|
-
axis:
|
|
1597
|
+
axis: D ? "vertical" : "horizontal",
|
|
1586
1598
|
revert: l,
|
|
1587
1599
|
dragRect: r,
|
|
1588
1600
|
targetRect: o,
|
|
1589
1601
|
canSort: h,
|
|
1590
|
-
fromSortable:
|
|
1602
|
+
fromSortable: g,
|
|
1591
1603
|
target: n,
|
|
1592
|
-
completed:
|
|
1604
|
+
completed: p,
|
|
1593
1605
|
onMove: function(Vt, yi) {
|
|
1594
|
-
return We(
|
|
1606
|
+
return We(k, i, f, r, Vt, H(Vt), e, yi);
|
|
1595
1607
|
},
|
|
1596
|
-
changed:
|
|
1608
|
+
changed: d
|
|
1597
1609
|
}, bi));
|
|
1598
1610
|
}
|
|
1599
|
-
function
|
|
1600
|
-
|
|
1611
|
+
function $() {
|
|
1612
|
+
T("dragOverAnimationCapture"), _.captureAnimationState(), _ !== g && g.captureAnimationState();
|
|
1601
1613
|
}
|
|
1602
|
-
function
|
|
1603
|
-
return
|
|
1614
|
+
function p(Te) {
|
|
1615
|
+
return T("dragOverCompleted", {
|
|
1604
1616
|
insertion: Te
|
|
1605
|
-
}), Te && (c ? u._hideClone() : u._showClone(
|
|
1606
|
-
|
|
1607
|
-
}),
|
|
1617
|
+
}), Te && (c ? u._hideClone() : u._showClone(_), _ !== g && (Z(f, Y ? Y.options.ghostClass : u.options.ghostClass, !1), Z(f, s.ghostClass, !0)), Y !== _ && _ !== y.active ? Y = _ : _ === y.active && Y && (Y = null), g === _ && (_._ignoreWhileAnimating = n), _.animateAll(function() {
|
|
1618
|
+
T("dragOverAnimationComplete"), _._ignoreWhileAnimating = null;
|
|
1619
|
+
}), _ !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (n === f && !f.animated || n === i && !n.animated) && (we = null), !s.dragoverBubble && !e.rootEl && n !== document && (f.parentNode[q]._isOutsideThisEl(e.target), !Te && ve(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), v = !0;
|
|
1608
1620
|
}
|
|
1609
|
-
function
|
|
1610
|
-
Q = ee(f), de = ee(f, s.draggable),
|
|
1611
|
-
sortable:
|
|
1621
|
+
function d() {
|
|
1622
|
+
Q = ee(f), de = ee(f, s.draggable), K({
|
|
1623
|
+
sortable: _,
|
|
1612
1624
|
name: "change",
|
|
1613
1625
|
toEl: i,
|
|
1614
1626
|
newIndex: Q,
|
|
@@ -1616,106 +1628,106 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1616
1628
|
originalEvent: e
|
|
1617
1629
|
});
|
|
1618
1630
|
}
|
|
1619
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ie(n, s.draggable, i, !0),
|
|
1620
|
-
if (f.contains(e.target) || n.animated && n.animatingX && n.animatingY ||
|
|
1621
|
-
return
|
|
1622
|
-
if (nt = !1, u && !s.disabled && (c ? h || (l = M !==
|
|
1623
|
-
if (
|
|
1631
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ie(n, s.draggable, i, !0), T("dragOver"), y.eventCanceled) return v;
|
|
1632
|
+
if (f.contains(e.target) || n.animated && n.animatingX && n.animatingY || _._ignoreWhileAnimating === n)
|
|
1633
|
+
return p(!1);
|
|
1634
|
+
if (nt = !1, u && !s.disabled && (c ? h || (l = M !== k) : Y === this || (this.lastPutMode = Be.checkPull(this, u, f, e)) && a.checkPut(this, u, f, e))) {
|
|
1635
|
+
if (D = this._getDirection(e, n) === "vertical", r = H(f), T("dragOverValid"), y.eventCanceled) return v;
|
|
1624
1636
|
if (l)
|
|
1625
|
-
return M =
|
|
1626
|
-
var
|
|
1627
|
-
if (!
|
|
1628
|
-
if (
|
|
1629
|
-
return
|
|
1630
|
-
if (
|
|
1631
|
-
return
|
|
1632
|
-
} else if (
|
|
1633
|
-
var
|
|
1634
|
-
if (
|
|
1635
|
-
return
|
|
1636
|
-
if (n =
|
|
1637
|
-
return
|
|
1637
|
+
return M = k, $(), this._hideClone(), T("revert"), y.eventCanceled || (be ? k.insertBefore(f, be) : k.appendChild(f)), p(!0);
|
|
1638
|
+
var m = $t(i, s.draggable);
|
|
1639
|
+
if (!m || Mn(e, D, this) && !m.animated) {
|
|
1640
|
+
if (m === f)
|
|
1641
|
+
return p(!1);
|
|
1642
|
+
if (m && i === e.target && (n = m), n && (o = H(n)), We(k, i, f, r, n, o, e, !!n) !== !1)
|
|
1643
|
+
return $(), m && m.nextSibling ? i.insertBefore(f, m.nextSibling) : i.appendChild(f), M = i, d(), p(!0);
|
|
1644
|
+
} else if (m && $n(e, D, this)) {
|
|
1645
|
+
var W = Ie(i, 0, s, !0);
|
|
1646
|
+
if (W === f)
|
|
1647
|
+
return p(!1);
|
|
1648
|
+
if (n = W, o = H(n), We(k, i, f, r, n, o, e, !1) !== !1)
|
|
1649
|
+
return $(), i.insertBefore(f, W), M = i, d(), p(!0);
|
|
1638
1650
|
} else if (n.parentNode === i) {
|
|
1639
|
-
o =
|
|
1640
|
-
var
|
|
1641
|
-
we !== n && (
|
|
1642
|
-
var
|
|
1643
|
-
if (
|
|
1651
|
+
o = H(n);
|
|
1652
|
+
var w = 0, F, L = f.parentNode !== i, B = !An(f.animated && f.toRect || r, n.animated && n.toRect || o, D), I = D ? "top" : "left", x = Wt(n, "top", "top") || Wt(f, "top", "top"), P = x ? x.scrollTop : void 0;
|
|
1653
|
+
we !== n && (F = o[I], Fe = !1, Ye = !B && s.invertSwap || L), w = xn(e, n, o, D, B ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Ye, we === n);
|
|
1654
|
+
var A;
|
|
1655
|
+
if (w !== 0) {
|
|
1644
1656
|
var J = ee(f);
|
|
1645
1657
|
do
|
|
1646
|
-
J -=
|
|
1647
|
-
while (
|
|
1658
|
+
J -= w, A = M.children[J];
|
|
1659
|
+
while (A && (b(A, "display") === "none" || A === S));
|
|
1648
1660
|
}
|
|
1649
|
-
if (
|
|
1650
|
-
return
|
|
1651
|
-
we = n, Ve =
|
|
1661
|
+
if (w === 0 || A === n)
|
|
1662
|
+
return p(!1);
|
|
1663
|
+
we = n, Ve = w;
|
|
1652
1664
|
var ue = n.nextElementSibling, V = !1;
|
|
1653
|
-
V =
|
|
1654
|
-
var me = We(
|
|
1665
|
+
V = w === 1;
|
|
1666
|
+
var me = We(k, i, f, r, n, o, e, V);
|
|
1655
1667
|
if (me !== !1)
|
|
1656
|
-
return (me === 1 || me === -1) && (V = me === 1), Ot = !0, setTimeout(Nn, 30),
|
|
1668
|
+
return (me === 1 || me === -1) && (V = me === 1), Ot = !0, setTimeout(Nn, 30), $(), V && !ue ? i.appendChild(f) : n.parentNode.insertBefore(f, V ? ue : n), x && ui(x, 0, P - x.scrollTop), M = f.parentNode, F !== void 0 && !Ye && (Je = Math.abs(F - H(n)[I])), d(), p(!0);
|
|
1657
1669
|
}
|
|
1658
1670
|
if (i.contains(f))
|
|
1659
|
-
return
|
|
1671
|
+
return p(!1);
|
|
1660
1672
|
}
|
|
1661
1673
|
return !1;
|
|
1662
1674
|
},
|
|
1663
1675
|
_ignoreWhileAnimating: null,
|
|
1664
1676
|
_offMoveEvents: function() {
|
|
1665
|
-
|
|
1677
|
+
C(document, "mousemove", this._onTouchMove), C(document, "touchmove", this._onTouchMove), C(document, "pointermove", this._onTouchMove), C(document, "dragover", ve), C(document, "mousemove", ve), C(document, "touchmove", ve);
|
|
1666
1678
|
},
|
|
1667
1679
|
_offUpEvents: function() {
|
|
1668
1680
|
var e = this.el.ownerDocument;
|
|
1669
|
-
|
|
1681
|
+
C(e, "mouseup", this._onDrop), C(e, "touchend", this._onDrop), C(e, "pointerup", this._onDrop), C(e, "pointercancel", this._onDrop), C(e, "touchcancel", this._onDrop), C(document, "selectstart", this);
|
|
1670
1682
|
},
|
|
1671
1683
|
_onDrop: function(e) {
|
|
1672
1684
|
var i = this.el, n = this.options;
|
|
1673
1685
|
if (Q = ee(f), de = ee(f, n.draggable), U("drop", this, {
|
|
1674
1686
|
evt: e
|
|
1675
|
-
}), M = f && f.parentNode, Q = ee(f), de = ee(f, n.draggable),
|
|
1687
|
+
}), M = f && f.parentNode, Q = ee(f), de = ee(f, n.draggable), y.eventCanceled) {
|
|
1676
1688
|
this._nulling();
|
|
1677
1689
|
return;
|
|
1678
1690
|
}
|
|
1679
|
-
_e = !1, Ye = !1,
|
|
1691
|
+
_e = !1, Ye = !1, Fe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), At(this.cloneId), At(this._dragStartId), this.nativeDraggable && (C(document, "drop", this), C(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), $e && b(document.body, "user-select", ""), b(f, "transform", ""), e && (Ae && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), S && S.parentNode && S.parentNode.removeChild(S), (k === M || Y && Y.lastPutMode !== "clone") && N && N.parentNode && N.parentNode.removeChild(N), f && (this.nativeDraggable && C(f, "dragend", this), bt(f), f.style["will-change"] = "", Ae && !_e && Z(f, Y ? Y.options.ghostClass : this.options.ghostClass, !1), Z(f, this.options.chosenClass, !1), K({
|
|
1680
1692
|
sortable: this,
|
|
1681
1693
|
name: "unchoose",
|
|
1682
1694
|
toEl: M,
|
|
1683
1695
|
newIndex: null,
|
|
1684
1696
|
newDraggableIndex: null,
|
|
1685
1697
|
originalEvent: e
|
|
1686
|
-
}),
|
|
1698
|
+
}), k !== M ? (Q >= 0 && (K({
|
|
1687
1699
|
rootEl: M,
|
|
1688
1700
|
name: "add",
|
|
1689
1701
|
toEl: M,
|
|
1690
|
-
fromEl:
|
|
1702
|
+
fromEl: k,
|
|
1691
1703
|
originalEvent: e
|
|
1692
|
-
}),
|
|
1704
|
+
}), K({
|
|
1693
1705
|
sortable: this,
|
|
1694
1706
|
name: "remove",
|
|
1695
1707
|
toEl: M,
|
|
1696
1708
|
originalEvent: e
|
|
1697
|
-
}),
|
|
1709
|
+
}), K({
|
|
1698
1710
|
rootEl: M,
|
|
1699
1711
|
name: "sort",
|
|
1700
1712
|
toEl: M,
|
|
1701
|
-
fromEl:
|
|
1713
|
+
fromEl: k,
|
|
1702
1714
|
originalEvent: e
|
|
1703
|
-
}),
|
|
1715
|
+
}), K({
|
|
1704
1716
|
sortable: this,
|
|
1705
1717
|
name: "sort",
|
|
1706
1718
|
toEl: M,
|
|
1707
1719
|
originalEvent: e
|
|
1708
|
-
})), Y && Y.save()) : Q !== Ee && Q >= 0 && (
|
|
1720
|
+
})), Y && Y.save()) : Q !== Ee && Q >= 0 && (K({
|
|
1709
1721
|
sortable: this,
|
|
1710
1722
|
name: "update",
|
|
1711
1723
|
toEl: M,
|
|
1712
1724
|
originalEvent: e
|
|
1713
|
-
}),
|
|
1725
|
+
}), K({
|
|
1714
1726
|
sortable: this,
|
|
1715
1727
|
name: "sort",
|
|
1716
1728
|
toEl: M,
|
|
1717
1729
|
originalEvent: e
|
|
1718
|
-
})),
|
|
1730
|
+
})), y.active && ((Q == null || Q === -1) && (Q = Ee, de = xe), K({
|
|
1719
1731
|
sortable: this,
|
|
1720
1732
|
name: "end",
|
|
1721
1733
|
toEl: M,
|
|
@@ -1723,7 +1735,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1723
1735
|
}), this.save()))), this._nulling();
|
|
1724
1736
|
},
|
|
1725
1737
|
_nulling: function() {
|
|
1726
|
-
U("nulling", this),
|
|
1738
|
+
U("nulling", this), k = f = M = S = be = N = qe = fe = ge = te = Ae = Q = de = Ee = xe = we = Ve = Y = Be = y.dragged = y.ghost = y.clone = y.active = null, ot.forEach(function(e) {
|
|
1727
1739
|
e.checked = !0;
|
|
1728
1740
|
}), ot.length = mt = gt = 0;
|
|
1729
1741
|
},
|
|
@@ -1748,7 +1760,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1748
1760
|
*/
|
|
1749
1761
|
toArray: function() {
|
|
1750
1762
|
for (var e = [], i, n = this.el.children, r = 0, o = n.length, l = this.options; r < o; r++)
|
|
1751
|
-
i = n[r], ie(i, l.draggable, this.el, !1) && e.push(i.getAttribute(l.dataIdAttr) ||
|
|
1763
|
+
i = n[r], ie(i, l.draggable, this.el, !1) && e.push(i.getAttribute(l.dataIdAttr) || Fn(i));
|
|
1752
1764
|
return e;
|
|
1753
1765
|
},
|
|
1754
1766
|
/**
|
|
@@ -1799,14 +1811,14 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1799
1811
|
destroy: function() {
|
|
1800
1812
|
U("destroy", this);
|
|
1801
1813
|
var e = this.el;
|
|
1802
|
-
e[q] = null,
|
|
1814
|
+
e[q] = null, C(e, "mousedown", this._onTapStart), C(e, "touchstart", this._onTapStart), C(e, "pointerdown", this._onTapStart), this.nativeDraggable && (C(e, "dragover", this), C(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(i) {
|
|
1803
1815
|
i.removeAttribute("draggable");
|
|
1804
1816
|
}), this._onDrop(), this._disableDelayedDragEvents(), rt.splice(rt.indexOf(this.el), 1), this.el = e = null;
|
|
1805
1817
|
},
|
|
1806
1818
|
_hideClone: function() {
|
|
1807
1819
|
if (!fe) {
|
|
1808
|
-
if (U("hideClone", this),
|
|
1809
|
-
|
|
1820
|
+
if (U("hideClone", this), y.eventCanceled) return;
|
|
1821
|
+
b(N, "display", "none"), this.options.removeCloneOnHide && N.parentNode && N.parentNode.removeChild(N), fe = !0;
|
|
1810
1822
|
}
|
|
1811
1823
|
},
|
|
1812
1824
|
_showClone: function(e) {
|
|
@@ -1815,8 +1827,8 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1815
1827
|
return;
|
|
1816
1828
|
}
|
|
1817
1829
|
if (fe) {
|
|
1818
|
-
if (U("showClone", this),
|
|
1819
|
-
f.parentNode ==
|
|
1830
|
+
if (U("showClone", this), y.eventCanceled) return;
|
|
1831
|
+
f.parentNode == k && !this.options.group.revertClone ? k.insertBefore(N, f) : be ? k.insertBefore(N, be) : k.appendChild(N), this.options.group.revertClone && this.animate(f, N), b(N, "display", ""), fe = !1;
|
|
1820
1832
|
}
|
|
1821
1833
|
}
|
|
1822
1834
|
};
|
|
@@ -1825,10 +1837,10 @@ function Pn(t) {
|
|
|
1825
1837
|
}
|
|
1826
1838
|
function We(t, e, i, n, r, o, l, s) {
|
|
1827
1839
|
var a, u = t[q], c = u.options.onMove, h;
|
|
1828
|
-
return window.CustomEvent && !se && !
|
|
1840
|
+
return window.CustomEvent && !se && !Re ? a = new CustomEvent("move", {
|
|
1829
1841
|
bubbles: !0,
|
|
1830
1842
|
cancelable: !0
|
|
1831
|
-
}) : (a = document.createEvent("Event"), a.initEvent("move", !0, !0)), a.to = e, a.from = t, a.dragged = i, a.draggedRect = n, a.related = r || e, a.relatedRect = o ||
|
|
1843
|
+
}) : (a = document.createEvent("Event"), a.initEvent("move", !0, !0)), a.to = e, a.from = t, a.dragged = i, a.draggedRect = n, a.related = r || e, a.relatedRect = o || H(e), a.willInsertAfter = s, a.originalEvent = l, t.dispatchEvent(a), c && (h = c.call(u, a, l)), h;
|
|
1832
1844
|
}
|
|
1833
1845
|
function bt(t) {
|
|
1834
1846
|
t.draggable = !1;
|
|
@@ -1837,35 +1849,35 @@ function Nn() {
|
|
|
1837
1849
|
Ot = !1;
|
|
1838
1850
|
}
|
|
1839
1851
|
function $n(t, e, i) {
|
|
1840
|
-
var n =
|
|
1852
|
+
var n = H(Ie(i.el, 0, i.options, !0)), r = di(i.el, i.options, S), o = 10;
|
|
1841
1853
|
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;
|
|
1842
1854
|
}
|
|
1843
1855
|
function Mn(t, e, i) {
|
|
1844
|
-
var n =
|
|
1856
|
+
var n = H($t(i.el, i.options.draggable)), r = di(i.el, i.options, S), o = 10;
|
|
1845
1857
|
return e ? t.clientX > r.right + o || t.clientY > n.bottom && t.clientX > n.left : t.clientY > r.bottom + o || t.clientX > n.right && t.clientY > n.top;
|
|
1846
1858
|
}
|
|
1847
1859
|
function xn(t, e, i, n, r, o, l, s) {
|
|
1848
|
-
var a = n ? t.clientY : t.clientX, u = n ? i.height : i.width, c = n ? i.top : i.left, h = n ? i.bottom : i.right,
|
|
1860
|
+
var a = n ? t.clientY : t.clientX, u = n ? i.height : i.width, c = n ? i.top : i.left, h = n ? i.bottom : i.right, g = !1;
|
|
1849
1861
|
if (!l) {
|
|
1850
1862
|
if (s && Je < u * r) {
|
|
1851
|
-
if (!
|
|
1852
|
-
|
|
1863
|
+
if (!Fe && (Ve === 1 ? a > c + u * o / 2 : a < h - u * o / 2) && (Fe = !0), Fe)
|
|
1864
|
+
g = !0;
|
|
1853
1865
|
else if (Ve === 1 ? a < c + Je : a > h - Je)
|
|
1854
1866
|
return -Ve;
|
|
1855
1867
|
} else if (a > c + u * (1 - r) / 2 && a < h - u * (1 - r) / 2)
|
|
1856
1868
|
return Vn(e);
|
|
1857
1869
|
}
|
|
1858
|
-
return
|
|
1870
|
+
return g = g || l, g && (a < c + u * o / 2 || a > h - u * o / 2) ? a > c + u / 2 ? 1 : -1 : 0;
|
|
1859
1871
|
}
|
|
1860
1872
|
function Vn(t) {
|
|
1861
1873
|
return ee(f) < ee(t) ? 1 : -1;
|
|
1862
1874
|
}
|
|
1863
|
-
function
|
|
1875
|
+
function Fn(t) {
|
|
1864
1876
|
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, i = e.length, n = 0; i--; )
|
|
1865
1877
|
n += e.charCodeAt(i);
|
|
1866
1878
|
return n.toString(36);
|
|
1867
1879
|
}
|
|
1868
|
-
function
|
|
1880
|
+
function Rn(t) {
|
|
1869
1881
|
ot.length = 0;
|
|
1870
1882
|
for (var e = t.getElementsByTagName("input"), i = e.length; i--; ) {
|
|
1871
1883
|
var n = e[i];
|
|
@@ -1878,13 +1890,13 @@ function Ze(t) {
|
|
|
1878
1890
|
function At(t) {
|
|
1879
1891
|
return clearTimeout(t);
|
|
1880
1892
|
}
|
|
1881
|
-
st &&
|
|
1882
|
-
(
|
|
1893
|
+
st && O(document, "touchmove", function(t) {
|
|
1894
|
+
(y.active || _e) && t.cancelable && t.preventDefault();
|
|
1883
1895
|
});
|
|
1884
|
-
|
|
1885
|
-
on:
|
|
1886
|
-
off:
|
|
1887
|
-
css:
|
|
1896
|
+
y.utils = {
|
|
1897
|
+
on: O,
|
|
1898
|
+
off: C,
|
|
1899
|
+
css: b,
|
|
1888
1900
|
find: ai,
|
|
1889
1901
|
is: function(e, i) {
|
|
1890
1902
|
return !!ie(e, i, e, !1);
|
|
@@ -1901,22 +1913,22 @@ b.utils = {
|
|
|
1901
1913
|
getChild: Ie,
|
|
1902
1914
|
expando: q
|
|
1903
1915
|
};
|
|
1904
|
-
|
|
1916
|
+
y.get = function(t) {
|
|
1905
1917
|
return t[q];
|
|
1906
1918
|
};
|
|
1907
|
-
|
|
1919
|
+
y.mount = function() {
|
|
1908
1920
|
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
1909
1921
|
e[i] = arguments[i];
|
|
1910
1922
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(n) {
|
|
1911
1923
|
if (!n.prototype || !n.prototype.constructor)
|
|
1912
1924
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
|
|
1913
|
-
n.utils && (
|
|
1925
|
+
n.utils && (y.utils = re(re({}, y.utils), n.utils)), He.mount(n);
|
|
1914
1926
|
});
|
|
1915
1927
|
};
|
|
1916
|
-
|
|
1917
|
-
return new
|
|
1928
|
+
y.create = function(t, e) {
|
|
1929
|
+
return new y(t, e);
|
|
1918
1930
|
};
|
|
1919
|
-
|
|
1931
|
+
y.version = yn;
|
|
1920
1932
|
var R = [], ze, zt, kt = !1, yt, wt, lt, ke;
|
|
1921
1933
|
function Hn() {
|
|
1922
1934
|
function t() {
|
|
@@ -1933,14 +1945,14 @@ function Hn() {
|
|
|
1933
1945
|
return t.prototype = {
|
|
1934
1946
|
dragStarted: function(i) {
|
|
1935
1947
|
var n = i.originalEvent;
|
|
1936
|
-
this.sortable.nativeDraggable ?
|
|
1948
|
+
this.sortable.nativeDraggable ? O(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? O(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? O(document, "touchmove", this._handleFallbackAutoScroll) : O(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1937
1949
|
},
|
|
1938
1950
|
dragOverCompleted: function(i) {
|
|
1939
1951
|
var n = i.originalEvent;
|
|
1940
1952
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
1941
1953
|
},
|
|
1942
1954
|
drop: function() {
|
|
1943
|
-
this.sortable.nativeDraggable ?
|
|
1955
|
+
this.sortable.nativeDraggable ? C(document, "dragover", this._handleAutoScroll) : (C(document, "pointermove", this._handleFallbackAutoScroll), C(document, "touchmove", this._handleFallbackAutoScroll), C(document, "mousemove", this._handleFallbackAutoScroll)), qt(), Qe(), _n();
|
|
1944
1956
|
},
|
|
1945
1957
|
nulling: function() {
|
|
1946
1958
|
lt = zt = ze = kt = ke = yt = wt = null, R.length = 0;
|
|
@@ -1950,7 +1962,7 @@ function Hn() {
|
|
|
1950
1962
|
},
|
|
1951
1963
|
_handleAutoScroll: function(i, n) {
|
|
1952
1964
|
var r = this, o = (i.touches ? i.touches[0] : i).clientX, l = (i.touches ? i.touches[0] : i).clientY, s = document.elementFromPoint(o, l);
|
|
1953
|
-
if (lt = i, n || this.options.forceAutoScrollFallback ||
|
|
1965
|
+
if (lt = i, n || this.options.forceAutoScrollFallback || Re || se || $e) {
|
|
1954
1966
|
St(i, this.options, s, n);
|
|
1955
1967
|
var a = pe(s, !0);
|
|
1956
1968
|
kt && (!ke || o !== yt || l !== wt) && (ke && qt(), ke = setInterval(function() {
|
|
@@ -1982,22 +1994,22 @@ var St = si(function(t, e, i, n) {
|
|
|
1982
1994
|
if (e.scroll) {
|
|
1983
1995
|
var r = (t.touches ? t.touches[0] : t).clientX, o = (t.touches ? t.touches[0] : t).clientY, l = e.scrollSensitivity, s = e.scrollSpeed, a = ne(), u = !1, c;
|
|
1984
1996
|
zt !== i && (zt = i, Qe(), ze = e.scroll, c = e.scrollFn, ze === !0 && (ze = pe(i, !0)));
|
|
1985
|
-
var h = 0,
|
|
1997
|
+
var h = 0, g = ze;
|
|
1986
1998
|
do {
|
|
1987
|
-
var
|
|
1988
|
-
|
|
1989
|
-
var
|
|
1999
|
+
var D = g, _ = H(D), v = _.top, T = _.bottom, $ = _.left, p = _.right, d = _.width, m = _.height, W = void 0, w = void 0, F = D.scrollWidth, L = D.scrollHeight, B = b(D), I = D.scrollLeft, x = D.scrollTop;
|
|
2000
|
+
D === a ? (W = d < F && (B.overflowX === "auto" || B.overflowX === "scroll" || B.overflowX === "visible"), w = m < L && (B.overflowY === "auto" || B.overflowY === "scroll" || B.overflowY === "visible")) : (W = d < F && (B.overflowX === "auto" || B.overflowX === "scroll"), w = m < L && (B.overflowY === "auto" || B.overflowY === "scroll"));
|
|
2001
|
+
var P = W && (Math.abs(p - r) <= l && I + d < F) - (Math.abs($ - r) <= l && !!I), A = w && (Math.abs(T - o) <= l && x + m < L) - (Math.abs(v - o) <= l && !!x);
|
|
1990
2002
|
if (!R[h])
|
|
1991
2003
|
for (var J = 0; J <= h; J++)
|
|
1992
2004
|
R[J] || (R[J] = {});
|
|
1993
|
-
(R[h].vx !=
|
|
1994
|
-
n && this.layer === 0 &&
|
|
2005
|
+
(R[h].vx != P || R[h].vy != A || R[h].el !== D) && (R[h].el = D, R[h].vx = P, R[h].vy = A, clearInterval(R[h].pid), (P != 0 || A != 0) && (u = !0, R[h].pid = setInterval((function() {
|
|
2006
|
+
n && this.layer === 0 && y.active._onTouchMove(lt);
|
|
1995
2007
|
var ue = R[this.layer].vy ? R[this.layer].vy * s : 0, V = R[this.layer].vx ? R[this.layer].vx * s : 0;
|
|
1996
|
-
typeof c == "function" && c.call(
|
|
2008
|
+
typeof c == "function" && c.call(y.dragged.parentNode[q], V, ue, t, lt, R[this.layer].el) !== "continue" || ui(R[this.layer].el, V, ue);
|
|
1997
2009
|
}).bind({
|
|
1998
2010
|
layer: h
|
|
1999
2011
|
}), 24))), h++;
|
|
2000
|
-
} while (e.bubbleScroll &&
|
|
2012
|
+
} while (e.bubbleScroll && g !== a && (g = pe(g, !1)));
|
|
2001
2013
|
kt = u;
|
|
2002
2014
|
}
|
|
2003
2015
|
}, 30), vi = function(e) {
|
|
@@ -2043,12 +2055,12 @@ xt.prototype = {
|
|
|
2043
2055
|
ae(xt, {
|
|
2044
2056
|
pluginName: "removeOnSpill"
|
|
2045
2057
|
});
|
|
2046
|
-
|
|
2047
|
-
|
|
2058
|
+
y.mount(new Hn());
|
|
2059
|
+
y.mount(xt, Mt);
|
|
2048
2060
|
const Ln = (t, e, i, n) => {
|
|
2049
2061
|
const r = Qt(t, "dragSort");
|
|
2050
2062
|
let o = null, l = Pe(0);
|
|
2051
|
-
|
|
2063
|
+
Rt(
|
|
2052
2064
|
r,
|
|
2053
2065
|
(u) => {
|
|
2054
2066
|
et(() => {
|
|
@@ -2058,24 +2070,24 @@ const Ln = (t, e, i, n) => {
|
|
|
2058
2070
|
{
|
|
2059
2071
|
immediate: !0
|
|
2060
2072
|
}
|
|
2061
|
-
),
|
|
2073
|
+
), Rt(n, (u, c) => {
|
|
2062
2074
|
et(() => {
|
|
2063
2075
|
r.value ? s() : a();
|
|
2064
2076
|
});
|
|
2065
2077
|
});
|
|
2066
2078
|
const s = () => {
|
|
2067
2079
|
const u = i.value;
|
|
2068
|
-
u.style.cursor = "move", o =
|
|
2080
|
+
u.style.cursor = "move", o = y.create(u, {
|
|
2069
2081
|
draggable: ".selected-item.enable",
|
|
2070
2082
|
//指定样式类的元素才允许拖动
|
|
2071
2083
|
animation: 300,
|
|
2072
2084
|
//过渡动画时间
|
|
2073
2085
|
//拖拽结束时事件
|
|
2074
2086
|
onEnd: (c) => {
|
|
2075
|
-
const h = JSON.parse(JSON.stringify(n.value)),
|
|
2076
|
-
|
|
2077
|
-
const
|
|
2078
|
-
|
|
2087
|
+
const h = JSON.parse(JSON.stringify(n.value)), g = JSON.parse(JSON.stringify(n.value));
|
|
2088
|
+
g.splice(c.oldIndex, 1)[0];
|
|
2089
|
+
const D = h[c.oldIndex];
|
|
2090
|
+
g.splice(c.newIndex, 0, D), e("update:modelValue", g), l.value = Date.now(), e("sortEnd", h, g, c.oldIndex, c.newIndex);
|
|
2079
2091
|
}
|
|
2080
2092
|
});
|
|
2081
2093
|
}, a = () => {
|
|
@@ -2098,7 +2110,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2098
2110
|
customStyle: {},
|
|
2099
2111
|
dragSort: { type: Boolean },
|
|
2100
2112
|
isView: { type: Boolean },
|
|
2101
|
-
closeable: { type: Boolean, default: !0 },
|
|
2113
|
+
closeable: { type: [Boolean, Function], default: !0 },
|
|
2102
2114
|
clearable: { type: Boolean, default: !0 },
|
|
2103
2115
|
customTitle: { default: "" },
|
|
2104
2116
|
selectedNum: {},
|
|
@@ -2112,7 +2124,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2112
2124
|
emits: ["update:modelValue", "update:selectdValue", "select-item", "item-remove", "remove-all", "sortEnd", "update:infiniteDisabled"],
|
|
2113
2125
|
setup(t, { expose: e, emit: i }) {
|
|
2114
2126
|
xi((d) => ({
|
|
2115
|
-
"
|
|
2127
|
+
"29d24cb2": o.value
|
|
2116
2128
|
}));
|
|
2117
2129
|
const n = t, r = i, o = Ne(() => n.itemHeight + "px"), l = Ne(() => n.dragSort || n.infiniteScroll ? !1 : n.virtual), {
|
|
2118
2130
|
selectListRef: s,
|
|
@@ -2120,23 +2132,24 @@ const Ln = (t, e, i, n) => {
|
|
|
2120
2132
|
disabledFlag: u,
|
|
2121
2133
|
itemGroups: c,
|
|
2122
2134
|
selectedLabel: h,
|
|
2123
|
-
itemRemove:
|
|
2124
|
-
removeAll:
|
|
2125
|
-
innerSelectdValue:
|
|
2126
|
-
selectItem:
|
|
2127
|
-
infiniteLoad:
|
|
2135
|
+
itemRemove: g,
|
|
2136
|
+
removeAll: D,
|
|
2137
|
+
innerSelectdValue: _,
|
|
2138
|
+
selectItem: v,
|
|
2139
|
+
infiniteLoad: T,
|
|
2140
|
+
closeableFn: $
|
|
2128
2141
|
} = mn(n, r);
|
|
2129
2142
|
Ln(n, r, a, c);
|
|
2130
|
-
const
|
|
2143
|
+
const p = Pe(!0);
|
|
2131
2144
|
return Zt(() => {
|
|
2132
|
-
|
|
2133
|
-
|
|
2145
|
+
p.value = !1, setTimeout(() => {
|
|
2146
|
+
p.value = !0;
|
|
2134
2147
|
}, 300);
|
|
2135
2148
|
}), e({
|
|
2136
|
-
infiniteLoad:
|
|
2137
|
-
}), (d,
|
|
2138
|
-
const
|
|
2139
|
-
return
|
|
2149
|
+
infiniteLoad: T
|
|
2150
|
+
}), (d, m) => {
|
|
2151
|
+
const W = Ei;
|
|
2152
|
+
return z(), X(
|
|
2140
2153
|
"div",
|
|
2141
2154
|
{
|
|
2142
2155
|
ref_key: "selectListRef",
|
|
@@ -2146,35 +2159,35 @@ const Ln = (t, e, i, n) => {
|
|
|
2146
2159
|
},
|
|
2147
2160
|
[
|
|
2148
2161
|
he(d.$slots, "header", {}, () => [
|
|
2149
|
-
d.hideHeader ?
|
|
2162
|
+
d.hideHeader ? G("v-if", !0) : (z(), X("div", Bn, [
|
|
2150
2163
|
Ce(
|
|
2151
2164
|
"div",
|
|
2152
2165
|
Yn,
|
|
2153
|
-
Oe(
|
|
2166
|
+
Oe(E(h)),
|
|
2154
2167
|
1
|
|
2155
2168
|
/* TEXT */
|
|
2156
2169
|
),
|
|
2157
|
-
!d.isView && d.clearable ? (
|
|
2170
|
+
!d.isView && d.clearable ? (z(), oe(E(Vi), {
|
|
2158
2171
|
key: 0,
|
|
2159
2172
|
"btn-type": "primary-text",
|
|
2160
2173
|
block: "",
|
|
2161
|
-
onClick: D
|
|
2162
|
-
disabled: !
|
|
2174
|
+
onClick: E(D),
|
|
2175
|
+
disabled: !E(c) || !E(c).length
|
|
2163
2176
|
}, {
|
|
2164
2177
|
default: tt(() => [
|
|
2165
2178
|
Le(
|
|
2166
|
-
Oe(
|
|
2179
|
+
Oe(E(je)("das-select-list-removeAll").value),
|
|
2167
2180
|
1
|
|
2168
2181
|
/* TEXT */
|
|
2169
2182
|
)
|
|
2170
2183
|
]),
|
|
2171
2184
|
_: 1
|
|
2172
2185
|
/* STABLE */
|
|
2173
|
-
}, 8, ["onClick", "disabled"])) :
|
|
2186
|
+
}, 8, ["onClick", "disabled"])) : G("v-if", !0)
|
|
2174
2187
|
]))
|
|
2175
2188
|
], !0),
|
|
2176
|
-
|
|
2177
|
-
!d.infiniteScroll && !l.value ? Se((
|
|
2189
|
+
G(" 普通 "),
|
|
2190
|
+
!d.infiniteScroll && !l.value ? Se((z(), X(
|
|
2178
2191
|
"div",
|
|
2179
2192
|
{
|
|
2180
2193
|
key: 0,
|
|
@@ -2183,45 +2196,45 @@ const Ln = (t, e, i, n) => {
|
|
|
2183
2196
|
class: ce(["selected-container", { "hide-header": d.hideHeader }])
|
|
2184
2197
|
},
|
|
2185
2198
|
[
|
|
2186
|
-
(
|
|
2199
|
+
(z(!0), X(
|
|
2187
2200
|
_t,
|
|
2188
2201
|
null,
|
|
2189
|
-
Et(
|
|
2202
|
+
Et(E(c), (w, F) => (z(), X("div", {
|
|
2190
2203
|
class: ce({
|
|
2191
2204
|
"selected-item": !0,
|
|
2192
|
-
disabled: !d.isView &&
|
|
2193
|
-
enable: !d.isView && !
|
|
2194
|
-
active:
|
|
2205
|
+
disabled: !d.isView && E(u)(w),
|
|
2206
|
+
enable: !d.isView && !E(u)(w),
|
|
2207
|
+
active: E(_) === w[d.valueKey]
|
|
2195
2208
|
}),
|
|
2196
|
-
key:
|
|
2197
|
-
onClick: (
|
|
2209
|
+
key: w[d.valueKey] + F,
|
|
2210
|
+
onClick: (L) => E(v)(w)
|
|
2198
2211
|
}, [
|
|
2199
|
-
d.dragSort ? (
|
|
2212
|
+
d.dragSort ? (z(), oe(E(Ri), {
|
|
2200
2213
|
key: 0,
|
|
2201
2214
|
class: "drag-icon",
|
|
2202
2215
|
size: "medium",
|
|
2203
2216
|
style: { "margin-right": "8px" }
|
|
2204
|
-
})) :
|
|
2217
|
+
})) : G("v-if", !0),
|
|
2205
2218
|
Ce("div", Wn, [
|
|
2206
|
-
he(d.$slots, "default", { item:
|
|
2207
|
-
Se((
|
|
2219
|
+
he(d.$slots, "default", { item: w }, () => [
|
|
2220
|
+
Se((z(), X("div", null, [
|
|
2208
2221
|
Le(
|
|
2209
|
-
Oe(
|
|
2222
|
+
Oe(w[d.labelKey]),
|
|
2210
2223
|
1
|
|
2211
2224
|
/* TEXT */
|
|
2212
2225
|
)
|
|
2213
2226
|
])), [
|
|
2214
|
-
[
|
|
2227
|
+
[E(ct)]
|
|
2215
2228
|
])
|
|
2216
2229
|
], !0)
|
|
2217
2230
|
]),
|
|
2218
|
-
!d.isView &&
|
|
2231
|
+
!d.isView && E($)(w) ? (z(), oe(E(dt), {
|
|
2219
2232
|
key: 1,
|
|
2220
2233
|
size: "small",
|
|
2221
2234
|
class: "close-icon",
|
|
2222
|
-
"icon-color":
|
|
2223
|
-
onClick: (
|
|
2224
|
-
}, null, 8, ["icon-color", "onClick"])) :
|
|
2235
|
+
"icon-color": E(ut)("--das-ui-color-secondary"),
|
|
2236
|
+
onClick: (L) => E(g)(w)
|
|
2237
|
+
}, null, 8, ["icon-color", "onClick"])) : G("v-if", !0)
|
|
2225
2238
|
], 10, Xn))),
|
|
2226
2239
|
128
|
|
2227
2240
|
/* KEYED_FRAGMENT */
|
|
@@ -2230,10 +2243,10 @@ const Ln = (t, e, i, n) => {
|
|
|
2230
2243
|
2
|
|
2231
2244
|
/* CLASS */
|
|
2232
2245
|
)), [
|
|
2233
|
-
[
|
|
2234
|
-
]) :
|
|
2235
|
-
|
|
2236
|
-
!d.dragSort && l.value ? (
|
|
2246
|
+
[E(Fi), { usePrevOverlay: !0 }]
|
|
2247
|
+
]) : G("v-if", !0),
|
|
2248
|
+
G(" 虚拟滚动 "),
|
|
2249
|
+
!d.dragSort && l.value ? (z(), X(
|
|
2237
2250
|
"div",
|
|
2238
2251
|
{
|
|
2239
2252
|
key: 1,
|
|
@@ -2242,55 +2255,55 @@ const Ln = (t, e, i, n) => {
|
|
|
2242
2255
|
class: ce(["selected-container", { "hide-header": d.hideHeader }])
|
|
2243
2256
|
},
|
|
2244
2257
|
[
|
|
2245
|
-
|
|
2246
|
-
key:
|
|
2247
|
-
items:
|
|
2258
|
+
p.value && E(c).length > 0 ? (z(), oe(E(Pt), {
|
|
2259
|
+
key: E(c).length,
|
|
2260
|
+
items: E(c),
|
|
2248
2261
|
"item-size": d.itemHeight,
|
|
2249
2262
|
"key-field": d.valueKey,
|
|
2250
2263
|
class: "virtual-list"
|
|
2251
2264
|
}, {
|
|
2252
|
-
default: tt(({ item:
|
|
2253
|
-
(
|
|
2265
|
+
default: tt(({ item: w, index: F }) => [
|
|
2266
|
+
(z(), X("div", {
|
|
2254
2267
|
class: ce({
|
|
2255
2268
|
"selected-item": !0,
|
|
2256
|
-
disabled: !d.isView &&
|
|
2257
|
-
enable: !d.isView && !
|
|
2258
|
-
active:
|
|
2269
|
+
disabled: !d.isView && E(u)(w),
|
|
2270
|
+
enable: !d.isView && !E(u)(w),
|
|
2271
|
+
active: E(_) === w[d.valueKey]
|
|
2259
2272
|
}),
|
|
2260
|
-
key:
|
|
2261
|
-
onClick: (
|
|
2273
|
+
key: w[d.valueKey],
|
|
2274
|
+
onClick: (L) => E(v)(w)
|
|
2262
2275
|
}, [
|
|
2263
2276
|
Ce("div", Kn, [
|
|
2264
|
-
he(d.$slots, "default", { item:
|
|
2265
|
-
Se((
|
|
2277
|
+
he(d.$slots, "default", { item: w }, () => [
|
|
2278
|
+
Se((z(), X("div", null, [
|
|
2266
2279
|
Le(
|
|
2267
|
-
Oe(
|
|
2280
|
+
Oe(w[d.labelKey]),
|
|
2268
2281
|
1
|
|
2269
2282
|
/* TEXT */
|
|
2270
2283
|
)
|
|
2271
2284
|
])), [
|
|
2272
|
-
[
|
|
2285
|
+
[E(ct)]
|
|
2273
2286
|
])
|
|
2274
2287
|
], !0)
|
|
2275
2288
|
]),
|
|
2276
|
-
!d.isView &&
|
|
2289
|
+
!d.isView && E($)(w) ? (z(), oe(E(dt), {
|
|
2277
2290
|
key: 0,
|
|
2278
2291
|
size: "small",
|
|
2279
2292
|
class: "close-icon",
|
|
2280
|
-
"icon-color":
|
|
2281
|
-
onClick: (
|
|
2282
|
-
}, null, 8, ["icon-color", "onClick"])) :
|
|
2293
|
+
"icon-color": E(ut)("--das-ui-color-secondary"),
|
|
2294
|
+
onClick: (L) => E(g)(w)
|
|
2295
|
+
}, null, 8, ["icon-color", "onClick"])) : G("v-if", !0)
|
|
2283
2296
|
], 10, jn))
|
|
2284
2297
|
]),
|
|
2285
2298
|
_: 3
|
|
2286
2299
|
/* FORWARDED */
|
|
2287
|
-
}, 8, ["items", "item-size", "key-field"])) :
|
|
2300
|
+
}, 8, ["items", "item-size", "key-field"])) : G("v-if", !0)
|
|
2288
2301
|
],
|
|
2289
2302
|
2
|
|
2290
2303
|
/* CLASS */
|
|
2291
|
-
)) :
|
|
2292
|
-
|
|
2293
|
-
!d.dragSort && d.infiniteScroll ? Se((
|
|
2304
|
+
)) : G("v-if", !0),
|
|
2305
|
+
G(" 分页加载 "),
|
|
2306
|
+
!d.dragSort && d.infiniteScroll ? Se((z(), X("div", {
|
|
2294
2307
|
key: 2,
|
|
2295
2308
|
ref_key: "$list",
|
|
2296
2309
|
ref: a,
|
|
@@ -2299,47 +2312,47 @@ const Ln = (t, e, i, n) => {
|
|
|
2299
2312
|
style: { overflow: "overlay" }
|
|
2300
2313
|
}, [
|
|
2301
2314
|
Ce("div", Un, [
|
|
2302
|
-
(
|
|
2315
|
+
(z(!0), X(
|
|
2303
2316
|
_t,
|
|
2304
2317
|
null,
|
|
2305
|
-
Et(
|
|
2318
|
+
Et(E(c), (w) => (z(), X("div", {
|
|
2306
2319
|
class: ce({
|
|
2307
2320
|
"selected-item": !0,
|
|
2308
|
-
disabled: !d.isView &&
|
|
2309
|
-
enable: !d.isView && !
|
|
2310
|
-
active:
|
|
2321
|
+
disabled: !d.isView && E(u)(w),
|
|
2322
|
+
enable: !d.isView && !E(u)(w),
|
|
2323
|
+
active: E(_) === w[d.valueKey]
|
|
2311
2324
|
}),
|
|
2312
|
-
key:
|
|
2313
|
-
onClick: (
|
|
2325
|
+
key: w[d.valueKey],
|
|
2326
|
+
onClick: (F) => E(v)(w)
|
|
2314
2327
|
}, [
|
|
2315
2328
|
Ce("div", Jn, [
|
|
2316
|
-
he(d.$slots, "default", { item:
|
|
2317
|
-
Se((
|
|
2329
|
+
he(d.$slots, "default", { item: w }, () => [
|
|
2330
|
+
Se((z(), X("div", null, [
|
|
2318
2331
|
Le(
|
|
2319
|
-
Oe(
|
|
2332
|
+
Oe(w[d.labelKey]),
|
|
2320
2333
|
1
|
|
2321
2334
|
/* TEXT */
|
|
2322
2335
|
)
|
|
2323
2336
|
])), [
|
|
2324
|
-
[
|
|
2337
|
+
[E(ct)]
|
|
2325
2338
|
])
|
|
2326
2339
|
], !0)
|
|
2327
2340
|
]),
|
|
2328
|
-
!d.isView &&
|
|
2341
|
+
!d.isView && E($)(w) ? (z(), oe(E(dt), {
|
|
2329
2342
|
key: 0,
|
|
2330
2343
|
size: "small",
|
|
2331
2344
|
class: "close-icon",
|
|
2332
|
-
"icon-color":
|
|
2333
|
-
onClick: (
|
|
2334
|
-
}, null, 8, ["icon-color", "onClick"])) :
|
|
2345
|
+
"icon-color": E(ut)("--das-ui-color-secondary"),
|
|
2346
|
+
onClick: (F) => E(g)(w)
|
|
2347
|
+
}, null, 8, ["icon-color", "onClick"])) : G("v-if", !0)
|
|
2335
2348
|
], 10, qn))),
|
|
2336
2349
|
128
|
|
2337
2350
|
/* KEYED_FRAGMENT */
|
|
2338
2351
|
))
|
|
2339
2352
|
])
|
|
2340
2353
|
], 10, Gn)), [
|
|
2341
|
-
[
|
|
2342
|
-
]) :
|
|
2354
|
+
[W, E(T)]
|
|
2355
|
+
]) : G("v-if", !0)
|
|
2343
2356
|
],
|
|
2344
2357
|
4
|
|
2345
2358
|
/* STYLE */
|
|
@@ -2351,7 +2364,7 @@ const Ln = (t, e, i, n) => {
|
|
|
2351
2364
|
for (const [n, r] of e)
|
|
2352
2365
|
i[n] = r;
|
|
2353
2366
|
return i;
|
|
2354
|
-
}, er = /* @__PURE__ */ Qn(Zn, [["__scopeId", "data-v-
|
|
2367
|
+
}, er = /* @__PURE__ */ Qn(Zn, [["__scopeId", "data-v-ef9fb494"]]), tr = {
|
|
2355
2368
|
"das-select-list-removeAll": { "zh-CN": "清空", en: "Clear", _appCode: "framework" },
|
|
2356
2369
|
"das-select-list-selected": { "zh-CN": "已选", en: "Selected", _appCode: "framework" },
|
|
2357
2370
|
"das-select-list-parentheses-left": { "zh-CN": "(", en: "(", _appCode: "framework" },
|