@cling-se/widget 0.19.7 → 0.19.9
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/CHANGELOG.md +18 -0
- package/dist/{AddClientCallout-BdGevuQo.js → AddClientCallout-C400wpa7.js} +19 -19
- package/dist/{AnswerModal-DfjF-RVP.js → AnswerModal-C_vekdpA.js} +80 -80
- package/dist/{AttachmentItem-BEd3qVAo.js → AttachmentItem-CYeH1VVw.js} +14 -14
- package/dist/{BaseUpload-Zm4EX8ir.js → BaseUpload-DGLogqK4.js} +256 -256
- package/dist/{BlockMedia-ZHaA4OMV.js → BlockMedia-Hbm0GWNw.js} +33 -32
- package/dist/{CCallout-BlglVZrm.js → CCallout-BPCwr3uM.js} +15 -15
- package/dist/{CCurrencyDropdown-BzvKsm1N.js → CCurrencyDropdown-CZXWH0mA.js} +13 -13
- package/dist/{CDropdownItem-B5rgSee7.js → CDropdownItem-B9dja0RC.js} +11 -11
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js → CFormField.vue_vue_type_script_setup_true_lang-HLxgkrxm.js} +17 -17
- package/dist/{CPhoneFormat-DaDNMlmK.js → CPhoneFormat-C1cjsMVZ.js} +1 -1
- package/dist/{CPhoneInput-BUogm59J.js → CPhoneInput-DwcIFaqz.js} +23 -23
- package/dist/{CPriceInput-Cd5OHMJS.js → CPriceInput-C_PfAhRb.js} +12 -12
- package/dist/{CSelect-CmoAbVkP.js → CSelect-D4A_clvT.js} +15 -15
- package/dist/{CSkeleton-BF6EYj8H.js → CSkeleton-h81Vudx0.js} +16 -16
- package/dist/{ClientAutocomplete-CHfp4YiV.js → ClientAutocomplete-B_R7zgvM.js} +24 -24
- package/dist/{ClientModal-Com23Qgc.js → ClientModal-CBJgrb_y.js} +44 -44
- package/dist/{ColorPicker-BzdHtZep.js → ColorPicker-a5yTVc0q.js} +66 -66
- package/dist/{CompanyModal-CGjSgTEJ.js → CompanyModal-sRTrUPOY.js} +18 -18
- package/dist/{ContentWrapper-CS-Bh4Bk.js → ContentWrapper-Cwd6t51-.js} +16 -16
- package/dist/{CoverBlockSettings-DDHQzLdc.js → CoverBlockSettings-8tjji9f1.js} +39 -39
- package/dist/{DocAnswer-Cmdsw_CW.js → DocAnswer-D1ZIH1Hn.js} +4 -4
- package/dist/{DocDetails-C5Vzh550.js → DocDetails-B5_hBzC-.js} +56 -56
- package/dist/{DocForm-DEUVV11n.js → DocForm-BKQvY0Ie.js} +821 -829
- package/dist/{DocFormSend-Dt7N3wCz.js → DocFormSend-z0W-xRJP.js} +11 -11
- package/dist/{DocLinks-C6-Er0rk.js → DocLinks-BgbDU24h.js} +6 -6
- package/dist/{DocModalBase-DbuJwHXi.js → DocModalBase-CNo1u8TK.js} +1 -1
- package/dist/{DocPrint-D_uxg7qD.js → DocPrint--UV846r0.js} +15 -15
- package/dist/{DocReceipt-D6LP9UAa.js → DocReceipt-BAkWIKbC.js} +23 -23
- package/dist/{DocSendReminder-DopLhyjz.js → DocSendReminder-Bk6IVg0R.js} +10 -10
- package/dist/{DocTextEditor-DeZtzbgm.js → DocTextEditor-D5zDbbXV.js} +4499 -4438
- package/dist/{DocTimeline-DAWZu_KT.js → DocTimeline-KG4zJJOW.js} +16 -16
- package/dist/{DocumentClient-kxnT6k9s.js → DocumentClient-CXSxwjOt.js} +12 -12
- package/dist/DocumentLayout-C-V_5p3r.js +595 -0
- package/dist/{DocumentLogotype-G-a7gBIC.js → DocumentLogotype-H0f7bO0E.js} +18 -18
- package/dist/{DocumentVoided-SG_ShMmc.js → DocumentVoided-3F7DChD4.js} +4 -4
- package/dist/{EmbedInput-CJL5y3Zj.js → EmbedInput-iG-cDNzZ.js} +8 -8
- package/dist/{EmbedSettings-B0X6A9Uy.js → EmbedSettings-DhwFGdKH.js} +12 -12
- package/dist/{ErrorCallout-xCSfpQWV.js → ErrorCallout-CyqQ9iRV.js} +10 -10
- package/dist/{FilePreviewModal-Da_pMUoO.js → FilePreviewModal-CEUhUuh4.js} +7 -7
- package/dist/{Flag-wXawyyMO.js → Flag-Bza5Ltob.js} +4 -4
- package/dist/{HeaderSettings-CD3y6-uY.js → HeaderSettings-kEbuiv0n.js} +36 -36
- package/dist/{ImageSelectModal-DatnXHH1.js → ImageSelectModal-MDduQIdS.js} +16 -16
- package/dist/{ImageUploadWrapper-CwKe3Iq7.js → ImageUploadWrapper-CKJXUAkn.js} +72 -72
- package/dist/{Index-BbVHxVFJ.js → Index--_tbiloB.js} +33 -33
- package/dist/{Index-y_AJP61r.js → Index-437smvNJ.js} +11 -11
- package/dist/{Index-ezY0DbcB.js → Index-8CyLDQv2.js} +5 -5
- package/dist/{Index-Cjg3X74T.js → Index-B1tFrOfN.js} +7 -7
- package/dist/{Index-Ct735UtM.js → Index-BFwz1G_7.js} +2 -2
- package/dist/{Index-BlownK7_.js → Index-BXqNV8F_.js} +7 -7
- package/dist/{Index-B53eUt7Y.js → Index-Bege0Vce.js} +15 -15
- package/dist/{Index-BTDQax0X.js → Index-Bg1kzWCp.js} +60 -59
- package/dist/{Index-9ZFW8Ka7.js → Index-C46cWm4W.js} +7 -7
- package/dist/{Index-C2-s62x7.js → Index-CGhWvSf9.js} +11 -11
- package/dist/{Index-D-gJQEAD.js → Index-CHIQWumi.js} +6 -6
- package/dist/{Index-CQboLS2e.js → Index-CNQhKXtr.js} +8 -8
- package/dist/{Index-COF0evH4.js → Index-CUDi4SEx.js} +6 -6
- package/dist/{Index-Bb6JZC8l.js → Index-ClA923dR.js} +11 -11
- package/dist/{Index-1WPEpaVr.js → Index-D2A8evjo.js} +7 -7
- package/dist/{Index-BvAqglwa.js → Index-D4XDugcf.js} +27 -27
- package/dist/{Index-GPliVrhC.js → Index-DB3keB-X.js} +7 -7
- package/dist/{Index-BJf4YdYB.js → Index-DQLLCnjH.js} +29 -29
- package/dist/{Index-Dfy0PsiW.js → Index-DUM-3B1l.js} +29 -29
- package/dist/{Index-Ck-_9woY.js → Index-DdZo8evS.js} +456 -461
- package/dist/{Index-CTrX3VRa.js → Index-Doc7K3kL.js} +5 -5
- package/dist/{Index-DfuzxXzD.js → Index-Dqfwe7SG.js} +2 -2
- package/dist/{Index-NnBwJv9v.js → Index-DtCuzght.js} +9 -9
- package/dist/{Index-DOeHci16.js → Index-DtDRffCY.js} +7 -7
- package/dist/{Index-C-EUJjuk.js → Index-DzKdZg0G.js} +2 -2
- package/dist/{Index-yS5OPrJJ.js → Index-DzugmOmj.js} +2 -2
- package/dist/{Index-DjfbgA_7.js → Index-E7OzmtR_.js} +30 -27
- package/dist/{Index-DkQ8_VkX.js → Index-MmvJQvLm.js} +194 -218
- package/dist/{Index-Dxg4gEKd.js → Index-Rb5n5XoO.js} +18 -18
- package/dist/{Index-DAkq_7Ws.js → Index-dTgmxz_A.js} +18 -18
- package/dist/{Index-Ciy9lnhS.js → Index-eJiQmHhr.js} +2 -2
- package/dist/Index-jQsYOOC3.js +4 -0
- package/dist/{Index-DzdEqsZB.js → Index-rINXTjpt.js} +16 -16
- package/dist/Index-zRXdiRpy.js +49 -0
- package/dist/{Index.vue_vue_type_script_lang-B3RoDZmC.js → Index.vue_vue_type_script_lang-B9979oeS.js} +2 -2
- package/dist/{InputToggleRow-D5rvQpAw.js → InputToggleRow-CO4fZnAC.js} +15 -15
- package/dist/{ManualPopover-Bd-GsLGT.js → ManualPopover-DT4iXoSI.js} +6 -6
- package/dist/{MediaWrapper-Ci0XPCcb.js → MediaWrapper-CP_1JzGI.js} +4 -4
- package/dist/{NotBindingText-DhndGZE3.js → NotBindingText-D9Um3Agp.js} +2 -2
- package/dist/{PackageGroup-4Jt9ClVO.js → PackageGroup-BtH12jVM.js} +103 -103
- package/dist/{PdfTerms-CGeJDJpQ.js → PdfTerms-sQh93Xit.js} +9 -9
- package/dist/{PdfViewer-o2vb6Fya.js → PdfViewer-DMAcTVND.js} +71 -71
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js → PlainHtml.vue_vue_type_script_setup_true_lang-tY-SurWr.js} +2 -2
- package/dist/{PriceHeader-BsObxLHK.js → PriceHeader-CG6el7O_.js} +31 -31
- package/dist/{SearchApi-ZczKsBb7.js → SearchApi-B39mMGKy.js} +6 -6
- package/dist/{SendForm-D5jqkofo.js → SendForm-F5aQPz8w.js} +780 -778
- package/dist/{Setup-CdZzn0qW.js → Setup-DuHU2eHC.js} +4 -4
- package/dist/{SmartList-B36ffGAZ.js → SmartList-myMj6QGe.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js → Sortable.vue_vue_type_script_setup_true_lang-Bb2Nqdsz.js} +118 -118
- package/dist/{TermsSettings-CmAHVOuX.js → TermsSettings-Cb6Xms3f.js} +16 -16
- package/dist/{ThemeColorRow-CScTIcPB.js → ThemeColorRow-oW3xS1pa.js} +13 -13
- package/dist/{ToggleBinding-CVZZlpBR.js → ToggleBinding-B-F9_nAf.js} +7 -7
- package/dist/{UploadModal-2tXsmGMM.js → UploadModal-eBx4Vqyo.js} +19 -19
- package/dist/{VideoPlayerInput-BDzjZ2St.js → VideoPlayerInput-CtTe4JW4.js} +10 -10
- package/dist/{VideoPlayerSettings-BLAEZw4C.js → VideoPlayerSettings-Cvz5B4JX.js} +9 -9
- package/dist/{VideoSelectModal-iqgmg85K.js → VideoSelectModal-CXI0aN4g.js} +19 -19
- package/dist/{focusDrawerMixin-BmyahQiE.js → focusDrawerMixin-DlcYhFw8.js} +1 -1
- package/dist/{formDrawerState-B7ASfNsk.js → formDrawerState-Cf6Q5cuR.js} +1 -1
- package/dist/{helpers-BVP2Pul1.js → helpers-Cf9wqfZh.js} +4 -4
- package/dist/{index-D0Qee2OX.js → index-BSCAjn53.js} +31 -31
- package/dist/{index-Cd4S4J-L.js → index-BStFMzD9.js} +56 -56
- package/dist/{index-BDb4bM0D.js → index-BytsFarx.js} +24 -24
- package/dist/{index-DXNrJnEc.js → index-Co_PpOtI.js} +10 -10
- package/dist/{index-BH5vwOzR.js → index-DPlBYqKB.js} +9 -9
- package/dist/{index-B86TZXOh.js → index-DsvlNA3Q.js} +94 -94
- package/dist/{index-CsbYpQqP.js → index-r5v1Gv17.js} +57 -57
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +153 -158
- package/dist/{main-C2Q8_T2Y.js → main-BkjAGG46.js} +14298 -14373
- package/dist/{mapFormMixin-CjfqZnmd.js → mapFormMixin-DLFNPgNO.js} +34 -40
- package/dist/omit-CvOSNZN7.js +56 -0
- package/dist/{publicSenderState-C3ELW8Cw.js → publicSenderState-DeC1m0ps.js} +4 -4
- package/dist/{splitpanes-CuxtOZyV.js → splitpanes-CsJipBiG.js} +6 -6
- package/dist/{template-DzrGrOEa.js → template-Cvzvayl5.js} +6 -6
- package/dist/{tippy.esm-Bf86qEue.js → tippy.esm-JEjGtE5F.js} +273 -275
- package/dist/{useTermsModal-Be4HLDDm.js → useTermsModal-D2gYy-TP.js} +7 -7
- package/dist/{utils-a_Odlqb5.js → utils-DarTPA8c.js} +1 -1
- package/dist/{validation-38muBV6x.js → validation-K11g55ZB.js} +4 -4
- package/dist/widget.css +1 -1
- package/package.json +2 -2
- package/dist/DocumentLayout-DaVz9SGF.js +0 -1434
- package/dist/Index-CXjLkK_n.js +0 -49
- package/dist/Index-qFx0G3fC.js +0 -4
- package/dist/omit-DzlbtNCX.js +0 -56
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aO as Rt, aP as kt, aQ as Xt, aR as Yt, E as Bt, aS as st, M as Ht, a7 as Wt, H as Gt, a2 as Lt, c as zt, o as ut, w as jt, d as $t, F as Vt, n as Ut, T as qt, W as Kt, x as Qt, ap as Zt } from "./main-BkjAGG46.js";
|
|
2
2
|
/**!
|
|
3
3
|
* Sortable 1.15.6
|
|
4
4
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -74,7 +74,7 @@ function V(n) {
|
|
|
74
74
|
if (typeof window < "u" && window.navigator)
|
|
75
75
|
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
76
76
|
}
|
|
77
|
-
var q = V(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ce = V(/Edge/i),
|
|
77
|
+
var q = V(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ce = V(/Edge/i), ct = V(/firefox/i), we = V(/safari/i) && !V(/chrome/i) && !V(/android/i), ot = V(/iP(ad|od|hone)/i), yt = V(/chrome/i) && V(/android/i), Et = {
|
|
78
78
|
capture: !1,
|
|
79
79
|
passive: !1
|
|
80
80
|
};
|
|
@@ -84,7 +84,7 @@ function v(n, e, o) {
|
|
|
84
84
|
function m(n, e, o) {
|
|
85
85
|
n.removeEventListener(e, o, !q && Et);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ye(n, e) {
|
|
88
88
|
if (e) {
|
|
89
89
|
if (e[0] === ">" && (e = e.substring(1)), n)
|
|
90
90
|
try {
|
|
@@ -107,21 +107,21 @@ function W(n, e, o, t) {
|
|
|
107
107
|
if (n) {
|
|
108
108
|
o = o || document;
|
|
109
109
|
do {
|
|
110
|
-
if (e != null && (e[0] === ">" ? n.parentNode === o &&
|
|
110
|
+
if (e != null && (e[0] === ">" ? n.parentNode === o && Ye(n, e) : Ye(n, e)) || t && n === o)
|
|
111
111
|
return n;
|
|
112
112
|
if (n === o) break;
|
|
113
113
|
} while (n = wt(n));
|
|
114
114
|
}
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
|
-
var
|
|
117
|
+
var dt = /\s+/g;
|
|
118
118
|
function R(n, e, o) {
|
|
119
119
|
if (n && e)
|
|
120
120
|
if (n.classList)
|
|
121
121
|
n.classList[o ? "add" : "remove"](e);
|
|
122
122
|
else {
|
|
123
|
-
var t = (" " + n.className + " ").replace(
|
|
124
|
-
n.className = (t + (o ? " " + e : "")).replace(
|
|
123
|
+
var t = (" " + n.className + " ").replace(dt, " ").replace(" " + e + " ", " ");
|
|
124
|
+
n.className = (t + (o ? " " + e : "")).replace(dt, " ");
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
function h(n, e, o) {
|
|
@@ -132,7 +132,7 @@ function h(n, e, o) {
|
|
|
132
132
|
!(e in t) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), t[e] = o + (typeof o == "string" ? "" : "px");
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function ce(n, e) {
|
|
136
136
|
var o = "";
|
|
137
137
|
if (typeof n == "string")
|
|
138
138
|
o = n;
|
|
@@ -160,8 +160,8 @@ function L() {
|
|
|
160
160
|
}
|
|
161
161
|
function C(n, e, o, t, i) {
|
|
162
162
|
if (!(!n.getBoundingClientRect && n !== window)) {
|
|
163
|
-
var r, a, l, s, u,
|
|
164
|
-
if (n !== window && n.parentNode && n !== L() ? (r = n.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right,
|
|
163
|
+
var r, a, l, s, u, c, d;
|
|
164
|
+
if (n !== window && n.parentNode && n !== L() ? (r = n.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, c = r.height, d = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, c = window.innerHeight, d = window.innerWidth), (e || o) && n !== window && (i = i || n.parentNode, !q))
|
|
165
165
|
do
|
|
166
166
|
if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" || o && h(i, "position") !== "static")) {
|
|
167
167
|
var b = i.getBoundingClientRect();
|
|
@@ -170,16 +170,16 @@ function C(n, e, o, t, i) {
|
|
|
170
170
|
}
|
|
171
171
|
while (i = i.parentNode);
|
|
172
172
|
if (t && n !== window) {
|
|
173
|
-
var w =
|
|
174
|
-
w && (a /= E, l /= y,
|
|
173
|
+
var w = ce(i || n), y = w && w.a, E = w && w.d;
|
|
174
|
+
w && (a /= E, l /= y, d /= y, c /= E, s = a + c, u = l + d);
|
|
175
175
|
}
|
|
176
176
|
return {
|
|
177
177
|
top: a,
|
|
178
178
|
left: l,
|
|
179
179
|
bottom: s,
|
|
180
180
|
right: u,
|
|
181
|
-
width:
|
|
182
|
-
height:
|
|
181
|
+
width: d,
|
|
182
|
+
height: c
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -192,7 +192,7 @@ function ht(n, e, o) {
|
|
|
192
192
|
}
|
|
193
193
|
return !1;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function de(n, e, o, t) {
|
|
196
196
|
for (var i = 0, r = 0, a = n.children; r < a.length; ) {
|
|
197
197
|
if (a[r].style.display !== "none" && a[r] !== p.ghost && (t || a[r] !== p.dragged) && W(a[r], o.draggable, n, !1)) {
|
|
198
198
|
if (i === e)
|
|
@@ -204,23 +204,23 @@ function ce(n, e, o, t) {
|
|
|
204
204
|
return null;
|
|
205
205
|
}
|
|
206
206
|
function it(n, e) {
|
|
207
|
-
for (var o = n.lastElementChild; o && (o === p.ghost || h(o, "display") === "none" || e && !
|
|
207
|
+
for (var o = n.lastElementChild; o && (o === p.ghost || h(o, "display") === "none" || e && !Ye(o, e)); )
|
|
208
208
|
o = o.previousElementSibling;
|
|
209
209
|
return o || null;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function X(n, e) {
|
|
212
212
|
var o = 0;
|
|
213
213
|
if (!n || !n.parentNode)
|
|
214
214
|
return -1;
|
|
215
215
|
for (; n = n.previousElementSibling; )
|
|
216
|
-
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== p.clone && (!e ||
|
|
216
|
+
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== p.clone && (!e || Ye(n, e)) && o++;
|
|
217
217
|
return o;
|
|
218
218
|
}
|
|
219
219
|
function pt(n) {
|
|
220
220
|
var e = 0, o = 0, t = L();
|
|
221
221
|
if (n)
|
|
222
222
|
do {
|
|
223
|
-
var i =
|
|
223
|
+
var i = ce(n), r = i.a, a = i.d;
|
|
224
224
|
e += n.scrollLeft * r, o += n.scrollTop * a;
|
|
225
225
|
} while (n !== t && (n = n.parentNode));
|
|
226
226
|
return [e, o];
|
|
@@ -303,7 +303,7 @@ function ln() {
|
|
|
303
303
|
});
|
|
304
304
|
var r = z({}, n[n.length - 1].rect);
|
|
305
305
|
if (i.thisAnimationDuration) {
|
|
306
|
-
var a =
|
|
306
|
+
var a = ce(i, !0);
|
|
307
307
|
a && (r.top -= a.f, r.left -= a.e);
|
|
308
308
|
}
|
|
309
309
|
i.fromRect = r;
|
|
@@ -327,9 +327,9 @@ function ln() {
|
|
|
327
327
|
}
|
|
328
328
|
var r = !1, a = 0;
|
|
329
329
|
n.forEach(function(l) {
|
|
330
|
-
var s = 0, u = l.target,
|
|
331
|
-
E && (
|
|
332
|
-
(y.top -
|
|
330
|
+
var s = 0, u = l.target, c = u.fromRect, d = C(u), b = u.prevFromRect, w = u.prevToRect, y = l.rect, E = ce(u, !0);
|
|
331
|
+
E && (d.top -= E.f, d.left -= E.e), u.toRect = d, u.thisAnimationDuration && ze(b, d) && !ze(c, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
332
|
+
(y.top - d.top) / (y.left - d.left) === (c.top - d.top) / (c.left - d.left) && (s = un(y, b, w, i.options)), ze(d, c) || (u.prevFromRect = c, u.prevToRect = d, s || (s = i.options.animation), i.animate(u, y, d, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
333
333
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
334
334
|
}, s), u.thisAnimationDuration = s);
|
|
335
335
|
}), clearTimeout(e), r ? e = setTimeout(function() {
|
|
@@ -339,8 +339,8 @@ function ln() {
|
|
|
339
339
|
animate: function(t, i, r, a) {
|
|
340
340
|
if (a) {
|
|
341
341
|
h(t, "transition", ""), h(t, "transform", "");
|
|
342
|
-
var l =
|
|
343
|
-
t.animatingX = !!
|
|
342
|
+
var l = ce(this.el), s = l && l.a, u = l && l.d, c = (i.left - r.left) / (s || 1), d = (i.top - r.top) / (u || 1);
|
|
343
|
+
t.animatingX = !!c, t.animatingY = !!d, h(t, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy = sn(t), h(t, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
|
|
344
344
|
h(t, "transition", ""), h(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
|
|
345
345
|
}, a);
|
|
346
346
|
}
|
|
@@ -406,21 +406,21 @@ var le = [], je = {
|
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
function fn(n) {
|
|
409
|
-
var e = n.sortable, o = n.rootEl, t = n.name, i = n.targetEl, r = n.cloneEl, a = n.toEl, l = n.fromEl, s = n.oldIndex, u = n.newIndex,
|
|
409
|
+
var e = n.sortable, o = n.rootEl, t = n.name, i = n.targetEl, r = n.cloneEl, a = n.toEl, l = n.fromEl, s = n.oldIndex, u = n.newIndex, c = n.oldDraggableIndex, d = n.newDraggableIndex, b = n.originalEvent, w = n.putSortable, y = n.extraEventProperties;
|
|
410
410
|
if (e = e || o && o[N], !!e) {
|
|
411
|
-
var E,
|
|
411
|
+
var E, Y = e.options, j = "on" + t.charAt(0).toUpperCase() + t.substr(1);
|
|
412
412
|
window.CustomEvent && !q && !Ce ? E = new CustomEvent(t, {
|
|
413
413
|
bubbles: !0,
|
|
414
414
|
cancelable: !0
|
|
415
|
-
}) : (E = document.createEvent("Event"), E.initEvent(t, !0, !0)), E.to = a || o, E.from = l || o, E.item = i || o, E.clone = r, E.oldIndex = s, E.newIndex = u, E.oldDraggableIndex =
|
|
415
|
+
}) : (E = document.createEvent("Event"), E.initEvent(t, !0, !0)), E.to = a || o, E.from = l || o, E.item = i || o, E.clone = r, E.oldIndex = s, E.newIndex = u, E.oldDraggableIndex = c, E.newDraggableIndex = d, E.originalEvent = b, E.pullMode = w ? w.lastPutMode : void 0;
|
|
416
416
|
var A = z(z({}, y), Oe.getEventProperties(t, e));
|
|
417
417
|
for (var B in A)
|
|
418
418
|
E[B] = A[B];
|
|
419
|
-
o && o.dispatchEvent(E),
|
|
419
|
+
o && o.dispatchEvent(E), Y[j] && Y[j].call(e, E);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var
|
|
423
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = tn(t,
|
|
422
|
+
var cn = ["evt"], x = function(e, o) {
|
|
423
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = tn(t, cn);
|
|
424
424
|
Oe.pluginEvent.bind(p)(e, o, z({
|
|
425
425
|
dragEl: f,
|
|
426
426
|
parentEl: S,
|
|
@@ -467,7 +467,7 @@ function P(n) {
|
|
|
467
467
|
newDraggableIndex: Z
|
|
468
468
|
}, n));
|
|
469
469
|
}
|
|
470
|
-
var f, S, g, D, ae, Fe, _, J, fe, k, _e, Z, Ae, O, ue = !1, Be = !1, He = [], ie, H, $e, Ve, gt, mt, be, se, Se, Te = !1, Pe = !1, Re, I, Ue = [], Je = !1, We = [], Le = typeof document < "u", xe = ot, vt = Ce || q ? "cssFloat" : "float",
|
|
470
|
+
var f, S, g, D, ae, Fe, _, J, fe, k, _e, Z, Ae, O, ue = !1, Be = !1, He = [], ie, H, $e, Ve, gt, mt, be, se, Se, Te = !1, Pe = !1, Re, I, Ue = [], Je = !1, We = [], Le = typeof document < "u", xe = ot, vt = Ce || q ? "cssFloat" : "float", dn = Le && !yt && !ot && "draggable" in document.createElement("div"), Ot = function() {
|
|
471
471
|
if (Le) {
|
|
472
472
|
if (q)
|
|
473
473
|
return !1;
|
|
@@ -475,16 +475,16 @@ var f, S, g, D, ae, Fe, _, J, fe, k, _e, Z, Ae, O, ue = !1, Be = !1, He = [], ie
|
|
|
475
475
|
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
476
476
|
}
|
|
477
477
|
}(), It = function(e, o) {
|
|
478
|
-
var t = h(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r =
|
|
478
|
+
var t = h(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r = de(e, 0, o), a = de(e, 1, o), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + C(r).width, c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + C(a).width;
|
|
479
479
|
if (t.display === "flex")
|
|
480
480
|
return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
481
481
|
if (t.display === "grid")
|
|
482
482
|
return t.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
483
483
|
if (r && l.float && l.float !== "none") {
|
|
484
|
-
var
|
|
485
|
-
return a && (s.clear === "both" || s.clear ===
|
|
484
|
+
var d = l.float === "left" ? "left" : "right";
|
|
485
|
+
return a && (s.clear === "both" || s.clear === d) ? "vertical" : "horizontal";
|
|
486
486
|
}
|
|
487
|
-
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && t[vt] === "none" || a && t[vt] === "none" && u +
|
|
487
|
+
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && t[vt] === "none" || a && t[vt] === "none" && u + c > i) ? "vertical" : "horizontal";
|
|
488
488
|
}, hn = function(e, o, t) {
|
|
489
489
|
var i = t ? e.left : e.top, r = t ? e.right : e.bottom, a = t ? e.width : e.height, l = t ? o.left : o.top, s = t ? o.right : o.bottom, u = t ? o.width : o.height;
|
|
490
490
|
return i === l || r === s || i + a / 2 === l + u / 2;
|
|
@@ -500,16 +500,16 @@ var f, S, g, D, ae, Fe, _, J, fe, k, _e, Z, Ae, O, ue = !1, Be = !1, He = [], ie
|
|
|
500
500
|
}), t;
|
|
501
501
|
}, At = function(e) {
|
|
502
502
|
function o(r, a) {
|
|
503
|
-
return function(l, s, u,
|
|
504
|
-
var
|
|
505
|
-
if (r == null && (a ||
|
|
503
|
+
return function(l, s, u, c) {
|
|
504
|
+
var d = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
505
|
+
if (r == null && (a || d))
|
|
506
506
|
return !0;
|
|
507
507
|
if (r == null || r === !1)
|
|
508
508
|
return !1;
|
|
509
509
|
if (a && r === "clone")
|
|
510
510
|
return r;
|
|
511
511
|
if (typeof r == "function")
|
|
512
|
-
return o(r(l, s, u,
|
|
512
|
+
return o(r(l, s, u, c), a)(l, s, u, c);
|
|
513
513
|
var b = (a ? l : s).options.group.name;
|
|
514
514
|
return r === !0 || typeof r == "string" && r === b || r.join && r.indexOf(b) > -1;
|
|
515
515
|
};
|
|
@@ -597,7 +597,7 @@ function p(n, e) {
|
|
|
597
597
|
At(e);
|
|
598
598
|
for (var i in this)
|
|
599
599
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
600
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
600
|
+
this.nativeDraggable = e.forceFallback ? !1 : dn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? v(n, "pointerdown", this._onTapStart) : (v(n, "mousedown", this._onTapStart), v(n, "touchstart", this._onTapStart)), this.nativeDraggable && (v(n, "dragover", this), v(n, "dragenter", this)), He.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), U(this, ln());
|
|
601
601
|
}
|
|
602
602
|
p.prototype = /** @lends Sortable.prototype */
|
|
603
603
|
{
|
|
@@ -610,10 +610,10 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
610
610
|
},
|
|
611
611
|
_onTapStart: function(e) {
|
|
612
612
|
if (e.cancelable) {
|
|
613
|
-
var o = this, t = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s,
|
|
613
|
+
var o = this, t = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, c = i.filter;
|
|
614
614
|
if (_n(t), !f && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && we && s && s.tagName.toUpperCase() === "SELECT") && (s = W(s, i.draggable, t, !1), !(s && s.animated) && Fe !== s)) {
|
|
615
|
-
if (fe =
|
|
616
|
-
if (
|
|
615
|
+
if (fe = X(s), _e = X(s, i.draggable), typeof c == "function") {
|
|
616
|
+
if (c.call(this, e, s, this)) {
|
|
617
617
|
P({
|
|
618
618
|
sortable: o,
|
|
619
619
|
rootEl: u,
|
|
@@ -626,11 +626,11 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
626
626
|
}), r && e.preventDefault();
|
|
627
627
|
return;
|
|
628
628
|
}
|
|
629
|
-
} else if (
|
|
630
|
-
if (
|
|
629
|
+
} else if (c && (c = c.split(",").some(function(d) {
|
|
630
|
+
if (d = W(u, d.trim(), t, !1), d)
|
|
631
631
|
return P({
|
|
632
632
|
sortable: o,
|
|
633
|
-
rootEl:
|
|
633
|
+
rootEl: d,
|
|
634
634
|
name: "filter",
|
|
635
635
|
targetEl: s,
|
|
636
636
|
fromEl: t,
|
|
@@ -638,7 +638,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
638
638
|
}), x("filter", o, {
|
|
639
639
|
evt: e
|
|
640
640
|
}), !0;
|
|
641
|
-
}),
|
|
641
|
+
}), c)) {
|
|
642
642
|
r && e.preventDefault();
|
|
643
643
|
return;
|
|
644
644
|
}
|
|
@@ -661,14 +661,14 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
661
661
|
i._onDrop();
|
|
662
662
|
return;
|
|
663
663
|
}
|
|
664
|
-
i._disableDelayedDragEvents(), !
|
|
664
|
+
i._disableDelayedDragEvents(), !ct && i.nativeDraggable && (f.draggable = !0), i._triggerDragStart(e, o), P({
|
|
665
665
|
sortable: i,
|
|
666
666
|
name: "choose",
|
|
667
667
|
originalEvent: e
|
|
668
668
|
}), R(f, a.chosenClass, !0);
|
|
669
|
-
}, a.ignore.split(",").forEach(function(
|
|
670
|
-
Dt(f,
|
|
671
|
-
}), v(l, "dragover", re), v(l, "mousemove", re), v(l, "touchmove", re), a.supportPointer ? (v(l, "pointerup", i._onDrop), !this.nativeDraggable && v(l, "pointercancel", i._onDrop)) : (v(l, "mouseup", i._onDrop), v(l, "touchend", i._onDrop), v(l, "touchcancel", i._onDrop)),
|
|
669
|
+
}, a.ignore.split(",").forEach(function(c) {
|
|
670
|
+
Dt(f, c.trim(), qe);
|
|
671
|
+
}), v(l, "dragover", re), v(l, "mousemove", re), v(l, "touchmove", re), a.supportPointer ? (v(l, "pointerup", i._onDrop), !this.nativeDraggable && v(l, "pointercancel", i._onDrop)) : (v(l, "mouseup", i._onDrop), v(l, "touchend", i._onDrop), v(l, "touchcancel", i._onDrop)), ct && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), x("delayStart", this, {
|
|
672
672
|
evt: e
|
|
673
673
|
}), a.delay && (!a.delayOnTouchOnly || o) && (!this.nativeDraggable || !(Ce || q))) {
|
|
674
674
|
if (p.eventCanceled) {
|
|
@@ -738,23 +738,23 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
738
738
|
},
|
|
739
739
|
_onTouchMove: function(e) {
|
|
740
740
|
if (ie) {
|
|
741
|
-
var o = this.options, t = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, a = g &&
|
|
741
|
+
var o = this.options, t = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, a = g && ce(g, !0), l = g && a && a.a, s = g && a && a.d, u = xe && I && pt(I), c = (r.clientX - ie.clientX + i.x) / (l || 1) + (u ? u[0] - Ue[0] : 0) / (l || 1), d = (r.clientY - ie.clientY + i.y) / (s || 1) + (u ? u[1] - Ue[1] : 0) / (s || 1);
|
|
742
742
|
if (!p.active && !ue) {
|
|
743
743
|
if (t && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < t)
|
|
744
744
|
return;
|
|
745
745
|
this._onDragStart(e, !0);
|
|
746
746
|
}
|
|
747
747
|
if (g) {
|
|
748
|
-
a ? (a.e +=
|
|
748
|
+
a ? (a.e += c - ($e || 0), a.f += d - (Ve || 0)) : a = {
|
|
749
749
|
a: 1,
|
|
750
750
|
b: 0,
|
|
751
751
|
c: 0,
|
|
752
752
|
d: 1,
|
|
753
|
-
e:
|
|
754
|
-
f:
|
|
753
|
+
e: c,
|
|
754
|
+
f: d
|
|
755
755
|
};
|
|
756
756
|
var b = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
757
|
-
h(g, "webkitTransform", b), h(g, "mozTransform", b), h(g, "msTransform", b), h(g, "transform", b), $e =
|
|
757
|
+
h(g, "webkitTransform", b), h(g, "mozTransform", b), h(g, "msTransform", b), h(g, "transform", b), $e = c, Ve = d, H = r;
|
|
758
758
|
}
|
|
759
759
|
e.cancelable && e.preventDefault();
|
|
760
760
|
}
|
|
@@ -787,17 +787,17 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
787
787
|
},
|
|
788
788
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
789
789
|
_onDragOver: function(e) {
|
|
790
|
-
var o = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u = p.active,
|
|
790
|
+
var o = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u = p.active, c = Ae === s, d = l.sort, b = O || u, w, y = this, E = !1;
|
|
791
791
|
if (Je) return;
|
|
792
|
-
function
|
|
792
|
+
function Y(ve, Mt) {
|
|
793
793
|
x(ve, y, z({
|
|
794
794
|
evt: e,
|
|
795
|
-
isOwner:
|
|
795
|
+
isOwner: c,
|
|
796
796
|
axis: w ? "vertical" : "horizontal",
|
|
797
797
|
revert: a,
|
|
798
798
|
dragRect: i,
|
|
799
799
|
targetRect: r,
|
|
800
|
-
canSort:
|
|
800
|
+
canSort: d,
|
|
801
801
|
fromSortable: b,
|
|
802
802
|
target: t,
|
|
803
803
|
completed: A,
|
|
@@ -808,17 +808,17 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
808
808
|
}, Mt));
|
|
809
809
|
}
|
|
810
810
|
function j() {
|
|
811
|
-
|
|
811
|
+
Y("dragOverAnimationCapture"), y.captureAnimationState(), y !== b && b.captureAnimationState();
|
|
812
812
|
}
|
|
813
813
|
function A(ve) {
|
|
814
|
-
return
|
|
814
|
+
return Y("dragOverCompleted", {
|
|
815
815
|
insertion: ve
|
|
816
|
-
}), ve && (
|
|
817
|
-
|
|
816
|
+
}), ve && (c ? u._hideClone() : u._showClone(y), y !== b && (R(f, O ? O.options.ghostClass : u.options.ghostClass, !1), R(f, l.ghostClass, !0)), O !== y && y !== p.active ? O = y : y === p.active && O && (O = null), b === y && (y._ignoreWhileAnimating = t), y.animateAll(function() {
|
|
817
|
+
Y("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
|
|
818
818
|
}), y !== b && (b.animateAll(), b._ignoreWhileAnimating = null)), (t === f && !f.animated || t === o && !t.animated) && (se = null), !l.dragoverBubble && !e.rootEl && t !== document && (f.parentNode[N]._isOutsideThisEl(e.target), !ve && re(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), E = !0;
|
|
819
819
|
}
|
|
820
820
|
function B() {
|
|
821
|
-
k =
|
|
821
|
+
k = X(f), Z = X(f, l.draggable), P({
|
|
822
822
|
sortable: y,
|
|
823
823
|
name: "change",
|
|
824
824
|
toEl: o,
|
|
@@ -827,13 +827,13 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
827
827
|
originalEvent: e
|
|
828
828
|
});
|
|
829
829
|
}
|
|
830
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = W(t, l.draggable, o, !0),
|
|
830
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = W(t, l.draggable, o, !0), Y("dragOver"), p.eventCanceled) return E;
|
|
831
831
|
if (f.contains(e.target) || t.animated && t.animatingX && t.animatingY || y._ignoreWhileAnimating === t)
|
|
832
832
|
return A(!1);
|
|
833
|
-
if (Be = !1, u && !l.disabled && (
|
|
834
|
-
if (w = this._getDirection(e, t) === "vertical", i = C(f),
|
|
833
|
+
if (Be = !1, u && !l.disabled && (c ? d || (a = S !== D) : O === this || (this.lastPutMode = Ae.checkPull(this, u, f, e)) && s.checkPut(this, u, f, e))) {
|
|
834
|
+
if (w = this._getDirection(e, t) === "vertical", i = C(f), Y("dragOverValid"), p.eventCanceled) return E;
|
|
835
835
|
if (a)
|
|
836
|
-
return S = D, j(), this._hideClone(),
|
|
836
|
+
return S = D, j(), this._hideClone(), Y("revert"), p.eventCanceled || (ae ? D.insertBefore(f, ae) : D.appendChild(f)), A(!0);
|
|
837
837
|
var M = it(o, l.draggable);
|
|
838
838
|
if (!M || yn(e, w, this) && !M.animated) {
|
|
839
839
|
if (M === f)
|
|
@@ -841,7 +841,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
841
841
|
if (M && o === e.target && (t = M), t && (r = C(t)), Ne(D, o, f, i, t, r, e, !!t) !== !1)
|
|
842
842
|
return j(), M && M.nextSibling ? o.insertBefore(f, M.nextSibling) : o.appendChild(f), S = o, B(), A(!0);
|
|
843
843
|
} else if (M && bn(e, w, this)) {
|
|
844
|
-
var te =
|
|
844
|
+
var te = de(o, 0, l, !0);
|
|
845
845
|
if (te === f)
|
|
846
846
|
return A(!1);
|
|
847
847
|
if (t = te, r = C(t), Ne(D, o, f, i, t, r, e, !1) !== !1)
|
|
@@ -852,7 +852,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
852
852
|
se !== t && (ne = r[pe], Te = !1, Pe = !F && l.invertSwap || he), G = En(e, t, r, w, F ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Pe, se === t);
|
|
853
853
|
var $;
|
|
854
854
|
if (G !== 0) {
|
|
855
|
-
var oe =
|
|
855
|
+
var oe = X(f);
|
|
856
856
|
do
|
|
857
857
|
oe -= G, $ = S.children[oe];
|
|
858
858
|
while ($ && (h($, "display") === "none" || $ === g));
|
|
@@ -881,9 +881,9 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
881
881
|
},
|
|
882
882
|
_onDrop: function(e) {
|
|
883
883
|
var o = this.el, t = this.options;
|
|
884
|
-
if (k =
|
|
884
|
+
if (k = X(f), Z = X(f, t.draggable), x("drop", this, {
|
|
885
885
|
evt: e
|
|
886
|
-
}), S = f && f.parentNode, k =
|
|
886
|
+
}), S = f && f.parentNode, k = X(f), Z = X(f, t.draggable), p.eventCanceled) {
|
|
887
887
|
this._nulling();
|
|
888
888
|
return;
|
|
889
889
|
}
|
|
@@ -1035,11 +1035,11 @@ function mn(n) {
|
|
|
1035
1035
|
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
1036
1036
|
}
|
|
1037
1037
|
function Ne(n, e, o, t, i, r, a, l) {
|
|
1038
|
-
var s, u = n[N],
|
|
1038
|
+
var s, u = n[N], c = u.options.onMove, d;
|
|
1039
1039
|
return window.CustomEvent && !q && !Ce ? s = new CustomEvent("move", {
|
|
1040
1040
|
bubbles: !0,
|
|
1041
1041
|
cancelable: !0
|
|
1042
|
-
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = n, s.dragged = o, s.draggedRect = t, s.related = i || e, s.relatedRect = r || C(e), s.willInsertAfter = l, s.originalEvent = a, n.dispatchEvent(s),
|
|
1042
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = n, s.dragged = o, s.draggedRect = t, s.related = i || e, s.relatedRect = r || C(e), s.willInsertAfter = l, s.originalEvent = a, n.dispatchEvent(s), c && (d = c.call(u, s, a)), d;
|
|
1043
1043
|
}
|
|
1044
1044
|
function qe(n) {
|
|
1045
1045
|
n.draggable = !1;
|
|
@@ -1048,7 +1048,7 @@ function vn() {
|
|
|
1048
1048
|
Je = !1;
|
|
1049
1049
|
}
|
|
1050
1050
|
function bn(n, e, o) {
|
|
1051
|
-
var t = C(
|
|
1051
|
+
var t = C(de(o.el, 0, o.options, !0)), i = Ct(o.el, o.options, g), r = 10;
|
|
1052
1052
|
return e ? n.clientX < i.left - r || n.clientY < t.top && n.clientX < t.right : n.clientY < i.top - r || n.clientY < t.bottom && n.clientX < t.left;
|
|
1053
1053
|
}
|
|
1054
1054
|
function yn(n, e, o) {
|
|
@@ -1056,20 +1056,20 @@ function yn(n, e, o) {
|
|
|
1056
1056
|
return e ? n.clientX > i.right + r || n.clientY > t.bottom && n.clientX > t.left : n.clientY > i.bottom + r || n.clientX > t.right && n.clientY > t.top;
|
|
1057
1057
|
}
|
|
1058
1058
|
function En(n, e, o, t, i, r, a, l) {
|
|
1059
|
-
var s = t ? n.clientY : n.clientX, u = t ? o.height : o.width,
|
|
1059
|
+
var s = t ? n.clientY : n.clientX, u = t ? o.height : o.width, c = t ? o.top : o.left, d = t ? o.bottom : o.right, b = !1;
|
|
1060
1060
|
if (!a) {
|
|
1061
1061
|
if (l && Re < u * i) {
|
|
1062
|
-
if (!Te && (Se === 1 ? s >
|
|
1062
|
+
if (!Te && (Se === 1 ? s > c + u * r / 2 : s < d - u * r / 2) && (Te = !0), Te)
|
|
1063
1063
|
b = !0;
|
|
1064
|
-
else if (Se === 1 ? s <
|
|
1064
|
+
else if (Se === 1 ? s < c + Re : s > d - Re)
|
|
1065
1065
|
return -Se;
|
|
1066
|
-
} else if (s >
|
|
1066
|
+
} else if (s > c + u * (1 - i) / 2 && s < d - u * (1 - i) / 2)
|
|
1067
1067
|
return wn(e);
|
|
1068
1068
|
}
|
|
1069
|
-
return b = b || a, b && (s <
|
|
1069
|
+
return b = b || a, b && (s < c + u * r / 2 || s > d - u * r / 2) ? s > c + u / 2 ? 1 : -1 : 0;
|
|
1070
1070
|
}
|
|
1071
1071
|
function wn(n) {
|
|
1072
|
-
return
|
|
1072
|
+
return X(f) < X(n) ? 1 : -1;
|
|
1073
1073
|
}
|
|
1074
1074
|
function Dn(n) {
|
|
1075
1075
|
for (var e = n.tagName + n.className + n.src + n.href + n.textContent, o = e.length, t = 0; o--; )
|
|
@@ -1105,11 +1105,11 @@ p.utils = {
|
|
|
1105
1105
|
closest: W,
|
|
1106
1106
|
toggleClass: R,
|
|
1107
1107
|
clone: Tt,
|
|
1108
|
-
index:
|
|
1108
|
+
index: X,
|
|
1109
1109
|
nextTick: ke,
|
|
1110
1110
|
cancelNextTick: et,
|
|
1111
1111
|
detectDirection: It,
|
|
1112
|
-
getChild:
|
|
1112
|
+
getChild: de,
|
|
1113
1113
|
expando: N
|
|
1114
1114
|
};
|
|
1115
1115
|
p.get = function(n) {
|
|
@@ -1151,7 +1151,7 @@ function Sn() {
|
|
|
1151
1151
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1152
1152
|
},
|
|
1153
1153
|
drop: function() {
|
|
1154
|
-
this.sortable.nativeDraggable ? m(document, "dragover", this._handleAutoScroll) : (m(document, "pointermove", this._handleFallbackAutoScroll), m(document, "touchmove", this._handleFallbackAutoScroll), m(document, "mousemove", this._handleFallbackAutoScroll)), bt(),
|
|
1154
|
+
this.sortable.nativeDraggable ? m(document, "dragover", this._handleAutoScroll) : (m(document, "pointermove", this._handleFallbackAutoScroll), m(document, "touchmove", this._handleFallbackAutoScroll), m(document, "mousemove", this._handleFallbackAutoScroll)), bt(), Xe(), an();
|
|
1155
1155
|
},
|
|
1156
1156
|
nulling: function() {
|
|
1157
1157
|
Ge = tt = ye = nt = Ee = Ke = Qe = null, T.length = 0;
|
|
@@ -1166,11 +1166,11 @@ function Sn() {
|
|
|
1166
1166
|
var s = ee(l, !0);
|
|
1167
1167
|
nt && (!Ee || r !== Ke || a !== Qe) && (Ee && bt(), Ee = setInterval(function() {
|
|
1168
1168
|
var u = ee(document.elementFromPoint(r, a), !0);
|
|
1169
|
-
u !== s && (s = u,
|
|
1169
|
+
u !== s && (s = u, Xe()), Ze(o, i.options, u, t);
|
|
1170
1170
|
}, 10), Ke = r, Qe = a);
|
|
1171
1171
|
} else {
|
|
1172
1172
|
if (!this.options.bubbleScroll || ee(l, !0) === L()) {
|
|
1173
|
-
|
|
1173
|
+
Xe();
|
|
1174
1174
|
return;
|
|
1175
1175
|
}
|
|
1176
1176
|
Ze(o, this.options, ee(l, !1), !1);
|
|
@@ -1181,7 +1181,7 @@ function Sn() {
|
|
|
1181
1181
|
initializeByDefault: !0
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function Xe() {
|
|
1185
1185
|
T.forEach(function(n) {
|
|
1186
1186
|
clearInterval(n.pid);
|
|
1187
1187
|
}), T = [];
|
|
@@ -1191,23 +1191,23 @@ function bt() {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
var Ze = _t(function(n, e, o, t) {
|
|
1193
1193
|
if (e.scroll) {
|
|
1194
|
-
var i = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = L(), u = !1,
|
|
1195
|
-
tt !== o && (tt = o,
|
|
1196
|
-
var
|
|
1194
|
+
var i = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = L(), u = !1, c;
|
|
1195
|
+
tt !== o && (tt = o, Xe(), ye = e.scroll, c = e.scrollFn, ye === !0 && (ye = ee(o, !0)));
|
|
1196
|
+
var d = 0, b = ye;
|
|
1197
1197
|
do {
|
|
1198
|
-
var w = b, y = C(w), E = y.top,
|
|
1198
|
+
var w = b, y = C(w), E = y.top, Y = y.bottom, j = y.left, A = y.right, B = y.width, M = y.height, te = void 0, G = void 0, ne = w.scrollWidth, he = w.scrollHeight, F = h(w), pe = w.scrollLeft, K = w.scrollTop;
|
|
1199
1199
|
w === s ? (te = B < ne && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), G = M < he && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (te = B < ne && (F.overflowX === "auto" || F.overflowX === "scroll"), G = M < he && (F.overflowY === "auto" || F.overflowY === "scroll"));
|
|
1200
|
-
var ge = te && (Math.abs(A - i) <= a && pe + B < ne) - (Math.abs(j - i) <= a && !!pe), $ = G && (Math.abs(
|
|
1201
|
-
if (!T[
|
|
1202
|
-
for (var oe = 0; oe <=
|
|
1200
|
+
var ge = te && (Math.abs(A - i) <= a && pe + B < ne) - (Math.abs(j - i) <= a && !!pe), $ = G && (Math.abs(Y - r) <= a && K + M < he) - (Math.abs(E - r) <= a && !!K);
|
|
1201
|
+
if (!T[d])
|
|
1202
|
+
for (var oe = 0; oe <= d; oe++)
|
|
1203
1203
|
T[oe] || (T[oe] = {});
|
|
1204
|
-
(T[
|
|
1204
|
+
(T[d].vx != ge || T[d].vy != $ || T[d].el !== w) && (T[d].el = w, T[d].vx = ge, T[d].vy = $, clearInterval(T[d].pid), (ge != 0 || $ != 0) && (u = !0, T[d].pid = setInterval((function() {
|
|
1205
1205
|
t && this.layer === 0 && p.active._onTouchMove(Ge);
|
|
1206
1206
|
var me = T[this.layer].vy ? T[this.layer].vy * l : 0, Q = T[this.layer].vx ? T[this.layer].vx * l : 0;
|
|
1207
|
-
typeof
|
|
1207
|
+
typeof c == "function" && c.call(p.dragged.parentNode[N], Q, me, n, Ge, T[this.layer].el) !== "continue" || St(T[this.layer].el, Q, me);
|
|
1208
1208
|
}).bind({
|
|
1209
|
-
layer:
|
|
1210
|
-
}), 24))),
|
|
1209
|
+
layer: d
|
|
1210
|
+
}), 24))), d++;
|
|
1211
1211
|
} while (e.bubbleScroll && b !== s && (b = ee(b, !1)));
|
|
1212
1212
|
nt = u;
|
|
1213
1213
|
}
|
|
@@ -1216,8 +1216,8 @@ var Ze = _t(function(n, e, o, t) {
|
|
|
1216
1216
|
if (o) {
|
|
1217
1217
|
var u = t || r;
|
|
1218
1218
|
l();
|
|
1219
|
-
var
|
|
1220
|
-
s(), u && !u.el.contains(
|
|
1219
|
+
var c = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, d = document.elementFromPoint(c.clientX, c.clientY);
|
|
1220
|
+
s(), u && !u.el.contains(d) && (a("spill"), this.onSpill({
|
|
1221
1221
|
dragEl: i,
|
|
1222
1222
|
putSortable: t
|
|
1223
1223
|
}));
|
|
@@ -1234,7 +1234,7 @@ rt.prototype = {
|
|
|
1234
1234
|
onSpill: function(e) {
|
|
1235
1235
|
var o = e.dragEl, t = e.putSortable;
|
|
1236
1236
|
this.sortable.captureAnimationState(), t && t.captureAnimationState();
|
|
1237
|
-
var i =
|
|
1237
|
+
var i = de(this.sortable.el, this.startIndex, this.options);
|
|
1238
1238
|
i ? this.sortable.el.insertBefore(o, i) : this.sortable.el.appendChild(o), this.sortable.animateAll(), t && t.animateAll();
|
|
1239
1239
|
},
|
|
1240
1240
|
drop: Nt
|
|
@@ -1258,22 +1258,22 @@ p.mount(new Sn());
|
|
|
1258
1258
|
p.mount(at, rt);
|
|
1259
1259
|
function Tn(n, e, o = {}) {
|
|
1260
1260
|
let t;
|
|
1261
|
-
const { document: i =
|
|
1262
|
-
onUpdate: (
|
|
1263
|
-
In(e,
|
|
1261
|
+
const { document: i = Rt, ...r } = o, a = {
|
|
1262
|
+
onUpdate: (c) => {
|
|
1263
|
+
In(e, c.oldIndex, c.newIndex, c);
|
|
1264
1264
|
}
|
|
1265
1265
|
}, l = () => {
|
|
1266
|
-
const
|
|
1267
|
-
!
|
|
1266
|
+
const c = typeof n == "string" ? i == null ? void 0 : i.querySelector(n) : Yt(n);
|
|
1267
|
+
!c || t !== void 0 || (t = new p(c, { ...a, ...r }));
|
|
1268
1268
|
}, s = () => {
|
|
1269
1269
|
t == null || t.destroy(), t = void 0;
|
|
1270
|
-
}, u = (
|
|
1271
|
-
if (
|
|
1272
|
-
t == null || t.option(
|
|
1270
|
+
}, u = (c, d) => {
|
|
1271
|
+
if (d !== void 0)
|
|
1272
|
+
t == null || t.option(c, d);
|
|
1273
1273
|
else
|
|
1274
|
-
return t == null ? void 0 : t.option(
|
|
1274
|
+
return t == null ? void 0 : t.option(c);
|
|
1275
1275
|
};
|
|
1276
|
-
return
|
|
1276
|
+
return kt(l), Xt(s), {
|
|
1277
1277
|
stop: s,
|
|
1278
1278
|
start: l,
|
|
1279
1279
|
option: u
|
|
@@ -1288,10 +1288,10 @@ function On(n) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
function In(n, e, o, t = null) {
|
|
1290
1290
|
t != null && (On(t.item), Cn(t.from, t.item, e));
|
|
1291
|
-
const i =
|
|
1291
|
+
const i = Bt(n), r = i ? [...st(n)] : st(n);
|
|
1292
1292
|
if (o >= 0 && o < r.length) {
|
|
1293
1293
|
const a = r.splice(e, 1)[0];
|
|
1294
|
-
|
|
1294
|
+
Ht(() => {
|
|
1295
1295
|
r.splice(o, 0, a), i && (n.value = r);
|
|
1296
1296
|
});
|
|
1297
1297
|
}
|
|
@@ -1326,14 +1326,14 @@ const Nn = /* @__PURE__ */ Wt({
|
|
|
1326
1326
|
}
|
|
1327
1327
|
},
|
|
1328
1328
|
...n.options
|
|
1329
|
-
}), (r, a) => (ut(), zt(
|
|
1329
|
+
}), (r, a) => (ut(), zt(Zt(r.tag), {
|
|
1330
1330
|
ref_key: "container",
|
|
1331
1331
|
ref: i,
|
|
1332
|
-
class:
|
|
1332
|
+
class: Qt(r.$props.class),
|
|
1333
1333
|
style: Kt(r.$props.style)
|
|
1334
1334
|
}, {
|
|
1335
1335
|
default: jt(() => [
|
|
1336
|
-
(ut(!0), $t(
|
|
1336
|
+
(ut(!0), $t(Vt, null, Ut(t.value, (l, s) => qt(r.$slots, "item", {
|
|
1337
1337
|
key: l[r.itemKey] || s,
|
|
1338
1338
|
item: l,
|
|
1339
1339
|
index: s
|