@orangelogic/design-system 4.38.0 → 4.40.0
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/library/chunks/{alert.D8Gwfkvy.js → alert.C7jo45Pq.js} +2 -2
- package/library/chunks/{array-line-clamp.DSzPRb_y.js → array-line-clamp.BWWMLJhi.js} +2 -2
- package/library/chunks/asset-link-format.COPyGdND.js +22 -0
- package/library/chunks/{asset-link-format.vbmd2KkO.js → asset-link-format.P8WKO488.js} +1124 -578
- package/library/chunks/{audio.RwF9cR3b.js → audio.C8rPv9iZ.js} +2 -2
- package/library/chunks/{bicolor-picker.CoEkuFFa.js → bicolor-picker.Dbag6AHo.js} +1 -1
- package/library/chunks/{block-width.Bpxcj778.js → block-width.C5qELJEx.js} +394 -389
- package/library/chunks/{border-input-group.B7tkimlE.js → border-input-group.B12EFZFD.js} +3 -3
- package/library/chunks/{breadcrumb.C_NpOjQB.js → breadcrumb.BLCAOe89.js} +1 -1
- package/library/chunks/{button.BlhGCsjP.js → button.DnOMjl_G.js} +2 -2
- package/library/chunks/{color-picker.Cs91unvg.js → color-picker.Dz6vVcZS.js} +10 -10
- package/library/chunks/{color-swatch-group.BF_AFUh6.js → color-swatch-group.CZx1bZyC.js} +22 -22
- package/library/chunks/{color-swatch.By2bJtpB.js → color-swatch.C3Elv0dG.js} +3 -3
- package/library/chunks/{config-manager.CfFtxFHj.js → config-manager.Dsb1DCbi.js} +28 -28
- package/library/chunks/{configs-controller.DSc6DiFO.js → configs-controller.Cm21QV6C.js} +425 -416
- package/library/chunks/{confirm-popover.CNgNi7H6.js → confirm-popover.CahmeTbf.js} +4 -4
- package/library/chunks/{copy-button.D9kDKwlR.js → copy-button.D2ZwXadV.js} +2 -2
- package/library/chunks/{corner-position-input-group.Cc0hzrPR.js → corner-position-input-group.BV8b7GsS.js} +4 -4
- package/library/chunks/{cropper.D4ymxgab.js → cropper.BRsN8h2t.js} +1 -1
- package/library/chunks/{date-calendar.Dc3XKO0t.js → date-calendar.BpfgvrtE.js} +1 -1
- package/library/chunks/{details.BacO3ROq.js → details.BGlfx87d.js} +1 -1
- package/library/chunks/{dialog.Ci7Q_ZOR.js → dialog.BfGASgvs.js} +3 -3
- package/library/chunks/{document-viewer.CdA65_RB.js → document-viewer.BtB-RTvP.js} +14 -14
- package/library/chunks/{dot-pagination.DDt0UoT8.js → dot-pagination.BUZhiikk.js} +2 -2
- package/library/chunks/{drawer.BeMBXsqi.js → drawer.BEXLFfil.js} +2 -2
- package/library/chunks/{dropdown.DFLP9K18.js → dropdown.CnT7uTzf.js} +4 -4
- package/library/chunks/{dynamic-select.wu648W9-.js → dynamic-select.BeqPRh6t.js} +5 -5
- package/library/chunks/{e-chart.fGTLKIDX.js → e-chart.BkqfNGfV.js} +2 -2
- package/library/chunks/{element-clamp.B509oA2s.js → element-clamp.CwFlUOET.js} +2 -2
- package/library/chunks/{file-on-demand.C17w6fng.js → file-on-demand.BEAjdrt_.js} +16 -16
- package/library/chunks/{folder-select.CQllI-Id.js → folder-select.B02Mdr8b.js} +31 -34
- package/library/chunks/{format-time.DZCXUWmw.js → format-time.ysWqJKLC.js} +1 -1
- package/library/chunks/{header.BDEqW3TI.js → header.NoiopyyV.js} +2 -2
- package/library/chunks/{i18n.BJ2p4em8.js → i18n.CQPiI18Q.js} +3 -0
- package/library/chunks/{icon-button.Dd-oDRfX.js → icon-button.BAUsYiQh.js} +2 -2
- package/library/chunks/{iframe.DsOaw03m.js → iframe.CKoHB0lA.js} +1 -1
- package/library/chunks/{image-comparer.FB0ZzA0d.js → image-comparer.WUKRGHqI.js} +1 -1
- package/library/chunks/{image.Cmh2WYdP.js → image.CRrj-94o.js} +2 -2
- package/library/chunks/{input.Fmdh6pnf.js → input.D1UkXp3F.js} +1 -1
- package/library/chunks/{line-clamp.CgiUerew.js → line-clamp.B7QEzpUF.js} +2 -2
- package/library/chunks/{markdown.DMexA2xN.js → markdown.CrAalbNm.js} +2 -2
- package/library/chunks/{masonry.DqU7fvCr.js → masonry.B5kwpjVE.js} +4 -4
- package/library/chunks/{menu-item.Du9N-cKj.js → menu-item.BgoL4QFj.js} +3 -3
- package/library/chunks/{menu.gmy0sy3a.js → menu.DJBOpi__.js} +2 -2
- package/library/chunks/{option._7i4rjM5.js → option.C97GEvQ6.js} +1 -1
- package/library/chunks/{padding-input-group.E8trRZI5.js → padding-input-group.CGDq3Cct.js} +1 -1
- package/library/chunks/{pagination.C0YML9vO.js → pagination.GiwV5ZHF.js} +7 -7
- package/library/chunks/{popup.uU7UtxmR.js → popup.C2ySgZ9I.js} +1 -1
- package/library/chunks/{position-picker.DwDC9gDl.js → position-picker.DzRyAx7a.js} +1 -1
- package/library/chunks/{progress-bar.BJfkoZ6G.js → progress-bar.BfHPsueW.js} +1 -1
- package/library/chunks/{progress-ring.BSfnNF9M.js → progress-ring.Cn08Dbar.js} +1 -1
- package/library/chunks/{radio-card.DOnTPgND.js → radio-card.BPumEe9b.js} +1 -1
- package/library/chunks/{range.blqKtzMI.js → range.E1wPWa7j.js} +2 -2
- package/library/chunks/{rating.BgUId4FT.js → rating.BjGQtyCk.js} +1 -1
- package/library/chunks/{relative-time.BSSaZxeD.js → relative-time.BcpFkSZT.js} +1 -1
- package/library/chunks/{select.BddyhkLW.js → select.DGL9C_32.js} +6 -6
- package/library/chunks/{shadow-input-group.k4MBg4Pf.js → shadow-input-group.CaCaO1C9.js} +2 -2
- package/library/chunks/{share-option-list.8OSETkgd.js → share-option-list.u2Q0zMae.js} +2 -2
- package/library/chunks/{sidebar.B1MjUxBY.js → sidebar.CwAW3KaC.js} +1 -1
- package/library/chunks/{size-input-group.CR0wHbEO.js → size-input-group.Ciupfrja.js} +5 -5
- package/library/chunks/{sortable.esm.W3y3EWKS.js → sortable.esm.BVU0_hc5.js} +339 -334
- package/library/chunks/{spinner.o3Rjsff7.js → spinner.DsWszid8.js} +1 -1
- package/library/chunks/{split-panel.CVyqM2Dr.js → split-panel.KzmC5IAW.js} +1 -1
- package/library/chunks/{src.BBVUYHbX.js → src.HY1opSC4.js} +47 -47
- package/library/chunks/{src.CDbx_BKW.js → src.QIRlv8bQ.js} +53 -53
- package/library/chunks/{step.7RkKgH1n.js → step.CpXaHTmn.js} +3 -3
- package/library/chunks/{stepper-wizard.D7XpenfO.js → stepper-wizard.DZ7up5KF.js} +2 -2
- package/library/chunks/{stepper.BhLxi6eC.js → stepper.BAqogLwg.js} +1 -1
- package/library/chunks/{endpoints.jOHOmF_t.js → string-array.Dstcqyjm.js} +5 -2
- package/library/chunks/{tab-group.DPhCgEOG.js → tab-group.Ib4bahXC.js} +7 -7
- package/library/chunks/{tab.Cv9UFQjo.js → tab.BOJ3V4IE.js} +3 -3
- package/library/chunks/{tag.V9YP_T0h.js → tag.BySfbRok.js} +3 -3
- package/library/chunks/{tooltip.GjnTzFeL.js → tooltip.DWx9VYtS.js} +2 -2
- package/library/chunks/{tree.Cvx7TQer.js → tree.B3qvSTCo.js} +4 -4
- package/library/chunks/{typeface.CHo-Lj6f.js → typeface.BcNOEnVy.js} +3 -3
- package/library/chunks/{video.DFfkHdKQ.js → video.DVuLcN2J.js} +3 -3
- package/library/components/alert.js +1 -1
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +48 -48
- package/library/components/audio.js +1 -1
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/color-swatch.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/cropper.js +1 -1
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dot-pagination.js +1 -1
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +1 -1
- package/library/components/icon-button.js +1 -1
- package/library/components/iframe.js +1 -1
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +1 -1
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +17 -17
- package/library/components/option.js +1 -1
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +1 -1
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/tab.js +1 -1
- package/library/components/tag.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +98 -98
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/events/src/cx-asset-link-format-crop-toggle.d.ts +6 -0
- package/library/packages/events/src/cx-asset-link-format-reorder.d.ts +10 -0
- package/library/packages/events/src/events.d.ts +2 -0
- package/library/packages/hybrid/video-advanced/src/react/plugins/Timeline/Viewer.d.ts +1 -0
- package/library/packages/hybrid/video-advanced/src/react/utils/segmentTime.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +176 -18
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +10 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-dimensions/asset-link-format-dimensions.d.ts +103 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-dimensions/asset-link-format-dimensions.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +30 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +6 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +7 -7
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -3
- package/library/packages/types/src/asset-link-format.d.ts +63 -0
- package/library/packages/types/src/content-builder.d.ts +3 -3
- package/library/packages/utils/src/custom-element/i18n.d.ts +3 -0
- package/library/react-web-component.d.ts +18 -26
- package/library/utils.js +2 -2
- package/package.json +1 -1
- package/library/chunks/asset-link-format.DhdgEsA0.js +0 -12
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { r as e } from "./rolldown-runtime.CEFd7nDs.js";
|
|
1
2
|
//#region ../../node_modules/sortablejs/modular/sortable.esm.js
|
|
2
|
-
|
|
3
|
+
var t = /* @__PURE__ */ e({
|
|
4
|
+
Sortable: () => Q,
|
|
5
|
+
default: () => Q
|
|
6
|
+
});
|
|
7
|
+
function n(e, t) {
|
|
3
8
|
var n = Object.keys(e);
|
|
4
9
|
if (Object.getOwnPropertySymbols) {
|
|
5
10
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -9,26 +14,26 @@ function e(e, t) {
|
|
|
9
14
|
}
|
|
10
15
|
return n;
|
|
11
16
|
}
|
|
12
|
-
function
|
|
13
|
-
for (var
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
18
|
-
Object.defineProperty(
|
|
17
|
+
function r(e) {
|
|
18
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
19
|
+
var r = arguments[t] == null ? {} : arguments[t];
|
|
20
|
+
t % 2 ? n(Object(r), !0).forEach(function(t) {
|
|
21
|
+
a(e, t, r[t]);
|
|
22
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : n(Object(r)).forEach(function(t) {
|
|
23
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
19
24
|
});
|
|
20
25
|
}
|
|
21
|
-
return
|
|
26
|
+
return e;
|
|
22
27
|
}
|
|
23
|
-
function
|
|
28
|
+
function i(e) {
|
|
24
29
|
"@babel/helpers - typeof";
|
|
25
|
-
return
|
|
30
|
+
return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
26
31
|
return typeof e;
|
|
27
32
|
} : function(e) {
|
|
28
33
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
29
|
-
},
|
|
34
|
+
}, i(e);
|
|
30
35
|
}
|
|
31
|
-
function
|
|
36
|
+
function a(e, t, n) {
|
|
32
37
|
return t in e ? Object.defineProperty(e, t, {
|
|
33
38
|
value: n,
|
|
34
39
|
enumerable: !0,
|
|
@@ -36,44 +41,44 @@ function r(e, t, n) {
|
|
|
36
41
|
writable: !0
|
|
37
42
|
}) : e[t] = n, e;
|
|
38
43
|
}
|
|
39
|
-
function
|
|
40
|
-
return
|
|
44
|
+
function o() {
|
|
45
|
+
return o = Object.assign || function(e) {
|
|
41
46
|
for (var t = 1; t < arguments.length; t++) {
|
|
42
47
|
var n = arguments[t];
|
|
43
48
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
44
49
|
}
|
|
45
50
|
return e;
|
|
46
|
-
},
|
|
51
|
+
}, o.apply(this, arguments);
|
|
47
52
|
}
|
|
48
|
-
function
|
|
53
|
+
function s(e, t) {
|
|
49
54
|
if (e == null) return {};
|
|
50
55
|
for (var n = {}, r = Object.keys(e), i, a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
51
56
|
return n;
|
|
52
57
|
}
|
|
53
|
-
function
|
|
58
|
+
function c(e, t) {
|
|
54
59
|
if (e == null) return {};
|
|
55
|
-
var n =
|
|
60
|
+
var n = s(e, t), r, i;
|
|
56
61
|
if (Object.getOwnPropertySymbols) {
|
|
57
|
-
var
|
|
58
|
-
for (i = 0; i <
|
|
62
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
63
|
+
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
59
64
|
}
|
|
60
65
|
return n;
|
|
61
66
|
}
|
|
62
|
-
var
|
|
63
|
-
function
|
|
67
|
+
var l = "1.15.6";
|
|
68
|
+
function u(e) {
|
|
64
69
|
if (typeof window < "u" && window.navigator) return !!/*@__PURE__*/ navigator.userAgent.match(e);
|
|
65
70
|
}
|
|
66
|
-
var
|
|
71
|
+
var d = u(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), f = u(/Edge/i), p = u(/firefox/i), m = u(/safari/i) && !u(/chrome/i) && !u(/android/i), h = u(/iP(ad|od|hone)/i), g = u(/chrome/i) && u(/android/i), _ = {
|
|
67
72
|
capture: !1,
|
|
68
73
|
passive: !1
|
|
69
74
|
};
|
|
70
|
-
function
|
|
71
|
-
e.addEventListener(t, n, !
|
|
75
|
+
function v(e, t, n) {
|
|
76
|
+
e.addEventListener(t, n, !d && _);
|
|
72
77
|
}
|
|
73
|
-
function
|
|
74
|
-
e.removeEventListener(t, n, !
|
|
78
|
+
function y(e, t, n) {
|
|
79
|
+
e.removeEventListener(t, n, !d && _);
|
|
75
80
|
}
|
|
76
|
-
function
|
|
81
|
+
function b(e, t) {
|
|
77
82
|
if (t) {
|
|
78
83
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
79
84
|
if (e.matches) return e.matches(t);
|
|
@@ -85,41 +90,41 @@ function v(e, t) {
|
|
|
85
90
|
return !1;
|
|
86
91
|
}
|
|
87
92
|
}
|
|
88
|
-
function
|
|
93
|
+
function x(e) {
|
|
89
94
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
90
95
|
}
|
|
91
|
-
function
|
|
96
|
+
function S(e, t, n, r) {
|
|
92
97
|
if (e) {
|
|
93
98
|
n ||= document;
|
|
94
99
|
do {
|
|
95
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
100
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && b(e, t) : b(e, t)) || r && e === n) return e;
|
|
96
101
|
if (e === n) break;
|
|
97
|
-
} while (e =
|
|
102
|
+
} while (e = x(e));
|
|
98
103
|
}
|
|
99
104
|
return null;
|
|
100
105
|
}
|
|
101
|
-
var
|
|
102
|
-
function
|
|
103
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
106
|
+
var C = /\s+/g;
|
|
107
|
+
function w(e, t, n) {
|
|
108
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(C, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(C, " "));
|
|
104
109
|
}
|
|
105
|
-
function
|
|
110
|
+
function T(e, t, n) {
|
|
106
111
|
var r = e && e.style;
|
|
107
112
|
if (r) {
|
|
108
113
|
if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
|
|
109
114
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
110
115
|
}
|
|
111
116
|
}
|
|
112
|
-
function
|
|
117
|
+
function E(e, t) {
|
|
113
118
|
var n = "";
|
|
114
119
|
if (typeof e == "string") n = e;
|
|
115
120
|
else do {
|
|
116
|
-
var r =
|
|
121
|
+
var r = T(e, "transform");
|
|
117
122
|
r && r !== "none" && (n = r + " " + n);
|
|
118
123
|
} while (!t && (e = e.parentNode));
|
|
119
124
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
120
125
|
return i && new i(n);
|
|
121
126
|
}
|
|
122
|
-
function
|
|
127
|
+
function ee(e, t, n) {
|
|
123
128
|
if (e) {
|
|
124
129
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
125
130
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -127,45 +132,45 @@ function T(e, t, n) {
|
|
|
127
132
|
}
|
|
128
133
|
return [];
|
|
129
134
|
}
|
|
130
|
-
function
|
|
135
|
+
function D() {
|
|
131
136
|
return document.scrollingElement || document.documentElement;
|
|
132
137
|
}
|
|
133
|
-
function
|
|
138
|
+
function O(e, t, n, r, i) {
|
|
134
139
|
if (e.getBoundingClientRect || e === window) {
|
|
135
|
-
var a, o, s, c,
|
|
136
|
-
if (e !== window && e.parentNode && e !==
|
|
137
|
-
if (i && i.getBoundingClientRect && (
|
|
140
|
+
var a, o, s, c, l, u, f;
|
|
141
|
+
if (e !== window && e.parentNode && e !== D() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, f = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, f = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !d)) do
|
|
142
|
+
if (i && i.getBoundingClientRect && (T(i, "transform") !== "none" || n && T(i, "position") !== "static")) {
|
|
138
143
|
var p = i.getBoundingClientRect();
|
|
139
|
-
o -= p.top + parseInt(
|
|
144
|
+
o -= p.top + parseInt(T(i, "border-top-width")), s -= p.left + parseInt(T(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
140
145
|
break;
|
|
141
146
|
}
|
|
142
147
|
while (i = i.parentNode);
|
|
143
148
|
if (r && e !== window) {
|
|
144
|
-
var m =
|
|
145
|
-
m && (o /= g, s /= h, f /= h,
|
|
149
|
+
var m = E(i || e), h = m && m.a, g = m && m.d;
|
|
150
|
+
m && (o /= g, s /= h, f /= h, u /= g, c = o + u, l = s + f);
|
|
146
151
|
}
|
|
147
152
|
return {
|
|
148
153
|
top: o,
|
|
149
154
|
left: s,
|
|
150
155
|
bottom: c,
|
|
151
|
-
right:
|
|
156
|
+
right: l,
|
|
152
157
|
width: f,
|
|
153
|
-
height:
|
|
158
|
+
height: u
|
|
154
159
|
};
|
|
155
160
|
}
|
|
156
161
|
}
|
|
157
|
-
function
|
|
158
|
-
for (var r = M(e, !0), i =
|
|
159
|
-
var a =
|
|
162
|
+
function te(e, t, n) {
|
|
163
|
+
for (var r = M(e, !0), i = O(e)[t]; r;) {
|
|
164
|
+
var a = O(r)[n], o = void 0;
|
|
160
165
|
if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
|
|
161
|
-
if (r ===
|
|
166
|
+
if (r === D()) break;
|
|
162
167
|
r = M(r, !1);
|
|
163
168
|
}
|
|
164
169
|
return !1;
|
|
165
170
|
}
|
|
166
171
|
function k(e, t, n, r) {
|
|
167
172
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
168
|
-
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) &&
|
|
173
|
+
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && S(o[a], n.draggable, e, !1)) {
|
|
169
174
|
if (i === t) return o[a];
|
|
170
175
|
i++;
|
|
171
176
|
}
|
|
@@ -173,20 +178,20 @@ function k(e, t, n, r) {
|
|
|
173
178
|
}
|
|
174
179
|
return null;
|
|
175
180
|
}
|
|
176
|
-
function
|
|
177
|
-
for (var n = e.lastElementChild; n && (n === Q.ghost ||
|
|
181
|
+
function ne(e, t) {
|
|
182
|
+
for (var n = e.lastElementChild; n && (n === Q.ghost || T(n, "display") === "none" || t && !b(n, t));) n = n.previousElementSibling;
|
|
178
183
|
return n || null;
|
|
179
184
|
}
|
|
180
185
|
function A(e, t) {
|
|
181
186
|
var n = 0;
|
|
182
187
|
if (!e || !e.parentNode) return -1;
|
|
183
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t ||
|
|
188
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || b(e, t)) && n++;
|
|
184
189
|
return n;
|
|
185
190
|
}
|
|
186
|
-
function
|
|
187
|
-
var t = 0, n = 0, r =
|
|
191
|
+
function re(e) {
|
|
192
|
+
var t = 0, n = 0, r = D();
|
|
188
193
|
if (e) do {
|
|
189
|
-
var i =
|
|
194
|
+
var i = E(e), a = i.a, o = i.d;
|
|
190
195
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
191
196
|
} while (e !== r && (e = e.parentNode));
|
|
192
197
|
return [t, n];
|
|
@@ -198,29 +203,29 @@ function j(e, t) {
|
|
|
198
203
|
return -1;
|
|
199
204
|
}
|
|
200
205
|
function M(e, t) {
|
|
201
|
-
if (!e || !e.getBoundingClientRect) return
|
|
206
|
+
if (!e || !e.getBoundingClientRect) return D();
|
|
202
207
|
var n = e, r = !1;
|
|
203
208
|
do
|
|
204
209
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
205
|
-
var i =
|
|
210
|
+
var i = T(n);
|
|
206
211
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
207
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
212
|
+
if (!n.getBoundingClientRect || n === document.body) return D();
|
|
208
213
|
if (r || t) return n;
|
|
209
214
|
r = !0;
|
|
210
215
|
}
|
|
211
216
|
}
|
|
212
217
|
while (n = n.parentNode);
|
|
213
|
-
return
|
|
218
|
+
return D();
|
|
214
219
|
}
|
|
215
|
-
function
|
|
220
|
+
function ie(e, t) {
|
|
216
221
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
217
222
|
return e;
|
|
218
223
|
}
|
|
219
|
-
function
|
|
224
|
+
function ae(e, t) {
|
|
220
225
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
221
226
|
}
|
|
222
227
|
var N;
|
|
223
|
-
function
|
|
228
|
+
function P(e, t) {
|
|
224
229
|
return function() {
|
|
225
230
|
if (!N) {
|
|
226
231
|
var n = arguments, r = this;
|
|
@@ -230,42 +235,42 @@ function ie(e, t) {
|
|
|
230
235
|
}
|
|
231
236
|
};
|
|
232
237
|
}
|
|
233
|
-
function
|
|
238
|
+
function oe() {
|
|
234
239
|
clearTimeout(N), N = void 0;
|
|
235
240
|
}
|
|
236
|
-
function
|
|
241
|
+
function se(e, t, n) {
|
|
237
242
|
e.scrollLeft += t, e.scrollTop += n;
|
|
238
243
|
}
|
|
239
|
-
function
|
|
244
|
+
function ce(e) {
|
|
240
245
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
241
246
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
242
247
|
}
|
|
243
|
-
function
|
|
248
|
+
function le(e, t, n) {
|
|
244
249
|
var r = {};
|
|
245
250
|
return Array.from(e.children).forEach(function(i) {
|
|
246
|
-
if (
|
|
247
|
-
var a =
|
|
251
|
+
if (S(i, t.draggable, e, !1) && !i.animated && i !== n) {
|
|
252
|
+
var a = O(i);
|
|
248
253
|
r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
|
|
249
254
|
}
|
|
250
255
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
251
256
|
}
|
|
252
257
|
var F = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
253
|
-
function
|
|
254
|
-
var e = [],
|
|
258
|
+
function ue() {
|
|
259
|
+
var e = [], t;
|
|
255
260
|
return {
|
|
256
261
|
captureAnimationState: function() {
|
|
257
|
-
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(
|
|
258
|
-
if (
|
|
262
|
+
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
263
|
+
if (T(t, "display") !== "none" && t !== Q.ghost) {
|
|
259
264
|
e.push({
|
|
260
|
-
target:
|
|
261
|
-
rect:
|
|
265
|
+
target: t,
|
|
266
|
+
rect: O(t)
|
|
262
267
|
});
|
|
263
|
-
var
|
|
264
|
-
if (
|
|
265
|
-
var i =
|
|
266
|
-
i && (
|
|
268
|
+
var n = r({}, e[e.length - 1].rect);
|
|
269
|
+
if (t.thisAnimationDuration) {
|
|
270
|
+
var i = E(t, !0);
|
|
271
|
+
i && (n.top -= i.f, n.left -= i.e);
|
|
267
272
|
}
|
|
268
|
-
|
|
273
|
+
t.fromRect = n;
|
|
269
274
|
}
|
|
270
275
|
});
|
|
271
276
|
},
|
|
@@ -275,115 +280,115 @@ function ce() {
|
|
|
275
280
|
removeAnimationState: function(t) {
|
|
276
281
|
e.splice(j(e, { target: t }), 1);
|
|
277
282
|
},
|
|
278
|
-
animateAll: function(
|
|
283
|
+
animateAll: function(n) {
|
|
279
284
|
var r = this;
|
|
280
285
|
if (!this.options.animation) {
|
|
281
|
-
clearTimeout(
|
|
286
|
+
clearTimeout(t), typeof n == "function" && n();
|
|
282
287
|
return;
|
|
283
288
|
}
|
|
284
289
|
var i = !1, a = 0;
|
|
285
290
|
e.forEach(function(e) {
|
|
286
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
287
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
291
|
+
var t = 0, n = e.target, o = n.fromRect, s = O(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = E(n, !0);
|
|
292
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && ae(c, s) && !ae(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = fe(u, c, l, r.options)), ae(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
|
|
288
293
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
289
294
|
}, t), n.thisAnimationDuration = t);
|
|
290
|
-
}), clearTimeout(
|
|
291
|
-
typeof
|
|
292
|
-
}, a) : typeof
|
|
295
|
+
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
296
|
+
typeof n == "function" && n();
|
|
297
|
+
}, a) : typeof n == "function" && n(), e = [];
|
|
293
298
|
},
|
|
294
299
|
animate: function(e, t, n, r) {
|
|
295
300
|
if (r) {
|
|
296
|
-
|
|
297
|
-
var i =
|
|
298
|
-
e.animatingX = !!s, e.animatingY = !!c,
|
|
299
|
-
|
|
301
|
+
T(e, "transition", ""), T(e, "transform", "");
|
|
302
|
+
var i = E(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
303
|
+
e.animatingX = !!s, e.animatingY = !!c, T(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = de(e), T(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), T(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
304
|
+
T(e, "transition", ""), T(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
300
305
|
}, r);
|
|
301
306
|
}
|
|
302
307
|
}
|
|
303
308
|
};
|
|
304
309
|
}
|
|
305
|
-
function
|
|
310
|
+
function de(e) {
|
|
306
311
|
return e.offsetWidth;
|
|
307
312
|
}
|
|
308
|
-
function
|
|
313
|
+
function fe(e, t, n, r) {
|
|
309
314
|
return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
|
|
310
315
|
}
|
|
311
|
-
var
|
|
316
|
+
var pe = [], me = { initializeByDefault: !0 }, he = {
|
|
312
317
|
mount: function(e) {
|
|
313
|
-
for (var t in
|
|
314
|
-
|
|
318
|
+
for (var t in me) me.hasOwnProperty(t) && !(t in e) && (e[t] = me[t]);
|
|
319
|
+
pe.forEach(function(t) {
|
|
315
320
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
316
|
-
}),
|
|
321
|
+
}), pe.push(e);
|
|
317
322
|
},
|
|
318
|
-
pluginEvent: function(e,
|
|
323
|
+
pluginEvent: function(e, t, n) {
|
|
319
324
|
var i = this;
|
|
320
|
-
this.eventCanceled = !1,
|
|
325
|
+
this.eventCanceled = !1, n.cancel = function() {
|
|
321
326
|
i.eventCanceled = !0;
|
|
322
327
|
};
|
|
323
328
|
var a = e + "Global";
|
|
324
|
-
|
|
325
|
-
|
|
329
|
+
pe.forEach(function(i) {
|
|
330
|
+
t[i.pluginName] && (t[i.pluginName][a] && t[i.pluginName][a](r({ sortable: t }, n)), t.options[i.pluginName] && t[i.pluginName][e] && t[i.pluginName][e](r({ sortable: t }, n)));
|
|
326
331
|
});
|
|
327
332
|
},
|
|
328
333
|
initializePlugins: function(e, t, n, r) {
|
|
329
|
-
for (var
|
|
330
|
-
var
|
|
331
|
-
if (e.options[
|
|
332
|
-
var
|
|
333
|
-
|
|
334
|
+
for (var i in pe.forEach(function(r) {
|
|
335
|
+
var i = r.pluginName;
|
|
336
|
+
if (e.options[i] || r.initializeByDefault) {
|
|
337
|
+
var a = new r(e, t, e.options);
|
|
338
|
+
a.sortable = e, a.options = e.options, e[i] = a, o(n, a.defaults);
|
|
334
339
|
}
|
|
335
|
-
}), e.options) if (e.options.hasOwnProperty(
|
|
336
|
-
var
|
|
337
|
-
|
|
340
|
+
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
341
|
+
var a = this.modifyOption(e, i, e.options[i]);
|
|
342
|
+
a !== void 0 && (e.options[i] = a);
|
|
338
343
|
}
|
|
339
344
|
},
|
|
340
345
|
getEventProperties: function(e, t) {
|
|
341
346
|
var n = {};
|
|
342
|
-
return
|
|
343
|
-
typeof r.eventProperties == "function" &&
|
|
347
|
+
return pe.forEach(function(r) {
|
|
348
|
+
typeof r.eventProperties == "function" && o(n, r.eventProperties.call(t[r.pluginName], e));
|
|
344
349
|
}), n;
|
|
345
350
|
},
|
|
346
351
|
modifyOption: function(e, t, n) {
|
|
347
352
|
var r;
|
|
348
|
-
return
|
|
353
|
+
return pe.forEach(function(i) {
|
|
349
354
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
350
355
|
}), r;
|
|
351
356
|
}
|
|
352
357
|
};
|
|
353
|
-
function
|
|
354
|
-
var
|
|
355
|
-
if (
|
|
356
|
-
var v, y =
|
|
357
|
-
window.CustomEvent && !
|
|
358
|
+
function ge(e) {
|
|
359
|
+
var t = e.sortable, n = e.rootEl, i = e.name, a = e.targetEl, o = e.cloneEl, s = e.toEl, c = e.fromEl, l = e.oldIndex, u = e.newIndex, p = e.oldDraggableIndex, m = e.newDraggableIndex, h = e.originalEvent, g = e.putSortable, _ = e.extraEventProperties;
|
|
360
|
+
if (t ||= n && n[F], t) {
|
|
361
|
+
var v, y = t.options, b = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
362
|
+
window.CustomEvent && !d && !f ? v = new CustomEvent(i, {
|
|
358
363
|
bubbles: !0,
|
|
359
364
|
cancelable: !0
|
|
360
|
-
}) : (v = document.createEvent("Event"), v.initEvent(i, !0, !0)), v.to = s ||
|
|
361
|
-
var x =
|
|
365
|
+
}) : (v = document.createEvent("Event"), v.initEvent(i, !0, !0)), v.to = s || n, v.from = c || n, v.item = a || n, v.clone = o, v.oldIndex = l, v.newIndex = u, v.oldDraggableIndex = p, v.newDraggableIndex = m, v.originalEvent = h, v.pullMode = g ? g.lastPutMode : void 0;
|
|
366
|
+
var x = r(r({}, _), he.getEventProperties(i, t));
|
|
362
367
|
for (var S in x) v[S] = x[S];
|
|
363
|
-
|
|
368
|
+
n && n.dispatchEvent(v), y[b] && y[b].call(t, v);
|
|
364
369
|
}
|
|
365
370
|
}
|
|
366
|
-
var
|
|
367
|
-
var
|
|
368
|
-
|
|
371
|
+
var _e = ["evt"], I = function(e, t) {
|
|
372
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.evt, a = c(n, _e);
|
|
373
|
+
he.pluginEvent.bind(Q)(e, t, r({
|
|
369
374
|
dragEl: R,
|
|
370
375
|
parentEl: z,
|
|
371
376
|
ghostEl: B,
|
|
372
377
|
rootEl: V,
|
|
373
378
|
nextEl: H,
|
|
374
|
-
lastDownEl:
|
|
379
|
+
lastDownEl: ve,
|
|
375
380
|
cloneEl: U,
|
|
376
381
|
cloneHidden: W,
|
|
377
|
-
dragStarted:
|
|
382
|
+
dragStarted: ke,
|
|
378
383
|
putSortable: q,
|
|
379
384
|
activeSortable: Q.active,
|
|
380
385
|
originalEvent: i,
|
|
381
|
-
oldIndex:
|
|
382
|
-
oldDraggableIndex:
|
|
386
|
+
oldIndex: ye,
|
|
387
|
+
oldDraggableIndex: be,
|
|
383
388
|
newIndex: G,
|
|
384
389
|
newDraggableIndex: K,
|
|
385
|
-
hideGhostForTarget:
|
|
386
|
-
unhideGhostForTarget:
|
|
390
|
+
hideGhostForTarget: qe,
|
|
391
|
+
unhideGhostForTarget: Je,
|
|
387
392
|
cloneNowHidden: function() {
|
|
388
393
|
W = !0;
|
|
389
394
|
},
|
|
@@ -392,7 +397,7 @@ var he = ["evt"], I = function(e, n) {
|
|
|
392
397
|
},
|
|
393
398
|
dispatchSortableEvent: function(e) {
|
|
394
399
|
L({
|
|
395
|
-
sortable:
|
|
400
|
+
sortable: t,
|
|
396
401
|
name: e,
|
|
397
402
|
originalEvent: i
|
|
398
403
|
});
|
|
@@ -400,45 +405,45 @@ var he = ["evt"], I = function(e, n) {
|
|
|
400
405
|
}, a));
|
|
401
406
|
};
|
|
402
407
|
function L(e) {
|
|
403
|
-
|
|
408
|
+
ge(r({
|
|
404
409
|
putSortable: q,
|
|
405
410
|
cloneEl: U,
|
|
406
411
|
targetEl: R,
|
|
407
412
|
rootEl: V,
|
|
408
|
-
oldIndex:
|
|
409
|
-
oldDraggableIndex:
|
|
413
|
+
oldIndex: ye,
|
|
414
|
+
oldDraggableIndex: be,
|
|
410
415
|
newIndex: G,
|
|
411
416
|
newDraggableIndex: K
|
|
412
417
|
}, e));
|
|
413
418
|
}
|
|
414
|
-
var R, z, B, V, H,
|
|
415
|
-
if (
|
|
416
|
-
if (
|
|
419
|
+
var R, z, B, V, H, ve, U, W, ye, G, be, K, xe, q, Se = !1, Ce = !1, we = [], J, Y, Te, Ee, De, Oe, ke, Ae, je, Me = !1, Ne = !1, Pe, X, Fe = [], Ie = !1, Le = [], Re = typeof document < "u", ze = h, Be = f || d ? "cssFloat" : "float", Ve = Re && !g && !h && "draggable" in document.createElement("div"), He = function() {
|
|
420
|
+
if (Re) {
|
|
421
|
+
if (d) return !1;
|
|
417
422
|
var e = document.createElement("x");
|
|
418
423
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
419
424
|
}
|
|
420
|
-
}(),
|
|
421
|
-
var n =
|
|
425
|
+
}(), Ue = function(e, t) {
|
|
426
|
+
var n = T(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = k(e, 0, t), a = k(e, 1, t), o = i && T(i), s = a && T(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + O(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + O(a).width;
|
|
422
427
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
423
428
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
424
429
|
if (i && o.float && o.float !== "none") {
|
|
425
430
|
var u = o.float === "left" ? "left" : "right";
|
|
426
431
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
427
432
|
}
|
|
428
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
429
|
-
},
|
|
433
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Be] === "none" || a && n[Be] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
434
|
+
}, We = function(e, t, n) {
|
|
430
435
|
var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
|
|
431
436
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
432
|
-
},
|
|
437
|
+
}, Ge = function(e, t) {
|
|
433
438
|
var n;
|
|
434
|
-
return
|
|
439
|
+
return we.some(function(r) {
|
|
435
440
|
var i = r[F].options.emptyInsertThreshold;
|
|
436
|
-
if (i && !
|
|
437
|
-
var a =
|
|
441
|
+
if (i && !ne(r)) {
|
|
442
|
+
var a = O(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
438
443
|
if (o && s) return n = r;
|
|
439
444
|
}
|
|
440
445
|
}), n;
|
|
441
|
-
},
|
|
446
|
+
}, Ke = function(e) {
|
|
442
447
|
function t(e, n) {
|
|
443
448
|
return function(r, i, a, o) {
|
|
444
449
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -450,32 +455,32 @@ var R, z, B, V, H, ge, U, W, _e, G, ve, K, ye, q, be = !1, xe = !1, Se = [], J,
|
|
|
450
455
|
return e === !0 || typeof e == "string" && e === c || e.join && e.indexOf(c) > -1;
|
|
451
456
|
};
|
|
452
457
|
}
|
|
453
|
-
var
|
|
454
|
-
(!
|
|
455
|
-
},
|
|
456
|
-
!
|
|
457
|
-
},
|
|
458
|
-
!
|
|
458
|
+
var n = {}, r = e.group;
|
|
459
|
+
(!r || i(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
460
|
+
}, qe = function() {
|
|
461
|
+
!He && B && T(B, "display", "none");
|
|
462
|
+
}, Je = function() {
|
|
463
|
+
!He && B && T(B, "display", "");
|
|
459
464
|
};
|
|
460
|
-
|
|
461
|
-
if (
|
|
465
|
+
Re && !g && document.addEventListener("click", function(e) {
|
|
466
|
+
if (Ce) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ce = !1, !1;
|
|
462
467
|
}, !0);
|
|
463
468
|
var Z = function(e) {
|
|
464
469
|
if (R) {
|
|
465
470
|
e = e.touches ? e.touches[0] : e;
|
|
466
|
-
var t =
|
|
471
|
+
var t = Ge(e.clientX, e.clientY);
|
|
467
472
|
if (t) {
|
|
468
473
|
var n = {};
|
|
469
474
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
470
475
|
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[F]._onDragOver(n);
|
|
471
476
|
}
|
|
472
477
|
}
|
|
473
|
-
},
|
|
478
|
+
}, Ye = function(e) {
|
|
474
479
|
R && R.parentNode[F]._isOutsideThisEl(e.target);
|
|
475
480
|
};
|
|
476
481
|
function Q(e, t) {
|
|
477
482
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
478
|
-
this.el = e, this.options = t =
|
|
483
|
+
this.el = e, this.options = t = o({}, t), e[F] = this;
|
|
479
484
|
var n = {
|
|
480
485
|
group: null,
|
|
481
486
|
sort: !0,
|
|
@@ -488,7 +493,7 @@ function Q(e, t) {
|
|
|
488
493
|
invertedSwapThreshold: null,
|
|
489
494
|
removeCloneOnHide: !0,
|
|
490
495
|
direction: function() {
|
|
491
|
-
return
|
|
496
|
+
return Ue(e, this.options);
|
|
492
497
|
},
|
|
493
498
|
ghostClass: "sortable-ghost",
|
|
494
499
|
chosenClass: "sortable-chosen",
|
|
@@ -515,17 +520,17 @@ function Q(e, t) {
|
|
|
515
520
|
x: 0,
|
|
516
521
|
y: 0
|
|
517
522
|
},
|
|
518
|
-
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && (!
|
|
523
|
+
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && (!m || h),
|
|
519
524
|
emptyInsertThreshold: 5
|
|
520
525
|
};
|
|
521
|
-
for (var r in
|
|
522
|
-
for (var
|
|
523
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
526
|
+
for (var r in he.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
527
|
+
for (var i in Ke(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
528
|
+
this.nativeDraggable = !t.forceFallback && Ve, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? v(e, "pointerdown", this._onTapStart) : (v(e, "mousedown", this._onTapStart), v(e, "touchstart", this._onTapStart)), this.nativeDraggable && (v(e, "dragover", this), v(e, "dragenter", this)), we.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), o(this, ue());
|
|
524
529
|
}
|
|
525
530
|
Q.prototype = {
|
|
526
531
|
constructor: Q,
|
|
527
532
|
_isOutsideThisEl: function(e) {
|
|
528
|
-
!this.el.contains(e) && e !== this.el && (
|
|
533
|
+
!this.el.contains(e) && e !== this.el && (Ae = null);
|
|
529
534
|
},
|
|
530
535
|
_getDirection: function(e, t) {
|
|
531
536
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, R) : this.options.direction;
|
|
@@ -533,8 +538,8 @@ Q.prototype = {
|
|
|
533
538
|
_onTapStart: function(e) {
|
|
534
539
|
if (e.cancelable) {
|
|
535
540
|
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
|
|
536
|
-
if (
|
|
537
|
-
if (
|
|
541
|
+
if (at(n), !R && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && m && s && s.tagName.toUpperCase() === "SELECT") && (s = S(s, r.draggable, n, !1), !(s && s.animated) && ve !== s)) {
|
|
542
|
+
if (ye = A(s), be = A(s, r.draggable), typeof l == "function") {
|
|
538
543
|
if (l.call(this, e, s, this)) {
|
|
539
544
|
L({
|
|
540
545
|
sortable: t,
|
|
@@ -547,7 +552,7 @@ Q.prototype = {
|
|
|
547
552
|
return;
|
|
548
553
|
}
|
|
549
554
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
550
|
-
if (r =
|
|
555
|
+
if (r = S(c, r.trim(), n, !1), r) return L({
|
|
551
556
|
sortable: t,
|
|
552
557
|
rootEl: r,
|
|
553
558
|
name: "filter",
|
|
@@ -559,36 +564,36 @@ Q.prototype = {
|
|
|
559
564
|
i && e.preventDefault();
|
|
560
565
|
return;
|
|
561
566
|
}
|
|
562
|
-
(!r.handle ||
|
|
567
|
+
(!r.handle || S(c, r.handle, n, !1)) && this._prepareDragStart(e, o, s);
|
|
563
568
|
}
|
|
564
569
|
}
|
|
565
570
|
},
|
|
566
571
|
_prepareDragStart: function(e, t, n) {
|
|
567
572
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
568
573
|
if (n && !R && n.parentNode === i) {
|
|
569
|
-
var c =
|
|
570
|
-
if (V = i, R = n, z = R.parentNode, H = R.nextSibling,
|
|
574
|
+
var c = O(n);
|
|
575
|
+
if (V = i, R = n, z = R.parentNode, H = R.nextSibling, ve = n, xe = a.group, Q.dragged = R, J = {
|
|
571
576
|
target: R,
|
|
572
577
|
clientX: (t || e).clientX,
|
|
573
578
|
clientY: (t || e).clientY
|
|
574
|
-
},
|
|
579
|
+
}, De = J.clientX - c.left, Oe = J.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, R.style["will-change"] = "all", s = function() {
|
|
575
580
|
if (I("delayEnded", r, { evt: e }), Q.eventCanceled) {
|
|
576
581
|
r._onDrop();
|
|
577
582
|
return;
|
|
578
583
|
}
|
|
579
|
-
r._disableDelayedDragEvents(), !
|
|
584
|
+
r._disableDelayedDragEvents(), !p && r.nativeDraggable && (R.draggable = !0), r._triggerDragStart(e, t), L({
|
|
580
585
|
sortable: r,
|
|
581
586
|
name: "choose",
|
|
582
587
|
originalEvent: e
|
|
583
|
-
}),
|
|
588
|
+
}), w(R, a.chosenClass, !0);
|
|
584
589
|
}, a.ignore.split(",").forEach(function(e) {
|
|
585
|
-
|
|
586
|
-
}),
|
|
590
|
+
ee(R, e.trim(), Qe);
|
|
591
|
+
}), v(o, "dragover", Z), v(o, "mousemove", Z), v(o, "touchmove", Z), a.supportPointer ? (v(o, "pointerup", r._onDrop), !this.nativeDraggable && v(o, "pointercancel", r._onDrop)) : (v(o, "mouseup", r._onDrop), v(o, "touchend", r._onDrop), v(o, "touchcancel", r._onDrop)), p && this.nativeDraggable && (this.options.touchStartThreshold = 4, R.draggable = !0), I("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(f || d))) {
|
|
587
592
|
if (Q.eventCanceled) {
|
|
588
593
|
this._onDrop();
|
|
589
594
|
return;
|
|
590
595
|
}
|
|
591
|
-
a.supportPointer ? (
|
|
596
|
+
a.supportPointer ? (v(o, "pointerup", r._disableDelayedDrag), v(o, "pointercancel", r._disableDelayedDrag)) : (v(o, "mouseup", r._disableDelayedDrag), v(o, "touchend", r._disableDelayedDrag), v(o, "touchcancel", r._disableDelayedDrag)), v(o, "mousemove", r._delayedDragTouchMoveHandler), v(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && v(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
592
597
|
} else s();
|
|
593
598
|
}
|
|
594
599
|
},
|
|
@@ -597,25 +602,25 @@ Q.prototype = {
|
|
|
597
602
|
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
598
603
|
},
|
|
599
604
|
_disableDelayedDrag: function() {
|
|
600
|
-
R &&
|
|
605
|
+
R && Qe(R), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
601
606
|
},
|
|
602
607
|
_disableDelayedDragEvents: function() {
|
|
603
608
|
var e = this.el.ownerDocument;
|
|
604
|
-
|
|
609
|
+
y(e, "mouseup", this._disableDelayedDrag), y(e, "touchend", this._disableDelayedDrag), y(e, "touchcancel", this._disableDelayedDrag), y(e, "pointerup", this._disableDelayedDrag), y(e, "pointercancel", this._disableDelayedDrag), y(e, "mousemove", this._delayedDragTouchMoveHandler), y(e, "touchmove", this._delayedDragTouchMoveHandler), y(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
605
610
|
},
|
|
606
611
|
_triggerDragStart: function(e, t) {
|
|
607
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ?
|
|
612
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? v(document, "pointermove", this._onTouchMove) : t ? v(document, "touchmove", this._onTouchMove) : v(document, "mousemove", this._onTouchMove) : (v(R, "dragend", this), v(V, "dragstart", this._onDragStart));
|
|
608
613
|
try {
|
|
609
|
-
document.selection ?
|
|
614
|
+
document.selection ? ot(function() {
|
|
610
615
|
document.selection.empty();
|
|
611
616
|
}) : window.getSelection().removeAllRanges();
|
|
612
617
|
} catch {}
|
|
613
618
|
},
|
|
614
619
|
_dragStarted: function(e, t) {
|
|
615
|
-
if (
|
|
616
|
-
I("dragStarted", this, { evt: t }), this.nativeDraggable &&
|
|
620
|
+
if (Se = !1, V && R) {
|
|
621
|
+
I("dragStarted", this, { evt: t }), this.nativeDraggable && v(document, "dragover", Ye);
|
|
617
622
|
var n = this.options;
|
|
618
|
-
!e &&
|
|
623
|
+
!e && w(R, n.dragClass, !1), w(R, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), L({
|
|
619
624
|
sortable: this,
|
|
620
625
|
name: "start",
|
|
621
626
|
originalEvent: t
|
|
@@ -624,7 +629,7 @@ Q.prototype = {
|
|
|
624
629
|
},
|
|
625
630
|
_emulateDragOver: function() {
|
|
626
631
|
if (Y) {
|
|
627
|
-
this._lastX = Y.clientX, this._lastY = Y.clientY,
|
|
632
|
+
this._lastX = Y.clientX, this._lastY = Y.clientY, qe();
|
|
628
633
|
for (var e = document.elementFromPoint(Y.clientX, Y.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Y.clientX, Y.clientY), e !== t);) t = e;
|
|
629
634
|
if (R.parentNode[F]._isOutsideThisEl(e), t) do {
|
|
630
635
|
if (t[F]) {
|
|
@@ -637,19 +642,19 @@ Q.prototype = {
|
|
|
637
642
|
}), n && !this.options.dragoverBubble) break;
|
|
638
643
|
}
|
|
639
644
|
e = t;
|
|
640
|
-
} while (t =
|
|
641
|
-
|
|
645
|
+
} while (t = x(t));
|
|
646
|
+
Je();
|
|
642
647
|
}
|
|
643
648
|
},
|
|
644
649
|
_onTouchMove: function(e) {
|
|
645
650
|
if (J) {
|
|
646
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = B &&
|
|
647
|
-
if (!Q.active && !
|
|
651
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = B && E(B, !0), o = B && a && a.a, s = B && a && a.d, c = ze && X && re(X), l = (i.clientX - J.clientX + r.x) / (o || 1) + (c ? c[0] - Fe[0] : 0) / (o || 1), u = (i.clientY - J.clientY + r.y) / (s || 1) + (c ? c[1] - Fe[1] : 0) / (s || 1);
|
|
652
|
+
if (!Q.active && !Se) {
|
|
648
653
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
649
654
|
this._onDragStart(e, !0);
|
|
650
655
|
}
|
|
651
656
|
if (B) {
|
|
652
|
-
a ? (a.e += l - (
|
|
657
|
+
a ? (a.e += l - (Te || 0), a.f += u - (Ee || 0)) : a = {
|
|
653
658
|
a: 1,
|
|
654
659
|
b: 0,
|
|
655
660
|
c: 0,
|
|
@@ -658,19 +663,19 @@ Q.prototype = {
|
|
|
658
663
|
f: u
|
|
659
664
|
};
|
|
660
665
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
661
|
-
|
|
666
|
+
T(B, "webkitTransform", d), T(B, "mozTransform", d), T(B, "msTransform", d), T(B, "transform", d), Te = l, Ee = u, Y = i;
|
|
662
667
|
}
|
|
663
668
|
e.cancelable && e.preventDefault();
|
|
664
669
|
}
|
|
665
670
|
},
|
|
666
671
|
_appendGhost: function() {
|
|
667
672
|
if (!B) {
|
|
668
|
-
var e = this.options.fallbackOnBody ? document.body : V, t =
|
|
669
|
-
if (
|
|
670
|
-
for (X = e;
|
|
671
|
-
X !== document.body && X !== document.documentElement ? (X === document && (X =
|
|
673
|
+
var e = this.options.fallbackOnBody ? document.body : V, t = O(R, !0, ze, !0, e), n = this.options;
|
|
674
|
+
if (ze) {
|
|
675
|
+
for (X = e; T(X, "position") === "static" && T(X, "transform") === "none" && X !== document;) X = X.parentNode;
|
|
676
|
+
X !== document.body && X !== document.documentElement ? (X === document && (X = D()), t.top += X.scrollTop, t.left += X.scrollLeft) : X = D(), Fe = re(X);
|
|
672
677
|
}
|
|
673
|
-
B = R.cloneNode(!0),
|
|
678
|
+
B = R.cloneNode(!0), w(B, n.ghostClass, !1), w(B, n.fallbackClass, !0), w(B, n.dragClass, !0), T(B, "transition", ""), T(B, "transform", ""), T(B, "box-sizing", "border-box"), T(B, "margin", 0), T(B, "top", t.top), T(B, "left", t.left), T(B, "width", t.width), T(B, "height", t.height), T(B, "opacity", "0.8"), T(B, "position", ze ? "absolute" : "fixed"), T(B, "zIndex", "100000"), T(B, "pointerEvents", "none"), Q.ghost = B, e.appendChild(B), T(B, "transform-origin", De / parseInt(B.style.width) * 100 + "% " + Oe / parseInt(B.style.height) * 100 + "%");
|
|
674
679
|
}
|
|
675
680
|
},
|
|
676
681
|
_onDragStart: function(e, t) {
|
|
@@ -679,18 +684,18 @@ Q.prototype = {
|
|
|
679
684
|
this._onDrop();
|
|
680
685
|
return;
|
|
681
686
|
}
|
|
682
|
-
I("setupClone", this), Q.eventCanceled || (U =
|
|
687
|
+
I("setupClone", this), Q.eventCanceled || (U = ce(R), U.removeAttribute("id"), U.draggable = !1, U.style["will-change"] = "", this._hideClone(), w(U, this.options.chosenClass, !1), Q.clone = U), n.cloneId = ot(function() {
|
|
683
688
|
I("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || V.insertBefore(U, R), n._hideClone(), L({
|
|
684
689
|
sortable: n,
|
|
685
690
|
name: "clone"
|
|
686
691
|
}));
|
|
687
|
-
}), !t &&
|
|
692
|
+
}), !t && w(R, i.dragClass, !0), t ? (Ce = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (y(document, "mouseup", n._onDrop), y(document, "touchend", n._onDrop), y(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, R)), v(document, "drop", n), T(R, "transform", "translateZ(0)")), Se = !0, n._dragStartId = ot(n._dragStarted.bind(n, t, e)), v(document, "selectstart", n), ke = !0, window.getSelection().removeAllRanges(), m && T(document.body, "user-select", "none");
|
|
688
693
|
},
|
|
689
694
|
_onDragOver: function(e) {
|
|
690
|
-
var
|
|
691
|
-
if (
|
|
695
|
+
var t = this.el, n = e.target, i, a, o, s = this.options, c = s.group, l = Q.active, u = xe === c, d = s.sort, f = q || l, p, m = this, h = !1;
|
|
696
|
+
if (Ie) return;
|
|
692
697
|
function g(s, c) {
|
|
693
|
-
I(s, m,
|
|
698
|
+
I(s, m, r({
|
|
694
699
|
evt: e,
|
|
695
700
|
isOwner: u,
|
|
696
701
|
axis: p ? "vertical" : "horizontal",
|
|
@@ -699,10 +704,10 @@ Q.prototype = {
|
|
|
699
704
|
targetRect: a,
|
|
700
705
|
canSort: d,
|
|
701
706
|
fromSortable: f,
|
|
702
|
-
target:
|
|
707
|
+
target: n,
|
|
703
708
|
completed: v,
|
|
704
|
-
onMove: function(
|
|
705
|
-
return
|
|
709
|
+
onMove: function(n, r) {
|
|
710
|
+
return Ze(V, t, R, i, n, O(n), e, r);
|
|
706
711
|
},
|
|
707
712
|
changed: y
|
|
708
713
|
}, c));
|
|
@@ -710,63 +715,63 @@ Q.prototype = {
|
|
|
710
715
|
function _() {
|
|
711
716
|
g("dragOverAnimationCapture"), m.captureAnimationState(), m !== f && f.captureAnimationState();
|
|
712
717
|
}
|
|
713
|
-
function v(
|
|
714
|
-
return g("dragOverCompleted", { insertion:
|
|
718
|
+
function v(r) {
|
|
719
|
+
return g("dragOverCompleted", { insertion: r }), r && (u ? l._hideClone() : l._showClone(m), m !== f && (w(R, q ? q.options.ghostClass : l.options.ghostClass, !1), w(R, s.ghostClass, !0)), q !== m && m !== Q.active ? q = m : m === Q.active && q && (q = null), f === m && (m._ignoreWhileAnimating = n), m.animateAll(function() {
|
|
715
720
|
g("dragOverAnimationComplete"), m._ignoreWhileAnimating = null;
|
|
716
|
-
}), m !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (
|
|
721
|
+
}), m !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (n === R && !R.animated || n === t && !n.animated) && (Ae = null), !s.dragoverBubble && !e.rootEl && n !== document && (R.parentNode[F]._isOutsideThisEl(e.target), !r && Z(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), h = !0;
|
|
717
722
|
}
|
|
718
723
|
function y() {
|
|
719
724
|
G = A(R), K = A(R, s.draggable), L({
|
|
720
725
|
sortable: m,
|
|
721
726
|
name: "change",
|
|
722
|
-
toEl:
|
|
727
|
+
toEl: t,
|
|
723
728
|
newIndex: G,
|
|
724
729
|
newDraggableIndex: K,
|
|
725
730
|
originalEvent: e
|
|
726
731
|
});
|
|
727
732
|
}
|
|
728
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(),
|
|
729
|
-
if (R.contains(e.target) ||
|
|
730
|
-
if (
|
|
731
|
-
if (p = this._getDirection(e,
|
|
733
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = S(n, s.draggable, t, !0), g("dragOver"), Q.eventCanceled) return h;
|
|
734
|
+
if (R.contains(e.target) || n.animated && n.animatingX && n.animatingY || m._ignoreWhileAnimating === n) return v(!1);
|
|
735
|
+
if (Ce = !1, l && !s.disabled && (u ? d || (o = z !== V) : q === this || (this.lastPutMode = xe.checkPull(this, l, R, e)) && c.checkPut(this, l, R, e))) {
|
|
736
|
+
if (p = this._getDirection(e, n) === "vertical", i = O(R), g("dragOverValid"), Q.eventCanceled) return h;
|
|
732
737
|
if (o) return z = V, _(), this._hideClone(), g("revert"), Q.eventCanceled || (H ? V.insertBefore(R, H) : V.appendChild(R)), v(!0);
|
|
733
|
-
var
|
|
734
|
-
if (!
|
|
738
|
+
var b = ne(t, s.draggable);
|
|
739
|
+
if (!b || tt(e, p, this) && !b.animated) {
|
|
740
|
+
if (b === R) return v(!1);
|
|
741
|
+
if (b && t === e.target && (n = b), n && (a = O(n)), Ze(V, t, R, i, n, a, e, !!n) !== !1) return _(), b && b.nextSibling ? t.insertBefore(R, b.nextSibling) : t.appendChild(R), z = t, y(), v(!0);
|
|
742
|
+
} else if (b && et(e, p, this)) {
|
|
743
|
+
var x = k(t, 0, s, !0);
|
|
735
744
|
if (x === R) return v(!1);
|
|
736
|
-
if (
|
|
737
|
-
} else if (
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
Oe !== r && (E = a[M], Ae = !1, je = !j && s.invertSwap || te), T = et(e, r, a, p, j ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, je, Oe === r);
|
|
745
|
-
var N;
|
|
746
|
-
if (T !== 0) {
|
|
747
|
-
var ie = A(R);
|
|
745
|
+
if (n = x, a = O(n), Ze(V, t, R, i, n, a, e, !1) !== !1) return _(), t.insertBefore(R, x), z = t, y(), v(!0);
|
|
746
|
+
} else if (n.parentNode === t) {
|
|
747
|
+
a = O(n);
|
|
748
|
+
var C = 0, E, ee = R.parentNode !== t, D = !We(R.animated && R.toRect || i, n.animated && n.toRect || a, p), re = p ? "top" : "left", j = te(n, "top", "top") || te(R, "top", "top"), M = j ? j.scrollTop : void 0;
|
|
749
|
+
Ae !== n && (E = a[re], Me = !1, Ne = !D && s.invertSwap || ee), C = nt(e, n, a, p, D ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Ne, Ae === n);
|
|
750
|
+
var ie;
|
|
751
|
+
if (C !== 0) {
|
|
752
|
+
var ae = A(R);
|
|
748
753
|
do
|
|
749
|
-
|
|
750
|
-
while (
|
|
754
|
+
ae -= C, ie = z.children[ae];
|
|
755
|
+
while (ie && (T(ie, "display") === "none" || ie === B));
|
|
751
756
|
}
|
|
752
|
-
if (
|
|
753
|
-
|
|
754
|
-
var
|
|
755
|
-
P =
|
|
756
|
-
var
|
|
757
|
-
if (
|
|
757
|
+
if (C === 0 || ie === n) return v(!1);
|
|
758
|
+
Ae = n, je = C;
|
|
759
|
+
var N = n.nextElementSibling, P = !1;
|
|
760
|
+
P = C === 1;
|
|
761
|
+
var oe = Ze(V, t, R, i, n, a, e, P);
|
|
762
|
+
if (oe !== !1) return (oe === 1 || oe === -1) && (P = oe === 1), Ie = !0, setTimeout($e, 30), _(), P && !N ? t.appendChild(R) : n.parentNode.insertBefore(R, P ? N : n), j && se(j, 0, M - j.scrollTop), z = R.parentNode, E !== void 0 && !Ne && (Pe = Math.abs(E - O(n)[re])), y(), v(!0);
|
|
758
763
|
}
|
|
759
|
-
if (
|
|
764
|
+
if (t.contains(R)) return v(!1);
|
|
760
765
|
}
|
|
761
766
|
return !1;
|
|
762
767
|
},
|
|
763
768
|
_ignoreWhileAnimating: null,
|
|
764
769
|
_offMoveEvents: function() {
|
|
765
|
-
|
|
770
|
+
y(document, "mousemove", this._onTouchMove), y(document, "touchmove", this._onTouchMove), y(document, "pointermove", this._onTouchMove), y(document, "dragover", Z), y(document, "mousemove", Z), y(document, "touchmove", Z);
|
|
766
771
|
},
|
|
767
772
|
_offUpEvents: function() {
|
|
768
773
|
var e = this.el.ownerDocument;
|
|
769
|
-
|
|
774
|
+
y(e, "mouseup", this._onDrop), y(e, "touchend", this._onDrop), y(e, "pointerup", this._onDrop), y(e, "pointercancel", this._onDrop), y(e, "touchcancel", this._onDrop), y(document, "selectstart", this);
|
|
770
775
|
},
|
|
771
776
|
_onDrop: function(e) {
|
|
772
777
|
var t = this.el, n = this.options;
|
|
@@ -774,14 +779,14 @@ Q.prototype = {
|
|
|
774
779
|
this._nulling();
|
|
775
780
|
return;
|
|
776
781
|
}
|
|
777
|
-
|
|
782
|
+
Se = !1, Ne = !1, Me = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), st(this.cloneId), st(this._dragStartId), this.nativeDraggable && (y(document, "drop", this), y(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), m && T(document.body, "user-select", ""), T(R, "transform", ""), e && (ke && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), B && B.parentNode && B.parentNode.removeChild(B), (V === z || q && q.lastPutMode !== "clone") && U && U.parentNode && U.parentNode.removeChild(U), R && (this.nativeDraggable && y(R, "dragend", this), Qe(R), R.style["will-change"] = "", ke && !Se && w(R, q ? q.options.ghostClass : this.options.ghostClass, !1), w(R, this.options.chosenClass, !1), L({
|
|
778
783
|
sortable: this,
|
|
779
784
|
name: "unchoose",
|
|
780
785
|
toEl: z,
|
|
781
786
|
newIndex: null,
|
|
782
787
|
newDraggableIndex: null,
|
|
783
788
|
originalEvent: e
|
|
784
|
-
}), V === z ? G !==
|
|
789
|
+
}), V === z ? G !== ye && G >= 0 && (L({
|
|
785
790
|
sortable: this,
|
|
786
791
|
name: "update",
|
|
787
792
|
toEl: z,
|
|
@@ -813,7 +818,7 @@ Q.prototype = {
|
|
|
813
818
|
name: "sort",
|
|
814
819
|
toEl: z,
|
|
815
820
|
originalEvent: e
|
|
816
|
-
})), q && q.save()), Q.active && ((G == null || G === -1) && (G =
|
|
821
|
+
})), q && q.save()), Q.active && ((G == null || G === -1) && (G = ye, K = be), L({
|
|
817
822
|
sortable: this,
|
|
818
823
|
name: "end",
|
|
819
824
|
toEl: z,
|
|
@@ -821,9 +826,9 @@ Q.prototype = {
|
|
|
821
826
|
}), this.save()))), this._nulling();
|
|
822
827
|
},
|
|
823
828
|
_nulling: function() {
|
|
824
|
-
I("nulling", this), V = R = z = B = H = U =
|
|
829
|
+
I("nulling", this), V = R = z = B = H = U = ve = W = J = Y = ke = G = K = ye = be = Ae = je = q = xe = Q.dragged = Q.ghost = Q.clone = Q.active = null, Le.forEach(function(e) {
|
|
825
830
|
e.checked = !0;
|
|
826
|
-
}),
|
|
831
|
+
}), Le.length = Te = Ee = 0;
|
|
827
832
|
},
|
|
828
833
|
handleEvent: function(e) {
|
|
829
834
|
switch (e.type) {
|
|
@@ -833,20 +838,20 @@ Q.prototype = {
|
|
|
833
838
|
break;
|
|
834
839
|
case "dragenter":
|
|
835
840
|
case "dragover":
|
|
836
|
-
R && (this._onDragOver(e),
|
|
841
|
+
R && (this._onDragOver(e), Xe(e));
|
|
837
842
|
break;
|
|
838
843
|
case "selectstart": e.preventDefault();
|
|
839
844
|
}
|
|
840
845
|
},
|
|
841
846
|
toArray: function() {
|
|
842
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
847
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], S(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || it(t));
|
|
843
848
|
return e;
|
|
844
849
|
},
|
|
845
850
|
sort: function(e, t) {
|
|
846
851
|
var n = {}, r = this.el;
|
|
847
852
|
this.toArray().forEach(function(e, t) {
|
|
848
853
|
var i = r.children[t];
|
|
849
|
-
|
|
854
|
+
S(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
850
855
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
851
856
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
852
857
|
}), t && this.animateAll();
|
|
@@ -856,25 +861,25 @@ Q.prototype = {
|
|
|
856
861
|
e && e.set && e.set(this);
|
|
857
862
|
},
|
|
858
863
|
closest: function(e, t) {
|
|
859
|
-
return
|
|
864
|
+
return S(e, t || this.options.draggable, this.el, !1);
|
|
860
865
|
},
|
|
861
866
|
option: function(e, t) {
|
|
862
867
|
var n = this.options;
|
|
863
868
|
if (t === void 0) return n[e];
|
|
864
|
-
var r =
|
|
865
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
869
|
+
var r = he.modifyOption(this, e, t);
|
|
870
|
+
n[e] = r === void 0 ? t : r, e === "group" && Ke(n);
|
|
866
871
|
},
|
|
867
872
|
destroy: function() {
|
|
868
873
|
I("destroy", this);
|
|
869
874
|
var e = this.el;
|
|
870
|
-
e[F] = null,
|
|
875
|
+
e[F] = null, y(e, "mousedown", this._onTapStart), y(e, "touchstart", this._onTapStart), y(e, "pointerdown", this._onTapStart), this.nativeDraggable && (y(e, "dragover", this), y(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
871
876
|
e.removeAttribute("draggable");
|
|
872
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
877
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), we.splice(we.indexOf(this.el), 1), this.el = e = null;
|
|
873
878
|
},
|
|
874
879
|
_hideClone: function() {
|
|
875
880
|
if (!W) {
|
|
876
881
|
if (I("hideClone", this), Q.eventCanceled) return;
|
|
877
|
-
|
|
882
|
+
T(U, "display", "none"), this.options.removeCloneOnHide && U.parentNode && U.parentNode.removeChild(U), W = !0;
|
|
878
883
|
}
|
|
879
884
|
},
|
|
880
885
|
_showClone: function(e) {
|
|
@@ -884,83 +889,83 @@ Q.prototype = {
|
|
|
884
889
|
}
|
|
885
890
|
if (W) {
|
|
886
891
|
if (I("showClone", this), Q.eventCanceled) return;
|
|
887
|
-
R.parentNode == V && !this.options.group.revertClone ? V.insertBefore(U, R) : H ? V.insertBefore(U, H) : V.appendChild(U), this.options.group.revertClone && this.animate(R, U),
|
|
892
|
+
R.parentNode == V && !this.options.group.revertClone ? V.insertBefore(U, R) : H ? V.insertBefore(U, H) : V.appendChild(U), this.options.group.revertClone && this.animate(R, U), T(U, "display", ""), W = !1;
|
|
888
893
|
}
|
|
889
894
|
}
|
|
890
895
|
};
|
|
891
|
-
function
|
|
896
|
+
function Xe(e) {
|
|
892
897
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
893
898
|
}
|
|
894
|
-
function
|
|
895
|
-
var c,
|
|
896
|
-
return window.CustomEvent && !
|
|
899
|
+
function Ze(e, t, n, r, i, a, o, s) {
|
|
900
|
+
var c, l = e[F], u = l.options.onMove, p;
|
|
901
|
+
return window.CustomEvent && !d && !f ? c = new CustomEvent("move", {
|
|
897
902
|
bubbles: !0,
|
|
898
903
|
cancelable: !0
|
|
899
|
-
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a ||
|
|
904
|
+
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || O(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (p = u.call(l, c, o)), p;
|
|
900
905
|
}
|
|
901
|
-
function
|
|
906
|
+
function Qe(e) {
|
|
902
907
|
e.draggable = !1;
|
|
903
908
|
}
|
|
904
|
-
function
|
|
905
|
-
|
|
909
|
+
function $e() {
|
|
910
|
+
Ie = !1;
|
|
906
911
|
}
|
|
907
|
-
function
|
|
908
|
-
var r =
|
|
912
|
+
function et(e, t, n) {
|
|
913
|
+
var r = O(k(n.el, 0, n.options, !0)), i = le(n.el, n.options, B), a = 10;
|
|
909
914
|
return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
|
|
910
915
|
}
|
|
911
|
-
function
|
|
912
|
-
var r =
|
|
916
|
+
function tt(e, t, n) {
|
|
917
|
+
var r = O(ne(n.el, n.options.draggable)), i = le(n.el, n.options, B), a = 10;
|
|
913
918
|
return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
|
|
914
919
|
}
|
|
915
|
-
function
|
|
920
|
+
function nt(e, t, n, r, i, a, o, s) {
|
|
916
921
|
var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
|
|
917
922
|
if (!o) {
|
|
918
|
-
if (s &&
|
|
919
|
-
if (!
|
|
920
|
-
else if (
|
|
921
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
923
|
+
if (s && Pe < l * i) {
|
|
924
|
+
if (!Me && (je === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Me = !0), Me) f = !0;
|
|
925
|
+
else if (je === 1 ? c < u + Pe : c > d - Pe) return -je;
|
|
926
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return rt(t);
|
|
922
927
|
}
|
|
923
928
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
924
929
|
}
|
|
925
|
-
function
|
|
930
|
+
function rt(e) {
|
|
926
931
|
return A(R) < A(e) ? 1 : -1;
|
|
927
932
|
}
|
|
928
|
-
function
|
|
933
|
+
function it(e) {
|
|
929
934
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
930
935
|
return r.toString(36);
|
|
931
936
|
}
|
|
932
|
-
function
|
|
933
|
-
|
|
937
|
+
function at(e) {
|
|
938
|
+
Le.length = 0;
|
|
934
939
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
935
940
|
var r = t[n];
|
|
936
|
-
r.checked &&
|
|
941
|
+
r.checked && Le.push(r);
|
|
937
942
|
}
|
|
938
943
|
}
|
|
939
|
-
function
|
|
944
|
+
function ot(e) {
|
|
940
945
|
return setTimeout(e, 0);
|
|
941
946
|
}
|
|
942
|
-
function
|
|
947
|
+
function st(e) {
|
|
943
948
|
return clearTimeout(e);
|
|
944
949
|
}
|
|
945
|
-
|
|
946
|
-
(Q.active ||
|
|
950
|
+
Re && v(document, "touchmove", function(e) {
|
|
951
|
+
(Q.active || Se) && e.cancelable && e.preventDefault();
|
|
947
952
|
}), Q.utils = {
|
|
948
|
-
on:
|
|
949
|
-
off:
|
|
950
|
-
css:
|
|
951
|
-
find:
|
|
953
|
+
on: v,
|
|
954
|
+
off: y,
|
|
955
|
+
css: T,
|
|
956
|
+
find: ee,
|
|
952
957
|
is: function(e, t) {
|
|
953
|
-
return !!
|
|
958
|
+
return !!S(e, t, e, !1);
|
|
954
959
|
},
|
|
955
|
-
extend:
|
|
956
|
-
throttle:
|
|
957
|
-
closest:
|
|
958
|
-
toggleClass:
|
|
959
|
-
clone:
|
|
960
|
+
extend: ie,
|
|
961
|
+
throttle: P,
|
|
962
|
+
closest: S,
|
|
963
|
+
toggleClass: w,
|
|
964
|
+
clone: ce,
|
|
960
965
|
index: A,
|
|
961
|
-
nextTick:
|
|
962
|
-
cancelNextTick:
|
|
963
|
-
detectDirection:
|
|
966
|
+
nextTick: ot,
|
|
967
|
+
cancelNextTick: st,
|
|
968
|
+
detectDirection: Ue,
|
|
964
969
|
getChild: k,
|
|
965
970
|
expando: F
|
|
966
971
|
}, Q.get = function(e) {
|
|
@@ -969,13 +974,13 @@ Ie && g(document, "touchmove", function(e) {
|
|
|
969
974
|
var e = [...arguments];
|
|
970
975
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
971
976
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
972
|
-
e.utils && (Q.utils =
|
|
977
|
+
e.utils && (Q.utils = r(r({}, Q.utils), e.utils)), he.mount(e);
|
|
973
978
|
});
|
|
974
979
|
}, Q.create = function(e, t) {
|
|
975
980
|
return new Q(e, t);
|
|
976
|
-
}, Q.version =
|
|
977
|
-
var $ = [],
|
|
978
|
-
function
|
|
981
|
+
}, Q.version = l;
|
|
982
|
+
var $ = [], ct, lt, ut = !1, dt, ft, pt, mt;
|
|
983
|
+
function ht() {
|
|
979
984
|
function e() {
|
|
980
985
|
for (var e in this.defaults = {
|
|
981
986
|
scroll: !0,
|
|
@@ -988,70 +993,70 @@ function pt() {
|
|
|
988
993
|
return e.prototype = {
|
|
989
994
|
dragStarted: function(e) {
|
|
990
995
|
var t = e.originalEvent;
|
|
991
|
-
this.sortable.nativeDraggable ?
|
|
996
|
+
this.sortable.nativeDraggable ? v(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? v(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? v(document, "touchmove", this._handleFallbackAutoScroll) : v(document, "mousemove", this._handleFallbackAutoScroll);
|
|
992
997
|
},
|
|
993
998
|
dragOverCompleted: function(e) {
|
|
994
999
|
var t = e.originalEvent;
|
|
995
1000
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
996
1001
|
},
|
|
997
1002
|
drop: function() {
|
|
998
|
-
this.sortable.nativeDraggable ?
|
|
1003
|
+
this.sortable.nativeDraggable ? y(document, "dragover", this._handleAutoScroll) : (y(document, "pointermove", this._handleFallbackAutoScroll), y(document, "touchmove", this._handleFallbackAutoScroll), y(document, "mousemove", this._handleFallbackAutoScroll)), _t(), gt(), oe();
|
|
999
1004
|
},
|
|
1000
1005
|
nulling: function() {
|
|
1001
|
-
|
|
1006
|
+
pt = lt = ct = ut = mt = dt = ft = null, $.length = 0;
|
|
1002
1007
|
},
|
|
1003
1008
|
_handleFallbackAutoScroll: function(e) {
|
|
1004
1009
|
this._handleAutoScroll(e, !0);
|
|
1005
1010
|
},
|
|
1006
1011
|
_handleAutoScroll: function(e, t) {
|
|
1007
1012
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
1008
|
-
if (
|
|
1009
|
-
|
|
1013
|
+
if (pt = e, t || this.options.forceAutoScrollFallback || f || d || m) {
|
|
1014
|
+
vt(e, this.options, a, t);
|
|
1010
1015
|
var o = M(a, !0);
|
|
1011
|
-
|
|
1016
|
+
ut && (!mt || r !== dt || i !== ft) && (mt && _t(), mt = setInterval(function() {
|
|
1012
1017
|
var a = M(document.elementFromPoint(r, i), !0);
|
|
1013
|
-
a !== o && (o = a,
|
|
1014
|
-
}, 10),
|
|
1018
|
+
a !== o && (o = a, gt()), vt(e, n.options, a, t);
|
|
1019
|
+
}, 10), dt = r, ft = i);
|
|
1015
1020
|
} else {
|
|
1016
|
-
if (!this.options.bubbleScroll || M(a, !0) ===
|
|
1017
|
-
|
|
1021
|
+
if (!this.options.bubbleScroll || M(a, !0) === D()) {
|
|
1022
|
+
gt();
|
|
1018
1023
|
return;
|
|
1019
1024
|
}
|
|
1020
|
-
|
|
1025
|
+
vt(e, this.options, M(a, !1), !1);
|
|
1021
1026
|
}
|
|
1022
1027
|
}
|
|
1023
|
-
},
|
|
1028
|
+
}, o(e, {
|
|
1024
1029
|
pluginName: "scroll",
|
|
1025
1030
|
initializeByDefault: !0
|
|
1026
1031
|
});
|
|
1027
1032
|
}
|
|
1028
|
-
function
|
|
1033
|
+
function gt() {
|
|
1029
1034
|
$.forEach(function(e) {
|
|
1030
1035
|
clearInterval(e.pid);
|
|
1031
1036
|
}), $ = [];
|
|
1032
1037
|
}
|
|
1033
|
-
function
|
|
1034
|
-
clearInterval(
|
|
1038
|
+
function _t() {
|
|
1039
|
+
clearInterval(mt);
|
|
1035
1040
|
}
|
|
1036
|
-
var
|
|
1041
|
+
var vt = P(function(e, t, n, r) {
|
|
1037
1042
|
if (t.scroll) {
|
|
1038
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
1039
|
-
|
|
1040
|
-
var d = 0, f =
|
|
1043
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = D(), l = !1, u;
|
|
1044
|
+
lt !== n && (lt = n, gt(), ct = t.scroll, u = t.scrollFn, ct === !0 && (ct = M(n, !0)));
|
|
1045
|
+
var d = 0, f = ct;
|
|
1041
1046
|
do {
|
|
1042
|
-
var p = f, m =
|
|
1043
|
-
p === c ? (x = y <
|
|
1044
|
-
var
|
|
1045
|
-
if (!$[d]) for (var
|
|
1046
|
-
($[d].vx !=
|
|
1047
|
-
r && this.layer === 0 && Q.active._onTouchMove(
|
|
1047
|
+
var p = f, m = O(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, E = T(p), ee = p.scrollLeft, te = p.scrollTop;
|
|
1048
|
+
p === c ? (x = y < C && (E.overflowX === "auto" || E.overflowX === "scroll" || E.overflowX === "visible"), S = b < w && (E.overflowY === "auto" || E.overflowY === "scroll" || E.overflowY === "visible")) : (x = y < C && (E.overflowX === "auto" || E.overflowX === "scroll"), S = b < w && (E.overflowY === "auto" || E.overflowY === "scroll"));
|
|
1049
|
+
var k = x && (Math.abs(v - i) <= o && ee + y < C) - (Math.abs(_ - i) <= o && !!ee), ne = S && (Math.abs(g - a) <= o && te + b < w) - (Math.abs(h - a) <= o && !!te);
|
|
1050
|
+
if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
|
|
1051
|
+
($[d].vx != k || $[d].vy != ne || $[d].el !== p) && ($[d].el = p, $[d].vx = k, $[d].vy = ne, clearInterval($[d].pid), (k != 0 || ne != 0) && (l = !0, $[d].pid = setInterval(function() {
|
|
1052
|
+
r && this.layer === 0 && Q.active._onTouchMove(pt);
|
|
1048
1053
|
var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
|
|
1049
|
-
(typeof u != "function" || u.call(Q.dragged.parentNode[F], n, t, e,
|
|
1054
|
+
(typeof u != "function" || u.call(Q.dragged.parentNode[F], n, t, e, pt, $[this.layer].el) === "continue") && se($[this.layer].el, n, t);
|
|
1050
1055
|
}.bind({ layer: d }), 24))), d++;
|
|
1051
1056
|
} while (t.bubbleScroll && f !== c && (f = M(f, !1)));
|
|
1052
|
-
|
|
1057
|
+
ut = l;
|
|
1053
1058
|
}
|
|
1054
|
-
}, 30),
|
|
1059
|
+
}, 30), yt = function(e) {
|
|
1055
1060
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1056
1061
|
if (t) {
|
|
1057
1062
|
var c = n || i;
|
|
@@ -1063,8 +1068,8 @@ var gt = ie(function(e, t, n, r) {
|
|
|
1063
1068
|
}));
|
|
1064
1069
|
}
|
|
1065
1070
|
};
|
|
1066
|
-
function
|
|
1067
|
-
|
|
1071
|
+
function bt() {}
|
|
1072
|
+
bt.prototype = {
|
|
1068
1073
|
startIndex: null,
|
|
1069
1074
|
dragStart: function(e) {
|
|
1070
1075
|
var t = e.oldDraggableIndex;
|
|
@@ -1076,15 +1081,15 @@ vt.prototype = {
|
|
|
1076
1081
|
var r = k(this.sortable.el, this.startIndex, this.options);
|
|
1077
1082
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
1078
1083
|
},
|
|
1079
|
-
drop:
|
|
1080
|
-
},
|
|
1081
|
-
function
|
|
1082
|
-
|
|
1084
|
+
drop: yt
|
|
1085
|
+
}, o(bt, { pluginName: "revertOnSpill" });
|
|
1086
|
+
function xt() {}
|
|
1087
|
+
xt.prototype = {
|
|
1083
1088
|
onSpill: function(e) {
|
|
1084
1089
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
1085
1090
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
1086
1091
|
},
|
|
1087
|
-
drop:
|
|
1088
|
-
},
|
|
1092
|
+
drop: yt
|
|
1093
|
+
}, o(xt, { pluginName: "removeOnSpill" }), Q.mount(new ht()), Q.mount(xt, bt);
|
|
1089
1094
|
//#endregion
|
|
1090
|
-
export { Q as t };
|
|
1095
|
+
export { t as n, Q as t };
|