@cling-se/widget 0.19.3 → 0.19.4
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 +12 -2
- package/dist/{AddClientCallout-DuuNDL4D.js → AddClientCallout-BfBl04bU.js} +10 -10
- package/dist/{AnswerModal-D3EqaCFZ.js → AnswerModal-BSakBDNJ.js} +3 -3
- package/dist/{AttachmentItem-kRFxlzlC.js → AttachmentItem-BLGn1ILf.js} +14 -14
- package/dist/{BaseUpload-BxYInU7o.js → BaseUpload-CUaYnXBn.js} +2 -2
- package/dist/{BlockMedia--73N_Of0.js → BlockMedia-CbsL1ZZR.js} +14 -14
- package/dist/{CCallout-ChKgPAm2.js → CCallout-BezZlOfm.js} +2 -2
- package/dist/{CCurrencyDropdown-GcQqVqCs.js → CCurrencyDropdown-xdp_13tB.js} +6 -6
- package/dist/{CDropdownItem-CrGOya-D.js → CDropdownItem-CjTBhP8h.js} +14 -14
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CyUMgjqE.js → CFormField.vue_vue_type_script_setup_true_lang-Cif8PyTV.js} +13 -13
- package/dist/{CPhoneFormat-d9r8v4kT.js → CPhoneFormat-CdD0NkFL.js} +1 -1
- package/dist/{CPhoneInput-DbDLU0AC.js → CPhoneInput-CgV-rBLW.js} +12 -12
- package/dist/{CPriceInput-BqOw7bdS.js → CPriceInput-VMyB3kTX.js} +5 -5
- package/dist/{CSelect-BwpgSn0z.js → CSelect-BpZYcMEc.js} +6 -6
- package/dist/{CSkeleton.vue_vue_type_script_setup_true_lang-C3CzyV_p.js → CSkeleton.vue_vue_type_script_setup_true_lang-vOwtNEFo.js} +1 -1
- package/dist/{ClientAutocomplete-CvpqyHTG.js → ClientAutocomplete-DAlOBlRj.js} +19 -19
- package/dist/{ClientModal-CYTMaWid.js → ClientModal-B5J8NblQ.js} +24 -24
- package/dist/{ColorPicker-CEpFbxOm.js → ColorPicker-BBPCRucQ.js} +17 -17
- package/dist/{CompanyModal-BN3P5pxH.js → CompanyModal-D0iOqYPp.js} +10 -10
- package/dist/{ContentWrapper-CxL1K8Pf.js → ContentWrapper-Jp2A9A1G.js} +19 -19
- package/dist/{CoverBlockSettings-buQlTBr8.js → CoverBlockSettings-UVNE3YWj.js} +33 -33
- package/dist/{DocAnswer-DniRIWLM.js → DocAnswer-BDqoRdYy.js} +2 -2
- package/dist/{DocDetails-DQlItuAy.js → DocDetails-CQHUQYVe.js} +57 -57
- package/dist/{DocForm-DPnYrMM6.js → DocForm-BU4Mx9Fi.js} +26 -26
- package/dist/{DocFormSend-DDWp03Z4.js → DocFormSend-DXtfCSEG.js} +2 -2
- package/dist/{DocLinks-B_WHyJXJ.js → DocLinks-zF-W4hpD.js} +2 -2
- package/dist/{DocModalBase-DMoFbE_V.js → DocModalBase-CneXY73m.js} +1 -1
- package/dist/{DocPrint-CJnCR4sj.js → DocPrint-DQkI5BgD.js} +11 -11
- package/dist/{DocReceipt-CLEzesSd.js → DocReceipt-DJfBiwUr.js} +12 -12
- package/dist/{DocSendReminder-eVB0EpW3.js → DocSendReminder-CSxB-KWG.js} +13 -13
- package/dist/{DocTextEditor-DiiBwSqL.js → DocTextEditor-CSqqlABA.js} +8 -8
- package/dist/{DocTimeline-bTf4PXFt.js → DocTimeline-CDTh_czd.js} +19 -19
- package/dist/{DocumentClient-BliWFKWD.js → DocumentClient-COSPT21G.js} +5 -5
- package/dist/{DocumentLayout-BYF8MkQ6.js → DocumentLayout-CweRWvIc.js} +31 -31
- package/dist/{DocumentLogotype-CoAoOKFT.js → DocumentLogotype-D0cjO9XC.js} +4 -4
- package/dist/{DocumentVoided-BoE_3xZ-.js → DocumentVoided-BuNs74Da.js} +1 -1
- package/dist/{EmbedInput-BY9Tk0Fn.js → EmbedInput-BohNHou7.js} +8 -8
- package/dist/{EmbedSettings-o4XPxFEg.js → EmbedSettings-DrgFPrd-.js} +3 -3
- package/dist/{ErrorCallout-YB_Cq8zQ.js → ErrorCallout-BVWDsp2J.js} +1 -1
- package/dist/{FilePreviewModal-Bb88xu1a.js → FilePreviewModal-BVEsg1jk.js} +10 -10
- package/dist/{Flag-BxyVrkyQ.js → Flag-B0cEHRlt.js} +1 -1
- package/dist/{HeaderSettings-bLIJeluc.js → HeaderSettings-CGaJ7akp.js} +35 -35
- package/dist/{ImageSelectModal-BvJoFbVg.js → ImageSelectModal-D2A6akvb.js} +3 -3
- package/dist/{ImageUploadWrapper-Cg5PXmyH.js → ImageUploadWrapper-BHqbK12Z.js} +2 -2
- package/dist/{Index-B1W3BsnU.js → Index--WcKCsGG.js} +10 -10
- package/dist/{Index-4EhAq9jD.js → Index-3Yts7KXY.js} +17 -17
- package/dist/{Index-DxOS1Bcc.js → Index-6zEMdU6I.js} +4 -4
- package/dist/{Index-BV5EPUqw.js → Index-B518kuyT.js} +7 -7
- package/dist/{Index-DaDw8sm-.js → Index-BGKHEKp8.js} +4 -4
- package/dist/{Index-u8OyhXD6.js → Index-BNzgoLmd.js} +5 -5
- package/dist/{Index-8buSki3l.js → Index-BPKB1HUJ.js} +1 -1
- package/dist/{Index-D6qezTjd.js → Index-BSlfSspe.js} +13 -13
- package/dist/{Index-D0m02lsA.js → Index-C4ajjo5G.js} +1 -1
- package/dist/{Index-Y--RuSty.js → Index-CAG_M3hA.js} +12 -12
- package/dist/{Index-CmKBuzvS.js → Index-CEBnyO4l.js} +5 -5
- package/dist/{Index-I_htzZi9.js → Index-CFpRQnNq.js} +6 -6
- package/dist/{Index-CLmpmEm1.js → Index-CLFDz6SJ.js} +10 -10
- package/dist/{Index-BBIJa9tx.js → Index-CN6ts_Xp.js} +19 -19
- package/dist/{Index-Cfuzo8uM.js → Index-CSiHZutC.js} +10 -10
- package/dist/{Index-PIl16ugG.js → Index-CXMNxdAF.js} +6 -6
- package/dist/Index-C_pXu_0v.js +52 -0
- package/dist/{Index-2i28IE9s.js → Index-Cxc5s2dg.js} +7 -7
- package/dist/{Index-yczwn2__.js → Index-CzTIqHwe.js} +3 -3
- package/dist/{Index-tSL4w68e.js → Index-D05FW5AK.js} +24 -23
- package/dist/{Index-B9QJAmKi.js → Index-D5YE8uWt.js} +2 -2
- package/dist/{Index-DFutxc_k.js → Index-DPVl5ugc.js} +4 -4
- package/dist/{Index-7wOqPn5F.js → Index-DRaKysrP.js} +16 -16
- package/dist/{Index-BHE3BADD.js → Index-DU1wpDH9.js} +2 -2
- package/dist/{Index-nbUT4Y0t.js → Index-Dbmv21li.js} +3 -3
- package/dist/{Index-Bpz-Fyp-.js → Index-DmOHKqoS.js} +2 -2
- package/dist/{Index-Btz58lgU.js → Index-DylKlBB9.js} +2 -2
- package/dist/{Index-BVvlz0QZ.js → Index-I98TuKi1.js} +19 -19
- package/dist/{Index-Sdko3L9J.js → Index-K56XRGlg.js} +20 -20
- package/dist/{Index-DA_DXCrr.js → Index-LuLYEISf.js} +22 -22
- package/dist/{Index-BPkIQhtP.js → Index-Y4-687rr.js} +4 -4
- package/dist/{Index-BfTkhsEB.js → Index-eczQUYpI.js} +4 -4
- package/dist/{Index-CKm-Ab2J.js → Index-to2qkBy9.js} +3 -3
- package/dist/Index-yMgZ5Gcs.js +4 -0
- package/dist/{Index.vue_vue_type_script_lang-DQvhsOS6.js → Index.vue_vue_type_script_lang-V786MsVt.js} +2 -2
- package/dist/{InputToggleRow-d20mUVX2.js → InputToggleRow-TizMrUy3.js} +5 -5
- package/dist/{ManualPopover-Cj5mxzND.js → ManualPopover-D5s82nTD.js} +5 -5
- package/dist/{MediaWrapper-DWUR2K0S.js → MediaWrapper-B8QJIu96.js} +5 -5
- package/dist/{NotBindingText-Dj7llcNG.js → NotBindingText-CRNgx9DB.js} +2 -2
- package/dist/{PackageGroup-BNuMEute.js → PackageGroup-BSF-af5b.js} +23 -23
- package/dist/{PdfTerms-DdHFdJF8.js → PdfTerms-DZiOm01r.js} +6 -6
- package/dist/{PdfViewer-w58AEZEU.js → PdfViewer-C4KmWufw.js} +59 -59
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-DAy6tOo4.js → PlainHtml.vue_vue_type_script_setup_true_lang-Tt5bu7Nw.js} +1 -1
- package/dist/{PriceHeader-BBSS5378.js → PriceHeader-9PyzP2JW.js} +74 -74
- package/dist/{SearchApi-DiNXQk3K.js → SearchApi-Dqw0KfAD.js} +3 -3
- package/dist/{SendForm-CRCrqy3V.js → SendForm-DwIGeVAZ.js} +11 -11
- package/dist/{Setup-ClnyQJWX.js → Setup-2CQuTokL.js} +1 -1
- package/dist/{SmartList-ICs2gnpw.js → SmartList-DlivOpMQ.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DJO7tWIs.js → Sortable.vue_vue_type_script_setup_true_lang-B8DZEh_u.js} +92 -92
- package/dist/{TermsSettings-BDBrMOTk.js → TermsSettings-C3HFNpbX.js} +17 -17
- package/dist/{ThemeColorRow-ye4CbnQe.js → ThemeColorRow-j7lkaEKS.js} +8 -8
- package/dist/{ToggleBinding-CCVOOpHC.js → ToggleBinding-BTBbFc-F.js} +4 -4
- package/dist/{UploadModal-CE3Gyz8g.js → UploadModal-DEwQZ_8a.js} +8 -8
- package/dist/{VideoPlayerInput-DcYaE3Xn.js → VideoPlayerInput-32LiwyOw.js} +7 -7
- package/dist/{VideoPlayerSettings-DTP_f2k2.js → VideoPlayerSettings-DkzjgwLt.js} +2 -2
- package/dist/{VideoSelectModal-D4VpAg8Z.js → VideoSelectModal-DmEmB4Cx.js} +10 -10
- package/dist/{focusDrawerMixin-Dmt0M_ez.js → focusDrawerMixin-D13Ms6Jk.js} +1 -1
- package/dist/{formDrawerState-BTI6RBrh.js → formDrawerState-CRhWaymS.js} +1 -1
- package/dist/{helpers-BipYFMq7.js → helpers-B86zZNtk.js} +1 -1
- package/dist/{index-Bei9XuEH.js → index-BiwH6W9z.js} +27 -27
- package/dist/{index-CrYE_wD5.js → index-D3TD9uhN.js} +34 -34
- package/dist/{index-CAX6ZePf.js → index-DAIb9mjE.js} +1 -1
- package/dist/{index-mN_zKU2T.js → index-Db7Oe7W3.js} +7 -18
- package/dist/{index-k3WjZPJe.js → index-Kb9qkTlP.js} +21 -21
- package/dist/{index-BsNrnPKD.js → index-h9L0RGv3.js} +5 -5
- package/dist/{index-BLB7xfoK.js → index-tXDuIxx9.js} +41 -41
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +145 -145
- package/dist/{main-C3pW_mbm.js → main-Dr3neB7n.js} +9140 -9186
- package/dist/{mapFormMixin-CxDDheFN.js → mapFormMixin-Bkpm1wEf.js} +15 -15
- package/dist/omit-Ciu7kNcD.js +56 -0
- package/dist/{publicSenderState-CDeVVN6w.js → publicSenderState-CEfzhj0R.js} +1 -1
- package/dist/{splitpanes-Co3TdG3A.js → splitpanes-AhZAy_Th.js} +1 -1
- package/dist/{template-CERxPxb1.js → template-MfjSWRyx.js} +1 -1
- package/dist/{tippy.esm-x-zxHTNy.js → tippy.esm-CJxvo3UM.js} +5 -5
- package/dist/{useTermsModal-C01kFCTx.js → useTermsModal-Bp1LFsXg.js} +6 -6
- package/dist/{utils-BIrpSTl7.js → utils-DgTzzSIp.js} +1 -1
- package/dist/{validation-uD43rMVf.js → validation-J27tpgZs.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +5 -5
- package/dist/Index-C8LrEVrS.js +0 -52
- package/dist/Index-CtDVS-ts.js +0 -4
- package/dist/omit-CCSRNlMn.js +0 -56
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aP as Rt, aQ as kt, aR as Xt, V as Yt, aS as st, $ as Bt, aT as Ht, h as Wt, i as Gt, ae as Lt, o as ut, c as zt, w as jt, b as $t, k as Vt, F as Ut, n as qt, l as Kt, ah as Qt, K as Zt } from "./main-Dr3neB7n.js";
|
|
2
2
|
/**!
|
|
3
3
|
* Sortable 1.15.6
|
|
4
4
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -103,7 +103,7 @@ function Ye(n, e) {
|
|
|
103
103
|
function wt(n) {
|
|
104
104
|
return n.host && n !== document && n.host.nodeType ? n.host : n.parentNode;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function W(n, e, o, t) {
|
|
107
107
|
if (n) {
|
|
108
108
|
o = o || document;
|
|
109
109
|
do {
|
|
@@ -154,14 +154,14 @@ function Dt(n, e, o) {
|
|
|
154
154
|
}
|
|
155
155
|
return [];
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function L() {
|
|
158
158
|
var n = document.scrollingElement;
|
|
159
159
|
return n || document.documentElement;
|
|
160
160
|
}
|
|
161
161
|
function C(n, e, o, t, i) {
|
|
162
162
|
if (!(!n.getBoundingClientRect && n !== window)) {
|
|
163
163
|
var r, a, l, s, u, d, c;
|
|
164
|
-
if (n !== window && n.parentNode && n !==
|
|
164
|
+
if (n !== window && n.parentNode && n !== L() ? (r = n.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, d = r.height, c = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = 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();
|
|
@@ -187,14 +187,14 @@ function ht(n, e, o) {
|
|
|
187
187
|
for (var t = ee(n, !0), i = C(n)[e]; t; ) {
|
|
188
188
|
var r = C(t)[o], a = void 0;
|
|
189
189
|
if (a = i >= r, !a) return t;
|
|
190
|
-
if (t ===
|
|
190
|
+
if (t === L()) break;
|
|
191
191
|
t = ee(t, !1);
|
|
192
192
|
}
|
|
193
193
|
return !1;
|
|
194
194
|
}
|
|
195
195
|
function ce(n, e, o, t) {
|
|
196
196
|
for (var i = 0, r = 0, a = n.children; r < a.length; ) {
|
|
197
|
-
if (a[r].style.display !== "none" && a[r] !== p.ghost && (t || a[r] !== p.dragged) &&
|
|
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)
|
|
199
199
|
return a[r];
|
|
200
200
|
i++;
|
|
@@ -217,7 +217,7 @@ function X(n, e) {
|
|
|
217
217
|
return o;
|
|
218
218
|
}
|
|
219
219
|
function pt(n) {
|
|
220
|
-
var e = 0, o = 0, t =
|
|
220
|
+
var e = 0, o = 0, t = L();
|
|
221
221
|
if (n)
|
|
222
222
|
do {
|
|
223
223
|
var i = de(n), r = i.a, a = i.d;
|
|
@@ -234,19 +234,19 @@ function on(n, e) {
|
|
|
234
234
|
return -1;
|
|
235
235
|
}
|
|
236
236
|
function ee(n, e) {
|
|
237
|
-
if (!n || !n.getBoundingClientRect) return
|
|
237
|
+
if (!n || !n.getBoundingClientRect) return L();
|
|
238
238
|
var o = n, t = !1;
|
|
239
239
|
do
|
|
240
240
|
if (o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight) {
|
|
241
241
|
var i = h(o);
|
|
242
242
|
if (o.clientWidth < o.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || o.clientHeight < o.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
243
|
-
if (!o.getBoundingClientRect || o === document.body) return
|
|
243
|
+
if (!o.getBoundingClientRect || o === document.body) return L();
|
|
244
244
|
if (t || e) return o;
|
|
245
245
|
t = !0;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
while (o = o.parentNode);
|
|
249
|
-
return
|
|
249
|
+
return L();
|
|
250
250
|
}
|
|
251
251
|
function rn(n, e) {
|
|
252
252
|
if (n && e)
|
|
@@ -282,13 +282,13 @@ function Ct(n, e, o) {
|
|
|
282
282
|
var t = {};
|
|
283
283
|
return Array.from(n.children).forEach(function(i) {
|
|
284
284
|
var r, a, l, s;
|
|
285
|
-
if (!(!
|
|
285
|
+
if (!(!W(i, e.draggable, n, !1) || i.animated || i === o)) {
|
|
286
286
|
var u = C(i);
|
|
287
287
|
t.left = Math.min((r = t.left) !== null && r !== void 0 ? r : 1 / 0, u.left), t.top = Math.min((a = t.top) !== null && a !== void 0 ? a : 1 / 0, u.top), t.right = Math.max((l = t.right) !== null && l !== void 0 ? l : -1 / 0, u.right), t.bottom = Math.max((s = t.bottom) !== null && s !== void 0 ? s : -1 / 0, u.bottom);
|
|
288
288
|
}
|
|
289
289
|
}), t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
|
|
290
290
|
}
|
|
291
|
-
var
|
|
291
|
+
var N = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
292
292
|
function ln() {
|
|
293
293
|
var n = [], e;
|
|
294
294
|
return {
|
|
@@ -407,7 +407,7 @@ var le = [], je = {
|
|
|
407
407
|
};
|
|
408
408
|
function fn(n) {
|
|
409
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, d = n.oldDraggableIndex, c = n.newDraggableIndex, b = n.originalEvent, w = n.putSortable, y = n.extraEventProperties;
|
|
410
|
-
if (e = e || o && o[
|
|
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,
|
|
@@ -419,7 +419,7 @@ function fn(n) {
|
|
|
419
419
|
o && o.dispatchEvent(E), Y[j] && Y[j].call(e, E);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var dn = ["evt"],
|
|
422
|
+
var dn = ["evt"], x = function(e, o) {
|
|
423
423
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = tn(t, dn);
|
|
424
424
|
Oe.pluginEvent.bind(p)(e, o, z({
|
|
425
425
|
dragEl: f,
|
|
@@ -439,7 +439,7 @@ var dn = ["evt"], N = function(e, o) {
|
|
|
439
439
|
newIndex: k,
|
|
440
440
|
newDraggableIndex: Z,
|
|
441
441
|
hideGhostForTarget: Pt,
|
|
442
|
-
unhideGhostForTarget:
|
|
442
|
+
unhideGhostForTarget: xt,
|
|
443
443
|
cloneNowHidden: function() {
|
|
444
444
|
J = !0;
|
|
445
445
|
},
|
|
@@ -467,8 +467,8 @@ 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,
|
|
471
|
-
if (
|
|
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", cn = Le && !yt && !ot && "draggable" in document.createElement("div"), Ot = function() {
|
|
471
|
+
if (Le) {
|
|
472
472
|
if (q)
|
|
473
473
|
return !1;
|
|
474
474
|
var n = document.createElement("x");
|
|
@@ -491,7 +491,7 @@ var f, S, g, D, ae, Fe, _, J, fe, k, _e, Z, Ae, O, ue = !1, Be = !1, He = [], ie
|
|
|
491
491
|
}, pn = function(e, o) {
|
|
492
492
|
var t;
|
|
493
493
|
return He.some(function(i) {
|
|
494
|
-
var r = i[
|
|
494
|
+
var r = i[N].options.emptyInsertThreshold;
|
|
495
495
|
if (!(!r || it(i))) {
|
|
496
496
|
var a = C(i), l = e >= a.left - r && e <= a.right + r, s = o >= a.top - r && o <= a.bottom + r;
|
|
497
497
|
if (l && s)
|
|
@@ -520,10 +520,10 @@ var f, S, g, D, ae, Fe, _, J, fe, k, _e, Z, Ae, O, ue = !1, Be = !1, He = [], ie
|
|
|
520
520
|
}), t.name = i.name, t.checkPull = o(i.pull, !0), t.checkPut = o(i.put), t.revertClone = i.revertClone, e.group = t;
|
|
521
521
|
}, Pt = function() {
|
|
522
522
|
!Ot && g && h(g, "display", "none");
|
|
523
|
-
},
|
|
523
|
+
}, xt = function() {
|
|
524
524
|
!Ot && g && h(g, "display", "");
|
|
525
525
|
};
|
|
526
|
-
|
|
526
|
+
Le && !yt && document.addEventListener("click", function(n) {
|
|
527
527
|
if (Be)
|
|
528
528
|
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), Be = !1, !1;
|
|
529
529
|
}, !0);
|
|
@@ -535,16 +535,16 @@ var re = function(e) {
|
|
|
535
535
|
var t = {};
|
|
536
536
|
for (var i in e)
|
|
537
537
|
e.hasOwnProperty(i) && (t[i] = e[i]);
|
|
538
|
-
t.target = t.rootEl = o, t.preventDefault = void 0, t.stopPropagation = void 0, o[
|
|
538
|
+
t.target = t.rootEl = o, t.preventDefault = void 0, t.stopPropagation = void 0, o[N]._onDragOver(t);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}, gn = function(e) {
|
|
542
|
-
f && f.parentNode[
|
|
542
|
+
f && f.parentNode[N]._isOutsideThisEl(e.target);
|
|
543
543
|
};
|
|
544
544
|
function p(n, e) {
|
|
545
545
|
if (!(n && n.nodeType && n.nodeType === 1))
|
|
546
546
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
|
|
547
|
-
this.el = n, this.options = e = U({}, e), n[
|
|
547
|
+
this.el = n, this.options = e = U({}, e), n[N] = this;
|
|
548
548
|
var o = {
|
|
549
549
|
group: null,
|
|
550
550
|
sort: !0,
|
|
@@ -611,7 +611,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
611
611
|
_onTapStart: function(e) {
|
|
612
612
|
if (e.cancelable) {
|
|
613
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, d = i.filter;
|
|
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 =
|
|
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
615
|
if (fe = X(s), _e = X(s, i.draggable), typeof d == "function") {
|
|
616
616
|
if (d.call(this, e, s, this)) {
|
|
617
617
|
P({
|
|
@@ -621,13 +621,13 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
621
621
|
targetEl: s,
|
|
622
622
|
toEl: t,
|
|
623
623
|
fromEl: t
|
|
624
|
-
}),
|
|
624
|
+
}), x("filter", o, {
|
|
625
625
|
evt: e
|
|
626
626
|
}), r && e.preventDefault();
|
|
627
627
|
return;
|
|
628
628
|
}
|
|
629
629
|
} else if (d && (d = d.split(",").some(function(c) {
|
|
630
|
-
if (c =
|
|
630
|
+
if (c = W(u, c.trim(), t, !1), c)
|
|
631
631
|
return P({
|
|
632
632
|
sortable: o,
|
|
633
633
|
rootEl: c,
|
|
@@ -635,14 +635,14 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
635
635
|
targetEl: s,
|
|
636
636
|
fromEl: t,
|
|
637
637
|
toEl: t
|
|
638
|
-
}),
|
|
638
|
+
}), x("filter", o, {
|
|
639
639
|
evt: e
|
|
640
640
|
}), !0;
|
|
641
641
|
}), d)) {
|
|
642
642
|
r && e.preventDefault();
|
|
643
643
|
return;
|
|
644
644
|
}
|
|
645
|
-
i.handle && !
|
|
645
|
+
i.handle && !W(u, i.handle, t, !1) || this._prepareDragStart(e, l, s);
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
},
|
|
@@ -655,7 +655,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
655
655
|
clientX: (o || e).clientX,
|
|
656
656
|
clientY: (o || e).clientY
|
|
657
657
|
}, gt = ie.clientX - u.left, mt = ie.clientY - u.top, this._lastX = (o || e).clientX, this._lastY = (o || e).clientY, f.style["will-change"] = "all", s = function() {
|
|
658
|
-
if (
|
|
658
|
+
if (x("delayEnded", i, {
|
|
659
659
|
evt: e
|
|
660
660
|
}), p.eventCanceled) {
|
|
661
661
|
i._onDrop();
|
|
@@ -668,7 +668,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
668
668
|
}), R(f, a.chosenClass, !0);
|
|
669
669
|
}, a.ignore.split(",").forEach(function(d) {
|
|
670
670
|
Dt(f, d.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)), dt && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0),
|
|
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)), dt && 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) {
|
|
@@ -702,7 +702,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
702
702
|
},
|
|
703
703
|
_dragStarted: function(e, o) {
|
|
704
704
|
if (ue = !1, D && f) {
|
|
705
|
-
|
|
705
|
+
x("dragStarted", this, {
|
|
706
706
|
evt: o
|
|
707
707
|
}), this.nativeDraggable && v(document, "dragover", gn);
|
|
708
708
|
var t = this.options;
|
|
@@ -719,11 +719,11 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
719
719
|
this._lastX = H.clientX, this._lastY = H.clientY, Pt();
|
|
720
720
|
for (var e = document.elementFromPoint(H.clientX, H.clientY), o = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(H.clientX, H.clientY), e !== o); )
|
|
721
721
|
o = e;
|
|
722
|
-
if (f.parentNode[
|
|
722
|
+
if (f.parentNode[N]._isOutsideThisEl(e), o)
|
|
723
723
|
do {
|
|
724
|
-
if (o[
|
|
724
|
+
if (o[N]) {
|
|
725
725
|
var t = void 0;
|
|
726
|
-
if (t = o[
|
|
726
|
+
if (t = o[N]._onDragOver({
|
|
727
727
|
clientX: H.clientX,
|
|
728
728
|
clientY: H.clientY,
|
|
729
729
|
target: e,
|
|
@@ -733,12 +733,12 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
733
733
|
}
|
|
734
734
|
e = o;
|
|
735
735
|
} while (o = wt(o));
|
|
736
|
-
|
|
736
|
+
xt();
|
|
737
737
|
}
|
|
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 && de(g, !0), l = g && a && a.a, s = g && a && a.d, u =
|
|
741
|
+
var o = this.options, t = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, a = g && de(g, !0), l = g && a && a.a, s = g && a && a.d, u = xe && I && pt(I), d = (r.clientX - ie.clientX + i.x) / (l || 1) + (u ? u[0] - Ue[0] : 0) / (l || 1), c = (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;
|
|
@@ -761,25 +761,25 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
761
761
|
},
|
|
762
762
|
_appendGhost: function() {
|
|
763
763
|
if (!g) {
|
|
764
|
-
var e = this.options.fallbackOnBody ? document.body : D, o = C(f, !0,
|
|
765
|
-
if (
|
|
764
|
+
var e = this.options.fallbackOnBody ? document.body : D, o = C(f, !0, xe, !0, e), t = this.options;
|
|
765
|
+
if (xe) {
|
|
766
766
|
for (I = e; h(I, "position") === "static" && h(I, "transform") === "none" && I !== document; )
|
|
767
767
|
I = I.parentNode;
|
|
768
|
-
I !== document.body && I !== document.documentElement ? (I === document && (I =
|
|
768
|
+
I !== document.body && I !== document.documentElement ? (I === document && (I = L()), o.top += I.scrollTop, o.left += I.scrollLeft) : I = L(), Ue = pt(I);
|
|
769
769
|
}
|
|
770
|
-
g = f.cloneNode(!0), R(g, t.ghostClass, !1), R(g, t.fallbackClass, !0), R(g, t.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", o.top), h(g, "left", o.left), h(g, "width", o.width), h(g, "height", o.height), h(g, "opacity", "0.8"), h(g, "position",
|
|
770
|
+
g = f.cloneNode(!0), R(g, t.ghostClass, !1), R(g, t.fallbackClass, !0), R(g, t.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", o.top), h(g, "left", o.left), h(g, "width", o.width), h(g, "height", o.height), h(g, "opacity", "0.8"), h(g, "position", xe ? "absolute" : "fixed"), h(g, "zIndex", "100000"), h(g, "pointerEvents", "none"), p.ghost = g, e.appendChild(g), h(g, "transform-origin", gt / parseInt(g.style.width) * 100 + "% " + mt / parseInt(g.style.height) * 100 + "%");
|
|
771
771
|
}
|
|
772
772
|
},
|
|
773
773
|
_onDragStart: function(e, o) {
|
|
774
774
|
var t = this, i = e.dataTransfer, r = t.options;
|
|
775
|
-
if (
|
|
775
|
+
if (x("dragStart", this, {
|
|
776
776
|
evt: e
|
|
777
777
|
}), p.eventCanceled) {
|
|
778
778
|
this._onDrop();
|
|
779
779
|
return;
|
|
780
780
|
}
|
|
781
|
-
|
|
782
|
-
|
|
781
|
+
x("setupClone", this), p.eventCanceled || (_ = Tt(f), _.removeAttribute("id"), _.draggable = !1, _.style["will-change"] = "", this._hideClone(), R(_, this.options.chosenClass, !1), p.clone = _), t.cloneId = ke(function() {
|
|
782
|
+
x("clone", t), !p.eventCanceled && (t.options.removeCloneOnHide || D.insertBefore(_, f), t._hideClone(), P({
|
|
783
783
|
sortable: t,
|
|
784
784
|
name: "clone"
|
|
785
785
|
}));
|
|
@@ -790,7 +790,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
790
790
|
var o = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u = p.active, d = Ae === s, c = 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
795
|
isOwner: d,
|
|
796
796
|
axis: w ? "vertical" : "horizontal",
|
|
@@ -802,7 +802,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
802
802
|
target: t,
|
|
803
803
|
completed: A,
|
|
804
804
|
onMove: function(lt, Ft) {
|
|
805
|
-
return
|
|
805
|
+
return Ne(D, o, f, i, lt, C(lt), e, Ft);
|
|
806
806
|
},
|
|
807
807
|
changed: B
|
|
808
808
|
}, Mt));
|
|
@@ -815,7 +815,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
815
815
|
insertion: ve
|
|
816
816
|
}), ve && (d ? 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
|
-
}), 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[
|
|
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
821
|
k = X(f), Z = X(f, l.draggable), P({
|
|
@@ -827,7 +827,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
827
827
|
originalEvent: e
|
|
828
828
|
});
|
|
829
829
|
}
|
|
830
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t =
|
|
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
833
|
if (Be = !1, u && !l.disabled && (d ? c || (a = S !== D) : O === this || (this.lastPutMode = Ae.checkPull(this, u, f, e)) && s.checkPut(this, u, f, e))) {
|
|
@@ -838,31 +838,31 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
838
838
|
if (!M || yn(e, w, this) && !M.animated) {
|
|
839
839
|
if (M === f)
|
|
840
840
|
return A(!1);
|
|
841
|
-
if (M && o === e.target && (t = M), t && (r = C(t)),
|
|
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
844
|
var te = ce(o, 0, l, !0);
|
|
845
845
|
if (te === f)
|
|
846
846
|
return A(!1);
|
|
847
|
-
if (t = te, r = C(t),
|
|
847
|
+
if (t = te, r = C(t), Ne(D, o, f, i, t, r, e, !1) !== !1)
|
|
848
848
|
return j(), o.insertBefore(f, te), S = o, B(), A(!0);
|
|
849
849
|
} else if (t.parentNode === o) {
|
|
850
850
|
r = C(t);
|
|
851
|
-
var
|
|
852
|
-
se !== t && (ne = r[pe], Te = !1, Pe = !F && l.invertSwap || he),
|
|
851
|
+
var G = 0, ne, he = f.parentNode !== o, F = !hn(f.animated && f.toRect || i, t.animated && t.toRect || r, w), pe = w ? "top" : "left", K = ht(t, "top", "top") || ht(f, "top", "top"), ge = K ? K.scrollTop : void 0;
|
|
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
|
-
if (
|
|
854
|
+
if (G !== 0) {
|
|
855
855
|
var oe = X(f);
|
|
856
856
|
do
|
|
857
|
-
oe -=
|
|
857
|
+
oe -= G, $ = S.children[oe];
|
|
858
858
|
while ($ && (h($, "display") === "none" || $ === g));
|
|
859
859
|
}
|
|
860
|
-
if (
|
|
860
|
+
if (G === 0 || $ === t)
|
|
861
861
|
return A(!1);
|
|
862
|
-
se = t, Se =
|
|
862
|
+
se = t, Se = G;
|
|
863
863
|
var me = t.nextElementSibling, Q = !1;
|
|
864
|
-
Q =
|
|
865
|
-
var Ie =
|
|
864
|
+
Q = G === 1;
|
|
865
|
+
var Ie = Ne(D, o, f, i, t, r, e, Q);
|
|
866
866
|
if (Ie !== !1)
|
|
867
867
|
return (Ie === 1 || Ie === -1) && (Q = Ie === 1), Je = !0, setTimeout(vn, 30), j(), Q && !me ? o.appendChild(f) : t.parentNode.insertBefore(f, Q ? me : t), K && St(K, 0, ge - K.scrollTop), S = f.parentNode, ne !== void 0 && !Pe && (Re = Math.abs(ne - C(t)[pe])), B(), A(!0);
|
|
868
868
|
}
|
|
@@ -881,7 +881,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
881
881
|
},
|
|
882
882
|
_onDrop: function(e) {
|
|
883
883
|
var o = this.el, t = this.options;
|
|
884
|
-
if (k = X(f), Z = X(f, t.draggable),
|
|
884
|
+
if (k = X(f), Z = X(f, t.draggable), x("drop", this, {
|
|
885
885
|
evt: e
|
|
886
886
|
}), S = f && f.parentNode, k = X(f), Z = X(f, t.draggable), p.eventCanceled) {
|
|
887
887
|
this._nulling();
|
|
@@ -934,9 +934,9 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
934
934
|
}), this.save()))), this._nulling();
|
|
935
935
|
},
|
|
936
936
|
_nulling: function() {
|
|
937
|
-
|
|
937
|
+
x("nulling", this), D = f = S = g = ae = _ = Fe = J = ie = H = be = k = Z = fe = _e = se = Se = O = Ae = p.dragged = p.ghost = p.clone = p.active = null, We.forEach(function(e) {
|
|
938
938
|
e.checked = !0;
|
|
939
|
-
}),
|
|
939
|
+
}), We.length = $e = Ve = 0;
|
|
940
940
|
},
|
|
941
941
|
handleEvent: function(e) {
|
|
942
942
|
switch (e.type) {
|
|
@@ -959,7 +959,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
959
959
|
*/
|
|
960
960
|
toArray: function() {
|
|
961
961
|
for (var e = [], o, t = this.el.children, i = 0, r = t.length, a = this.options; i < r; i++)
|
|
962
|
-
o = t[i],
|
|
962
|
+
o = t[i], W(o, a.draggable, this.el, !1) && e.push(o.getAttribute(a.dataIdAttr) || Dn(o));
|
|
963
963
|
return e;
|
|
964
964
|
},
|
|
965
965
|
/**
|
|
@@ -970,7 +970,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
970
970
|
var t = {}, i = this.el;
|
|
971
971
|
this.toArray().forEach(function(r, a) {
|
|
972
972
|
var l = i.children[a];
|
|
973
|
-
|
|
973
|
+
W(l, this.options.draggable, i, !1) && (t[r] = l);
|
|
974
974
|
}, this), o && this.captureAnimationState(), e.forEach(function(r) {
|
|
975
975
|
t[r] && (i.removeChild(t[r]), i.appendChild(t[r]));
|
|
976
976
|
}), o && this.animateAll();
|
|
@@ -989,7 +989,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
989
989
|
* @returns {HTMLElement|null}
|
|
990
990
|
*/
|
|
991
991
|
closest: function(e, o) {
|
|
992
|
-
return
|
|
992
|
+
return W(e, o || this.options.draggable, this.el, !1);
|
|
993
993
|
},
|
|
994
994
|
/**
|
|
995
995
|
* Set/get option
|
|
@@ -1008,15 +1008,15 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1008
1008
|
* Destroy
|
|
1009
1009
|
*/
|
|
1010
1010
|
destroy: function() {
|
|
1011
|
-
|
|
1011
|
+
x("destroy", this);
|
|
1012
1012
|
var e = this.el;
|
|
1013
|
-
e[
|
|
1013
|
+
e[N] = null, m(e, "mousedown", this._onTapStart), m(e, "touchstart", this._onTapStart), m(e, "pointerdown", this._onTapStart), this.nativeDraggable && (m(e, "dragover", this), m(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(o) {
|
|
1014
1014
|
o.removeAttribute("draggable");
|
|
1015
1015
|
}), this._onDrop(), this._disableDelayedDragEvents(), He.splice(He.indexOf(this.el), 1), this.el = e = null;
|
|
1016
1016
|
},
|
|
1017
1017
|
_hideClone: function() {
|
|
1018
1018
|
if (!J) {
|
|
1019
|
-
if (
|
|
1019
|
+
if (x("hideClone", this), p.eventCanceled) return;
|
|
1020
1020
|
h(_, "display", "none"), this.options.removeCloneOnHide && _.parentNode && _.parentNode.removeChild(_), J = !0;
|
|
1021
1021
|
}
|
|
1022
1022
|
},
|
|
@@ -1026,7 +1026,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1026
1026
|
return;
|
|
1027
1027
|
}
|
|
1028
1028
|
if (J) {
|
|
1029
|
-
if (
|
|
1029
|
+
if (x("showClone", this), p.eventCanceled) return;
|
|
1030
1030
|
f.parentNode == D && !this.options.group.revertClone ? D.insertBefore(_, f) : ae ? D.insertBefore(_, ae) : D.appendChild(_), this.options.group.revertClone && this.animate(f, _), h(_, "display", ""), J = !1;
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
@@ -1034,8 +1034,8 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1034
1034
|
function mn(n) {
|
|
1035
1035
|
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1038
|
-
var s, u = n[
|
|
1037
|
+
function Ne(n, e, o, t, i, r, a, l) {
|
|
1038
|
+
var s, u = n[N], d = u.options.onMove, c;
|
|
1039
1039
|
return window.CustomEvent && !q && !Ce ? s = new CustomEvent("move", {
|
|
1040
1040
|
bubbles: !0,
|
|
1041
1041
|
cancelable: !0
|
|
@@ -1077,10 +1077,10 @@ function Dn(n) {
|
|
|
1077
1077
|
return t.toString(36);
|
|
1078
1078
|
}
|
|
1079
1079
|
function _n(n) {
|
|
1080
|
-
|
|
1080
|
+
We.length = 0;
|
|
1081
1081
|
for (var e = n.getElementsByTagName("input"), o = e.length; o--; ) {
|
|
1082
1082
|
var t = e[o];
|
|
1083
|
-
t.checked &&
|
|
1083
|
+
t.checked && We.push(t);
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
1086
|
function ke(n) {
|
|
@@ -1089,7 +1089,7 @@ function ke(n) {
|
|
|
1089
1089
|
function et(n) {
|
|
1090
1090
|
return clearTimeout(n);
|
|
1091
1091
|
}
|
|
1092
|
-
|
|
1092
|
+
Le && v(document, "touchmove", function(n) {
|
|
1093
1093
|
(p.active || ue) && n.cancelable && n.preventDefault();
|
|
1094
1094
|
});
|
|
1095
1095
|
p.utils = {
|
|
@@ -1098,11 +1098,11 @@ p.utils = {
|
|
|
1098
1098
|
css: h,
|
|
1099
1099
|
find: Dt,
|
|
1100
1100
|
is: function(e, o) {
|
|
1101
|
-
return !!
|
|
1101
|
+
return !!W(e, o, e, !1);
|
|
1102
1102
|
},
|
|
1103
1103
|
extend: rn,
|
|
1104
1104
|
throttle: _t,
|
|
1105
|
-
closest:
|
|
1105
|
+
closest: W,
|
|
1106
1106
|
toggleClass: R,
|
|
1107
1107
|
clone: Tt,
|
|
1108
1108
|
index: X,
|
|
@@ -1110,10 +1110,10 @@ p.utils = {
|
|
|
1110
1110
|
cancelNextTick: et,
|
|
1111
1111
|
detectDirection: It,
|
|
1112
1112
|
getChild: ce,
|
|
1113
|
-
expando:
|
|
1113
|
+
expando: N
|
|
1114
1114
|
};
|
|
1115
1115
|
p.get = function(n) {
|
|
1116
|
-
return n[
|
|
1116
|
+
return n[N];
|
|
1117
1117
|
};
|
|
1118
1118
|
p.mount = function() {
|
|
1119
1119
|
for (var n = arguments.length, e = new Array(n), o = 0; o < n; o++)
|
|
@@ -1128,7 +1128,7 @@ p.create = function(n, e) {
|
|
|
1128
1128
|
return new p(n, e);
|
|
1129
1129
|
};
|
|
1130
1130
|
p.version = nn;
|
|
1131
|
-
var T = [], ye, tt, nt = !1, Ke, Qe,
|
|
1131
|
+
var T = [], ye, tt, nt = !1, Ke, Qe, Ge, Ee;
|
|
1132
1132
|
function Sn() {
|
|
1133
1133
|
function n() {
|
|
1134
1134
|
this.defaults = {
|
|
@@ -1154,14 +1154,14 @@ function Sn() {
|
|
|
1154
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;
|
|
1158
1158
|
},
|
|
1159
1159
|
_handleFallbackAutoScroll: function(o) {
|
|
1160
1160
|
this._handleAutoScroll(o, !0);
|
|
1161
1161
|
},
|
|
1162
1162
|
_handleAutoScroll: function(o, t) {
|
|
1163
1163
|
var i = this, r = (o.touches ? o.touches[0] : o).clientX, a = (o.touches ? o.touches[0] : o).clientY, l = document.elementFromPoint(r, a);
|
|
1164
|
-
if (
|
|
1164
|
+
if (Ge = o, t || this.options.forceAutoScrollFallback || Ce || q || we) {
|
|
1165
1165
|
Ze(o, this.options, l, t);
|
|
1166
1166
|
var s = ee(l, !0);
|
|
1167
1167
|
nt && (!Ee || r !== Ke || a !== Qe) && (Ee && bt(), Ee = setInterval(function() {
|
|
@@ -1169,7 +1169,7 @@ function Sn() {
|
|
|
1169
1169
|
u !== s && (s = u, Xe()), Ze(o, i.options, u, t);
|
|
1170
1170
|
}, 10), Ke = r, Qe = a);
|
|
1171
1171
|
} else {
|
|
1172
|
-
if (!this.options.bubbleScroll || ee(l, !0) ===
|
|
1172
|
+
if (!this.options.bubbleScroll || ee(l, !0) === L()) {
|
|
1173
1173
|
Xe();
|
|
1174
1174
|
return;
|
|
1175
1175
|
}
|
|
@@ -1191,27 +1191,27 @@ 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 =
|
|
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, d;
|
|
1195
1195
|
tt !== o && (tt = o, Xe(), ye = e.scroll, d = e.scrollFn, ye === !0 && (ye = ee(o, !0)));
|
|
1196
1196
|
var c = 0, b = ye;
|
|
1197
1197
|
do {
|
|
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,
|
|
1199
|
-
w === s ? (te = B < ne && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"),
|
|
1200
|
-
var ge = te && (Math.abs(A - i) <= a && pe + B < ne) - (Math.abs(j - i) <= a && !!pe), $ =
|
|
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
|
+
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(Y - r) <= a && K + M < he) - (Math.abs(E - r) <= a && !!K);
|
|
1201
1201
|
if (!T[c])
|
|
1202
1202
|
for (var oe = 0; oe <= c; oe++)
|
|
1203
1203
|
T[oe] || (T[oe] = {});
|
|
1204
1204
|
(T[c].vx != ge || T[c].vy != $ || T[c].el !== w) && (T[c].el = w, T[c].vx = ge, T[c].vy = $, clearInterval(T[c].pid), (ge != 0 || $ != 0) && (u = !0, T[c].pid = setInterval((function() {
|
|
1205
|
-
t && this.layer === 0 && p.active._onTouchMove(
|
|
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 d == "function" && d.call(p.dragged.parentNode[
|
|
1207
|
+
typeof d == "function" && d.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
1209
|
layer: c
|
|
1210
1210
|
}), 24))), c++;
|
|
1211
1211
|
} while (e.bubbleScroll && b !== s && (b = ee(b, !1)));
|
|
1212
1212
|
nt = u;
|
|
1213
1213
|
}
|
|
1214
|
-
}, 30),
|
|
1214
|
+
}, 30), Nt = function(e) {
|
|
1215
1215
|
var o = e.originalEvent, t = e.putSortable, i = e.dragEl, r = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1216
1216
|
if (o) {
|
|
1217
1217
|
var u = t || r;
|
|
@@ -1237,7 +1237,7 @@ rt.prototype = {
|
|
|
1237
1237
|
var i = ce(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
|
-
drop:
|
|
1240
|
+
drop: Nt
|
|
1241
1241
|
};
|
|
1242
1242
|
U(rt, {
|
|
1243
1243
|
pluginName: "revertOnSpill"
|
|
@@ -1249,7 +1249,7 @@ at.prototype = {
|
|
|
1249
1249
|
var o = e.dragEl, t = e.putSortable, i = t || this.sortable;
|
|
1250
1250
|
i.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), i.animateAll();
|
|
1251
1251
|
},
|
|
1252
|
-
drop:
|
|
1252
|
+
drop: Nt
|
|
1253
1253
|
};
|
|
1254
1254
|
U(at, {
|
|
1255
1255
|
pluginName: "removeOnSpill"
|
|
@@ -1300,7 +1300,7 @@ function An(n, e, o) {
|
|
|
1300
1300
|
const t = n.slice(), i = t.splice(e, 1)[0];
|
|
1301
1301
|
return t.splice(o, 0, i), t;
|
|
1302
1302
|
}
|
|
1303
|
-
const
|
|
1303
|
+
const Nn = /* @__PURE__ */ Wt({
|
|
1304
1304
|
__name: "Sortable",
|
|
1305
1305
|
props: {
|
|
1306
1306
|
tag: { default: "div" },
|
|
@@ -1312,7 +1312,7 @@ const xn = /* @__PURE__ */ Lt({
|
|
|
1312
1312
|
},
|
|
1313
1313
|
emits: ["update:modelValue"],
|
|
1314
1314
|
setup(n, { emit: e }) {
|
|
1315
|
-
const o = e, t =
|
|
1315
|
+
const o = e, t = Gt(() => n.modelValue || n.list), i = Lt("container");
|
|
1316
1316
|
return Tn(i, t, {
|
|
1317
1317
|
animation: 250,
|
|
1318
1318
|
onChoose(r) {
|
|
@@ -1344,6 +1344,6 @@ const xn = /* @__PURE__ */ Lt({
|
|
|
1344
1344
|
}
|
|
1345
1345
|
});
|
|
1346
1346
|
export {
|
|
1347
|
-
|
|
1347
|
+
Nn as _,
|
|
1348
1348
|
An as m
|
|
1349
1349
|
};
|