@cling-se/widget 0.19.6 → 0.19.8
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 +15 -1
- package/dist/{AddClientCallout-DtVRTCr_.js → AddClientCallout-sPxYX5tQ.js} +18 -18
- package/dist/{AnswerModal-ClyWtHBj.js → AnswerModal-o8OHHulg.js} +80 -80
- package/dist/{AttachmentItem-COoLlAum.js → AttachmentItem-CzzOlHB-.js} +16 -16
- package/dist/{BaseUpload-DlaYaxxr.js → BaseUpload-oZQfFwOj.js} +256 -256
- package/dist/{BlockMedia-IMu4YO3J.js → BlockMedia-BGPxfM2X.js} +16 -16
- package/dist/{CCallout-C32zwICP.js → CCallout-CrbMGTIj.js} +15 -15
- package/dist/{CCurrencyDropdown-D4ZxTioo.js → CCurrencyDropdown-BnNDP51j.js} +13 -13
- package/dist/{CDropdownItem-BuQONogL.js → CDropdownItem-E-kRDIiy.js} +6 -6
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-KdkAe_wn.js → CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js} +25 -25
- package/dist/{CPhoneFormat-C2K78cmZ.js → CPhoneFormat-CIQAVdsB.js} +1 -1
- package/dist/{CPhoneInput-DolVFzrL.js → CPhoneInput-9AwTJm-0.js} +21 -21
- package/dist/{CPriceInput-SbRlrDnD.js → CPriceInput-agFahtr1.js} +11 -11
- package/dist/CSelect-BpautzPq.js +129 -0
- package/dist/CSkeleton-GIqd-JU4.js +47 -0
- package/dist/{ClientAutocomplete-vgxEGqNU.js → ClientAutocomplete-DOHX9Igy.js} +26 -26
- package/dist/{ClientModal-B8ip7v99.js → ClientModal-DAXKN_b3.js} +35 -35
- package/dist/{ColorPicker-BrfM9S1s.js → ColorPicker-B9F8znY_.js} +82 -82
- package/dist/{CompanyModal-DJZezqM5.js → CompanyModal-BvIMVys6.js} +27 -27
- package/dist/{ContentWrapper-zJ4MCnSC.js → ContentWrapper-DB22RaUr.js} +24 -24
- package/dist/{CoverBlockSettings-Cz0NUYXX.js → CoverBlockSettings--l4fH9mr.js} +32 -32
- package/dist/{DocAnswer-EWarWnbt.js → DocAnswer-Bq-4uVbe.js} +4 -4
- package/dist/{DocDetails-CGHN3tbO.js → DocDetails-yxmchgO5.js} +59 -59
- package/dist/{DocForm-BLTap-Bb.js → DocForm-CzrR8o22.js} +1208 -1180
- package/dist/{DocFormSend-_jCPFI9r.js → DocFormSend-Bjc1QDcK.js} +11 -11
- package/dist/{DocLinks-D9Ok4HvN.js → DocLinks-BXbC-6v3.js} +6 -6
- package/dist/{DocModalBase-fQz5UuCF.js → DocModalBase-axX_Rlp3.js} +1 -1
- package/dist/{DocPrint-Cua_U7zt.js → DocPrint-D0IdWsUM.js} +19 -19
- package/dist/{DocReceipt-Cg2hiSby.js → DocReceipt-4e-RmgeQ.js} +19 -19
- package/dist/{DocSendReminder-Dh7G9kbZ.js → DocSendReminder-L35eZxgk.js} +12 -12
- package/dist/{DocTextEditor-Ds4Cbg-2.js → DocTextEditor-KrfylSV6.js} +4493 -4435
- package/dist/{DocTimeline-DpWUMwJE.js → DocTimeline-Be5CvtcQ.js} +18 -18
- package/dist/{DocumentClient-DUqHQVSe.js → DocumentClient-Bc4kf2q9.js} +10 -10
- package/dist/DocumentLayout-Oe-ZsHML.js +595 -0
- package/dist/{DocumentLogotype-BiekV9-j.js → DocumentLogotype-BFo5UEWS.js} +20 -20
- package/dist/{DocumentVoided-D_YMyeV8.js → DocumentVoided-DlQtlO7G.js} +7 -7
- package/dist/{EmbedInput-Crx-LEGc.js → EmbedInput-B29usQZZ.js} +10 -10
- package/dist/{EmbedSettings-xIGtEN7L.js → EmbedSettings-D-9rcSn0.js} +16 -16
- package/dist/{ErrorCallout-D_fUVD4I.js → ErrorCallout--EnH1Ezu.js} +9 -9
- package/dist/{FilePreviewModal-av2lE91B.js → FilePreviewModal-H5Ilg9xN.js} +9 -9
- package/dist/{Flag-CI52SH_9.js → Flag-DgZVh3Lf.js} +4 -4
- package/dist/{HeaderSettings-Ip634NWe.js → HeaderSettings-HuM_JwJw.js} +27 -27
- package/dist/{ImageSelectModal-DNtR86H7.js → ImageSelectModal-CJ-DstAf.js} +14 -14
- package/dist/{ImageUploadWrapper-Co43CWCP.js → ImageUploadWrapper-TYs37LIQ.js} +76 -76
- package/dist/{Index-C6KPbnAq.js → Index-6N_iRlrQ.js} +10 -10
- package/dist/{Index-bvCcp9l6.js → Index-B-PDcQKh.js} +34 -34
- package/dist/{Index-CTQyX_63.js → Index-B942Auag.js} +2 -2
- package/dist/{Index-4ZURK6a8.js → Index-BLdFyt-s.js} +12 -12
- package/dist/{Index-CZqJYh7u.js → Index-BMpHXgR4.js} +16 -16
- package/dist/{Index-DGwF2cvQ.js → Index-BZ6ZDf9T.js} +11 -11
- package/dist/{Index-Ci_PUYqE.js → Index-BdnFLjgV.js} +11 -11
- package/dist/{Index-BdW5_mV-.js → Index-BeOtRIzZ.js} +21 -21
- package/dist/Index-BsRxY7vc.js +21 -0
- package/dist/{Index-xVX7aGXv.js → Index-CAMAtPVL.js} +6 -6
- package/dist/{Index-uDG1i8F-.js → Index-CC4E2CmH.js} +11 -11
- package/dist/{Index-CJi8Remu.js → Index-CGus-YwW.js} +26 -26
- package/dist/{Index-C-Suk6Qs.js → Index-CLgN5Jzf.js} +3 -3
- package/dist/{Index-C92jPUcy.js → Index-CTlB43yV.js} +7 -7
- package/dist/{Index-CmLvcWe3.js → Index-CY2sRfaY.js} +194 -218
- package/dist/{Index-PzcQhAgF.js → Index-CnrSvy6E.js} +2 -2
- package/dist/{Index-Bgm5PHos.js → Index-CrdSdXWN.js} +18 -18
- package/dist/{Index-Bj81gIof.js → Index-CtJfMiZW.js} +2 -2
- package/dist/Index-D4HNTocO.js +4 -0
- package/dist/{Index-chiZsMLh.js → Index-D5_GLLQH.js} +507 -512
- package/dist/{Index-DOiPKAhk.js → Index-D9sceHk5.js} +17 -17
- package/dist/{Index-CV5RbQn5.js → Index-DJ11Zra_.js} +42 -42
- package/dist/{Index-DQbbxV0m.js → Index-DMIjuWSa.js} +9 -9
- package/dist/{Index-BMwBpYpa.js → Index-DTm59e-A.js} +11 -11
- package/dist/{Index-CxAd29-m.js → Index-DXT_IMjq.js} +8 -8
- package/dist/{Index-BF1bZUso.js → Index-DYUvtCff.js} +8 -8
- package/dist/{Index-DKuTOk0t.js → Index-DYW8T0Hl.js} +18 -18
- package/dist/{Index-DWIpdRX-.js → Index-Dg4dwlh_.js} +59 -58
- package/dist/{Index-DOCeODtL.js → Index-N88Abomf.js} +11 -11
- package/dist/{Index-BY2kaUsM.js → Index-W-Q19E3a.js} +7 -7
- package/dist/{Index-DwIfORsz.js → Index-edWEg_rF.js} +29 -29
- package/dist/{Index-DlGSVN83.js → Index-nRqNPZ3B.js} +18 -18
- package/dist/{Index-CeJRMtmh.js → Index-nTp9wEni.js} +7 -7
- package/dist/{Index-D_X2OZA3.js → Index-yJRtT77X.js} +2 -2
- package/dist/{Index.vue_vue_type_script_lang-WK-YdZ30.js → Index.vue_vue_type_script_lang-PJPQMT2c.js} +2 -2
- package/dist/{InputToggleRow-CWvEi0HF.js → InputToggleRow-DCr_DEm4.js} +9 -9
- package/dist/{ManualPopover-BSX3bOr0.js → ManualPopover-CpVsmQvn.js} +4 -4
- package/dist/{MediaWrapper-D8BXMoDz.js → MediaWrapper-Cj3LBhdR.js} +4 -4
- package/dist/{NotBindingText-V-8_5Pln.js → NotBindingText-1J0p_k4u.js} +5 -5
- package/dist/{PackageGroup-BN5njJA7.js → PackageGroup-CqrWEfCT.js} +17 -17
- package/dist/{PdfTerms-DarzYw1g.js → PdfTerms-DmrPDtae.js} +6 -6
- package/dist/{PdfViewer-DYN758PA.js → PdfViewer-C2EEwUBa.js} +37 -37
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-B3g18l5G.js → PlainHtml.vue_vue_type_script_setup_true_lang-B6pRo08V.js} +2 -2
- package/dist/{PriceHeader-B7QoQ2ZO.js → PriceHeader-BaREzUxI.js} +32 -32
- package/dist/{SearchApi-rcvoh3Av.js → SearchApi-Bf4jeQVr.js} +6 -6
- package/dist/{SendForm-DHRq76pb.js → SendForm-D5qpHxNU.js} +713 -711
- package/dist/{Setup-BWMY9S__.js → Setup-Bw8ViFxw.js} +4 -4
- package/dist/{SmartList-BpNfmUMA.js → SmartList-CzylvV8N.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-B_f6Nh_O.js → Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js} +92 -92
- package/dist/{TermsSettings-BTv1dj63.js → TermsSettings-EoJvsPqK.js} +20 -20
- package/dist/{ThemeColorRow-r1ECSrBU.js → ThemeColorRow-D3blQMiD.js} +12 -12
- package/dist/{ToggleBinding-BBF1duBh.js → ToggleBinding-BteBsRYr.js} +7 -7
- package/dist/{UploadModal-B_l6gvuJ.js → UploadModal-Cr5sF3M-.js} +19 -19
- package/dist/{VideoPlayerInput-8e9ooR1p.js → VideoPlayerInput-BBycKv9w.js} +5 -5
- package/dist/{VideoPlayerSettings-CFOPAFlE.js → VideoPlayerSettings-BXXpTWBf.js} +12 -12
- package/dist/{VideoSelectModal-QWkNrFQC.js → VideoSelectModal-B2VPO6q4.js} +15 -15
- package/dist/{focusDrawerMixin-hy76kTBG.js → focusDrawerMixin-CCAEZjWO.js} +1 -1
- package/dist/{formDrawerState-s4ySD850.js → formDrawerState-CJyP4ce1.js} +1 -1
- package/dist/{helpers-BHIbXt8q.js → helpers-Cf9s0P7o.js} +3 -3
- package/dist/{index-Dbe2ueXc.js → index-C3pnyYI4.js} +90 -90
- package/dist/{index-CGXCI2G7.js → index-CBn1mHmK.js} +36 -36
- package/dist/{index-BTw8ZC8k.js → index-DAJmNac8.js} +6 -6
- package/dist/{index-DpubWmXg.js → index-DYJN9yoF.js} +37 -37
- package/dist/{index-ByEyJueq.js → index-DuXECcGq.js} +31 -31
- package/dist/{index-Cwf2aXw3.js → index-XzoHqJIR.js} +9 -9
- package/dist/{index-DjHfCViH.js → index-_MfZEYgE.js} +28 -27
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +154 -159
- package/dist/{main-WDVYC60Z.js → main-BayUZ9OO.js} +14904 -14950
- package/dist/{mapFormMixin-B8xN9LiX.js → mapFormMixin-Bx5_nE7g.js} +36 -42
- package/dist/omit-BKJdPM2H.js +56 -0
- package/dist/{publicSenderState-CtB0-WJX.js → publicSenderState-CblTasKp.js} +3 -3
- package/dist/{splitpanes-CwgWVXfp.js → splitpanes-DFkgBT3z.js} +6 -6
- package/dist/{template-fVxhQbOu.js → template-CvGgzazD.js} +5 -5
- package/dist/{tippy.esm-Ikv5_i_g.js → tippy.esm-CYKcJaqz.js} +222 -224
- package/dist/{useTermsModal-DxXjznop.js → useTermsModal-DFmdeFRm.js} +5 -5
- package/dist/{utils-fXD4AHot.js → utils-DTwXcY8_.js} +1 -1
- package/dist/{validation-Bf4rZ8pa.js → validation-d_jonAPy.js} +4 -4
- package/dist/widget.css +1 -1
- package/package.json +2 -2
- package/dist/CSelect-BQsWYh8F.js +0 -98
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-aq47QhPF.js +0 -51
- package/dist/DocumentLayout-Bth5tpry.js +0 -1434
- package/dist/Index-CFSuI-QL.js +0 -21
- package/dist/Index-DHzaqQH0.js +0 -4
- package/dist/omit-BhJ-wiH8.js +0 -56
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as o,
|
|
1
|
+
import { _ as o, d as c, o as p, h as i, i as l } from "./main-BayUZ9OO.js";
|
|
2
2
|
const a = {
|
|
3
3
|
name: "Setup",
|
|
4
4
|
props: {
|
|
@@ -14,7 +14,7 @@ const a = {
|
|
|
14
14
|
},
|
|
15
15
|
computed: {
|
|
16
16
|
baseAppUrl() {
|
|
17
|
-
return
|
|
17
|
+
return l.baseUrl;
|
|
18
18
|
},
|
|
19
19
|
iframeUrl() {
|
|
20
20
|
return `${this.baseAppUrl}/partner/connect?partnerName=${this.partnerName}`;
|
|
@@ -29,12 +29,12 @@ const a = {
|
|
|
29
29
|
methods: {
|
|
30
30
|
onReceiveMessage({ data: e, origin: n, source: r }) {
|
|
31
31
|
var t;
|
|
32
|
-
n === this.baseAppUrl && ((e == null ? void 0 : e.type) === "channelPartnerConnect" && (r == null || r.postMessage({ type: "readyForPartnerConnect" }, n)), (e == null ? void 0 : e.type) === "partnerUserConnect" && (
|
|
32
|
+
n === this.baseAppUrl && ((e == null ? void 0 : e.type) === "channelPartnerConnect" && (r == null || r.postMessage({ type: "readyForPartnerConnect" }, n)), (e == null ? void 0 : e.type) === "partnerUserConnect" && (i.trigger("account:userConnect", e == null ? void 0 : e.value), (t = this.closeFunc) == null || t.call(this)));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}, f = ["src"];
|
|
36
36
|
function u(e, n, r, t, m, s) {
|
|
37
|
-
return
|
|
37
|
+
return p(), c("iframe", {
|
|
38
38
|
title: "Partner Connect",
|
|
39
39
|
src: s.iframeUrl,
|
|
40
40
|
frameborder: "0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aN as Rt, aO as kt, aP as Xt, aQ as Yt, E as Bt, aR 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, ao as Zt } from "./main-BayUZ9OO.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
|
};
|
|
@@ -114,14 +114,14 @@ function W(n, e, o, t) {
|
|
|
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)
|
|
@@ -220,7 +220,7 @@ 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
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
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 = X(s), _e = X(s, i.draggable), typeof
|
|
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
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,
|
|
@@ -813,7 +813,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
813
813
|
function A(ve) {
|
|
814
814
|
return Y("dragOverCompleted", {
|
|
815
815
|
insertion: ve
|
|
816
|
-
}), ve && (
|
|
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
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
|
}
|
|
@@ -830,7 +830,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
830
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 && (
|
|
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
834
|
if (w = this._getDirection(e, t) === "vertical", i = C(f), Y("dragOverValid"), p.eventCanceled) return E;
|
|
835
835
|
if (a)
|
|
836
836
|
return S = D, j(), this._hideClone(), Y("revert"), p.eventCanceled || (ae ? D.insertBefore(f, ae) : D.appendChild(f)), A(!0);
|
|
@@ -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)
|
|
@@ -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,17 +1056,17 @@ 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
1072
|
return X(f) < X(n) ? 1 : -1;
|
|
@@ -1109,7 +1109,7 @@ p.utils = {
|
|
|
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) {
|
|
@@ -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, Xe(), ye = e.scroll,
|
|
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
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
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[
|
|
1202
|
-
for (var oe = 0; oe <=
|
|
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
|