@turquoisehealth/pit-viper 2.266.1-dev.1 → 2.267.1
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/_site/assets/css/pit-viper-a11y-v3.css +12 -0
- package/_site/assets/css/pit-viper-a11y.css +12 -0
- package/_site/assets/css/pit-viper-consumer.css +12 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +10 -0
- package/_site/assets/css/pit-viper-v2.css +12 -0
- package/_site/assets/css/pit-viper-v3.css +12 -0
- package/_site/assets/css/pit-viper.css +12 -0
- package/_site/manifest.json +2 -2
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/ai/stats.html +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-file-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-header-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-prompt-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-question-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/ai/PvPromptInput/PvPromptInput.vue.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/ai/PvPromptInput/types.d.ts +12 -0
- package/pv-components/dist/vue/ai/components/ai/PvQuestion/types.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/base/PvFileInput/PvFileInput.vue.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -4
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/types.d.ts +0 -2
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvRange/PvRange.vue.d.ts +2 -2
- package/pv-components/dist/vue/ai/components/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvTooltip/PvTooltip.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/pv-components-ai.mjs +494 -325
- package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -1
- package/pv-components/dist/vue/base/components/base/PvFileInput/PvFileInput.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -4
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +0 -2
- package/pv-components/dist/vue/base/components/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +5 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +1115 -1120
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFileInput/PvFileInput.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -4
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/components/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +0 -7
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1020 -1064
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +307 -323
- package/pv-components/dist/web/components/pv-file-input/pv-file-input.js +158 -151
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +3 -20
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +877 -887
- package/pv-components/dist/web/components/pv-header/pv-header.js +38 -32
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +2 -18
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +2 -18
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +3 -20
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +406 -422
- package/pv-components/dist/web/components/pv-prompt-input/pv-prompt-input.js +834 -572
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +2 -18
- package/pv-components/dist/web/components/pv-question/pv-question.js +387 -373
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +460 -476
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +330 -346
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +2 -18
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +2 -18
- package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +244 -260
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +573 -589
- package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +382 -376
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +672 -688
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +414 -430
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +608 -624
- package/pv-components/dist/web/pv-components.iife.js +39 -39
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -18,7 +18,7 @@ var ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, fe = Objec
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js
|
|
20
20
|
function _e(e, t, n) {
|
|
21
|
-
return (t =
|
|
21
|
+
return (t = we(t)) in e ? Object.defineProperty(e, t, {
|
|
22
22
|
value: n,
|
|
23
23
|
enumerable: !0,
|
|
24
24
|
configurable: !0,
|
|
@@ -44,7 +44,7 @@ function ye(e, t) {
|
|
|
44
44
|
}
|
|
45
45
|
return n;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function be(e) {
|
|
48
48
|
for (var t = 1; t < arguments.length; t++) {
|
|
49
49
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
50
50
|
t % 2 ? ye(Object(n), !0).forEach(function(t) {
|
|
@@ -55,16 +55,16 @@ function P(e) {
|
|
|
55
55
|
}
|
|
56
56
|
return e;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function xe(e, t) {
|
|
59
59
|
if (e == null) return {};
|
|
60
|
-
var n, r, i =
|
|
60
|
+
var n, r, i = Se(e, t);
|
|
61
61
|
if (Object.getOwnPropertySymbols) {
|
|
62
62
|
var a = Object.getOwnPropertySymbols(e);
|
|
63
63
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
64
64
|
}
|
|
65
65
|
return i;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Se(e, t) {
|
|
68
68
|
if (e == null) return {};
|
|
69
69
|
var n = {};
|
|
70
70
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -73,7 +73,7 @@ function xe(e, t) {
|
|
|
73
73
|
}
|
|
74
74
|
return n;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Ce(e, t) {
|
|
77
77
|
if (typeof e != "object" || !e) return e;
|
|
78
78
|
var n = e[Symbol.toPrimitive];
|
|
79
79
|
if (n !== void 0) {
|
|
@@ -83,33 +83,33 @@ function Se(e, t) {
|
|
|
83
83
|
}
|
|
84
84
|
return (t === "string" ? String : Number)(e);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
var t =
|
|
86
|
+
function we(e) {
|
|
87
|
+
var t = Ce(e, "string");
|
|
88
88
|
return typeof t == "symbol" ? t : t + "";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Te(e) {
|
|
91
91
|
"@babel/helpers - typeof";
|
|
92
|
-
return
|
|
92
|
+
return Te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
93
93
|
return typeof e;
|
|
94
94
|
} : function(e) {
|
|
95
95
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
96
|
-
},
|
|
96
|
+
}, Te(e);
|
|
97
97
|
}
|
|
98
|
-
var
|
|
99
|
-
function
|
|
98
|
+
var Ee = "1.15.7";
|
|
99
|
+
function De(e) {
|
|
100
100
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
101
101
|
}
|
|
102
|
-
var
|
|
102
|
+
var Oe = De(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ke = De(/Edge/i), Ae = De(/firefox/i), je = De(/safari/i) && !De(/chrome/i) && !De(/android/i), Me = De(/iP(ad|od|hone)/i), Ne = De(/chrome/i) && De(/android/i), Pe = {
|
|
103
103
|
capture: !1,
|
|
104
104
|
passive: !1
|
|
105
105
|
};
|
|
106
|
-
function
|
|
107
|
-
e.addEventListener(t, n, !
|
|
106
|
+
function P(e, t, n) {
|
|
107
|
+
e.addEventListener(t, n, !Oe && Pe);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
e.removeEventListener(t, n, !
|
|
109
|
+
function F(e, t, n) {
|
|
110
|
+
e.removeEventListener(t, n, !Oe && Pe);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Fe(e, t) {
|
|
113
113
|
if (t) {
|
|
114
114
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
115
115
|
if (e.matches) return e.matches(t);
|
|
@@ -121,41 +121,41 @@ function Pe(e, t) {
|
|
|
121
121
|
return !1;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Ie(e) {
|
|
125
125
|
return e.host && e !== document && e.host.nodeType && e.host !== e ? e.host : e.parentNode;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Le(e, t, n, r) {
|
|
128
128
|
if (e) {
|
|
129
129
|
n ||= document;
|
|
130
130
|
do {
|
|
131
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
131
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Fe(e, t) : Fe(e, t)) || r && e === n) return e;
|
|
132
132
|
if (e === n) break;
|
|
133
|
-
} while (e =
|
|
133
|
+
} while (e = Ie(e));
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var
|
|
138
|
-
function
|
|
139
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
137
|
+
var Re = /\s+/g;
|
|
138
|
+
function ze(e, t, n) {
|
|
139
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Re, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Re, " "));
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function I(e, t, n) {
|
|
142
142
|
var r = e && e.style;
|
|
143
143
|
if (r) {
|
|
144
144
|
if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
|
|
145
145
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Be(e, t) {
|
|
149
149
|
var n = "";
|
|
150
150
|
if (typeof e == "string") n = e;
|
|
151
151
|
else do {
|
|
152
|
-
var r =
|
|
152
|
+
var r = I(e, "transform");
|
|
153
153
|
r && r !== "none" && (n = r + " " + n);
|
|
154
154
|
} while (!t && (e = e.parentNode));
|
|
155
155
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
156
156
|
return i && new i(n);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Ve(e, t, n) {
|
|
159
159
|
if (e) {
|
|
160
160
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
161
161
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -163,21 +163,21 @@ function Be(e, t, n) {
|
|
|
163
163
|
}
|
|
164
164
|
return [];
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function He() {
|
|
167
167
|
return document.scrollingElement || document.documentElement;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function L(e, t, n, r, i) {
|
|
170
170
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
171
171
|
var a, o, s, c, l, u, d;
|
|
172
|
-
if (e !== window && e.parentNode && e !==
|
|
173
|
-
if (i && i.getBoundingClientRect && (
|
|
172
|
+
if (e !== window && e.parentNode && e !== He() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !Oe)) do
|
|
173
|
+
if (i && i.getBoundingClientRect && (I(i, "transform") !== "none" || n && I(i, "position") !== "static")) {
|
|
174
174
|
var f = i.getBoundingClientRect();
|
|
175
|
-
o -= f.top + parseInt(
|
|
175
|
+
o -= f.top + parseInt(I(i, "border-top-width")), s -= f.left + parseInt(I(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
176
176
|
break;
|
|
177
177
|
}
|
|
178
178
|
while (i = i.parentNode);
|
|
179
179
|
if (r && e !== window) {
|
|
180
|
-
var p =
|
|
180
|
+
var p = Be(i || e), m = p && p.a, h = p && p.d;
|
|
181
181
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
182
182
|
}
|
|
183
183
|
return {
|
|
@@ -190,18 +190,18 @@ function R(e, t, n, r, i) {
|
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
for (var r =
|
|
195
|
-
var a =
|
|
193
|
+
function Ue(e, t, n) {
|
|
194
|
+
for (var r = Ye(e, !0), i = L(e)[t]; r;) {
|
|
195
|
+
var a = L(r)[n], o = void 0;
|
|
196
196
|
if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
|
|
197
|
-
if (r ===
|
|
198
|
-
r =
|
|
197
|
+
if (r === He()) break;
|
|
198
|
+
r = Ye(r, !1);
|
|
199
199
|
}
|
|
200
200
|
return !1;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function We(e, t, n, r) {
|
|
203
203
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
204
|
-
if (o[a].style.display !== "none" && o[a] !== J.ghost && (r || o[a] !== J.dragged) &&
|
|
204
|
+
if (o[a].style.display !== "none" && o[a] !== J.ghost && (r || o[a] !== J.dragged) && Le(o[a], n.draggable, e, !1)) {
|
|
205
205
|
if (i === t) return o[a];
|
|
206
206
|
i++;
|
|
207
207
|
}
|
|
@@ -209,96 +209,96 @@ function Ue(e, t, n, r) {
|
|
|
209
209
|
}
|
|
210
210
|
return null;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
for (var n = e.lastElementChild; n && (n === J.ghost ||
|
|
212
|
+
function Ge(e, t) {
|
|
213
|
+
for (var n = e.lastElementChild; n && (n === J.ghost || I(n, "display") === "none" || t && !Fe(n, t));) n = n.previousElementSibling;
|
|
214
214
|
return n || null;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Ke(e, t) {
|
|
217
217
|
var n = 0;
|
|
218
218
|
if (!e || !e.parentNode) return -1;
|
|
219
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== J.clone && (!t ||
|
|
219
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== J.clone && (!t || Fe(e, t)) && n++;
|
|
220
220
|
return n;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
var t = 0, n = 0, r =
|
|
222
|
+
function qe(e) {
|
|
223
|
+
var t = 0, n = 0, r = He();
|
|
224
224
|
if (e) do {
|
|
225
|
-
var i =
|
|
225
|
+
var i = Be(e), a = i.a, o = i.d;
|
|
226
226
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
227
227
|
} while (e !== r && (e = e.parentNode));
|
|
228
228
|
return [t, n];
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Je(e, t) {
|
|
231
231
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
232
232
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
233
233
|
}
|
|
234
234
|
return -1;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
if (!e || !e.getBoundingClientRect) return
|
|
236
|
+
function Ye(e, t) {
|
|
237
|
+
if (!e || !e.getBoundingClientRect) return He();
|
|
238
238
|
var n = e, r = !1;
|
|
239
239
|
do
|
|
240
240
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
241
|
-
var i =
|
|
241
|
+
var i = I(n);
|
|
242
242
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
243
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
243
|
+
if (!n.getBoundingClientRect || n === document.body) return He();
|
|
244
244
|
if (r || t) return n;
|
|
245
245
|
r = !0;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
while (n = n.parentNode);
|
|
249
|
-
return
|
|
249
|
+
return He();
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Xe(e, t) {
|
|
252
252
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
253
253
|
return e;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Ze(e, t) {
|
|
256
256
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
257
257
|
}
|
|
258
|
-
var
|
|
259
|
-
function
|
|
258
|
+
var Qe;
|
|
259
|
+
function $e(e, t) {
|
|
260
260
|
return function() {
|
|
261
|
-
if (!
|
|
261
|
+
if (!Qe) {
|
|
262
262
|
var n = arguments, r = this;
|
|
263
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
264
|
-
|
|
263
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Qe = setTimeout(function() {
|
|
264
|
+
Qe = void 0;
|
|
265
265
|
}, t);
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
clearTimeout(
|
|
269
|
+
function et() {
|
|
270
|
+
clearTimeout(Qe), Qe = void 0;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function tt(e, t, n) {
|
|
273
273
|
e.scrollLeft += t, e.scrollTop += n;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function nt(e) {
|
|
276
276
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
277
277
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function rt(e, t, n) {
|
|
280
280
|
var r = {};
|
|
281
281
|
return Array.from(e.children).forEach(function(i) {
|
|
282
|
-
if (!(!
|
|
283
|
-
var a =
|
|
282
|
+
if (!(!Le(i, t.draggable, e, !1) || i.animated || i === n)) {
|
|
283
|
+
var a = L(i);
|
|
284
284
|
r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
|
|
285
285
|
}
|
|
286
286
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
287
287
|
}
|
|
288
|
-
var
|
|
289
|
-
function
|
|
288
|
+
var R = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
289
|
+
function it() {
|
|
290
290
|
var e = [], t;
|
|
291
291
|
return {
|
|
292
292
|
captureAnimationState: function() {
|
|
293
293
|
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
294
|
-
if (!(
|
|
294
|
+
if (!(I(t, "display") === "none" || t === J.ghost)) {
|
|
295
295
|
e.push({
|
|
296
296
|
target: t,
|
|
297
|
-
rect:
|
|
297
|
+
rect: L(t)
|
|
298
298
|
});
|
|
299
|
-
var n =
|
|
299
|
+
var n = be({}, e[e.length - 1].rect);
|
|
300
300
|
if (t.thisAnimationDuration) {
|
|
301
|
-
var r =
|
|
301
|
+
var r = Be(t, !0);
|
|
302
302
|
r && (n.top -= r.f, n.left -= r.e);
|
|
303
303
|
}
|
|
304
304
|
t.fromRect = n;
|
|
@@ -309,7 +309,7 @@ function rt() {
|
|
|
309
309
|
e.push(t);
|
|
310
310
|
},
|
|
311
311
|
removeAnimationState: function(t) {
|
|
312
|
-
e.splice(
|
|
312
|
+
e.splice(Je(e, { target: t }), 1);
|
|
313
313
|
},
|
|
314
314
|
animateAll: function(n) {
|
|
315
315
|
var r = this;
|
|
@@ -319,8 +319,8 @@ function rt() {
|
|
|
319
319
|
}
|
|
320
320
|
var i = !1, a = 0;
|
|
321
321
|
e.forEach(function(e) {
|
|
322
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
323
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
322
|
+
var t = 0, n = e.target, o = n.fromRect, s = L(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Be(n, !0);
|
|
323
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ze(c, s) && !Ze(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = ot(u, c, l, r.options)), Ze(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
|
|
324
324
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
325
325
|
}, t), n.thisAnimationDuration = t);
|
|
326
326
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -329,27 +329,27 @@ function rt() {
|
|
|
329
329
|
},
|
|
330
330
|
animate: function(e, t, n, r) {
|
|
331
331
|
if (r) {
|
|
332
|
-
|
|
333
|
-
var i =
|
|
334
|
-
e.animatingX = !!s, e.animatingY = !!c,
|
|
335
|
-
|
|
332
|
+
I(e, "transition", ""), I(e, "transform", "");
|
|
333
|
+
var i = Be(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
334
|
+
e.animatingX = !!s, e.animatingY = !!c, I(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = at(e), I(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), I(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
335
|
+
I(e, "transition", ""), I(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
336
336
|
}, r);
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function at(e) {
|
|
342
342
|
return e.offsetWidth;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function ot(e, t, n, r) {
|
|
345
345
|
return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
|
|
346
346
|
}
|
|
347
|
-
var
|
|
347
|
+
var st = [], ct = { initializeByDefault: !0 }, lt = {
|
|
348
348
|
mount: function(e) {
|
|
349
|
-
for (var t in
|
|
350
|
-
|
|
349
|
+
for (var t in ct) ct.hasOwnProperty(t) && !(t in e) && (e[t] = ct[t]);
|
|
350
|
+
st.forEach(function(t) {
|
|
351
351
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
352
|
-
}),
|
|
352
|
+
}), st.push(e);
|
|
353
353
|
},
|
|
354
354
|
pluginEvent: function(e, t, n) {
|
|
355
355
|
var r = this;
|
|
@@ -357,12 +357,12 @@ var ot = [], st = { initializeByDefault: !0 }, ct = {
|
|
|
357
357
|
r.eventCanceled = !0;
|
|
358
358
|
};
|
|
359
359
|
var i = e + "Global";
|
|
360
|
-
|
|
361
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
360
|
+
st.forEach(function(r) {
|
|
361
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](be({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](be({ sortable: t }, n)));
|
|
362
362
|
});
|
|
363
363
|
},
|
|
364
364
|
initializePlugins: function(e, t, n, r) {
|
|
365
|
-
for (var i in
|
|
365
|
+
for (var i in st.forEach(function(r) {
|
|
366
366
|
var i = r.pluginName;
|
|
367
367
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
368
368
|
var a = new r(e, t, e.options);
|
|
@@ -375,33 +375,33 @@ var ot = [], st = { initializeByDefault: !0 }, ct = {
|
|
|
375
375
|
},
|
|
376
376
|
getEventProperties: function(e, t) {
|
|
377
377
|
var n = {};
|
|
378
|
-
return
|
|
378
|
+
return st.forEach(function(r) {
|
|
379
379
|
typeof r.eventProperties == "function" && ve(n, r.eventProperties.call(t[r.pluginName], e));
|
|
380
380
|
}), n;
|
|
381
381
|
},
|
|
382
382
|
modifyOption: function(e, t, n) {
|
|
383
383
|
var r;
|
|
384
|
-
return
|
|
384
|
+
return st.forEach(function(i) {
|
|
385
385
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
386
386
|
}), r;
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
|
-
function
|
|
389
|
+
function ut(e) {
|
|
390
390
|
var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
|
|
391
|
-
if (t ||= n && n[
|
|
391
|
+
if (t ||= n && n[R], t) {
|
|
392
392
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
393
|
-
window.CustomEvent && !
|
|
393
|
+
window.CustomEvent && !Oe && !ke ? h = new CustomEvent(r, {
|
|
394
394
|
bubbles: !0,
|
|
395
395
|
cancelable: !0
|
|
396
396
|
}) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
|
|
397
|
-
var v =
|
|
397
|
+
var v = be(be({}, m), lt.getEventProperties(r, t));
|
|
398
398
|
for (var y in v) h[y] = v[y];
|
|
399
399
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
var
|
|
403
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
404
|
-
|
|
402
|
+
var dt = ["evt"], z = function(e, t) {
|
|
403
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = xe(n, dt);
|
|
404
|
+
lt.pluginEvent.bind(J)(e, t, be({
|
|
405
405
|
dragEl: V,
|
|
406
406
|
parentEl: H,
|
|
407
407
|
ghostEl: U,
|
|
@@ -436,7 +436,7 @@ var ut = ["evt"], dt = function(e, t) {
|
|
|
436
436
|
}, i));
|
|
437
437
|
};
|
|
438
438
|
function B(e) {
|
|
439
|
-
|
|
439
|
+
ut(be({
|
|
440
440
|
putSortable: K,
|
|
441
441
|
cloneEl: G,
|
|
442
442
|
targetEl: V,
|
|
@@ -447,14 +447,14 @@ function B(e) {
|
|
|
447
447
|
newDraggableIndex: vt
|
|
448
448
|
}, e));
|
|
449
449
|
}
|
|
450
|
-
var V, H, U, W, ft, pt, G, mt, ht, gt, _t, vt, yt, K, bt = !1, xt = !1, St = [], Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt = !1, Nt = !1, Pt, q, Ft = [], It = !1, Lt = [], Rt = typeof document < "u", zt =
|
|
450
|
+
var V, H, U, W, ft, pt, G, mt, ht, gt, _t, vt, yt, K, bt = !1, xt = !1, St = [], Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt = !1, Nt = !1, Pt, q, Ft = [], It = !1, Lt = [], Rt = typeof document < "u", zt = Me, Bt = ke || Oe ? "cssFloat" : "float", Vt = Rt && !Ne && !Me && "draggable" in document.createElement("div"), Ht = function() {
|
|
451
451
|
if (Rt) {
|
|
452
|
-
if (
|
|
452
|
+
if (Oe) return !1;
|
|
453
453
|
var e = document.createElement("x");
|
|
454
454
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
455
455
|
}
|
|
456
456
|
}(), Ut = function(e, t) {
|
|
457
|
-
var n =
|
|
457
|
+
var n = I(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = We(e, 0, t), a = We(e, 1, t), o = i && I(i), s = a && I(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + L(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + L(a).width;
|
|
458
458
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
459
459
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
460
460
|
if (i && o.float && o.float !== "none") {
|
|
@@ -468,9 +468,9 @@ var V, H, U, W, ft, pt, G, mt, ht, gt, _t, vt, yt, K, bt = !1, xt = !1, St = [],
|
|
|
468
468
|
}, Gt = function(e, t) {
|
|
469
469
|
var n;
|
|
470
470
|
return St.some(function(r) {
|
|
471
|
-
var i = r[
|
|
472
|
-
if (!(!i ||
|
|
473
|
-
var a =
|
|
471
|
+
var i = r[R].options.emptyInsertThreshold;
|
|
472
|
+
if (!(!i || Ge(r))) {
|
|
473
|
+
var a = L(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
474
474
|
if (o && s) return n = r;
|
|
475
475
|
}
|
|
476
476
|
}), n;
|
|
@@ -487,13 +487,13 @@ var V, H, U, W, ft, pt, G, mt, ht, gt, _t, vt, yt, K, bt = !1, xt = !1, St = [],
|
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
489
|
var n = {}, r = e.group;
|
|
490
|
-
(!r ||
|
|
490
|
+
(!r || Te(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
491
491
|
}, qt = function() {
|
|
492
|
-
!Ht && U &&
|
|
492
|
+
!Ht && U && I(U, "display", "none");
|
|
493
493
|
}, Jt = function() {
|
|
494
|
-
!Ht && U &&
|
|
494
|
+
!Ht && U && I(U, "display", "");
|
|
495
495
|
};
|
|
496
|
-
Rt && !
|
|
496
|
+
Rt && !Ne && document.addEventListener("click", function(e) {
|
|
497
497
|
if (xt) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), xt = !1, !1;
|
|
498
498
|
}, !0);
|
|
499
499
|
var Yt = function(e) {
|
|
@@ -503,15 +503,15 @@ var Yt = function(e) {
|
|
|
503
503
|
if (t) {
|
|
504
504
|
var n = {};
|
|
505
505
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
506
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
506
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[R]._onDragOver(n);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
}, Xt = function(e) {
|
|
510
|
-
V && V.parentNode[
|
|
510
|
+
V && V.parentNode[R]._isOutsideThisEl(e.target);
|
|
511
511
|
};
|
|
512
512
|
function J(e, t) {
|
|
513
513
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
514
|
-
this.el = e, this.options = t = ve({}, t), e[
|
|
514
|
+
this.el = e, this.options = t = ve({}, t), e[R] = this;
|
|
515
515
|
var n = {
|
|
516
516
|
group: null,
|
|
517
517
|
sort: !0,
|
|
@@ -551,12 +551,12 @@ function J(e, t) {
|
|
|
551
551
|
x: 0,
|
|
552
552
|
y: 0
|
|
553
553
|
},
|
|
554
|
-
supportPointer: J.supportPointer !== !1 && "PointerEvent" in window && (!
|
|
554
|
+
supportPointer: J.supportPointer !== !1 && "PointerEvent" in window && (!je || Me),
|
|
555
555
|
emptyInsertThreshold: 5
|
|
556
556
|
};
|
|
557
|
-
for (var r in
|
|
557
|
+
for (var r in lt.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
558
558
|
for (var i in Kt(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
559
|
-
this.nativeDraggable = t.forceFallback ? !1 : Vt, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ?
|
|
559
|
+
this.nativeDraggable = t.forceFallback ? !1 : Vt, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? P(e, "pointerdown", this._onTapStart) : (P(e, "mousedown", this._onTapStart), P(e, "touchstart", this._onTapStart)), this.nativeDraggable && (P(e, "dragover", this), P(e, "dragenter", this)), St.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ve(this, it());
|
|
560
560
|
}
|
|
561
561
|
J.prototype = {
|
|
562
562
|
constructor: J,
|
|
@@ -569,8 +569,8 @@ J.prototype = {
|
|
|
569
569
|
_onTapStart: function(e) {
|
|
570
570
|
if (e.cancelable) {
|
|
571
571
|
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
|
|
572
|
-
if (sn(n), !V && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable &&
|
|
573
|
-
if (ht =
|
|
572
|
+
if (sn(n), !V && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && je && s && s.tagName.toUpperCase() === "SELECT") && (s = Le(s, r.draggable, n, !1), !(s && s.animated) && pt !== s)) {
|
|
573
|
+
if (ht = Ke(s), _t = Ke(s, r.draggable), typeof l == "function") {
|
|
574
574
|
if (l.call(this, e, s, this)) {
|
|
575
575
|
B({
|
|
576
576
|
sortable: t,
|
|
@@ -579,52 +579,52 @@ J.prototype = {
|
|
|
579
579
|
targetEl: s,
|
|
580
580
|
toEl: n,
|
|
581
581
|
fromEl: n
|
|
582
|
-
}),
|
|
582
|
+
}), z("filter", t, { evt: e }), i && e.preventDefault();
|
|
583
583
|
return;
|
|
584
584
|
}
|
|
585
585
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
586
|
-
if (r =
|
|
586
|
+
if (r = Le(c, r.trim(), n, !1), r) return B({
|
|
587
587
|
sortable: t,
|
|
588
588
|
rootEl: r,
|
|
589
589
|
name: "filter",
|
|
590
590
|
targetEl: s,
|
|
591
591
|
fromEl: n,
|
|
592
592
|
toEl: n
|
|
593
|
-
}),
|
|
593
|
+
}), z("filter", t, { evt: e }), !0;
|
|
594
594
|
}), l)) {
|
|
595
595
|
i && e.preventDefault();
|
|
596
596
|
return;
|
|
597
597
|
}
|
|
598
|
-
r.handle && !
|
|
598
|
+
r.handle && !Le(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
},
|
|
602
602
|
_prepareDragStart: function(e, t, n) {
|
|
603
603
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
604
604
|
if (n && !V && n.parentNode === i) {
|
|
605
|
-
var c =
|
|
605
|
+
var c = L(n);
|
|
606
606
|
if (W = i, V = n, H = V.parentNode, ft = V.nextSibling, pt = n, yt = a.group, J.dragged = V, Ct = {
|
|
607
607
|
target: V,
|
|
608
608
|
clientX: (t || e).clientX,
|
|
609
609
|
clientY: (t || e).clientY
|
|
610
610
|
}, Dt = Ct.clientX - c.left, Ot = Ct.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, V.style["will-change"] = "all", s = function() {
|
|
611
|
-
if (
|
|
611
|
+
if (z("delayEnded", r, { evt: e }), J.eventCanceled) {
|
|
612
612
|
r._onDrop();
|
|
613
613
|
return;
|
|
614
614
|
}
|
|
615
|
-
r._disableDelayedDragEvents(), !
|
|
615
|
+
r._disableDelayedDragEvents(), !Ae && r.nativeDraggable && (V.draggable = !0), r._triggerDragStart(e, t), B({
|
|
616
616
|
sortable: r,
|
|
617
617
|
name: "choose",
|
|
618
618
|
originalEvent: e
|
|
619
|
-
}),
|
|
619
|
+
}), ze(V, a.chosenClass, !0);
|
|
620
620
|
}, a.ignore.split(",").forEach(function(e) {
|
|
621
|
-
|
|
622
|
-
}),
|
|
621
|
+
Ve(V, e.trim(), $t);
|
|
622
|
+
}), P(o, "dragover", Yt), P(o, "mousemove", Yt), P(o, "touchmove", Yt), a.supportPointer ? (P(o, "pointerup", r._onDrop), !this.nativeDraggable && P(o, "pointercancel", r._onDrop)) : (P(o, "mouseup", r._onDrop), P(o, "touchend", r._onDrop), P(o, "touchcancel", r._onDrop)), Ae && this.nativeDraggable && (this.options.touchStartThreshold = 4, V.draggable = !0), z("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(ke || Oe))) {
|
|
623
623
|
if (J.eventCanceled) {
|
|
624
624
|
this._onDrop();
|
|
625
625
|
return;
|
|
626
626
|
}
|
|
627
|
-
a.supportPointer ? (
|
|
627
|
+
a.supportPointer ? (P(o, "pointerup", r._disableDelayedDrag), P(o, "pointercancel", r._disableDelayedDrag)) : (P(o, "mouseup", r._disableDelayedDrag), P(o, "touchend", r._disableDelayedDrag), P(o, "touchcancel", r._disableDelayedDrag)), P(o, "mousemove", r._delayedDragTouchMoveHandler), P(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && P(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
628
628
|
} else s();
|
|
629
629
|
}
|
|
630
630
|
},
|
|
@@ -637,10 +637,10 @@ J.prototype = {
|
|
|
637
637
|
},
|
|
638
638
|
_disableDelayedDragEvents: function() {
|
|
639
639
|
var e = this.el.ownerDocument;
|
|
640
|
-
|
|
640
|
+
F(e, "mouseup", this._disableDelayedDrag), F(e, "touchend", this._disableDelayedDrag), F(e, "touchcancel", this._disableDelayedDrag), F(e, "pointerup", this._disableDelayedDrag), F(e, "pointercancel", this._disableDelayedDrag), F(e, "mousemove", this._delayedDragTouchMoveHandler), F(e, "touchmove", this._delayedDragTouchMoveHandler), F(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
641
641
|
},
|
|
642
642
|
_triggerDragStart: function(e, t) {
|
|
643
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ?
|
|
643
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? P(document, "pointermove", this._onTouchMove) : t ? P(document, "touchmove", this._onTouchMove) : P(document, "mousemove", this._onTouchMove) : (P(V, "dragend", this), P(W, "dragstart", this._onDragStart));
|
|
644
644
|
try {
|
|
645
645
|
document.selection ? cn(function() {
|
|
646
646
|
document.selection.empty();
|
|
@@ -649,9 +649,9 @@ J.prototype = {
|
|
|
649
649
|
},
|
|
650
650
|
_dragStarted: function(e, t) {
|
|
651
651
|
if (bt = !1, W && V) {
|
|
652
|
-
|
|
652
|
+
z("dragStarted", this, { evt: t }), this.nativeDraggable && P(document, "dragover", Xt);
|
|
653
653
|
var n = this.options;
|
|
654
|
-
!e &&
|
|
654
|
+
!e && ze(V, n.dragClass, !1), ze(V, n.ghostClass, !0), J.active = this, e && this._appendGhost(), B({
|
|
655
655
|
sortable: this,
|
|
656
656
|
name: "start",
|
|
657
657
|
originalEvent: t
|
|
@@ -662,10 +662,10 @@ J.prototype = {
|
|
|
662
662
|
if (wt) {
|
|
663
663
|
this._lastX = wt.clientX, this._lastY = wt.clientY, qt();
|
|
664
664
|
for (var e = document.elementFromPoint(wt.clientX, wt.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(wt.clientX, wt.clientY), e !== t);) t = e;
|
|
665
|
-
if (V.parentNode[
|
|
666
|
-
if (t[
|
|
665
|
+
if (V.parentNode[R]._isOutsideThisEl(e), t) do {
|
|
666
|
+
if (t[R]) {
|
|
667
667
|
var n = void 0;
|
|
668
|
-
if (n = t[
|
|
668
|
+
if (n = t[R]._onDragOver({
|
|
669
669
|
clientX: wt.clientX,
|
|
670
670
|
clientY: wt.clientY,
|
|
671
671
|
target: e,
|
|
@@ -673,13 +673,13 @@ J.prototype = {
|
|
|
673
673
|
}), n && !this.options.dragoverBubble) break;
|
|
674
674
|
}
|
|
675
675
|
e = t;
|
|
676
|
-
} while (t =
|
|
676
|
+
} while (t = Ie(t));
|
|
677
677
|
Jt();
|
|
678
678
|
}
|
|
679
679
|
},
|
|
680
680
|
_onTouchMove: function(e) {
|
|
681
681
|
if (Ct) {
|
|
682
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = U &&
|
|
682
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = U && Be(U, !0), o = U && a && a.a, s = U && a && a.d, c = zt && q && qe(q), l = (i.clientX - Ct.clientX + r.x) / (o || 1) + (c ? c[0] - Ft[0] : 0) / (o || 1), u = (i.clientY - Ct.clientY + r.y) / (s || 1) + (c ? c[1] - Ft[1] : 0) / (s || 1);
|
|
683
683
|
if (!J.active && !bt) {
|
|
684
684
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
685
685
|
this._onDragStart(e, !0);
|
|
@@ -694,39 +694,39 @@ J.prototype = {
|
|
|
694
694
|
f: u
|
|
695
695
|
};
|
|
696
696
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
697
|
-
|
|
697
|
+
I(U, "webkitTransform", d), I(U, "mozTransform", d), I(U, "msTransform", d), I(U, "transform", d), Tt = l, Et = u, wt = i;
|
|
698
698
|
}
|
|
699
699
|
e.cancelable && e.preventDefault();
|
|
700
700
|
}
|
|
701
701
|
},
|
|
702
702
|
_appendGhost: function() {
|
|
703
703
|
if (!U) {
|
|
704
|
-
var e = this.options.fallbackOnBody ? document.body : W, t =
|
|
704
|
+
var e = this.options.fallbackOnBody ? document.body : W, t = L(V, !0, zt, !0, e), n = this.options;
|
|
705
705
|
if (zt) {
|
|
706
|
-
for (q = e;
|
|
707
|
-
q !== document.body && q !== document.documentElement ? (q === document && (q =
|
|
706
|
+
for (q = e; I(q, "position") === "static" && I(q, "transform") === "none" && q !== document;) q = q.parentNode;
|
|
707
|
+
q !== document.body && q !== document.documentElement ? (q === document && (q = He()), t.top += q.scrollTop, t.left += q.scrollLeft) : q = He(), Ft = qe(q);
|
|
708
708
|
}
|
|
709
|
-
U = V.cloneNode(!0),
|
|
709
|
+
U = V.cloneNode(!0), ze(U, n.ghostClass, !1), ze(U, n.fallbackClass, !0), ze(U, n.dragClass, !0), I(U, "transition", ""), I(U, "transform", ""), I(U, "box-sizing", "border-box"), I(U, "margin", 0), I(U, "top", t.top), I(U, "left", t.left), I(U, "width", t.width), I(U, "height", t.height), I(U, "opacity", "0.8"), I(U, "position", zt ? "absolute" : "fixed"), I(U, "zIndex", "100000"), I(U, "pointerEvents", "none"), J.ghost = U, e.appendChild(U), I(U, "transform-origin", Dt / parseInt(U.style.width) * 100 + "% " + Ot / parseInt(U.style.height) * 100 + "%");
|
|
710
710
|
}
|
|
711
711
|
},
|
|
712
712
|
_onDragStart: function(e, t) {
|
|
713
713
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
714
|
-
if (
|
|
714
|
+
if (z("dragStart", this, { evt: e }), J.eventCanceled) {
|
|
715
715
|
this._onDrop();
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
|
|
719
|
-
|
|
718
|
+
z("setupClone", this), J.eventCanceled || (G = nt(V), G.removeAttribute("id"), G.draggable = !1, G.style["will-change"] = "", this._hideClone(), ze(G, this.options.chosenClass, !1), J.clone = G), n.cloneId = cn(function() {
|
|
719
|
+
z("clone", n), !J.eventCanceled && (n.options.removeCloneOnHide || W.insertBefore(G, V), n._hideClone(), B({
|
|
720
720
|
sortable: n,
|
|
721
721
|
name: "clone"
|
|
722
722
|
}));
|
|
723
|
-
}), !t &&
|
|
723
|
+
}), !t && ze(V, i.dragClass, !0), t ? (xt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (F(document, "mouseup", n._onDrop), F(document, "touchend", n._onDrop), F(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, V)), P(document, "drop", n), I(V, "transform", "translateZ(0)")), bt = !0, n._dragStartId = cn(n._dragStarted.bind(n, t, e)), P(document, "selectstart", n), kt = !0, window.getSelection().removeAllRanges(), je && I(document.body, "user-select", "none");
|
|
724
724
|
},
|
|
725
725
|
_onDragOver: function(e) {
|
|
726
726
|
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = J.active, l = yt === s, u = o.sort, d = K || c, f, p = this, m = !1;
|
|
727
727
|
if (It) return;
|
|
728
728
|
function h(o, s) {
|
|
729
|
-
|
|
729
|
+
z(o, p, be({
|
|
730
730
|
evt: e,
|
|
731
731
|
isOwner: l,
|
|
732
732
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -738,7 +738,7 @@ J.prototype = {
|
|
|
738
738
|
target: n,
|
|
739
739
|
completed: _,
|
|
740
740
|
onMove: function(n, i) {
|
|
741
|
-
return Qt(W, t, V, r, n,
|
|
741
|
+
return Qt(W, t, V, r, n, L(n), e, i);
|
|
742
742
|
},
|
|
743
743
|
changed: v
|
|
744
744
|
}, s));
|
|
@@ -747,12 +747,12 @@ J.prototype = {
|
|
|
747
747
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
748
748
|
}
|
|
749
749
|
function _(r) {
|
|
750
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
750
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (ze(V, K ? K.options.ghostClass : c.options.ghostClass, !1), ze(V, o.ghostClass, !0)), K !== p && p !== J.active ? K = p : p === J.active && K && (K = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
751
751
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
752
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === V && !V.animated || n === t && !n.animated) && (At = null), !o.dragoverBubble && !e.rootEl && n !== document && (V.parentNode[
|
|
752
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === V && !V.animated || n === t && !n.animated) && (At = null), !o.dragoverBubble && !e.rootEl && n !== document && (V.parentNode[R]._isOutsideThisEl(e.target), !r && Yt(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
753
753
|
}
|
|
754
754
|
function v() {
|
|
755
|
-
gt =
|
|
755
|
+
gt = Ke(V), vt = Ke(V, o.draggable), B({
|
|
756
756
|
sortable: p,
|
|
757
757
|
name: "change",
|
|
758
758
|
toEl: t,
|
|
@@ -761,36 +761,36 @@ J.prototype = {
|
|
|
761
761
|
originalEvent: e
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
764
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Le(n, o.draggable, t, !0), h("dragOver"), J.eventCanceled) return m;
|
|
765
765
|
if (V.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
766
766
|
if (xt = !1, c && !o.disabled && (l ? u || (a = H !== W) : K === this || (this.lastPutMode = yt.checkPull(this, c, V, e)) && s.checkPut(this, c, V, e))) {
|
|
767
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
767
|
+
if (f = this._getDirection(e, n) === "vertical", r = L(V), h("dragOverValid"), J.eventCanceled) return m;
|
|
768
768
|
if (a) return H = W, g(), this._hideClone(), h("revert"), J.eventCanceled || (ft ? W.insertBefore(V, ft) : W.appendChild(V)), _(!0);
|
|
769
|
-
var y =
|
|
769
|
+
var y = Ge(t, o.draggable);
|
|
770
770
|
if (!y || nn(e, f, this) && !y.animated) {
|
|
771
771
|
if (y === V) return _(!1);
|
|
772
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
772
|
+
if (y && t === e.target && (n = y), n && (i = L(n)), Qt(W, t, V, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(V, y.nextSibling) : t.appendChild(V), H = t, v(), _(!0);
|
|
773
773
|
} else if (y && tn(e, f, this)) {
|
|
774
|
-
var b =
|
|
774
|
+
var b = We(t, 0, o, !0);
|
|
775
775
|
if (b === V) return _(!1);
|
|
776
|
-
if (n = b, i =
|
|
776
|
+
if (n = b, i = L(n), Qt(W, t, V, r, n, i, e, !1) !== !1) return g(), t.insertBefore(V, b), H = t, v(), _(!0);
|
|
777
777
|
} else if (n.parentNode === t) {
|
|
778
|
-
i =
|
|
779
|
-
var x = 0, S, C = V.parentNode !== t, w = !Wt(V.animated && V.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E =
|
|
778
|
+
i = L(n);
|
|
779
|
+
var x = 0, S, C = V.parentNode !== t, w = !Wt(V.animated && V.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Ue(n, "top", "top") || Ue(V, "top", "top"), ee = E ? E.scrollTop : void 0;
|
|
780
780
|
At !== n && (S = i[T], Mt = !1, Nt = !w && o.invertSwap || C), x = rn(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Nt, At === n);
|
|
781
781
|
var te;
|
|
782
782
|
if (x !== 0) {
|
|
783
|
-
var D =
|
|
783
|
+
var D = Ke(V);
|
|
784
784
|
do
|
|
785
785
|
D -= x, te = H.children[D];
|
|
786
|
-
while (te && (
|
|
786
|
+
while (te && (I(te, "display") === "none" || te === U));
|
|
787
787
|
}
|
|
788
788
|
if (x === 0 || te === n) return _(!1);
|
|
789
789
|
At = n, jt = x;
|
|
790
790
|
var O = n.nextElementSibling, k = !1;
|
|
791
791
|
k = x === 1;
|
|
792
792
|
var A = Qt(W, t, V, r, n, i, e, k);
|
|
793
|
-
if (A !== !1) return (A === 1 || A === -1) && (k = A === 1), It = !0, setTimeout(en, 30), g(), k && !O ? t.appendChild(V) : n.parentNode.insertBefore(V, k ? O : n), E &&
|
|
793
|
+
if (A !== !1) return (A === 1 || A === -1) && (k = A === 1), It = !0, setTimeout(en, 30), g(), k && !O ? t.appendChild(V) : n.parentNode.insertBefore(V, k ? O : n), E && tt(E, 0, ee - E.scrollTop), H = V.parentNode, S !== void 0 && !Nt && (Pt = Math.abs(S - L(n)[T])), v(), _(!0);
|
|
794
794
|
}
|
|
795
795
|
if (t.contains(V)) return _(!1);
|
|
796
796
|
}
|
|
@@ -798,19 +798,19 @@ J.prototype = {
|
|
|
798
798
|
},
|
|
799
799
|
_ignoreWhileAnimating: null,
|
|
800
800
|
_offMoveEvents: function() {
|
|
801
|
-
|
|
801
|
+
F(document, "mousemove", this._onTouchMove), F(document, "touchmove", this._onTouchMove), F(document, "pointermove", this._onTouchMove), F(document, "dragover", Yt), F(document, "mousemove", Yt), F(document, "touchmove", Yt);
|
|
802
802
|
},
|
|
803
803
|
_offUpEvents: function() {
|
|
804
804
|
var e = this.el.ownerDocument;
|
|
805
|
-
|
|
805
|
+
F(e, "mouseup", this._onDrop), F(e, "touchend", this._onDrop), F(e, "pointerup", this._onDrop), F(e, "pointercancel", this._onDrop), F(e, "touchcancel", this._onDrop), F(document, "selectstart", this);
|
|
806
806
|
},
|
|
807
807
|
_onDrop: function(e) {
|
|
808
808
|
var t = this.el, n = this.options;
|
|
809
|
-
if (gt =
|
|
809
|
+
if (gt = Ke(V), vt = Ke(V, n.draggable), z("drop", this, { evt: e }), H = V && V.parentNode, gt = Ke(V), vt = Ke(V, n.draggable), J.eventCanceled) {
|
|
810
810
|
this._nulling();
|
|
811
811
|
return;
|
|
812
812
|
}
|
|
813
|
-
bt = !1, Nt = !1, Mt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ln(this.cloneId), ln(this._dragStartId), this.nativeDraggable && (
|
|
813
|
+
bt = !1, Nt = !1, Mt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ln(this.cloneId), ln(this._dragStartId), this.nativeDraggable && (F(document, "drop", this), F(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), je && I(document.body, "user-select", ""), I(V, "transform", ""), e && (kt && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), U && U.parentNode && U.parentNode.removeChild(U), (W === H || K && K.lastPutMode !== "clone") && G && G.parentNode && G.parentNode.removeChild(G), V && (this.nativeDraggable && F(V, "dragend", this), $t(V), V.style["will-change"] = "", kt && !bt && ze(V, K ? K.options.ghostClass : this.options.ghostClass, !1), ze(V, this.options.chosenClass, !1), B({
|
|
814
814
|
sortable: this,
|
|
815
815
|
name: "unchoose",
|
|
816
816
|
toEl: H,
|
|
@@ -857,7 +857,7 @@ J.prototype = {
|
|
|
857
857
|
}), this.save()))), this._nulling();
|
|
858
858
|
},
|
|
859
859
|
_nulling: function() {
|
|
860
|
-
|
|
860
|
+
z("nulling", this), W = V = H = U = ft = G = pt = mt = Ct = wt = kt = gt = vt = ht = _t = At = jt = K = yt = J.dragged = J.ghost = J.clone = J.active = null;
|
|
861
861
|
var e = this.el;
|
|
862
862
|
Lt.forEach(function(t) {
|
|
863
863
|
e.contains(t) && (t.checked = !0);
|
|
@@ -879,14 +879,14 @@ J.prototype = {
|
|
|
879
879
|
}
|
|
880
880
|
},
|
|
881
881
|
toArray: function() {
|
|
882
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
882
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Le(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || on(t));
|
|
883
883
|
return e;
|
|
884
884
|
},
|
|
885
885
|
sort: function(e, t) {
|
|
886
886
|
var n = {}, r = this.el;
|
|
887
887
|
this.toArray().forEach(function(e, t) {
|
|
888
888
|
var i = r.children[t];
|
|
889
|
-
|
|
889
|
+
Le(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
890
890
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
891
891
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
892
892
|
}), t && this.animateAll();
|
|
@@ -896,25 +896,25 @@ J.prototype = {
|
|
|
896
896
|
e && e.set && e.set(this);
|
|
897
897
|
},
|
|
898
898
|
closest: function(e, t) {
|
|
899
|
-
return
|
|
899
|
+
return Le(e, t || this.options.draggable, this.el, !1);
|
|
900
900
|
},
|
|
901
901
|
option: function(e, t) {
|
|
902
902
|
var n = this.options;
|
|
903
903
|
if (t === void 0) return n[e];
|
|
904
|
-
var r =
|
|
904
|
+
var r = lt.modifyOption(this, e, t);
|
|
905
905
|
r === void 0 ? n[e] = t : n[e] = r, e === "group" && Kt(n);
|
|
906
906
|
},
|
|
907
907
|
destroy: function() {
|
|
908
|
-
|
|
908
|
+
z("destroy", this);
|
|
909
909
|
var e = this.el;
|
|
910
|
-
e[
|
|
910
|
+
e[R] = null, F(e, "mousedown", this._onTapStart), F(e, "touchstart", this._onTapStart), F(e, "pointerdown", this._onTapStart), this.nativeDraggable && (F(e, "dragover", this), F(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
911
911
|
e.removeAttribute("draggable");
|
|
912
912
|
}), this._onDrop(), this._disableDelayedDragEvents(), St.splice(St.indexOf(this.el), 1), this.el = e = null;
|
|
913
913
|
},
|
|
914
914
|
_hideClone: function() {
|
|
915
915
|
if (!mt) {
|
|
916
|
-
if (
|
|
917
|
-
|
|
916
|
+
if (z("hideClone", this), J.eventCanceled) return;
|
|
917
|
+
I(G, "display", "none"), this.options.removeCloneOnHide && G.parentNode && G.parentNode.removeChild(G), mt = !0;
|
|
918
918
|
}
|
|
919
919
|
},
|
|
920
920
|
_showClone: function(e) {
|
|
@@ -923,8 +923,8 @@ J.prototype = {
|
|
|
923
923
|
return;
|
|
924
924
|
}
|
|
925
925
|
if (mt) {
|
|
926
|
-
if (
|
|
927
|
-
V.parentNode == W && !this.options.group.revertClone ? W.insertBefore(G, V) : ft ? W.insertBefore(G, ft) : W.appendChild(G), this.options.group.revertClone && this.animate(V, G),
|
|
926
|
+
if (z("showClone", this), J.eventCanceled) return;
|
|
927
|
+
V.parentNode == W && !this.options.group.revertClone ? W.insertBefore(G, V) : ft ? W.insertBefore(G, ft) : W.appendChild(G), this.options.group.revertClone && this.animate(V, G), I(G, "display", ""), mt = !1;
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
};
|
|
@@ -932,11 +932,11 @@ function Zt(e) {
|
|
|
932
932
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
933
933
|
}
|
|
934
934
|
function Qt(e, t, n, r, i, a, o, s) {
|
|
935
|
-
var c, l = e[
|
|
936
|
-
return window.CustomEvent && !
|
|
935
|
+
var c, l = e[R], u = l.options.onMove, d;
|
|
936
|
+
return window.CustomEvent && !Oe && !ke ? c = new CustomEvent("move", {
|
|
937
937
|
bubbles: !0,
|
|
938
938
|
cancelable: !0
|
|
939
|
-
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a ||
|
|
939
|
+
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || L(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
940
940
|
}
|
|
941
941
|
function $t(e) {
|
|
942
942
|
e.draggable = !1;
|
|
@@ -945,11 +945,11 @@ function en() {
|
|
|
945
945
|
It = !1;
|
|
946
946
|
}
|
|
947
947
|
function tn(e, t, n) {
|
|
948
|
-
var r =
|
|
948
|
+
var r = L(We(n.el, 0, n.options, !0)), i = rt(n.el, n.options, U), a = 10;
|
|
949
949
|
return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
|
|
950
950
|
}
|
|
951
951
|
function nn(e, t, n) {
|
|
952
|
-
var r =
|
|
952
|
+
var r = L(Ge(n.el, n.options.draggable)), i = rt(n.el, n.options, U), a = 10;
|
|
953
953
|
return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
|
|
954
954
|
}
|
|
955
955
|
function rn(e, t, n, r, i, a, o, s) {
|
|
@@ -963,7 +963,7 @@ function rn(e, t, n, r, i, a, o, s) {
|
|
|
963
963
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
964
964
|
}
|
|
965
965
|
function an(e) {
|
|
966
|
-
return
|
|
966
|
+
return Ke(V) < Ke(e) ? 1 : -1;
|
|
967
967
|
}
|
|
968
968
|
function on(e) {
|
|
969
969
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
@@ -982,38 +982,38 @@ function cn(e) {
|
|
|
982
982
|
function ln(e) {
|
|
983
983
|
return clearTimeout(e);
|
|
984
984
|
}
|
|
985
|
-
Rt &&
|
|
985
|
+
Rt && P(document, "touchmove", function(e) {
|
|
986
986
|
(J.active || bt) && e.cancelable && e.preventDefault();
|
|
987
987
|
}), J.utils = {
|
|
988
|
-
on:
|
|
989
|
-
off:
|
|
990
|
-
css:
|
|
991
|
-
find:
|
|
988
|
+
on: P,
|
|
989
|
+
off: F,
|
|
990
|
+
css: I,
|
|
991
|
+
find: Ve,
|
|
992
992
|
is: function(e, t) {
|
|
993
|
-
return !!
|
|
994
|
-
},
|
|
995
|
-
extend:
|
|
996
|
-
throttle:
|
|
997
|
-
closest:
|
|
998
|
-
toggleClass:
|
|
999
|
-
clone:
|
|
1000
|
-
index:
|
|
993
|
+
return !!Le(e, t, e, !1);
|
|
994
|
+
},
|
|
995
|
+
extend: Xe,
|
|
996
|
+
throttle: $e,
|
|
997
|
+
closest: Le,
|
|
998
|
+
toggleClass: ze,
|
|
999
|
+
clone: nt,
|
|
1000
|
+
index: Ke,
|
|
1001
1001
|
nextTick: cn,
|
|
1002
1002
|
cancelNextTick: ln,
|
|
1003
1003
|
detectDirection: Ut,
|
|
1004
|
-
getChild:
|
|
1005
|
-
expando:
|
|
1004
|
+
getChild: We,
|
|
1005
|
+
expando: R
|
|
1006
1006
|
}, J.get = function(e) {
|
|
1007
|
-
return e[
|
|
1007
|
+
return e[R];
|
|
1008
1008
|
}, J.mount = function() {
|
|
1009
1009
|
var e = [...arguments];
|
|
1010
1010
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
1011
1011
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
1012
|
-
e.utils && (J.utils =
|
|
1012
|
+
e.utils && (J.utils = be(be({}, J.utils), e.utils)), lt.mount(e);
|
|
1013
1013
|
});
|
|
1014
1014
|
}, J.create = function(e, t) {
|
|
1015
1015
|
return new J(e, t);
|
|
1016
|
-
}, J.version =
|
|
1016
|
+
}, J.version = Ee;
|
|
1017
1017
|
var Y = [], un, dn, fn = !1, pn, mn, hn, gn;
|
|
1018
1018
|
function _n() {
|
|
1019
1019
|
function e() {
|
|
@@ -1028,14 +1028,14 @@ function _n() {
|
|
|
1028
1028
|
return e.prototype = {
|
|
1029
1029
|
dragStarted: function(e) {
|
|
1030
1030
|
var t = e.originalEvent;
|
|
1031
|
-
this.sortable.nativeDraggable ?
|
|
1031
|
+
this.sortable.nativeDraggable ? P(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? P(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? P(document, "touchmove", this._handleFallbackAutoScroll) : P(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1032
1032
|
},
|
|
1033
1033
|
dragOverCompleted: function(e) {
|
|
1034
1034
|
var t = e.originalEvent;
|
|
1035
1035
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1036
1036
|
},
|
|
1037
1037
|
drop: function() {
|
|
1038
|
-
this.sortable.nativeDraggable ?
|
|
1038
|
+
this.sortable.nativeDraggable ? F(document, "dragover", this._handleAutoScroll) : (F(document, "pointermove", this._handleFallbackAutoScroll), F(document, "touchmove", this._handleFallbackAutoScroll), F(document, "mousemove", this._handleFallbackAutoScroll)), yn(), vn(), et();
|
|
1039
1039
|
},
|
|
1040
1040
|
nulling: function() {
|
|
1041
1041
|
hn = dn = un = fn = gn = pn = mn = null, Y.length = 0;
|
|
@@ -1045,19 +1045,19 @@ function _n() {
|
|
|
1045
1045
|
},
|
|
1046
1046
|
_handleAutoScroll: function(e, t) {
|
|
1047
1047
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
1048
|
-
if (hn = e, t || this.options.forceAutoScrollFallback ||
|
|
1048
|
+
if (hn = e, t || this.options.forceAutoScrollFallback || ke || Oe || je) {
|
|
1049
1049
|
bn(e, this.options, a, t);
|
|
1050
|
-
var o =
|
|
1050
|
+
var o = Ye(a, !0);
|
|
1051
1051
|
fn && (!gn || r !== pn || i !== mn) && (gn && yn(), gn = setInterval(function() {
|
|
1052
|
-
var a =
|
|
1052
|
+
var a = Ye(document.elementFromPoint(r, i), !0);
|
|
1053
1053
|
a !== o && (o = a, vn()), bn(e, n.options, a, t);
|
|
1054
1054
|
}, 10), pn = r, mn = i);
|
|
1055
1055
|
} else {
|
|
1056
|
-
if (!this.options.bubbleScroll ||
|
|
1056
|
+
if (!this.options.bubbleScroll || Ye(a, !0) === He()) {
|
|
1057
1057
|
vn();
|
|
1058
1058
|
return;
|
|
1059
1059
|
}
|
|
1060
|
-
bn(e, this.options,
|
|
1060
|
+
bn(e, this.options, Ye(a, !1), !1);
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
1063
|
}, ve(e, {
|
|
@@ -1073,22 +1073,22 @@ function vn() {
|
|
|
1073
1073
|
function yn() {
|
|
1074
1074
|
clearInterval(gn);
|
|
1075
1075
|
}
|
|
1076
|
-
var bn =
|
|
1076
|
+
var bn = $e(function(e, t, n, r) {
|
|
1077
1077
|
if (t.scroll) {
|
|
1078
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
1079
|
-
dn !== n && (dn = n, vn(), un = t.scroll, u = t.scrollFn, un === !0 && (un =
|
|
1078
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = He(), l = !1, u;
|
|
1079
|
+
dn !== n && (dn = n, vn(), un = t.scroll, u = t.scrollFn, un === !0 && (un = Ye(n, !0)));
|
|
1080
1080
|
var d = 0, f = un;
|
|
1081
1081
|
do {
|
|
1082
|
-
var p = f, m =
|
|
1082
|
+
var p = f, m = L(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = I(p), E = p.scrollLeft, ee = p.scrollTop;
|
|
1083
1083
|
p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
|
|
1084
1084
|
var te = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), D = S && (Math.abs(g - a) <= o && ee + b < w) - (Math.abs(h - a) <= o && !!ee);
|
|
1085
1085
|
if (!Y[d]) for (var O = 0; O <= d; O++) Y[O] || (Y[O] = {});
|
|
1086
1086
|
(Y[d].vx != te || Y[d].vy != D || Y[d].el !== p) && (Y[d].el = p, Y[d].vx = te, Y[d].vy = D, clearInterval(Y[d].pid), (te != 0 || D != 0) && (l = !0, Y[d].pid = setInterval(function() {
|
|
1087
1087
|
r && this.layer === 0 && J.active._onTouchMove(hn);
|
|
1088
1088
|
var t = Y[this.layer].vy ? Y[this.layer].vy * s : 0, n = Y[this.layer].vx ? Y[this.layer].vx * s : 0;
|
|
1089
|
-
typeof u == "function" && u.call(J.dragged.parentNode[
|
|
1089
|
+
typeof u == "function" && u.call(J.dragged.parentNode[R], n, t, e, hn, Y[this.layer].el) !== "continue" || tt(Y[this.layer].el, n, t);
|
|
1090
1090
|
}.bind({ layer: d }), 24))), d++;
|
|
1091
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
1091
|
+
} while (t.bubbleScroll && f !== c && (f = Ye(f, !1)));
|
|
1092
1092
|
fn = l;
|
|
1093
1093
|
}
|
|
1094
1094
|
}, 30), xn = function(e) {
|
|
@@ -1112,7 +1112,7 @@ Sn.prototype = {
|
|
|
1112
1112
|
onSpill: function(e) {
|
|
1113
1113
|
var t = e.dragEl, n = e.putSortable;
|
|
1114
1114
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
1115
|
-
var r =
|
|
1115
|
+
var r = We(this.sortable.el, this.startIndex, this.options);
|
|
1116
1116
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
1117
1117
|
},
|
|
1118
1118
|
drop: xn
|
|
@@ -2499,7 +2499,7 @@ var oa = /* @__PURE__ */ new Set(), sa = (e, t) => {
|
|
|
2499
2499
|
root: v,
|
|
2500
2500
|
floating: S,
|
|
2501
2501
|
hoverArea: r(() => t.hoverTarget ? w.value : null),
|
|
2502
|
-
close: () => t.disableClickOutsideToClose ? !1 : (
|
|
2502
|
+
close: () => t.disableClickOutsideToClose ? !1 : (be(), !0)
|
|
2503
2503
|
}), ie = {
|
|
2504
2504
|
"top-center": "top",
|
|
2505
2505
|
"bottom-center": "bottom",
|
|
@@ -2601,12 +2601,12 @@ var oa = /* @__PURE__ */ new Set(), sa = (e, t) => {
|
|
|
2601
2601
|
_e(), ve(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? he = setTimeout(() => {
|
|
2602
2602
|
c.value = !0, he = void 0;
|
|
2603
2603
|
}, t.delay) : c.value = e);
|
|
2604
|
-
}, P = () => {
|
|
2605
|
-
_e(), ve(), c.value = !1;
|
|
2606
2604
|
}, be = () => {
|
|
2605
|
+
_e(), ve(), c.value = !1;
|
|
2606
|
+
}, xe = () => {
|
|
2607
2607
|
let e = S.value;
|
|
2608
2608
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
2609
|
-
},
|
|
2609
|
+
}, Se = r(() => !!c.value && (te.value || A.value)), Ce = r(() => !t.showOnHover || j.value ? !1 : t.disableInteractive ? ee.value || O.value : ee.value || O.value || Se.value);
|
|
2610
2610
|
N([
|
|
2611
2611
|
ee,
|
|
2612
2612
|
O,
|
|
@@ -2614,68 +2614,54 @@ var oa = /* @__PURE__ */ new Set(), sa = (e, t) => {
|
|
|
2614
2614
|
], ([e, t, n]) => {
|
|
2615
2615
|
!e && !t && !n && (j.value = !1);
|
|
2616
2616
|
});
|
|
2617
|
-
let
|
|
2617
|
+
let we = ({ target: e }) => {
|
|
2618
2618
|
O.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
2619
|
-
},
|
|
2619
|
+
}, Te = ({ target: e }) => {
|
|
2620
2620
|
A.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
2621
|
-
}, Te = () => {
|
|
2622
|
-
A.value = !1;
|
|
2623
2621
|
}, Ee = () => {
|
|
2622
|
+
A.value = !1;
|
|
2623
|
+
}, De = () => {
|
|
2624
2624
|
if (t.showOnHover) {
|
|
2625
2625
|
if (t.disableClickOutsideToClose) return;
|
|
2626
2626
|
if (!c.value && !he && t.enableClickToggle) {
|
|
2627
2627
|
j.value = !1, ye(!0);
|
|
2628
2628
|
return;
|
|
2629
2629
|
}
|
|
2630
|
-
j.value = !0,
|
|
2630
|
+
j.value = !0, be();
|
|
2631
2631
|
return;
|
|
2632
2632
|
}
|
|
2633
2633
|
ye(he ? !1 : !c.value);
|
|
2634
|
-
},
|
|
2634
|
+
}, Oe = (e) => {
|
|
2635
2635
|
let t = e.newState === "open";
|
|
2636
2636
|
c.value !== t && (c.value = t);
|
|
2637
|
-
},
|
|
2637
|
+
}, ke = (e) => {
|
|
2638
2638
|
h && se.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), ye(!1));
|
|
2639
|
-
}, ke = (e) => e ? Array.from(e.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])")) : [], Ae = r(() => t.useTeleport && !h && t.showOnHover && !t.disabled), je = (e) => {
|
|
2640
|
-
if (!Ae.value || e.key !== "Tab" || e.shiftKey || !c.value) return;
|
|
2641
|
-
let [t] = ke(S.value);
|
|
2642
|
-
t && (e.preventDefault(), A.value = !0, t.focus());
|
|
2643
|
-
}, Me = (e) => {
|
|
2644
|
-
if (!Ae.value) return;
|
|
2645
|
-
let [t] = ke(y.value);
|
|
2646
|
-
if (e.key === "Escape") {
|
|
2647
|
-
e.preventDefault(), e.stopPropagation(), j.value = !0, P(), t?.focus();
|
|
2648
|
-
return;
|
|
2649
|
-
}
|
|
2650
|
-
if (e.key !== "Tab") return;
|
|
2651
|
-
let n = ke(S.value);
|
|
2652
|
-
e.shiftKey && document.activeElement === n[0] ? (e.preventDefault(), t?.focus()) : !e.shiftKey && document.activeElement === n[n.length - 1] && (j.value = !0, P(), t?.focus());
|
|
2653
2639
|
};
|
|
2654
2640
|
return N(c, async (e) => {
|
|
2655
2641
|
if (t.showOnHover && t.enableGroupSync && M(!!e), !h) {
|
|
2656
2642
|
e && fe();
|
|
2657
2643
|
return;
|
|
2658
2644
|
}
|
|
2659
|
-
await _(),
|
|
2660
|
-
}), N(
|
|
2645
|
+
await _(), xe();
|
|
2646
|
+
}), N(Ce, (e) => {
|
|
2661
2647
|
if (t.showOnHover) {
|
|
2662
2648
|
if (e) {
|
|
2663
2649
|
ye(!0);
|
|
2664
2650
|
return;
|
|
2665
2651
|
}
|
|
2666
2652
|
_e(), t.closeDelay > 0 ? (ve(), ge = setTimeout(() => {
|
|
2667
|
-
ge = void 0,
|
|
2653
|
+
ge = void 0, Ce.value || ye(!1);
|
|
2668
2654
|
}, t.closeDelay)) : ye(!1);
|
|
2669
2655
|
}
|
|
2670
2656
|
}), N(m, (e) => {
|
|
2671
|
-
e ? h && c.value && _(
|
|
2657
|
+
e ? h && c.value && _(xe) : be();
|
|
2672
2658
|
}), C(() => {
|
|
2673
|
-
x.value = y.value, g.value = !0, c.value && _(() => h ?
|
|
2659
|
+
x.value = y.value, g.value = !0, c.value && _(() => h ? xe() : fe());
|
|
2674
2660
|
}), T(() => {
|
|
2675
2661
|
_e(), ve();
|
|
2676
2662
|
}), N(() => t.disabled, (e) => {
|
|
2677
2663
|
if (!e) {
|
|
2678
|
-
|
|
2664
|
+
Ce.value && ye(!0);
|
|
2679
2665
|
return;
|
|
2680
2666
|
}
|
|
2681
2667
|
O.value &&= !1, A.value &&= !1, ye(!1);
|
|
@@ -2683,15 +2669,14 @@ var oa = /* @__PURE__ */ new Set(), sa = (e, t) => {
|
|
|
2683
2669
|
ref_key: "root",
|
|
2684
2670
|
ref: v,
|
|
2685
2671
|
style: b(ce.value),
|
|
2686
|
-
onKeydown:
|
|
2672
|
+
onKeydown: ke
|
|
2687
2673
|
}, [s("div", {
|
|
2688
2674
|
ref_key: "triggerWrapper",
|
|
2689
2675
|
ref: y,
|
|
2690
2676
|
style: b(ue.value),
|
|
2691
|
-
onClick:
|
|
2692
|
-
onFocusin:
|
|
2693
|
-
onFocusout: l[0] ||= (e) => O.value = !1
|
|
2694
|
-
onKeydown: je
|
|
2677
|
+
onClick: De,
|
|
2678
|
+
onFocusin: we,
|
|
2679
|
+
onFocusout: l[0] ||= (e) => O.value = !1
|
|
2695
2680
|
}, [k(r.$slots, "trigger")], 36), g.value && ne(h) && m.value ? (E(), o("div", {
|
|
2696
2681
|
key: 0,
|
|
2697
2682
|
ref_key: "floating",
|
|
@@ -2699,9 +2684,9 @@ var oa = /* @__PURE__ */ new Set(), sa = (e, t) => {
|
|
|
2699
2684
|
class: "pv-floating pv-floating-native",
|
|
2700
2685
|
popover: se.value,
|
|
2701
2686
|
style: b(de.value),
|
|
2702
|
-
onToggle:
|
|
2703
|
-
onFocusin:
|
|
2704
|
-
onFocusout:
|
|
2687
|
+
onToggle: Oe,
|
|
2688
|
+
onFocusin: Te,
|
|
2689
|
+
onFocusout: Ee
|
|
2705
2690
|
}, [e.disabled ? a("v-if", !0) : k(r.$slots, "content", { key: 0 })], 44, la)) : m.value ? (E(), i(n, {
|
|
2706
2691
|
key: 1,
|
|
2707
2692
|
to: e.teleportLocation,
|
|
@@ -2711,9 +2696,8 @@ var oa = /* @__PURE__ */ new Set(), sa = (e, t) => {
|
|
|
2711
2696
|
ref: S,
|
|
2712
2697
|
class: "pv-floating",
|
|
2713
2698
|
style: b(me.value),
|
|
2714
|
-
onFocusin:
|
|
2715
|
-
onFocusout:
|
|
2716
|
-
onKeydown: Me
|
|
2699
|
+
onFocusin: Te,
|
|
2700
|
+
onFocusout: Ee
|
|
2717
2701
|
}, [k(r.$slots, "content")], 36), [[oe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
2718
2702
|
}
|
|
2719
2703
|
}), fa = ["data-variant"], pa = /* @__PURE__ */ d({
|