@das-fed/ui 6.4.0-test.5.1 → 6.4.0-test.6.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/business-components/device-panel/index.js +37113 -36843
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/apis.d.ts +0 -2
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +16 -6
- package/packages/business-components/import-button/index.js +147 -141
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/process-configuration/i18n/index.d.ts +5 -0
- package/packages/business-components/process-configuration/index.js +2 -1
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-configuration/src/hooks/useDeleteDialog.d.ts +2 -3
- package/packages/business-components/process-form/index.js +64 -63
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-search-form/index.js +56 -56
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +539 -528
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/components/autocomplete/index.d.ts +13 -4
- package/packages/components/autocomplete/index.js +135 -122
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +2 -1
- package/packages/components/autocomplete/src/type.d.ts +4 -1
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/cascader/index.js +41 -40
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +238 -237
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/edit-table/index.d.ts +9 -9
- package/packages/components/edit-table/index.js +2010 -1658
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/hooks/use-validator.d.ts +9 -3
- package/packages/components/edit-table/src/index.vue.d.ts +1 -1
- package/packages/components/edit-table/src/type.d.ts +13 -0
- package/packages/components/edit-table/src/utils.d.ts +9 -5
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/form-item/index.js +3 -3
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/input/index.js +103 -102
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +18 -18
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/index.js +63 -63
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/src/App.vue.d.ts +1 -3
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/map/index.js +388 -385
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +680 -606
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +5 -0
- package/packages/components/search-form/index.js +44 -43
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +213 -213
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-list/index.d.ts +23 -3
- package/packages/components/select-list/index.js +599 -565
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/src/Index.vue.d.ts +9 -1
- package/packages/components/select-list/src/hooks/use-select-list.d.ts +2 -0
- package/packages/components/select-list/src/type.d.ts +22 -4
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +3 -3
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +42 -42
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +0 -20
- package/packages/components/table/index.js +0 -4
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +660 -651
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/text-tooltip/src/type.d.ts +1 -62
- package/packages/components/tree/index.js +222 -222
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/type.d.ts +1 -0
- package/packages/components/tree-select/index.js +374 -345
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +1 -0
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -1
- package/packages/components/tree-select/src/type.d.ts +3 -0
- package/packages/components/tree-select/style.css +1 -1
- package/packages/components/tree-select/style.css.gz +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/select-list/style.css';
|
|
2
2
|
import { withInstall as wi } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { i18n as
|
|
3
|
+
import { i18n as je, setI18nRule as Si } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { getVar as ut, setThemeRule as _i } from "@das-fed/web/packages/theme/index";
|
|
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
|
|
8
|
+
import { pushScopeId as Di, popScopeId as Ii, nextTick as et, openBlock as k, createBlock as oe, withScopeId as Ti, markRaw as Ci, shallowReactive as Oi, resolveComponent as zi, resolveDirective as Ai, withDirectives as Se, createElementBlock as X, normalizeClass as de, renderSlot as he, createCommentVNode as K, resolveDynamicComponent as Vt, normalizeStyle as qt, withCtx as tt, Fragment as _t, renderList as Et, mergeProps as ki, toHandlers as Ni, createVNode as Pi, ref as Ne, computed as Pe, onMounted as Jt, onBeforeUnmount as $i, watch as Rt, defineComponent as Mi, useCssVars as xi, createElementVNode as Ce, toDisplayString as Oe, unref as D, createTextVNode as Le } from "vue";
|
|
9
9
|
import { vDasTooltip as dt } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
10
|
-
import { DasButton as
|
|
11
|
-
import { vOverlay as
|
|
10
|
+
import { DasButton as Vi } from "@das-fed/ui/packages/components/button/index";
|
|
11
|
+
import { vOverlay as Ri } from "@das-fed/ui/packages/components/overlay/index";
|
|
12
12
|
import { DasIconClose2 as ct } from "@das-fed/ui/packages/icons/close-2/index";
|
|
13
13
|
import { DasIconDrag as Fi } from "@das-fed/ui/packages/icons/drag/index";
|
|
14
14
|
import { useModelValue as Zt } from "@das-fed/utils/vue";
|
|
@@ -27,9 +27,9 @@ function Li() {
|
|
|
27
27
|
var r = t.indexOf("Edge/");
|
|
28
28
|
return r > 0 ? parseInt(t.substring(r + 5, t.indexOf(".", r)), 10) : -1;
|
|
29
29
|
}
|
|
30
|
-
let
|
|
30
|
+
let Ke;
|
|
31
31
|
function Dt() {
|
|
32
|
-
Dt.init || (Dt.init = !0,
|
|
32
|
+
Dt.init || (Dt.init = !0, Ke = Li() !== -1);
|
|
33
33
|
}
|
|
34
34
|
var at = {
|
|
35
35
|
name: "ResizeObserver",
|
|
@@ -51,11 +51,11 @@ var at = {
|
|
|
51
51
|
"notify"
|
|
52
52
|
],
|
|
53
53
|
mounted() {
|
|
54
|
-
Dt(),
|
|
54
|
+
Dt(), et(() => {
|
|
55
55
|
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
56
56
|
});
|
|
57
57
|
const t = document.createElement("object");
|
|
58
|
-
this._resizeObject = t, t.setAttribute("aria-hidden", "true"), t.setAttribute("tabindex", -1), t.onload = this.addResizeHandlers, t.type = "text/html",
|
|
58
|
+
this._resizeObject = t, t.setAttribute("aria-hidden", "true"), t.setAttribute("tabindex", -1), t.onload = this.addResizeHandlers, t.type = "text/html", Ke && this.$el.appendChild(t), t.data = "about:blank", Ke || this.$el.appendChild(t);
|
|
59
59
|
},
|
|
60
60
|
beforeUnmount() {
|
|
61
61
|
this.removeResizeHandlers();
|
|
@@ -74,7 +74,7 @@ var at = {
|
|
|
74
74
|
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
75
75
|
},
|
|
76
76
|
removeResizeHandlers() {
|
|
77
|
-
this._resizeObject && this._resizeObject.onload && (!
|
|
77
|
+
this._resizeObject && this._resizeObject.onload && (!Ke && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
};
|
|
@@ -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) => (k(), oe("div", Yi)));
|
|
89
89
|
at.render = Xi;
|
|
90
90
|
at.__scopeId = "data-v-b329ee4c";
|
|
91
91
|
at.__file = "src/components/ResizeObserver.vue";
|
|
@@ -107,13 +107,13 @@ function ji(t, e) {
|
|
|
107
107
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Ki(t, e, i) {
|
|
111
111
|
return e && ji(t.prototype, e), t;
|
|
112
112
|
}
|
|
113
113
|
function Ft(t) {
|
|
114
|
-
return
|
|
114
|
+
return Gi(t) || Ui(t) || qi(t) || Ji();
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Gi(t) {
|
|
117
117
|
if (Array.isArray(t)) return It(t);
|
|
118
118
|
}
|
|
119
119
|
function Ui(t) {
|
|
@@ -144,11 +144,11 @@ function Zi(t) {
|
|
|
144
144
|
}
|
|
145
145
|
function Qi(t, e) {
|
|
146
146
|
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, r, o, l = function(a) {
|
|
147
|
-
for (var u = arguments.length, d = new Array(u > 1 ? u - 1 : 0),
|
|
148
|
-
d[
|
|
147
|
+
for (var u = arguments.length, d = new Array(u > 1 ? u - 1 : 0), h = 1; h < u; h++)
|
|
148
|
+
d[h - 1] = arguments[h];
|
|
149
149
|
if (o = d, !(n && a === r)) {
|
|
150
|
-
var
|
|
151
|
-
typeof
|
|
150
|
+
var p = i.leading;
|
|
151
|
+
typeof p == "function" && (p = p(a, r)), (!n || a !== r) && p && t.apply(void 0, [a].concat(Ft(o))), r = a, clearTimeout(n), n = setTimeout(function() {
|
|
152
152
|
t.apply(void 0, [a].concat(Ft(o))), n = 0;
|
|
153
153
|
}, e);
|
|
154
154
|
}
|
|
@@ -171,7 +171,7 @@ var en = /* @__PURE__ */ function() {
|
|
|
171
171
|
function t(e, i, n) {
|
|
172
172
|
Wi(this, t), this.el = e, this.observer = null, this.frozen = !1, this.createObserver(i, n);
|
|
173
173
|
}
|
|
174
|
-
return
|
|
174
|
+
return Ki(t, [{
|
|
175
175
|
key: "createObserver",
|
|
176
176
|
value: function(i, n) {
|
|
177
177
|
var r = this;
|
|
@@ -189,8 +189,8 @@ var en = /* @__PURE__ */ function() {
|
|
|
189
189
|
this.oldResult = void 0, this.observer = new IntersectionObserver(function(s) {
|
|
190
190
|
var a = s[0];
|
|
191
191
|
if (s.length > 1) {
|
|
192
|
-
var u = s.find(function(
|
|
193
|
-
return
|
|
192
|
+
var u = s.find(function(h) {
|
|
193
|
+
return h.isIntersecting;
|
|
194
194
|
});
|
|
195
195
|
u && (a = u);
|
|
196
196
|
}
|
|
@@ -199,7 +199,7 @@ var en = /* @__PURE__ */ function() {
|
|
|
199
199
|
if (d === r.oldResult) return;
|
|
200
200
|
r.oldResult = d, r.callback(d, a);
|
|
201
201
|
}
|
|
202
|
-
}, this.options.intersection),
|
|
202
|
+
}, this.options.intersection), et(function() {
|
|
203
203
|
r.observer && r.observer.observe(r.el);
|
|
204
204
|
});
|
|
205
205
|
}
|
|
@@ -301,13 +301,13 @@ var sn = {
|
|
|
301
301
|
function un() {
|
|
302
302
|
return this.items.length && Tt(this.items[0]) !== "object";
|
|
303
303
|
}
|
|
304
|
-
var
|
|
304
|
+
var Ct = !1;
|
|
305
305
|
if (typeof window < "u") {
|
|
306
|
-
|
|
306
|
+
Ct = !1;
|
|
307
307
|
try {
|
|
308
308
|
var dn = Object.defineProperty({}, "passive", {
|
|
309
309
|
get: function() {
|
|
310
|
-
|
|
310
|
+
Ct = !0;
|
|
311
311
|
}
|
|
312
312
|
});
|
|
313
313
|
window.addEventListener("test", null, dn);
|
|
@@ -466,13 +466,13 @@ var Nt = {
|
|
|
466
466
|
},
|
|
467
467
|
methods: {
|
|
468
468
|
addView(t, e, i, n, r) {
|
|
469
|
-
const o =
|
|
469
|
+
const o = Ci({
|
|
470
470
|
id: cn++,
|
|
471
471
|
index: e,
|
|
472
472
|
used: !0,
|
|
473
473
|
key: n,
|
|
474
474
|
type: r
|
|
475
|
-
}), l =
|
|
475
|
+
}), l = Oi({
|
|
476
476
|
item: i,
|
|
477
477
|
position: 0,
|
|
478
478
|
nr: o
|
|
@@ -506,72 +506,72 @@ var Nt = {
|
|
|
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, d = this.sizes,
|
|
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, d = this.sizes, h = this.$_views, p = this.$_unusedViews, _ = this.pool, S = this.itemIndexByKey;
|
|
510
|
+
let m, I, y, c, C;
|
|
511
511
|
if (!u)
|
|
512
|
-
|
|
512
|
+
m = I = c = C = y = 0;
|
|
513
513
|
else if (this.$_prerender)
|
|
514
|
-
|
|
514
|
+
m = c = 0, I = C = Math.min(this.prerender, a.length), y = null;
|
|
515
515
|
else {
|
|
516
|
-
const
|
|
516
|
+
const T = this.getScroll();
|
|
517
517
|
if (e) {
|
|
518
|
-
let
|
|
519
|
-
if (
|
|
518
|
+
let A = T.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 =
|
|
525
|
-
const
|
|
526
|
-
|
|
527
|
-
let
|
|
528
|
-
if (this.$refs.before && (
|
|
529
|
-
const
|
|
530
|
-
|
|
524
|
+
this.$_lastUpdateScrollPosition = T.start;
|
|
525
|
+
const x = this.buffer;
|
|
526
|
+
T.start -= x, T.end += x;
|
|
527
|
+
let P = 0;
|
|
528
|
+
if (this.$refs.before && (P = this.$refs.before.scrollHeight, T.start -= P), this.$refs.after) {
|
|
529
|
+
const A = this.$refs.after.scrollHeight;
|
|
530
|
+
T.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
|
-
|
|
536
|
-
while (
|
|
537
|
-
for (
|
|
538
|
-
for (
|
|
539
|
-
for (
|
|
535
|
+
me = V, A = d[V].accumulator, A < T.start ? J = V : V < u - 1 && d[V + 1].accumulator > T.start && (ue = V), V = ~~((J + ue) / 2);
|
|
536
|
+
while (V !== me);
|
|
537
|
+
for (V < 0 && (V = 0), m = V, y = d[u - 1].accumulator, I = V; I < u && d[I].accumulator < T.end; I++) ;
|
|
538
|
+
for (I === -1 ? I = a.length - 1 : (I++, I > u && (I = u)), c = m; c < u && P + d[c].accumulator < T.start; c++) ;
|
|
539
|
+
for (C = c; C < u && P + d[C].accumulator < T.end; C++) ;
|
|
540
540
|
} else {
|
|
541
|
-
|
|
542
|
-
const
|
|
543
|
-
|
|
541
|
+
m = ~~(T.start / i * n);
|
|
542
|
+
const A = m % n;
|
|
543
|
+
m -= A, I = Math.ceil(T.end / i * n), c = Math.max(0, Math.floor((T.start - P) / i * n)), C = Math.floor((T.end - P) / i * n), m < 0 && (m = 0), I > u && (I = u), c < 0 && (c = 0), C > u && (C = u), y = Math.ceil(u / n) * i;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
|
|
546
|
+
I - m > rn.itemsLimit && this.itemsLimitError(), this.totalSize = y;
|
|
547
547
|
let g;
|
|
548
|
-
const
|
|
549
|
-
if (
|
|
550
|
-
for (let
|
|
551
|
-
g = _[
|
|
552
|
-
const
|
|
553
|
-
let
|
|
554
|
-
for (let
|
|
555
|
-
|
|
556
|
-
const
|
|
557
|
-
if (
|
|
558
|
-
throw new Error(`Key is ${
|
|
559
|
-
if (g =
|
|
548
|
+
const E = m <= this.$_endIndex && I >= this.$_startIndex;
|
|
549
|
+
if (E)
|
|
550
|
+
for (let T = 0, x = _.length; T < x; T++)
|
|
551
|
+
g = _[T], g.nr.used && (t && (g.nr.index = S[g.item[s]]), (g.nr.index == null || g.nr.index < m || g.nr.index >= I) && this.unuseView(g));
|
|
552
|
+
const L = E ? null : /* @__PURE__ */ new Map();
|
|
553
|
+
let H, G, B;
|
|
554
|
+
for (let T = m; T < I; T++) {
|
|
555
|
+
H = a[T];
|
|
556
|
+
const x = s ? H[s] : H;
|
|
557
|
+
if (x == null)
|
|
558
|
+
throw new Error(`Key is ${x} on item (keyField is '${s}')`);
|
|
559
|
+
if (g = h.get(x), !i && !d[T].size) {
|
|
560
560
|
g && this.unuseView(g);
|
|
561
561
|
continue;
|
|
562
562
|
}
|
|
563
|
-
G =
|
|
564
|
-
let
|
|
563
|
+
G = H[l];
|
|
564
|
+
let P = p.get(G), A = !1;
|
|
565
565
|
if (!g)
|
|
566
|
-
|
|
567
|
-
else if (!g.nr.used && (g.nr.used = !0,
|
|
568
|
-
const J =
|
|
569
|
-
J !== -1 &&
|
|
566
|
+
E ? P && P.length ? g = P.pop() : g = this.addView(_, T, H, x, G) : (B = L.get(G) || 0, (!P || B >= P.length) && (g = this.addView(_, T, H, x, G), this.unuseView(g, !0), P = p.get(G)), g = P[B], L.set(G, B + 1)), h.delete(g.nr.key), g.nr.used = !0, g.nr.index = T, g.nr.key = x, g.nr.type = G, h.set(x, g), A = !0;
|
|
567
|
+
else if (!g.nr.used && (g.nr.used = !0, A = !0, P)) {
|
|
568
|
+
const J = P.indexOf(g);
|
|
569
|
+
J !== -1 && P.splice(J, 1);
|
|
570
570
|
}
|
|
571
|
-
g.item =
|
|
571
|
+
g.item = H, A && (T === a.length - 1 && this.$emit("scroll-end"), T === 0 && this.$emit("scroll-start")), i === null ? (g.position = d[T - 1].accumulator, g.offset = 0) : (g.position = Math.floor(T / n) * i, g.offset = T % n * r);
|
|
572
572
|
}
|
|
573
|
-
return this.$_startIndex =
|
|
574
|
-
continuous:
|
|
573
|
+
return this.$_startIndex = m, this.$_endIndex = I, this.emitUpdate && this.$emit("update", m, I, c, C), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
|
|
574
|
+
continuous: E
|
|
575
575
|
};
|
|
576
576
|
},
|
|
577
577
|
getListenerTarget() {
|
|
@@ -601,7 +601,7 @@ var Nt = {
|
|
|
601
601
|
this.pageMode ? this.addListeners() : this.removeListeners();
|
|
602
602
|
},
|
|
603
603
|
addListeners() {
|
|
604
|
-
this.listenerTarget = this.getListenerTarget(), this.listenerTarget.addEventListener("scroll", this.handleScroll,
|
|
604
|
+
this.listenerTarget = this.getListenerTarget(), this.listenerTarget.addEventListener("scroll", this.handleScroll, Ct ? {
|
|
605
605
|
passive: !0
|
|
606
606
|
} : !1), this.listenerTarget.addEventListener("resize", this.handleResize);
|
|
607
607
|
},
|
|
@@ -643,7 +643,7 @@ const fn = {
|
|
|
643
643
|
};
|
|
644
644
|
function pn(t, e, i, n, r, o) {
|
|
645
645
|
const l = zi("ResizeObserver"), s = Ai("observe-visibility");
|
|
646
|
-
return Se((
|
|
646
|
+
return Se((k(), X(
|
|
647
647
|
"div",
|
|
648
648
|
{
|
|
649
649
|
class: de(["vue-recycle-scroller", {
|
|
@@ -654,25 +654,25 @@ 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 ? (k(), X(
|
|
658
658
|
"div",
|
|
659
659
|
fn,
|
|
660
660
|
[
|
|
661
|
-
|
|
661
|
+
he(t.$slots, "before")
|
|
662
662
|
],
|
|
663
663
|
512
|
|
664
664
|
/* NEED_PATCH */
|
|
665
|
-
)) :
|
|
666
|
-
(
|
|
665
|
+
)) : K("v-if", !0),
|
|
666
|
+
(k(), oe(Vt(i.listTag), {
|
|
667
667
|
ref: "wrapper",
|
|
668
668
|
style: qt({ [t.direction === "vertical" ? "minHeight" : "minWidth"]: r.totalSize + "px" }),
|
|
669
669
|
class: de(["vue-recycle-scroller__item-wrapper", i.listClass])
|
|
670
670
|
}, {
|
|
671
|
-
default:
|
|
672
|
-
(
|
|
671
|
+
default: tt(() => [
|
|
672
|
+
(k(!0), X(
|
|
673
673
|
_t,
|
|
674
674
|
null,
|
|
675
|
-
Et(r.pool, (a) => (
|
|
675
|
+
Et(r.pool, (a) => (k(), oe(Vt(i.itemTag), ki({
|
|
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)`,
|
|
@@ -693,8 +693,8 @@ function pn(t, e, i, n, r, o) {
|
|
|
693
693
|
r.hoverKey = null;
|
|
694
694
|
}
|
|
695
695
|
})), {
|
|
696
|
-
default:
|
|
697
|
-
|
|
696
|
+
default: tt(() => [
|
|
697
|
+
he(t.$slots, "default", {
|
|
698
698
|
item: a.item,
|
|
699
699
|
index: a.nr.index,
|
|
700
700
|
active: a.nr.used
|
|
@@ -706,20 +706,20 @@ 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 */
|
|
713
713
|
}, 8, ["style", "class"])),
|
|
714
|
-
t.$slots.after ? (
|
|
714
|
+
t.$slots.after ? (k(), X(
|
|
715
715
|
"div",
|
|
716
716
|
hn,
|
|
717
717
|
[
|
|
718
|
-
|
|
718
|
+
he(t.$slots, "after")
|
|
719
719
|
],
|
|
720
720
|
512
|
|
721
721
|
/* NEED_PATCH */
|
|
722
|
-
)) :
|
|
722
|
+
)) : K("v-if", !0),
|
|
723
723
|
Pi(l, { onNotify: o.handleResize }, null, 8, ["onNotify"])
|
|
724
724
|
],
|
|
725
725
|
34
|
|
@@ -731,44 +731,62 @@ function pn(t, e, i, n, r, o) {
|
|
|
731
731
|
Nt.render = pn;
|
|
732
732
|
Nt.__file = "src/components/RecycleScroller.vue";
|
|
733
733
|
const mn = (t, e) => {
|
|
734
|
-
const i = Ne(), n = Ne(), r = Zt(t, "modelValue"), o = t.valueKey, l =
|
|
734
|
+
const i = Ne(), n = Ne(), r = Zt(t, "modelValue"), o = t.valueKey, l = Pe(() => 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 = Pe(() => ({ disabled: "disabled", ...t.props })), a = (y) => {
|
|
735
735
|
let c = !1;
|
|
736
|
-
return typeof s.value.disabled == "string" ? c =
|
|
737
|
-
}, u = (
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
736
|
+
return typeof s.value.disabled == "string" ? c = y[s.value.disabled] : c = s.value.disabled(y) ?? !1, c;
|
|
737
|
+
}, u = Pe({
|
|
738
|
+
get: () => t.selectdValue,
|
|
739
|
+
set: (y) => {
|
|
740
|
+
e("update:selectdValue", y);
|
|
741
|
+
}
|
|
742
|
+
}), d = (y) => {
|
|
743
|
+
u.value = y[o], e("select-item", y);
|
|
744
|
+
}, h = (y) => {
|
|
745
|
+
const c = r.value.filter((C) => C[o] !== y[o]);
|
|
746
|
+
e("item-remove", y), e("update:modelValue", c);
|
|
747
|
+
}, p = () => {
|
|
748
|
+
const y = r.value.filter((C) => !a(C)), c = r.value.filter((C) => a(C));
|
|
749
|
+
e("remove-all", y), e("update:modelValue", c);
|
|
750
|
+
}, _ = () => {
|
|
751
|
+
t.infiniteScroll && t.infiniteScroll().then((y) => {
|
|
752
|
+
if (y && y.length) {
|
|
746
753
|
let c = [];
|
|
747
|
-
c =
|
|
748
|
-
(
|
|
754
|
+
c = y, c = c.filter(
|
|
755
|
+
(g) => !r.value.map((E) => E[t.valueKey]).includes(g[t.valueKey])
|
|
749
756
|
);
|
|
750
757
|
const C = r.value.concat(c);
|
|
751
758
|
e("update:modelValue", C);
|
|
752
759
|
}
|
|
753
760
|
});
|
|
754
761
|
};
|
|
755
|
-
let
|
|
756
|
-
const
|
|
762
|
+
let S = 0;
|
|
763
|
+
const m = (y) => {
|
|
757
764
|
var C;
|
|
758
765
|
const c = ((C = n.value) == null ? void 0 : C.offsetHeight) || 0;
|
|
759
|
-
|
|
760
|
-
},
|
|
766
|
+
S !== 0 && y === 0 && _(), S = y, y !== 0 && y - c < 10 && _();
|
|
767
|
+
}, I = Ne();
|
|
761
768
|
return Jt(() => {
|
|
762
769
|
var c;
|
|
763
770
|
if (t.infiniteDisabled) return;
|
|
764
|
-
const
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
},
|
|
768
|
-
}),
|
|
769
|
-
var
|
|
770
|
-
(
|
|
771
|
-
}), {
|
|
771
|
+
const y = (c = n.value) == null ? void 0 : c.querySelector(".selected-group");
|
|
772
|
+
I.value = Hi((C) => {
|
|
773
|
+
m(C.height);
|
|
774
|
+
}, y);
|
|
775
|
+
}), $i(() => {
|
|
776
|
+
var y;
|
|
777
|
+
(y = I.value) == null || y.disconnect();
|
|
778
|
+
}), {
|
|
779
|
+
selectListRef: i,
|
|
780
|
+
$list: n,
|
|
781
|
+
disabledFlag: a,
|
|
782
|
+
itemGroups: r,
|
|
783
|
+
selectedLabel: l,
|
|
784
|
+
itemRemove: h,
|
|
785
|
+
removeAll: p,
|
|
786
|
+
innerSelectdValue: u,
|
|
787
|
+
selectItem: d,
|
|
788
|
+
infiniteLoad: _
|
|
789
|
+
};
|
|
772
790
|
};
|
|
773
791
|
/**!
|
|
774
792
|
* Sortable 1.15.3
|
|
@@ -797,13 +815,13 @@ function re(t) {
|
|
|
797
815
|
}
|
|
798
816
|
return t;
|
|
799
817
|
}
|
|
800
|
-
function
|
|
818
|
+
function Ue(t) {
|
|
801
819
|
"@babel/helpers - typeof";
|
|
802
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
820
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ue = function(e) {
|
|
803
821
|
return typeof e;
|
|
804
|
-
} :
|
|
822
|
+
} : Ue = function(e) {
|
|
805
823
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
806
|
-
},
|
|
824
|
+
}, Ue(t);
|
|
807
825
|
}
|
|
808
826
|
function gn(t, e, i) {
|
|
809
827
|
return e in t ? Object.defineProperty(t, e, {
|
|
@@ -845,14 +863,14 @@ function le(t) {
|
|
|
845
863
|
if (typeof window < "u" && window.navigator)
|
|
846
864
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
847
865
|
}
|
|
848
|
-
var se = le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
|
866
|
+
var se = le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Fe = le(/Edge/i), Bt = le(/firefox/i), $e = le(/safari/i) && !le(/chrome/i) && !le(/android/i), ni = le(/iP(ad|od|hone)/i), ri = le(/chrome/i) && le(/android/i), oi = {
|
|
849
867
|
capture: !1,
|
|
850
868
|
passive: !1
|
|
851
869
|
};
|
|
852
|
-
function
|
|
870
|
+
function z(t, e, i) {
|
|
853
871
|
t.addEventListener(e, i, !se && oi);
|
|
854
872
|
}
|
|
855
|
-
function
|
|
873
|
+
function O(t, e, i) {
|
|
856
874
|
t.removeEventListener(e, i, !se && oi);
|
|
857
875
|
}
|
|
858
876
|
function it(t, e) {
|
|
@@ -929,37 +947,37 @@ function ne() {
|
|
|
929
947
|
var t = document.scrollingElement;
|
|
930
948
|
return t || document.documentElement;
|
|
931
949
|
}
|
|
932
|
-
function
|
|
950
|
+
function F(t, e, i, n, r) {
|
|
933
951
|
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
934
|
-
var o, l, s, a, u, d,
|
|
935
|
-
if (t !== window && t.parentNode && t !== ne() ? (o = t.getBoundingClientRect(), l = o.top, s = o.left, a = o.bottom, u = o.right, d = o.height,
|
|
952
|
+
var o, l, s, a, u, d, h;
|
|
953
|
+
if (t !== window && t.parentNode && t !== ne() ? (o = t.getBoundingClientRect(), l = o.top, s = o.left, a = o.bottom, u = o.right, d = o.height, h = o.width) : (l = 0, s = 0, a = window.innerHeight, u = window.innerWidth, d = window.innerHeight, h = window.innerWidth), (e || i) && t !== window && (r = r || t.parentNode, !se))
|
|
936
954
|
do
|
|
937
955
|
if (r && r.getBoundingClientRect && (v(r, "transform") !== "none" || i && v(r, "position") !== "static")) {
|
|
938
|
-
var
|
|
939
|
-
l -=
|
|
956
|
+
var p = r.getBoundingClientRect();
|
|
957
|
+
l -= p.top + parseInt(v(r, "border-top-width")), s -= p.left + parseInt(v(r, "border-left-width")), a = l + o.height, u = s + o.width;
|
|
940
958
|
break;
|
|
941
959
|
}
|
|
942
960
|
while (r = r.parentNode);
|
|
943
961
|
if (n && t !== window) {
|
|
944
|
-
var _ = De(r || t), S = _ && _.a,
|
|
945
|
-
_ && (l /=
|
|
962
|
+
var _ = De(r || t), S = _ && _.a, m = _ && _.d;
|
|
963
|
+
_ && (l /= m, s /= S, h /= S, d /= m, a = l + d, u = s + h);
|
|
946
964
|
}
|
|
947
965
|
return {
|
|
948
966
|
top: l,
|
|
949
967
|
left: s,
|
|
950
968
|
bottom: a,
|
|
951
969
|
right: u,
|
|
952
|
-
width:
|
|
970
|
+
width: h,
|
|
953
971
|
height: d
|
|
954
972
|
};
|
|
955
973
|
}
|
|
956
974
|
}
|
|
957
975
|
function Xt(t, e, i) {
|
|
958
|
-
for (var n =
|
|
959
|
-
var o =
|
|
976
|
+
for (var n = pe(t, !0), r = F(t)[e]; n; ) {
|
|
977
|
+
var o = F(n)[i], l = void 0;
|
|
960
978
|
if (l = r >= o, !l) return n;
|
|
961
979
|
if (n === ne()) break;
|
|
962
|
-
n =
|
|
980
|
+
n = pe(n, !1);
|
|
963
981
|
}
|
|
964
982
|
return !1;
|
|
965
983
|
}
|
|
@@ -1004,7 +1022,7 @@ function wn(t, e) {
|
|
|
1004
1022
|
}
|
|
1005
1023
|
return -1;
|
|
1006
1024
|
}
|
|
1007
|
-
function
|
|
1025
|
+
function pe(t, e) {
|
|
1008
1026
|
if (!t || !t.getBoundingClientRect) return ne();
|
|
1009
1027
|
var i = t, n = !1;
|
|
1010
1028
|
do
|
|
@@ -1028,19 +1046,19 @@ function Sn(t, e) {
|
|
|
1028
1046
|
function ht(t, e) {
|
|
1029
1047
|
return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
|
|
1030
1048
|
}
|
|
1031
|
-
var
|
|
1049
|
+
var Me;
|
|
1032
1050
|
function si(t, e) {
|
|
1033
1051
|
return function() {
|
|
1034
|
-
if (!
|
|
1052
|
+
if (!Me) {
|
|
1035
1053
|
var i = arguments, n = this;
|
|
1036
|
-
i.length === 1 ? t.call(n, i[0]) : t.apply(n, i),
|
|
1037
|
-
|
|
1054
|
+
i.length === 1 ? t.call(n, i[0]) : t.apply(n, i), Me = setTimeout(function() {
|
|
1055
|
+
Me = void 0;
|
|
1038
1056
|
}, e);
|
|
1039
1057
|
}
|
|
1040
1058
|
};
|
|
1041
1059
|
}
|
|
1042
1060
|
function _n() {
|
|
1043
|
-
clearTimeout(
|
|
1061
|
+
clearTimeout(Me), Me = void 0;
|
|
1044
1062
|
}
|
|
1045
1063
|
function ui(t, e, i) {
|
|
1046
1064
|
t.scrollLeft += e, t.scrollTop += i;
|
|
@@ -1054,12 +1072,12 @@ function ci(t, e, i) {
|
|
|
1054
1072
|
return Array.from(t.children).forEach(function(r) {
|
|
1055
1073
|
var o, l, s, a;
|
|
1056
1074
|
if (!(!ie(r, e.draggable, t, !1) || r.animated || r === i)) {
|
|
1057
|
-
var u =
|
|
1075
|
+
var u = F(r);
|
|
1058
1076
|
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);
|
|
1059
1077
|
}
|
|
1060
1078
|
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
1061
1079
|
}
|
|
1062
|
-
var
|
|
1080
|
+
var q = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1063
1081
|
function En() {
|
|
1064
1082
|
var t = [], e;
|
|
1065
1083
|
return {
|
|
@@ -1070,7 +1088,7 @@ function En() {
|
|
|
1070
1088
|
if (!(v(r, "display") === "none" || r === b.ghost)) {
|
|
1071
1089
|
t.push({
|
|
1072
1090
|
target: r,
|
|
1073
|
-
rect:
|
|
1091
|
+
rect: F(r)
|
|
1074
1092
|
});
|
|
1075
1093
|
var o = re({}, t[t.length - 1].rect);
|
|
1076
1094
|
if (r.thisAnimationDuration) {
|
|
@@ -1098,9 +1116,9 @@ function En() {
|
|
|
1098
1116
|
}
|
|
1099
1117
|
var o = !1, l = 0;
|
|
1100
1118
|
t.forEach(function(s) {
|
|
1101
|
-
var a = 0, u = s.target, d = u.fromRect,
|
|
1102
|
-
|
|
1103
|
-
(S.top -
|
|
1119
|
+
var a = 0, u = s.target, d = u.fromRect, h = F(u), p = u.prevFromRect, _ = u.prevToRect, S = s.rect, m = De(u, !0);
|
|
1120
|
+
m && (h.top -= m.f, h.left -= m.e), u.toRect = h, u.thisAnimationDuration && ht(p, h) && !ht(d, h) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1121
|
+
(S.top - h.top) / (S.left - h.left) === (d.top - h.top) / (d.left - h.left) && (a = In(S, p, _, r.options)), ht(h, d) || (u.prevFromRect = d, u.prevToRect = h, a || (a = r.options.animation), r.animate(u, S, h, a)), a && (o = !0, l = Math.max(l, a), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
1104
1122
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
1105
1123
|
}, a), u.thisAnimationDuration = a);
|
|
1106
1124
|
}), clearTimeout(e), o ? e = setTimeout(function() {
|
|
@@ -1110,8 +1128,8 @@ function En() {
|
|
|
1110
1128
|
animate: function(n, r, o, l) {
|
|
1111
1129
|
if (l) {
|
|
1112
1130
|
v(n, "transition", ""), v(n, "transform", "");
|
|
1113
|
-
var s = De(this.el), a = s && s.a, u = s && s.d, d = (r.left - o.left) / (a || 1),
|
|
1114
|
-
n.animatingX = !!d, n.animatingY = !!
|
|
1131
|
+
var s = De(this.el), a = s && s.a, u = s && s.d, d = (r.left - o.left) / (a || 1), h = (r.top - o.top) / (u || 1);
|
|
1132
|
+
n.animatingX = !!d, n.animatingY = !!h, v(n, "transform", "translate3d(" + d + "px," + h + "px,0)"), this.forRepaintDummy = Dn(n), v(n, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
1115
1133
|
v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1116
1134
|
}, l);
|
|
1117
1135
|
}
|
|
@@ -1126,7 +1144,7 @@ function In(t, e, i, n) {
|
|
|
1126
1144
|
}
|
|
1127
1145
|
var ye = [], pt = {
|
|
1128
1146
|
initializeByDefault: !0
|
|
1129
|
-
},
|
|
1147
|
+
}, He = {
|
|
1130
1148
|
mount: function(e) {
|
|
1131
1149
|
for (var i in pt)
|
|
1132
1150
|
pt.hasOwnProperty(i) && !(i in e) && (e[i] = pt[i]);
|
|
@@ -1177,36 +1195,36 @@ var ye = [], pt = {
|
|
|
1177
1195
|
}
|
|
1178
1196
|
};
|
|
1179
1197
|
function Tn(t) {
|
|
1180
|
-
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, d = t.oldDraggableIndex,
|
|
1181
|
-
if (e = e || i && i[
|
|
1182
|
-
var
|
|
1183
|
-
window.CustomEvent && !se && !
|
|
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, d = t.oldDraggableIndex, h = t.newDraggableIndex, p = t.originalEvent, _ = t.putSortable, S = t.extraEventProperties;
|
|
1199
|
+
if (e = e || i && i[q], !!e) {
|
|
1200
|
+
var m, I = e.options, y = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
1201
|
+
window.CustomEvent && !se && !Fe ? m = new CustomEvent(n, {
|
|
1184
1202
|
bubbles: !0,
|
|
1185
1203
|
cancelable: !0
|
|
1186
|
-
}) : (
|
|
1187
|
-
var
|
|
1188
|
-
for (var
|
|
1189
|
-
|
|
1190
|
-
i && i.dispatchEvent(
|
|
1204
|
+
}) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = l || i, m.from = s || i, m.item = r || i, m.clone = o, m.oldIndex = a, m.newIndex = u, m.oldDraggableIndex = d, m.newDraggableIndex = h, m.originalEvent = p, m.pullMode = _ ? _.lastPutMode : void 0;
|
|
1205
|
+
var c = re(re({}, S), He.getEventProperties(n, e));
|
|
1206
|
+
for (var C in c)
|
|
1207
|
+
m[C] = c[C];
|
|
1208
|
+
i && i.dispatchEvent(m), I[y] && I[y].call(e, m);
|
|
1191
1209
|
}
|
|
1192
1210
|
}
|
|
1193
|
-
var
|
|
1194
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = bn(n,
|
|
1195
|
-
|
|
1196
|
-
dragEl:
|
|
1197
|
-
parentEl:
|
|
1211
|
+
var Cn = ["evt"], U = function(e, i) {
|
|
1212
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = bn(n, Cn);
|
|
1213
|
+
He.pluginEvent.bind(b)(e, i, re({
|
|
1214
|
+
dragEl: f,
|
|
1215
|
+
parentEl: M,
|
|
1198
1216
|
ghostEl: w,
|
|
1199
|
-
rootEl:
|
|
1200
|
-
nextEl:
|
|
1201
|
-
lastDownEl:
|
|
1202
|
-
cloneEl:
|
|
1217
|
+
rootEl: N,
|
|
1218
|
+
nextEl: be,
|
|
1219
|
+
lastDownEl: qe,
|
|
1220
|
+
cloneEl: $,
|
|
1203
1221
|
cloneHidden: fe,
|
|
1204
1222
|
dragStarted: ze,
|
|
1205
|
-
putSortable:
|
|
1223
|
+
putSortable: Y,
|
|
1206
1224
|
activeSortable: b.active,
|
|
1207
1225
|
originalEvent: r,
|
|
1208
1226
|
oldIndex: Ee,
|
|
1209
|
-
oldDraggableIndex:
|
|
1227
|
+
oldDraggableIndex: xe,
|
|
1210
1228
|
newIndex: Q,
|
|
1211
1229
|
newDraggableIndex: ce,
|
|
1212
1230
|
hideGhostForTarget: mi,
|
|
@@ -1218,7 +1236,7 @@ var On = ["evt"], K = function(e, i) {
|
|
|
1218
1236
|
fe = !1;
|
|
1219
1237
|
},
|
|
1220
1238
|
dispatchSortableEvent: function(s) {
|
|
1221
|
-
|
|
1239
|
+
j({
|
|
1222
1240
|
sortable: i,
|
|
1223
1241
|
name: s,
|
|
1224
1242
|
originalEvent: r
|
|
@@ -1226,19 +1244,19 @@ var On = ["evt"], K = function(e, i) {
|
|
|
1226
1244
|
}
|
|
1227
1245
|
}, o));
|
|
1228
1246
|
};
|
|
1229
|
-
function
|
|
1247
|
+
function j(t) {
|
|
1230
1248
|
Tn(re({
|
|
1231
|
-
putSortable:
|
|
1232
|
-
cloneEl:
|
|
1233
|
-
targetEl:
|
|
1234
|
-
rootEl:
|
|
1249
|
+
putSortable: Y,
|
|
1250
|
+
cloneEl: $,
|
|
1251
|
+
targetEl: f,
|
|
1252
|
+
rootEl: N,
|
|
1235
1253
|
oldIndex: Ee,
|
|
1236
|
-
oldDraggableIndex:
|
|
1254
|
+
oldDraggableIndex: xe,
|
|
1237
1255
|
newIndex: Q,
|
|
1238
1256
|
newDraggableIndex: ce
|
|
1239
1257
|
}, t));
|
|
1240
1258
|
}
|
|
1241
|
-
var
|
|
1259
|
+
var f, M, w, N, be, qe, $, fe, Ee, Q, xe, ce, Be, Y, _e = !1, nt = !1, rt = [], ge, te, mt, gt, jt, Kt, ze, we, Ve, Re = !1, Ye = !1, Je, W, vt = [], Ot = !1, ot = [], st = typeof document < "u", Xe = ni, Gt = Fe || se ? "cssFloat" : "float", On = st && !ri && !ni && "draggable" in document.createElement("div"), fi = function() {
|
|
1242
1260
|
if (st) {
|
|
1243
1261
|
if (se)
|
|
1244
1262
|
return !1;
|
|
@@ -1246,25 +1264,25 @@ var h, x, w, k, ve, Ue, P, fe, Ee, Q, $e, ce, Le, H, _e = !1, nt = !1, rt = [],
|
|
|
1246
1264
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
1247
1265
|
}
|
|
1248
1266
|
}(), hi = function(e, i) {
|
|
1249
|
-
var n = v(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 && v(o), a = l && v(l), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) +
|
|
1267
|
+
var n = v(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 && v(o), a = l && v(l), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + F(o).width, d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + F(l).width;
|
|
1250
1268
|
if (n.display === "flex")
|
|
1251
1269
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1252
1270
|
if (n.display === "grid")
|
|
1253
1271
|
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
1254
1272
|
if (o && s.float && s.float !== "none") {
|
|
1255
|
-
var
|
|
1256
|
-
return l && (a.clear === "both" || a.clear ===
|
|
1273
|
+
var h = s.float === "left" ? "left" : "right";
|
|
1274
|
+
return l && (a.clear === "both" || a.clear === h) ? "vertical" : "horizontal";
|
|
1257
1275
|
}
|
|
1258
|
-
return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= r && n[
|
|
1276
|
+
return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= r && n[Gt] === "none" || l && n[Gt] === "none" && u + d > r) ? "vertical" : "horizontal";
|
|
1259
1277
|
}, zn = function(e, i, n) {
|
|
1260
1278
|
var r = n ? e.left : e.top, o = n ? e.right : e.bottom, l = n ? e.width : e.height, s = n ? i.left : i.top, a = n ? i.right : i.bottom, u = n ? i.width : i.height;
|
|
1261
1279
|
return r === s || o === a || r + l / 2 === s + u / 2;
|
|
1262
1280
|
}, An = function(e, i) {
|
|
1263
1281
|
var n;
|
|
1264
1282
|
return rt.some(function(r) {
|
|
1265
|
-
var o = r[
|
|
1283
|
+
var o = r[q].options.emptyInsertThreshold;
|
|
1266
1284
|
if (!(!o || Pt(r))) {
|
|
1267
|
-
var l =
|
|
1285
|
+
var l = F(r), s = e >= l.left - o && e <= l.right + o, a = i >= l.top - o && i <= l.bottom + o;
|
|
1268
1286
|
if (s && a)
|
|
1269
1287
|
return n = r;
|
|
1270
1288
|
}
|
|
@@ -1272,8 +1290,8 @@ var h, x, w, k, ve, Ue, P, fe, Ee, Q, $e, ce, Le, H, _e = !1, nt = !1, rt = [],
|
|
|
1272
1290
|
}, pi = function(e) {
|
|
1273
1291
|
function i(o, l) {
|
|
1274
1292
|
return function(s, a, u, d) {
|
|
1275
|
-
var
|
|
1276
|
-
if (o == null && (l ||
|
|
1293
|
+
var h = s.options.group.name && a.options.group.name && s.options.group.name === a.options.group.name;
|
|
1294
|
+
if (o == null && (l || h))
|
|
1277
1295
|
return !0;
|
|
1278
1296
|
if (o == null || o === !1)
|
|
1279
1297
|
return !1;
|
|
@@ -1281,12 +1299,12 @@ var h, x, w, k, ve, Ue, P, fe, Ee, Q, $e, ce, Le, H, _e = !1, nt = !1, rt = [],
|
|
|
1281
1299
|
return o;
|
|
1282
1300
|
if (typeof o == "function")
|
|
1283
1301
|
return i(o(s, a, u, d), l)(s, a, u, d);
|
|
1284
|
-
var
|
|
1285
|
-
return o === !0 || typeof o == "string" && o ===
|
|
1302
|
+
var p = (l ? s : a).options.group.name;
|
|
1303
|
+
return o === !0 || typeof o == "string" && o === p || o.join && o.indexOf(p) > -1;
|
|
1286
1304
|
};
|
|
1287
1305
|
}
|
|
1288
1306
|
var n = {}, r = e.group;
|
|
1289
|
-
(!r ||
|
|
1307
|
+
(!r || Ue(r) != "object") && (r = {
|
|
1290
1308
|
name: r
|
|
1291
1309
|
}), n.name = r.name, n.checkPull = i(r.pull, !0), n.checkPut = i(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
1292
1310
|
}, mi = function() {
|
|
@@ -1298,24 +1316,24 @@ st && !ri && document.addEventListener("click", function(t) {
|
|
|
1298
1316
|
if (nt)
|
|
1299
1317
|
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), nt = !1, !1;
|
|
1300
1318
|
}, !0);
|
|
1301
|
-
var
|
|
1302
|
-
if (
|
|
1319
|
+
var ve = function(e) {
|
|
1320
|
+
if (f) {
|
|
1303
1321
|
e = e.touches ? e.touches[0] : e;
|
|
1304
1322
|
var i = An(e.clientX, e.clientY);
|
|
1305
1323
|
if (i) {
|
|
1306
1324
|
var n = {};
|
|
1307
1325
|
for (var r in e)
|
|
1308
1326
|
e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
1309
|
-
n.target = n.rootEl = i, n.preventDefault = void 0, n.stopPropagation = void 0, i[
|
|
1327
|
+
n.target = n.rootEl = i, n.preventDefault = void 0, n.stopPropagation = void 0, i[q]._onDragOver(n);
|
|
1310
1328
|
}
|
|
1311
1329
|
}
|
|
1312
1330
|
}, kn = function(e) {
|
|
1313
|
-
|
|
1331
|
+
f && f.parentNode[q]._isOutsideThisEl(e.target);
|
|
1314
1332
|
};
|
|
1315
1333
|
function b(t, e) {
|
|
1316
1334
|
if (!(t && t.nodeType && t.nodeType === 1))
|
|
1317
1335
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
|
|
1318
|
-
this.el = t, this.options = e = ae({}, e), t[
|
|
1336
|
+
this.el = t, this.options = e = ae({}, e), t[q] = this;
|
|
1319
1337
|
var i = {
|
|
1320
1338
|
group: null,
|
|
1321
1339
|
sort: !0,
|
|
@@ -1358,16 +1376,16 @@ function b(t, e) {
|
|
|
1358
1376
|
x: 0,
|
|
1359
1377
|
y: 0
|
|
1360
1378
|
},
|
|
1361
|
-
supportPointer: b.supportPointer !== !1 && "PointerEvent" in window &&
|
|
1379
|
+
supportPointer: b.supportPointer !== !1 && "PointerEvent" in window && !$e,
|
|
1362
1380
|
emptyInsertThreshold: 5
|
|
1363
1381
|
};
|
|
1364
|
-
|
|
1382
|
+
He.initializePlugins(this, t, i);
|
|
1365
1383
|
for (var n in i)
|
|
1366
1384
|
!(n in e) && (e[n] = i[n]);
|
|
1367
1385
|
pi(e);
|
|
1368
1386
|
for (var r in this)
|
|
1369
1387
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
1370
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
1388
|
+
this.nativeDraggable = e.forceFallback ? !1 : On, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? z(t, "pointerdown", this._onTapStart) : (z(t, "mousedown", this._onTapStart), z(t, "touchstart", this._onTapStart)), this.nativeDraggable && (z(t, "dragover", this), z(t, "dragenter", this)), rt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), ae(this, En());
|
|
1371
1389
|
}
|
|
1372
1390
|
b.prototype = /** @lends Sortable.prototype */
|
|
1373
1391
|
{
|
|
@@ -1376,36 +1394,36 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1376
1394
|
!this.el.contains(e) && e !== this.el && (we = null);
|
|
1377
1395
|
},
|
|
1378
1396
|
_getDirection: function(e, i) {
|
|
1379
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, i,
|
|
1397
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, i, f) : this.options.direction;
|
|
1380
1398
|
},
|
|
1381
1399
|
_onTapStart: function(e) {
|
|
1382
1400
|
if (e.cancelable) {
|
|
1383
1401
|
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, d = r.filter;
|
|
1384
|
-
if (Fn(n), !
|
|
1385
|
-
if (Ee = ee(a),
|
|
1402
|
+
if (Fn(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)) {
|
|
1403
|
+
if (Ee = ee(a), xe = ee(a, r.draggable), typeof d == "function") {
|
|
1386
1404
|
if (d.call(this, e, a, this)) {
|
|
1387
|
-
|
|
1405
|
+
j({
|
|
1388
1406
|
sortable: i,
|
|
1389
1407
|
rootEl: u,
|
|
1390
1408
|
name: "filter",
|
|
1391
1409
|
targetEl: a,
|
|
1392
1410
|
toEl: n,
|
|
1393
1411
|
fromEl: n
|
|
1394
|
-
}),
|
|
1412
|
+
}), U("filter", i, {
|
|
1395
1413
|
evt: e
|
|
1396
1414
|
}), o && e.cancelable && e.preventDefault();
|
|
1397
1415
|
return;
|
|
1398
1416
|
}
|
|
1399
|
-
} else if (d && (d = d.split(",").some(function(
|
|
1400
|
-
if (
|
|
1401
|
-
return
|
|
1417
|
+
} else if (d && (d = d.split(",").some(function(h) {
|
|
1418
|
+
if (h = ie(u, h.trim(), n, !1), h)
|
|
1419
|
+
return j({
|
|
1402
1420
|
sortable: i,
|
|
1403
|
-
rootEl:
|
|
1421
|
+
rootEl: h,
|
|
1404
1422
|
name: "filter",
|
|
1405
1423
|
targetEl: a,
|
|
1406
1424
|
fromEl: n,
|
|
1407
1425
|
toEl: n
|
|
1408
|
-
}),
|
|
1426
|
+
}), U("filter", i, {
|
|
1409
1427
|
evt: e
|
|
1410
1428
|
}), !0;
|
|
1411
1429
|
}), d)) {
|
|
@@ -1418,34 +1436,34 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1418
1436
|
},
|
|
1419
1437
|
_prepareDragStart: function(e, i, n) {
|
|
1420
1438
|
var r = this, o = r.el, l = r.options, s = o.ownerDocument, a;
|
|
1421
|
-
if (n && !
|
|
1422
|
-
var u =
|
|
1423
|
-
if (
|
|
1424
|
-
target:
|
|
1439
|
+
if (n && !f && n.parentNode === o) {
|
|
1440
|
+
var u = F(n);
|
|
1441
|
+
if (N = o, f = n, M = f.parentNode, be = f.nextSibling, qe = n, Be = l.group, b.dragged = f, ge = {
|
|
1442
|
+
target: f,
|
|
1425
1443
|
clientX: (i || e).clientX,
|
|
1426
1444
|
clientY: (i || e).clientY
|
|
1427
|
-
}, jt =
|
|
1428
|
-
if (
|
|
1445
|
+
}, jt = ge.clientX - u.left, Kt = ge.clientY - u.top, this._lastX = (i || e).clientX, this._lastY = (i || e).clientY, f.style["will-change"] = "all", a = function() {
|
|
1446
|
+
if (U("delayEnded", r, {
|
|
1429
1447
|
evt: e
|
|
1430
1448
|
}), b.eventCanceled) {
|
|
1431
1449
|
r._onDrop();
|
|
1432
1450
|
return;
|
|
1433
1451
|
}
|
|
1434
|
-
r._disableDelayedDragEvents(), !Bt && r.nativeDraggable && (
|
|
1452
|
+
r._disableDelayedDragEvents(), !Bt && r.nativeDraggable && (f.draggable = !0), r._triggerDragStart(e, i), j({
|
|
1435
1453
|
sortable: r,
|
|
1436
1454
|
name: "choose",
|
|
1437
1455
|
originalEvent: e
|
|
1438
|
-
}), Z(
|
|
1456
|
+
}), Z(f, l.chosenClass, !0);
|
|
1439
1457
|
}, l.ignore.split(",").forEach(function(d) {
|
|
1440
|
-
ai(
|
|
1441
|
-
}),
|
|
1458
|
+
ai(f, d.trim(), bt);
|
|
1459
|
+
}), z(s, "dragover", ve), z(s, "mousemove", ve), z(s, "touchmove", ve), z(s, "mouseup", r._onDrop), z(s, "touchend", r._onDrop), z(s, "touchcancel", r._onDrop), Bt && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), U("delayStart", this, {
|
|
1442
1460
|
evt: e
|
|
1443
|
-
}), l.delay && (!l.delayOnTouchOnly || i) && (!this.nativeDraggable || !(
|
|
1461
|
+
}), l.delay && (!l.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Fe || se))) {
|
|
1444
1462
|
if (b.eventCanceled) {
|
|
1445
1463
|
this._onDrop();
|
|
1446
1464
|
return;
|
|
1447
1465
|
}
|
|
1448
|
-
|
|
1466
|
+
z(s, "mouseup", r._disableDelayedDrag), z(s, "touchend", r._disableDelayedDrag), z(s, "touchcancel", r._disableDelayedDrag), z(s, "mousemove", r._delayedDragTouchMoveHandler), z(s, "touchmove", r._delayedDragTouchMoveHandler), l.supportPointer && z(s, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(a, l.delay);
|
|
1449
1467
|
} else
|
|
1450
1468
|
a();
|
|
1451
1469
|
}
|
|
@@ -1455,28 +1473,28 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1455
1473
|
Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
1456
1474
|
},
|
|
1457
1475
|
_disableDelayedDrag: function() {
|
|
1458
|
-
|
|
1476
|
+
f && bt(f), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
1459
1477
|
},
|
|
1460
1478
|
_disableDelayedDragEvents: function() {
|
|
1461
1479
|
var e = this.el.ownerDocument;
|
|
1462
|
-
|
|
1480
|
+
O(e, "mouseup", this._disableDelayedDrag), O(e, "touchend", this._disableDelayedDrag), O(e, "touchcancel", this._disableDelayedDrag), O(e, "mousemove", this._delayedDragTouchMoveHandler), O(e, "touchmove", this._delayedDragTouchMoveHandler), O(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1463
1481
|
},
|
|
1464
1482
|
_triggerDragStart: function(e, i) {
|
|
1465
|
-
i = i || e.pointerType == "touch" && e, !this.nativeDraggable || i ? this.options.supportPointer ?
|
|
1483
|
+
i = i || e.pointerType == "touch" && e, !this.nativeDraggable || i ? this.options.supportPointer ? z(document, "pointermove", this._onTouchMove) : i ? z(document, "touchmove", this._onTouchMove) : z(document, "mousemove", this._onTouchMove) : (z(f, "dragend", this), z(N, "dragstart", this._onDragStart));
|
|
1466
1484
|
try {
|
|
1467
|
-
document.selection ?
|
|
1485
|
+
document.selection ? Ze(function() {
|
|
1468
1486
|
document.selection.empty();
|
|
1469
1487
|
}) : window.getSelection().removeAllRanges();
|
|
1470
1488
|
} catch {
|
|
1471
1489
|
}
|
|
1472
1490
|
},
|
|
1473
1491
|
_dragStarted: function(e, i) {
|
|
1474
|
-
if (_e = !1,
|
|
1475
|
-
|
|
1492
|
+
if (_e = !1, N && f) {
|
|
1493
|
+
U("dragStarted", this, {
|
|
1476
1494
|
evt: i
|
|
1477
|
-
}), this.nativeDraggable &&
|
|
1495
|
+
}), this.nativeDraggable && z(document, "dragover", kn);
|
|
1478
1496
|
var n = this.options;
|
|
1479
|
-
!e && Z(
|
|
1497
|
+
!e && Z(f, n.dragClass, !1), Z(f, n.ghostClass, !0), b.active = this, e && this._appendGhost(), j({
|
|
1480
1498
|
sortable: this,
|
|
1481
1499
|
name: "start",
|
|
1482
1500
|
originalEvent: i
|
|
@@ -1489,11 +1507,11 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1489
1507
|
this._lastX = te.clientX, this._lastY = te.clientY, mi();
|
|
1490
1508
|
for (var e = document.elementFromPoint(te.clientX, te.clientY), i = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(te.clientX, te.clientY), e !== i); )
|
|
1491
1509
|
i = e;
|
|
1492
|
-
if (
|
|
1510
|
+
if (f.parentNode[q]._isOutsideThisEl(e), i)
|
|
1493
1511
|
do {
|
|
1494
|
-
if (i[
|
|
1512
|
+
if (i[q]) {
|
|
1495
1513
|
var n = void 0;
|
|
1496
|
-
if (n = i[
|
|
1514
|
+
if (n = i[q]._onDragOver({
|
|
1497
1515
|
clientX: te.clientX,
|
|
1498
1516
|
clientY: te.clientY,
|
|
1499
1517
|
target: e,
|
|
@@ -1507,88 +1525,88 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1507
1525
|
}
|
|
1508
1526
|
},
|
|
1509
1527
|
_onTouchMove: function(e) {
|
|
1510
|
-
if (
|
|
1511
|
-
var i = this.options, n = i.fallbackTolerance, r = i.fallbackOffset, o = e.touches ? e.touches[0] : e, l = w && De(w, !0), s = w && l && l.a, a = w && l && l.d, u =
|
|
1528
|
+
if (ge) {
|
|
1529
|
+
var i = this.options, n = i.fallbackTolerance, r = i.fallbackOffset, o = e.touches ? e.touches[0] : e, l = w && De(w, !0), s = w && l && l.a, a = w && l && l.d, u = Xe && W && Wt(W), d = (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);
|
|
1512
1530
|
if (!b.active && !_e) {
|
|
1513
1531
|
if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
|
|
1514
1532
|
return;
|
|
1515
1533
|
this._onDragStart(e, !0);
|
|
1516
1534
|
}
|
|
1517
1535
|
if (w) {
|
|
1518
|
-
l ? (l.e += d - (mt || 0), l.f +=
|
|
1536
|
+
l ? (l.e += d - (mt || 0), l.f += h - (gt || 0)) : l = {
|
|
1519
1537
|
a: 1,
|
|
1520
1538
|
b: 0,
|
|
1521
1539
|
c: 0,
|
|
1522
1540
|
d: 1,
|
|
1523
1541
|
e: d,
|
|
1524
|
-
f
|
|
1542
|
+
f: h
|
|
1525
1543
|
};
|
|
1526
|
-
var
|
|
1527
|
-
v(w, "webkitTransform",
|
|
1544
|
+
var p = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
|
|
1545
|
+
v(w, "webkitTransform", p), v(w, "mozTransform", p), v(w, "msTransform", p), v(w, "transform", p), mt = d, gt = h, te = o;
|
|
1528
1546
|
}
|
|
1529
1547
|
e.cancelable && e.preventDefault();
|
|
1530
1548
|
}
|
|
1531
1549
|
},
|
|
1532
1550
|
_appendGhost: function() {
|
|
1533
1551
|
if (!w) {
|
|
1534
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
1535
|
-
if (
|
|
1536
|
-
for (
|
|
1537
|
-
|
|
1538
|
-
|
|
1552
|
+
var e = this.options.fallbackOnBody ? document.body : N, i = F(f, !0, Xe, !0, e), n = this.options;
|
|
1553
|
+
if (Xe) {
|
|
1554
|
+
for (W = e; v(W, "position") === "static" && v(W, "transform") === "none" && W !== document; )
|
|
1555
|
+
W = W.parentNode;
|
|
1556
|
+
W !== document.body && W !== document.documentElement ? (W === document && (W = ne()), i.top += W.scrollTop, i.left += W.scrollLeft) : W = ne(), vt = Wt(W);
|
|
1539
1557
|
}
|
|
1540
|
-
w =
|
|
1558
|
+
w = f.cloneNode(!0), Z(w, n.ghostClass, !1), Z(w, n.fallbackClass, !0), Z(w, n.dragClass, !0), v(w, "transition", ""), v(w, "transform", ""), v(w, "box-sizing", "border-box"), v(w, "margin", 0), v(w, "top", i.top), v(w, "left", i.left), v(w, "width", i.width), v(w, "height", i.height), v(w, "opacity", "0.8"), v(w, "position", Xe ? "absolute" : "fixed"), v(w, "zIndex", "100000"), v(w, "pointerEvents", "none"), b.ghost = w, e.appendChild(w), v(w, "transform-origin", jt / parseInt(w.style.width) * 100 + "% " + Kt / parseInt(w.style.height) * 100 + "%");
|
|
1541
1559
|
}
|
|
1542
1560
|
},
|
|
1543
1561
|
_onDragStart: function(e, i) {
|
|
1544
1562
|
var n = this, r = e.dataTransfer, o = n.options;
|
|
1545
|
-
if (
|
|
1563
|
+
if (U("dragStart", this, {
|
|
1546
1564
|
evt: e
|
|
1547
1565
|
}), b.eventCanceled) {
|
|
1548
1566
|
this._onDrop();
|
|
1549
1567
|
return;
|
|
1550
1568
|
}
|
|
1551
|
-
|
|
1552
|
-
|
|
1569
|
+
U("setupClone", this), b.eventCanceled || ($ = di(f), $.removeAttribute("id"), $.draggable = !1, $.style["will-change"] = "", this._hideClone(), Z($, this.options.chosenClass, !1), b.clone = $), n.cloneId = Ze(function() {
|
|
1570
|
+
U("clone", n), !b.eventCanceled && (n.options.removeCloneOnHide || N.insertBefore($, f), n._hideClone(), j({
|
|
1553
1571
|
sortable: n,
|
|
1554
1572
|
name: "clone"
|
|
1555
1573
|
}));
|
|
1556
|
-
}), !i && Z(
|
|
1574
|
+
}), !i && Z(f, o.dragClass, !0), i ? (nt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (O(document, "mouseup", n._onDrop), O(document, "touchend", n._onDrop), O(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, f)), z(document, "drop", n), v(f, "transform", "translateZ(0)")), _e = !0, n._dragStartId = Ze(n._dragStarted.bind(n, i, e)), z(document, "selectstart", n), ze = !0, $e && v(document.body, "user-select", "none");
|
|
1557
1575
|
},
|
|
1558
1576
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1559
1577
|
_onDragOver: function(e) {
|
|
1560
|
-
var i = this.el, n = e.target, r, o, l, s = this.options, a = s.group, u = b.active, d =
|
|
1561
|
-
if (
|
|
1562
|
-
function
|
|
1563
|
-
|
|
1578
|
+
var i = this.el, n = e.target, r, o, l, s = this.options, a = s.group, u = b.active, d = Be === a, h = s.sort, p = Y || u, _, S = this, m = !1;
|
|
1579
|
+
if (Ot) return;
|
|
1580
|
+
function I(Te, bi) {
|
|
1581
|
+
U(Te, S, re({
|
|
1564
1582
|
evt: e,
|
|
1565
1583
|
isOwner: d,
|
|
1566
1584
|
axis: _ ? "vertical" : "horizontal",
|
|
1567
1585
|
revert: l,
|
|
1568
1586
|
dragRect: r,
|
|
1569
1587
|
targetRect: o,
|
|
1570
|
-
canSort:
|
|
1571
|
-
fromSortable:
|
|
1588
|
+
canSort: h,
|
|
1589
|
+
fromSortable: p,
|
|
1572
1590
|
target: n,
|
|
1573
|
-
completed:
|
|
1574
|
-
onMove: function(
|
|
1575
|
-
return
|
|
1591
|
+
completed: c,
|
|
1592
|
+
onMove: function(xt, yi) {
|
|
1593
|
+
return We(N, i, f, r, xt, F(xt), e, yi);
|
|
1576
1594
|
},
|
|
1577
|
-
changed:
|
|
1595
|
+
changed: C
|
|
1578
1596
|
}, bi));
|
|
1579
1597
|
}
|
|
1580
|
-
function
|
|
1581
|
-
|
|
1598
|
+
function y() {
|
|
1599
|
+
I("dragOverAnimationCapture"), S.captureAnimationState(), S !== p && p.captureAnimationState();
|
|
1582
1600
|
}
|
|
1583
|
-
function
|
|
1584
|
-
return
|
|
1601
|
+
function c(Te) {
|
|
1602
|
+
return I("dragOverCompleted", {
|
|
1585
1603
|
insertion: Te
|
|
1586
|
-
}), Te && (d ? u._hideClone() : u._showClone(S), S !==
|
|
1587
|
-
|
|
1588
|
-
}), S !==
|
|
1604
|
+
}), Te && (d ? u._hideClone() : u._showClone(S), S !== p && (Z(f, Y ? Y.options.ghostClass : u.options.ghostClass, !1), Z(f, s.ghostClass, !0)), Y !== S && S !== b.active ? Y = S : S === b.active && Y && (Y = null), p === S && (S._ignoreWhileAnimating = n), S.animateAll(function() {
|
|
1605
|
+
I("dragOverAnimationComplete"), S._ignoreWhileAnimating = null;
|
|
1606
|
+
}), S !== p && (p.animateAll(), p._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(), m = !0;
|
|
1589
1607
|
}
|
|
1590
|
-
function
|
|
1591
|
-
Q = ee(
|
|
1608
|
+
function C() {
|
|
1609
|
+
Q = ee(f), ce = ee(f, s.draggable), j({
|
|
1592
1610
|
sortable: S,
|
|
1593
1611
|
name: "change",
|
|
1594
1612
|
toEl: i,
|
|
@@ -1597,114 +1615,114 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1597
1615
|
originalEvent: e
|
|
1598
1616
|
});
|
|
1599
1617
|
}
|
|
1600
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ie(n, s.draggable, i, !0),
|
|
1601
|
-
if (
|
|
1602
|
-
return
|
|
1603
|
-
if (nt = !1, u && !s.disabled && (d ?
|
|
1604
|
-
if (_ = this._getDirection(e, n) === "vertical", r =
|
|
1618
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ie(n, s.draggable, i, !0), I("dragOver"), b.eventCanceled) return m;
|
|
1619
|
+
if (f.contains(e.target) || n.animated && n.animatingX && n.animatingY || S._ignoreWhileAnimating === n)
|
|
1620
|
+
return c(!1);
|
|
1621
|
+
if (nt = !1, u && !s.disabled && (d ? h || (l = M !== N) : Y === this || (this.lastPutMode = Be.checkPull(this, u, f, e)) && a.checkPut(this, u, f, e))) {
|
|
1622
|
+
if (_ = this._getDirection(e, n) === "vertical", r = F(f), I("dragOverValid"), b.eventCanceled) return m;
|
|
1605
1623
|
if (l)
|
|
1606
|
-
return
|
|
1624
|
+
return M = N, y(), this._hideClone(), I("revert"), b.eventCanceled || (be ? N.insertBefore(f, be) : N.appendChild(f)), c(!0);
|
|
1607
1625
|
var g = Pt(i, s.draggable);
|
|
1608
|
-
if (!g ||
|
|
1609
|
-
if (g ===
|
|
1610
|
-
return
|
|
1611
|
-
if (g && i === e.target && (n = g), n && (o =
|
|
1612
|
-
return
|
|
1613
|
-
} else if (g &&
|
|
1614
|
-
var
|
|
1615
|
-
if (
|
|
1616
|
-
return
|
|
1617
|
-
if (n =
|
|
1618
|
-
return
|
|
1626
|
+
if (!g || Mn(e, _, this) && !g.animated) {
|
|
1627
|
+
if (g === f)
|
|
1628
|
+
return c(!1);
|
|
1629
|
+
if (g && i === e.target && (n = g), n && (o = F(n)), We(N, i, f, r, n, o, e, !!n) !== !1)
|
|
1630
|
+
return y(), g && g.nextSibling ? i.insertBefore(f, g.nextSibling) : i.appendChild(f), M = i, C(), c(!0);
|
|
1631
|
+
} else if (g && $n(e, _, this)) {
|
|
1632
|
+
var E = Ie(i, 0, s, !0);
|
|
1633
|
+
if (E === f)
|
|
1634
|
+
return c(!1);
|
|
1635
|
+
if (n = E, o = F(n), We(N, i, f, r, n, o, e, !1) !== !1)
|
|
1636
|
+
return y(), i.insertBefore(f, E), M = i, C(), c(!0);
|
|
1619
1637
|
} else if (n.parentNode === i) {
|
|
1620
|
-
o =
|
|
1621
|
-
var
|
|
1622
|
-
we !== n && (
|
|
1623
|
-
var
|
|
1624
|
-
if (
|
|
1625
|
-
var J = ee(
|
|
1638
|
+
o = F(n);
|
|
1639
|
+
var L = 0, H, G = f.parentNode !== i, B = !zn(f.animated && f.toRect || r, n.animated && n.toRect || o, _), T = _ ? "top" : "left", x = Xt(n, "top", "top") || Xt(f, "top", "top"), P = x ? x.scrollTop : void 0;
|
|
1640
|
+
we !== n && (H = o[T], Re = !1, Ye = !B && s.invertSwap || G), L = xn(e, n, o, _, B ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Ye, we === n);
|
|
1641
|
+
var A;
|
|
1642
|
+
if (L !== 0) {
|
|
1643
|
+
var J = ee(f);
|
|
1626
1644
|
do
|
|
1627
|
-
J -=
|
|
1628
|
-
while (
|
|
1645
|
+
J -= L, A = M.children[J];
|
|
1646
|
+
while (A && (v(A, "display") === "none" || A === w));
|
|
1629
1647
|
}
|
|
1630
|
-
if (
|
|
1631
|
-
return
|
|
1632
|
-
we = n,
|
|
1633
|
-
var ue = n.nextElementSibling,
|
|
1634
|
-
|
|
1635
|
-
var
|
|
1636
|
-
if (
|
|
1637
|
-
return (
|
|
1648
|
+
if (L === 0 || A === n)
|
|
1649
|
+
return c(!1);
|
|
1650
|
+
we = n, Ve = L;
|
|
1651
|
+
var ue = n.nextElementSibling, V = !1;
|
|
1652
|
+
V = L === 1;
|
|
1653
|
+
var me = We(N, i, f, r, n, o, e, V);
|
|
1654
|
+
if (me !== !1)
|
|
1655
|
+
return (me === 1 || me === -1) && (V = me === 1), Ot = !0, setTimeout(Pn, 30), y(), V && !ue ? i.appendChild(f) : n.parentNode.insertBefore(f, V ? ue : n), x && ui(x, 0, P - x.scrollTop), M = f.parentNode, H !== void 0 && !Ye && (Je = Math.abs(H - F(n)[T])), C(), c(!0);
|
|
1638
1656
|
}
|
|
1639
|
-
if (i.contains(
|
|
1640
|
-
return
|
|
1657
|
+
if (i.contains(f))
|
|
1658
|
+
return c(!1);
|
|
1641
1659
|
}
|
|
1642
1660
|
return !1;
|
|
1643
1661
|
},
|
|
1644
1662
|
_ignoreWhileAnimating: null,
|
|
1645
1663
|
_offMoveEvents: function() {
|
|
1646
|
-
|
|
1664
|
+
O(document, "mousemove", this._onTouchMove), O(document, "touchmove", this._onTouchMove), O(document, "pointermove", this._onTouchMove), O(document, "dragover", ve), O(document, "mousemove", ve), O(document, "touchmove", ve);
|
|
1647
1665
|
},
|
|
1648
1666
|
_offUpEvents: function() {
|
|
1649
1667
|
var e = this.el.ownerDocument;
|
|
1650
|
-
|
|
1668
|
+
O(e, "mouseup", this._onDrop), O(e, "touchend", this._onDrop), O(e, "pointerup", this._onDrop), O(e, "touchcancel", this._onDrop), O(document, "selectstart", this);
|
|
1651
1669
|
},
|
|
1652
1670
|
_onDrop: function(e) {
|
|
1653
1671
|
var i = this.el, n = this.options;
|
|
1654
|
-
if (Q = ee(
|
|
1672
|
+
if (Q = ee(f), ce = ee(f, n.draggable), U("drop", this, {
|
|
1655
1673
|
evt: e
|
|
1656
|
-
}),
|
|
1674
|
+
}), M = f && f.parentNode, Q = ee(f), ce = ee(f, n.draggable), b.eventCanceled) {
|
|
1657
1675
|
this._nulling();
|
|
1658
1676
|
return;
|
|
1659
1677
|
}
|
|
1660
|
-
_e = !1,
|
|
1678
|
+
_e = !1, Ye = !1, Re = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), zt(this.cloneId), zt(this._dragStartId), this.nativeDraggable && (O(document, "drop", this), O(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), $e && v(document.body, "user-select", ""), v(f, "transform", ""), e && (ze && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (N === M || Y && Y.lastPutMode !== "clone") && $ && $.parentNode && $.parentNode.removeChild($), f && (this.nativeDraggable && O(f, "dragend", this), bt(f), f.style["will-change"] = "", ze && !_e && Z(f, Y ? Y.options.ghostClass : this.options.ghostClass, !1), Z(f, this.options.chosenClass, !1), j({
|
|
1661
1679
|
sortable: this,
|
|
1662
1680
|
name: "unchoose",
|
|
1663
|
-
toEl:
|
|
1681
|
+
toEl: M,
|
|
1664
1682
|
newIndex: null,
|
|
1665
1683
|
newDraggableIndex: null,
|
|
1666
1684
|
originalEvent: e
|
|
1667
|
-
}),
|
|
1668
|
-
rootEl:
|
|
1685
|
+
}), N !== M ? (Q >= 0 && (j({
|
|
1686
|
+
rootEl: M,
|
|
1669
1687
|
name: "add",
|
|
1670
|
-
toEl:
|
|
1671
|
-
fromEl:
|
|
1688
|
+
toEl: M,
|
|
1689
|
+
fromEl: N,
|
|
1672
1690
|
originalEvent: e
|
|
1673
|
-
}),
|
|
1691
|
+
}), j({
|
|
1674
1692
|
sortable: this,
|
|
1675
1693
|
name: "remove",
|
|
1676
|
-
toEl:
|
|
1694
|
+
toEl: M,
|
|
1677
1695
|
originalEvent: e
|
|
1678
|
-
}),
|
|
1679
|
-
rootEl:
|
|
1696
|
+
}), j({
|
|
1697
|
+
rootEl: M,
|
|
1680
1698
|
name: "sort",
|
|
1681
|
-
toEl:
|
|
1682
|
-
fromEl:
|
|
1699
|
+
toEl: M,
|
|
1700
|
+
fromEl: N,
|
|
1683
1701
|
originalEvent: e
|
|
1684
|
-
}),
|
|
1702
|
+
}), j({
|
|
1685
1703
|
sortable: this,
|
|
1686
1704
|
name: "sort",
|
|
1687
|
-
toEl:
|
|
1705
|
+
toEl: M,
|
|
1688
1706
|
originalEvent: e
|
|
1689
|
-
})),
|
|
1707
|
+
})), Y && Y.save()) : Q !== Ee && Q >= 0 && (j({
|
|
1690
1708
|
sortable: this,
|
|
1691
1709
|
name: "update",
|
|
1692
|
-
toEl:
|
|
1710
|
+
toEl: M,
|
|
1693
1711
|
originalEvent: e
|
|
1694
|
-
}),
|
|
1712
|
+
}), j({
|
|
1695
1713
|
sortable: this,
|
|
1696
1714
|
name: "sort",
|
|
1697
|
-
toEl:
|
|
1715
|
+
toEl: M,
|
|
1698
1716
|
originalEvent: e
|
|
1699
|
-
})), b.active && ((Q == null || Q === -1) && (Q = Ee, ce =
|
|
1717
|
+
})), b.active && ((Q == null || Q === -1) && (Q = Ee, ce = xe), j({
|
|
1700
1718
|
sortable: this,
|
|
1701
1719
|
name: "end",
|
|
1702
|
-
toEl:
|
|
1720
|
+
toEl: M,
|
|
1703
1721
|
originalEvent: e
|
|
1704
1722
|
}), this.save()))), this._nulling();
|
|
1705
1723
|
},
|
|
1706
1724
|
_nulling: function() {
|
|
1707
|
-
|
|
1725
|
+
U("nulling", this), N = f = M = w = be = $ = qe = fe = ge = te = ze = Q = ce = Ee = xe = we = Ve = Y = Be = b.dragged = b.ghost = b.clone = b.active = null, ot.forEach(function(e) {
|
|
1708
1726
|
e.checked = !0;
|
|
1709
1727
|
}), ot.length = mt = gt = 0;
|
|
1710
1728
|
},
|
|
@@ -1716,7 +1734,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1716
1734
|
break;
|
|
1717
1735
|
case "dragenter":
|
|
1718
1736
|
case "dragover":
|
|
1719
|
-
|
|
1737
|
+
f && (this._onDragOver(e), Nn(e));
|
|
1720
1738
|
break;
|
|
1721
1739
|
case "selectstart":
|
|
1722
1740
|
e.preventDefault();
|
|
@@ -1729,7 +1747,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1729
1747
|
*/
|
|
1730
1748
|
toArray: function() {
|
|
1731
1749
|
for (var e = [], i, n = this.el.children, r = 0, o = n.length, l = this.options; r < o; r++)
|
|
1732
|
-
i = n[r], ie(i, l.draggable, this.el, !1) && e.push(i.getAttribute(l.dataIdAttr) ||
|
|
1750
|
+
i = n[r], ie(i, l.draggable, this.el, !1) && e.push(i.getAttribute(l.dataIdAttr) || Rn(i));
|
|
1733
1751
|
return e;
|
|
1734
1752
|
},
|
|
1735
1753
|
/**
|
|
@@ -1771,23 +1789,23 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1771
1789
|
var n = this.options;
|
|
1772
1790
|
if (i === void 0)
|
|
1773
1791
|
return n[e];
|
|
1774
|
-
var r =
|
|
1792
|
+
var r = He.modifyOption(this, e, i);
|
|
1775
1793
|
typeof r < "u" ? n[e] = r : n[e] = i, e === "group" && pi(n);
|
|
1776
1794
|
},
|
|
1777
1795
|
/**
|
|
1778
1796
|
* Destroy
|
|
1779
1797
|
*/
|
|
1780
1798
|
destroy: function() {
|
|
1781
|
-
|
|
1799
|
+
U("destroy", this);
|
|
1782
1800
|
var e = this.el;
|
|
1783
|
-
e[
|
|
1801
|
+
e[q] = null, O(e, "mousedown", this._onTapStart), O(e, "touchstart", this._onTapStart), O(e, "pointerdown", this._onTapStart), this.nativeDraggable && (O(e, "dragover", this), O(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(i) {
|
|
1784
1802
|
i.removeAttribute("draggable");
|
|
1785
1803
|
}), this._onDrop(), this._disableDelayedDragEvents(), rt.splice(rt.indexOf(this.el), 1), this.el = e = null;
|
|
1786
1804
|
},
|
|
1787
1805
|
_hideClone: function() {
|
|
1788
1806
|
if (!fe) {
|
|
1789
|
-
if (
|
|
1790
|
-
v(
|
|
1807
|
+
if (U("hideClone", this), b.eventCanceled) return;
|
|
1808
|
+
v($, "display", "none"), this.options.removeCloneOnHide && $.parentNode && $.parentNode.removeChild($), fe = !0;
|
|
1791
1809
|
}
|
|
1792
1810
|
},
|
|
1793
1811
|
_showClone: function(e) {
|
|
@@ -1796,52 +1814,52 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1796
1814
|
return;
|
|
1797
1815
|
}
|
|
1798
1816
|
if (fe) {
|
|
1799
|
-
if (
|
|
1800
|
-
|
|
1817
|
+
if (U("showClone", this), b.eventCanceled) return;
|
|
1818
|
+
f.parentNode == N && !this.options.group.revertClone ? N.insertBefore($, f) : be ? N.insertBefore($, be) : N.appendChild($), this.options.group.revertClone && this.animate(f, $), v($, "display", ""), fe = !1;
|
|
1801
1819
|
}
|
|
1802
1820
|
}
|
|
1803
1821
|
};
|
|
1804
1822
|
function Nn(t) {
|
|
1805
1823
|
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1806
1824
|
}
|
|
1807
|
-
function
|
|
1808
|
-
var a, u = t[
|
|
1809
|
-
return window.CustomEvent && !se && !
|
|
1825
|
+
function We(t, e, i, n, r, o, l, s) {
|
|
1826
|
+
var a, u = t[q], d = u.options.onMove, h;
|
|
1827
|
+
return window.CustomEvent && !se && !Fe ? a = new CustomEvent("move", {
|
|
1810
1828
|
bubbles: !0,
|
|
1811
1829
|
cancelable: !0
|
|
1812
|
-
}) : (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 ||
|
|
1830
|
+
}) : (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 || F(e), a.willInsertAfter = s, a.originalEvent = l, t.dispatchEvent(a), d && (h = d.call(u, a, l)), h;
|
|
1813
1831
|
}
|
|
1814
1832
|
function bt(t) {
|
|
1815
1833
|
t.draggable = !1;
|
|
1816
1834
|
}
|
|
1817
1835
|
function Pn() {
|
|
1818
|
-
|
|
1836
|
+
Ot = !1;
|
|
1819
1837
|
}
|
|
1820
|
-
function
|
|
1821
|
-
var n =
|
|
1838
|
+
function $n(t, e, i) {
|
|
1839
|
+
var n = F(Ie(i.el, 0, i.options, !0)), r = ci(i.el, i.options, w), o = 10;
|
|
1822
1840
|
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;
|
|
1823
1841
|
}
|
|
1824
|
-
function
|
|
1825
|
-
var n =
|
|
1842
|
+
function Mn(t, e, i) {
|
|
1843
|
+
var n = F(Pt(i.el, i.options.draggable)), r = ci(i.el, i.options, w), o = 10;
|
|
1826
1844
|
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;
|
|
1827
1845
|
}
|
|
1828
|
-
function
|
|
1829
|
-
var a = n ? t.clientY : t.clientX, u = n ? i.height : i.width, d = n ? i.top : i.left,
|
|
1846
|
+
function xn(t, e, i, n, r, o, l, s) {
|
|
1847
|
+
var a = n ? t.clientY : t.clientX, u = n ? i.height : i.width, d = n ? i.top : i.left, h = n ? i.bottom : i.right, p = !1;
|
|
1830
1848
|
if (!l) {
|
|
1831
|
-
if (s &&
|
|
1832
|
-
if (!Re && (
|
|
1833
|
-
|
|
1834
|
-
else if (
|
|
1835
|
-
return -
|
|
1836
|
-
} else if (a > d + u * (1 - r) / 2 && a <
|
|
1837
|
-
return
|
|
1849
|
+
if (s && Je < u * r) {
|
|
1850
|
+
if (!Re && (Ve === 1 ? a > d + u * o / 2 : a < h - u * o / 2) && (Re = !0), Re)
|
|
1851
|
+
p = !0;
|
|
1852
|
+
else if (Ve === 1 ? a < d + Je : a > h - Je)
|
|
1853
|
+
return -Ve;
|
|
1854
|
+
} else if (a > d + u * (1 - r) / 2 && a < h - u * (1 - r) / 2)
|
|
1855
|
+
return Vn(e);
|
|
1838
1856
|
}
|
|
1839
|
-
return
|
|
1840
|
-
}
|
|
1841
|
-
function Rn(t) {
|
|
1842
|
-
return ee(h) < ee(t) ? 1 : -1;
|
|
1857
|
+
return p = p || l, p && (a < d + u * o / 2 || a > h - u * o / 2) ? a > d + u / 2 ? 1 : -1 : 0;
|
|
1843
1858
|
}
|
|
1844
1859
|
function Vn(t) {
|
|
1860
|
+
return ee(f) < ee(t) ? 1 : -1;
|
|
1861
|
+
}
|
|
1862
|
+
function Rn(t) {
|
|
1845
1863
|
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, i = e.length, n = 0; i--; )
|
|
1846
1864
|
n += e.charCodeAt(i);
|
|
1847
1865
|
return n.toString(36);
|
|
@@ -1853,18 +1871,18 @@ function Fn(t) {
|
|
|
1853
1871
|
n.checked && ot.push(n);
|
|
1854
1872
|
}
|
|
1855
1873
|
}
|
|
1856
|
-
function
|
|
1874
|
+
function Ze(t) {
|
|
1857
1875
|
return setTimeout(t, 0);
|
|
1858
1876
|
}
|
|
1859
1877
|
function zt(t) {
|
|
1860
1878
|
return clearTimeout(t);
|
|
1861
1879
|
}
|
|
1862
|
-
st &&
|
|
1880
|
+
st && z(document, "touchmove", function(t) {
|
|
1863
1881
|
(b.active || _e) && t.cancelable && t.preventDefault();
|
|
1864
1882
|
});
|
|
1865
1883
|
b.utils = {
|
|
1866
|
-
on:
|
|
1867
|
-
off:
|
|
1884
|
+
on: z,
|
|
1885
|
+
off: O,
|
|
1868
1886
|
css: v,
|
|
1869
1887
|
find: ai,
|
|
1870
1888
|
is: function(e, i) {
|
|
@@ -1876,14 +1894,14 @@ b.utils = {
|
|
|
1876
1894
|
toggleClass: Z,
|
|
1877
1895
|
clone: di,
|
|
1878
1896
|
index: ee,
|
|
1879
|
-
nextTick:
|
|
1897
|
+
nextTick: Ze,
|
|
1880
1898
|
cancelNextTick: zt,
|
|
1881
1899
|
detectDirection: hi,
|
|
1882
1900
|
getChild: Ie,
|
|
1883
|
-
expando:
|
|
1901
|
+
expando: q
|
|
1884
1902
|
};
|
|
1885
1903
|
b.get = function(t) {
|
|
1886
|
-
return t[
|
|
1904
|
+
return t[q];
|
|
1887
1905
|
};
|
|
1888
1906
|
b.mount = function() {
|
|
1889
1907
|
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
@@ -1891,7 +1909,7 @@ b.mount = function() {
|
|
|
1891
1909
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(n) {
|
|
1892
1910
|
if (!n.prototype || !n.prototype.constructor)
|
|
1893
1911
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
|
|
1894
|
-
n.utils && (b.utils = re(re({}, b.utils), n.utils)),
|
|
1912
|
+
n.utils && (b.utils = re(re({}, b.utils), n.utils)), He.mount(n);
|
|
1895
1913
|
});
|
|
1896
1914
|
};
|
|
1897
1915
|
b.create = function(t, e) {
|
|
@@ -1914,14 +1932,14 @@ function Hn() {
|
|
|
1914
1932
|
return t.prototype = {
|
|
1915
1933
|
dragStarted: function(i) {
|
|
1916
1934
|
var n = i.originalEvent;
|
|
1917
|
-
this.sortable.nativeDraggable ?
|
|
1935
|
+
this.sortable.nativeDraggable ? z(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? z(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? z(document, "touchmove", this._handleFallbackAutoScroll) : z(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1918
1936
|
},
|
|
1919
1937
|
dragOverCompleted: function(i) {
|
|
1920
1938
|
var n = i.originalEvent;
|
|
1921
1939
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
1922
1940
|
},
|
|
1923
1941
|
drop: function() {
|
|
1924
|
-
this.sortable.nativeDraggable ?
|
|
1942
|
+
this.sortable.nativeDraggable ? O(document, "dragover", this._handleAutoScroll) : (O(document, "pointermove", this._handleFallbackAutoScroll), O(document, "touchmove", this._handleFallbackAutoScroll), O(document, "mousemove", this._handleFallbackAutoScroll)), Ut(), Qe(), _n();
|
|
1925
1943
|
},
|
|
1926
1944
|
nulling: function() {
|
|
1927
1945
|
lt = At = Ae = kt = ke = yt = wt = null, R.length = 0;
|
|
@@ -1931,19 +1949,19 @@ function Hn() {
|
|
|
1931
1949
|
},
|
|
1932
1950
|
_handleAutoScroll: function(i, n) {
|
|
1933
1951
|
var r = this, o = (i.touches ? i.touches[0] : i).clientX, l = (i.touches ? i.touches[0] : i).clientY, s = document.elementFromPoint(o, l);
|
|
1934
|
-
if (lt = i, n || this.options.forceAutoScrollFallback ||
|
|
1952
|
+
if (lt = i, n || this.options.forceAutoScrollFallback || Fe || se || $e) {
|
|
1935
1953
|
St(i, this.options, s, n);
|
|
1936
|
-
var a =
|
|
1954
|
+
var a = pe(s, !0);
|
|
1937
1955
|
kt && (!ke || o !== yt || l !== wt) && (ke && Ut(), ke = setInterval(function() {
|
|
1938
|
-
var u =
|
|
1939
|
-
u !== a && (a = u,
|
|
1956
|
+
var u = pe(document.elementFromPoint(o, l), !0);
|
|
1957
|
+
u !== a && (a = u, Qe()), St(i, r.options, u, n);
|
|
1940
1958
|
}, 10), yt = o, wt = l);
|
|
1941
1959
|
} else {
|
|
1942
|
-
if (!this.options.bubbleScroll ||
|
|
1943
|
-
|
|
1960
|
+
if (!this.options.bubbleScroll || pe(s, !0) === ne()) {
|
|
1961
|
+
Qe();
|
|
1944
1962
|
return;
|
|
1945
1963
|
}
|
|
1946
|
-
St(i, this.options,
|
|
1964
|
+
St(i, this.options, pe(s, !1), !1);
|
|
1947
1965
|
}
|
|
1948
1966
|
}
|
|
1949
1967
|
}, ae(t, {
|
|
@@ -1951,7 +1969,7 @@ function Hn() {
|
|
|
1951
1969
|
initializeByDefault: !0
|
|
1952
1970
|
});
|
|
1953
1971
|
}
|
|
1954
|
-
function
|
|
1972
|
+
function Qe() {
|
|
1955
1973
|
R.forEach(function(t) {
|
|
1956
1974
|
clearInterval(t.pid);
|
|
1957
1975
|
}), R = [];
|
|
@@ -1962,23 +1980,23 @@ function Ut() {
|
|
|
1962
1980
|
var St = si(function(t, e, i, n) {
|
|
1963
1981
|
if (e.scroll) {
|
|
1964
1982
|
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, d;
|
|
1965
|
-
At !== i && (At = i,
|
|
1966
|
-
var
|
|
1983
|
+
At !== i && (At = i, Qe(), Ae = e.scroll, d = e.scrollFn, Ae === !0 && (Ae = pe(i, !0)));
|
|
1984
|
+
var h = 0, p = Ae;
|
|
1967
1985
|
do {
|
|
1968
|
-
var _ =
|
|
1969
|
-
_ === a ? (
|
|
1970
|
-
var
|
|
1971
|
-
if (!R[
|
|
1972
|
-
for (var J = 0; J <=
|
|
1986
|
+
var _ = p, S = F(_), m = S.top, I = S.bottom, y = S.left, c = S.right, C = S.width, g = S.height, E = void 0, L = void 0, H = _.scrollWidth, G = _.scrollHeight, B = v(_), T = _.scrollLeft, x = _.scrollTop;
|
|
1987
|
+
_ === a ? (E = C < H && (B.overflowX === "auto" || B.overflowX === "scroll" || B.overflowX === "visible"), L = g < G && (B.overflowY === "auto" || B.overflowY === "scroll" || B.overflowY === "visible")) : (E = C < H && (B.overflowX === "auto" || B.overflowX === "scroll"), L = g < G && (B.overflowY === "auto" || B.overflowY === "scroll"));
|
|
1988
|
+
var P = E && (Math.abs(c - r) <= l && T + C < H) - (Math.abs(y - r) <= l && !!T), A = L && (Math.abs(I - o) <= l && x + g < G) - (Math.abs(m - o) <= l && !!x);
|
|
1989
|
+
if (!R[h])
|
|
1990
|
+
for (var J = 0; J <= h; J++)
|
|
1973
1991
|
R[J] || (R[J] = {});
|
|
1974
|
-
(R[
|
|
1992
|
+
(R[h].vx != P || R[h].vy != A || R[h].el !== _) && (R[h].el = _, R[h].vx = P, R[h].vy = A, clearInterval(R[h].pid), (P != 0 || A != 0) && (u = !0, R[h].pid = setInterval((function() {
|
|
1975
1993
|
n && this.layer === 0 && b.active._onTouchMove(lt);
|
|
1976
|
-
var ue = R[this.layer].vy ? R[this.layer].vy * s : 0,
|
|
1977
|
-
typeof d == "function" && d.call(b.dragged.parentNode[
|
|
1994
|
+
var ue = R[this.layer].vy ? R[this.layer].vy * s : 0, V = R[this.layer].vx ? R[this.layer].vx * s : 0;
|
|
1995
|
+
typeof d == "function" && d.call(b.dragged.parentNode[q], V, ue, t, lt, R[this.layer].el) !== "continue" || ui(R[this.layer].el, V, ue);
|
|
1978
1996
|
}).bind({
|
|
1979
|
-
layer:
|
|
1980
|
-
}), 24))),
|
|
1981
|
-
} while (e.bubbleScroll &&
|
|
1997
|
+
layer: h
|
|
1998
|
+
}), 24))), h++;
|
|
1999
|
+
} while (e.bubbleScroll && p !== a && (p = pe(p, !1)));
|
|
1982
2000
|
kt = u;
|
|
1983
2001
|
}
|
|
1984
2002
|
}, 30), vi = function(e) {
|
|
@@ -1986,16 +2004,16 @@ var St = si(function(t, e, i, n) {
|
|
|
1986
2004
|
if (i) {
|
|
1987
2005
|
var u = n || o;
|
|
1988
2006
|
s();
|
|
1989
|
-
var d = i.changedTouches && i.changedTouches.length ? i.changedTouches[0] : i,
|
|
1990
|
-
a(), u && !u.el.contains(
|
|
2007
|
+
var d = i.changedTouches && i.changedTouches.length ? i.changedTouches[0] : i, h = document.elementFromPoint(d.clientX, d.clientY);
|
|
2008
|
+
a(), u && !u.el.contains(h) && (l("spill"), this.onSpill({
|
|
1991
2009
|
dragEl: r,
|
|
1992
2010
|
putSortable: n
|
|
1993
2011
|
}));
|
|
1994
2012
|
}
|
|
1995
2013
|
};
|
|
1996
|
-
function
|
|
2014
|
+
function $t() {
|
|
1997
2015
|
}
|
|
1998
|
-
|
|
2016
|
+
$t.prototype = {
|
|
1999
2017
|
startIndex: null,
|
|
2000
2018
|
dragStart: function(e) {
|
|
2001
2019
|
var i = e.oldDraggableIndex;
|
|
@@ -2009,38 +2027,38 @@ xt.prototype = {
|
|
|
2009
2027
|
},
|
|
2010
2028
|
drop: vi
|
|
2011
2029
|
};
|
|
2012
|
-
ae(
|
|
2030
|
+
ae($t, {
|
|
2013
2031
|
pluginName: "revertOnSpill"
|
|
2014
2032
|
});
|
|
2015
|
-
function
|
|
2033
|
+
function Mt() {
|
|
2016
2034
|
}
|
|
2017
|
-
|
|
2035
|
+
Mt.prototype = {
|
|
2018
2036
|
onSpill: function(e) {
|
|
2019
2037
|
var i = e.dragEl, n = e.putSortable, r = n || this.sortable;
|
|
2020
2038
|
r.captureAnimationState(), i.parentNode && i.parentNode.removeChild(i), r.animateAll();
|
|
2021
2039
|
},
|
|
2022
2040
|
drop: vi
|
|
2023
2041
|
};
|
|
2024
|
-
ae(
|
|
2042
|
+
ae(Mt, {
|
|
2025
2043
|
pluginName: "removeOnSpill"
|
|
2026
2044
|
});
|
|
2027
2045
|
b.mount(new Hn());
|
|
2028
|
-
b.mount($t
|
|
2046
|
+
b.mount(Mt, $t);
|
|
2029
2047
|
const Ln = (t, e, i, n) => {
|
|
2030
2048
|
const r = Zt(t, "dragSort");
|
|
2031
2049
|
let o = null, l = Ne(0);
|
|
2032
|
-
|
|
2050
|
+
Rt(
|
|
2033
2051
|
r,
|
|
2034
2052
|
(u) => {
|
|
2035
|
-
|
|
2053
|
+
et(() => {
|
|
2036
2054
|
u ? s() : a();
|
|
2037
2055
|
});
|
|
2038
2056
|
},
|
|
2039
2057
|
{
|
|
2040
2058
|
immediate: !0
|
|
2041
2059
|
}
|
|
2042
|
-
),
|
|
2043
|
-
|
|
2060
|
+
), Rt(n, (u, d) => {
|
|
2061
|
+
et(() => {
|
|
2044
2062
|
r.value ? s() : a();
|
|
2045
2063
|
});
|
|
2046
2064
|
});
|
|
@@ -2053,10 +2071,10 @@ const Ln = (t, e, i, n) => {
|
|
|
2053
2071
|
//过渡动画时间
|
|
2054
2072
|
//拖拽结束时事件
|
|
2055
2073
|
onEnd: (d) => {
|
|
2056
|
-
const
|
|
2057
|
-
|
|
2058
|
-
const _ =
|
|
2059
|
-
|
|
2074
|
+
const h = JSON.parse(JSON.stringify(n.value)), p = JSON.parse(JSON.stringify(n.value));
|
|
2075
|
+
p.splice(d.oldIndex, 1)[0];
|
|
2076
|
+
const _ = h[d.oldIndex];
|
|
2077
|
+
p.splice(d.newIndex, 0, _), e("update:modelValue", p), l.value = Date.now(), e("sortEnd", h, p, d.oldIndex, d.newIndex);
|
|
2060
2078
|
}
|
|
2061
2079
|
});
|
|
2062
2080
|
}, a = () => {
|
|
@@ -2067,43 +2085,57 @@ const Ln = (t, e, i, n) => {
|
|
|
2067
2085
|
}, Bn = {
|
|
2068
2086
|
key: 0,
|
|
2069
2087
|
class: "selected-number-header"
|
|
2070
|
-
}, Yn = { class: "selected-num" }, Xn = { class: "name" },
|
|
2088
|
+
}, Yn = { class: "selected-num" }, Xn = ["onClick"], Wn = { class: "name" }, jn = ["onClick"], Kn = { class: "name" }, Gn = ["infinite-scroll-disabled"], Un = { class: "selected-group" }, qn = ["onClick"], Jn = { class: "name" }, Zn = /* @__PURE__ */ Mi({
|
|
2071
2089
|
__name: "Index",
|
|
2072
2090
|
props: {
|
|
2073
2091
|
width: { default: "100%" },
|
|
2074
2092
|
height: { default: "100%" },
|
|
2075
2093
|
modelValue: {},
|
|
2076
|
-
|
|
2094
|
+
selectdValue: { default: "" },
|
|
2077
2095
|
valueKey: { default: "id" },
|
|
2096
|
+
labelKey: { default: "name" },
|
|
2078
2097
|
customStyle: {},
|
|
2079
2098
|
dragSort: { type: Boolean },
|
|
2080
2099
|
isView: { type: Boolean },
|
|
2100
|
+
closeable: { type: Boolean, default: !0 },
|
|
2101
|
+
clearable: { type: Boolean, default: !0 },
|
|
2081
2102
|
customTitle: { default: "" },
|
|
2103
|
+
selectedNum: {},
|
|
2082
2104
|
props: { default: { disabled: "disabled" } },
|
|
2083
2105
|
virtual: { type: Boolean, default: !0 },
|
|
2084
2106
|
itemHeight: { default: 32 },
|
|
2085
|
-
selectedNum: {},
|
|
2086
2107
|
infiniteScroll: {},
|
|
2087
2108
|
infiniteDisabled: { type: Boolean, default: !0 },
|
|
2088
2109
|
hideHeader: { type: Boolean, default: !1 }
|
|
2089
2110
|
},
|
|
2090
|
-
emits: ["update:modelValue", "item-remove", "remove-all", "sortEnd", "update:infiniteDisabled"],
|
|
2111
|
+
emits: ["update:modelValue", "update:selectdValue", "select-item", "item-remove", "remove-all", "sortEnd", "update:infiniteDisabled"],
|
|
2091
2112
|
setup(t, { expose: e, emit: i }) {
|
|
2092
|
-
|
|
2093
|
-
"
|
|
2113
|
+
xi((c) => ({
|
|
2114
|
+
"84e4fb44": o.value
|
|
2094
2115
|
}));
|
|
2095
|
-
const n = t, r = i, o =
|
|
2116
|
+
const n = t, r = i, o = Pe(() => n.itemHeight + "px"), l = Pe(() => n.dragSort || n.infiniteScroll ? !1 : n.virtual), {
|
|
2117
|
+
selectListRef: s,
|
|
2118
|
+
$list: a,
|
|
2119
|
+
disabledFlag: u,
|
|
2120
|
+
itemGroups: d,
|
|
2121
|
+
selectedLabel: h,
|
|
2122
|
+
itemRemove: p,
|
|
2123
|
+
removeAll: _,
|
|
2124
|
+
innerSelectdValue: S,
|
|
2125
|
+
selectItem: m,
|
|
2126
|
+
infiniteLoad: I
|
|
2127
|
+
} = mn(n, r);
|
|
2096
2128
|
Ln(n, r, a, d);
|
|
2097
|
-
const
|
|
2129
|
+
const y = Ne(!0);
|
|
2098
2130
|
return Jt(() => {
|
|
2099
|
-
|
|
2100
|
-
|
|
2131
|
+
y.value = !1, setTimeout(() => {
|
|
2132
|
+
y.value = !0;
|
|
2101
2133
|
}, 300);
|
|
2102
2134
|
}), e({
|
|
2103
|
-
infiniteLoad:
|
|
2135
|
+
infiniteLoad: I
|
|
2104
2136
|
}), (c, C) => {
|
|
2105
|
-
const
|
|
2106
|
-
return
|
|
2137
|
+
const g = Ei;
|
|
2138
|
+
return k(), X(
|
|
2107
2139
|
"div",
|
|
2108
2140
|
{
|
|
2109
2141
|
ref_key: "selectListRef",
|
|
@@ -2112,82 +2144,84 @@ const Ln = (t, e, i, n) => {
|
|
|
2112
2144
|
style: qt({ width: c.width, height: c.height, ...c.customStyle })
|
|
2113
2145
|
},
|
|
2114
2146
|
[
|
|
2115
|
-
c
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2147
|
+
he(c.$slots, "header", {}, () => [
|
|
2148
|
+
c.hideHeader ? K("v-if", !0) : (k(), X("div", Bn, [
|
|
2149
|
+
Ce(
|
|
2150
|
+
"div",
|
|
2151
|
+
Yn,
|
|
2152
|
+
Oe(D(h)),
|
|
2153
|
+
1
|
|
2154
|
+
/* TEXT */
|
|
2155
|
+
),
|
|
2156
|
+
!c.isView && c.clearable ? (k(), oe(D(Vi), {
|
|
2157
|
+
key: 0,
|
|
2158
|
+
"btn-type": "primary-text",
|
|
2159
|
+
block: "",
|
|
2160
|
+
onClick: D(_),
|
|
2161
|
+
disabled: !D(d) || !D(d).length
|
|
2162
|
+
}, {
|
|
2163
|
+
default: tt(() => [
|
|
2164
|
+
Le(
|
|
2165
|
+
Oe(D(je)("das-select-list-removeAll").value),
|
|
2166
|
+
1
|
|
2167
|
+
/* TEXT */
|
|
2168
|
+
)
|
|
2169
|
+
]),
|
|
2170
|
+
_: 1
|
|
2171
|
+
/* STABLE */
|
|
2172
|
+
}, 8, ["onClick", "disabled"])) : K("v-if", !0)
|
|
2173
|
+
]))
|
|
2174
|
+
], !0),
|
|
2175
|
+
K(" 普通 "),
|
|
2176
|
+
!c.infiniteScroll && !l.value ? Se((k(), X(
|
|
2143
2177
|
"div",
|
|
2144
2178
|
{
|
|
2145
|
-
key:
|
|
2179
|
+
key: 0,
|
|
2146
2180
|
ref_key: "$list",
|
|
2147
2181
|
ref: a,
|
|
2148
2182
|
class: de(["selected-container", { "hide-header": c.hideHeader }])
|
|
2149
2183
|
},
|
|
2150
2184
|
[
|
|
2151
|
-
(
|
|
2185
|
+
(k(!0), X(
|
|
2152
2186
|
_t,
|
|
2153
2187
|
null,
|
|
2154
|
-
Et(D(d), (
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
)
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
],
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
))),
|
|
2188
|
+
Et(D(d), (E, L) => (k(), X("div", {
|
|
2189
|
+
class: de({
|
|
2190
|
+
"selected-item": !0,
|
|
2191
|
+
disabled: !c.isView && D(u)(E),
|
|
2192
|
+
enable: !c.isView && !D(u)(E),
|
|
2193
|
+
active: D(S) === E[c.valueKey]
|
|
2194
|
+
}),
|
|
2195
|
+
key: E[c.valueKey] + L,
|
|
2196
|
+
onClick: (H) => D(m)(E)
|
|
2197
|
+
}, [
|
|
2198
|
+
c.dragSort ? (k(), oe(D(Fi), {
|
|
2199
|
+
key: 0,
|
|
2200
|
+
class: "drag-icon",
|
|
2201
|
+
size: "medium",
|
|
2202
|
+
style: { "margin-right": "8px" }
|
|
2203
|
+
})) : K("v-if", !0),
|
|
2204
|
+
Ce("div", Wn, [
|
|
2205
|
+
he(c.$slots, "default", { item: E }, () => [
|
|
2206
|
+
Se((k(), X("div", null, [
|
|
2207
|
+
Le(
|
|
2208
|
+
Oe(E[c.labelKey]),
|
|
2209
|
+
1
|
|
2210
|
+
/* TEXT */
|
|
2211
|
+
)
|
|
2212
|
+
])), [
|
|
2213
|
+
[D(dt)]
|
|
2214
|
+
])
|
|
2215
|
+
], !0)
|
|
2216
|
+
]),
|
|
2217
|
+
!c.isView && c.closeable ? (k(), oe(D(ct), {
|
|
2218
|
+
key: 1,
|
|
2219
|
+
size: "small",
|
|
2220
|
+
class: "close-icon",
|
|
2221
|
+
"icon-color": D(ut)("--das-ui-color-secondary"),
|
|
2222
|
+
onClick: (H) => D(p)(E)
|
|
2223
|
+
}, null, 8, ["icon-color", "onClick"])) : K("v-if", !0)
|
|
2224
|
+
], 10, Xn))),
|
|
2191
2225
|
128
|
|
2192
2226
|
/* KEYED_FRAGMENT */
|
|
2193
2227
|
))
|
|
@@ -2195,139 +2229,139 @@ const Ln = (t, e, i, n) => {
|
|
|
2195
2229
|
2
|
|
2196
2230
|
/* CLASS */
|
|
2197
2231
|
)), [
|
|
2198
|
-
[D(
|
|
2199
|
-
]) :
|
|
2200
|
-
|
|
2201
|
-
!c.dragSort && l.value ? (
|
|
2232
|
+
[D(Ri), { usePrevOverlay: !0 }]
|
|
2233
|
+
]) : K("v-if", !0),
|
|
2234
|
+
K(" 虚拟滚动 "),
|
|
2235
|
+
!c.dragSort && l.value ? (k(), X(
|
|
2202
2236
|
"div",
|
|
2203
2237
|
{
|
|
2204
|
-
key:
|
|
2238
|
+
key: 1,
|
|
2205
2239
|
ref_key: "$list",
|
|
2206
2240
|
ref: a,
|
|
2207
2241
|
class: de(["selected-container", { "hide-header": c.hideHeader }])
|
|
2208
2242
|
},
|
|
2209
2243
|
[
|
|
2210
|
-
|
|
2244
|
+
y.value && D(d).length > 0 ? (k(), oe(D(Nt), {
|
|
2211
2245
|
key: D(d).length,
|
|
2212
2246
|
items: D(d),
|
|
2213
2247
|
"item-size": c.itemHeight,
|
|
2214
2248
|
"key-field": c.valueKey,
|
|
2215
2249
|
class: "virtual-list"
|
|
2216
2250
|
}, {
|
|
2217
|
-
default:
|
|
2218
|
-
(
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
)
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
],
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
))
|
|
2251
|
+
default: tt(({ item: E, index: L }) => [
|
|
2252
|
+
(k(), X("div", {
|
|
2253
|
+
class: de({
|
|
2254
|
+
"selected-item": !0,
|
|
2255
|
+
disabled: !c.isView && D(u)(E),
|
|
2256
|
+
enable: !c.isView && !D(u)(E),
|
|
2257
|
+
active: D(S) === E[c.valueKey]
|
|
2258
|
+
}),
|
|
2259
|
+
key: E[c.valueKey],
|
|
2260
|
+
onClick: (H) => D(m)(E)
|
|
2261
|
+
}, [
|
|
2262
|
+
Ce("div", Kn, [
|
|
2263
|
+
he(c.$slots, "default", { item: E }, () => [
|
|
2264
|
+
Se((k(), X("div", null, [
|
|
2265
|
+
Le(
|
|
2266
|
+
Oe(E[c.labelKey]),
|
|
2267
|
+
1
|
|
2268
|
+
/* TEXT */
|
|
2269
|
+
)
|
|
2270
|
+
])), [
|
|
2271
|
+
[D(dt)]
|
|
2272
|
+
])
|
|
2273
|
+
], !0)
|
|
2274
|
+
]),
|
|
2275
|
+
!c.isView && c.closeable ? (k(), oe(D(ct), {
|
|
2276
|
+
key: 0,
|
|
2277
|
+
size: "small",
|
|
2278
|
+
class: "close-icon",
|
|
2279
|
+
"icon-color": D(ut)("--das-ui-color-secondary"),
|
|
2280
|
+
onClick: (H) => D(p)(E)
|
|
2281
|
+
}, null, 8, ["icon-color", "onClick"])) : K("v-if", !0)
|
|
2282
|
+
], 10, jn))
|
|
2249
2283
|
]),
|
|
2250
2284
|
_: 3
|
|
2251
2285
|
/* FORWARDED */
|
|
2252
|
-
}, 8, ["items", "item-size", "key-field"])) :
|
|
2286
|
+
}, 8, ["items", "item-size", "key-field"])) : K("v-if", !0)
|
|
2253
2287
|
],
|
|
2254
2288
|
2
|
|
2255
2289
|
/* CLASS */
|
|
2256
|
-
)) :
|
|
2257
|
-
|
|
2258
|
-
!c.dragSort && c.infiniteScroll ? Se((
|
|
2259
|
-
key:
|
|
2290
|
+
)) : K("v-if", !0),
|
|
2291
|
+
K(" 分页加载 "),
|
|
2292
|
+
!c.dragSort && c.infiniteScroll ? Se((k(), X("div", {
|
|
2293
|
+
key: 2,
|
|
2260
2294
|
ref_key: "$list",
|
|
2261
2295
|
ref: a,
|
|
2262
2296
|
class: de(["selected-container selected-page-container", { "hide-header": c.hideHeader }]),
|
|
2263
2297
|
"infinite-scroll-disabled": c.infiniteDisabled,
|
|
2264
2298
|
style: { overflow: "overlay" }
|
|
2265
2299
|
}, [
|
|
2266
|
-
|
|
2267
|
-
(
|
|
2300
|
+
Ce("div", Un, [
|
|
2301
|
+
(k(!0), X(
|
|
2268
2302
|
_t,
|
|
2269
2303
|
null,
|
|
2270
|
-
Et(D(d), (
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
)
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
],
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
))),
|
|
2304
|
+
Et(D(d), (E) => (k(), X("div", {
|
|
2305
|
+
class: de({
|
|
2306
|
+
"selected-item": !0,
|
|
2307
|
+
disabled: !c.isView && D(u)(E),
|
|
2308
|
+
enable: !c.isView && !D(u)(E),
|
|
2309
|
+
active: D(S) === E[c.valueKey]
|
|
2310
|
+
}),
|
|
2311
|
+
key: E[c.valueKey],
|
|
2312
|
+
onClick: (L) => D(m)(E)
|
|
2313
|
+
}, [
|
|
2314
|
+
Ce("div", Jn, [
|
|
2315
|
+
he(c.$slots, "default", { item: E }, () => [
|
|
2316
|
+
Se((k(), X("div", null, [
|
|
2317
|
+
Le(
|
|
2318
|
+
Oe(E[c.labelKey]),
|
|
2319
|
+
1
|
|
2320
|
+
/* TEXT */
|
|
2321
|
+
)
|
|
2322
|
+
])), [
|
|
2323
|
+
[D(dt)]
|
|
2324
|
+
])
|
|
2325
|
+
], !0)
|
|
2326
|
+
]),
|
|
2327
|
+
!c.isView && c.closeable ? (k(), oe(D(ct), {
|
|
2328
|
+
key: 0,
|
|
2329
|
+
size: "small",
|
|
2330
|
+
class: "close-icon",
|
|
2331
|
+
"icon-color": D(ut)("--das-ui-color-secondary"),
|
|
2332
|
+
onClick: (L) => D(p)(E)
|
|
2333
|
+
}, null, 8, ["icon-color", "onClick"])) : K("v-if", !0)
|
|
2334
|
+
], 10, qn))),
|
|
2301
2335
|
128
|
|
2302
2336
|
/* KEYED_FRAGMENT */
|
|
2303
2337
|
))
|
|
2304
2338
|
])
|
|
2305
|
-
], 10,
|
|
2306
|
-
[
|
|
2307
|
-
]) :
|
|
2339
|
+
], 10, Gn)), [
|
|
2340
|
+
[g, D(I)]
|
|
2341
|
+
]) : K("v-if", !0)
|
|
2308
2342
|
],
|
|
2309
2343
|
4
|
|
2310
2344
|
/* STYLE */
|
|
2311
2345
|
);
|
|
2312
2346
|
};
|
|
2313
2347
|
}
|
|
2314
|
-
}),
|
|
2348
|
+
}), Qn = (t, e) => {
|
|
2315
2349
|
const i = t.__vccOpts || t;
|
|
2316
2350
|
for (const [n, r] of e)
|
|
2317
2351
|
i[n] = r;
|
|
2318
2352
|
return i;
|
|
2319
|
-
},
|
|
2353
|
+
}, er = /* @__PURE__ */ Qn(Zn, [["__scopeId", "data-v-395a3033"]]), tr = {
|
|
2320
2354
|
"das-select-list-removeAll": { "zh-CN": "清空", en: "Clear", _appCode: "framework" },
|
|
2321
2355
|
"das-select-list-selected": { "zh-CN": "已选", en: "Selected", _appCode: "framework" },
|
|
2322
2356
|
"das-select-list-parentheses-left": { "zh-CN": "(", en: "(", _appCode: "framework" },
|
|
2323
2357
|
"das-select-list-parentheses-right": { "zh-CN": ")", en: ")", _appCode: "framework" }
|
|
2324
|
-
},
|
|
2358
|
+
}, ir = {
|
|
2325
2359
|
"--das-ui-select-list-hover-bg": { light: "#F2F2F2" },
|
|
2326
2360
|
"--das-ui-select-list-close-btn-hover": { light: "#5582F3" }
|
|
2327
|
-
},
|
|
2328
|
-
Si(
|
|
2329
|
-
_i(
|
|
2361
|
+
}, wr = wi(er);
|
|
2362
|
+
Si(tr);
|
|
2363
|
+
_i(ir);
|
|
2330
2364
|
export {
|
|
2331
|
-
|
|
2332
|
-
|
|
2365
|
+
wr as DasSelectList,
|
|
2366
|
+
wr as default
|
|
2333
2367
|
};
|