@adyen/bento-vue3 1.99.0 → 1.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +19 -13
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/chunks/{action-bar.Dd0rr7Sb.js → action-bar.C9A4LZXq.js} +4 -4
- package/dist/chunks/{action-bar.Dd0rr7Sb.js.map → action-bar.C9A4LZXq.js.map} +1 -1
- package/dist/chunks/{ai-button.1YJdI-sw.js → ai-button.B6_iVJrF.js} +2 -2
- package/dist/chunks/{ai-button.1YJdI-sw.js.map → ai-button.B6_iVJrF.js.map} +1 -1
- package/dist/chunks/{ai-tag.DOQ-UnnF.js → ai-tag.Brtsi-_Q.js} +2 -2
- package/dist/chunks/{ai-tag.DOQ-UnnF.js.map → ai-tag.Brtsi-_Q.js.map} +1 -1
- package/dist/chunks/{alert.V1imvtyI.js → alert.CQBxTuII.js} +2 -2
- package/dist/chunks/{alert.V1imvtyI.js.map → alert.CQBxTuII.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.NRHfj2FY.js → anchor-scroller.ZMjZsvKe.js} +3 -3
- package/dist/chunks/{anchor-scroller.NRHfj2FY.js.map → anchor-scroller.ZMjZsvKe.js.map} +1 -1
- package/dist/chunks/{base-modal.BzbJbryi.js → base-modal.DtAGV7IJ.js} +5 -5
- package/dist/chunks/{base-modal.BzbJbryi.js.map → base-modal.DtAGV7IJ.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DZdmQdah.js → button-actions-with-menu.CD1rzFcv.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.DZdmQdah.js.map → button-actions-with-menu.CD1rzFcv.js.map} +1 -1
- package/dist/chunks/{button-actions.CgZbPzhi.js → button-actions.Cn0reO-q.js} +2 -2
- package/dist/chunks/{button-actions.CgZbPzhi.js.map → button-actions.Cn0reO-q.js.map} +1 -1
- package/dist/chunks/button.C6-bXf1h.js +130 -0
- package/dist/chunks/button.C6-bXf1h.js.map +1 -0
- package/dist/chunks/{calendar.B0XfOj2I.js → calendar.xS1f71Tj.js} +3 -3
- package/dist/chunks/{calendar.B0XfOj2I.js.map → calendar.xS1f71Tj.js.map} +1 -1
- package/dist/chunks/{card.BpPQzOoN.js → card.7rxK1PUi.js} +2 -2
- package/dist/chunks/{card.BpPQzOoN.js.map → card.7rxK1PUi.js.map} +1 -1
- package/dist/chunks/{code-snippet.DiBQjBoy.js → code-snippet.BNsYld-H.js} +5 -5
- package/dist/chunks/{code-snippet.DiBQjBoy.js.map → code-snippet.BNsYld-H.js.map} +1 -1
- package/dist/chunks/{copy.nnaqOH6I.js → copy.CFgvGhnT.js} +2 -2
- package/dist/chunks/{copy.nnaqOH6I.js.map → copy.CFgvGhnT.js.map} +1 -1
- package/dist/chunks/{dashboard-section.B82okI3e.js → dashboard-section._cJmCYmS.js} +3 -3
- package/dist/chunks/{dashboard-section.B82okI3e.js.map → dashboard-section._cJmCYmS.js.map} +1 -1
- package/dist/chunks/{dashed-underline.x_gU4d-A.js → dashed-underline.BX23F04p.js} +2 -2
- package/dist/chunks/{dashed-underline.x_gU4d-A.js.map → dashed-underline.BX23F04p.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BdabDTqN.js → data-grid-template.D7XYAdGO.js} +4 -4
- package/dist/chunks/{data-grid-template.BdabDTqN.js.map → data-grid-template.D7XYAdGO.js.map} +1 -1
- package/dist/chunks/{data-grid.BNFwP2g7.js → data-grid.BRxL5jfA.js} +13 -13
- package/dist/chunks/{data-grid.BNFwP2g7.js.map → data-grid.BRxL5jfA.js.map} +1 -1
- package/dist/chunks/{date-picker.ClFHuglH.js → date-picker.HvI3aqn_.js} +6 -6
- package/dist/chunks/{date-picker.ClFHuglH.js.map → date-picker.HvI3aqn_.js.map} +1 -1
- package/dist/chunks/{date-range-picker.D3iAZN20.js → date-range-picker.CxJ-Dwy6.js} +8 -8
- package/dist/chunks/{date-range-picker.D3iAZN20.js.map → date-range-picker.CxJ-Dwy6.js.map} +1 -1
- package/dist/chunks/{dialog-page.BYMSk5DR.js → dialog-page.BFem0ZGE.js} +2 -2
- package/dist/chunks/{dialog-page.BYMSk5DR.js.map → dialog-page.BFem0ZGE.js.map} +1 -1
- package/dist/chunks/{draggable-handle.y_1hfypa.js → draggable-handle.BepmJZ8K.js} +270 -264
- package/dist/chunks/{draggable-handle.y_1hfypa.js.map → draggable-handle.BepmJZ8K.js.map} +1 -1
- package/dist/chunks/{draggable.5evQkGJ4.js → draggable.DWd19-Ke.js} +2 -2
- package/dist/chunks/{draggable.5evQkGJ4.js.map → draggable.DWd19-Ke.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.KO0gs2Lb.js → dropdown-tag.D5OzRb26.js} +2 -2
- package/dist/chunks/{dropdown-tag.KO0gs2Lb.js.map → dropdown-tag.D5OzRb26.js.map} +1 -1
- package/dist/chunks/{dropdown.DpqCHfi-.js → dropdown.DemBTBTo.js} +3 -3
- package/dist/chunks/{dropdown.DpqCHfi-.js.map → dropdown.DemBTBTo.js.map} +1 -1
- package/dist/chunks/{empty-state.DT4sFyjB.js → empty-state.C1SZznqL.js} +2 -2
- package/dist/chunks/{empty-state.DT4sFyjB.js.map → empty-state.C1SZznqL.js.map} +1 -1
- package/dist/chunks/{file-uploader.xzoJqcg1.js → file-uploader.1xbAOQVr.js} +3 -3
- package/dist/chunks/{file-uploader.xzoJqcg1.js.map → file-uploader.1xbAOQVr.js.map} +1 -1
- package/dist/chunks/{filter-bar.D3Lf7VJF.js → filter-bar.Du-a3Acn.js} +1812 -1733
- package/dist/chunks/filter-bar.Du-a3Acn.js.map +1 -0
- package/dist/chunks/{fixed-scroller.yVsaQzy5.js → fixed-scroller.C81gv4JS.js} +2 -2
- package/dist/chunks/{fixed-scroller.yVsaQzy5.js.map → fixed-scroller.C81gv4JS.js.map} +1 -1
- package/dist/chunks/{footer-actions.sEd1kzgV.js → footer-actions.Bxs91LNd.js} +3 -3
- package/dist/chunks/{footer-actions.sEd1kzgV.js.map → footer-actions.Bxs91LNd.js.map} +1 -1
- package/dist/chunks/{form-layout-title.CWw0poO8.js → form-layout-title.Cr27QPQx.js} +2 -2
- package/dist/chunks/{form-layout-title.CWw0poO8.js.map → form-layout-title.Cr27QPQx.js.map} +1 -1
- package/dist/chunks/{header-meta.DWWL88nm.js → header-meta.7O7dRg_a.js} +2 -2
- package/dist/chunks/{header-meta.DWWL88nm.js.map → header-meta.7O7dRg_a.js.map} +1 -1
- package/dist/chunks/{header-with-views.B-5VCTDp.js → header-with-views.DjS8uGm4.js} +8 -8
- package/dist/chunks/{header-with-views.B-5VCTDp.js.map → header-with-views.DjS8uGm4.js.map} +1 -1
- package/dist/chunks/{header.B6pGQk7G.js → header.BW-OkVwK.js} +3 -3
- package/dist/chunks/{header.B6pGQk7G.js.map → header.BW-OkVwK.js.map} +1 -1
- package/dist/chunks/{input-field-password.BCme16nn.js → input-field-password.KlvNwYqo.js} +4 -4
- package/dist/chunks/{input-field-password.BCme16nn.js.map → input-field-password.KlvNwYqo.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BwVbTNcu.js → input-field-phone-number.byO-cUDL.js} +2 -2
- package/dist/chunks/{input-field-phone-number.BwVbTNcu.js.map → input-field-phone-number.byO-cUDL.js.map} +1 -1
- package/dist/chunks/{input-field.Cox9LW4Z.js → input-field.B-0d_T4g.js} +39 -29
- package/dist/chunks/{input-field.Cox9LW4Z.js.map → input-field.B-0d_T4g.js.map} +1 -1
- package/dist/chunks/{input-time.bHFZRv6T.js → input-time.nPazqbCJ.js} +3 -3
- package/dist/chunks/{input-time.bHFZRv6T.js.map → input-time.nPazqbCJ.js.map} +1 -1
- package/dist/chunks/{inspector.CTBNfXvo.js → inspector.04j4uhcL.js} +2 -2
- package/dist/chunks/{inspector.CTBNfXvo.js.map → inspector.04j4uhcL.js.map} +1 -1
- package/dist/chunks/{list-item.CqUFIXPC.js → list-item.Bh7YMPOT.js} +2 -2
- package/dist/chunks/{list-item.CqUFIXPC.js.map → list-item.Bh7YMPOT.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.T5PF8pWA.js → modal-fullscreen.Dsb7-HDn.js} +5 -5
- package/dist/chunks/{modal-fullscreen.T5PF8pWA.js.map → modal-fullscreen.Dsb7-HDn.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BOOZl25a.js → modal.vue_vue_type_script_setup_true_lang.CwpOjtKq.js} +5 -5
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BOOZl25a.js.map → modal.vue_vue_type_script_setup_true_lang.CwpOjtKq.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.CIV5BQJA.js → navigation-menu-group.ikwhk1TY.js} +2 -2
- package/dist/chunks/{navigation-menu-group.CIV5BQJA.js.map → navigation-menu-group.ikwhk1TY.js.map} +1 -1
- package/dist/chunks/{pagination.CMt-m_-T.js → pagination.DEjCJwaX.js} +3 -3
- package/dist/chunks/{pagination.CMt-m_-T.js.map → pagination.DEjCJwaX.js.map} +1 -1
- package/dist/chunks/{promo-banner.DICpj6e6.js → promo-banner.BonAKy1p.js} +2 -2
- package/dist/chunks/{promo-banner.DICpj6e6.js.map → promo-banner.BonAKy1p.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.D94Vaa4k.js → rich-text-editor.IxYsg6CI.js} +2 -2
- package/dist/chunks/{rich-text-editor.D94Vaa4k.js.map → rich-text-editor.IxYsg6CI.js.map} +1 -1
- package/dist/chunks/{search-bar.DSi5ti-s.js → search-bar.C-U8clpQ.js} +3 -3
- package/dist/chunks/{search-bar.DSi5ti-s.js.map → search-bar.C-U8clpQ.js.map} +1 -1
- package/dist/chunks/{secondary-nav.D5w22NJe.js → secondary-nav.Dk2uIEjb.js} +3 -3
- package/dist/chunks/{secondary-nav.D5w22NJe.js.map → secondary-nav.Dk2uIEjb.js.map} +1 -1
- package/dist/chunks/{sidepanel.DWgn0NNb.js → sidepanel.Comuu3ed.js} +5 -5
- package/dist/chunks/{sidepanel.DWgn0NNb.js.map → sidepanel.Comuu3ed.js.map} +1 -1
- package/dist/chunks/{structured-list-item.RunfI9Pj.js → structured-list-item.BqptGVDy.js} +3 -3
- package/dist/chunks/{structured-list-item.RunfI9Pj.js.map → structured-list-item.BqptGVDy.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.DiJtaVN-.js → summary-grid.types.CS7JxDEe.js} +3 -3
- package/dist/chunks/{summary-grid.types.DiJtaVN-.js.map → summary-grid.types.CS7JxDEe.js.map} +1 -1
- package/dist/chunks/{tab.CnvwN1lS.js → tab.BUeDKzsC.js} +2 -2
- package/dist/chunks/{tab.CnvwN1lS.js.map → tab.BUeDKzsC.js.map} +1 -1
- package/dist/chunks/{textarea.Cb6Fu5-u.js → textarea.CIVT8C_Z.js} +2 -2
- package/dist/chunks/{textarea.Cb6Fu5-u.js.map → textarea.CIVT8C_Z.js.map} +1 -1
- package/dist/chunks/{timeline-item.XpxLQwxK.js → timeline-item.Bva1ccQQ.js} +6 -6
- package/dist/chunks/{timeline-item.XpxLQwxK.js.map → timeline-item.Bva1ccQQ.js.map} +1 -1
- package/dist/chunks/{toast.De4MTkiH.js → toast.BQa5mK5U.js} +2 -2
- package/dist/chunks/{toast.De4MTkiH.js.map → toast.BQa5mK5U.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.DjvXPcvu.js → tutorial.vue_vue_type_script_setup_true_lang.X5GUFYKD.js} +2 -2
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.DjvXPcvu.js.map → tutorial.vue_vue_type_script_setup_true_lang.X5GUFYKD.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.ovThcj9h.js → use-date-input-formatter.DvYZRRZi.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.ovThcj9h.js.map → use-date-input-formatter.DvYZRRZi.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date-time-picker.js +4 -4
- package/dist/draggable.js +2 -2
- package/dist/dropdown.js +2 -2
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +49 -49
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +8 -8
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +3 -3
- package/dist/chunks/button.DWF7FSIw.js +0 -128
- package/dist/chunks/button.DWF7FSIw.js.map +0 -1
- package/dist/chunks/filter-bar.D3Lf7VJF.js.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as ke, watch as pt, markRaw as Jt, onUnmounted as It, openBlock as Me, createElementBlock as Ye, mergeProps as Pt, toDisplayString as xt, createCommentVNode as At, createElementVNode as lt, defineComponent as Kt, computed as je, createBlock as Qt, unref as mt, normalizeClass as eo, withCtx as to, createVNode as oo } from "vue";
|
|
2
2
|
import { u as Nt } from "./index.B875RXHM.js";
|
|
3
|
-
import { f as no } from "./button-actions.
|
|
4
|
-
import {
|
|
3
|
+
import { f as no } from "./button-actions.Cn0reO-q.js";
|
|
4
|
+
import { d as io } from "./index.DtuWfdhd.js";
|
|
5
|
+
import { G as ro } from "./grab.DJYL4kBq.js";
|
|
5
6
|
/* empty css */
|
|
6
7
|
import { _ as st } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
|
-
import { A as
|
|
8
|
-
import { A as
|
|
8
|
+
import { A as ao } from "./arrow-left.C6UiqO-c.js";
|
|
9
|
+
import { A as lo } from "./arrow-right.fSdLV_ho.js";
|
|
9
10
|
import "../assets/draggable-handle.css";
|
|
10
11
|
function gt(n, e) {
|
|
11
12
|
var o = Object.keys(n);
|
|
@@ -21,7 +22,7 @@ function G(n) {
|
|
|
21
22
|
for (var e = 1; e < arguments.length; e++) {
|
|
22
23
|
var o = arguments[e] != null ? arguments[e] : {};
|
|
23
24
|
e % 2 ? gt(Object(o), !0).forEach(function(t) {
|
|
24
|
-
|
|
25
|
+
so(n, t, o[t]);
|
|
25
26
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(o)) : gt(Object(o)).forEach(function(t) {
|
|
26
27
|
Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(o, t));
|
|
27
28
|
});
|
|
@@ -36,7 +37,7 @@ function Le(n) {
|
|
|
36
37
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
37
38
|
}, Le(n);
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function so(n, e, o) {
|
|
40
41
|
return e in n ? Object.defineProperty(n, e, {
|
|
41
42
|
value: o,
|
|
42
43
|
enumerable: !0,
|
|
@@ -54,16 +55,16 @@ function V() {
|
|
|
54
55
|
return n;
|
|
55
56
|
}, V.apply(this, arguments);
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function uo(n, e) {
|
|
58
59
|
if (n == null) return {};
|
|
59
60
|
var o = {}, t = Object.keys(n), i, r;
|
|
60
61
|
for (r = 0; r < t.length; r++)
|
|
61
62
|
i = t[r], !(e.indexOf(i) >= 0) && (o[i] = n[i]);
|
|
62
63
|
return o;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function co(n, e) {
|
|
65
66
|
if (n == null) return {};
|
|
66
|
-
var o =
|
|
67
|
+
var o = uo(n, e), t, i;
|
|
67
68
|
if (Object.getOwnPropertySymbols) {
|
|
68
69
|
var r = Object.getOwnPropertySymbols(n);
|
|
69
70
|
for (i = 0; i < r.length; i++)
|
|
@@ -71,12 +72,12 @@ function uo(n, e) {
|
|
|
71
72
|
}
|
|
72
73
|
return o;
|
|
73
74
|
}
|
|
74
|
-
var
|
|
75
|
+
var fo = "1.15.6";
|
|
75
76
|
function j(n) {
|
|
76
77
|
if (typeof window < "u" && window.navigator)
|
|
77
78
|
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
78
79
|
}
|
|
79
|
-
var q = j(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
|
80
|
+
var q = j(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ce = j(/Edge/i), vt = j(/firefox/i), Ee = j(/safari/i) && !j(/chrome/i) && !j(/android/i), ut = j(/iP(ad|od|hone)/i), Lt = j(/chrome/i) && j(/android/i), Rt = {
|
|
80
81
|
capture: !1,
|
|
81
82
|
passive: !1
|
|
82
83
|
};
|
|
@@ -86,7 +87,7 @@ function y(n, e, o) {
|
|
|
86
87
|
function w(n, e, o) {
|
|
87
88
|
n.removeEventListener(e, o, !q && Rt);
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function Xe(n, e) {
|
|
90
91
|
if (e) {
|
|
91
92
|
if (e[0] === ">" && (e = e.substring(1)), n)
|
|
92
93
|
try {
|
|
@@ -109,7 +110,7 @@ function X(n, e, o, t) {
|
|
|
109
110
|
if (n) {
|
|
110
111
|
o = o || document;
|
|
111
112
|
do {
|
|
112
|
-
if (e != null && (e[0] === ">" ? n.parentNode === o &&
|
|
113
|
+
if (e != null && (e[0] === ">" ? n.parentNode === o && Xe(n, e) : Xe(n, e)) || t && n === o)
|
|
113
114
|
return n;
|
|
114
115
|
if (n === o) break;
|
|
115
116
|
} while (n = Ft(n));
|
|
@@ -160,34 +161,34 @@ function z() {
|
|
|
160
161
|
var n = document.scrollingElement;
|
|
161
162
|
return n || document.documentElement;
|
|
162
163
|
}
|
|
163
|
-
function
|
|
164
|
+
function M(n, e, o, t, i) {
|
|
164
165
|
if (!(!n.getBoundingClientRect && n !== window)) {
|
|
165
|
-
var r, a,
|
|
166
|
-
if (n !== window && n.parentNode && n !== z() ? (r = n.getBoundingClientRect(), a = r.top,
|
|
166
|
+
var r, a, l, u, s, f, c;
|
|
167
|
+
if (n !== window && n.parentNode && n !== z() ? (r = n.getBoundingClientRect(), a = r.top, l = r.left, u = r.bottom, s = r.right, f = r.height, c = r.width) : (a = 0, l = 0, u = window.innerHeight, s = window.innerWidth, f = window.innerHeight, c = window.innerWidth), (e || o) && n !== window && (i = i || n.parentNode, !q))
|
|
167
168
|
do
|
|
168
169
|
if (i && i.getBoundingClientRect && (m(i, "transform") !== "none" || o && m(i, "position") !== "static")) {
|
|
169
170
|
var h = i.getBoundingClientRect();
|
|
170
|
-
a -= h.top + parseInt(m(i, "border-top-width")),
|
|
171
|
+
a -= h.top + parseInt(m(i, "border-top-width")), l -= h.left + parseInt(m(i, "border-left-width")), u = a + r.height, s = l + r.width;
|
|
171
172
|
break;
|
|
172
173
|
}
|
|
173
174
|
while (i = i.parentNode);
|
|
174
175
|
if (t && n !== window) {
|
|
175
176
|
var p = ce(i || n), v = p && p.a, E = p && p.d;
|
|
176
|
-
p && (a /= E,
|
|
177
|
+
p && (a /= E, l /= v, c /= v, f /= E, u = a + f, s = l + c);
|
|
177
178
|
}
|
|
178
179
|
return {
|
|
179
180
|
top: a,
|
|
180
|
-
left:
|
|
181
|
-
bottom:
|
|
182
|
-
right:
|
|
181
|
+
left: l,
|
|
182
|
+
bottom: u,
|
|
183
|
+
right: s,
|
|
183
184
|
width: c,
|
|
184
185
|
height: f
|
|
185
186
|
};
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
189
|
function wt(n, e, o) {
|
|
189
|
-
for (var t = ee(n, !0), i =
|
|
190
|
-
var r =
|
|
190
|
+
for (var t = ee(n, !0), i = M(n)[e]; t; ) {
|
|
191
|
+
var r = M(t)[o], a = void 0;
|
|
191
192
|
if (a = i >= r, !a) return t;
|
|
192
193
|
if (t === z()) break;
|
|
193
194
|
t = ee(t, !1);
|
|
@@ -206,7 +207,7 @@ function fe(n, e, o, t) {
|
|
|
206
207
|
return null;
|
|
207
208
|
}
|
|
208
209
|
function dt(n, e) {
|
|
209
|
-
for (var o = n.lastElementChild; o && (o === g.ghost || m(o, "display") === "none" || e && !
|
|
210
|
+
for (var o = n.lastElementChild; o && (o === g.ghost || m(o, "display") === "none" || e && !Xe(o, e)); )
|
|
210
211
|
o = o.previousElementSibling;
|
|
211
212
|
return o || null;
|
|
212
213
|
}
|
|
@@ -215,7 +216,7 @@ function B(n, e) {
|
|
|
215
216
|
if (!n || !n.parentNode)
|
|
216
217
|
return -1;
|
|
217
218
|
for (; n = n.previousElementSibling; )
|
|
218
|
-
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== g.clone && (!e ||
|
|
219
|
+
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== g.clone && (!e || Xe(n, e)) && o++;
|
|
219
220
|
return o;
|
|
220
221
|
}
|
|
221
222
|
function yt(n) {
|
|
@@ -227,7 +228,7 @@ function yt(n) {
|
|
|
227
228
|
} while (n !== t && (n = n.parentNode));
|
|
228
229
|
return [e, o];
|
|
229
230
|
}
|
|
230
|
-
function
|
|
231
|
+
function ho(n, e) {
|
|
231
232
|
for (var o in n)
|
|
232
233
|
if (n.hasOwnProperty(o)) {
|
|
233
234
|
for (var t in e)
|
|
@@ -250,13 +251,13 @@ function ee(n, e) {
|
|
|
250
251
|
while (o = o.parentNode);
|
|
251
252
|
return z();
|
|
252
253
|
}
|
|
253
|
-
function
|
|
254
|
+
function po(n, e) {
|
|
254
255
|
if (n && e)
|
|
255
256
|
for (var o in e)
|
|
256
257
|
e.hasOwnProperty(o) && (n[o] = e[o]);
|
|
257
258
|
return n;
|
|
258
259
|
}
|
|
259
|
-
function
|
|
260
|
+
function Ve(n, e) {
|
|
260
261
|
return Math.round(n.top) === Math.round(e.top) && Math.round(n.left) === Math.round(e.left) && Math.round(n.height) === Math.round(e.height) && Math.round(n.width) === Math.round(e.width);
|
|
261
262
|
}
|
|
262
263
|
var De;
|
|
@@ -270,7 +271,7 @@ function Ht(n, e) {
|
|
|
270
271
|
}
|
|
271
272
|
};
|
|
272
273
|
}
|
|
273
|
-
function
|
|
274
|
+
function mo() {
|
|
274
275
|
clearTimeout(De), De = void 0;
|
|
275
276
|
}
|
|
276
277
|
function kt(n, e, o) {
|
|
@@ -283,15 +284,15 @@ function Yt(n) {
|
|
|
283
284
|
function Xt(n, e, o) {
|
|
284
285
|
var t = {};
|
|
285
286
|
return Array.from(n.children).forEach(function(i) {
|
|
286
|
-
var r, a,
|
|
287
|
+
var r, a, l, u;
|
|
287
288
|
if (!(!X(i, e.draggable, n, !1) || i.animated || i === o)) {
|
|
288
|
-
var
|
|
289
|
-
t.left = Math.min((r = t.left) !== null && r !== void 0 ? r : 1 / 0,
|
|
289
|
+
var s = M(i);
|
|
290
|
+
t.left = Math.min((r = t.left) !== null && r !== void 0 ? r : 1 / 0, s.left), t.top = Math.min((a = t.top) !== null && a !== void 0 ? a : 1 / 0, s.top), t.right = Math.max((l = t.right) !== null && l !== void 0 ? l : -1 / 0, s.right), t.bottom = Math.max((u = t.bottom) !== null && u !== void 0 ? u : -1 / 0, s.bottom);
|
|
290
291
|
}
|
|
291
292
|
}), t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
|
|
292
293
|
}
|
|
293
294
|
var A = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
294
|
-
function
|
|
295
|
+
function go() {
|
|
295
296
|
var n = [], e;
|
|
296
297
|
return {
|
|
297
298
|
captureAnimationState: function() {
|
|
@@ -301,7 +302,7 @@ function mo() {
|
|
|
301
302
|
if (!(m(i, "display") === "none" || i === g.ghost)) {
|
|
302
303
|
n.push({
|
|
303
304
|
target: i,
|
|
304
|
-
rect:
|
|
305
|
+
rect: M(i)
|
|
305
306
|
});
|
|
306
307
|
var r = G({}, n[n.length - 1].rect);
|
|
307
308
|
if (i.thisAnimationDuration) {
|
|
@@ -317,7 +318,7 @@ function mo() {
|
|
|
317
318
|
n.push(t);
|
|
318
319
|
},
|
|
319
320
|
removeAnimationState: function(t) {
|
|
320
|
-
n.splice(
|
|
321
|
+
n.splice(ho(n, {
|
|
321
322
|
target: t
|
|
322
323
|
}), 1);
|
|
323
324
|
},
|
|
@@ -328,12 +329,12 @@ function mo() {
|
|
|
328
329
|
return;
|
|
329
330
|
}
|
|
330
331
|
var r = !1, a = 0;
|
|
331
|
-
n.forEach(function(
|
|
332
|
-
var
|
|
333
|
-
E && (c.top -= E.f, c.left -= E.e),
|
|
334
|
-
(v.top - c.top) / (v.left - c.left) === (f.top - c.top) / (f.left - c.left) && (
|
|
335
|
-
|
|
336
|
-
},
|
|
332
|
+
n.forEach(function(l) {
|
|
333
|
+
var u = 0, s = l.target, f = s.fromRect, c = M(s), h = s.prevFromRect, p = s.prevToRect, v = l.rect, E = ce(s, !0);
|
|
334
|
+
E && (c.top -= E.f, c.left -= E.e), s.toRect = c, s.thisAnimationDuration && Ve(h, c) && !Ve(f, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
335
|
+
(v.top - c.top) / (v.left - c.left) === (f.top - c.top) / (f.left - c.left) && (u = bo(v, h, p, i.options)), Ve(c, f) || (s.prevFromRect = f, s.prevToRect = c, u || (u = i.options.animation), i.animate(s, v, c, u)), u && (r = !0, a = Math.max(a, u), clearTimeout(s.animationResetTimer), s.animationResetTimer = setTimeout(function() {
|
|
336
|
+
s.animationTime = 0, s.prevFromRect = null, s.fromRect = null, s.prevToRect = null, s.thisAnimationDuration = null;
|
|
337
|
+
}, u), s.thisAnimationDuration = u);
|
|
337
338
|
}), clearTimeout(e), r ? e = setTimeout(function() {
|
|
338
339
|
typeof t == "function" && t();
|
|
339
340
|
}, a) : typeof t == "function" && t(), n = [];
|
|
@@ -341,26 +342,26 @@ function mo() {
|
|
|
341
342
|
animate: function(t, i, r, a) {
|
|
342
343
|
if (a) {
|
|
343
344
|
m(t, "transition", ""), m(t, "transform", "");
|
|
344
|
-
var
|
|
345
|
-
t.animatingX = !!f, t.animatingY = !!c, m(t, "transform", "translate3d(" + f + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
345
|
+
var l = ce(this.el), u = l && l.a, s = l && l.d, f = (i.left - r.left) / (u || 1), c = (i.top - r.top) / (s || 1);
|
|
346
|
+
t.animatingX = !!f, t.animatingY = !!c, m(t, "transform", "translate3d(" + f + "px," + c + "px,0)"), this.forRepaintDummy = vo(t), m(t, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), m(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
|
|
346
347
|
m(t, "transition", ""), m(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
|
|
347
348
|
}, a);
|
|
348
349
|
}
|
|
349
350
|
}
|
|
350
351
|
};
|
|
351
352
|
}
|
|
352
|
-
function
|
|
353
|
+
function vo(n) {
|
|
353
354
|
return n.offsetWidth;
|
|
354
355
|
}
|
|
355
|
-
function
|
|
356
|
+
function bo(n, e, o, t) {
|
|
356
357
|
return Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) / Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) * t.animation;
|
|
357
358
|
}
|
|
358
|
-
var le = [],
|
|
359
|
+
var le = [], qe = {
|
|
359
360
|
initializeByDefault: !0
|
|
360
361
|
}, Oe = {
|
|
361
362
|
mount: function(e) {
|
|
362
|
-
for (var o in
|
|
363
|
-
|
|
363
|
+
for (var o in qe)
|
|
364
|
+
qe.hasOwnProperty(o) && !(o in e) && (e[o] = qe[o]);
|
|
364
365
|
le.forEach(function(t) {
|
|
365
366
|
if (t.pluginName === e.pluginName)
|
|
366
367
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
@@ -381,11 +382,11 @@ var le = [], Ve = {
|
|
|
381
382
|
});
|
|
382
383
|
},
|
|
383
384
|
initializePlugins: function(e, o, t, i) {
|
|
384
|
-
le.forEach(function(
|
|
385
|
-
var
|
|
386
|
-
if (!(!e.options[
|
|
387
|
-
var
|
|
388
|
-
|
|
385
|
+
le.forEach(function(l) {
|
|
386
|
+
var u = l.pluginName;
|
|
387
|
+
if (!(!e.options[u] && !l.initializeByDefault)) {
|
|
388
|
+
var s = new l(e, o, e.options);
|
|
389
|
+
s.sortable = e, s.options = e.options, e[u] = s, V(t, s.defaults);
|
|
389
390
|
}
|
|
390
391
|
});
|
|
391
392
|
for (var r in e.options)
|
|
@@ -407,22 +408,22 @@ var le = [], Ve = {
|
|
|
407
408
|
}), i;
|
|
408
409
|
}
|
|
409
410
|
};
|
|
410
|
-
function
|
|
411
|
-
var e = n.sortable, o = n.rootEl, t = n.name, i = n.targetEl, r = n.cloneEl, a = n.toEl,
|
|
411
|
+
function wo(n) {
|
|
412
|
+
var e = n.sortable, o = n.rootEl, t = n.name, i = n.targetEl, r = n.cloneEl, a = n.toEl, l = n.fromEl, u = n.oldIndex, s = n.newIndex, f = n.oldDraggableIndex, c = n.newDraggableIndex, h = n.originalEvent, p = n.putSortable, v = n.extraEventProperties;
|
|
412
413
|
if (e = e || o && o[A], !!e) {
|
|
413
414
|
var E, H = e.options, U = "on" + t.charAt(0).toUpperCase() + t.substr(1);
|
|
414
|
-
window.CustomEvent && !q && !
|
|
415
|
+
window.CustomEvent && !q && !Ce ? E = new CustomEvent(t, {
|
|
415
416
|
bubbles: !0,
|
|
416
417
|
cancelable: !0
|
|
417
|
-
}) : (E = document.createEvent("Event"), E.initEvent(t, !0, !0)), E.to = a || o, E.from =
|
|
418
|
+
}) : (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 = u, E.newIndex = s, E.oldDraggableIndex = f, E.newDraggableIndex = c, E.originalEvent = h, E.pullMode = p ? p.lastPutMode : void 0;
|
|
418
419
|
var I = G(G({}, v), Oe.getEventProperties(t, e));
|
|
419
420
|
for (var k in I)
|
|
420
421
|
E[k] = I[k];
|
|
421
422
|
o && o.dispatchEvent(E), H[U] && H[U].call(e, E);
|
|
422
423
|
}
|
|
423
424
|
}
|
|
424
|
-
var
|
|
425
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r =
|
|
425
|
+
var yo = ["evt"], x = function(e, o) {
|
|
426
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = co(t, yo);
|
|
426
427
|
Oe.pluginEvent.bind(g)(e, o, G({
|
|
427
428
|
dragEl: d,
|
|
428
429
|
parentEl: _,
|
|
@@ -433,7 +434,7 @@ var wo = ["evt"], x = function(e, o) {
|
|
|
433
434
|
cloneEl: T,
|
|
434
435
|
cloneHidden: Q,
|
|
435
436
|
dragStarted: be,
|
|
436
|
-
putSortable:
|
|
437
|
+
putSortable: C,
|
|
437
438
|
activeSortable: g.active,
|
|
438
439
|
originalEvent: i,
|
|
439
440
|
oldIndex: de,
|
|
@@ -448,18 +449,18 @@ var wo = ["evt"], x = function(e, o) {
|
|
|
448
449
|
cloneNowShown: function() {
|
|
449
450
|
Q = !1;
|
|
450
451
|
},
|
|
451
|
-
dispatchSortableEvent: function(
|
|
452
|
+
dispatchSortableEvent: function(l) {
|
|
452
453
|
P({
|
|
453
454
|
sortable: o,
|
|
454
|
-
name:
|
|
455
|
+
name: l,
|
|
455
456
|
originalEvent: i
|
|
456
457
|
});
|
|
457
458
|
}
|
|
458
459
|
}, r));
|
|
459
460
|
};
|
|
460
461
|
function P(n) {
|
|
461
|
-
|
|
462
|
-
putSortable:
|
|
462
|
+
wo(G({
|
|
463
|
+
putSortable: C,
|
|
463
464
|
cloneEl: T,
|
|
464
465
|
targetEl: d,
|
|
465
466
|
rootEl: D,
|
|
@@ -469,41 +470,41 @@ function P(n) {
|
|
|
469
470
|
newDraggableIndex: K
|
|
470
471
|
}, n));
|
|
471
472
|
}
|
|
472
|
-
var d, _, b, D, ae, Re, T, Q, de, F, Te, K, Pe,
|
|
473
|
-
if (
|
|
473
|
+
var d, _, b, D, ae, Re, T, Q, de, F, Te, K, Pe, C, ue = !1, $e = !1, ze = [], ie, Y, Ze, Je, Et, Dt, be, se, _e, Se = !1, xe = !1, Fe, O, Ke = [], nt = !1, Ge = [], We = typeof document < "u", Ae = ut, Tt = Ce || q ? "cssFloat" : "float", Eo = We && !Lt && !ut && "draggable" in document.createElement("div"), $t = (function() {
|
|
474
|
+
if (We) {
|
|
474
475
|
if (q)
|
|
475
476
|
return !1;
|
|
476
477
|
var n = document.createElement("x");
|
|
477
478
|
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
478
479
|
}
|
|
479
480
|
})(), zt = function(e, o) {
|
|
480
|
-
var t = m(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r = fe(e, 0, o), a = fe(e, 1, o),
|
|
481
|
+
var t = m(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r = fe(e, 0, o), a = fe(e, 1, o), l = r && m(r), u = a && m(a), s = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + M(r).width, f = u && parseInt(u.marginLeft) + parseInt(u.marginRight) + M(a).width;
|
|
481
482
|
if (t.display === "flex")
|
|
482
483
|
return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
483
484
|
if (t.display === "grid")
|
|
484
485
|
return t.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
485
|
-
if (r &&
|
|
486
|
-
var c =
|
|
487
|
-
return a && (
|
|
486
|
+
if (r && l.float && l.float !== "none") {
|
|
487
|
+
var c = l.float === "left" ? "left" : "right";
|
|
488
|
+
return a && (u.clear === "both" || u.clear === c) ? "vertical" : "horizontal";
|
|
488
489
|
}
|
|
489
|
-
return r && (
|
|
490
|
-
},
|
|
491
|
-
var i = t ? e.left : e.top, r = t ? e.right : e.bottom, a = t ? e.width : e.height,
|
|
492
|
-
return i ===
|
|
493
|
-
},
|
|
490
|
+
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || s >= i && t[Tt] === "none" || a && t[Tt] === "none" && s + f > i) ? "vertical" : "horizontal";
|
|
491
|
+
}, Do = function(e, o, t) {
|
|
492
|
+
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, u = t ? o.right : o.bottom, s = t ? o.width : o.height;
|
|
493
|
+
return i === l || r === u || i + a / 2 === l + s / 2;
|
|
494
|
+
}, To = function(e, o) {
|
|
494
495
|
var t;
|
|
495
|
-
return
|
|
496
|
+
return ze.some(function(i) {
|
|
496
497
|
var r = i[A].options.emptyInsertThreshold;
|
|
497
498
|
if (!(!r || dt(i))) {
|
|
498
|
-
var a =
|
|
499
|
-
if (
|
|
499
|
+
var a = M(i), l = e >= a.left - r && e <= a.right + r, u = o >= a.top - r && o <= a.bottom + r;
|
|
500
|
+
if (l && u)
|
|
500
501
|
return t = i;
|
|
501
502
|
}
|
|
502
503
|
}), t;
|
|
503
504
|
}, Gt = function(e) {
|
|
504
505
|
function o(r, a) {
|
|
505
|
-
return function(
|
|
506
|
-
var c =
|
|
506
|
+
return function(l, u, s, f) {
|
|
507
|
+
var c = l.options.group.name && u.options.group.name && l.options.group.name === u.options.group.name;
|
|
507
508
|
if (r == null && (a || c))
|
|
508
509
|
return !0;
|
|
509
510
|
if (r == null || r === !1)
|
|
@@ -511,8 +512,8 @@ var d, _, b, D, ae, Re, T, Q, de, F, Te, K, Pe, M, ue = !1, Xe = !1, $e = [], ie
|
|
|
511
512
|
if (a && r === "clone")
|
|
512
513
|
return r;
|
|
513
514
|
if (typeof r == "function")
|
|
514
|
-
return o(r(
|
|
515
|
-
var h = (a ?
|
|
515
|
+
return o(r(l, u, s, f), a)(l, u, s, f);
|
|
516
|
+
var h = (a ? l : u).options.group.name;
|
|
516
517
|
return r === !0 || typeof r == "string" && r === h || r.join && r.indexOf(h) > -1;
|
|
517
518
|
};
|
|
518
519
|
}
|
|
@@ -525,14 +526,14 @@ var d, _, b, D, ae, Re, T, Q, de, F, Te, K, Pe, M, ue = !1, Xe = !1, $e = [], ie
|
|
|
525
526
|
}, Wt = function() {
|
|
526
527
|
!$t && b && m(b, "display", "");
|
|
527
528
|
};
|
|
528
|
-
|
|
529
|
-
if (
|
|
530
|
-
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(),
|
|
529
|
+
We && !Lt && document.addEventListener("click", function(n) {
|
|
530
|
+
if ($e)
|
|
531
|
+
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), $e = !1, !1;
|
|
531
532
|
}, !0);
|
|
532
533
|
var re = function(e) {
|
|
533
534
|
if (d) {
|
|
534
535
|
e = e.touches ? e.touches[0] : e;
|
|
535
|
-
var o =
|
|
536
|
+
var o = To(e.clientX, e.clientY);
|
|
536
537
|
if (o) {
|
|
537
538
|
var t = {};
|
|
538
539
|
for (var i in e)
|
|
@@ -540,7 +541,7 @@ var re = function(e) {
|
|
|
540
541
|
t.target = t.rootEl = o, t.preventDefault = void 0, t.stopPropagation = void 0, o[A]._onDragOver(t);
|
|
541
542
|
}
|
|
542
543
|
}
|
|
543
|
-
},
|
|
544
|
+
}, _o = function(e) {
|
|
544
545
|
d && d.parentNode[A]._isOutsideThisEl(e.target);
|
|
545
546
|
};
|
|
546
547
|
function g(n, e) {
|
|
@@ -572,8 +573,8 @@ function g(n, e) {
|
|
|
572
573
|
preventOnFilter: !0,
|
|
573
574
|
animation: 0,
|
|
574
575
|
easing: null,
|
|
575
|
-
setData: function(a,
|
|
576
|
-
a.setData("Text",
|
|
576
|
+
setData: function(a, l) {
|
|
577
|
+
a.setData("Text", l.textContent);
|
|
577
578
|
},
|
|
578
579
|
dropBubble: !1,
|
|
579
580
|
dragoverBubble: !1,
|
|
@@ -599,7 +600,7 @@ function g(n, e) {
|
|
|
599
600
|
Gt(e);
|
|
600
601
|
for (var i in this)
|
|
601
602
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
602
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
603
|
+
this.nativeDraggable = e.forceFallback ? !1 : Eo, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? y(n, "pointerdown", this._onTapStart) : (y(n, "mousedown", this._onTapStart), y(n, "touchstart", this._onTapStart)), this.nativeDraggable && (y(n, "dragover", this), y(n, "dragenter", this)), ze.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), V(this, go());
|
|
603
604
|
}
|
|
604
605
|
g.prototype = /** @lends Sortable.prototype */
|
|
605
606
|
{
|
|
@@ -612,15 +613,15 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
612
613
|
},
|
|
613
614
|
_onTapStart: function(e) {
|
|
614
615
|
if (e.cancelable) {
|
|
615
|
-
var o = this, t = this.el, i = this.options, r = i.preventOnFilter, a = e.type,
|
|
616
|
-
if (
|
|
617
|
-
if (de = B(
|
|
618
|
-
if (f.call(this, e,
|
|
616
|
+
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, u = (l || e).target, s = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || u, f = i.filter;
|
|
617
|
+
if (Ao(t), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !s.isContentEditable && !(!this.nativeDraggable && Ee && u && u.tagName.toUpperCase() === "SELECT") && (u = X(u, i.draggable, t, !1), !(u && u.animated) && Re !== u)) {
|
|
618
|
+
if (de = B(u), Te = B(u, i.draggable), typeof f == "function") {
|
|
619
|
+
if (f.call(this, e, u, this)) {
|
|
619
620
|
P({
|
|
620
621
|
sortable: o,
|
|
621
|
-
rootEl:
|
|
622
|
+
rootEl: s,
|
|
622
623
|
name: "filter",
|
|
623
|
-
targetEl:
|
|
624
|
+
targetEl: u,
|
|
624
625
|
toEl: t,
|
|
625
626
|
fromEl: t
|
|
626
627
|
}), x("filter", o, {
|
|
@@ -629,12 +630,12 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
629
630
|
return;
|
|
630
631
|
}
|
|
631
632
|
} else if (f && (f = f.split(",").some(function(c) {
|
|
632
|
-
if (c = X(
|
|
633
|
+
if (c = X(s, c.trim(), t, !1), c)
|
|
633
634
|
return P({
|
|
634
635
|
sortable: o,
|
|
635
636
|
rootEl: c,
|
|
636
637
|
name: "filter",
|
|
637
|
-
targetEl:
|
|
638
|
+
targetEl: u,
|
|
638
639
|
fromEl: t,
|
|
639
640
|
toEl: t
|
|
640
641
|
}), x("filter", o, {
|
|
@@ -644,19 +645,19 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
644
645
|
r && e.preventDefault();
|
|
645
646
|
return;
|
|
646
647
|
}
|
|
647
|
-
i.handle && !X(
|
|
648
|
+
i.handle && !X(s, i.handle, t, !1) || this._prepareDragStart(e, l, u);
|
|
648
649
|
}
|
|
649
650
|
}
|
|
650
651
|
},
|
|
651
652
|
_prepareDragStart: function(e, o, t) {
|
|
652
|
-
var i = this, r = i.el, a = i.options,
|
|
653
|
+
var i = this, r = i.el, a = i.options, l = r.ownerDocument, u;
|
|
653
654
|
if (t && !d && t.parentNode === r) {
|
|
654
|
-
var
|
|
655
|
+
var s = M(t);
|
|
655
656
|
if (D = r, d = t, _ = d.parentNode, ae = d.nextSibling, Re = t, Pe = a.group, g.dragged = d, ie = {
|
|
656
657
|
target: d,
|
|
657
658
|
clientX: (o || e).clientX,
|
|
658
659
|
clientY: (o || e).clientY
|
|
659
|
-
}, Et = ie.clientX -
|
|
660
|
+
}, Et = ie.clientX - s.left, Dt = ie.clientY - s.top, this._lastX = (o || e).clientX, this._lastY = (o || e).clientY, d.style["will-change"] = "all", u = function() {
|
|
660
661
|
if (x("delayEnded", i, {
|
|
661
662
|
evt: e
|
|
662
663
|
}), g.eventCanceled) {
|
|
@@ -669,17 +670,17 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
669
670
|
originalEvent: e
|
|
670
671
|
}), R(d, a.chosenClass, !0);
|
|
671
672
|
}, a.ignore.split(",").forEach(function(f) {
|
|
672
|
-
Bt(d, f.trim(),
|
|
673
|
-
}), y(
|
|
673
|
+
Bt(d, f.trim(), Qe);
|
|
674
|
+
}), y(l, "dragover", re), y(l, "mousemove", re), y(l, "touchmove", re), a.supportPointer ? (y(l, "pointerup", i._onDrop), !this.nativeDraggable && y(l, "pointercancel", i._onDrop)) : (y(l, "mouseup", i._onDrop), y(l, "touchend", i._onDrop), y(l, "touchcancel", i._onDrop)), vt && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), x("delayStart", this, {
|
|
674
675
|
evt: e
|
|
675
|
-
}), a.delay && (!a.delayOnTouchOnly || o) && (!this.nativeDraggable || !(
|
|
676
|
+
}), a.delay && (!a.delayOnTouchOnly || o) && (!this.nativeDraggable || !(Ce || q))) {
|
|
676
677
|
if (g.eventCanceled) {
|
|
677
678
|
this._onDrop();
|
|
678
679
|
return;
|
|
679
680
|
}
|
|
680
|
-
a.supportPointer ? (y(
|
|
681
|
+
a.supportPointer ? (y(l, "pointerup", i._disableDelayedDrag), y(l, "pointercancel", i._disableDelayedDrag)) : (y(l, "mouseup", i._disableDelayedDrag), y(l, "touchend", i._disableDelayedDrag), y(l, "touchcancel", i._disableDelayedDrag)), y(l, "mousemove", i._delayedDragTouchMoveHandler), y(l, "touchmove", i._delayedDragTouchMoveHandler), a.supportPointer && y(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(u, a.delay);
|
|
681
682
|
} else
|
|
682
|
-
|
|
683
|
+
u();
|
|
683
684
|
}
|
|
684
685
|
},
|
|
685
686
|
_delayedDragTouchMoveHandler: function(e) {
|
|
@@ -687,7 +688,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
687
688
|
Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
688
689
|
},
|
|
689
690
|
_disableDelayedDrag: function() {
|
|
690
|
-
d &&
|
|
691
|
+
d && Qe(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
691
692
|
},
|
|
692
693
|
_disableDelayedDragEvents: function() {
|
|
693
694
|
var e = this.el.ownerDocument;
|
|
@@ -706,7 +707,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
706
707
|
if (ue = !1, D && d) {
|
|
707
708
|
x("dragStarted", this, {
|
|
708
709
|
evt: o
|
|
709
|
-
}), this.nativeDraggable && y(document, "dragover",
|
|
710
|
+
}), this.nativeDraggable && y(document, "dragover", _o);
|
|
710
711
|
var t = this.options;
|
|
711
712
|
!e && R(d, t.dragClass, !1), R(d, t.ghostClass, !0), g.active = this, e && this._appendGhost(), P({
|
|
712
713
|
sortable: this,
|
|
@@ -740,14 +741,14 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
740
741
|
},
|
|
741
742
|
_onTouchMove: function(e) {
|
|
742
743
|
if (ie) {
|
|
743
|
-
var o = this.options, t = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, a = b && ce(b, !0),
|
|
744
|
+
var o = this.options, t = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, a = b && ce(b, !0), l = b && a && a.a, u = b && a && a.d, s = Ae && O && yt(O), f = (r.clientX - ie.clientX + i.x) / (l || 1) + (s ? s[0] - Ke[0] : 0) / (l || 1), c = (r.clientY - ie.clientY + i.y) / (u || 1) + (s ? s[1] - Ke[1] : 0) / (u || 1);
|
|
744
745
|
if (!g.active && !ue) {
|
|
745
746
|
if (t && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < t)
|
|
746
747
|
return;
|
|
747
748
|
this._onDragStart(e, !0);
|
|
748
749
|
}
|
|
749
750
|
if (b) {
|
|
750
|
-
a ? (a.e += f - (
|
|
751
|
+
a ? (a.e += f - (Ze || 0), a.f += c - (Je || 0)) : a = {
|
|
751
752
|
a: 1,
|
|
752
753
|
b: 0,
|
|
753
754
|
c: 0,
|
|
@@ -756,18 +757,18 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
756
757
|
f: c
|
|
757
758
|
};
|
|
758
759
|
var h = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
759
|
-
m(b, "webkitTransform", h), m(b, "mozTransform", h), m(b, "msTransform", h), m(b, "transform", h),
|
|
760
|
+
m(b, "webkitTransform", h), m(b, "mozTransform", h), m(b, "msTransform", h), m(b, "transform", h), Ze = f, Je = c, Y = r;
|
|
760
761
|
}
|
|
761
762
|
e.cancelable && e.preventDefault();
|
|
762
763
|
}
|
|
763
764
|
},
|
|
764
765
|
_appendGhost: function() {
|
|
765
766
|
if (!b) {
|
|
766
|
-
var e = this.options.fallbackOnBody ? document.body : D, o =
|
|
767
|
+
var e = this.options.fallbackOnBody ? document.body : D, o = M(d, !0, Ae, !0, e), t = this.options;
|
|
767
768
|
if (Ae) {
|
|
768
769
|
for (O = e; m(O, "position") === "static" && m(O, "transform") === "none" && O !== document; )
|
|
769
770
|
O = O.parentNode;
|
|
770
|
-
O !== document.body && O !== document.documentElement ? (O === document && (O = z()), o.top += O.scrollTop, o.left += O.scrollLeft) : O = z(),
|
|
771
|
+
O !== document.body && O !== document.documentElement ? (O === document && (O = z()), o.top += O.scrollTop, o.left += O.scrollLeft) : O = z(), Ke = yt(O);
|
|
771
772
|
}
|
|
772
773
|
b = d.cloneNode(!0), R(b, t.ghostClass, !1), R(b, t.fallbackClass, !0), R(b, t.dragClass, !0), m(b, "transition", ""), m(b, "transform", ""), m(b, "box-sizing", "border-box"), m(b, "margin", 0), m(b, "top", o.top), m(b, "left", o.left), m(b, "width", o.width), m(b, "height", o.height), m(b, "opacity", "0.8"), m(b, "position", Ae ? "absolute" : "fixed"), m(b, "zIndex", "100000"), m(b, "pointerEvents", "none"), g.ghost = b, e.appendChild(b), m(b, "transform-origin", Et / parseInt(b.style.width) * 100 + "% " + Dt / parseInt(b.style.height) * 100 + "%");
|
|
773
774
|
}
|
|
@@ -785,11 +786,11 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
785
786
|
sortable: t,
|
|
786
787
|
name: "clone"
|
|
787
788
|
}));
|
|
788
|
-
}), !o && R(d, r.dragClass, !0), o ? (
|
|
789
|
+
}), !o && R(d, r.dragClass, !0), o ? ($e = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (w(document, "mouseup", t._onDrop), w(document, "touchend", t._onDrop), w(document, "touchcancel", t._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(t, i, d)), y(document, "drop", t), m(d, "transform", "translateZ(0)")), ue = !0, t._dragStartId = Be(t._dragStarted.bind(t, o, e)), y(document, "selectstart", t), be = !0, window.getSelection().removeAllRanges(), Ee && m(document.body, "user-select", "none");
|
|
789
790
|
},
|
|
790
791
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
791
792
|
_onDragOver: function(e) {
|
|
792
|
-
var o = this.el, t = e.target, i, r, a,
|
|
793
|
+
var o = this.el, t = e.target, i, r, a, l = this.options, u = l.group, s = g.active, f = Pe === u, c = l.sort, h = C || s, p, v = this, E = !1;
|
|
793
794
|
if (nt) return;
|
|
794
795
|
function H(ve, qt) {
|
|
795
796
|
x(ve, v, G({
|
|
@@ -804,7 +805,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
804
805
|
target: t,
|
|
805
806
|
completed: I,
|
|
806
807
|
onMove: function(ht, Zt) {
|
|
807
|
-
return Ne(D, o, d, i, ht,
|
|
808
|
+
return Ne(D, o, d, i, ht, M(ht), e, Zt);
|
|
808
809
|
},
|
|
809
810
|
changed: k
|
|
810
811
|
}, qt));
|
|
@@ -815,12 +816,12 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
815
816
|
function I(ve) {
|
|
816
817
|
return H("dragOverCompleted", {
|
|
817
818
|
insertion: ve
|
|
818
|
-
}), ve && (f ?
|
|
819
|
+
}), ve && (f ? s._hideClone() : s._showClone(v), v !== h && (R(d, C ? C.options.ghostClass : s.options.ghostClass, !1), R(d, l.ghostClass, !0)), C !== v && v !== g.active ? C = v : v === g.active && C && (C = null), h === v && (v._ignoreWhileAnimating = t), v.animateAll(function() {
|
|
819
820
|
H("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
820
|
-
}), v !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (t === d && !d.animated || t === o && !t.animated) && (se = null), !
|
|
821
|
+
}), v !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (t === d && !d.animated || t === o && !t.animated) && (se = null), !l.dragoverBubble && !e.rootEl && t !== document && (d.parentNode[A]._isOutsideThisEl(e.target), !ve && re(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), E = !0;
|
|
821
822
|
}
|
|
822
823
|
function k() {
|
|
823
|
-
F = B(d), K = B(d,
|
|
824
|
+
F = B(d), K = B(d, l.draggable), P({
|
|
824
825
|
sortable: v,
|
|
825
826
|
name: "change",
|
|
826
827
|
toEl: o,
|
|
@@ -829,29 +830,29 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
829
830
|
originalEvent: e
|
|
830
831
|
});
|
|
831
832
|
}
|
|
832
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = X(t,
|
|
833
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = X(t, l.draggable, o, !0), H("dragOver"), g.eventCanceled) return E;
|
|
833
834
|
if (d.contains(e.target) || t.animated && t.animatingX && t.animatingY || v._ignoreWhileAnimating === t)
|
|
834
835
|
return I(!1);
|
|
835
|
-
if (
|
|
836
|
-
if (p = this._getDirection(e, t) === "vertical", i =
|
|
836
|
+
if ($e = !1, s && !l.disabled && (f ? c || (a = _ !== D) : C === this || (this.lastPutMode = Pe.checkPull(this, s, d, e)) && u.checkPut(this, s, d, e))) {
|
|
837
|
+
if (p = this._getDirection(e, t) === "vertical", i = M(d), H("dragOverValid"), g.eventCanceled) return E;
|
|
837
838
|
if (a)
|
|
838
839
|
return _ = D, U(), this._hideClone(), H("revert"), g.eventCanceled || (ae ? D.insertBefore(d, ae) : D.appendChild(d)), I(!0);
|
|
839
|
-
var N = dt(o,
|
|
840
|
-
if (!N ||
|
|
840
|
+
var N = dt(o, l.draggable);
|
|
841
|
+
if (!N || Oo(e, p, this) && !N.animated) {
|
|
841
842
|
if (N === d)
|
|
842
843
|
return I(!1);
|
|
843
|
-
if (N && o === e.target && (t = N), t && (r =
|
|
844
|
+
if (N && o === e.target && (t = N), t && (r = M(t)), Ne(D, o, d, i, t, r, e, !!t) !== !1)
|
|
844
845
|
return U(), N && N.nextSibling ? o.insertBefore(d, N.nextSibling) : o.appendChild(d), _ = o, k(), I(!0);
|
|
845
846
|
} else if (N && Co(e, p, this)) {
|
|
846
|
-
var te = fe(o, 0,
|
|
847
|
+
var te = fe(o, 0, l, !0);
|
|
847
848
|
if (te === d)
|
|
848
849
|
return I(!1);
|
|
849
|
-
if (t = te, r =
|
|
850
|
+
if (t = te, r = M(t), Ne(D, o, d, i, t, r, e, !1) !== !1)
|
|
850
851
|
return U(), o.insertBefore(d, te), _ = o, k(), I(!0);
|
|
851
852
|
} else if (t.parentNode === o) {
|
|
852
|
-
r =
|
|
853
|
-
var $ = 0, oe, he = d.parentNode !== o, L = !
|
|
854
|
-
se !== t && (oe = r[pe], Se = !1, xe = !L &&
|
|
853
|
+
r = M(t);
|
|
854
|
+
var $ = 0, oe, he = d.parentNode !== o, L = !Do(d.animated && d.toRect || i, t.animated && t.toRect || r, p), pe = p ? "top" : "left", Z = wt(t, "top", "top") || wt(d, "top", "top"), me = Z ? Z.scrollTop : void 0;
|
|
855
|
+
se !== t && (oe = r[pe], Se = !1, xe = !L && l.invertSwap || he), $ = Io(e, t, r, p, L ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, xe, se === t);
|
|
855
856
|
var W;
|
|
856
857
|
if ($ !== 0) {
|
|
857
858
|
var ne = B(d);
|
|
@@ -866,7 +867,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
866
867
|
J = $ === 1;
|
|
867
868
|
var Ie = Ne(D, o, d, i, t, r, e, J);
|
|
868
869
|
if (Ie !== !1)
|
|
869
|
-
return (Ie === 1 || Ie === -1) && (J = Ie === 1), nt = !0, setTimeout(
|
|
870
|
+
return (Ie === 1 || Ie === -1) && (J = Ie === 1), nt = !0, setTimeout(Mo, 30), U(), J && !ge ? o.appendChild(d) : t.parentNode.insertBefore(d, J ? ge : t), Z && kt(Z, 0, me - Z.scrollTop), _ = d.parentNode, oe !== void 0 && !xe && (Fe = Math.abs(oe - M(t)[pe])), k(), I(!0);
|
|
870
871
|
}
|
|
871
872
|
if (o.contains(d))
|
|
872
873
|
return I(!1);
|
|
@@ -889,7 +890,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
889
890
|
this._nulling();
|
|
890
891
|
return;
|
|
891
892
|
}
|
|
892
|
-
ue = !1, xe = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), it(this.cloneId), it(this._dragStartId), this.nativeDraggable && (w(document, "drop", this), w(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ee && m(document.body, "user-select", ""), m(d, "transform", ""), e && (be && (e.cancelable && e.preventDefault(), !t.dropBubble && e.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (D === _ ||
|
|
893
|
+
ue = !1, xe = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), it(this.cloneId), it(this._dragStartId), this.nativeDraggable && (w(document, "drop", this), w(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ee && m(document.body, "user-select", ""), m(d, "transform", ""), e && (be && (e.cancelable && e.preventDefault(), !t.dropBubble && e.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (D === _ || C && C.lastPutMode !== "clone") && T && T.parentNode && T.parentNode.removeChild(T), d && (this.nativeDraggable && w(d, "dragend", this), Qe(d), d.style["will-change"] = "", be && !ue && R(d, C ? C.options.ghostClass : this.options.ghostClass, !1), R(d, this.options.chosenClass, !1), P({
|
|
893
894
|
sortable: this,
|
|
894
895
|
name: "unchoose",
|
|
895
896
|
toEl: _,
|
|
@@ -918,7 +919,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
918
919
|
name: "sort",
|
|
919
920
|
toEl: _,
|
|
920
921
|
originalEvent: e
|
|
921
|
-
})),
|
|
922
|
+
})), C && C.save()) : F !== de && F >= 0 && (P({
|
|
922
923
|
sortable: this,
|
|
923
924
|
name: "update",
|
|
924
925
|
toEl: _,
|
|
@@ -936,9 +937,9 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
936
937
|
}), this.save()))), this._nulling();
|
|
937
938
|
},
|
|
938
939
|
_nulling: function() {
|
|
939
|
-
x("nulling", this), D = d = _ = b = ae = T = Re = Q = ie = Y = be = F = K = de = Te = se = _e =
|
|
940
|
+
x("nulling", this), D = d = _ = b = ae = T = Re = Q = ie = Y = be = F = K = de = Te = se = _e = C = Pe = g.dragged = g.ghost = g.clone = g.active = null, Ge.forEach(function(e) {
|
|
940
941
|
e.checked = !0;
|
|
941
|
-
}),
|
|
942
|
+
}), Ge.length = Ze = Je = 0;
|
|
942
943
|
},
|
|
943
944
|
handleEvent: function(e) {
|
|
944
945
|
switch (e.type) {
|
|
@@ -948,7 +949,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
948
949
|
break;
|
|
949
950
|
case "dragenter":
|
|
950
951
|
case "dragover":
|
|
951
|
-
d && (this._onDragOver(e),
|
|
952
|
+
d && (this._onDragOver(e), So(e));
|
|
952
953
|
break;
|
|
953
954
|
case "selectstart":
|
|
954
955
|
e.preventDefault();
|
|
@@ -961,7 +962,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
961
962
|
*/
|
|
962
963
|
toArray: function() {
|
|
963
964
|
for (var e = [], o, t = this.el.children, i = 0, r = t.length, a = this.options; i < r; i++)
|
|
964
|
-
o = t[i], X(o, a.draggable, this.el, !1) && e.push(o.getAttribute(a.dataIdAttr) ||
|
|
965
|
+
o = t[i], X(o, a.draggable, this.el, !1) && e.push(o.getAttribute(a.dataIdAttr) || xo(o));
|
|
965
966
|
return e;
|
|
966
967
|
},
|
|
967
968
|
/**
|
|
@@ -971,8 +972,8 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
971
972
|
sort: function(e, o) {
|
|
972
973
|
var t = {}, i = this.el;
|
|
973
974
|
this.toArray().forEach(function(r, a) {
|
|
974
|
-
var
|
|
975
|
-
X(
|
|
975
|
+
var l = i.children[a];
|
|
976
|
+
X(l, this.options.draggable, i, !1) && (t[r] = l);
|
|
976
977
|
}, this), o && this.captureAnimationState(), e.forEach(function(r) {
|
|
977
978
|
t[r] && (i.removeChild(t[r]), i.appendChild(t[r]));
|
|
978
979
|
}), o && this.animateAll();
|
|
@@ -1014,7 +1015,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1014
1015
|
var e = this.el;
|
|
1015
1016
|
e[A] = null, w(e, "mousedown", this._onTapStart), w(e, "touchstart", this._onTapStart), w(e, "pointerdown", this._onTapStart), this.nativeDraggable && (w(e, "dragover", this), w(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(o) {
|
|
1016
1017
|
o.removeAttribute("draggable");
|
|
1017
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1018
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), ze.splice(ze.indexOf(this.el), 1), this.el = e = null;
|
|
1018
1019
|
},
|
|
1019
1020
|
_hideClone: function() {
|
|
1020
1021
|
if (!Q) {
|
|
@@ -1033,56 +1034,56 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1033
1034
|
}
|
|
1034
1035
|
}
|
|
1035
1036
|
};
|
|
1036
|
-
function
|
|
1037
|
+
function So(n) {
|
|
1037
1038
|
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
1038
1039
|
}
|
|
1039
|
-
function Ne(n, e, o, t, i, r, a,
|
|
1040
|
-
var
|
|
1041
|
-
return window.CustomEvent && !q && !
|
|
1040
|
+
function Ne(n, e, o, t, i, r, a, l) {
|
|
1041
|
+
var u, s = n[A], f = s.options.onMove, c;
|
|
1042
|
+
return window.CustomEvent && !q && !Ce ? u = new CustomEvent("move", {
|
|
1042
1043
|
bubbles: !0,
|
|
1043
1044
|
cancelable: !0
|
|
1044
|
-
}) : (
|
|
1045
|
+
}) : (u = document.createEvent("Event"), u.initEvent("move", !0, !0)), u.to = e, u.from = n, u.dragged = o, u.draggedRect = t, u.related = i || e, u.relatedRect = r || M(e), u.willInsertAfter = l, u.originalEvent = a, n.dispatchEvent(u), f && (c = f.call(s, u, a)), c;
|
|
1045
1046
|
}
|
|
1046
|
-
function
|
|
1047
|
+
function Qe(n) {
|
|
1047
1048
|
n.draggable = !1;
|
|
1048
1049
|
}
|
|
1049
|
-
function
|
|
1050
|
+
function Mo() {
|
|
1050
1051
|
nt = !1;
|
|
1051
1052
|
}
|
|
1052
1053
|
function Co(n, e, o) {
|
|
1053
|
-
var t =
|
|
1054
|
+
var t = M(fe(o.el, 0, o.options, !0)), i = Xt(o.el, o.options, b), r = 10;
|
|
1054
1055
|
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;
|
|
1055
1056
|
}
|
|
1056
|
-
function
|
|
1057
|
-
var t =
|
|
1057
|
+
function Oo(n, e, o) {
|
|
1058
|
+
var t = M(dt(o.el, o.options.draggable)), i = Xt(o.el, o.options, b), r = 10;
|
|
1058
1059
|
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;
|
|
1059
1060
|
}
|
|
1060
|
-
function
|
|
1061
|
-
var
|
|
1061
|
+
function Io(n, e, o, t, i, r, a, l) {
|
|
1062
|
+
var u = t ? n.clientY : n.clientX, s = t ? o.height : o.width, f = t ? o.top : o.left, c = t ? o.bottom : o.right, h = !1;
|
|
1062
1063
|
if (!a) {
|
|
1063
|
-
if (
|
|
1064
|
-
if (!Se && (_e === 1 ?
|
|
1064
|
+
if (l && Fe < s * i) {
|
|
1065
|
+
if (!Se && (_e === 1 ? u > f + s * r / 2 : u < c - s * r / 2) && (Se = !0), Se)
|
|
1065
1066
|
h = !0;
|
|
1066
|
-
else if (_e === 1 ?
|
|
1067
|
+
else if (_e === 1 ? u < f + Fe : u > c - Fe)
|
|
1067
1068
|
return -_e;
|
|
1068
|
-
} else if (
|
|
1069
|
-
return
|
|
1069
|
+
} else if (u > f + s * (1 - i) / 2 && u < c - s * (1 - i) / 2)
|
|
1070
|
+
return Po(e);
|
|
1070
1071
|
}
|
|
1071
|
-
return h = h || a, h && (
|
|
1072
|
+
return h = h || a, h && (u < f + s * r / 2 || u > c - s * r / 2) ? u > f + s / 2 ? 1 : -1 : 0;
|
|
1072
1073
|
}
|
|
1073
|
-
function
|
|
1074
|
+
function Po(n) {
|
|
1074
1075
|
return B(d) < B(n) ? 1 : -1;
|
|
1075
1076
|
}
|
|
1076
|
-
function
|
|
1077
|
+
function xo(n) {
|
|
1077
1078
|
for (var e = n.tagName + n.className + n.src + n.href + n.textContent, o = e.length, t = 0; o--; )
|
|
1078
1079
|
t += e.charCodeAt(o);
|
|
1079
1080
|
return t.toString(36);
|
|
1080
1081
|
}
|
|
1081
|
-
function
|
|
1082
|
-
|
|
1082
|
+
function Ao(n) {
|
|
1083
|
+
Ge.length = 0;
|
|
1083
1084
|
for (var e = n.getElementsByTagName("input"), o = e.length; o--; ) {
|
|
1084
1085
|
var t = e[o];
|
|
1085
|
-
t.checked &&
|
|
1086
|
+
t.checked && Ge.push(t);
|
|
1086
1087
|
}
|
|
1087
1088
|
}
|
|
1088
1089
|
function Be(n) {
|
|
@@ -1091,7 +1092,7 @@ function Be(n) {
|
|
|
1091
1092
|
function it(n) {
|
|
1092
1093
|
return clearTimeout(n);
|
|
1093
1094
|
}
|
|
1094
|
-
|
|
1095
|
+
We && y(document, "touchmove", function(n) {
|
|
1095
1096
|
(g.active || ue) && n.cancelable && n.preventDefault();
|
|
1096
1097
|
});
|
|
1097
1098
|
g.utils = {
|
|
@@ -1102,7 +1103,7 @@ g.utils = {
|
|
|
1102
1103
|
is: function(e, o) {
|
|
1103
1104
|
return !!X(e, o, e, !1);
|
|
1104
1105
|
},
|
|
1105
|
-
extend:
|
|
1106
|
+
extend: po,
|
|
1106
1107
|
throttle: Ht,
|
|
1107
1108
|
closest: X,
|
|
1108
1109
|
toggleClass: R,
|
|
@@ -1129,9 +1130,9 @@ g.mount = function() {
|
|
|
1129
1130
|
g.create = function(n, e) {
|
|
1130
1131
|
return new g(n, e);
|
|
1131
1132
|
};
|
|
1132
|
-
g.version =
|
|
1133
|
-
var S = [], we, rt, at = !1,
|
|
1134
|
-
function
|
|
1133
|
+
g.version = fo;
|
|
1134
|
+
var S = [], we, rt, at = !1, et, tt, Ue, ye;
|
|
1135
|
+
function No() {
|
|
1135
1136
|
function n() {
|
|
1136
1137
|
this.defaults = {
|
|
1137
1138
|
scroll: !0,
|
|
@@ -1153,29 +1154,29 @@ function Ao() {
|
|
|
1153
1154
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1154
1155
|
},
|
|
1155
1156
|
drop: function() {
|
|
1156
|
-
this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : (w(document, "pointermove", this._handleFallbackAutoScroll), w(document, "touchmove", this._handleFallbackAutoScroll), w(document, "mousemove", this._handleFallbackAutoScroll)), _t(), He(),
|
|
1157
|
+
this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : (w(document, "pointermove", this._handleFallbackAutoScroll), w(document, "touchmove", this._handleFallbackAutoScroll), w(document, "mousemove", this._handleFallbackAutoScroll)), _t(), He(), mo();
|
|
1157
1158
|
},
|
|
1158
1159
|
nulling: function() {
|
|
1159
|
-
|
|
1160
|
+
Ue = rt = we = at = ye = et = tt = null, S.length = 0;
|
|
1160
1161
|
},
|
|
1161
1162
|
_handleFallbackAutoScroll: function(o) {
|
|
1162
1163
|
this._handleAutoScroll(o, !0);
|
|
1163
1164
|
},
|
|
1164
1165
|
_handleAutoScroll: function(o, t) {
|
|
1165
|
-
var i = this, r = (o.touches ? o.touches[0] : o).clientX, a = (o.touches ? o.touches[0] : o).clientY,
|
|
1166
|
-
if (
|
|
1167
|
-
|
|
1168
|
-
var
|
|
1169
|
-
at && (!ye || r !==
|
|
1170
|
-
var
|
|
1171
|
-
|
|
1172
|
-
}, 10),
|
|
1166
|
+
var i = this, r = (o.touches ? o.touches[0] : o).clientX, a = (o.touches ? o.touches[0] : o).clientY, l = document.elementFromPoint(r, a);
|
|
1167
|
+
if (Ue = o, t || this.options.forceAutoScrollFallback || Ce || q || Ee) {
|
|
1168
|
+
ot(o, this.options, l, t);
|
|
1169
|
+
var u = ee(l, !0);
|
|
1170
|
+
at && (!ye || r !== et || a !== tt) && (ye && _t(), ye = setInterval(function() {
|
|
1171
|
+
var s = ee(document.elementFromPoint(r, a), !0);
|
|
1172
|
+
s !== u && (u = s, He()), ot(o, i.options, s, t);
|
|
1173
|
+
}, 10), et = r, tt = a);
|
|
1173
1174
|
} else {
|
|
1174
|
-
if (!this.options.bubbleScroll || ee(
|
|
1175
|
+
if (!this.options.bubbleScroll || ee(l, !0) === z()) {
|
|
1175
1176
|
He();
|
|
1176
1177
|
return;
|
|
1177
1178
|
}
|
|
1178
|
-
|
|
1179
|
+
ot(o, this.options, ee(l, !1), !1);
|
|
1179
1180
|
}
|
|
1180
1181
|
}
|
|
1181
1182
|
}, V(n, {
|
|
@@ -1191,35 +1192,35 @@ function He() {
|
|
|
1191
1192
|
function _t() {
|
|
1192
1193
|
clearInterval(ye);
|
|
1193
1194
|
}
|
|
1194
|
-
var
|
|
1195
|
+
var ot = Ht(function(n, e, o, t) {
|
|
1195
1196
|
if (e.scroll) {
|
|
1196
|
-
var i = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity,
|
|
1197
|
+
var i = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, u = z(), s = !1, f;
|
|
1197
1198
|
rt !== o && (rt = o, He(), we = e.scroll, f = e.scrollFn, we === !0 && (we = ee(o, !0)));
|
|
1198
1199
|
var c = 0, h = we;
|
|
1199
1200
|
do {
|
|
1200
|
-
var p = h, v =
|
|
1201
|
-
p ===
|
|
1201
|
+
var p = h, v = M(p), E = v.top, H = v.bottom, U = v.left, I = v.right, k = v.width, N = v.height, te = void 0, $ = void 0, oe = p.scrollWidth, he = p.scrollHeight, L = m(p), pe = p.scrollLeft, Z = p.scrollTop;
|
|
1202
|
+
p === u ? (te = k < oe && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), $ = N < he && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : (te = k < oe && (L.overflowX === "auto" || L.overflowX === "scroll"), $ = N < he && (L.overflowY === "auto" || L.overflowY === "scroll"));
|
|
1202
1203
|
var me = te && (Math.abs(I - i) <= a && pe + k < oe) - (Math.abs(U - i) <= a && !!pe), W = $ && (Math.abs(H - r) <= a && Z + N < he) - (Math.abs(E - r) <= a && !!Z);
|
|
1203
1204
|
if (!S[c])
|
|
1204
1205
|
for (var ne = 0; ne <= c; ne++)
|
|
1205
1206
|
S[ne] || (S[ne] = {});
|
|
1206
|
-
(S[c].vx != me || S[c].vy != W || S[c].el !== p) && (S[c].el = p, S[c].vx = me, S[c].vy = W, clearInterval(S[c].pid), (me != 0 || W != 0) && (
|
|
1207
|
-
t && this.layer === 0 && g.active._onTouchMove(
|
|
1208
|
-
var ge = S[this.layer].vy ? S[this.layer].vy *
|
|
1209
|
-
typeof f == "function" && f.call(g.dragged.parentNode[A], J, ge, n,
|
|
1207
|
+
(S[c].vx != me || S[c].vy != W || S[c].el !== p) && (S[c].el = p, S[c].vx = me, S[c].vy = W, clearInterval(S[c].pid), (me != 0 || W != 0) && (s = !0, S[c].pid = setInterval((function() {
|
|
1208
|
+
t && this.layer === 0 && g.active._onTouchMove(Ue);
|
|
1209
|
+
var ge = S[this.layer].vy ? S[this.layer].vy * l : 0, J = S[this.layer].vx ? S[this.layer].vx * l : 0;
|
|
1210
|
+
typeof f == "function" && f.call(g.dragged.parentNode[A], J, ge, n, Ue, S[this.layer].el) !== "continue" || kt(S[this.layer].el, J, ge);
|
|
1210
1211
|
}).bind({
|
|
1211
1212
|
layer: c
|
|
1212
1213
|
}), 24))), c++;
|
|
1213
|
-
} while (e.bubbleScroll && h !==
|
|
1214
|
-
at =
|
|
1214
|
+
} while (e.bubbleScroll && h !== u && (h = ee(h, !1)));
|
|
1215
|
+
at = s;
|
|
1215
1216
|
}
|
|
1216
1217
|
}, 30), jt = function(e) {
|
|
1217
|
-
var o = e.originalEvent, t = e.putSortable, i = e.dragEl, r = e.activeSortable, a = e.dispatchSortableEvent,
|
|
1218
|
+
var o = e.originalEvent, t = e.putSortable, i = e.dragEl, r = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, u = e.unhideGhostForTarget;
|
|
1218
1219
|
if (o) {
|
|
1219
|
-
var
|
|
1220
|
-
|
|
1220
|
+
var s = t || r;
|
|
1221
|
+
l();
|
|
1221
1222
|
var f = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, c = document.elementFromPoint(f.clientX, f.clientY);
|
|
1222
|
-
|
|
1223
|
+
u(), s && !s.el.contains(c) && (a("spill"), this.onSpill({
|
|
1223
1224
|
dragEl: i,
|
|
1224
1225
|
putSortable: t
|
|
1225
1226
|
}));
|
|
@@ -1256,10 +1257,10 @@ ft.prototype = {
|
|
|
1256
1257
|
V(ft, {
|
|
1257
1258
|
pluginName: "removeOnSpill"
|
|
1258
1259
|
});
|
|
1259
|
-
g.mount(new
|
|
1260
|
+
g.mount(new No());
|
|
1260
1261
|
g.mount(ft, ct);
|
|
1261
|
-
function
|
|
1262
|
-
const t =
|
|
1262
|
+
function tn(n, e = ke({}), o) {
|
|
1263
|
+
const t = ke(null), i = () => {
|
|
1263
1264
|
t.value?.destroy && (t.value.destroy(), t.value = null);
|
|
1264
1265
|
};
|
|
1265
1266
|
if (pt(
|
|
@@ -1291,23 +1292,23 @@ function Qo(n, e = ot({}), o) {
|
|
|
1291
1292
|
t.value && i();
|
|
1292
1293
|
}), !o)
|
|
1293
1294
|
return { draggableElement: t };
|
|
1294
|
-
const { getItemCount: r, getItemIndex: a, onMoveItem:
|
|
1295
|
+
const { getItemCount: r, getItemIndex: a, onMoveItem: l } = o, u = (h, p) => {
|
|
1295
1296
|
const v = r();
|
|
1296
|
-
h < 0 || p < 0 || h >= v || p >= v || h === p ||
|
|
1297
|
-
},
|
|
1297
|
+
h < 0 || p < 0 || h >= v || p >= v || h === p || l(h, p);
|
|
1298
|
+
}, s = (h, p) => {
|
|
1298
1299
|
const v = a(h);
|
|
1299
|
-
|
|
1300
|
+
u(v, v + p);
|
|
1300
1301
|
}, f = (h, p) => {
|
|
1301
1302
|
const v = a(h);
|
|
1302
|
-
|
|
1303
|
+
u(v, p);
|
|
1303
1304
|
};
|
|
1304
1305
|
return {
|
|
1305
1306
|
/** The underlying SortableJS instance. */
|
|
1306
1307
|
draggableElement: t,
|
|
1307
1308
|
/** Moves the given element one position up. */
|
|
1308
|
-
moveItemUp: (h) =>
|
|
1309
|
+
moveItemUp: (h) => s(h, -1),
|
|
1309
1310
|
/** Moves the given element one position down. */
|
|
1310
|
-
moveItemDown: (h) =>
|
|
1311
|
+
moveItemDown: (h) => s(h, 1),
|
|
1311
1312
|
/** Moves the given element to the first position. */
|
|
1312
1313
|
moveItemTop: (h) => f(h, 0),
|
|
1313
1314
|
/** Moves the given element to the last position. */
|
|
@@ -1326,7 +1327,7 @@ function Qo(n, e = ot({}), o) {
|
|
|
1326
1327
|
}
|
|
1327
1328
|
};
|
|
1328
1329
|
}
|
|
1329
|
-
const
|
|
1330
|
+
const Lo = {
|
|
1330
1331
|
"de-DE": { youHaveMovedFromPositionToPosition: "Sie haben {itemLabel} von Position {indexOrigin} an Position {indexTarget} von {total} verschoben." },
|
|
1331
1332
|
"en-GB": { youHaveMovedFromPositionToPosition: "You have moved {itemLabel} from position {indexOrigin} to position {indexTarget} of {total}." },
|
|
1332
1333
|
"en-US": { youHaveMovedFromPositionToPosition: "You have moved {itemLabel} from position {indexOrigin} to position {indexTarget} of {total}." },
|
|
@@ -1337,24 +1338,24 @@ const No = {
|
|
|
1337
1338
|
"ja-JP": { youHaveMovedFromPositionToPosition: "{itemLabel} を {indexOrigin} の位置から {total} の {indexTarget} の位置に移動しました。" },
|
|
1338
1339
|
"pt-BR": { youHaveMovedFromPositionToPosition: "Você moveu {itemLabel} da posição {indexOrigin} para a posição {indexTarget} de {total}." },
|
|
1339
1340
|
"zh-CN": { youHaveMovedFromPositionToPosition: "您已将 {itemLabel} 从 {indexOrigin} 位置移动到 {indexTarget} 位置(共 {total} 个位置)。" }
|
|
1340
|
-
},
|
|
1341
|
-
function
|
|
1342
|
-
const n =
|
|
1341
|
+
}, Ro = 1e3;
|
|
1342
|
+
function on() {
|
|
1343
|
+
const n = ke("");
|
|
1343
1344
|
let e = null;
|
|
1344
|
-
const { t: o } = Nt({ messages:
|
|
1345
|
+
const { t: o } = Nt({ messages: Lo }), t = () => {
|
|
1345
1346
|
e && (clearTimeout(e), e = null);
|
|
1346
1347
|
}, i = (a) => {
|
|
1347
1348
|
t(), n.value = "", e = setTimeout(() => {
|
|
1348
1349
|
n.value = a, e = null;
|
|
1349
|
-
},
|
|
1350
|
-
}, r = ({ itemLabel: a, fromIndex:
|
|
1351
|
-
if (f === "disabled" ||
|
|
1350
|
+
}, Ro);
|
|
1351
|
+
}, r = ({ itemLabel: a, fromIndex: l, toIndex: u, total: s, announcement: f = "" }) => {
|
|
1352
|
+
if (f === "disabled" || l === u)
|
|
1352
1353
|
return;
|
|
1353
1354
|
const c = f || o("youHaveMovedFromPositionToPosition", {
|
|
1354
1355
|
itemLabel: a,
|
|
1355
|
-
indexOrigin:
|
|
1356
|
-
indexTarget:
|
|
1357
|
-
total:
|
|
1356
|
+
indexOrigin: l + 1,
|
|
1357
|
+
indexTarget: u + 1,
|
|
1358
|
+
total: s
|
|
1358
1359
|
});
|
|
1359
1360
|
i(c);
|
|
1360
1361
|
};
|
|
@@ -1376,49 +1377,49 @@ function en() {
|
|
|
1376
1377
|
};
|
|
1377
1378
|
}
|
|
1378
1379
|
let St = 0;
|
|
1379
|
-
const
|
|
1380
|
+
const Fo = {
|
|
1380
1381
|
beforeCreate() {
|
|
1381
1382
|
this.uuid = St.toString(), St += 1;
|
|
1382
1383
|
}
|
|
1383
|
-
},
|
|
1384
|
-
function
|
|
1385
|
-
return
|
|
1384
|
+
}, Bo = { key: 0 };
|
|
1385
|
+
function Ho(n, e, o, t, i, r) {
|
|
1386
|
+
return Me(), Ye("svg", Pt({ role: "img" }, n.$attrs, {
|
|
1386
1387
|
class: "ui-assets-icons-16",
|
|
1387
1388
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1388
1389
|
width: "16",
|
|
1389
1390
|
height: "16",
|
|
1390
1391
|
fill: "none"
|
|
1391
1392
|
}), [
|
|
1392
|
-
n.$attrs["svg-title"] ? (
|
|
1393
|
+
n.$attrs["svg-title"] ? (Me(), Ye("title", Bo, xt(n.$attrs["svg-title"]), 1)) : At("", !0),
|
|
1393
1394
|
e[0] || (e[0] = lt("path", {
|
|
1394
1395
|
fill: "#001222",
|
|
1395
1396
|
d: "M8.75023 3.81089L13.0001 8.06077L14.0608 7.00011L8.00011 0.939453L1.93945 7.00011L3.00011 8.06077L7.25023 3.81066V14.7502H8.75023V3.81089Z"
|
|
1396
1397
|
}, null, -1))
|
|
1397
1398
|
], 16);
|
|
1398
1399
|
}
|
|
1399
|
-
const
|
|
1400
|
-
let
|
|
1401
|
-
const
|
|
1400
|
+
const Mt = /* @__PURE__ */ st(Fo, [["render", Ho]]);
|
|
1401
|
+
let Ct = 0;
|
|
1402
|
+
const ko = {
|
|
1402
1403
|
beforeCreate() {
|
|
1403
|
-
this.uuid =
|
|
1404
|
+
this.uuid = Ct.toString(), Ct += 1;
|
|
1404
1405
|
}
|
|
1405
|
-
},
|
|
1406
|
-
function
|
|
1407
|
-
return
|
|
1406
|
+
}, Yo = { key: 0 };
|
|
1407
|
+
function Xo(n, e, o, t, i, r) {
|
|
1408
|
+
return Me(), Ye("svg", Pt({ role: "img" }, n.$attrs, {
|
|
1408
1409
|
class: "ui-assets-icons-16",
|
|
1409
1410
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1410
1411
|
width: "16",
|
|
1411
1412
|
height: "16",
|
|
1412
1413
|
fill: "none"
|
|
1413
1414
|
}), [
|
|
1414
|
-
n.$attrs["svg-title"] ? (
|
|
1415
|
+
n.$attrs["svg-title"] ? (Me(), Ye("title", Yo, xt(n.$attrs["svg-title"]), 1)) : At("", !0),
|
|
1415
1416
|
e[0] || (e[0] = lt("path", {
|
|
1416
1417
|
fill: "#001222",
|
|
1417
1418
|
d: "M7.25434 12.1937L3.00011 7.93952L1.93945 9.00018L8.00011 15.0608L14.0608 9.00018L13.0001 7.93952L8.75433 12.1853L8.74316 1.24951L7.24316 1.25104L7.25434 12.1937Z"
|
|
1418
1419
|
}, null, -1))
|
|
1419
1420
|
], 16);
|
|
1420
1421
|
}
|
|
1421
|
-
const Ot = /* @__PURE__ */ st(
|
|
1422
|
+
const Ot = /* @__PURE__ */ st(ko, [["render", Xo]]), Vt = {
|
|
1422
1423
|
"de-DE": { moveDown: "Nach unten", moveLeft: "Nach links", moveRight: "Nach rechts bewegen", moveToTheBottom: "Nach unten", moveToTheTop: "Nach oben", moveUp: "Nach oben", reorderLabel: "{label} neu anordnen" },
|
|
1423
1424
|
"en-GB": { moveDown: "Move down", moveLeft: "Move left", moveRight: "Move right", moveToTheBottom: "Move to the bottom", moveToTheTop: "Move to the top", moveUp: "Move up", reorderLabel: "Reorder {label}" },
|
|
1424
1425
|
"en-US": { moveDown: "Move down", moveLeft: "Move left", moveRight: "Move right", moveToTheBottom: "Move to the bottom", moveToTheTop: "Move to the top", moveUp: "Move up", reorderLabel: "Reorder {label}" },
|
|
@@ -1429,11 +1430,11 @@ const Ot = /* @__PURE__ */ st(Ho, [["render", Yo]]), Vt = {
|
|
|
1429
1430
|
"ja-JP": { moveDown: "下に移動", moveLeft: "左に移動", moveRight: "右に移動", moveToTheBottom: "一番下に移動", moveToTheTop: "一番上に移動", moveUp: "上に移動", reorderLabel: "{label}を並べ替え" },
|
|
1430
1431
|
"pt-BR": { moveDown: "Mover para baixo", moveLeft: "Mover para a esquerda", moveRight: "Mover para a direita", moveToTheBottom: "Mover para embaixo", moveToTheTop: "Mover para o topo", moveUp: "Mover para cima", reorderLabel: "Reordenar {label}" },
|
|
1431
1432
|
"zh-CN": { moveDown: "下移", moveLeft: "左移", moveRight: "右移", moveToTheBottom: "移至底部", moveToTheTop: "移至顶部", moveUp: "上移", reorderLabel: "重新排序 {label}" }
|
|
1432
|
-
},
|
|
1433
|
+
}, $o = { class: "b-draggable-handle__icon" }, zo = {
|
|
1433
1434
|
i18n: { messages: Vt },
|
|
1434
1435
|
name: "bento-draggable-handle"
|
|
1435
|
-
},
|
|
1436
|
-
|
|
1436
|
+
}, Go = /* @__PURE__ */ Kt({
|
|
1437
|
+
...zo,
|
|
1437
1438
|
props: {
|
|
1438
1439
|
condensed: { type: Boolean, default: !1 },
|
|
1439
1440
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1443,27 +1444,27 @@ const Ot = /* @__PURE__ */ st(Ho, [["render", Yo]]), Vt = {
|
|
|
1443
1444
|
},
|
|
1444
1445
|
emits: ["move-bottom", "move-down", "move-left", "move-right", "move-top", "move-up"],
|
|
1445
1446
|
setup(n, { emit: e }) {
|
|
1446
|
-
const { t: o } = Nt({ messages: Vt }), t = n, i = e, r =
|
|
1447
|
+
const { t: o } = Nt({ messages: Vt }), t = n, i = e, r = ke(null), a = je(
|
|
1447
1448
|
() => ({
|
|
1448
1449
|
"aria-label": o("reorderLabel", { label: t.label }),
|
|
1449
1450
|
condensed: t.condensed,
|
|
1450
1451
|
disabled: t.disabled,
|
|
1451
1452
|
variant: "tertiary"
|
|
1452
1453
|
})
|
|
1453
|
-
),
|
|
1454
|
+
), l = je(() => ({
|
|
1454
1455
|
/**
|
|
1455
1456
|
* Disables the handle and prevents the entire
|
|
1456
1457
|
* element from being dragged.
|
|
1457
1458
|
* Used by `useBentoDraggable`
|
|
1458
1459
|
*/
|
|
1459
1460
|
"b-draggable-handle--disabled": t.disabled
|
|
1460
|
-
})),
|
|
1461
|
-
const
|
|
1461
|
+
})), u = je(() => {
|
|
1462
|
+
const s = {
|
|
1462
1463
|
up: {
|
|
1463
1464
|
text: o("moveUp"),
|
|
1464
1465
|
handler: () => i("move-up"),
|
|
1465
1466
|
disabled: t.disabledMenus.up,
|
|
1466
|
-
icon:
|
|
1467
|
+
icon: Mt
|
|
1467
1468
|
},
|
|
1468
1469
|
down: {
|
|
1469
1470
|
text: o("moveDown"),
|
|
@@ -1475,19 +1476,19 @@ const Ot = /* @__PURE__ */ st(Ho, [["render", Yo]]), Vt = {
|
|
|
1475
1476
|
text: o("moveLeft"),
|
|
1476
1477
|
handler: () => i("move-left"),
|
|
1477
1478
|
disabled: t.disabledMenus.left,
|
|
1478
|
-
icon:
|
|
1479
|
+
icon: ao
|
|
1479
1480
|
},
|
|
1480
1481
|
right: {
|
|
1481
1482
|
text: o("moveRight"),
|
|
1482
1483
|
handler: () => i("move-right"),
|
|
1483
1484
|
disabled: t.disabledMenus.right,
|
|
1484
|
-
icon:
|
|
1485
|
+
icon: lo
|
|
1485
1486
|
},
|
|
1486
1487
|
top: {
|
|
1487
1488
|
text: o("moveToTheTop"),
|
|
1488
1489
|
handler: () => i("move-top"),
|
|
1489
1490
|
disabled: t.disabledMenus.top,
|
|
1490
|
-
icon:
|
|
1491
|
+
icon: Mt
|
|
1491
1492
|
},
|
|
1492
1493
|
bottom: {
|
|
1493
1494
|
text: o("moveToTheBottom"),
|
|
@@ -1497,46 +1498,51 @@ const Ot = /* @__PURE__ */ st(Ho, [["render", Yo]]), Vt = {
|
|
|
1497
1498
|
}
|
|
1498
1499
|
};
|
|
1499
1500
|
return t.variant === "up-and-down" ? [
|
|
1500
|
-
|
|
1501
|
+
s.up,
|
|
1501
1502
|
// Divider added after "Move down"
|
|
1502
1503
|
{
|
|
1503
|
-
...
|
|
1504
|
+
...s.down,
|
|
1504
1505
|
addDivider: !0
|
|
1505
1506
|
},
|
|
1506
|
-
|
|
1507
|
-
|
|
1507
|
+
s.top,
|
|
1508
|
+
s.bottom
|
|
1508
1509
|
] : [
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1510
|
+
s.up,
|
|
1511
|
+
s.down,
|
|
1512
|
+
s.left,
|
|
1512
1513
|
// Divider added after "Move right"
|
|
1513
1514
|
{
|
|
1514
|
-
...
|
|
1515
|
+
...s.right,
|
|
1515
1516
|
addDivider: !0
|
|
1516
1517
|
},
|
|
1517
|
-
|
|
1518
|
-
|
|
1518
|
+
s.top,
|
|
1519
|
+
s.bottom
|
|
1519
1520
|
];
|
|
1520
1521
|
});
|
|
1521
|
-
return (
|
|
1522
|
-
|
|
1523
|
-
|
|
1522
|
+
return io(document, "dragstart", () => {
|
|
1523
|
+
const s = r.value?.$refs?.popoverRef;
|
|
1524
|
+
s && !Array.isArray(s) && "$el" in s && s.$el instanceof HTMLElement && (s.$el.style.display = "none"), r.value?.closeMenu(!1);
|
|
1525
|
+
}), (s, f) => (Me(), Qt(mt(no), {
|
|
1526
|
+
ref_key: "menuRef",
|
|
1527
|
+
ref: r,
|
|
1528
|
+
class: eo(["b-draggable-handle", l.value]),
|
|
1529
|
+
data: u.value,
|
|
1524
1530
|
"menu-width": 250,
|
|
1525
|
-
button:
|
|
1531
|
+
button: a.value
|
|
1526
1532
|
}, {
|
|
1527
1533
|
iconLeft: to(() => [
|
|
1528
|
-
lt("span",
|
|
1529
|
-
oo(mt(
|
|
1534
|
+
lt("span", $o, [
|
|
1535
|
+
oo(mt(ro), { "aria-hidden": "true" })
|
|
1530
1536
|
])
|
|
1531
1537
|
]),
|
|
1532
1538
|
_: 1
|
|
1533
1539
|
}, 8, ["class", "data", "button"]));
|
|
1534
1540
|
}
|
|
1535
|
-
}),
|
|
1541
|
+
}), nn = /* @__PURE__ */ st(Go, [["__scopeId", "data-v-b0e4d508"]]);
|
|
1536
1542
|
export {
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1543
|
+
nn as B,
|
|
1544
|
+
tn as a,
|
|
1545
|
+
Lo as d,
|
|
1546
|
+
on as u
|
|
1541
1547
|
};
|
|
1542
|
-
//# sourceMappingURL=draggable-handle.
|
|
1548
|
+
//# sourceMappingURL=draggable-handle.BepmJZ8K.js.map
|