@turquoisehealth/pit-viper 2.244.1 → 2.244.2
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.css +56 -2
- package/_site/assets/css/pit-viper-consumer.css +56 -2
- package/_site/assets/css/pit-viper-v2-scoped.css +50 -2
- package/_site/assets/css/pit-viper-v2.css +56 -2
- package/_site/assets/css/pit-viper.css +56 -2
- package/_src/assets/sprite-v2.svg +1 -1
- package/_src/assets/sprite.svg +1 -1
- 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-accordion-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-confirmation-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-counter-badge-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-expandable-content-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-ghost-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-horizontal-scroller-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-insight-card-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-pagination-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-range-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-reasoning-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-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-stepper-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tool-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tree-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvCounterBadge/PvCounterBadge.vue.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvStepper/PvStepper.vue.d.ts +3 -5
- package/pv-components/dist/vue/ai/components/base/PvStepper/types.d.ts +19 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/PvTree.vue.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvTree/PvTreeItem.vue.d.ts +2 -0
- package/pv-components/dist/vue/ai/pv-components-ai.mjs +6 -4
- package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -1
- package/pv-components/dist/vue/base/components/base/PvCounterBadge/PvCounterBadge.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvStepper/PvStepper.vue.d.ts +3 -5
- package/pv-components/dist/vue/base/components/base/PvStepper/types.d.ts +19 -0
- package/pv-components/dist/vue/base/components/base/PvTree/PvTree.vue.d.ts +8 -0
- package/pv-components/dist/vue/base/components/base/PvTree/PvTreeItem.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +170 -75
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvCounterBadge/PvCounterBadge.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvStepper/PvStepper.vue.d.ts +3 -5
- package/pv-components/dist/vue/visualizations/components/base/PvStepper/types.d.ts +19 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/PvTree.vue.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTree/PvTreeItem.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +6 -4
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +6 -4
- package/pv-components/dist/web/components/pv-button/pv-button.js +5 -3
- package/pv-components/dist/web/components/pv-confirmation/pv-confirmation.js +6 -4
- package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +5 -3
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +5 -3
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +6 -4
- package/pv-components/dist/web/components/pv-file-input/pv-file-input.js +5 -3
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +6 -4
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +6 -4
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +5 -3
- package/pv-components/dist/web/components/pv-horizontal-scroller/pv-horizontal-scroller.js +5 -3
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +6 -4
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +6 -4
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +6 -4
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +6 -4
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +6 -4
- package/pv-components/dist/web/components/pv-prompt-input/pv-prompt-input.js +6 -4
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +5 -3
- package/pv-components/dist/web/components/pv-question/pv-question.js +6 -4
- package/pv-components/dist/web/components/pv-range/pv-range.js +5 -3
- package/pv-components/dist/web/components/pv-reasoning/pv-reasoning.js +6 -4
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +5 -3
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +5 -3
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +5 -3
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +6 -4
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +6 -4
- package/pv-components/dist/web/components/pv-stepper/pv-stepper.js +649 -485
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +5 -3
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +5 -3
- package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +5 -3
- package/pv-components/dist/web/components/pv-tool/pv-tool.js +6 -4
- package/pv-components/dist/web/components/pv-tree/pv-tree.js +533 -521
- package/pv-components/dist/web/pv-components.iife.js +3 -3
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, defineCustomElement as c, getCurrentInstance as l, inject as u, mergeModels as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onMounted as g, openBlock as _, provide as v, reactive as y, readonly as b, ref as x, renderList as S, renderSlot as C, resolveComponent as w, resolveDynamicComponent as T, toDisplayString as E, unref as D, useModel as O, vModelCheckbox as k, vShow as A, watch as j, withCtx as M, withDirectives as ee, withModifiers as te } from "vue";
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
|
-
var ne = Object.create, re = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, ae = Object.getOwnPropertyNames, N = Object.getPrototypeOf, oe = Object.prototype.hasOwnProperty, P = (e, t) => () => (e && (t = e(e = 0)), t), se = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
3
|
+
var ne = Object.create, re = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, ae = Object.getOwnPropertyNames, N = Object.getPrototypeOf, oe = Object.prototype.hasOwnProperty, P = (e, t) => () => (e && (t = e(e = 0)), t), se = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), ce = (e, t) => {
|
|
4
4
|
let n = {};
|
|
5
5
|
for (var r in e) re(n, r, {
|
|
6
6
|
get: e[r],
|
|
7
7
|
enumerable: !0
|
|
8
8
|
});
|
|
9
9
|
return t || re(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
10
|
-
},
|
|
10
|
+
}, le = (e, t, n, r) => {
|
|
11
11
|
if (t && typeof t == "object" || typeof t == "function") for (var i = ae(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !oe.call(e, s) && s !== n && re(e, s, {
|
|
12
12
|
get: ((e) => t[e]).bind(null, s),
|
|
13
13
|
enumerable: !(r = ie(t, s)) || r.enumerable
|
|
14
14
|
});
|
|
15
15
|
return e;
|
|
16
|
-
},
|
|
16
|
+
}, ue = (e, t, n) => (n = e == null ? {} : ne(N(e)), le(t || !e || !e.__esModule ? re(n, "default", {
|
|
17
17
|
value: e,
|
|
18
18
|
enumerable: !0
|
|
19
|
-
}) : n, e)),
|
|
19
|
+
}) : n, e)), F = (e) => oe.call(e, "module.exports") ? e["module.exports"] : le(re({}, "__esModule", { value: !0 }), e), de = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
20
20
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
21
21
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
22
|
-
}),
|
|
23
|
-
MultiDrag: () =>
|
|
24
|
-
Sortable: () =>
|
|
25
|
-
Swap: () =>
|
|
26
|
-
default: () =>
|
|
22
|
+
}), fe = /* @__PURE__ */ ce({
|
|
23
|
+
MultiDrag: () => gt,
|
|
24
|
+
Sortable: () => U,
|
|
25
|
+
Swap: () => mt,
|
|
26
|
+
default: () => U
|
|
27
27
|
});
|
|
28
|
-
function
|
|
28
|
+
function pe(e, t) {
|
|
29
29
|
var n = Object.keys(e);
|
|
30
30
|
if (Object.getOwnPropertySymbols) {
|
|
31
31
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -35,26 +35,26 @@ function fe(e, t) {
|
|
|
35
35
|
}
|
|
36
36
|
return n;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function me(e) {
|
|
39
39
|
for (var t = 1; t < arguments.length; t++) {
|
|
40
40
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
41
|
-
t % 2 ?
|
|
42
|
-
|
|
43
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
41
|
+
t % 2 ? pe(Object(n), !0).forEach(function(t) {
|
|
42
|
+
ge(e, t, n[t]);
|
|
43
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pe(Object(n)).forEach(function(t) {
|
|
44
44
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
return e;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function he(e) {
|
|
50
50
|
"@babel/helpers - typeof";
|
|
51
|
-
return
|
|
51
|
+
return he = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
52
52
|
return typeof e;
|
|
53
53
|
} : function(e) {
|
|
54
54
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
55
|
-
},
|
|
55
|
+
}, he(e);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function ge(e, t, n) {
|
|
58
58
|
return t in e ? Object.defineProperty(e, t, {
|
|
59
59
|
value: n,
|
|
60
60
|
enumerable: !0,
|
|
@@ -62,65 +62,65 @@ function he(e, t, n) {
|
|
|
62
62
|
writable: !0
|
|
63
63
|
}) : e[t] = n, e;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
return
|
|
65
|
+
function I() {
|
|
66
|
+
return I = Object.assign || function(e) {
|
|
67
67
|
for (var t = 1; t < arguments.length; t++) {
|
|
68
68
|
var n = arguments[t];
|
|
69
69
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
70
70
|
}
|
|
71
71
|
return e;
|
|
72
|
-
},
|
|
72
|
+
}, I.apply(this, arguments);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function _e(e, t) {
|
|
75
75
|
if (e == null) return {};
|
|
76
76
|
var n = {}, r = Object.keys(e), i, a;
|
|
77
77
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
78
78
|
return n;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ve(e, t) {
|
|
81
81
|
if (e == null) return {};
|
|
82
|
-
var n =
|
|
82
|
+
var n = _e(e, t), r, i;
|
|
83
83
|
if (Object.getOwnPropertySymbols) {
|
|
84
84
|
var a = Object.getOwnPropertySymbols(e);
|
|
85
85
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
86
86
|
}
|
|
87
87
|
return n;
|
|
88
88
|
}
|
|
89
|
-
function ve(e) {
|
|
90
|
-
return ye(e) || be(e) || xe(e) || Ce();
|
|
91
|
-
}
|
|
92
89
|
function ye(e) {
|
|
93
|
-
|
|
90
|
+
return be(e) || xe(e) || Se(e) || we();
|
|
94
91
|
}
|
|
95
92
|
function be(e) {
|
|
93
|
+
if (Array.isArray(e)) return Ce(e);
|
|
94
|
+
}
|
|
95
|
+
function xe(e) {
|
|
96
96
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Se(e, t) {
|
|
99
99
|
if (e) {
|
|
100
|
-
if (typeof e == "string") return
|
|
100
|
+
if (typeof e == "string") return Ce(e, t);
|
|
101
101
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
102
102
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
103
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
103
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Ce(e, t);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Ce(e, t) {
|
|
107
107
|
(t == null || t > e.length) && (t = e.length);
|
|
108
108
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
109
109
|
return r;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function we() {
|
|
112
112
|
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Te(e) {
|
|
115
115
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
e.addEventListener(t, n, !
|
|
117
|
+
function L(e, t, n) {
|
|
118
|
+
e.addEventListener(t, n, !xt && Dt);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
e.removeEventListener(t, n, !
|
|
120
|
+
function R(e, t, n) {
|
|
121
|
+
e.removeEventListener(t, n, !xt && Dt);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ee(e, t) {
|
|
124
124
|
if (t) {
|
|
125
125
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
126
126
|
if (e.matches) return e.matches(t);
|
|
@@ -132,40 +132,40 @@ function Te(e, t) {
|
|
|
132
132
|
return !1;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function De(e) {
|
|
136
136
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Oe(e, t, n, r) {
|
|
139
139
|
if (e) {
|
|
140
140
|
n ||= document;
|
|
141
141
|
do {
|
|
142
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
142
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Ee(e, t) : Ee(e, t)) || r && e === n) return e;
|
|
143
143
|
if (e === n) break;
|
|
144
|
-
} while (e =
|
|
144
|
+
} while (e = De(e));
|
|
145
145
|
}
|
|
146
146
|
return null;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
148
|
+
function z(e, t, n) {
|
|
149
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Ot, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Ot, " "));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function B(e, t, n) {
|
|
152
152
|
var r = e && e.style;
|
|
153
153
|
if (r) {
|
|
154
154
|
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];
|
|
155
155
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ke(e, t) {
|
|
159
159
|
var n = "";
|
|
160
160
|
if (typeof e == "string") n = e;
|
|
161
161
|
else do {
|
|
162
|
-
var r =
|
|
162
|
+
var r = B(e, "transform");
|
|
163
163
|
r && r !== "none" && (n = r + " " + n);
|
|
164
164
|
} while (!t && (e = e.parentNode));
|
|
165
165
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
166
166
|
return i && new i(n);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Ae(e, t, n) {
|
|
169
169
|
if (e) {
|
|
170
170
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
171
171
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -173,21 +173,21 @@ function ke(e, t, n) {
|
|
|
173
173
|
}
|
|
174
174
|
return [];
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function je() {
|
|
177
177
|
return document.scrollingElement || document.documentElement;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function V(e, t, n, r, i) {
|
|
180
180
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
181
181
|
var a, o, s, c, l, u, d;
|
|
182
|
-
if (e !== window && e.parentNode && e !==
|
|
183
|
-
if (i && i.getBoundingClientRect && (
|
|
182
|
+
if (e !== window && e.parentNode && e !== je() ? (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, !xt)) do
|
|
183
|
+
if (i && i.getBoundingClientRect && (B(i, "transform") !== "none" || n && B(i, "position") !== "static")) {
|
|
184
184
|
var f = i.getBoundingClientRect();
|
|
185
|
-
o -= f.top + parseInt(
|
|
185
|
+
o -= f.top + parseInt(B(i, "border-top-width")), s -= f.left + parseInt(B(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
186
186
|
break;
|
|
187
187
|
}
|
|
188
188
|
while (i = i.parentNode);
|
|
189
189
|
if (r && e !== window) {
|
|
190
|
-
var p =
|
|
190
|
+
var p = ke(i || e), m = p && p.a, h = p && p.d;
|
|
191
191
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
192
192
|
}
|
|
193
193
|
return {
|
|
@@ -200,18 +200,18 @@ function H(e, t, n, r, i) {
|
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
for (var r =
|
|
205
|
-
var a =
|
|
203
|
+
function Me(e, t, n) {
|
|
204
|
+
for (var r = Le(e, !0), i = V(e)[t]; r;) {
|
|
205
|
+
var a = V(r)[n], o = void 0;
|
|
206
206
|
if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
|
|
207
|
-
if (r ===
|
|
208
|
-
r =
|
|
207
|
+
if (r === je()) break;
|
|
208
|
+
r = Le(r, !1);
|
|
209
209
|
}
|
|
210
210
|
return !1;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Ne(e, t, n, r) {
|
|
213
213
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
214
|
-
if (o[a].style.display !== "none" && o[a] !==
|
|
214
|
+
if (o[a].style.display !== "none" && o[a] !== U.ghost && (r || o[a] !== U.dragged) && Oe(o[a], n.draggable, e, !1)) {
|
|
215
215
|
if (i === t) return o[a];
|
|
216
216
|
i++;
|
|
217
217
|
}
|
|
@@ -219,91 +219,91 @@ function Me(e, t, n, r) {
|
|
|
219
219
|
}
|
|
220
220
|
return null;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
for (var n = e.lastElementChild; n && (n ===
|
|
222
|
+
function Pe(e, t) {
|
|
223
|
+
for (var n = e.lastElementChild; n && (n === U.ghost || B(n, "display") === "none" || t && !Ee(n, t));) n = n.previousElementSibling;
|
|
224
224
|
return n || null;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function H(e, t) {
|
|
227
227
|
var n = 0;
|
|
228
228
|
if (!e || !e.parentNode) return -1;
|
|
229
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !==
|
|
229
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== U.clone && (!t || Ee(e, t)) && n++;
|
|
230
230
|
return n;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
var t = 0, n = 0, r =
|
|
232
|
+
function Fe(e) {
|
|
233
|
+
var t = 0, n = 0, r = je();
|
|
234
234
|
if (e) do {
|
|
235
|
-
var i =
|
|
235
|
+
var i = ke(e), a = i.a, o = i.d;
|
|
236
236
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
237
237
|
} while (e !== r && (e = e.parentNode));
|
|
238
238
|
return [t, n];
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Ie(e, t) {
|
|
241
241
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
242
242
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
243
243
|
}
|
|
244
244
|
return -1;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
if (!e || !e.getBoundingClientRect) return
|
|
246
|
+
function Le(e, t) {
|
|
247
|
+
if (!e || !e.getBoundingClientRect) return je();
|
|
248
248
|
var n = e, r = !1;
|
|
249
249
|
do
|
|
250
250
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
251
|
-
var i =
|
|
251
|
+
var i = B(n);
|
|
252
252
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
253
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
253
|
+
if (!n.getBoundingClientRect || n === document.body) return je();
|
|
254
254
|
if (r || t) return n;
|
|
255
255
|
r = !0;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
while (n = n.parentNode);
|
|
259
|
-
return
|
|
259
|
+
return je();
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Re(e, t) {
|
|
262
262
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
263
263
|
return e;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function ze(e, t) {
|
|
266
266
|
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);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Be(e, t) {
|
|
269
269
|
return function() {
|
|
270
|
-
if (!
|
|
270
|
+
if (!kt) {
|
|
271
271
|
var n = arguments, r = this;
|
|
272
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
273
|
-
|
|
272
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), kt = setTimeout(function() {
|
|
273
|
+
kt = void 0;
|
|
274
274
|
}, t);
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
clearTimeout(
|
|
278
|
+
function Ve() {
|
|
279
|
+
clearTimeout(kt), kt = void 0;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function He(e, t, n) {
|
|
282
282
|
e.scrollLeft += t, e.scrollTop += n;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Ue(e) {
|
|
285
285
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
286
286
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
|
|
288
|
+
function We(e, t) {
|
|
289
|
+
B(e, "position", "absolute"), B(e, "top", t.top), B(e, "left", t.left), B(e, "width", t.width), B(e, "height", t.height);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
|
|
291
|
+
function Ge(e) {
|
|
292
|
+
B(e, "position", ""), B(e, "top", ""), B(e, "left", ""), B(e, "width", ""), B(e, "height", "");
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Ke() {
|
|
295
295
|
var e = [], t;
|
|
296
296
|
return {
|
|
297
297
|
captureAnimationState: function() {
|
|
298
298
|
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
299
|
-
if (!(
|
|
299
|
+
if (!(B(t, "display") === "none" || t === U.ghost)) {
|
|
300
300
|
e.push({
|
|
301
301
|
target: t,
|
|
302
|
-
rect:
|
|
302
|
+
rect: V(t)
|
|
303
303
|
});
|
|
304
|
-
var n =
|
|
304
|
+
var n = me({}, e[e.length - 1].rect);
|
|
305
305
|
if (t.thisAnimationDuration) {
|
|
306
|
-
var r =
|
|
306
|
+
var r = ke(t, !0);
|
|
307
307
|
r && (n.top -= r.f, n.left -= r.e);
|
|
308
308
|
}
|
|
309
309
|
t.fromRect = n;
|
|
@@ -314,7 +314,7 @@ function Ge() {
|
|
|
314
314
|
e.push(t);
|
|
315
315
|
},
|
|
316
316
|
removeAnimationState: function(t) {
|
|
317
|
-
e.splice(
|
|
317
|
+
e.splice(Ie(e, { target: t }), 1);
|
|
318
318
|
},
|
|
319
319
|
animateAll: function(n) {
|
|
320
320
|
var r = this;
|
|
@@ -324,8 +324,8 @@ function Ge() {
|
|
|
324
324
|
}
|
|
325
325
|
var i = !1, a = 0;
|
|
326
326
|
e.forEach(function(e) {
|
|
327
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
328
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
327
|
+
var t = 0, n = e.target, o = n.fromRect, s = V(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = ke(n, !0);
|
|
328
|
+
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 = Je(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() {
|
|
329
329
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
330
330
|
}, t), n.thisAnimationDuration = t);
|
|
331
331
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -334,36 +334,36 @@ function Ge() {
|
|
|
334
334
|
},
|
|
335
335
|
animate: function(e, t, n, r) {
|
|
336
336
|
if (r) {
|
|
337
|
-
|
|
338
|
-
var i =
|
|
339
|
-
e.animatingX = !!s, e.animatingY = !!c,
|
|
340
|
-
|
|
337
|
+
B(e, "transition", ""), B(e, "transform", "");
|
|
338
|
+
var i = ke(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
339
|
+
e.animatingX = !!s, e.animatingY = !!c, B(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = qe(e), B(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), B(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
340
|
+
B(e, "transition", ""), B(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
341
341
|
}, r);
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function qe(e) {
|
|
347
347
|
return e.offsetWidth;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Je(e, t, n, r) {
|
|
350
350
|
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;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Ye(e) {
|
|
353
353
|
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;
|
|
354
|
-
if (t ||= n && n[
|
|
354
|
+
if (t ||= n && n[W], t) {
|
|
355
355
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
356
|
-
window.CustomEvent && !
|
|
356
|
+
window.CustomEvent && !xt && !St ? h = new CustomEvent(r, {
|
|
357
357
|
bubbles: !0,
|
|
358
358
|
cancelable: !0
|
|
359
359
|
}) : (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;
|
|
360
|
-
var v =
|
|
360
|
+
var v = me(me({}, m), Mt.getEventProperties(r, t));
|
|
361
361
|
for (var y in v) h[y] = v[y];
|
|
362
362
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
|
|
365
|
+
function Xe(e) {
|
|
366
|
+
Ye(me({
|
|
367
367
|
putSortable: Ut,
|
|
368
368
|
cloneEl: Y,
|
|
369
369
|
targetEl: G,
|
|
@@ -374,9 +374,9 @@ function Ye(e) {
|
|
|
374
374
|
newDraggableIndex: Vt
|
|
375
375
|
}, e));
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function U(e, t) {
|
|
378
378
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
379
|
-
this.el = e, this.options = t =
|
|
379
|
+
this.el = e, this.options = t = I({}, t), e[W] = this;
|
|
380
380
|
var n = {
|
|
381
381
|
group: null,
|
|
382
382
|
sort: !0,
|
|
@@ -416,68 +416,68 @@ function W(e, t) {
|
|
|
416
416
|
x: 0,
|
|
417
417
|
y: 0
|
|
418
418
|
},
|
|
419
|
-
supportPointer:
|
|
419
|
+
supportPointer: U.supportPointer !== !1 && "PointerEvent" in window && !wt,
|
|
420
420
|
emptyInsertThreshold: 5
|
|
421
421
|
};
|
|
422
422
|
for (var r in Mt.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
423
423
|
for (var i in vn(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
424
|
-
this.nativeDraggable = t.forceFallback ? !1 : pn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ?
|
|
424
|
+
this.nativeDraggable = t.forceFallback ? !1 : pn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Kt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), I(this, Ke());
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function Ze(e) {
|
|
427
427
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
var c, l = e[
|
|
431
|
-
return window.CustomEvent && !
|
|
429
|
+
function Qe(e, t, n, r, i, a, o, s) {
|
|
430
|
+
var c, l = e[W], u = l.options.onMove, d;
|
|
431
|
+
return window.CustomEvent && !xt && !St ? c = new CustomEvent("move", {
|
|
432
432
|
bubbles: !0,
|
|
433
433
|
cancelable: !0
|
|
434
|
-
}) : (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 ||
|
|
434
|
+
}) : (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 || V(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function $e(e) {
|
|
437
437
|
e.draggable = !1;
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function et() {
|
|
440
440
|
cn = !1;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
var r =
|
|
442
|
+
function tt(e, t, n) {
|
|
443
|
+
var r = V(Ne(n.el, 0, n.options, !0)), i = 10;
|
|
444
444
|
return t ? e.clientX < r.left - i || e.clientY < r.top && e.clientX < r.right : e.clientY < r.top - i || e.clientY < r.bottom && e.clientX < r.left;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
var r =
|
|
446
|
+
function nt(e, t, n) {
|
|
447
|
+
var r = V(Pe(n.el, n.options.draggable)), i = 10;
|
|
448
448
|
return t ? e.clientX > r.right + i || e.clientX <= r.right && e.clientY > r.bottom && e.clientX >= r.left : e.clientX > r.right && e.clientY > r.top || e.clientX <= r.right && e.clientY > r.bottom + i;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function rt(e, t, n, r, i, a, o, s) {
|
|
451
451
|
var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
|
|
452
452
|
if (!o) {
|
|
453
453
|
if (s && an < l * i) {
|
|
454
454
|
if (!nn && (tn === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (nn = !0), nn) f = !0;
|
|
455
455
|
else if (tn === 1 ? c < u + an : c > d - an) return -tn;
|
|
456
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
456
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return it(t);
|
|
457
457
|
}
|
|
458
458
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
459
459
|
}
|
|
460
|
-
function rt(e) {
|
|
461
|
-
return U(G) < U(e) ? 1 : -1;
|
|
462
|
-
}
|
|
463
460
|
function it(e) {
|
|
461
|
+
return H(G) < H(e) ? 1 : -1;
|
|
462
|
+
}
|
|
463
|
+
function at(e) {
|
|
464
464
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
465
465
|
return r.toString(36);
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function ot(e) {
|
|
468
468
|
ln.length = 0;
|
|
469
469
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
470
470
|
var r = t[n];
|
|
471
471
|
r.checked && ln.push(r);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function st(e) {
|
|
475
475
|
return setTimeout(e, 0);
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function ct(e) {
|
|
478
478
|
return clearTimeout(e);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function lt() {
|
|
481
481
|
function e() {
|
|
482
482
|
for (var e in this.defaults = {
|
|
483
483
|
scroll: !0,
|
|
@@ -490,14 +490,14 @@ function ct() {
|
|
|
490
490
|
return e.prototype = {
|
|
491
491
|
dragStarted: function(e) {
|
|
492
492
|
var t = e.originalEvent;
|
|
493
|
-
this.sortable.nativeDraggable ?
|
|
493
|
+
this.sortable.nativeDraggable ? L(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? L(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? L(document, "touchmove", this._handleFallbackAutoScroll) : L(document, "mousemove", this._handleFallbackAutoScroll);
|
|
494
494
|
},
|
|
495
495
|
dragOverCompleted: function(e) {
|
|
496
496
|
var t = e.originalEvent;
|
|
497
497
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
498
498
|
},
|
|
499
499
|
drop: function() {
|
|
500
|
-
this.sortable.nativeDraggable ?
|
|
500
|
+
this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : (R(document, "pointermove", this._handleFallbackAutoScroll), R(document, "touchmove", this._handleFallbackAutoScroll), R(document, "mousemove", this._handleFallbackAutoScroll)), dt(), ut(), Ve();
|
|
501
501
|
},
|
|
502
502
|
nulling: function() {
|
|
503
503
|
On = wn = Cn = Tn = kn = En = Dn = null, X.length = 0;
|
|
@@ -507,37 +507,37 @@ function ct() {
|
|
|
507
507
|
},
|
|
508
508
|
_handleAutoScroll: function(e, t) {
|
|
509
509
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
510
|
-
if (On = e, t || this.options.forceAutoScrollFallback ||
|
|
510
|
+
if (On = e, t || this.options.forceAutoScrollFallback || St || xt || wt) {
|
|
511
511
|
An(e, this.options, a, t);
|
|
512
|
-
var o =
|
|
513
|
-
Tn && (!kn || r !== En || i !== Dn) && (kn &&
|
|
514
|
-
var a =
|
|
515
|
-
a !== o && (o = a,
|
|
512
|
+
var o = Le(a, !0);
|
|
513
|
+
Tn && (!kn || r !== En || i !== Dn) && (kn && dt(), kn = setInterval(function() {
|
|
514
|
+
var a = Le(document.elementFromPoint(r, i), !0);
|
|
515
|
+
a !== o && (o = a, ut()), An(e, n.options, a, t);
|
|
516
516
|
}, 10), En = r, Dn = i);
|
|
517
517
|
} else {
|
|
518
|
-
if (!this.options.bubbleScroll ||
|
|
519
|
-
|
|
518
|
+
if (!this.options.bubbleScroll || Le(a, !0) === je()) {
|
|
519
|
+
ut();
|
|
520
520
|
return;
|
|
521
521
|
}
|
|
522
|
-
An(e, this.options,
|
|
522
|
+
An(e, this.options, Le(a, !1), !1);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
},
|
|
525
|
+
}, I(e, {
|
|
526
526
|
pluginName: "scroll",
|
|
527
527
|
initializeByDefault: !0
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function ut() {
|
|
531
531
|
X.forEach(function(e) {
|
|
532
532
|
clearInterval(e.pid);
|
|
533
533
|
}), X = [];
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function dt() {
|
|
536
536
|
clearInterval(kn);
|
|
537
537
|
}
|
|
538
|
-
function dt() {}
|
|
539
538
|
function ft() {}
|
|
540
|
-
function pt() {
|
|
539
|
+
function pt() {}
|
|
540
|
+
function mt() {
|
|
541
541
|
function e() {
|
|
542
542
|
this.defaults = { swapClass: "sortable-swap-highlight" };
|
|
543
543
|
}
|
|
@@ -551,33 +551,33 @@ function pt() {
|
|
|
551
551
|
var s = this.sortable.el, c = this.options;
|
|
552
552
|
if (n && n !== s) {
|
|
553
553
|
var l = Mn;
|
|
554
|
-
r(n) === !1 ? Mn = null : (
|
|
554
|
+
r(n) === !1 ? Mn = null : (z(n, c.swapClass, !0), Mn = n), l && l !== Mn && z(l, c.swapClass, !1);
|
|
555
555
|
}
|
|
556
556
|
a(), t(!0), o();
|
|
557
557
|
}
|
|
558
558
|
},
|
|
559
559
|
drop: function(e) {
|
|
560
560
|
var t = e.activeSortable, n = e.putSortable, r = e.dragEl, i = n || this.sortable, a = this.options;
|
|
561
|
-
Mn &&
|
|
561
|
+
Mn && z(Mn, a.swapClass, !1), Mn && (a.swap || n && n.options.swap) && r !== Mn && (i.captureAnimationState(), i !== t && t.captureAnimationState(), ht(r, Mn), i.animateAll(), i !== t && t.animateAll());
|
|
562
562
|
},
|
|
563
563
|
nulling: function() {
|
|
564
564
|
Mn = null;
|
|
565
565
|
}
|
|
566
|
-
},
|
|
566
|
+
}, I(e, {
|
|
567
567
|
pluginName: "swap",
|
|
568
568
|
eventProperties: function() {
|
|
569
569
|
return { swapItem: Mn };
|
|
570
570
|
}
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function ht(e, t) {
|
|
574
574
|
var n = e.parentNode, r = t.parentNode, i, a;
|
|
575
|
-
!n || !r || n.isEqualNode(t) || r.isEqualNode(e) || (i =
|
|
575
|
+
!n || !r || n.isEqualNode(t) || r.isEqualNode(e) || (i = H(e), a = H(t), n.isEqualNode(r) && i < a && a++, n.insertBefore(t, n.children[i]), r.insertBefore(e, r.children[a]));
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function gt() {
|
|
578
578
|
function e(e) {
|
|
579
579
|
for (var t in this) t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
|
|
580
|
-
e.options.supportPointer ?
|
|
580
|
+
e.options.supportPointer ? L(document, "pointerup", this._deselectMultiDrag) : (L(document, "mouseup", this._deselectMultiDrag), L(document, "touchend", this._deselectMultiDrag)), L(document, "keydown", this._checkKeyDown), L(document, "keyup", this._checkKeyUp), this.defaults = {
|
|
581
581
|
selectedClass: "sortable-selected",
|
|
582
582
|
multiDragKey: null,
|
|
583
583
|
setData: function(t, n) {
|
|
@@ -600,18 +600,18 @@ function ht() {
|
|
|
600
600
|
setupClone: function(e) {
|
|
601
601
|
var t = e.sortable, n = e.cancel;
|
|
602
602
|
if (this.isMultiDrag) {
|
|
603
|
-
for (var r = 0; r < Z.length; r++) Nn.push(
|
|
603
|
+
for (var r = 0; r < Z.length; r++) Nn.push(Ue(Z[r])), Nn[r].sortableIndex = Z[r].sortableIndex, Nn[r].draggable = !1, Nn[r].style["will-change"] = "", z(Nn[r], this.options.selectedClass, !1), Z[r] === Q && z(Nn[r], this.options.chosenClass, !1);
|
|
604
604
|
t._hideClone(), n();
|
|
605
605
|
}
|
|
606
606
|
},
|
|
607
607
|
clone: function(e) {
|
|
608
608
|
var t = e.sortable, n = e.rootEl, r = e.dispatchSortableEvent, i = e.cancel;
|
|
609
|
-
this.isMultiDrag && (this.options.removeCloneOnHide || Z.length && Fn === t && (
|
|
609
|
+
this.isMultiDrag && (this.options.removeCloneOnHide || Z.length && Fn === t && (vt(!0, n), r("clone"), i()));
|
|
610
610
|
},
|
|
611
611
|
showClone: function(e) {
|
|
612
612
|
var t = e.cloneNowShown, n = e.rootEl, r = e.cancel;
|
|
613
|
-
this.isMultiDrag && (
|
|
614
|
-
|
|
613
|
+
this.isMultiDrag && (vt(!1, n), Nn.forEach(function(e) {
|
|
614
|
+
B(e, "display", "");
|
|
615
615
|
}), t(), Bn = !1, r());
|
|
616
616
|
},
|
|
617
617
|
hideClone: function(e) {
|
|
@@ -619,12 +619,12 @@ function ht() {
|
|
|
619
619
|
e.sortable;
|
|
620
620
|
var n = e.cloneNowHidden, r = e.cancel;
|
|
621
621
|
this.isMultiDrag && (Nn.forEach(function(e) {
|
|
622
|
-
|
|
622
|
+
B(e, "display", "none"), t.options.removeCloneOnHide && e.parentNode && e.parentNode.removeChild(e);
|
|
623
623
|
}), n(), Bn = !0, r());
|
|
624
624
|
},
|
|
625
625
|
dragStartGlobal: function(e) {
|
|
626
626
|
e.sortable, !this.isMultiDrag && Fn && Fn.multiDrag._deselectMultiDrag(), Z.forEach(function(e) {
|
|
627
|
-
e.sortableIndex =
|
|
627
|
+
e.sortableIndex = H(e);
|
|
628
628
|
}), Z = Z.sort(function(e, t) {
|
|
629
629
|
return e.sortableIndex - t.sortableIndex;
|
|
630
630
|
}), Rn = !0;
|
|
@@ -634,17 +634,17 @@ function ht() {
|
|
|
634
634
|
if (this.isMultiDrag) {
|
|
635
635
|
if (this.options.sort && (n.captureAnimationState(), this.options.animation)) {
|
|
636
636
|
Z.forEach(function(e) {
|
|
637
|
-
e !== Q &&
|
|
637
|
+
e !== Q && B(e, "position", "absolute");
|
|
638
638
|
});
|
|
639
|
-
var r =
|
|
639
|
+
var r = V(Q, !1, !0, !0);
|
|
640
640
|
Z.forEach(function(e) {
|
|
641
|
-
e !== Q &&
|
|
641
|
+
e !== Q && We(e, r);
|
|
642
642
|
}), Ln = !0, In = !0;
|
|
643
643
|
}
|
|
644
644
|
n.animateAll(function() {
|
|
645
645
|
Ln = !1, In = !1, t.options.animation && Z.forEach(function(e) {
|
|
646
|
-
|
|
647
|
-
}), t.options.sort &&
|
|
646
|
+
Ge(e);
|
|
647
|
+
}), t.options.sort && yt();
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
650
|
},
|
|
@@ -657,20 +657,20 @@ function ht() {
|
|
|
657
657
|
Z.length > 1 && (Z.forEach(function(e) {
|
|
658
658
|
r.addAnimationState({
|
|
659
659
|
target: e,
|
|
660
|
-
rect: Ln ?
|
|
661
|
-
}),
|
|
662
|
-
}), Ln = !1,
|
|
660
|
+
rect: Ln ? V(e) : i
|
|
661
|
+
}), Ge(e), e.fromRect = i, t.removeAnimationState(e);
|
|
662
|
+
}), Ln = !1, _t(!this.options.removeCloneOnHide, n));
|
|
663
663
|
},
|
|
664
664
|
dragOverCompleted: function(e) {
|
|
665
665
|
var t = e.sortable, n = e.isOwner, r = e.insertion, i = e.activeSortable, a = e.parentEl, o = e.putSortable, s = this.options;
|
|
666
666
|
if (r) {
|
|
667
667
|
if (n && i._hideClone(), In = !1, s.animation && Z.length > 1 && (Ln || !n && !i.options.sort && !o)) {
|
|
668
|
-
var c =
|
|
668
|
+
var c = V(Q, !1, !0, !0);
|
|
669
669
|
Z.forEach(function(e) {
|
|
670
|
-
e !== Q && (
|
|
670
|
+
e !== Q && (We(e, c), a.appendChild(e));
|
|
671
671
|
}), Ln = !0;
|
|
672
672
|
}
|
|
673
|
-
if (!n) if (Ln ||
|
|
673
|
+
if (!n) if (Ln || yt(), Z.length > 1) {
|
|
674
674
|
var l = Bn;
|
|
675
675
|
i._showClone(t), i.options.animation && !Bn && l && Nn.forEach(function(e) {
|
|
676
676
|
i.addAnimationState({
|
|
@@ -686,19 +686,19 @@ function ht() {
|
|
|
686
686
|
if (Z.forEach(function(e) {
|
|
687
687
|
e.thisAnimationDuration = null;
|
|
688
688
|
}), r.options.animation && !n && r.multiDrag.isMultiDrag) {
|
|
689
|
-
zn =
|
|
690
|
-
var i =
|
|
689
|
+
zn = I({}, t);
|
|
690
|
+
var i = ke(Q, !0);
|
|
691
691
|
zn.top -= i.f, zn.left -= i.e;
|
|
692
692
|
}
|
|
693
693
|
},
|
|
694
694
|
dragOverAnimationComplete: function() {
|
|
695
|
-
Ln && (Ln = !1,
|
|
695
|
+
Ln && (Ln = !1, yt());
|
|
696
696
|
},
|
|
697
697
|
drop: function(e) {
|
|
698
698
|
var t = e.originalEvent, n = e.rootEl, r = e.parentEl, i = e.sortable, a = e.dispatchSortableEvent, o = e.oldIndex, s = e.putSortable, c = s || this.sortable;
|
|
699
699
|
if (t) {
|
|
700
700
|
var l = this.options, u = r.children;
|
|
701
|
-
if (!Rn) if (l.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(),
|
|
701
|
+
if (!Rn) if (l.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), z(Q, l.selectedClass, !~Z.indexOf(Q)), ~Z.indexOf(Q)) Z.splice(Z.indexOf(Q), 1), Pn = null, Ye({
|
|
702
702
|
sortable: i,
|
|
703
703
|
rootEl: n,
|
|
704
704
|
name: "deselect",
|
|
@@ -706,17 +706,17 @@ function ht() {
|
|
|
706
706
|
originalEvt: t
|
|
707
707
|
});
|
|
708
708
|
else {
|
|
709
|
-
if (Z.push(Q),
|
|
709
|
+
if (Z.push(Q), Ye({
|
|
710
710
|
sortable: i,
|
|
711
711
|
rootEl: n,
|
|
712
712
|
name: "select",
|
|
713
713
|
targetEl: Q,
|
|
714
714
|
originalEvt: t
|
|
715
715
|
}), t.shiftKey && Pn && i.el.contains(Pn)) {
|
|
716
|
-
var d =
|
|
716
|
+
var d = H(Pn), f = H(Q);
|
|
717
717
|
if (~d && ~f && d !== f) {
|
|
718
718
|
var p, m;
|
|
719
|
-
for (f > d ? (m = d, p = f) : (m = f, p = d + 1); m < p; m++) ~Z.indexOf(u[m]) || (
|
|
719
|
+
for (f > d ? (m = d, p = f) : (m = f, p = d + 1); m < p; m++) ~Z.indexOf(u[m]) || (z(u[m], l.selectedClass, !0), Z.push(u[m]), Ye({
|
|
720
720
|
sortable: i,
|
|
721
721
|
rootEl: n,
|
|
722
722
|
name: "select",
|
|
@@ -728,29 +728,29 @@ function ht() {
|
|
|
728
728
|
Fn = c;
|
|
729
729
|
}
|
|
730
730
|
if (Rn && this.isMultiDrag) {
|
|
731
|
-
if (Ln = !1, (r[
|
|
732
|
-
var h =
|
|
731
|
+
if (Ln = !1, (r[W].options.sort || r !== n) && Z.length > 1) {
|
|
732
|
+
var h = V(Q), g = H(Q, ":not(." + this.options.selectedClass + ")");
|
|
733
733
|
if (!In && l.animation && (Q.thisAnimationDuration = null), c.captureAnimationState(), !In && (l.animation && (Q.fromRect = h, Z.forEach(function(e) {
|
|
734
734
|
if (e.thisAnimationDuration = null, e !== Q) {
|
|
735
|
-
var t = Ln ?
|
|
735
|
+
var t = Ln ? V(e) : h;
|
|
736
736
|
e.fromRect = t, c.addAnimationState({
|
|
737
737
|
target: e,
|
|
738
738
|
rect: t
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
|
-
})),
|
|
741
|
+
})), yt(), Z.forEach(function(e) {
|
|
742
742
|
u[g] ? r.insertBefore(e, u[g]) : r.appendChild(e), g++;
|
|
743
|
-
}), o ===
|
|
743
|
+
}), o === H(Q))) {
|
|
744
744
|
var _ = !1;
|
|
745
745
|
Z.forEach(function(e) {
|
|
746
|
-
if (e.sortableIndex !==
|
|
746
|
+
if (e.sortableIndex !== H(e)) {
|
|
747
747
|
_ = !0;
|
|
748
748
|
return;
|
|
749
749
|
}
|
|
750
750
|
}), _ && a("update");
|
|
751
751
|
}
|
|
752
752
|
Z.forEach(function(e) {
|
|
753
|
-
|
|
753
|
+
Ge(e);
|
|
754
754
|
}), c.animateAll();
|
|
755
755
|
}
|
|
756
756
|
Fn = c;
|
|
@@ -764,12 +764,12 @@ function ht() {
|
|
|
764
764
|
this.isMultiDrag = Rn = !1, Nn.length = 0;
|
|
765
765
|
},
|
|
766
766
|
destroyGlobal: function() {
|
|
767
|
-
this._deselectMultiDrag(),
|
|
767
|
+
this._deselectMultiDrag(), R(document, "pointerup", this._deselectMultiDrag), R(document, "mouseup", this._deselectMultiDrag), R(document, "touchend", this._deselectMultiDrag), R(document, "keydown", this._checkKeyDown), R(document, "keyup", this._checkKeyUp);
|
|
768
768
|
},
|
|
769
769
|
_deselectMultiDrag: function(e) {
|
|
770
|
-
if (!(Rn !== void 0 && Rn) && Fn === this.sortable && !(e &&
|
|
770
|
+
if (!(Rn !== void 0 && Rn) && Fn === this.sortable && !(e && Oe(e.target, this.options.draggable, this.sortable.el, !1)) && !(e && e.button !== 0)) for (; Z.length;) {
|
|
771
771
|
var t = Z[0];
|
|
772
|
-
|
|
772
|
+
z(t, this.options.selectedClass, !1), Z.shift(), Ye({
|
|
773
773
|
sortable: this.sortable,
|
|
774
774
|
rootEl: this.sortable.el,
|
|
775
775
|
name: "deselect",
|
|
@@ -784,16 +784,16 @@ function ht() {
|
|
|
784
784
|
_checkKeyUp: function(e) {
|
|
785
785
|
e.key === this.options.multiDragKey && (this.multiDragKeyDown = !1);
|
|
786
786
|
}
|
|
787
|
-
},
|
|
787
|
+
}, I(e, {
|
|
788
788
|
pluginName: "multiDrag",
|
|
789
789
|
utils: {
|
|
790
790
|
select: function(e) {
|
|
791
|
-
var t = e.parentNode[
|
|
792
|
-
!t || !t.options.multiDrag || ~Z.indexOf(e) || (Fn && Fn !== t && (Fn.multiDrag._deselectMultiDrag(), Fn = t),
|
|
791
|
+
var t = e.parentNode[W];
|
|
792
|
+
!t || !t.options.multiDrag || ~Z.indexOf(e) || (Fn && Fn !== t && (Fn.multiDrag._deselectMultiDrag(), Fn = t), z(e, t.options.selectedClass, !0), Z.push(e));
|
|
793
793
|
},
|
|
794
794
|
deselect: function(e) {
|
|
795
|
-
var t = e.parentNode[
|
|
796
|
-
!t || !t.options.multiDrag || !~n || (
|
|
795
|
+
var t = e.parentNode[W], n = Z.indexOf(e);
|
|
796
|
+
!t || !t.options.multiDrag || !~n || (z(e, t.options.selectedClass, !1), Z.splice(n, 1));
|
|
797
797
|
}
|
|
798
798
|
},
|
|
799
799
|
eventProperties: function() {
|
|
@@ -803,13 +803,13 @@ function ht() {
|
|
|
803
803
|
multiDragElement: r,
|
|
804
804
|
index: r.sortableIndex
|
|
805
805
|
});
|
|
806
|
-
var i = Ln && r !== Q ? -1 : Ln ?
|
|
806
|
+
var i = Ln && r !== Q ? -1 : Ln ? H(r, ":not(." + e.options.selectedClass + ")") : H(r);
|
|
807
807
|
n.push({
|
|
808
808
|
multiDragElement: r,
|
|
809
809
|
index: i
|
|
810
810
|
});
|
|
811
811
|
}), {
|
|
812
|
-
items:
|
|
812
|
+
items: ye(Z),
|
|
813
813
|
clones: [].concat(Nn),
|
|
814
814
|
oldIndicies: t,
|
|
815
815
|
newIndicies: n
|
|
@@ -820,28 +820,28 @@ function ht() {
|
|
|
820
820
|
} }
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function _t(e, t) {
|
|
824
824
|
Z.forEach(function(n, r) {
|
|
825
825
|
var i = t.children[n.sortableIndex + (e ? Number(r) : 0)];
|
|
826
826
|
i ? t.insertBefore(n, i) : t.appendChild(n);
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function vt(e, t) {
|
|
830
830
|
Nn.forEach(function(n, r) {
|
|
831
831
|
var i = t.children[n.sortableIndex + (e ? Number(r) : 0)];
|
|
832
832
|
i ? t.insertBefore(n, i) : t.appendChild(n);
|
|
833
833
|
});
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function yt() {
|
|
836
836
|
Z.forEach(function(e) {
|
|
837
837
|
e !== Q && e.parentNode && e.parentNode.removeChild(e);
|
|
838
838
|
});
|
|
839
839
|
}
|
|
840
|
-
var
|
|
841
|
-
|
|
840
|
+
var bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, W, At, jt, Mt, Nt, Pt, G, K, q, J, Ft, It, Y, Lt, Rt, zt, Bt, Vt, Ht, Ut, Wt, Gt, Kt, qt, Jt, Yt, Xt, Zt, Qt, $t, en, tn, nn, rn, an, on, sn, cn, ln, un, dn, fn, pn, mn, hn, gn, _n, vn, yn, bn, xn, Sn, X, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn, Z, Nn, Pn, Fn, In, Ln, Rn, Q, zn, Bn, Vn = P((() => {
|
|
841
|
+
bt = "1.14.0", xt = Te(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), St = Te(/Edge/i), Ct = Te(/firefox/i), wt = Te(/safari/i) && !Te(/chrome/i) && !Te(/android/i), Tt = Te(/iP(ad|od|hone)/i), Et = Te(/chrome/i) && Te(/android/i), Dt = {
|
|
842
842
|
capture: !1,
|
|
843
843
|
passive: !1
|
|
844
|
-
},
|
|
844
|
+
}, Ot = /\s+/g, W = "Sortable" + (/* @__PURE__ */ new Date()).getTime(), At = [], jt = { initializeByDefault: !0 }, Mt = {
|
|
845
845
|
mount: function(e) {
|
|
846
846
|
for (var t in jt) jt.hasOwnProperty(t) && !(t in e) && (e[t] = jt[t]);
|
|
847
847
|
At.forEach(function(t) {
|
|
@@ -855,7 +855,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
855
855
|
};
|
|
856
856
|
var i = e + "Global";
|
|
857
857
|
At.forEach(function(r) {
|
|
858
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
858
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](me({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](me({ sortable: t }, n)));
|
|
859
859
|
});
|
|
860
860
|
},
|
|
861
861
|
initializePlugins: function(e, t, n, r) {
|
|
@@ -863,7 +863,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
863
863
|
var i = r.pluginName;
|
|
864
864
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
865
865
|
var a = new r(e, t, e.options);
|
|
866
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
866
|
+
a.sortable = e, a.options = e.options, e[i] = a, I(n, a.defaults);
|
|
867
867
|
}
|
|
868
868
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
869
869
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -873,7 +873,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
873
873
|
getEventProperties: function(e, t) {
|
|
874
874
|
var n = {};
|
|
875
875
|
return At.forEach(function(r) {
|
|
876
|
-
typeof r.eventProperties == "function" &&
|
|
876
|
+
typeof r.eventProperties == "function" && I(n, r.eventProperties.call(t[r.pluginName], e));
|
|
877
877
|
}), n;
|
|
878
878
|
},
|
|
879
879
|
modifyOption: function(e, t, n) {
|
|
@@ -883,8 +883,8 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
883
883
|
}), r;
|
|
884
884
|
}
|
|
885
885
|
}, Nt = ["evt"], Pt = function(e, t) {
|
|
886
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
887
|
-
Mt.pluginEvent.bind(
|
|
886
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = ve(n, Nt);
|
|
887
|
+
Mt.pluginEvent.bind(U)(e, t, me({
|
|
888
888
|
dragEl: G,
|
|
889
889
|
parentEl: K,
|
|
890
890
|
ghostEl: q,
|
|
@@ -895,7 +895,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
895
895
|
cloneHidden: Lt,
|
|
896
896
|
dragStarted: $t,
|
|
897
897
|
putSortable: Ut,
|
|
898
|
-
activeSortable:
|
|
898
|
+
activeSortable: U.active,
|
|
899
899
|
originalEvent: r,
|
|
900
900
|
oldIndex: Rt,
|
|
901
901
|
oldDraggableIndex: Bt,
|
|
@@ -910,21 +910,21 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
910
910
|
Lt = !1;
|
|
911
911
|
},
|
|
912
912
|
dispatchSortableEvent: function(e) {
|
|
913
|
-
|
|
913
|
+
Xe({
|
|
914
914
|
sortable: t,
|
|
915
915
|
name: e,
|
|
916
916
|
originalEvent: r
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
}, i));
|
|
920
|
-
}, Wt = !1, Gt = !1, Kt = [], nn = !1, rn = !1, sn = [], cn = !1, ln = [], un = typeof document < "u", dn =
|
|
920
|
+
}, Wt = !1, Gt = !1, Kt = [], nn = !1, rn = !1, sn = [], cn = !1, ln = [], un = typeof document < "u", dn = Tt, fn = St || xt ? "cssFloat" : "float", pn = un && !Et && !Tt && "draggable" in document.createElement("div"), mn = function() {
|
|
921
921
|
if (un) {
|
|
922
|
-
if (
|
|
922
|
+
if (xt) return !1;
|
|
923
923
|
var e = document.createElement("x");
|
|
924
924
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
925
925
|
}
|
|
926
926
|
}(), hn = function(e, t) {
|
|
927
|
-
var n =
|
|
927
|
+
var n = B(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Ne(e, 0, t), a = Ne(e, 1, t), o = i && B(i), s = a && B(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + V(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + V(a).width;
|
|
928
928
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
929
929
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
930
930
|
if (i && o.float && o.float !== "none") {
|
|
@@ -938,9 +938,9 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
938
938
|
}, _n = function(e, t) {
|
|
939
939
|
var n;
|
|
940
940
|
return Kt.some(function(r) {
|
|
941
|
-
var i = r[
|
|
942
|
-
if (!(!i ||
|
|
943
|
-
var a =
|
|
941
|
+
var i = r[W].options.emptyInsertThreshold;
|
|
942
|
+
if (!(!i || Pe(r))) {
|
|
943
|
+
var a = V(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
944
944
|
if (o && s) return n = r;
|
|
945
945
|
}
|
|
946
946
|
}), n;
|
|
@@ -957,11 +957,11 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
957
957
|
};
|
|
958
958
|
}
|
|
959
959
|
var n = {}, r = e.group;
|
|
960
|
-
(!r ||
|
|
960
|
+
(!r || he(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;
|
|
961
961
|
}, yn = function() {
|
|
962
|
-
!mn && q &&
|
|
962
|
+
!mn && q && B(q, "display", "none");
|
|
963
963
|
}, bn = function() {
|
|
964
|
-
!mn && q &&
|
|
964
|
+
!mn && q && B(q, "display", "");
|
|
965
965
|
}, un && document.addEventListener("click", function(e) {
|
|
966
966
|
if (Gt) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Gt = !1, !1;
|
|
967
967
|
}, !0), xn = function(e) {
|
|
@@ -971,13 +971,13 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
971
971
|
if (t) {
|
|
972
972
|
var n = {};
|
|
973
973
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
974
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
974
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[W]._onDragOver(n);
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
977
|
}, Sn = function(e) {
|
|
978
|
-
G && G.parentNode[
|
|
979
|
-
},
|
|
980
|
-
constructor:
|
|
978
|
+
G && G.parentNode[W]._isOutsideThisEl(e.target);
|
|
979
|
+
}, U.prototype = {
|
|
980
|
+
constructor: U,
|
|
981
981
|
_isOutsideThisEl: function(e) {
|
|
982
982
|
!this.el.contains(e) && e !== this.el && (en = null);
|
|
983
983
|
},
|
|
@@ -987,10 +987,10 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
987
987
|
_onTapStart: function(e) {
|
|
988
988
|
if (e.cancelable) {
|
|
989
989
|
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;
|
|
990
|
-
if (
|
|
991
|
-
if (Rt =
|
|
990
|
+
if (ot(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && wt && s && s.tagName.toUpperCase() === "SELECT") && (s = Oe(s, r.draggable, n, !1), !(s && s.animated) && It !== s)) {
|
|
991
|
+
if (Rt = H(s), Bt = H(s, r.draggable), typeof l == "function") {
|
|
992
992
|
if (l.call(this, e, s, this)) {
|
|
993
|
-
|
|
993
|
+
Xe({
|
|
994
994
|
sortable: t,
|
|
995
995
|
rootEl: c,
|
|
996
996
|
name: "filter",
|
|
@@ -1001,7 +1001,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1001
1001
|
return;
|
|
1002
1002
|
}
|
|
1003
1003
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
1004
|
-
if (r =
|
|
1004
|
+
if (r = Oe(c, r.trim(), n, !1), r) return Xe({
|
|
1005
1005
|
sortable: t,
|
|
1006
1006
|
rootEl: r,
|
|
1007
1007
|
name: "filter",
|
|
@@ -1013,36 +1013,36 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1013
1013
|
i && e.cancelable && e.preventDefault();
|
|
1014
1014
|
return;
|
|
1015
1015
|
}
|
|
1016
|
-
r.handle && !
|
|
1016
|
+
r.handle && !Oe(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
},
|
|
1020
1020
|
_prepareDragStart: function(e, t, n) {
|
|
1021
1021
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
1022
1022
|
if (n && !G && n.parentNode === i) {
|
|
1023
|
-
var c =
|
|
1024
|
-
if (J = i, G = n, K = G.parentNode, Ft = G.nextSibling, It = n, Ht = a.group,
|
|
1023
|
+
var c = V(n);
|
|
1024
|
+
if (J = i, G = n, K = G.parentNode, Ft = G.nextSibling, It = n, Ht = a.group, U.dragged = G, qt = {
|
|
1025
1025
|
target: G,
|
|
1026
1026
|
clientX: (t || e).clientX,
|
|
1027
1027
|
clientY: (t || e).clientY
|
|
1028
1028
|
}, Zt = qt.clientX - c.left, Qt = qt.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
|
|
1029
|
-
if (Pt("delayEnded", r, { evt: e }),
|
|
1029
|
+
if (Pt("delayEnded", r, { evt: e }), U.eventCanceled) {
|
|
1030
1030
|
r._onDrop();
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
r._disableDelayedDragEvents(), !
|
|
1033
|
+
r._disableDelayedDragEvents(), !Ct && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), Xe({
|
|
1034
1034
|
sortable: r,
|
|
1035
1035
|
name: "choose",
|
|
1036
1036
|
originalEvent: e
|
|
1037
|
-
}),
|
|
1037
|
+
}), z(G, a.chosenClass, !0);
|
|
1038
1038
|
}, a.ignore.split(",").forEach(function(e) {
|
|
1039
|
-
|
|
1040
|
-
}),
|
|
1041
|
-
if (
|
|
1039
|
+
Ae(G, e.trim(), $e);
|
|
1040
|
+
}), L(o, "dragover", xn), L(o, "mousemove", xn), L(o, "touchmove", xn), L(o, "mouseup", r._onDrop), L(o, "touchend", r._onDrop), L(o, "touchcancel", r._onDrop), Ct && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), Pt("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(St || xt))) {
|
|
1041
|
+
if (U.eventCanceled) {
|
|
1042
1042
|
this._onDrop();
|
|
1043
1043
|
return;
|
|
1044
1044
|
}
|
|
1045
|
-
|
|
1045
|
+
L(o, "mouseup", r._disableDelayedDrag), L(o, "touchend", r._disableDelayedDrag), L(o, "touchcancel", r._disableDelayedDrag), L(o, "mousemove", r._delayedDragTouchMoveHandler), L(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && L(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
1046
1046
|
} else s();
|
|
1047
1047
|
}
|
|
1048
1048
|
},
|
|
@@ -1051,25 +1051,25 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1051
1051
|
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
1052
1052
|
},
|
|
1053
1053
|
_disableDelayedDrag: function() {
|
|
1054
|
-
G &&
|
|
1054
|
+
G && $e(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
1055
1055
|
},
|
|
1056
1056
|
_disableDelayedDragEvents: function() {
|
|
1057
1057
|
var e = this.el.ownerDocument;
|
|
1058
|
-
|
|
1058
|
+
R(e, "mouseup", this._disableDelayedDrag), R(e, "touchend", this._disableDelayedDrag), R(e, "touchcancel", this._disableDelayedDrag), R(e, "mousemove", this._delayedDragTouchMoveHandler), R(e, "touchmove", this._delayedDragTouchMoveHandler), R(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1059
1059
|
},
|
|
1060
1060
|
_triggerDragStart: function(e, t) {
|
|
1061
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ?
|
|
1061
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : t ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(G, "dragend", this), L(J, "dragstart", this._onDragStart));
|
|
1062
1062
|
try {
|
|
1063
|
-
document.selection ?
|
|
1063
|
+
document.selection ? st(function() {
|
|
1064
1064
|
document.selection.empty();
|
|
1065
1065
|
}) : window.getSelection().removeAllRanges();
|
|
1066
1066
|
} catch {}
|
|
1067
1067
|
},
|
|
1068
1068
|
_dragStarted: function(e, t) {
|
|
1069
1069
|
if (Wt = !1, J && G) {
|
|
1070
|
-
Pt("dragStarted", this, { evt: t }), this.nativeDraggable &&
|
|
1070
|
+
Pt("dragStarted", this, { evt: t }), this.nativeDraggable && L(document, "dragover", Sn);
|
|
1071
1071
|
var n = this.options;
|
|
1072
|
-
!e &&
|
|
1072
|
+
!e && z(G, n.dragClass, !1), z(G, n.ghostClass, !0), U.active = this, e && this._appendGhost(), Xe({
|
|
1073
1073
|
sortable: this,
|
|
1074
1074
|
name: "start",
|
|
1075
1075
|
originalEvent: t
|
|
@@ -1080,10 +1080,10 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1080
1080
|
if (Jt) {
|
|
1081
1081
|
this._lastX = Jt.clientX, this._lastY = Jt.clientY, yn();
|
|
1082
1082
|
for (var e = document.elementFromPoint(Jt.clientX, Jt.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Jt.clientX, Jt.clientY), e !== t);) t = e;
|
|
1083
|
-
if (G.parentNode[
|
|
1084
|
-
if (t[
|
|
1083
|
+
if (G.parentNode[W]._isOutsideThisEl(e), t) do {
|
|
1084
|
+
if (t[W]) {
|
|
1085
1085
|
var n = void 0;
|
|
1086
|
-
if (n = t[
|
|
1086
|
+
if (n = t[W]._onDragOver({
|
|
1087
1087
|
clientX: Jt.clientX,
|
|
1088
1088
|
clientY: Jt.clientY,
|
|
1089
1089
|
target: e,
|
|
@@ -1097,8 +1097,8 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1097
1097
|
},
|
|
1098
1098
|
_onTouchMove: function(e) {
|
|
1099
1099
|
if (qt) {
|
|
1100
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q &&
|
|
1101
|
-
if (!
|
|
1100
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && ke(q, !0), o = q && a && a.a, s = q && a && a.d, c = dn && on && Fe(on), l = (i.clientX - qt.clientX + r.x) / (o || 1) + (c ? c[0] - sn[0] : 0) / (o || 1), u = (i.clientY - qt.clientY + r.y) / (s || 1) + (c ? c[1] - sn[1] : 0) / (s || 1);
|
|
1101
|
+
if (!U.active && !Wt) {
|
|
1102
1102
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
1103
1103
|
this._onDragStart(e, !0);
|
|
1104
1104
|
}
|
|
@@ -1112,39 +1112,39 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1112
1112
|
f: u
|
|
1113
1113
|
};
|
|
1114
1114
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
1115
|
-
|
|
1115
|
+
B(q, "webkitTransform", d), B(q, "mozTransform", d), B(q, "msTransform", d), B(q, "transform", d), Yt = l, Xt = u, Jt = i;
|
|
1116
1116
|
}
|
|
1117
1117
|
e.cancelable && e.preventDefault();
|
|
1118
1118
|
}
|
|
1119
1119
|
},
|
|
1120
1120
|
_appendGhost: function() {
|
|
1121
1121
|
if (!q) {
|
|
1122
|
-
var e = this.options.fallbackOnBody ? document.body : J, t =
|
|
1122
|
+
var e = this.options.fallbackOnBody ? document.body : J, t = V(G, !0, dn, !0, e), n = this.options;
|
|
1123
1123
|
if (dn) {
|
|
1124
|
-
for (on = e;
|
|
1125
|
-
on !== document.body && on !== document.documentElement ? (on === document && (on =
|
|
1124
|
+
for (on = e; B(on, "position") === "static" && B(on, "transform") === "none" && on !== document;) on = on.parentNode;
|
|
1125
|
+
on !== document.body && on !== document.documentElement ? (on === document && (on = je()), t.top += on.scrollTop, t.left += on.scrollLeft) : on = je(), sn = Fe(on);
|
|
1126
1126
|
}
|
|
1127
|
-
q = G.cloneNode(!0),
|
|
1127
|
+
q = G.cloneNode(!0), z(q, n.ghostClass, !1), z(q, n.fallbackClass, !0), z(q, n.dragClass, !0), B(q, "transition", ""), B(q, "transform", ""), B(q, "box-sizing", "border-box"), B(q, "margin", 0), B(q, "top", t.top), B(q, "left", t.left), B(q, "width", t.width), B(q, "height", t.height), B(q, "opacity", "0.8"), B(q, "position", dn ? "absolute" : "fixed"), B(q, "zIndex", "100000"), B(q, "pointerEvents", "none"), U.ghost = q, e.appendChild(q), B(q, "transform-origin", Zt / parseInt(q.style.width) * 100 + "% " + Qt / parseInt(q.style.height) * 100 + "%");
|
|
1128
1128
|
}
|
|
1129
1129
|
},
|
|
1130
1130
|
_onDragStart: function(e, t) {
|
|
1131
1131
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
1132
|
-
if (Pt("dragStart", this, { evt: e }),
|
|
1132
|
+
if (Pt("dragStart", this, { evt: e }), U.eventCanceled) {
|
|
1133
1133
|
this._onDrop();
|
|
1134
1134
|
return;
|
|
1135
1135
|
}
|
|
1136
|
-
Pt("setupClone", this),
|
|
1137
|
-
Pt("clone", n), !
|
|
1136
|
+
Pt("setupClone", this), U.eventCanceled || (Y = Ue(G), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), z(Y, this.options.chosenClass, !1), U.clone = Y), n.cloneId = st(function() {
|
|
1137
|
+
Pt("clone", n), !U.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), Xe({
|
|
1138
1138
|
sortable: n,
|
|
1139
1139
|
name: "clone"
|
|
1140
1140
|
}));
|
|
1141
|
-
}), !t &&
|
|
1141
|
+
}), !t && z(G, i.dragClass, !0), t ? (Gt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (R(document, "mouseup", n._onDrop), R(document, "touchend", n._onDrop), R(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), L(document, "drop", n), B(G, "transform", "translateZ(0)")), Wt = !0, n._dragStartId = st(n._dragStarted.bind(n, t, e)), L(document, "selectstart", n), $t = !0, wt && B(document.body, "user-select", "none");
|
|
1142
1142
|
},
|
|
1143
1143
|
_onDragOver: function(e) {
|
|
1144
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c =
|
|
1144
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = U.active, l = Ht === s, u = o.sort, d = Ut || c, f, p = this, m = !1;
|
|
1145
1145
|
if (cn) return;
|
|
1146
1146
|
function h(o, s) {
|
|
1147
|
-
Pt(o, p,
|
|
1147
|
+
Pt(o, p, me({
|
|
1148
1148
|
evt: e,
|
|
1149
1149
|
isOwner: l,
|
|
1150
1150
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -1156,7 +1156,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1156
1156
|
target: n,
|
|
1157
1157
|
completed: _,
|
|
1158
1158
|
onMove: function(n, i) {
|
|
1159
|
-
return
|
|
1159
|
+
return Qe(J, t, G, r, n, V(n), e, i);
|
|
1160
1160
|
},
|
|
1161
1161
|
changed: v
|
|
1162
1162
|
}, s));
|
|
@@ -1165,12 +1165,12 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1165
1165
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
1166
1166
|
}
|
|
1167
1167
|
function _(r) {
|
|
1168
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
1168
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (z(G, Ut ? Ut.options.ghostClass : c.options.ghostClass, !1), z(G, o.ghostClass, !0)), Ut !== p && p !== U.active ? Ut = p : p === U.active && Ut && (Ut = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
1169
1169
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
1170
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (en = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[
|
|
1170
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (en = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[W]._isOutsideThisEl(e.target), !r && xn(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
1171
1171
|
}
|
|
1172
1172
|
function v() {
|
|
1173
|
-
zt =
|
|
1173
|
+
zt = H(G), Vt = H(G, o.draggable), Xe({
|
|
1174
1174
|
sortable: p,
|
|
1175
1175
|
name: "change",
|
|
1176
1176
|
toEl: t,
|
|
@@ -1179,36 +1179,36 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1179
1179
|
originalEvent: e
|
|
1180
1180
|
});
|
|
1181
1181
|
}
|
|
1182
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
1182
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Oe(n, o.draggable, t, !0), h("dragOver"), U.eventCanceled) return m;
|
|
1183
1183
|
if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
1184
1184
|
if (Gt = !1, c && !o.disabled && (l ? u || (a = K !== J) : Ut === this || (this.lastPutMode = Ht.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
|
|
1185
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
1186
|
-
if (a) return K = J, g(), this._hideClone(), h("revert"),
|
|
1187
|
-
var y =
|
|
1188
|
-
if (!y ||
|
|
1185
|
+
if (f = this._getDirection(e, n) === "vertical", r = V(G), h("dragOverValid"), U.eventCanceled) return m;
|
|
1186
|
+
if (a) return K = J, g(), this._hideClone(), h("revert"), U.eventCanceled || (Ft ? J.insertBefore(G, Ft) : J.appendChild(G)), _(!0);
|
|
1187
|
+
var y = Pe(t, o.draggable);
|
|
1188
|
+
if (!y || nt(e, f, this) && !y.animated) {
|
|
1189
1189
|
if (y === G) return _(!1);
|
|
1190
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
1191
|
-
} else if (y &&
|
|
1192
|
-
var b =
|
|
1190
|
+
if (y && t === e.target && (n = y), n && (i = V(n)), Qe(J, t, G, r, n, i, e, !!n) !== !1) return g(), t.appendChild(G), K = t, v(), _(!0);
|
|
1191
|
+
} else if (y && tt(e, f, this)) {
|
|
1192
|
+
var b = Ne(t, 0, o, !0);
|
|
1193
1193
|
if (b === G) return _(!1);
|
|
1194
|
-
if (n = b, i =
|
|
1194
|
+
if (n = b, i = V(n), Qe(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
|
|
1195
1195
|
} else if (n.parentNode === t) {
|
|
1196
|
-
i =
|
|
1197
|
-
var x = 0, S, C = G.parentNode !== t, w = !gn(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E =
|
|
1198
|
-
en !== n && (S = i[T], nn = !1, rn = !w && o.invertSwap || C), x =
|
|
1196
|
+
i = V(n);
|
|
1197
|
+
var x = 0, S, C = G.parentNode !== t, w = !gn(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Me(n, "top", "top") || Me(G, "top", "top"), D = E ? E.scrollTop : void 0;
|
|
1198
|
+
en !== n && (S = i[T], nn = !1, rn = !w && o.invertSwap || C), x = rt(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, rn, en === n);
|
|
1199
1199
|
var O;
|
|
1200
1200
|
if (x !== 0) {
|
|
1201
|
-
var k =
|
|
1201
|
+
var k = H(G);
|
|
1202
1202
|
do
|
|
1203
1203
|
k -= x, O = K.children[k];
|
|
1204
|
-
while (O && (
|
|
1204
|
+
while (O && (B(O, "display") === "none" || O === q));
|
|
1205
1205
|
}
|
|
1206
1206
|
if (x === 0 || O === n) return _(!1);
|
|
1207
1207
|
en = n, tn = x;
|
|
1208
1208
|
var A = n.nextElementSibling, j = !1;
|
|
1209
1209
|
j = x === 1;
|
|
1210
|
-
var M =
|
|
1211
|
-
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), cn = !0, setTimeout(
|
|
1210
|
+
var M = Qe(J, t, G, r, n, i, e, j);
|
|
1211
|
+
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), cn = !0, setTimeout(et, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && He(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !rn && (an = Math.abs(S - V(n)[T])), v(), _(!0);
|
|
1212
1212
|
}
|
|
1213
1213
|
if (t.contains(G)) return _(!1);
|
|
1214
1214
|
}
|
|
@@ -1216,58 +1216,58 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1216
1216
|
},
|
|
1217
1217
|
_ignoreWhileAnimating: null,
|
|
1218
1218
|
_offMoveEvents: function() {
|
|
1219
|
-
|
|
1219
|
+
R(document, "mousemove", this._onTouchMove), R(document, "touchmove", this._onTouchMove), R(document, "pointermove", this._onTouchMove), R(document, "dragover", xn), R(document, "mousemove", xn), R(document, "touchmove", xn);
|
|
1220
1220
|
},
|
|
1221
1221
|
_offUpEvents: function() {
|
|
1222
1222
|
var e = this.el.ownerDocument;
|
|
1223
|
-
|
|
1223
|
+
R(e, "mouseup", this._onDrop), R(e, "touchend", this._onDrop), R(e, "pointerup", this._onDrop), R(e, "touchcancel", this._onDrop), R(document, "selectstart", this);
|
|
1224
1224
|
},
|
|
1225
1225
|
_onDrop: function(e) {
|
|
1226
1226
|
var t = this.el, n = this.options;
|
|
1227
|
-
if (zt =
|
|
1227
|
+
if (zt = H(G), Vt = H(G, n.draggable), Pt("drop", this, { evt: e }), K = G && G.parentNode, zt = H(G), Vt = H(G, n.draggable), U.eventCanceled) {
|
|
1228
1228
|
this._nulling();
|
|
1229
1229
|
return;
|
|
1230
1230
|
}
|
|
1231
|
-
Wt = !1, rn = !1, nn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer),
|
|
1231
|
+
Wt = !1, rn = !1, nn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ct(this.cloneId), ct(this._dragStartId), this.nativeDraggable && (R(document, "drop", this), R(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), wt && B(document.body, "user-select", ""), B(G, "transform", ""), e && ($t && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || Ut && Ut.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && R(G, "dragend", this), $e(G), G.style["will-change"] = "", $t && !Wt && z(G, Ut ? Ut.options.ghostClass : this.options.ghostClass, !1), z(G, this.options.chosenClass, !1), Xe({
|
|
1232
1232
|
sortable: this,
|
|
1233
1233
|
name: "unchoose",
|
|
1234
1234
|
toEl: K,
|
|
1235
1235
|
newIndex: null,
|
|
1236
1236
|
newDraggableIndex: null,
|
|
1237
1237
|
originalEvent: e
|
|
1238
|
-
}), J === K ? zt !== Rt && zt >= 0 && (
|
|
1238
|
+
}), J === K ? zt !== Rt && zt >= 0 && (Xe({
|
|
1239
1239
|
sortable: this,
|
|
1240
1240
|
name: "update",
|
|
1241
1241
|
toEl: K,
|
|
1242
1242
|
originalEvent: e
|
|
1243
|
-
}),
|
|
1243
|
+
}), Xe({
|
|
1244
1244
|
sortable: this,
|
|
1245
1245
|
name: "sort",
|
|
1246
1246
|
toEl: K,
|
|
1247
1247
|
originalEvent: e
|
|
1248
|
-
})) : (zt >= 0 && (
|
|
1248
|
+
})) : (zt >= 0 && (Xe({
|
|
1249
1249
|
rootEl: K,
|
|
1250
1250
|
name: "add",
|
|
1251
1251
|
toEl: K,
|
|
1252
1252
|
fromEl: J,
|
|
1253
1253
|
originalEvent: e
|
|
1254
|
-
}),
|
|
1254
|
+
}), Xe({
|
|
1255
1255
|
sortable: this,
|
|
1256
1256
|
name: "remove",
|
|
1257
1257
|
toEl: K,
|
|
1258
1258
|
originalEvent: e
|
|
1259
|
-
}),
|
|
1259
|
+
}), Xe({
|
|
1260
1260
|
rootEl: K,
|
|
1261
1261
|
name: "sort",
|
|
1262
1262
|
toEl: K,
|
|
1263
1263
|
fromEl: J,
|
|
1264
1264
|
originalEvent: e
|
|
1265
|
-
}),
|
|
1265
|
+
}), Xe({
|
|
1266
1266
|
sortable: this,
|
|
1267
1267
|
name: "sort",
|
|
1268
1268
|
toEl: K,
|
|
1269
1269
|
originalEvent: e
|
|
1270
|
-
})), Ut && Ut.save()),
|
|
1270
|
+
})), Ut && Ut.save()), U.active && ((zt == null || zt === -1) && (zt = Rt, Vt = Bt), Xe({
|
|
1271
1271
|
sortable: this,
|
|
1272
1272
|
name: "end",
|
|
1273
1273
|
toEl: K,
|
|
@@ -1275,7 +1275,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1275
1275
|
}), this.save()))), this._nulling();
|
|
1276
1276
|
},
|
|
1277
1277
|
_nulling: function() {
|
|
1278
|
-
Pt("nulling", this), J = G = K = q = Ft = Y = It = Lt = qt = Jt = $t = zt = Vt = Rt = Bt = en = tn = Ut = Ht =
|
|
1278
|
+
Pt("nulling", this), J = G = K = q = Ft = Y = It = Lt = qt = Jt = $t = zt = Vt = Rt = Bt = en = tn = Ut = Ht = U.dragged = U.ghost = U.clone = U.active = null, ln.forEach(function(e) {
|
|
1279
1279
|
e.checked = !0;
|
|
1280
1280
|
}), ln.length = Yt = Xt = 0;
|
|
1281
1281
|
},
|
|
@@ -1287,7 +1287,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1287
1287
|
break;
|
|
1288
1288
|
case "dragenter":
|
|
1289
1289
|
case "dragover":
|
|
1290
|
-
G && (this._onDragOver(e),
|
|
1290
|
+
G && (this._onDragOver(e), Ze(e));
|
|
1291
1291
|
break;
|
|
1292
1292
|
case "selectstart":
|
|
1293
1293
|
e.preventDefault();
|
|
@@ -1295,14 +1295,14 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1295
1295
|
}
|
|
1296
1296
|
},
|
|
1297
1297
|
toArray: function() {
|
|
1298
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
1298
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Oe(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || at(t));
|
|
1299
1299
|
return e;
|
|
1300
1300
|
},
|
|
1301
1301
|
sort: function(e, t) {
|
|
1302
1302
|
var n = {}, r = this.el;
|
|
1303
1303
|
this.toArray().forEach(function(e, t) {
|
|
1304
1304
|
var i = r.children[t];
|
|
1305
|
-
|
|
1305
|
+
Oe(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
1306
1306
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
1307
1307
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
1308
1308
|
}), t && this.animateAll();
|
|
@@ -1312,7 +1312,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1312
1312
|
e && e.set && e.set(this);
|
|
1313
1313
|
},
|
|
1314
1314
|
closest: function(e, t) {
|
|
1315
|
-
return
|
|
1315
|
+
return Oe(e, t || this.options.draggable, this.el, !1);
|
|
1316
1316
|
},
|
|
1317
1317
|
option: function(e, t) {
|
|
1318
1318
|
var n = this.options;
|
|
@@ -1323,14 +1323,14 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1323
1323
|
destroy: function() {
|
|
1324
1324
|
Pt("destroy", this);
|
|
1325
1325
|
var e = this.el;
|
|
1326
|
-
e[
|
|
1326
|
+
e[W] = null, R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart), R(e, "pointerdown", this._onTapStart), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
1327
1327
|
e.removeAttribute("draggable");
|
|
1328
1328
|
}), this._onDrop(), this._disableDelayedDragEvents(), Kt.splice(Kt.indexOf(this.el), 1), this.el = e = null;
|
|
1329
1329
|
},
|
|
1330
1330
|
_hideClone: function() {
|
|
1331
1331
|
if (!Lt) {
|
|
1332
|
-
if (Pt("hideClone", this),
|
|
1333
|
-
|
|
1332
|
+
if (Pt("hideClone", this), U.eventCanceled) return;
|
|
1333
|
+
B(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Lt = !0;
|
|
1334
1334
|
}
|
|
1335
1335
|
},
|
|
1336
1336
|
_showClone: function(e) {
|
|
@@ -1339,56 +1339,56 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1339
1339
|
return;
|
|
1340
1340
|
}
|
|
1341
1341
|
if (Lt) {
|
|
1342
|
-
if (Pt("showClone", this),
|
|
1343
|
-
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : Ft ? J.insertBefore(Y, Ft) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y),
|
|
1342
|
+
if (Pt("showClone", this), U.eventCanceled) return;
|
|
1343
|
+
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : Ft ? J.insertBefore(Y, Ft) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), B(Y, "display", ""), Lt = !1;
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
}, un &&
|
|
1347
|
-
(
|
|
1348
|
-
}),
|
|
1349
|
-
on:
|
|
1350
|
-
off:
|
|
1351
|
-
css:
|
|
1352
|
-
find:
|
|
1346
|
+
}, un && L(document, "touchmove", function(e) {
|
|
1347
|
+
(U.active || Wt) && e.cancelable && e.preventDefault();
|
|
1348
|
+
}), U.utils = {
|
|
1349
|
+
on: L,
|
|
1350
|
+
off: R,
|
|
1351
|
+
css: B,
|
|
1352
|
+
find: Ae,
|
|
1353
1353
|
is: function(e, t) {
|
|
1354
|
-
return !!
|
|
1355
|
-
},
|
|
1356
|
-
extend:
|
|
1357
|
-
throttle:
|
|
1358
|
-
closest:
|
|
1359
|
-
toggleClass:
|
|
1360
|
-
clone:
|
|
1361
|
-
index:
|
|
1362
|
-
nextTick:
|
|
1363
|
-
cancelNextTick:
|
|
1354
|
+
return !!Oe(e, t, e, !1);
|
|
1355
|
+
},
|
|
1356
|
+
extend: Re,
|
|
1357
|
+
throttle: Be,
|
|
1358
|
+
closest: Oe,
|
|
1359
|
+
toggleClass: z,
|
|
1360
|
+
clone: Ue,
|
|
1361
|
+
index: H,
|
|
1362
|
+
nextTick: st,
|
|
1363
|
+
cancelNextTick: ct,
|
|
1364
1364
|
detectDirection: hn,
|
|
1365
|
-
getChild:
|
|
1366
|
-
},
|
|
1367
|
-
return e[
|
|
1368
|
-
},
|
|
1365
|
+
getChild: Ne
|
|
1366
|
+
}, U.get = function(e) {
|
|
1367
|
+
return e[W];
|
|
1368
|
+
}, U.mount = function() {
|
|
1369
1369
|
var e = [...arguments];
|
|
1370
1370
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
1371
1371
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
1372
|
-
e.utils && (
|
|
1372
|
+
e.utils && (U.utils = me(me({}, U.utils), e.utils)), Mt.mount(e);
|
|
1373
1373
|
});
|
|
1374
|
-
},
|
|
1375
|
-
return new
|
|
1376
|
-
},
|
|
1374
|
+
}, U.create = function(e, t) {
|
|
1375
|
+
return new U(e, t);
|
|
1376
|
+
}, U.version = bt, X = [], Tn = !1, An = Be(function(e, t, n, r) {
|
|
1377
1377
|
if (t.scroll) {
|
|
1378
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
1379
|
-
wn !== n && (wn = n,
|
|
1378
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = je(), l = !1, u;
|
|
1379
|
+
wn !== n && (wn = n, ut(), Cn = t.scroll, u = t.scrollFn, Cn === !0 && (Cn = Le(n, !0)));
|
|
1380
1380
|
var d = 0, f = Cn;
|
|
1381
1381
|
do {
|
|
1382
|
-
var p = f, m =
|
|
1382
|
+
var p = f, m = V(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 = B(p), E = p.scrollLeft, D = p.scrollTop;
|
|
1383
1383
|
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"));
|
|
1384
1384
|
var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
|
|
1385
1385
|
if (!X[d]) for (var A = 0; A <= d; A++) X[A] || (X[A] = {});
|
|
1386
1386
|
(X[d].vx != O || X[d].vy != k || X[d].el !== p) && (X[d].el = p, X[d].vx = O, X[d].vy = k, clearInterval(X[d].pid), (O != 0 || k != 0) && (l = !0, X[d].pid = setInterval(function() {
|
|
1387
|
-
r && this.layer === 0 &&
|
|
1387
|
+
r && this.layer === 0 && U.active._onTouchMove(On);
|
|
1388
1388
|
var t = X[this.layer].vy ? X[this.layer].vy * s : 0, n = X[this.layer].vx ? X[this.layer].vx * s : 0;
|
|
1389
|
-
typeof u == "function" && u.call(
|
|
1389
|
+
typeof u == "function" && u.call(U.dragged.parentNode[W], n, t, e, On, X[this.layer].el) !== "continue" || He(X[this.layer].el, n, t);
|
|
1390
1390
|
}.bind({ layer: d }), 24))), d++;
|
|
1391
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
1391
|
+
} while (t.bubbleScroll && f !== c && (f = Le(f, !1)));
|
|
1392
1392
|
Tn = l;
|
|
1393
1393
|
}
|
|
1394
1394
|
}, 30), jn = function(e) {
|
|
@@ -1402,7 +1402,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1402
1402
|
putSortable: n
|
|
1403
1403
|
}));
|
|
1404
1404
|
}
|
|
1405
|
-
},
|
|
1405
|
+
}, ft.prototype = {
|
|
1406
1406
|
startIndex: null,
|
|
1407
1407
|
dragStart: function(e) {
|
|
1408
1408
|
this.startIndex = e.oldDraggableIndex;
|
|
@@ -1410,20 +1410,20 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
1410
1410
|
onSpill: function(e) {
|
|
1411
1411
|
var t = e.dragEl, n = e.putSortable;
|
|
1412
1412
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
1413
|
-
var r =
|
|
1413
|
+
var r = Ne(this.sortable.el, this.startIndex, this.options);
|
|
1414
1414
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
1415
1415
|
},
|
|
1416
1416
|
drop: jn
|
|
1417
|
-
},
|
|
1417
|
+
}, I(ft, { pluginName: "revertOnSpill" }), pt.prototype = {
|
|
1418
1418
|
onSpill: function(e) {
|
|
1419
1419
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
1420
1420
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
1421
1421
|
},
|
|
1422
1422
|
drop: jn
|
|
1423
|
-
},
|
|
1424
|
-
})), Hn = /* @__PURE__ */
|
|
1423
|
+
}, I(pt, { pluginName: "removeOnSpill" }), Z = [], Nn = [], In = !1, Ln = !1, Rn = !1, U.mount(new lt()), U.mount(pt, ft);
|
|
1424
|
+
})), Hn = /* @__PURE__ */ ue((/* @__PURE__ */ se(((e, t) => {
|
|
1425
1425
|
(function(n, r) {
|
|
1426
|
-
typeof e == "object" && typeof t == "object" ? t.exports = r(
|
|
1426
|
+
typeof e == "object" && typeof t == "object" ? t.exports = r(de("vue"), (Vn(), F(fe))) : typeof define == "function" && define.amd ? define([, "sortablejs"], r) : typeof e == "object" ? e.vuedraggable = r(de("vue"), (Vn(), F(fe))) : n.vuedraggable = r(n.Vue, n.Sortable);
|
|
1427
1427
|
})(typeof self < "u" ? self : e, function(e, t) {
|
|
1428
1428
|
return (function(e) {
|
|
1429
1429
|
var t = {};
|
|
@@ -2310,82 +2310,82 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
2310
2310
|
} });
|
|
2311
2311
|
}),
|
|
2312
2312
|
a4d3: (function(e, t, n) {
|
|
2313
|
-
var r = n("23e7"), i = n("da84"), a = n("d066"), o = n("c430"), s = n("83ab"), c = n("4930"), l = n("fdbf"), u = n("d039"), d = n("5135"), f = n("e8b5"), p = n("861d"), m = n("825a"), h = n("7b0b"), g = n("fc6a"), _ = n("c04e"), v = n("5c6c"), y = n("7c73"), b = n("df75"), x = n("241c"), S = n("057f"), C = n("7418"), w = n("06cf"), T = n("9bf2"), E = n("d1e7"), D = n("9112"), O = n("6eeb"), k = n("5692"), A = n("f772"), j = n("d012"), M = n("90e3"), ee = n("b622"), te = n("e538"), ne = n("746f"), re = n("d44e"), ie = n("69f3"), ae = n("b727").forEach, N = A("hidden"), oe = "Symbol", P = "prototype", se = ee("toPrimitive"),
|
|
2314
|
-
return y(
|
|
2315
|
-
return
|
|
2313
|
+
var r = n("23e7"), i = n("da84"), a = n("d066"), o = n("c430"), s = n("83ab"), c = n("4930"), l = n("fdbf"), u = n("d039"), d = n("5135"), f = n("e8b5"), p = n("861d"), m = n("825a"), h = n("7b0b"), g = n("fc6a"), _ = n("c04e"), v = n("5c6c"), y = n("7c73"), b = n("df75"), x = n("241c"), S = n("057f"), C = n("7418"), w = n("06cf"), T = n("9bf2"), E = n("d1e7"), D = n("9112"), O = n("6eeb"), k = n("5692"), A = n("f772"), j = n("d012"), M = n("90e3"), ee = n("b622"), te = n("e538"), ne = n("746f"), re = n("d44e"), ie = n("69f3"), ae = n("b727").forEach, N = A("hidden"), oe = "Symbol", P = "prototype", se = ee("toPrimitive"), ce = ie.set, le = ie.getterFor(oe), ue = Object[P], F = i.Symbol, de = a("JSON", "stringify"), fe = w.f, pe = T.f, me = S.f, he = E.f, ge = k("symbols"), I = k("op-symbols"), _e = k("string-to-symbol-registry"), ve = k("symbol-to-string-registry"), ye = k("wks"), be = i.QObject, xe = !be || !be[P] || !be[P].findChild, Se = s && u(function() {
|
|
2314
|
+
return y(pe({}, "a", { get: function() {
|
|
2315
|
+
return pe(this, "a", { value: 7 }).a;
|
|
2316
2316
|
} })).a != 7;
|
|
2317
2317
|
}) ? function(e, t, n) {
|
|
2318
|
-
var r =
|
|
2319
|
-
r && delete
|
|
2320
|
-
} :
|
|
2321
|
-
var n =
|
|
2322
|
-
return
|
|
2318
|
+
var r = fe(ue, t);
|
|
2319
|
+
r && delete ue[t], pe(e, t, n), r && e !== ue && pe(ue, t, r);
|
|
2320
|
+
} : pe, Ce = function(e, t) {
|
|
2321
|
+
var n = ge[e] = y(F[P]);
|
|
2322
|
+
return ce(n, {
|
|
2323
2323
|
type: oe,
|
|
2324
2324
|
tag: e,
|
|
2325
2325
|
description: t
|
|
2326
2326
|
}), s || (n.description = t), n;
|
|
2327
|
-
},
|
|
2327
|
+
}, we = l ? function(e) {
|
|
2328
2328
|
return typeof e == "symbol";
|
|
2329
2329
|
} : function(e) {
|
|
2330
|
-
return Object(e) instanceof
|
|
2331
|
-
},
|
|
2332
|
-
e ===
|
|
2330
|
+
return Object(e) instanceof F;
|
|
2331
|
+
}, Te = function(e, t, n) {
|
|
2332
|
+
e === ue && Te(I, t, n), m(e);
|
|
2333
2333
|
var r = _(t, !0);
|
|
2334
|
-
return m(n), d(
|
|
2335
|
-
},
|
|
2334
|
+
return m(n), d(ge, r) ? (n.enumerable ? (d(e, N) && e[N][r] && (e[N][r] = !1), n = y(n, { enumerable: v(0, !1) })) : (d(e, N) || pe(e, N, v(1, {})), e[N][r] = !0), Se(e, r, n)) : pe(e, r, n);
|
|
2335
|
+
}, L = function(e, t) {
|
|
2336
2336
|
m(e);
|
|
2337
2337
|
var n = g(t);
|
|
2338
|
-
return ae(b(n).concat(
|
|
2339
|
-
(!s ||
|
|
2338
|
+
return ae(b(n).concat(z(n)), function(t) {
|
|
2339
|
+
(!s || Ee.call(n, t)) && Te(e, t, n[t]);
|
|
2340
2340
|
}), e;
|
|
2341
|
-
},
|
|
2342
|
-
return t === void 0 ? y(e) :
|
|
2343
|
-
},
|
|
2344
|
-
var t = _(e, !0), n =
|
|
2345
|
-
return this ===
|
|
2346
|
-
},
|
|
2341
|
+
}, R = function(e, t) {
|
|
2342
|
+
return t === void 0 ? y(e) : L(y(e), t);
|
|
2343
|
+
}, Ee = function(e) {
|
|
2344
|
+
var t = _(e, !0), n = he.call(this, t);
|
|
2345
|
+
return this === ue && d(ge, t) && !d(I, t) ? !1 : n || !d(this, t) || !d(ge, t) || d(this, N) && this[N][t] ? n : !0;
|
|
2346
|
+
}, De = function(e, t) {
|
|
2347
2347
|
var n = g(e), r = _(t, !0);
|
|
2348
|
-
if (!(n ===
|
|
2349
|
-
var i =
|
|
2350
|
-
return i && d(
|
|
2348
|
+
if (!(n === ue && d(ge, r) && !d(I, r))) {
|
|
2349
|
+
var i = fe(n, r);
|
|
2350
|
+
return i && d(ge, r) && !(d(n, N) && n[N][r]) && (i.enumerable = !0), i;
|
|
2351
2351
|
}
|
|
2352
|
-
},
|
|
2353
|
-
var t =
|
|
2352
|
+
}, Oe = function(e) {
|
|
2353
|
+
var t = me(g(e)), n = [];
|
|
2354
2354
|
return ae(t, function(e) {
|
|
2355
|
-
!d(
|
|
2355
|
+
!d(ge, e) && !d(j, e) && n.push(e);
|
|
2356
2356
|
}), n;
|
|
2357
|
-
},
|
|
2358
|
-
var t = e ===
|
|
2357
|
+
}, z = function(e) {
|
|
2358
|
+
var t = e === ue, n = me(t ? I : g(e)), r = [];
|
|
2359
2359
|
return ae(n, function(e) {
|
|
2360
|
-
d(
|
|
2360
|
+
d(ge, e) && (!t || d(ue, e)) && r.push(ge[e]);
|
|
2361
2361
|
}), r;
|
|
2362
2362
|
};
|
|
2363
|
-
c || (
|
|
2364
|
-
if (this instanceof
|
|
2363
|
+
c || (F = function() {
|
|
2364
|
+
if (this instanceof F) throw TypeError("Symbol is not a constructor");
|
|
2365
2365
|
var e = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), t = M(e), n = function(e) {
|
|
2366
|
-
this ===
|
|
2366
|
+
this === ue && n.call(I, e), d(this, N) && d(this[N], t) && (this[N][t] = !1), Se(this, t, v(1, e));
|
|
2367
2367
|
};
|
|
2368
|
-
return s &&
|
|
2368
|
+
return s && xe && Se(ue, t, {
|
|
2369
2369
|
configurable: !0,
|
|
2370
2370
|
set: n
|
|
2371
|
-
}),
|
|
2372
|
-
}, O(
|
|
2373
|
-
return
|
|
2374
|
-
}), O(
|
|
2375
|
-
return
|
|
2376
|
-
}), E.f =
|
|
2377
|
-
return
|
|
2378
|
-
}, s && (
|
|
2371
|
+
}), Ce(t, e);
|
|
2372
|
+
}, O(F[P], "toString", function() {
|
|
2373
|
+
return le(this).tag;
|
|
2374
|
+
}), O(F, "withoutSetter", function(e) {
|
|
2375
|
+
return Ce(M(e), e);
|
|
2376
|
+
}), E.f = Ee, T.f = Te, w.f = De, x.f = S.f = Oe, C.f = z, te.f = function(e) {
|
|
2377
|
+
return Ce(ee(e), e);
|
|
2378
|
+
}, s && (pe(F[P], "description", {
|
|
2379
2379
|
configurable: !0,
|
|
2380
2380
|
get: function() {
|
|
2381
|
-
return
|
|
2381
|
+
return le(this).description;
|
|
2382
2382
|
}
|
|
2383
|
-
}), o || O(
|
|
2383
|
+
}), o || O(ue, "propertyIsEnumerable", Ee, { unsafe: !0 }))), r({
|
|
2384
2384
|
global: !0,
|
|
2385
2385
|
wrap: !0,
|
|
2386
2386
|
forced: !c,
|
|
2387
2387
|
sham: !c
|
|
2388
|
-
}, { Symbol:
|
|
2388
|
+
}, { Symbol: F }), ae(b(ye), function(e) {
|
|
2389
2389
|
ne(e);
|
|
2390
2390
|
}), r({
|
|
2391
2391
|
target: oe,
|
|
@@ -2394,19 +2394,19 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
2394
2394
|
}, {
|
|
2395
2395
|
for: function(e) {
|
|
2396
2396
|
var t = String(e);
|
|
2397
|
-
if (d(
|
|
2398
|
-
var n =
|
|
2399
|
-
return
|
|
2397
|
+
if (d(_e, t)) return _e[t];
|
|
2398
|
+
var n = F(t);
|
|
2399
|
+
return _e[t] = n, ve[n] = t, n;
|
|
2400
2400
|
},
|
|
2401
2401
|
keyFor: function(e) {
|
|
2402
|
-
if (!
|
|
2403
|
-
if (d(
|
|
2402
|
+
if (!we(e)) throw TypeError(e + " is not a symbol");
|
|
2403
|
+
if (d(ve, e)) return ve[e];
|
|
2404
2404
|
},
|
|
2405
2405
|
useSetter: function() {
|
|
2406
|
-
|
|
2406
|
+
xe = !0;
|
|
2407
2407
|
},
|
|
2408
2408
|
useSimple: function() {
|
|
2409
|
-
|
|
2409
|
+
xe = !1;
|
|
2410
2410
|
}
|
|
2411
2411
|
}), r({
|
|
2412
2412
|
target: "Object",
|
|
@@ -2414,17 +2414,17 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
2414
2414
|
forced: !c,
|
|
2415
2415
|
sham: !s
|
|
2416
2416
|
}, {
|
|
2417
|
-
create:
|
|
2418
|
-
defineProperty:
|
|
2419
|
-
defineProperties:
|
|
2420
|
-
getOwnPropertyDescriptor:
|
|
2417
|
+
create: R,
|
|
2418
|
+
defineProperty: Te,
|
|
2419
|
+
defineProperties: L,
|
|
2420
|
+
getOwnPropertyDescriptor: De
|
|
2421
2421
|
}), r({
|
|
2422
2422
|
target: "Object",
|
|
2423
2423
|
stat: !0,
|
|
2424
2424
|
forced: !c
|
|
2425
2425
|
}, {
|
|
2426
|
-
getOwnPropertyNames:
|
|
2427
|
-
getOwnPropertySymbols:
|
|
2426
|
+
getOwnPropertyNames: Oe,
|
|
2427
|
+
getOwnPropertySymbols: z
|
|
2428
2428
|
}), r({
|
|
2429
2429
|
target: "Object",
|
|
2430
2430
|
stat: !0,
|
|
@@ -2433,19 +2433,19 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
2433
2433
|
})
|
|
2434
2434
|
}, { getOwnPropertySymbols: function(e) {
|
|
2435
2435
|
return C.f(h(e));
|
|
2436
|
-
} }),
|
|
2436
|
+
} }), de && r({
|
|
2437
2437
|
target: "JSON",
|
|
2438
2438
|
stat: !0,
|
|
2439
2439
|
forced: !c || u(function() {
|
|
2440
|
-
var e =
|
|
2441
|
-
return
|
|
2440
|
+
var e = F();
|
|
2441
|
+
return de([e]) != "[null]" || de({ a: e }) != "{}" || de(Object(e)) != "{}";
|
|
2442
2442
|
})
|
|
2443
2443
|
}, { stringify: function(e, t, n) {
|
|
2444
2444
|
for (var r = [e], i = 1, a; arguments.length > i;) r.push(arguments[i++]);
|
|
2445
|
-
if (a = t, !(!p(t) && e === void 0 ||
|
|
2446
|
-
if (typeof a == "function" && (t = a.call(this, e, t)), !
|
|
2447
|
-
}), r[1] = t,
|
|
2448
|
-
} }),
|
|
2445
|
+
if (a = t, !(!p(t) && e === void 0 || we(e))) return f(t) || (t = function(e, t) {
|
|
2446
|
+
if (typeof a == "function" && (t = a.call(this, e, t)), !we(t)) return t;
|
|
2447
|
+
}), r[1] = t, de.apply(null, r);
|
|
2448
|
+
} }), F[P][se] || D(F[P], se, F[P].valueOf), re(F, oe), j[N] = !0;
|
|
2449
2449
|
}),
|
|
2450
2450
|
a630: (function(e, t, n) {
|
|
2451
2451
|
var r = n("23e7"), i = n("4df4");
|
|
@@ -3210,21 +3210,21 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3210
3210
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
3211
3211
|
}
|
|
3212
3212
|
}
|
|
3213
|
-
function
|
|
3213
|
+
function ce(e, t, n) {
|
|
3214
3214
|
return t && se(e.prototype, t), n && se(e, n), e;
|
|
3215
3215
|
}
|
|
3216
|
-
var
|
|
3216
|
+
var le = function(e) {
|
|
3217
3217
|
return e.el;
|
|
3218
|
-
},
|
|
3218
|
+
}, ue = function(e, t) {
|
|
3219
3219
|
return e.__draggable_context = t;
|
|
3220
|
-
},
|
|
3220
|
+
}, F = function(e) {
|
|
3221
3221
|
return e.__draggable_context;
|
|
3222
|
-
},
|
|
3222
|
+
}, de = /* @__PURE__ */ function() {
|
|
3223
3223
|
function e(t) {
|
|
3224
3224
|
var n = t.nodes, r = n.header, i = n.default, a = n.footer, o = t.root, s = t.realList;
|
|
3225
3225
|
P(this, e), this.defaultNodes = i, this.children = [].concat(v(r), v(i), v(a)), this.externalComponent = o.externalComponent, this.rootTransition = o.transition, this.tag = o.tag, this.realList = s;
|
|
3226
3226
|
}
|
|
3227
|
-
return
|
|
3227
|
+
return ce(e, [
|
|
3228
3228
|
{
|
|
3229
3229
|
key: "render",
|
|
3230
3230
|
value: function(e, t) {
|
|
@@ -3239,7 +3239,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3239
3239
|
value: function() {
|
|
3240
3240
|
var e = this.defaultNodes, t = this.realList;
|
|
3241
3241
|
e.forEach(function(e, n) {
|
|
3242
|
-
le(
|
|
3242
|
+
ue(le(e), {
|
|
3243
3243
|
element: t[n],
|
|
3244
3244
|
index: n
|
|
3245
3245
|
});
|
|
@@ -3249,7 +3249,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3249
3249
|
{
|
|
3250
3250
|
key: "getUnderlyingVm",
|
|
3251
3251
|
value: function(e) {
|
|
3252
|
-
return
|
|
3252
|
+
return F(e);
|
|
3253
3253
|
}
|
|
3254
3254
|
},
|
|
3255
3255
|
{
|
|
@@ -3257,10 +3257,10 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3257
3257
|
value: function(e, t) {
|
|
3258
3258
|
var n = this.defaultNodes, r = n.length, i = t.children, a = i.item(e);
|
|
3259
3259
|
if (a === null) return r;
|
|
3260
|
-
var o =
|
|
3260
|
+
var o = F(a);
|
|
3261
3261
|
if (o) return o.index;
|
|
3262
3262
|
if (r === 0) return 0;
|
|
3263
|
-
var s =
|
|
3263
|
+
var s = le(n[0]);
|
|
3264
3264
|
return e < v(i).findIndex(function(e) {
|
|
3265
3265
|
return e === s;
|
|
3266
3266
|
}) ? 0 : r;
|
|
@@ -3273,14 +3273,14 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3273
3273
|
}
|
|
3274
3274
|
}
|
|
3275
3275
|
]), e;
|
|
3276
|
-
}(),
|
|
3277
|
-
function
|
|
3276
|
+
}(), fe = n("8bbf");
|
|
3277
|
+
function pe(e, t) {
|
|
3278
3278
|
var n = e[t];
|
|
3279
3279
|
return n ? n() : [];
|
|
3280
3280
|
}
|
|
3281
|
-
function
|
|
3281
|
+
function me(e) {
|
|
3282
3282
|
var t = e.$slots, n = e.realList, r = e.getKey, i = n || [], a = m(["header", "footer"].map(function(e) {
|
|
3283
|
-
return
|
|
3283
|
+
return pe(t, e);
|
|
3284
3284
|
}), 2), o = a[0], s = a[1], l = t.item;
|
|
3285
3285
|
if (!l) throw Error("draggable element must have an item slot");
|
|
3286
3286
|
var u = i.flatMap(function(e, t) {
|
|
@@ -3298,45 +3298,45 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3298
3298
|
default: u
|
|
3299
3299
|
};
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function he(e) {
|
|
3302
3302
|
var t = ne(e), n = !te(e) && !t;
|
|
3303
3303
|
return {
|
|
3304
3304
|
transition: t,
|
|
3305
3305
|
externalComponent: n,
|
|
3306
|
-
tag: n ? (0,
|
|
3306
|
+
tag: n ? (0, fe.resolveComponent)(e) : t ? fe.TransitionGroup : e
|
|
3307
3307
|
};
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function ge(e) {
|
|
3310
3310
|
var t = e.$slots, n = e.tag, r = e.realList, i = e.getKey;
|
|
3311
|
-
return new
|
|
3312
|
-
nodes:
|
|
3311
|
+
return new de({
|
|
3312
|
+
nodes: me({
|
|
3313
3313
|
$slots: t,
|
|
3314
3314
|
realList: r,
|
|
3315
3315
|
getKey: i
|
|
3316
3316
|
}),
|
|
3317
|
-
root:
|
|
3317
|
+
root: he(n),
|
|
3318
3318
|
realList: r
|
|
3319
3319
|
});
|
|
3320
3320
|
}
|
|
3321
|
-
function
|
|
3321
|
+
function I(e, t) {
|
|
3322
3322
|
var n = this;
|
|
3323
|
-
(0,
|
|
3323
|
+
(0, fe.nextTick)(function() {
|
|
3324
3324
|
return n.$emit(e.toLowerCase(), t);
|
|
3325
3325
|
});
|
|
3326
3326
|
}
|
|
3327
|
-
function
|
|
3327
|
+
function _e(e) {
|
|
3328
3328
|
var t = this;
|
|
3329
3329
|
return function(n, r) {
|
|
3330
3330
|
if (t.realList !== null) return t[`onDrag${e}`](n, r);
|
|
3331
3331
|
};
|
|
3332
3332
|
}
|
|
3333
|
-
function
|
|
3334
|
-
var t = this, n =
|
|
3333
|
+
function ve(e) {
|
|
3334
|
+
var t = this, n = _e.call(this, e);
|
|
3335
3335
|
return function(r, i) {
|
|
3336
|
-
n.call(t, r, i),
|
|
3336
|
+
n.call(t, r, i), I.call(t, e, r);
|
|
3337
3337
|
};
|
|
3338
3338
|
}
|
|
3339
|
-
var
|
|
3339
|
+
var ye = null, be = {
|
|
3340
3340
|
list: {
|
|
3341
3341
|
type: Array,
|
|
3342
3342
|
required: !1,
|
|
@@ -3370,21 +3370,21 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3370
3370
|
required: !1,
|
|
3371
3371
|
default: null
|
|
3372
3372
|
}
|
|
3373
|
-
},
|
|
3373
|
+
}, xe = ["update:modelValue", "change"].concat(v([].concat(v(j.manageAndEmit), v(j.emit)).map(function(e) {
|
|
3374
3374
|
return e.toLowerCase();
|
|
3375
3375
|
})));
|
|
3376
|
-
t.default = (0,
|
|
3376
|
+
t.default = (0, fe.defineComponent)({
|
|
3377
3377
|
name: "draggable",
|
|
3378
3378
|
inheritAttrs: !1,
|
|
3379
|
-
props:
|
|
3380
|
-
emits:
|
|
3379
|
+
props: be,
|
|
3380
|
+
emits: xe,
|
|
3381
3381
|
data: function() {
|
|
3382
3382
|
return { error: !1 };
|
|
3383
3383
|
},
|
|
3384
3384
|
render: function() {
|
|
3385
3385
|
try {
|
|
3386
3386
|
this.error = !1;
|
|
3387
|
-
var e = this.$slots, t = this.$attrs, n = this.tag, r = this.componentData, i = this.realList, a = this.getKey, o =
|
|
3387
|
+
var e = this.$slots, t = this.$attrs, n = this.tag, r = this.componentData, i = this.realList, a = this.getKey, o = ge({
|
|
3388
3388
|
$slots: e,
|
|
3389
3389
|
tag: n,
|
|
3390
3390
|
realList: i,
|
|
@@ -3395,9 +3395,9 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3395
3395
|
$attrs: t,
|
|
3396
3396
|
componentData: r
|
|
3397
3397
|
});
|
|
3398
|
-
return o.render(
|
|
3398
|
+
return o.render(fe.h, s);
|
|
3399
3399
|
} catch (e) {
|
|
3400
|
-
return this.error = !0, (0,
|
|
3400
|
+
return this.error = !0, (0, fe.h)("pre", { style: { color: "red" } }, e.stack);
|
|
3401
3401
|
}
|
|
3402
3402
|
},
|
|
3403
3403
|
created: function() {
|
|
@@ -3412,13 +3412,13 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3412
3412
|
$attrs: t,
|
|
3413
3413
|
callBackBuilder: {
|
|
3414
3414
|
manageAndEmit: function(t) {
|
|
3415
|
-
return
|
|
3415
|
+
return ve.call(e, t);
|
|
3416
3416
|
},
|
|
3417
3417
|
emit: function(t) {
|
|
3418
|
-
return
|
|
3418
|
+
return I.bind(e, t);
|
|
3419
3419
|
},
|
|
3420
3420
|
manage: function(t) {
|
|
3421
|
-
return
|
|
3421
|
+
return _e.call(e, t);
|
|
3422
3422
|
}
|
|
3423
3423
|
}
|
|
3424
3424
|
}), i = n.nodeType === 1 ? n : n.parentElement;
|
|
@@ -3461,7 +3461,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3461
3461
|
},
|
|
3462
3462
|
emitChanges: function(e) {
|
|
3463
3463
|
var t = this;
|
|
3464
|
-
(0,
|
|
3464
|
+
(0, fe.nextTick)(function() {
|
|
3465
3465
|
return t.$emit("change", e);
|
|
3466
3466
|
});
|
|
3467
3467
|
},
|
|
@@ -3497,7 +3497,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3497
3497
|
return this.componentStructure.getVmIndexFromDomIndex(e, this.targetDomElement);
|
|
3498
3498
|
},
|
|
3499
3499
|
onDragStart: function(e) {
|
|
3500
|
-
this.context = this.getUnderlyingVm(e.item), e.item._underlying_vm_ = this.clone(this.context.element),
|
|
3500
|
+
this.context = this.getUnderlyingVm(e.item), e.item._underlying_vm_ = this.clone(this.context.element), ye = e.item;
|
|
3501
3501
|
},
|
|
3502
3502
|
onDragAdd: function(e) {
|
|
3503
3503
|
var t = e.item._underlying_vm_;
|
|
@@ -3541,7 +3541,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3541
3541
|
var n = v(t.to.children).filter(function(e) {
|
|
3542
3542
|
return e.style.display !== "none";
|
|
3543
3543
|
}), r = n.indexOf(t.related), i = e.component.getVmIndexFromDomIndex(r);
|
|
3544
|
-
return n.indexOf(
|
|
3544
|
+
return n.indexOf(ye) !== -1 || !t.willInsertAfter ? i : i + 1;
|
|
3545
3545
|
},
|
|
3546
3546
|
onDragMove: function(e, t) {
|
|
3547
3547
|
var n = this.move, r = this.realList;
|
|
@@ -3553,7 +3553,7 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3553
3553
|
}), t);
|
|
3554
3554
|
},
|
|
3555
3555
|
onDragEnd: function() {
|
|
3556
|
-
|
|
3556
|
+
ye = null;
|
|
3557
3557
|
}
|
|
3558
3558
|
}
|
|
3559
3559
|
});
|
|
@@ -3640,7 +3640,8 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3640
3640
|
variant: {
|
|
3641
3641
|
default: "primary",
|
|
3642
3642
|
type: null
|
|
3643
|
-
}
|
|
3643
|
+
},
|
|
3644
|
+
rounded: { type: Boolean }
|
|
3644
3645
|
},
|
|
3645
3646
|
setup(e) {
|
|
3646
3647
|
let n = e, r = t(() => n.maxValue && n.value && n.value > n.maxValue ? `${n.maxValue}+` : n.value == null ? "-" : `${n.prefix}${n.value}`), a = t(() => ({
|
|
@@ -3651,18 +3652,19 @@ var yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, G, K, q, J,
|
|
|
3651
3652
|
"pv-badge-secondary": n.variant == "secondary",
|
|
3652
3653
|
"pv-surface-lighten-5": n.variant == "tertiary",
|
|
3653
3654
|
"pv-text-tertiary": n.variant == "ghost" || n.variant == "tertiary",
|
|
3654
|
-
"pv-surface": n.variant == "ghost"
|
|
3655
|
+
"pv-surface": n.variant == "ghost",
|
|
3656
|
+
"pv-rounded": n.rounded
|
|
3655
3657
|
}));
|
|
3656
3658
|
return (e, t) => (_(), i("div", {
|
|
3657
3659
|
class: m(a.value),
|
|
3658
3660
|
"data-testid": "pv-counter-badge"
|
|
3659
3661
|
}, E(r.value), 3));
|
|
3660
3662
|
}
|
|
3661
|
-
}), Wn = ".pv-badge-md[data-v-
|
|
3663
|
+
}), Wn = ".pv-badge-md[data-v-c578e86e]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-c578e86e]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-c578e86e]{border-radius:50%}", Gn = (e, t) => {
|
|
3662
3664
|
let n = e.__vccOpts || e;
|
|
3663
3665
|
for (let [e, r] of t) n[e] = r;
|
|
3664
3666
|
return n;
|
|
3665
|
-
}, Kn = /* @__PURE__ */ Gn(Un, [["styles", [Wn]], ["__scopeId", "data-v-
|
|
3667
|
+
}, Kn = /* @__PURE__ */ Gn(Un, [["styles", [Wn]], ["__scopeId", "data-v-c578e86e"]]);
|
|
3666
3668
|
//#endregion
|
|
3667
3669
|
//#region src/web-components/utils.ts
|
|
3668
3670
|
function qn() {
|
|
@@ -4027,7 +4029,7 @@ var Jn = [
|
|
|
4027
4029
|
level: s.level,
|
|
4028
4030
|
showNestedTree: N.value,
|
|
4029
4031
|
childrenShowNestedTree: j(s.settings, s.option.field)
|
|
4030
|
-
})),
|
|
4032
|
+
})), ce = t({
|
|
4031
4033
|
get: () => [...s.option.children || []],
|
|
4032
4034
|
set: (e) => {
|
|
4033
4035
|
c("update:children", {
|
|
@@ -4035,7 +4037,7 @@ var Jn = [
|
|
|
4035
4037
|
newChildren: e
|
|
4036
4038
|
});
|
|
4037
4039
|
}
|
|
4038
|
-
}),
|
|
4040
|
+
}), le = t(() => s.isParentPathOpen ?? !0);
|
|
4039
4041
|
return (t, i) => {
|
|
4040
4042
|
let s = w("PvSimpleNestedTreeItem", !0);
|
|
4041
4043
|
return _(), n(lr, {
|
|
@@ -4052,7 +4054,7 @@ var Jn = [
|
|
|
4052
4054
|
icon: e.settings[e.option.field]?.icon,
|
|
4053
4055
|
style: h({
|
|
4054
4056
|
paddingLeft: D(O)(e.level),
|
|
4055
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
4057
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: le.value }) ?? {}
|
|
4056
4058
|
}),
|
|
4057
4059
|
onHandleSelected: i[0] ||= (e) => t.$emit("handle-tree-select", e),
|
|
4058
4060
|
onMouseenter: i[1] ||= (t) => D(v)(e.option.node_id),
|
|
@@ -4090,14 +4092,14 @@ var Jn = [
|
|
|
4090
4092
|
])),
|
|
4091
4093
|
r(" Drop zone for children "),
|
|
4092
4094
|
a("div", { "data-parent-id": e.option.node_id }, [o(D(Hn.default), {
|
|
4093
|
-
modelValue:
|
|
4094
|
-
"onUpdate:modelValue": i[6] ||= (e) =>
|
|
4095
|
+
modelValue: ce.value,
|
|
4096
|
+
"onUpdate:modelValue": i[6] ||= (e) => ce.value = e,
|
|
4095
4097
|
"parent-id": e.option.node_id,
|
|
4096
4098
|
group: D(C)(e.settings, e.option),
|
|
4097
4099
|
"item-key": "node_id",
|
|
4098
4100
|
disabled: D(x)(e.isDraggable, e.settings, e.option),
|
|
4099
4101
|
move: D(S)(e.settings),
|
|
4100
|
-
class: m({ "pv-tree-drop-zone": D(l) &&
|
|
4102
|
+
class: m({ "pv-tree-drop-zone": D(l) && ce.value.length === 0 && D(E)(e.settings, e.option, D(u)) }),
|
|
4101
4103
|
onStart: re,
|
|
4102
4104
|
onEnd: D(f),
|
|
4103
4105
|
onAdd: D(f)
|
|
@@ -4108,7 +4110,7 @@ var Jn = [
|
|
|
4108
4110
|
settings: e.settings,
|
|
4109
4111
|
level: se.value,
|
|
4110
4112
|
index: r,
|
|
4111
|
-
"total-siblings":
|
|
4113
|
+
"total-siblings": ce.value.length,
|
|
4112
4114
|
"parent-field": e.option.field,
|
|
4113
4115
|
"selected-options": e.selectedOptions,
|
|
4114
4116
|
"is-draggable": e.isDraggable,
|
|
@@ -4174,11 +4176,11 @@ var Jn = [
|
|
|
4174
4176
|
newChildren: e
|
|
4175
4177
|
});
|
|
4176
4178
|
}
|
|
4177
|
-
}), se = t(() => s.isParentPathOpen ?? !0),
|
|
4179
|
+
}), se = t(() => s.isParentPathOpen ?? !0), ce = t(() => s.index === void 0 || s.totalSiblings === void 0 ? !0 : s.index === s.totalSiblings - 1), le = t(() => ie.value && !ce.value);
|
|
4178
4180
|
return (t, i) => (_(), n(lr, {
|
|
4179
4181
|
class: "pv-flow",
|
|
4180
4182
|
style: { "--flow-size": "0px" },
|
|
4181
|
-
active:
|
|
4183
|
+
active: le.value,
|
|
4182
4184
|
level: e.level
|
|
4183
4185
|
}, {
|
|
4184
4186
|
default: M(() => [
|
|
@@ -4202,7 +4204,7 @@ var Jn = [
|
|
|
4202
4204
|
ee(o(nr, null, null, 512), [[A, D(l) === e.option.node_id && D(p)(e.isDraggable, e.settings, e.option)]]),
|
|
4203
4205
|
ie.value ? (_(), n(sr, {
|
|
4204
4206
|
key: 0,
|
|
4205
|
-
"is-last":
|
|
4207
|
+
"is-last": ce.value
|
|
4206
4208
|
}, null, 8, ["is-last"])) : r("v-if", !0),
|
|
4207
4209
|
e.settings[e.option.field]?.renderer ? (_(), n(T(e.settings[e.option.field]?.renderer), {
|
|
4208
4210
|
key: 1,
|
|
@@ -4308,20 +4310,23 @@ var Jn = [
|
|
|
4308
4310
|
},
|
|
4309
4311
|
parentField: { type: String },
|
|
4310
4312
|
index: { type: Number },
|
|
4311
|
-
totalSiblings: { type: Number }
|
|
4313
|
+
totalSiblings: { type: Number },
|
|
4314
|
+
openNodeIds: { type: Array }
|
|
4312
4315
|
},
|
|
4313
4316
|
emits: ["handle-tree-select", "update:children"],
|
|
4314
4317
|
setup(e, { emit: s }) {
|
|
4315
|
-
let c = e, l = s, u = x(c.treeOpen ?? c.settings[c.option.field]?.defaultExpanded ?? !1);
|
|
4318
|
+
let c = e, l = s, u = t(() => (c.openNodeIds ?? []).some((e) => String(e) === String(c.option.node_id))), d = x(c.treeOpen ?? (u.value || (c.settings[c.option.field]?.defaultExpanded ?? !1)));
|
|
4316
4319
|
j(() => c.treeOpen, (e) => {
|
|
4317
|
-
e !== void 0 && (
|
|
4320
|
+
e !== void 0 && (d.value = e);
|
|
4321
|
+
}), j(u, (e) => {
|
|
4322
|
+
e && (d.value = !0);
|
|
4318
4323
|
});
|
|
4319
|
-
let { getDragGroupConfig:
|
|
4320
|
-
|
|
4321
|
-
},
|
|
4322
|
-
paddingLeft:
|
|
4324
|
+
let { getDragGroupConfig: f, getDragAndDropDisabled: p, canItemBeDragged: g, handleMoveCallback: v, childrenDraggable: y, canAcceptDrop: b } = gr(), { hoveredId: S, handleMouseEnter: C, handleMouseLeave: E } = ur(), { isDragging: O, draggingGroupName: k, onDragStart: ne, onDragEnd: re } = hr(), { dragAndDropIndicatorClasses: ie } = _r(), { indentPadding: ae, showsConnector: N } = cr(), oe = () => {
|
|
4325
|
+
ne(f(c.settings, c.option).name);
|
|
4326
|
+
}, P = (e) => ({
|
|
4327
|
+
paddingLeft: ae(e, c.settings[c.option.field]?.additionalNestingLevel ?? 0),
|
|
4323
4328
|
"--border-color": "#121313"
|
|
4324
|
-
}),
|
|
4329
|
+
}), se = (e) => c.selectedOptions && c.selectedOptions.some((t) => t.node_id === e), ce = t(() => c.settings[c.option.field]?.checkbox ? or : rr), le = t({
|
|
4325
4330
|
get: () => [...c.option.children || []],
|
|
4326
4331
|
set: (e) => {
|
|
4327
4332
|
l("update:children", {
|
|
@@ -4329,17 +4334,17 @@ var Jn = [
|
|
|
4329
4334
|
newChildren: e
|
|
4330
4335
|
});
|
|
4331
4336
|
}
|
|
4332
|
-
}),
|
|
4337
|
+
}), ue = t(() => !!(c.option.children?.length && c.settings[c.option.field]?.accordion)), F = t(() => N(c.settings, c.parentField)), de = t(() => c.index === void 0 || c.totalSiblings === void 0 ? !0 : c.index === c.totalSiblings - 1), fe = t(() => F.value && !de.value), pe = t(() => c.isParentPathOpen ?? !0 ? ue.value && c.level === 0 ? d.value : !0 : !1);
|
|
4333
4338
|
return (t, s) => {
|
|
4334
4339
|
let c = w("PvTreeItem", !0);
|
|
4335
4340
|
return _(), n(lr, {
|
|
4336
|
-
active:
|
|
4341
|
+
active: fe.value,
|
|
4337
4342
|
level: e.level
|
|
4338
4343
|
}, {
|
|
4339
4344
|
default: M(() => [e.option.children && e.option.children.length > 0 && e.settings && e.settings[e.option.field]?.accordion ? (_(), n(Qn, {
|
|
4340
4345
|
key: 0,
|
|
4341
|
-
modelValue:
|
|
4342
|
-
"onUpdate:modelValue": s[3] ||= (e) =>
|
|
4346
|
+
modelValue: d.value,
|
|
4347
|
+
"onUpdate:modelValue": s[3] ||= (e) => d.value = e,
|
|
4343
4348
|
chevronPosition: "left",
|
|
4344
4349
|
style: {
|
|
4345
4350
|
"--accordion-content-padding": "0px",
|
|
@@ -4349,31 +4354,31 @@ var Jn = [
|
|
|
4349
4354
|
enableTriggerSlot: "",
|
|
4350
4355
|
enableTriggerFullWidth: "",
|
|
4351
4356
|
summaryStyles: {
|
|
4352
|
-
...
|
|
4353
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
4357
|
+
...P(e.level),
|
|
4358
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: pe.value }) ?? {},
|
|
4354
4359
|
"justify-content": "flex-start"
|
|
4355
4360
|
},
|
|
4356
4361
|
summaryClasses: {
|
|
4357
4362
|
"pv-tree-item": !0,
|
|
4358
|
-
...D(
|
|
4363
|
+
...D(ie)(e.option)
|
|
4359
4364
|
},
|
|
4360
4365
|
defaultOpen: e.settings[e.option.field]?.defaultExpanded ?? !1,
|
|
4361
4366
|
"chevron-variant": "horizontal",
|
|
4362
|
-
onSummaryMouseenter: s[4] ||= (t) => D(
|
|
4363
|
-
onSummaryMouseleave: s[5] ||= (e) => D(
|
|
4367
|
+
onSummaryMouseenter: s[4] ||= (t) => D(C)(e.option.node_id),
|
|
4368
|
+
onSummaryMouseleave: s[5] ||= (e) => D(E)(),
|
|
4364
4369
|
onContextmenu: s[6] ||= te((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4365
4370
|
}, {
|
|
4366
4371
|
trigger: M(() => [
|
|
4367
|
-
ee(o(nr, null, null, 512), [[A, D(
|
|
4368
|
-
|
|
4372
|
+
ee(o(nr, null, null, 512), [[A, D(S) === e.option.node_id && D(g)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
4373
|
+
F.value ? (_(), n(sr, {
|
|
4369
4374
|
key: 0,
|
|
4370
|
-
"is-last":
|
|
4375
|
+
"is-last": de.value
|
|
4371
4376
|
}, null, 8, ["is-last"])) : r("v-if", !0),
|
|
4372
4377
|
e.settings[e.option.field]?.renderer ? (_(), n(T(e.settings[e.option.field]?.renderer), {
|
|
4373
4378
|
key: 1,
|
|
4374
4379
|
option: e.option,
|
|
4375
4380
|
settings: e.settings,
|
|
4376
|
-
selected:
|
|
4381
|
+
selected: se(e.option.node_id),
|
|
4377
4382
|
params: e.settings[e.option.field]?.rendererParams
|
|
4378
4383
|
}, null, 8, [
|
|
4379
4384
|
"option",
|
|
@@ -4387,30 +4392,31 @@ var Jn = [
|
|
|
4387
4392
|
}, null, 8, ["label", "icon"]))
|
|
4388
4393
|
]),
|
|
4389
4394
|
default: M(() => [a("div", { "data-parent-id": e.option.node_id }, [o(D(Hn.default), {
|
|
4390
|
-
modelValue:
|
|
4391
|
-
"onUpdate:modelValue": s[2] ||= (e) =>
|
|
4395
|
+
modelValue: le.value,
|
|
4396
|
+
"onUpdate:modelValue": s[2] ||= (e) => le.value = e,
|
|
4392
4397
|
"parent-id": e.option.node_id,
|
|
4393
|
-
group: D(
|
|
4398
|
+
group: D(f)(e.settings, e.option),
|
|
4394
4399
|
"item-key": "node_id",
|
|
4395
|
-
disabled: D(
|
|
4396
|
-
move: D(
|
|
4397
|
-
class: m({ "pv-tree-drop-zone": e.isDraggable &&
|
|
4398
|
-
onStart:
|
|
4399
|
-
onEnd: D(
|
|
4400
|
-
onAdd: D(
|
|
4400
|
+
disabled: D(p)(e.isDraggable, e.settings, e.option),
|
|
4401
|
+
move: D(v)(e.settings),
|
|
4402
|
+
class: m({ "pv-tree-drop-zone": e.isDraggable && le.value.length === 0 && D(b)(e.settings, e.option, D(k)) }),
|
|
4403
|
+
onStart: oe,
|
|
4404
|
+
onEnd: D(re),
|
|
4405
|
+
onAdd: D(re)
|
|
4401
4406
|
}, {
|
|
4402
4407
|
item: M(({ element: n, index: r }) => [o(c, {
|
|
4403
|
-
"is-parent-path-open": e.isParentPathOpen &&
|
|
4408
|
+
"is-parent-path-open": e.isParentPathOpen && d.value,
|
|
4404
4409
|
"selected-options": e.selectedOptions,
|
|
4405
4410
|
option: n,
|
|
4406
4411
|
settings: e.settings,
|
|
4407
4412
|
level: e.level + 1,
|
|
4408
4413
|
index: r,
|
|
4409
|
-
"total-siblings":
|
|
4414
|
+
"total-siblings": le.value.length,
|
|
4410
4415
|
"parent-field": e.option.field,
|
|
4411
|
-
"is-draggable": D(
|
|
4416
|
+
"is-draggable": D(y)(e.isDraggable, e.settings, n),
|
|
4412
4417
|
"tree-open": e.treeOpen,
|
|
4413
4418
|
"disable-selection": e.disableSelection,
|
|
4419
|
+
"open-node-ids": e.openNodeIds,
|
|
4414
4420
|
onHandleTreeSelect: s[0] ||= (e) => t.$emit("handle-tree-select", e),
|
|
4415
4421
|
"onUpdate:children": s[1] ||= (e) => t.$emit("update:children", e)
|
|
4416
4422
|
}, null, 8, [
|
|
@@ -4424,7 +4430,8 @@ var Jn = [
|
|
|
4424
4430
|
"parent-field",
|
|
4425
4431
|
"is-draggable",
|
|
4426
4432
|
"tree-open",
|
|
4427
|
-
"disable-selection"
|
|
4433
|
+
"disable-selection",
|
|
4434
|
+
"open-node-ids"
|
|
4428
4435
|
])]),
|
|
4429
4436
|
_: 1
|
|
4430
4437
|
}, 8, [
|
|
@@ -4472,27 +4479,27 @@ var Jn = [
|
|
|
4472
4479
|
"disable-selection",
|
|
4473
4480
|
"is-last-root-item"
|
|
4474
4481
|
])) : (_(), i("div", wr, [
|
|
4475
|
-
(_(), n(T(
|
|
4476
|
-
class: m({ ...D(
|
|
4482
|
+
(_(), n(T(ce.value), {
|
|
4483
|
+
class: m({ ...D(ie)(e.option) }),
|
|
4477
4484
|
option: e.option,
|
|
4478
|
-
selected:
|
|
4485
|
+
selected: se(e.option.node_id),
|
|
4479
4486
|
"disable-selection": e.disableSelection,
|
|
4480
4487
|
label: e.option.label,
|
|
4481
4488
|
icon: e.settings[e.option.field]?.icon,
|
|
4482
4489
|
style: h({
|
|
4483
|
-
...
|
|
4484
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
4490
|
+
...P(e.level),
|
|
4491
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: pe.value }) ?? {}
|
|
4485
4492
|
}),
|
|
4486
4493
|
onHandleSelected: s[9] ||= (e) => t.$emit("handle-tree-select", e),
|
|
4487
|
-
onMouseenter: s[10] ||= (t) => D(
|
|
4488
|
-
onMouseleave: s[11] ||= (e) => D(
|
|
4494
|
+
onMouseenter: s[10] ||= (t) => D(C)(e.option.node_id),
|
|
4495
|
+
onMouseleave: s[11] ||= (e) => D(E)(),
|
|
4489
4496
|
onContextmenu: s[12] ||= te((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4490
4497
|
}, {
|
|
4491
4498
|
default: M(() => [
|
|
4492
|
-
ee(o(nr, null, null, 512), [[A, D(
|
|
4493
|
-
|
|
4499
|
+
ee(o(nr, null, null, 512), [[A, D(S) === e.option.node_id && D(g)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
4500
|
+
F.value ? (_(), n(sr, {
|
|
4494
4501
|
key: 0,
|
|
4495
|
-
"is-last":
|
|
4502
|
+
"is-last": de.value
|
|
4496
4503
|
}, null, 8, ["is-last"])) : r("v-if", !0),
|
|
4497
4504
|
e.settings[e.option.field]?.renderer ? (_(), n(T(e.settings[e.option.field]?.renderer), {
|
|
4498
4505
|
key: 1,
|
|
@@ -4521,17 +4528,17 @@ var Jn = [
|
|
|
4521
4528
|
])),
|
|
4522
4529
|
r(" Drop zone for children "),
|
|
4523
4530
|
a("div", { "data-parent-id": e.option.node_id }, [o(D(Hn.default), {
|
|
4524
|
-
modelValue:
|
|
4525
|
-
"onUpdate:modelValue": s[15] ||= (e) =>
|
|
4531
|
+
modelValue: le.value,
|
|
4532
|
+
"onUpdate:modelValue": s[15] ||= (e) => le.value = e,
|
|
4526
4533
|
"parent-id": e.option.node_id,
|
|
4527
|
-
group: D(
|
|
4534
|
+
group: D(f)(e.settings, e.option),
|
|
4528
4535
|
"item-key": "node_id",
|
|
4529
|
-
disabled: D(
|
|
4530
|
-
move: D(
|
|
4531
|
-
class: m({ "pv-tree-drop-zone": D(
|
|
4532
|
-
onStart:
|
|
4533
|
-
onEnd: D(
|
|
4534
|
-
onAdd: D(
|
|
4536
|
+
disabled: D(p)(e.isDraggable, e.settings, e.option),
|
|
4537
|
+
move: D(v)(e.settings),
|
|
4538
|
+
class: m({ "pv-tree-drop-zone": D(O) && le.value.length === 0 && D(b)(e.settings, e.option, D(k)) }),
|
|
4539
|
+
onStart: oe,
|
|
4540
|
+
onEnd: D(re),
|
|
4541
|
+
onAdd: D(re)
|
|
4535
4542
|
}, {
|
|
4536
4543
|
item: M(({ element: n, index: r }) => [o(c, {
|
|
4537
4544
|
"is-parent-path-open": e.isParentPathOpen,
|
|
@@ -4540,10 +4547,11 @@ var Jn = [
|
|
|
4540
4547
|
settings: e.settings,
|
|
4541
4548
|
level: e.level + 1,
|
|
4542
4549
|
index: r,
|
|
4543
|
-
"total-siblings":
|
|
4550
|
+
"total-siblings": le.value.length,
|
|
4544
4551
|
"parent-field": e.option.field,
|
|
4545
|
-
"is-draggable": D(
|
|
4552
|
+
"is-draggable": D(y)(e.isDraggable, e.settings, n),
|
|
4546
4553
|
"disable-selection": e.disableSelection,
|
|
4554
|
+
"open-node-ids": e.openNodeIds,
|
|
4547
4555
|
onHandleTreeSelect: s[13] ||= (e) => t.$emit("handle-tree-select", e),
|
|
4548
4556
|
"onUpdate:children": s[14] ||= (e) => t.$emit("update:children", e)
|
|
4549
4557
|
}, null, 8, [
|
|
@@ -4556,7 +4564,8 @@ var Jn = [
|
|
|
4556
4564
|
"total-siblings",
|
|
4557
4565
|
"parent-field",
|
|
4558
4566
|
"is-draggable",
|
|
4559
|
-
"disable-selection"
|
|
4567
|
+
"disable-selection",
|
|
4568
|
+
"open-node-ids"
|
|
4560
4569
|
])]),
|
|
4561
4570
|
_: 1
|
|
4562
4571
|
}, 8, [
|
|
@@ -4574,7 +4583,7 @@ var Jn = [
|
|
|
4574
4583
|
}, 8, ["active", "level"]);
|
|
4575
4584
|
};
|
|
4576
4585
|
}
|
|
4577
|
-
}), [["styles", [".pv-tree-drop-zone[data-v-
|
|
4586
|
+
}), [["styles", [".pv-tree-drop-zone[data-v-9583f387]{min-height:0}"]], ["__scopeId", "data-v-9583f387"]]);
|
|
4578
4587
|
//#endregion
|
|
4579
4588
|
//#region ../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
|
|
4580
4589
|
function Dr(e) {
|
|
@@ -4766,7 +4775,8 @@ var ri = (e) => {
|
|
|
4766
4775
|
disableSelection: {
|
|
4767
4776
|
type: Boolean,
|
|
4768
4777
|
default: !1
|
|
4769
|
-
}
|
|
4778
|
+
},
|
|
4779
|
+
openNodeIds: { type: Array }
|
|
4770
4780
|
}, {
|
|
4771
4781
|
selectedOptions: { required: !1 },
|
|
4772
4782
|
selectedOptionsModifiers: {},
|
|
@@ -4800,6 +4810,7 @@ var ri = (e) => {
|
|
|
4800
4810
|
settings: p.value,
|
|
4801
4811
|
"is-draggable": n.isDraggable,
|
|
4802
4812
|
"disable-selection": n.disableSelection,
|
|
4813
|
+
"open-node-ids": n.openNodeIds,
|
|
4803
4814
|
onHandleTreeSelect: ({ option: e, event: t }) => f(e, t),
|
|
4804
4815
|
"onUpdate:children": D(d)
|
|
4805
4816
|
}, null, 8, [
|
|
@@ -4810,11 +4821,12 @@ var ri = (e) => {
|
|
|
4810
4821
|
"settings",
|
|
4811
4822
|
"is-draggable",
|
|
4812
4823
|
"disable-selection",
|
|
4824
|
+
"open-node-ids",
|
|
4813
4825
|
"onHandleTreeSelect",
|
|
4814
4826
|
"onUpdate:children"
|
|
4815
4827
|
])]))), 128))], 2)]));
|
|
4816
4828
|
}
|
|
4817
|
-
}), [["styles", ["[data-v-
|
|
4829
|
+
}), [["styles", ["[data-v-0b4ec4c6] .pv-tree-item{cursor:pointer;background-color:#0000;border:1px solid #0000;padding:3px 4px}[data-v-0b4ec4c6] .pv-tree-item-disabled{cursor:default!important}[data-v-0b4ec4c6] .pv-tree-item.pv-drop-indicator-top{border-top:1px solid var(--color-border,#121313)}[data-v-0b4ec4c6] .pv-tree-item.pv-drop-indicator-bottom{border-bottom:1px solid var(--color-border,#121313)}[data-v-0b4ec4c6] .pv-drop-indicator-parent{border:1px solid var(--color-border,#36c5ba)}[data-v-0b4ec4c6] .pv-tree-item-selected{background-color:var(--pv-color-selected,#e4f8f6)}[data-v-0b4ec4c6] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:hover,[data-v-0b4ec4c6] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:hover{background-color:var(--pv-color-hover,#e8f2f4);border-radius:4px}[data-v-0b4ec4c6] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:active,[data-v-0b4ec4c6] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:active{background-color:var(--pv-color-active,#c7d8db);border-radius:4px}"]], ["__scopeId", "data-v-0b4ec4c6"]]), ai = Object.defineProperty, oi = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, li = (e, t, n) => t in e ? ai(e, t, {
|
|
4818
4830
|
enumerable: !0,
|
|
4819
4831
|
configurable: !0,
|
|
4820
4832
|
writable: !0,
|
|
@@ -5147,15 +5159,15 @@ var aa = {
|
|
|
5147
5159
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
5148
5160
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
5149
5161
|
if ($(a) && o.transform !== "strict") {
|
|
5150
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Bi(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Bi(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Bi(x, ["dark"]), w = y || {}, { dark: T } = w, E = Bi(w, ["dark"]), D = $(t) ? this._toVariables({ primitive: t }, o) : {}, O = $(_) ? this._toVariables({ semantic: _ }, o) : {}, k = $(C) ? this._toVariables({ light: C }, o) : {}, A = $(S) ? this._toVariables({ dark: S }, o) : {}, j = $(b) ? this._toVariables({ semantic: b }, o) : {}, M = $(E) ? this._toVariables({ light: E }, o) : {}, ee = $(T) ? this._toVariables({ dark: T }, o) : {}, [te, ne] = [D.declarations ?? "", D.tokens], [re, ie] = [O.declarations ?? "", O.tokens || []], [ae, N] = [k.declarations ?? "", k.tokens || []], [oe, P] = [A.declarations ?? "", A.tokens || []], [se,
|
|
5162
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Bi(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Bi(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Bi(x, ["dark"]), w = y || {}, { dark: T } = w, E = Bi(w, ["dark"]), D = $(t) ? this._toVariables({ primitive: t }, o) : {}, O = $(_) ? this._toVariables({ semantic: _ }, o) : {}, k = $(C) ? this._toVariables({ light: C }, o) : {}, A = $(S) ? this._toVariables({ dark: S }, o) : {}, j = $(b) ? this._toVariables({ semantic: b }, o) : {}, M = $(E) ? this._toVariables({ light: E }, o) : {}, ee = $(T) ? this._toVariables({ dark: T }, o) : {}, [te, ne] = [D.declarations ?? "", D.tokens], [re, ie] = [O.declarations ?? "", O.tokens || []], [ae, N] = [k.declarations ?? "", k.tokens || []], [oe, P] = [A.declarations ?? "", A.tokens || []], [se, ce] = [j.declarations ?? "", j.tokens || []], [le, ue] = [M.declarations ?? "", M.tokens || []], [F, de] = [ee.declarations ?? "", ee.tokens || []];
|
|
5151
5163
|
s = this.transformCSS(e, te, "light", "variable", o, r, i), c = ne, l = `${this.transformCSS(e, `${re}${ae}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${oe}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
5152
5164
|
...ie,
|
|
5153
5165
|
...N,
|
|
5154
5166
|
...P
|
|
5155
|
-
])], d = `${this.transformCSS(e, `${se}${
|
|
5156
|
-
...
|
|
5157
|
-
...
|
|
5158
|
-
...
|
|
5167
|
+
])], d = `${this.transformCSS(e, `${se}${le}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${F}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
5168
|
+
...ce,
|
|
5169
|
+
...ue,
|
|
5170
|
+
...de
|
|
5159
5171
|
])], p = gi(a.css, { dt: ta });
|
|
5160
5172
|
}
|
|
5161
5173
|
return {
|