@turquoisehealth/pit-viper 2.252.0 → 2.253.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y.css +27 -7
- package/_site/assets/css/pit-viper-consumer.css +27 -7
- package/_site/assets/css/pit-viper-v2-scoped.css +25 -7
- package/_site/assets/css/pit-viper-v2.css +27 -7
- package/_site/assets/css/pit-viper.css +27 -7
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-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-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-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-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/ai/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
- package/pv-components/dist/vue/ai/components/base/PvTabs/types.d.ts +4 -0
- package/pv-components/dist/vue/base/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/base/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
- package/pv-components/dist/vue/base/components/base/PvTabs/types.d.ts +4 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +1023 -929
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvDrawer/PvDrawer.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/useHoverPopoverGroup.d.ts +4 -1
- package/pv-components/dist/vue/visualizations/components/base/PvTabs/PvTabs.vue.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/base/PvTabs/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterPanel.vue.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/horizontalFilterFit.d.ts +17 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +9 -2
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2398 -2357
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +226 -223
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +5 -3
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +1735 -1732
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +356 -353
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +650 -647
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +1241 -1238
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +421 -418
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +108 -106
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +70 -67
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +343 -340
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +146 -143
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +805 -802
- package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +362 -359
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +694 -692
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +1312 -1185
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +177 -174
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +227 -224
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as e from "vue";
|
|
2
|
-
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, defineCustomElement as f, getCurrentInstance as p, getCurrentScope as m, guardReactiveProps as h, mergeModels as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onBeforeUpdate as S, onMounted as C, onScopeDispose as w, onUnmounted as T, openBlock as E, reactive as ee, readonly as
|
|
2
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, defineCustomElement as f, getCurrentInstance as p, getCurrentScope as m, guardReactiveProps as h, mergeModels as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onBeforeUpdate as S, onMounted as C, onScopeDispose as w, onUnmounted as T, openBlock as E, reactive as ee, readonly as te, ref as D, renderList as O, renderSlot as k, shallowRef as A, toDisplayString as j, toValue as M, unref as ne, useModel as re, useSlots as ie, useTemplateRef as ae, vShow as oe, watch as N, watchEffect as se, withCtx as ce, withDirectives as le } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, fe = Object.getOwnPropertyNames, pe = Object.prototype.hasOwnProperty, me = (e, t) => {
|
|
5
5
|
let n = {};
|
|
@@ -18,23 +18,23 @@ var ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, fe = Objec
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js
|
|
20
20
|
function _e(e, t, n) {
|
|
21
|
-
return (t =
|
|
21
|
+
return (t = we(t)) in e ? Object.defineProperty(e, t, {
|
|
22
22
|
value: n,
|
|
23
23
|
enumerable: !0,
|
|
24
24
|
configurable: !0,
|
|
25
25
|
writable: !0
|
|
26
26
|
}) : e[t] = n, e;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return
|
|
28
|
+
function ve() {
|
|
29
|
+
return ve = Object.assign ? Object.assign.bind() : function(e) {
|
|
30
30
|
for (var t = 1; t < arguments.length; t++) {
|
|
31
31
|
var n = arguments[t];
|
|
32
32
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
33
33
|
}
|
|
34
34
|
return e;
|
|
35
|
-
},
|
|
35
|
+
}, ve.apply(null, arguments);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function ye(e, t) {
|
|
38
38
|
var n = Object.keys(e);
|
|
39
39
|
if (Object.getOwnPropertySymbols) {
|
|
40
40
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -44,27 +44,27 @@ function ve(e, t) {
|
|
|
44
44
|
}
|
|
45
45
|
return n;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function be(e) {
|
|
48
48
|
for (var t = 1; t < arguments.length; t++) {
|
|
49
49
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
50
|
-
t % 2 ?
|
|
50
|
+
t % 2 ? ye(Object(n), !0).forEach(function(t) {
|
|
51
51
|
_e(e, t, n[t]);
|
|
52
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
52
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ye(Object(n)).forEach(function(t) {
|
|
53
53
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
return e;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function xe(e, t) {
|
|
59
59
|
if (e == null) return {};
|
|
60
|
-
var n, r, i =
|
|
60
|
+
var n, r, i = Se(e, t);
|
|
61
61
|
if (Object.getOwnPropertySymbols) {
|
|
62
62
|
var a = Object.getOwnPropertySymbols(e);
|
|
63
63
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
64
64
|
}
|
|
65
65
|
return i;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Se(e, t) {
|
|
68
68
|
if (e == null) return {};
|
|
69
69
|
var n = {};
|
|
70
70
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -73,7 +73,7 @@ function xe(e, t) {
|
|
|
73
73
|
}
|
|
74
74
|
return n;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Ce(e, t) {
|
|
77
77
|
if (typeof e != "object" || !e) return e;
|
|
78
78
|
var n = e[Symbol.toPrimitive];
|
|
79
79
|
if (n !== void 0) {
|
|
@@ -83,33 +83,33 @@ function Se(e, t) {
|
|
|
83
83
|
}
|
|
84
84
|
return (t === "string" ? String : Number)(e);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
var t =
|
|
86
|
+
function we(e) {
|
|
87
|
+
var t = Ce(e, "string");
|
|
88
88
|
return typeof t == "symbol" ? t : t + "";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Te(e) {
|
|
91
91
|
"@babel/helpers - typeof";
|
|
92
|
-
return
|
|
92
|
+
return Te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
93
93
|
return typeof e;
|
|
94
94
|
} : function(e) {
|
|
95
95
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
96
|
-
},
|
|
96
|
+
}, Te(e);
|
|
97
97
|
}
|
|
98
|
-
var
|
|
99
|
-
function
|
|
98
|
+
var Ee = "1.15.7";
|
|
99
|
+
function De(e) {
|
|
100
100
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
101
101
|
}
|
|
102
|
-
var
|
|
102
|
+
var Oe = De(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ke = De(/Edge/i), Ae = De(/firefox/i), je = De(/safari/i) && !De(/chrome/i) && !De(/android/i), Me = De(/iP(ad|od|hone)/i), Ne = De(/chrome/i) && De(/android/i), Pe = {
|
|
103
103
|
capture: !1,
|
|
104
104
|
passive: !1
|
|
105
105
|
};
|
|
106
|
-
function
|
|
107
|
-
e.addEventListener(t, n, !
|
|
106
|
+
function P(e, t, n) {
|
|
107
|
+
e.addEventListener(t, n, !Oe && Pe);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
e.removeEventListener(t, n, !
|
|
109
|
+
function F(e, t, n) {
|
|
110
|
+
e.removeEventListener(t, n, !Oe && Pe);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Fe(e, t) {
|
|
113
113
|
if (t) {
|
|
114
114
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
115
115
|
if (e.matches) return e.matches(t);
|
|
@@ -121,41 +121,41 @@ function Pe(e, t) {
|
|
|
121
121
|
return !1;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Ie(e) {
|
|
125
125
|
return e.host && e !== document && e.host.nodeType && e.host !== e ? e.host : e.parentNode;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Le(e, t, n, r) {
|
|
128
128
|
if (e) {
|
|
129
129
|
n ||= document;
|
|
130
130
|
do {
|
|
131
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
131
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Fe(e, t) : Fe(e, t)) || r && e === n) return e;
|
|
132
132
|
if (e === n) break;
|
|
133
|
-
} while (e =
|
|
133
|
+
} while (e = Ie(e));
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var
|
|
138
|
-
function
|
|
139
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
137
|
+
var Re = /\s+/g;
|
|
138
|
+
function ze(e, t, n) {
|
|
139
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Re, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Re, " "));
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function I(e, t, n) {
|
|
142
142
|
var r = e && e.style;
|
|
143
143
|
if (r) {
|
|
144
144
|
if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
|
|
145
145
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Be(e, t) {
|
|
149
149
|
var n = "";
|
|
150
150
|
if (typeof e == "string") n = e;
|
|
151
151
|
else do {
|
|
152
|
-
var r =
|
|
152
|
+
var r = I(e, "transform");
|
|
153
153
|
r && r !== "none" && (n = r + " " + n);
|
|
154
154
|
} while (!t && (e = e.parentNode));
|
|
155
155
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
156
156
|
return i && new i(n);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Ve(e, t, n) {
|
|
159
159
|
if (e) {
|
|
160
160
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
161
161
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -163,21 +163,21 @@ function Be(e, t, n) {
|
|
|
163
163
|
}
|
|
164
164
|
return [];
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function He() {
|
|
167
167
|
return document.scrollingElement || document.documentElement;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function L(e, t, n, r, i) {
|
|
170
170
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
171
171
|
var a, o, s, c, l, u, d;
|
|
172
|
-
if (e !== window && e.parentNode && e !==
|
|
173
|
-
if (i && i.getBoundingClientRect && (
|
|
172
|
+
if (e !== window && e.parentNode && e !== He() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !Oe)) do
|
|
173
|
+
if (i && i.getBoundingClientRect && (I(i, "transform") !== "none" || n && I(i, "position") !== "static")) {
|
|
174
174
|
var f = i.getBoundingClientRect();
|
|
175
|
-
o -= f.top + parseInt(
|
|
175
|
+
o -= f.top + parseInt(I(i, "border-top-width")), s -= f.left + parseInt(I(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
176
176
|
break;
|
|
177
177
|
}
|
|
178
178
|
while (i = i.parentNode);
|
|
179
179
|
if (r && e !== window) {
|
|
180
|
-
var p =
|
|
180
|
+
var p = Be(i || e), m = p && p.a, h = p && p.d;
|
|
181
181
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
182
182
|
}
|
|
183
183
|
return {
|
|
@@ -190,18 +190,18 @@ function R(e, t, n, r, i) {
|
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
for (var r =
|
|
195
|
-
var a =
|
|
193
|
+
function Ue(e, t, n) {
|
|
194
|
+
for (var r = Ye(e, !0), i = L(e)[t]; r;) {
|
|
195
|
+
var a = L(r)[n], o = void 0;
|
|
196
196
|
if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
|
|
197
|
-
if (r ===
|
|
198
|
-
r =
|
|
197
|
+
if (r === He()) break;
|
|
198
|
+
r = Ye(r, !1);
|
|
199
199
|
}
|
|
200
200
|
return !1;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function We(e, t, n, r) {
|
|
203
203
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
204
|
-
if (o[a].style.display !== "none" && o[a] !== J.ghost && (r || o[a] !== J.dragged) &&
|
|
204
|
+
if (o[a].style.display !== "none" && o[a] !== J.ghost && (r || o[a] !== J.dragged) && Le(o[a], n.draggable, e, !1)) {
|
|
205
205
|
if (i === t) return o[a];
|
|
206
206
|
i++;
|
|
207
207
|
}
|
|
@@ -209,96 +209,96 @@ function Ue(e, t, n, r) {
|
|
|
209
209
|
}
|
|
210
210
|
return null;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
for (var n = e.lastElementChild; n && (n === J.ghost ||
|
|
212
|
+
function Ge(e, t) {
|
|
213
|
+
for (var n = e.lastElementChild; n && (n === J.ghost || I(n, "display") === "none" || t && !Fe(n, t));) n = n.previousElementSibling;
|
|
214
214
|
return n || null;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Ke(e, t) {
|
|
217
217
|
var n = 0;
|
|
218
218
|
if (!e || !e.parentNode) return -1;
|
|
219
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== J.clone && (!t ||
|
|
219
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== J.clone && (!t || Fe(e, t)) && n++;
|
|
220
220
|
return n;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
var t = 0, n = 0, r =
|
|
222
|
+
function qe(e) {
|
|
223
|
+
var t = 0, n = 0, r = He();
|
|
224
224
|
if (e) do {
|
|
225
|
-
var i =
|
|
225
|
+
var i = Be(e), a = i.a, o = i.d;
|
|
226
226
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
227
227
|
} while (e !== r && (e = e.parentNode));
|
|
228
228
|
return [t, n];
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Je(e, t) {
|
|
231
231
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
232
232
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
233
233
|
}
|
|
234
234
|
return -1;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
if (!e || !e.getBoundingClientRect) return
|
|
236
|
+
function Ye(e, t) {
|
|
237
|
+
if (!e || !e.getBoundingClientRect) return He();
|
|
238
238
|
var n = e, r = !1;
|
|
239
239
|
do
|
|
240
240
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
241
|
-
var i =
|
|
241
|
+
var i = I(n);
|
|
242
242
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
243
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
243
|
+
if (!n.getBoundingClientRect || n === document.body) return He();
|
|
244
244
|
if (r || t) return n;
|
|
245
245
|
r = !0;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
while (n = n.parentNode);
|
|
249
|
-
return
|
|
249
|
+
return He();
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Xe(e, t) {
|
|
252
252
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
253
253
|
return e;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Ze(e, t) {
|
|
256
256
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
257
257
|
}
|
|
258
|
-
var
|
|
259
|
-
function
|
|
258
|
+
var Qe;
|
|
259
|
+
function $e(e, t) {
|
|
260
260
|
return function() {
|
|
261
|
-
if (!
|
|
261
|
+
if (!Qe) {
|
|
262
262
|
var n = arguments, r = this;
|
|
263
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
264
|
-
|
|
263
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Qe = setTimeout(function() {
|
|
264
|
+
Qe = void 0;
|
|
265
265
|
}, t);
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
clearTimeout(
|
|
269
|
+
function et() {
|
|
270
|
+
clearTimeout(Qe), Qe = void 0;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function tt(e, t, n) {
|
|
273
273
|
e.scrollLeft += t, e.scrollTop += n;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function nt(e) {
|
|
276
276
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
277
277
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function rt(e, t, n) {
|
|
280
280
|
var r = {};
|
|
281
281
|
return Array.from(e.children).forEach(function(i) {
|
|
282
|
-
if (!(!
|
|
283
|
-
var a =
|
|
282
|
+
if (!(!Le(i, t.draggable, e, !1) || i.animated || i === n)) {
|
|
283
|
+
var a = L(i);
|
|
284
284
|
r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
|
|
285
285
|
}
|
|
286
286
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
287
287
|
}
|
|
288
|
-
var
|
|
289
|
-
function
|
|
288
|
+
var R = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
289
|
+
function it() {
|
|
290
290
|
var e = [], t;
|
|
291
291
|
return {
|
|
292
292
|
captureAnimationState: function() {
|
|
293
293
|
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
294
|
-
if (!(
|
|
294
|
+
if (!(I(t, "display") === "none" || t === J.ghost)) {
|
|
295
295
|
e.push({
|
|
296
296
|
target: t,
|
|
297
|
-
rect:
|
|
297
|
+
rect: L(t)
|
|
298
298
|
});
|
|
299
|
-
var n =
|
|
299
|
+
var n = be({}, e[e.length - 1].rect);
|
|
300
300
|
if (t.thisAnimationDuration) {
|
|
301
|
-
var r =
|
|
301
|
+
var r = Be(t, !0);
|
|
302
302
|
r && (n.top -= r.f, n.left -= r.e);
|
|
303
303
|
}
|
|
304
304
|
t.fromRect = n;
|
|
@@ -309,7 +309,7 @@ function rt() {
|
|
|
309
309
|
e.push(t);
|
|
310
310
|
},
|
|
311
311
|
removeAnimationState: function(t) {
|
|
312
|
-
e.splice(
|
|
312
|
+
e.splice(Je(e, { target: t }), 1);
|
|
313
313
|
},
|
|
314
314
|
animateAll: function(n) {
|
|
315
315
|
var r = this;
|
|
@@ -319,8 +319,8 @@ function rt() {
|
|
|
319
319
|
}
|
|
320
320
|
var i = !1, a = 0;
|
|
321
321
|
e.forEach(function(e) {
|
|
322
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
323
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
322
|
+
var t = 0, n = e.target, o = n.fromRect, s = L(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Be(n, !0);
|
|
323
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ze(c, s) && !Ze(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = ot(u, c, l, r.options)), Ze(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
|
|
324
324
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
325
325
|
}, t), n.thisAnimationDuration = t);
|
|
326
326
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -329,27 +329,27 @@ function rt() {
|
|
|
329
329
|
},
|
|
330
330
|
animate: function(e, t, n, r) {
|
|
331
331
|
if (r) {
|
|
332
|
-
|
|
333
|
-
var i =
|
|
334
|
-
e.animatingX = !!s, e.animatingY = !!c,
|
|
335
|
-
|
|
332
|
+
I(e, "transition", ""), I(e, "transform", "");
|
|
333
|
+
var i = Be(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
334
|
+
e.animatingX = !!s, e.animatingY = !!c, I(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = at(e), I(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), I(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
335
|
+
I(e, "transition", ""), I(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
336
336
|
}, r);
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function at(e) {
|
|
342
342
|
return e.offsetWidth;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function ot(e, t, n, r) {
|
|
345
345
|
return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
|
|
346
346
|
}
|
|
347
|
-
var
|
|
347
|
+
var st = [], ct = { initializeByDefault: !0 }, lt = {
|
|
348
348
|
mount: function(e) {
|
|
349
|
-
for (var t in
|
|
350
|
-
|
|
349
|
+
for (var t in ct) ct.hasOwnProperty(t) && !(t in e) && (e[t] = ct[t]);
|
|
350
|
+
st.forEach(function(t) {
|
|
351
351
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
352
|
-
}),
|
|
352
|
+
}), st.push(e);
|
|
353
353
|
},
|
|
354
354
|
pluginEvent: function(e, t, n) {
|
|
355
355
|
var r = this;
|
|
@@ -357,16 +357,16 @@ var ot = [], st = { initializeByDefault: !0 }, ct = {
|
|
|
357
357
|
r.eventCanceled = !0;
|
|
358
358
|
};
|
|
359
359
|
var i = e + "Global";
|
|
360
|
-
|
|
361
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
360
|
+
st.forEach(function(r) {
|
|
361
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](be({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](be({ sortable: t }, n)));
|
|
362
362
|
});
|
|
363
363
|
},
|
|
364
364
|
initializePlugins: function(e, t, n, r) {
|
|
365
|
-
for (var i in
|
|
365
|
+
for (var i in st.forEach(function(r) {
|
|
366
366
|
var i = r.pluginName;
|
|
367
367
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
368
368
|
var a = new r(e, t, e.options);
|
|
369
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
369
|
+
a.sortable = e, a.options = e.options, e[i] = a, ve(n, a.defaults);
|
|
370
370
|
}
|
|
371
371
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
372
372
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -375,33 +375,33 @@ var ot = [], st = { initializeByDefault: !0 }, ct = {
|
|
|
375
375
|
},
|
|
376
376
|
getEventProperties: function(e, t) {
|
|
377
377
|
var n = {};
|
|
378
|
-
return
|
|
379
|
-
typeof r.eventProperties == "function" &&
|
|
378
|
+
return st.forEach(function(r) {
|
|
379
|
+
typeof r.eventProperties == "function" && ve(n, r.eventProperties.call(t[r.pluginName], e));
|
|
380
380
|
}), n;
|
|
381
381
|
},
|
|
382
382
|
modifyOption: function(e, t, n) {
|
|
383
383
|
var r;
|
|
384
|
-
return
|
|
384
|
+
return st.forEach(function(i) {
|
|
385
385
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
386
386
|
}), r;
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
|
-
function
|
|
389
|
+
function ut(e) {
|
|
390
390
|
var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
|
|
391
|
-
if (t ||= n && n[
|
|
391
|
+
if (t ||= n && n[R], t) {
|
|
392
392
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
393
|
-
window.CustomEvent && !
|
|
393
|
+
window.CustomEvent && !Oe && !ke ? h = new CustomEvent(r, {
|
|
394
394
|
bubbles: !0,
|
|
395
395
|
cancelable: !0
|
|
396
396
|
}) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
|
|
397
|
-
var v =
|
|
397
|
+
var v = be(be({}, m), lt.getEventProperties(r, t));
|
|
398
398
|
for (var y in v) h[y] = v[y];
|
|
399
399
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
var
|
|
403
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
404
|
-
|
|
402
|
+
var dt = ["evt"], z = function(e, t) {
|
|
403
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = xe(n, dt);
|
|
404
|
+
lt.pluginEvent.bind(J)(e, t, be({
|
|
405
405
|
dragEl: V,
|
|
406
406
|
parentEl: H,
|
|
407
407
|
ghostEl: U,
|
|
@@ -436,7 +436,7 @@ var ut = ["evt"], dt = function(e, t) {
|
|
|
436
436
|
}, i));
|
|
437
437
|
};
|
|
438
438
|
function B(e) {
|
|
439
|
-
|
|
439
|
+
ut(be({
|
|
440
440
|
putSortable: K,
|
|
441
441
|
cloneEl: G,
|
|
442
442
|
targetEl: V,
|
|
@@ -447,14 +447,14 @@ function B(e) {
|
|
|
447
447
|
newDraggableIndex: vt
|
|
448
448
|
}, e));
|
|
449
449
|
}
|
|
450
|
-
var V, H, U, W, ft, pt, G, mt, ht, gt, _t, vt, yt, K, bt = !1, xt = !1, St = [], Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt = !1, Nt = !1, Pt, q, Ft = [], It = !1, Lt = [], Rt = typeof document < "u", zt =
|
|
450
|
+
var V, H, U, W, ft, pt, G, mt, ht, gt, _t, vt, yt, K, bt = !1, xt = !1, St = [], Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt = !1, Nt = !1, Pt, q, Ft = [], It = !1, Lt = [], Rt = typeof document < "u", zt = Me, Bt = ke || Oe ? "cssFloat" : "float", Vt = Rt && !Ne && !Me && "draggable" in document.createElement("div"), Ht = function() {
|
|
451
451
|
if (Rt) {
|
|
452
|
-
if (
|
|
452
|
+
if (Oe) return !1;
|
|
453
453
|
var e = document.createElement("x");
|
|
454
454
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
455
455
|
}
|
|
456
456
|
}(), Ut = function(e, t) {
|
|
457
|
-
var n =
|
|
457
|
+
var n = I(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = We(e, 0, t), a = We(e, 1, t), o = i && I(i), s = a && I(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + L(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + L(a).width;
|
|
458
458
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
459
459
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
460
460
|
if (i && o.float && o.float !== "none") {
|
|
@@ -468,9 +468,9 @@ var V, H, U, W, ft, pt, G, mt, ht, gt, _t, vt, yt, K, bt = !1, xt = !1, St = [],
|
|
|
468
468
|
}, Gt = function(e, t) {
|
|
469
469
|
var n;
|
|
470
470
|
return St.some(function(r) {
|
|
471
|
-
var i = r[
|
|
472
|
-
if (!(!i ||
|
|
473
|
-
var a =
|
|
471
|
+
var i = r[R].options.emptyInsertThreshold;
|
|
472
|
+
if (!(!i || Ge(r))) {
|
|
473
|
+
var a = L(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
474
474
|
if (o && s) return n = r;
|
|
475
475
|
}
|
|
476
476
|
}), n;
|
|
@@ -487,13 +487,13 @@ var V, H, U, W, ft, pt, G, mt, ht, gt, _t, vt, yt, K, bt = !1, xt = !1, St = [],
|
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
489
|
var n = {}, r = e.group;
|
|
490
|
-
(!r ||
|
|
490
|
+
(!r || Te(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
491
491
|
}, qt = function() {
|
|
492
|
-
!Ht && U &&
|
|
492
|
+
!Ht && U && I(U, "display", "none");
|
|
493
493
|
}, Jt = function() {
|
|
494
|
-
!Ht && U &&
|
|
494
|
+
!Ht && U && I(U, "display", "");
|
|
495
495
|
};
|
|
496
|
-
Rt && !
|
|
496
|
+
Rt && !Ne && document.addEventListener("click", function(e) {
|
|
497
497
|
if (xt) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), xt = !1, !1;
|
|
498
498
|
}, !0);
|
|
499
499
|
var Yt = function(e) {
|
|
@@ -503,15 +503,15 @@ var Yt = function(e) {
|
|
|
503
503
|
if (t) {
|
|
504
504
|
var n = {};
|
|
505
505
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
506
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
506
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[R]._onDragOver(n);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
}, Xt = function(e) {
|
|
510
|
-
V && V.parentNode[
|
|
510
|
+
V && V.parentNode[R]._isOutsideThisEl(e.target);
|
|
511
511
|
};
|
|
512
512
|
function J(e, t) {
|
|
513
513
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
514
|
-
this.el = e, this.options = t =
|
|
514
|
+
this.el = e, this.options = t = ve({}, t), e[R] = this;
|
|
515
515
|
var n = {
|
|
516
516
|
group: null,
|
|
517
517
|
sort: !0,
|
|
@@ -551,12 +551,12 @@ function J(e, t) {
|
|
|
551
551
|
x: 0,
|
|
552
552
|
y: 0
|
|
553
553
|
},
|
|
554
|
-
supportPointer: J.supportPointer !== !1 && "PointerEvent" in window && (!
|
|
554
|
+
supportPointer: J.supportPointer !== !1 && "PointerEvent" in window && (!je || Me),
|
|
555
555
|
emptyInsertThreshold: 5
|
|
556
556
|
};
|
|
557
|
-
for (var r in
|
|
557
|
+
for (var r in lt.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
558
558
|
for (var i in Kt(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
559
|
-
this.nativeDraggable = t.forceFallback ? !1 : Vt, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ?
|
|
559
|
+
this.nativeDraggable = t.forceFallback ? !1 : Vt, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? P(e, "pointerdown", this._onTapStart) : (P(e, "mousedown", this._onTapStart), P(e, "touchstart", this._onTapStart)), this.nativeDraggable && (P(e, "dragover", this), P(e, "dragenter", this)), St.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ve(this, it());
|
|
560
560
|
}
|
|
561
561
|
J.prototype = {
|
|
562
562
|
constructor: J,
|
|
@@ -569,8 +569,8 @@ J.prototype = {
|
|
|
569
569
|
_onTapStart: function(e) {
|
|
570
570
|
if (e.cancelable) {
|
|
571
571
|
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
|
|
572
|
-
if (sn(n), !V && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable &&
|
|
573
|
-
if (ht =
|
|
572
|
+
if (sn(n), !V && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && je && s && s.tagName.toUpperCase() === "SELECT") && (s = Le(s, r.draggable, n, !1), !(s && s.animated) && pt !== s)) {
|
|
573
|
+
if (ht = Ke(s), _t = Ke(s, r.draggable), typeof l == "function") {
|
|
574
574
|
if (l.call(this, e, s, this)) {
|
|
575
575
|
B({
|
|
576
576
|
sortable: t,
|
|
@@ -579,52 +579,52 @@ J.prototype = {
|
|
|
579
579
|
targetEl: s,
|
|
580
580
|
toEl: n,
|
|
581
581
|
fromEl: n
|
|
582
|
-
}),
|
|
582
|
+
}), z("filter", t, { evt: e }), i && e.preventDefault();
|
|
583
583
|
return;
|
|
584
584
|
}
|
|
585
585
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
586
|
-
if (r =
|
|
586
|
+
if (r = Le(c, r.trim(), n, !1), r) return B({
|
|
587
587
|
sortable: t,
|
|
588
588
|
rootEl: r,
|
|
589
589
|
name: "filter",
|
|
590
590
|
targetEl: s,
|
|
591
591
|
fromEl: n,
|
|
592
592
|
toEl: n
|
|
593
|
-
}),
|
|
593
|
+
}), z("filter", t, { evt: e }), !0;
|
|
594
594
|
}), l)) {
|
|
595
595
|
i && e.preventDefault();
|
|
596
596
|
return;
|
|
597
597
|
}
|
|
598
|
-
r.handle && !
|
|
598
|
+
r.handle && !Le(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
},
|
|
602
602
|
_prepareDragStart: function(e, t, n) {
|
|
603
603
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
604
604
|
if (n && !V && n.parentNode === i) {
|
|
605
|
-
var c =
|
|
605
|
+
var c = L(n);
|
|
606
606
|
if (W = i, V = n, H = V.parentNode, ft = V.nextSibling, pt = n, yt = a.group, J.dragged = V, Ct = {
|
|
607
607
|
target: V,
|
|
608
608
|
clientX: (t || e).clientX,
|
|
609
609
|
clientY: (t || e).clientY
|
|
610
610
|
}, Dt = Ct.clientX - c.left, Ot = Ct.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, V.style["will-change"] = "all", s = function() {
|
|
611
|
-
if (
|
|
611
|
+
if (z("delayEnded", r, { evt: e }), J.eventCanceled) {
|
|
612
612
|
r._onDrop();
|
|
613
613
|
return;
|
|
614
614
|
}
|
|
615
|
-
r._disableDelayedDragEvents(), !
|
|
615
|
+
r._disableDelayedDragEvents(), !Ae && r.nativeDraggable && (V.draggable = !0), r._triggerDragStart(e, t), B({
|
|
616
616
|
sortable: r,
|
|
617
617
|
name: "choose",
|
|
618
618
|
originalEvent: e
|
|
619
|
-
}),
|
|
619
|
+
}), ze(V, a.chosenClass, !0);
|
|
620
620
|
}, a.ignore.split(",").forEach(function(e) {
|
|
621
|
-
|
|
622
|
-
}),
|
|
621
|
+
Ve(V, e.trim(), $t);
|
|
622
|
+
}), P(o, "dragover", Yt), P(o, "mousemove", Yt), P(o, "touchmove", Yt), a.supportPointer ? (P(o, "pointerup", r._onDrop), !this.nativeDraggable && P(o, "pointercancel", r._onDrop)) : (P(o, "mouseup", r._onDrop), P(o, "touchend", r._onDrop), P(o, "touchcancel", r._onDrop)), Ae && this.nativeDraggable && (this.options.touchStartThreshold = 4, V.draggable = !0), z("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(ke || Oe))) {
|
|
623
623
|
if (J.eventCanceled) {
|
|
624
624
|
this._onDrop();
|
|
625
625
|
return;
|
|
626
626
|
}
|
|
627
|
-
a.supportPointer ? (
|
|
627
|
+
a.supportPointer ? (P(o, "pointerup", r._disableDelayedDrag), P(o, "pointercancel", r._disableDelayedDrag)) : (P(o, "mouseup", r._disableDelayedDrag), P(o, "touchend", r._disableDelayedDrag), P(o, "touchcancel", r._disableDelayedDrag)), P(o, "mousemove", r._delayedDragTouchMoveHandler), P(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && P(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
628
628
|
} else s();
|
|
629
629
|
}
|
|
630
630
|
},
|
|
@@ -637,10 +637,10 @@ J.prototype = {
|
|
|
637
637
|
},
|
|
638
638
|
_disableDelayedDragEvents: function() {
|
|
639
639
|
var e = this.el.ownerDocument;
|
|
640
|
-
|
|
640
|
+
F(e, "mouseup", this._disableDelayedDrag), F(e, "touchend", this._disableDelayedDrag), F(e, "touchcancel", this._disableDelayedDrag), F(e, "pointerup", this._disableDelayedDrag), F(e, "pointercancel", this._disableDelayedDrag), F(e, "mousemove", this._delayedDragTouchMoveHandler), F(e, "touchmove", this._delayedDragTouchMoveHandler), F(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
641
641
|
},
|
|
642
642
|
_triggerDragStart: function(e, t) {
|
|
643
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ?
|
|
643
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? P(document, "pointermove", this._onTouchMove) : t ? P(document, "touchmove", this._onTouchMove) : P(document, "mousemove", this._onTouchMove) : (P(V, "dragend", this), P(W, "dragstart", this._onDragStart));
|
|
644
644
|
try {
|
|
645
645
|
document.selection ? cn(function() {
|
|
646
646
|
document.selection.empty();
|
|
@@ -649,9 +649,9 @@ J.prototype = {
|
|
|
649
649
|
},
|
|
650
650
|
_dragStarted: function(e, t) {
|
|
651
651
|
if (bt = !1, W && V) {
|
|
652
|
-
|
|
652
|
+
z("dragStarted", this, { evt: t }), this.nativeDraggable && P(document, "dragover", Xt);
|
|
653
653
|
var n = this.options;
|
|
654
|
-
!e &&
|
|
654
|
+
!e && ze(V, n.dragClass, !1), ze(V, n.ghostClass, !0), J.active = this, e && this._appendGhost(), B({
|
|
655
655
|
sortable: this,
|
|
656
656
|
name: "start",
|
|
657
657
|
originalEvent: t
|
|
@@ -662,10 +662,10 @@ J.prototype = {
|
|
|
662
662
|
if (wt) {
|
|
663
663
|
this._lastX = wt.clientX, this._lastY = wt.clientY, qt();
|
|
664
664
|
for (var e = document.elementFromPoint(wt.clientX, wt.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(wt.clientX, wt.clientY), e !== t);) t = e;
|
|
665
|
-
if (V.parentNode[
|
|
666
|
-
if (t[
|
|
665
|
+
if (V.parentNode[R]._isOutsideThisEl(e), t) do {
|
|
666
|
+
if (t[R]) {
|
|
667
667
|
var n = void 0;
|
|
668
|
-
if (n = t[
|
|
668
|
+
if (n = t[R]._onDragOver({
|
|
669
669
|
clientX: wt.clientX,
|
|
670
670
|
clientY: wt.clientY,
|
|
671
671
|
target: e,
|
|
@@ -673,13 +673,13 @@ J.prototype = {
|
|
|
673
673
|
}), n && !this.options.dragoverBubble) break;
|
|
674
674
|
}
|
|
675
675
|
e = t;
|
|
676
|
-
} while (t =
|
|
676
|
+
} while (t = Ie(t));
|
|
677
677
|
Jt();
|
|
678
678
|
}
|
|
679
679
|
},
|
|
680
680
|
_onTouchMove: function(e) {
|
|
681
681
|
if (Ct) {
|
|
682
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = U &&
|
|
682
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = U && Be(U, !0), o = U && a && a.a, s = U && a && a.d, c = zt && q && qe(q), l = (i.clientX - Ct.clientX + r.x) / (o || 1) + (c ? c[0] - Ft[0] : 0) / (o || 1), u = (i.clientY - Ct.clientY + r.y) / (s || 1) + (c ? c[1] - Ft[1] : 0) / (s || 1);
|
|
683
683
|
if (!J.active && !bt) {
|
|
684
684
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
685
685
|
this._onDragStart(e, !0);
|
|
@@ -694,39 +694,39 @@ J.prototype = {
|
|
|
694
694
|
f: u
|
|
695
695
|
};
|
|
696
696
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
697
|
-
|
|
697
|
+
I(U, "webkitTransform", d), I(U, "mozTransform", d), I(U, "msTransform", d), I(U, "transform", d), Tt = l, Et = u, wt = i;
|
|
698
698
|
}
|
|
699
699
|
e.cancelable && e.preventDefault();
|
|
700
700
|
}
|
|
701
701
|
},
|
|
702
702
|
_appendGhost: function() {
|
|
703
703
|
if (!U) {
|
|
704
|
-
var e = this.options.fallbackOnBody ? document.body : W, t =
|
|
704
|
+
var e = this.options.fallbackOnBody ? document.body : W, t = L(V, !0, zt, !0, e), n = this.options;
|
|
705
705
|
if (zt) {
|
|
706
|
-
for (q = e;
|
|
707
|
-
q !== document.body && q !== document.documentElement ? (q === document && (q =
|
|
706
|
+
for (q = e; I(q, "position") === "static" && I(q, "transform") === "none" && q !== document;) q = q.parentNode;
|
|
707
|
+
q !== document.body && q !== document.documentElement ? (q === document && (q = He()), t.top += q.scrollTop, t.left += q.scrollLeft) : q = He(), Ft = qe(q);
|
|
708
708
|
}
|
|
709
|
-
U = V.cloneNode(!0),
|
|
709
|
+
U = V.cloneNode(!0), ze(U, n.ghostClass, !1), ze(U, n.fallbackClass, !0), ze(U, n.dragClass, !0), I(U, "transition", ""), I(U, "transform", ""), I(U, "box-sizing", "border-box"), I(U, "margin", 0), I(U, "top", t.top), I(U, "left", t.left), I(U, "width", t.width), I(U, "height", t.height), I(U, "opacity", "0.8"), I(U, "position", zt ? "absolute" : "fixed"), I(U, "zIndex", "100000"), I(U, "pointerEvents", "none"), J.ghost = U, e.appendChild(U), I(U, "transform-origin", Dt / parseInt(U.style.width) * 100 + "% " + Ot / parseInt(U.style.height) * 100 + "%");
|
|
710
710
|
}
|
|
711
711
|
},
|
|
712
712
|
_onDragStart: function(e, t) {
|
|
713
713
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
714
|
-
if (
|
|
714
|
+
if (z("dragStart", this, { evt: e }), J.eventCanceled) {
|
|
715
715
|
this._onDrop();
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
|
|
719
|
-
|
|
718
|
+
z("setupClone", this), J.eventCanceled || (G = nt(V), G.removeAttribute("id"), G.draggable = !1, G.style["will-change"] = "", this._hideClone(), ze(G, this.options.chosenClass, !1), J.clone = G), n.cloneId = cn(function() {
|
|
719
|
+
z("clone", n), !J.eventCanceled && (n.options.removeCloneOnHide || W.insertBefore(G, V), n._hideClone(), B({
|
|
720
720
|
sortable: n,
|
|
721
721
|
name: "clone"
|
|
722
722
|
}));
|
|
723
|
-
}), !t &&
|
|
723
|
+
}), !t && ze(V, i.dragClass, !0), t ? (xt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (F(document, "mouseup", n._onDrop), F(document, "touchend", n._onDrop), F(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, V)), P(document, "drop", n), I(V, "transform", "translateZ(0)")), bt = !0, n._dragStartId = cn(n._dragStarted.bind(n, t, e)), P(document, "selectstart", n), kt = !0, window.getSelection().removeAllRanges(), je && I(document.body, "user-select", "none");
|
|
724
724
|
},
|
|
725
725
|
_onDragOver: function(e) {
|
|
726
726
|
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = J.active, l = yt === s, u = o.sort, d = K || c, f, p = this, m = !1;
|
|
727
727
|
if (It) return;
|
|
728
728
|
function h(o, s) {
|
|
729
|
-
|
|
729
|
+
z(o, p, be({
|
|
730
730
|
evt: e,
|
|
731
731
|
isOwner: l,
|
|
732
732
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -738,7 +738,7 @@ J.prototype = {
|
|
|
738
738
|
target: n,
|
|
739
739
|
completed: _,
|
|
740
740
|
onMove: function(n, i) {
|
|
741
|
-
return Qt(W, t, V, r, n,
|
|
741
|
+
return Qt(W, t, V, r, n, L(n), e, i);
|
|
742
742
|
},
|
|
743
743
|
changed: v
|
|
744
744
|
}, s));
|
|
@@ -747,12 +747,12 @@ J.prototype = {
|
|
|
747
747
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
748
748
|
}
|
|
749
749
|
function _(r) {
|
|
750
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
750
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (ze(V, K ? K.options.ghostClass : c.options.ghostClass, !1), ze(V, o.ghostClass, !0)), K !== p && p !== J.active ? K = p : p === J.active && K && (K = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
751
751
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
752
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === V && !V.animated || n === t && !n.animated) && (At = null), !o.dragoverBubble && !e.rootEl && n !== document && (V.parentNode[
|
|
752
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === V && !V.animated || n === t && !n.animated) && (At = null), !o.dragoverBubble && !e.rootEl && n !== document && (V.parentNode[R]._isOutsideThisEl(e.target), !r && Yt(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
753
753
|
}
|
|
754
754
|
function v() {
|
|
755
|
-
gt =
|
|
755
|
+
gt = Ke(V), vt = Ke(V, o.draggable), B({
|
|
756
756
|
sortable: p,
|
|
757
757
|
name: "change",
|
|
758
758
|
toEl: t,
|
|
@@ -761,36 +761,36 @@ J.prototype = {
|
|
|
761
761
|
originalEvent: e
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
764
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Le(n, o.draggable, t, !0), h("dragOver"), J.eventCanceled) return m;
|
|
765
765
|
if (V.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
766
766
|
if (xt = !1, c && !o.disabled && (l ? u || (a = H !== W) : K === this || (this.lastPutMode = yt.checkPull(this, c, V, e)) && s.checkPut(this, c, V, e))) {
|
|
767
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
767
|
+
if (f = this._getDirection(e, n) === "vertical", r = L(V), h("dragOverValid"), J.eventCanceled) return m;
|
|
768
768
|
if (a) return H = W, g(), this._hideClone(), h("revert"), J.eventCanceled || (ft ? W.insertBefore(V, ft) : W.appendChild(V)), _(!0);
|
|
769
|
-
var y =
|
|
769
|
+
var y = Ge(t, o.draggable);
|
|
770
770
|
if (!y || nn(e, f, this) && !y.animated) {
|
|
771
771
|
if (y === V) return _(!1);
|
|
772
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
772
|
+
if (y && t === e.target && (n = y), n && (i = L(n)), Qt(W, t, V, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(V, y.nextSibling) : t.appendChild(V), H = t, v(), _(!0);
|
|
773
773
|
} else if (y && tn(e, f, this)) {
|
|
774
|
-
var b =
|
|
774
|
+
var b = We(t, 0, o, !0);
|
|
775
775
|
if (b === V) return _(!1);
|
|
776
|
-
if (n = b, i =
|
|
776
|
+
if (n = b, i = L(n), Qt(W, t, V, r, n, i, e, !1) !== !1) return g(), t.insertBefore(V, b), H = t, v(), _(!0);
|
|
777
777
|
} else if (n.parentNode === t) {
|
|
778
|
-
i =
|
|
779
|
-
var x = 0, S, C = V.parentNode !== t, w = !Wt(V.animated && V.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E =
|
|
778
|
+
i = L(n);
|
|
779
|
+
var x = 0, S, C = V.parentNode !== t, w = !Wt(V.animated && V.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Ue(n, "top", "top") || Ue(V, "top", "top"), ee = E ? E.scrollTop : void 0;
|
|
780
780
|
At !== n && (S = i[T], Mt = !1, Nt = !w && o.invertSwap || C), x = rn(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Nt, At === n);
|
|
781
|
-
var
|
|
781
|
+
var te;
|
|
782
782
|
if (x !== 0) {
|
|
783
|
-
var
|
|
783
|
+
var D = Ke(V);
|
|
784
784
|
do
|
|
785
|
-
|
|
786
|
-
while (
|
|
785
|
+
D -= x, te = H.children[D];
|
|
786
|
+
while (te && (I(te, "display") === "none" || te === U));
|
|
787
787
|
}
|
|
788
|
-
if (x === 0 ||
|
|
788
|
+
if (x === 0 || te === n) return _(!1);
|
|
789
789
|
At = n, jt = x;
|
|
790
|
-
var
|
|
791
|
-
|
|
792
|
-
var
|
|
793
|
-
if (
|
|
790
|
+
var O = n.nextElementSibling, k = !1;
|
|
791
|
+
k = x === 1;
|
|
792
|
+
var A = Qt(W, t, V, r, n, i, e, k);
|
|
793
|
+
if (A !== !1) return (A === 1 || A === -1) && (k = A === 1), It = !0, setTimeout(en, 30), g(), k && !O ? t.appendChild(V) : n.parentNode.insertBefore(V, k ? O : n), E && tt(E, 0, ee - E.scrollTop), H = V.parentNode, S !== void 0 && !Nt && (Pt = Math.abs(S - L(n)[T])), v(), _(!0);
|
|
794
794
|
}
|
|
795
795
|
if (t.contains(V)) return _(!1);
|
|
796
796
|
}
|
|
@@ -798,19 +798,19 @@ J.prototype = {
|
|
|
798
798
|
},
|
|
799
799
|
_ignoreWhileAnimating: null,
|
|
800
800
|
_offMoveEvents: function() {
|
|
801
|
-
|
|
801
|
+
F(document, "mousemove", this._onTouchMove), F(document, "touchmove", this._onTouchMove), F(document, "pointermove", this._onTouchMove), F(document, "dragover", Yt), F(document, "mousemove", Yt), F(document, "touchmove", Yt);
|
|
802
802
|
},
|
|
803
803
|
_offUpEvents: function() {
|
|
804
804
|
var e = this.el.ownerDocument;
|
|
805
|
-
|
|
805
|
+
F(e, "mouseup", this._onDrop), F(e, "touchend", this._onDrop), F(e, "pointerup", this._onDrop), F(e, "pointercancel", this._onDrop), F(e, "touchcancel", this._onDrop), F(document, "selectstart", this);
|
|
806
806
|
},
|
|
807
807
|
_onDrop: function(e) {
|
|
808
808
|
var t = this.el, n = this.options;
|
|
809
|
-
if (gt =
|
|
809
|
+
if (gt = Ke(V), vt = Ke(V, n.draggable), z("drop", this, { evt: e }), H = V && V.parentNode, gt = Ke(V), vt = Ke(V, n.draggable), J.eventCanceled) {
|
|
810
810
|
this._nulling();
|
|
811
811
|
return;
|
|
812
812
|
}
|
|
813
|
-
bt = !1, Nt = !1, Mt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ln(this.cloneId), ln(this._dragStartId), this.nativeDraggable && (
|
|
813
|
+
bt = !1, Nt = !1, Mt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ln(this.cloneId), ln(this._dragStartId), this.nativeDraggable && (F(document, "drop", this), F(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), je && I(document.body, "user-select", ""), I(V, "transform", ""), e && (kt && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), U && U.parentNode && U.parentNode.removeChild(U), (W === H || K && K.lastPutMode !== "clone") && G && G.parentNode && G.parentNode.removeChild(G), V && (this.nativeDraggable && F(V, "dragend", this), $t(V), V.style["will-change"] = "", kt && !bt && ze(V, K ? K.options.ghostClass : this.options.ghostClass, !1), ze(V, this.options.chosenClass, !1), B({
|
|
814
814
|
sortable: this,
|
|
815
815
|
name: "unchoose",
|
|
816
816
|
toEl: H,
|
|
@@ -857,7 +857,7 @@ J.prototype = {
|
|
|
857
857
|
}), this.save()))), this._nulling();
|
|
858
858
|
},
|
|
859
859
|
_nulling: function() {
|
|
860
|
-
|
|
860
|
+
z("nulling", this), W = V = H = U = ft = G = pt = mt = Ct = wt = kt = gt = vt = ht = _t = At = jt = K = yt = J.dragged = J.ghost = J.clone = J.active = null;
|
|
861
861
|
var e = this.el;
|
|
862
862
|
Lt.forEach(function(t) {
|
|
863
863
|
e.contains(t) && (t.checked = !0);
|
|
@@ -879,14 +879,14 @@ J.prototype = {
|
|
|
879
879
|
}
|
|
880
880
|
},
|
|
881
881
|
toArray: function() {
|
|
882
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
882
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Le(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || on(t));
|
|
883
883
|
return e;
|
|
884
884
|
},
|
|
885
885
|
sort: function(e, t) {
|
|
886
886
|
var n = {}, r = this.el;
|
|
887
887
|
this.toArray().forEach(function(e, t) {
|
|
888
888
|
var i = r.children[t];
|
|
889
|
-
|
|
889
|
+
Le(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
890
890
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
891
891
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
892
892
|
}), t && this.animateAll();
|
|
@@ -896,25 +896,25 @@ J.prototype = {
|
|
|
896
896
|
e && e.set && e.set(this);
|
|
897
897
|
},
|
|
898
898
|
closest: function(e, t) {
|
|
899
|
-
return
|
|
899
|
+
return Le(e, t || this.options.draggable, this.el, !1);
|
|
900
900
|
},
|
|
901
901
|
option: function(e, t) {
|
|
902
902
|
var n = this.options;
|
|
903
903
|
if (t === void 0) return n[e];
|
|
904
|
-
var r =
|
|
904
|
+
var r = lt.modifyOption(this, e, t);
|
|
905
905
|
r === void 0 ? n[e] = t : n[e] = r, e === "group" && Kt(n);
|
|
906
906
|
},
|
|
907
907
|
destroy: function() {
|
|
908
|
-
|
|
908
|
+
z("destroy", this);
|
|
909
909
|
var e = this.el;
|
|
910
|
-
e[
|
|
910
|
+
e[R] = null, F(e, "mousedown", this._onTapStart), F(e, "touchstart", this._onTapStart), F(e, "pointerdown", this._onTapStart), this.nativeDraggable && (F(e, "dragover", this), F(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
911
911
|
e.removeAttribute("draggable");
|
|
912
912
|
}), this._onDrop(), this._disableDelayedDragEvents(), St.splice(St.indexOf(this.el), 1), this.el = e = null;
|
|
913
913
|
},
|
|
914
914
|
_hideClone: function() {
|
|
915
915
|
if (!mt) {
|
|
916
|
-
if (
|
|
917
|
-
|
|
916
|
+
if (z("hideClone", this), J.eventCanceled) return;
|
|
917
|
+
I(G, "display", "none"), this.options.removeCloneOnHide && G.parentNode && G.parentNode.removeChild(G), mt = !0;
|
|
918
918
|
}
|
|
919
919
|
},
|
|
920
920
|
_showClone: function(e) {
|
|
@@ -923,8 +923,8 @@ J.prototype = {
|
|
|
923
923
|
return;
|
|
924
924
|
}
|
|
925
925
|
if (mt) {
|
|
926
|
-
if (
|
|
927
|
-
V.parentNode == W && !this.options.group.revertClone ? W.insertBefore(G, V) : ft ? W.insertBefore(G, ft) : W.appendChild(G), this.options.group.revertClone && this.animate(V, G),
|
|
926
|
+
if (z("showClone", this), J.eventCanceled) return;
|
|
927
|
+
V.parentNode == W && !this.options.group.revertClone ? W.insertBefore(G, V) : ft ? W.insertBefore(G, ft) : W.appendChild(G), this.options.group.revertClone && this.animate(V, G), I(G, "display", ""), mt = !1;
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
};
|
|
@@ -932,11 +932,11 @@ function Zt(e) {
|
|
|
932
932
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
933
933
|
}
|
|
934
934
|
function Qt(e, t, n, r, i, a, o, s) {
|
|
935
|
-
var c, l = e[
|
|
936
|
-
return window.CustomEvent && !
|
|
935
|
+
var c, l = e[R], u = l.options.onMove, d;
|
|
936
|
+
return window.CustomEvent && !Oe && !ke ? c = new CustomEvent("move", {
|
|
937
937
|
bubbles: !0,
|
|
938
938
|
cancelable: !0
|
|
939
|
-
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a ||
|
|
939
|
+
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || L(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
940
940
|
}
|
|
941
941
|
function $t(e) {
|
|
942
942
|
e.draggable = !1;
|
|
@@ -945,11 +945,11 @@ function en() {
|
|
|
945
945
|
It = !1;
|
|
946
946
|
}
|
|
947
947
|
function tn(e, t, n) {
|
|
948
|
-
var r =
|
|
948
|
+
var r = L(We(n.el, 0, n.options, !0)), i = rt(n.el, n.options, U), a = 10;
|
|
949
949
|
return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
|
|
950
950
|
}
|
|
951
951
|
function nn(e, t, n) {
|
|
952
|
-
var r =
|
|
952
|
+
var r = L(Ge(n.el, n.options.draggable)), i = rt(n.el, n.options, U), a = 10;
|
|
953
953
|
return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
|
|
954
954
|
}
|
|
955
955
|
function rn(e, t, n, r, i, a, o, s) {
|
|
@@ -963,7 +963,7 @@ function rn(e, t, n, r, i, a, o, s) {
|
|
|
963
963
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
964
964
|
}
|
|
965
965
|
function an(e) {
|
|
966
|
-
return
|
|
966
|
+
return Ke(V) < Ke(e) ? 1 : -1;
|
|
967
967
|
}
|
|
968
968
|
function on(e) {
|
|
969
969
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
@@ -982,38 +982,38 @@ function cn(e) {
|
|
|
982
982
|
function ln(e) {
|
|
983
983
|
return clearTimeout(e);
|
|
984
984
|
}
|
|
985
|
-
Rt &&
|
|
985
|
+
Rt && P(document, "touchmove", function(e) {
|
|
986
986
|
(J.active || bt) && e.cancelable && e.preventDefault();
|
|
987
987
|
}), J.utils = {
|
|
988
|
-
on:
|
|
989
|
-
off:
|
|
990
|
-
css:
|
|
991
|
-
find:
|
|
988
|
+
on: P,
|
|
989
|
+
off: F,
|
|
990
|
+
css: I,
|
|
991
|
+
find: Ve,
|
|
992
992
|
is: function(e, t) {
|
|
993
|
-
return !!
|
|
994
|
-
},
|
|
995
|
-
extend:
|
|
996
|
-
throttle:
|
|
997
|
-
closest:
|
|
998
|
-
toggleClass:
|
|
999
|
-
clone:
|
|
1000
|
-
index:
|
|
993
|
+
return !!Le(e, t, e, !1);
|
|
994
|
+
},
|
|
995
|
+
extend: Xe,
|
|
996
|
+
throttle: $e,
|
|
997
|
+
closest: Le,
|
|
998
|
+
toggleClass: ze,
|
|
999
|
+
clone: nt,
|
|
1000
|
+
index: Ke,
|
|
1001
1001
|
nextTick: cn,
|
|
1002
1002
|
cancelNextTick: ln,
|
|
1003
1003
|
detectDirection: Ut,
|
|
1004
|
-
getChild:
|
|
1005
|
-
expando:
|
|
1004
|
+
getChild: We,
|
|
1005
|
+
expando: R
|
|
1006
1006
|
}, J.get = function(e) {
|
|
1007
|
-
return e[
|
|
1007
|
+
return e[R];
|
|
1008
1008
|
}, J.mount = function() {
|
|
1009
1009
|
var e = [...arguments];
|
|
1010
1010
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
1011
1011
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
1012
|
-
e.utils && (J.utils =
|
|
1012
|
+
e.utils && (J.utils = be(be({}, J.utils), e.utils)), lt.mount(e);
|
|
1013
1013
|
});
|
|
1014
1014
|
}, J.create = function(e, t) {
|
|
1015
1015
|
return new J(e, t);
|
|
1016
|
-
}, J.version =
|
|
1016
|
+
}, J.version = Ee;
|
|
1017
1017
|
var Y = [], un, dn, fn = !1, pn, mn, hn, gn;
|
|
1018
1018
|
function _n() {
|
|
1019
1019
|
function e() {
|
|
@@ -1028,14 +1028,14 @@ function _n() {
|
|
|
1028
1028
|
return e.prototype = {
|
|
1029
1029
|
dragStarted: function(e) {
|
|
1030
1030
|
var t = e.originalEvent;
|
|
1031
|
-
this.sortable.nativeDraggable ?
|
|
1031
|
+
this.sortable.nativeDraggable ? P(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? P(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? P(document, "touchmove", this._handleFallbackAutoScroll) : P(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1032
1032
|
},
|
|
1033
1033
|
dragOverCompleted: function(e) {
|
|
1034
1034
|
var t = e.originalEvent;
|
|
1035
1035
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1036
1036
|
},
|
|
1037
1037
|
drop: function() {
|
|
1038
|
-
this.sortable.nativeDraggable ?
|
|
1038
|
+
this.sortable.nativeDraggable ? F(document, "dragover", this._handleAutoScroll) : (F(document, "pointermove", this._handleFallbackAutoScroll), F(document, "touchmove", this._handleFallbackAutoScroll), F(document, "mousemove", this._handleFallbackAutoScroll)), yn(), vn(), et();
|
|
1039
1039
|
},
|
|
1040
1040
|
nulling: function() {
|
|
1041
1041
|
hn = dn = un = fn = gn = pn = mn = null, Y.length = 0;
|
|
@@ -1045,22 +1045,22 @@ function _n() {
|
|
|
1045
1045
|
},
|
|
1046
1046
|
_handleAutoScroll: function(e, t) {
|
|
1047
1047
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
1048
|
-
if (hn = e, t || this.options.forceAutoScrollFallback ||
|
|
1048
|
+
if (hn = e, t || this.options.forceAutoScrollFallback || ke || Oe || je) {
|
|
1049
1049
|
bn(e, this.options, a, t);
|
|
1050
|
-
var o =
|
|
1050
|
+
var o = Ye(a, !0);
|
|
1051
1051
|
fn && (!gn || r !== pn || i !== mn) && (gn && yn(), gn = setInterval(function() {
|
|
1052
|
-
var a =
|
|
1052
|
+
var a = Ye(document.elementFromPoint(r, i), !0);
|
|
1053
1053
|
a !== o && (o = a, vn()), bn(e, n.options, a, t);
|
|
1054
1054
|
}, 10), pn = r, mn = i);
|
|
1055
1055
|
} else {
|
|
1056
|
-
if (!this.options.bubbleScroll ||
|
|
1056
|
+
if (!this.options.bubbleScroll || Ye(a, !0) === He()) {
|
|
1057
1057
|
vn();
|
|
1058
1058
|
return;
|
|
1059
1059
|
}
|
|
1060
|
-
bn(e, this.options,
|
|
1060
|
+
bn(e, this.options, Ye(a, !1), !1);
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
},
|
|
1063
|
+
}, ve(e, {
|
|
1064
1064
|
pluginName: "scroll",
|
|
1065
1065
|
initializeByDefault: !0
|
|
1066
1066
|
});
|
|
@@ -1073,22 +1073,22 @@ function vn() {
|
|
|
1073
1073
|
function yn() {
|
|
1074
1074
|
clearInterval(gn);
|
|
1075
1075
|
}
|
|
1076
|
-
var bn =
|
|
1076
|
+
var bn = $e(function(e, t, n, r) {
|
|
1077
1077
|
if (t.scroll) {
|
|
1078
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
1079
|
-
dn !== n && (dn = n, vn(), un = t.scroll, u = t.scrollFn, un === !0 && (un =
|
|
1078
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = He(), l = !1, u;
|
|
1079
|
+
dn !== n && (dn = n, vn(), un = t.scroll, u = t.scrollFn, un === !0 && (un = Ye(n, !0)));
|
|
1080
1080
|
var d = 0, f = un;
|
|
1081
1081
|
do {
|
|
1082
|
-
var p = f, m =
|
|
1082
|
+
var p = f, m = L(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = I(p), E = p.scrollLeft, ee = p.scrollTop;
|
|
1083
1083
|
p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
|
|
1084
|
-
var
|
|
1085
|
-
if (!Y[d]) for (var
|
|
1086
|
-
(Y[d].vx !=
|
|
1084
|
+
var te = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), D = S && (Math.abs(g - a) <= o && ee + b < w) - (Math.abs(h - a) <= o && !!ee);
|
|
1085
|
+
if (!Y[d]) for (var O = 0; O <= d; O++) Y[O] || (Y[O] = {});
|
|
1086
|
+
(Y[d].vx != te || Y[d].vy != D || Y[d].el !== p) && (Y[d].el = p, Y[d].vx = te, Y[d].vy = D, clearInterval(Y[d].pid), (te != 0 || D != 0) && (l = !0, Y[d].pid = setInterval(function() {
|
|
1087
1087
|
r && this.layer === 0 && J.active._onTouchMove(hn);
|
|
1088
1088
|
var t = Y[this.layer].vy ? Y[this.layer].vy * s : 0, n = Y[this.layer].vx ? Y[this.layer].vx * s : 0;
|
|
1089
|
-
typeof u == "function" && u.call(J.dragged.parentNode[
|
|
1089
|
+
typeof u == "function" && u.call(J.dragged.parentNode[R], n, t, e, hn, Y[this.layer].el) !== "continue" || tt(Y[this.layer].el, n, t);
|
|
1090
1090
|
}.bind({ layer: d }), 24))), d++;
|
|
1091
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
1091
|
+
} while (t.bubbleScroll && f !== c && (f = Ye(f, !1)));
|
|
1092
1092
|
fn = l;
|
|
1093
1093
|
}
|
|
1094
1094
|
}, 30), xn = function(e) {
|
|
@@ -1112,11 +1112,11 @@ Sn.prototype = {
|
|
|
1112
1112
|
onSpill: function(e) {
|
|
1113
1113
|
var t = e.dragEl, n = e.putSortable;
|
|
1114
1114
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
1115
|
-
var r =
|
|
1115
|
+
var r = We(this.sortable.el, this.startIndex, this.options);
|
|
1116
1116
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
1117
1117
|
},
|
|
1118
1118
|
drop: xn
|
|
1119
|
-
},
|
|
1119
|
+
}, ve(Sn, { pluginName: "revertOnSpill" });
|
|
1120
1120
|
function Cn() {}
|
|
1121
1121
|
Cn.prototype = {
|
|
1122
1122
|
onSpill: function(e) {
|
|
@@ -1124,11 +1124,11 @@ Cn.prototype = {
|
|
|
1124
1124
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
1125
1125
|
},
|
|
1126
1126
|
drop: xn
|
|
1127
|
-
},
|
|
1127
|
+
}, ve(Cn, { pluginName: "removeOnSpill" }), J.mount(new _n()), J.mount(Cn, Sn);
|
|
1128
1128
|
//#endregion
|
|
1129
1129
|
//#region src/web-components/utils.ts
|
|
1130
1130
|
function wn() {
|
|
1131
|
-
let e =
|
|
1131
|
+
let e = D(!1), t = p()?.root || {};
|
|
1132
1132
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
1133
1133
|
}
|
|
1134
1134
|
//#endregion
|
|
@@ -1148,7 +1148,7 @@ var Tn = [
|
|
|
1148
1148
|
size: { type: null }
|
|
1149
1149
|
},
|
|
1150
1150
|
setup(e) {
|
|
1151
|
-
let t = e, n = wn(), i =
|
|
1151
|
+
let t = e, n = wn(), i = D(null), a = r(() => ({
|
|
1152
1152
|
"pv-icon": !0,
|
|
1153
1153
|
[`pv-icon-${t.size}`]: t.size != null && Tn.includes(t.size)
|
|
1154
1154
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
@@ -1229,7 +1229,7 @@ var Tn = [
|
|
|
1229
1229
|
return (e, t) => (E(), o("div", {
|
|
1230
1230
|
class: v(i.value),
|
|
1231
1231
|
"data-testid": "pv-counter-badge"
|
|
1232
|
-
},
|
|
1232
|
+
}, j(n.value), 3));
|
|
1233
1233
|
}
|
|
1234
1234
|
}), Nn = ".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%}", Pn = (e, t) => {
|
|
1235
1235
|
let n = e.__vccOpts || e;
|
|
@@ -1295,7 +1295,7 @@ var Tn = [
|
|
|
1295
1295
|
name: e.leftIcon,
|
|
1296
1296
|
"data-testid": "pv-button-left-icon"
|
|
1297
1297
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
1298
|
-
e.label ? (E(), o("span", Ln,
|
|
1298
|
+
e.label ? (E(), o("span", Ln, j(e.label), 1)) : a("v-if", !0),
|
|
1299
1299
|
e.rightCounterBadge ? (E(), i(Fn, {
|
|
1300
1300
|
key: 3,
|
|
1301
1301
|
value: e.rightCounterBadge,
|
|
@@ -2216,7 +2216,7 @@ function Ji(e, t, n = {}) {
|
|
|
2216
2216
|
}
|
|
2217
2217
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2218
2218
|
function Yi() {
|
|
2219
|
-
let e =
|
|
2219
|
+
let e = A(!1), t = p();
|
|
2220
2220
|
return t && C(() => {
|
|
2221
2221
|
e.value = !0;
|
|
2222
2222
|
}, t), e;
|
|
@@ -2291,7 +2291,7 @@ function $i(e, t, n = {}) {
|
|
|
2291
2291
|
};
|
|
2292
2292
|
}
|
|
2293
2293
|
function ea(e, t = {}) {
|
|
2294
|
-
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s =
|
|
2294
|
+
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = A(0), c = A(0), l = A(0), u = A(0), d = A(0), f = A(0), p = A(0), m = A(0);
|
|
2295
2295
|
function h() {
|
|
2296
2296
|
let t = Gi(e);
|
|
2297
2297
|
if (!t) {
|
|
@@ -2322,7 +2322,7 @@ function ea(e, t = {}) {
|
|
|
2322
2322
|
};
|
|
2323
2323
|
}
|
|
2324
2324
|
function ta(e, t = {}) {
|
|
2325
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Wi } = t, s =
|
|
2325
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Wi } = t, s = A(!1), c, l = (e) => {
|
|
2326
2326
|
let t = e ? n : i;
|
|
2327
2327
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
2328
2328
|
};
|
|
@@ -2359,11 +2359,11 @@ function sa(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r =
|
|
|
2359
2359
|
return a ? aa(a, t, r) : ra(e, t, r);
|
|
2360
2360
|
}
|
|
2361
2361
|
function ca(e, t = {}) {
|
|
2362
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = wn(), l = i ?? ie(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f =
|
|
2362
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = wn(), l = i ?? ie(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = D(d());
|
|
2363
2363
|
S(() => {
|
|
2364
2364
|
f.value = d();
|
|
2365
2365
|
});
|
|
2366
|
-
let p =
|
|
2366
|
+
let p = D(!1), m = null, h = null, g = () => {
|
|
2367
2367
|
m &&= (m.disconnect(), null), h &&= (h.removeEventListener("slotchange", _), null);
|
|
2368
2368
|
}, _ = () => {
|
|
2369
2369
|
if (!c.value) {
|
|
@@ -2408,7 +2408,7 @@ function ca(e, t = {}) {
|
|
|
2408
2408
|
//#region src/components/base/PvPopoverV2/useHoverPopoverGroup.ts
|
|
2409
2409
|
var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
2410
2410
|
let n = t.root.value;
|
|
2411
|
-
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n)) : !1;
|
|
2411
|
+
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n) || e.hoverArea?.value?.contains(n)) : !1;
|
|
2412
2412
|
}, da = (e) => (T(() => la.delete(e)), (t) => {
|
|
2413
2413
|
if (!t) {
|
|
2414
2414
|
la.delete(e);
|
|
@@ -2435,6 +2435,7 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2435
2435
|
type: Boolean,
|
|
2436
2436
|
default: !1
|
|
2437
2437
|
},
|
|
2438
|
+
hoverTarget: { type: String },
|
|
2438
2439
|
disableInteractive: {
|
|
2439
2440
|
type: Boolean,
|
|
2440
2441
|
default: !1
|
|
@@ -2493,11 +2494,12 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2493
2494
|
"position-try-fallbacks: flip-block",
|
|
2494
2495
|
"position-visibility: anchors-visible",
|
|
2495
2496
|
`anchor-scope: ${pa}`
|
|
2496
|
-
].every((e) => CSS.supports(e)), g =
|
|
2497
|
+
].every((e) => CSS.supports(e)), g = D(!1), v = D(null), y = D(null), x = D(null), S = D(null), w = r(() => t.hoverTarget && y.value?.closest(t.hoverTarget) || y.value), ee = ta(w), te = ta(S), O = D(!1), A = D(!1), j = D(!1), M = da({
|
|
2497
2498
|
root: v,
|
|
2498
2499
|
floating: S,
|
|
2499
|
-
|
|
2500
|
-
|
|
2500
|
+
hoverArea: r(() => t.hoverTarget ? w.value : null),
|
|
2501
|
+
close: () => t.disableClickOutsideToClose ? !1 : (be(), !0)
|
|
2502
|
+
}), ie = {
|
|
2501
2503
|
"top-center": "top",
|
|
2502
2504
|
"bottom-center": "bottom",
|
|
2503
2505
|
"center-left": "left",
|
|
@@ -2508,7 +2510,7 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2508
2510
|
"top-right": "top-end",
|
|
2509
2511
|
"bottom-left": "bottom-start",
|
|
2510
2512
|
"bottom-right": "bottom-end"
|
|
2511
|
-
},
|
|
2513
|
+
}, ae = {
|
|
2512
2514
|
"top-center": {
|
|
2513
2515
|
area: "top",
|
|
2514
2516
|
margin: "margin-block-end"
|
|
@@ -2549,30 +2551,30 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2549
2551
|
area: "bottom span-left",
|
|
2550
2552
|
margin: "margin-block-start"
|
|
2551
2553
|
}
|
|
2552
|
-
},
|
|
2554
|
+
}, se = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), ce = r(() => ({
|
|
2553
2555
|
width: "fit-content",
|
|
2554
2556
|
...h ? { "anchor-scope": pa } : void 0,
|
|
2555
2557
|
...t.cssCustomProperties
|
|
2556
|
-
})),
|
|
2557
|
-
let e =
|
|
2558
|
+
})), ue = r(() => h ? { "anchor-name": pa } : void 0), de = r(() => {
|
|
2559
|
+
let e = ae[t.position];
|
|
2558
2560
|
return {
|
|
2559
2561
|
"position-anchor": pa,
|
|
2560
2562
|
"position-area": e.area,
|
|
2561
2563
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
2562
2564
|
[e.margin]: `${t.offset ?? 0}px`
|
|
2563
2565
|
};
|
|
2564
|
-
}),
|
|
2566
|
+
}), fe = () => {}, pe = () => ({});
|
|
2565
2567
|
if (!h) {
|
|
2566
2568
|
let e = [];
|
|
2567
2569
|
t.disableAutoPlacement || e.push(_i({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(gi(t.offset));
|
|
2568
2570
|
let n = Oi(x, S, {
|
|
2569
|
-
placement:
|
|
2571
|
+
placement: ie[t.position],
|
|
2570
2572
|
strategy: t.positioningStrategy,
|
|
2571
2573
|
middleware: e
|
|
2572
2574
|
});
|
|
2573
|
-
|
|
2575
|
+
fe = n.update, pe = () => n.floatingStyles.value;
|
|
2574
2576
|
let i = ea(x), a = /* @__PURE__ */ Vi(() => {
|
|
2575
|
-
c.value &&
|
|
2577
|
+
c.value && fe();
|
|
2576
2578
|
}, 5);
|
|
2577
2579
|
N([
|
|
2578
2580
|
i.top,
|
|
@@ -2580,111 +2582,111 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2580
2582
|
i.width,
|
|
2581
2583
|
i.height
|
|
2582
2584
|
], a), Ji(v, () => {
|
|
2583
|
-
t.disableClickOutsideToClose ||
|
|
2585
|
+
t.disableClickOutsideToClose || ye(!1);
|
|
2584
2586
|
}, { ignore: r(() => [
|
|
2585
2587
|
S.value,
|
|
2586
2588
|
".p-datepicker-panel",
|
|
2587
2589
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
2588
2590
|
]) });
|
|
2589
2591
|
}
|
|
2590
|
-
let
|
|
2591
|
-
...
|
|
2592
|
+
let me = r(() => ({
|
|
2593
|
+
...pe(),
|
|
2592
2594
|
zIndex: t.zIndex
|
|
2593
|
-
})),
|
|
2594
|
-
me && clearTimeout(me), me = void 0;
|
|
2595
|
-
}, _e = () => {
|
|
2595
|
+
})), he, ge, _e = () => {
|
|
2596
2596
|
he && clearTimeout(he), he = void 0;
|
|
2597
|
-
}, P = (e) => {
|
|
2598
|
-
ge(), _e(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? me = setTimeout(() => {
|
|
2599
|
-
c.value = !0, me = void 0;
|
|
2600
|
-
}, t.delay) : c.value = e);
|
|
2601
2597
|
}, ve = () => {
|
|
2602
|
-
ge
|
|
2603
|
-
}, ye = () => {
|
|
2598
|
+
ge && clearTimeout(ge), ge = void 0;
|
|
2599
|
+
}, ye = (e) => {
|
|
2600
|
+
_e(), ve(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? he = setTimeout(() => {
|
|
2601
|
+
c.value = !0, he = void 0;
|
|
2602
|
+
}, t.delay) : c.value = e);
|
|
2603
|
+
}, be = () => {
|
|
2604
|
+
_e(), ve(), c.value = !1;
|
|
2605
|
+
}, xe = () => {
|
|
2604
2606
|
let e = S.value;
|
|
2605
2607
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
2606
|
-
},
|
|
2608
|
+
}, Se = r(() => !!c.value && (te.value || A.value)), Ce = r(() => !t.showOnHover || j.value ? !1 : t.disableInteractive ? ee.value || O.value : ee.value || O.value || Se.value);
|
|
2607
2609
|
N([
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2610
|
+
ee,
|
|
2611
|
+
O,
|
|
2612
|
+
A
|
|
2611
2613
|
], ([e, t, n]) => {
|
|
2612
2614
|
!e && !t && !n && (j.value = !1);
|
|
2613
2615
|
});
|
|
2614
|
-
let
|
|
2615
|
-
|
|
2616
|
-
},
|
|
2617
|
-
|
|
2618
|
-
},
|
|
2619
|
-
|
|
2620
|
-
},
|
|
2616
|
+
let we = ({ target: e }) => {
|
|
2617
|
+
O.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
2618
|
+
}, Te = ({ target: e }) => {
|
|
2619
|
+
A.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
2620
|
+
}, Ee = () => {
|
|
2621
|
+
A.value = !1;
|
|
2622
|
+
}, De = () => {
|
|
2621
2623
|
if (t.showOnHover) {
|
|
2622
2624
|
if (t.disableClickOutsideToClose) return;
|
|
2623
|
-
if (!c.value && !
|
|
2624
|
-
j.value = !1,
|
|
2625
|
+
if (!c.value && !he && t.enableClickToggle) {
|
|
2626
|
+
j.value = !1, ye(!0);
|
|
2625
2627
|
return;
|
|
2626
2628
|
}
|
|
2627
|
-
j.value = !0,
|
|
2629
|
+
j.value = !0, be();
|
|
2628
2630
|
return;
|
|
2629
2631
|
}
|
|
2630
|
-
|
|
2631
|
-
},
|
|
2632
|
+
ye(he ? !1 : !c.value);
|
|
2633
|
+
}, Oe = (e) => {
|
|
2632
2634
|
let t = e.newState === "open";
|
|
2633
2635
|
c.value !== t && (c.value = t);
|
|
2634
|
-
},
|
|
2635
|
-
h &&
|
|
2636
|
+
}, ke = (e) => {
|
|
2637
|
+
h && se.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), ye(!1));
|
|
2636
2638
|
};
|
|
2637
2639
|
return N(c, async (e) => {
|
|
2638
|
-
if (t.showOnHover && t.enableGroupSync &&
|
|
2639
|
-
e &&
|
|
2640
|
+
if (t.showOnHover && t.enableGroupSync && M(!!e), !h) {
|
|
2641
|
+
e && fe();
|
|
2640
2642
|
return;
|
|
2641
2643
|
}
|
|
2642
|
-
await _(),
|
|
2643
|
-
}), N(
|
|
2644
|
+
await _(), xe();
|
|
2645
|
+
}), N(Ce, (e) => {
|
|
2644
2646
|
if (t.showOnHover) {
|
|
2645
2647
|
if (e) {
|
|
2646
|
-
|
|
2648
|
+
ye(!0);
|
|
2647
2649
|
return;
|
|
2648
2650
|
}
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
}, t.closeDelay)) :
|
|
2651
|
+
_e(), t.closeDelay > 0 ? (ve(), ge = setTimeout(() => {
|
|
2652
|
+
ge = void 0, Ce.value || ye(!1);
|
|
2653
|
+
}, t.closeDelay)) : ye(!1);
|
|
2652
2654
|
}
|
|
2653
2655
|
}), N(m, (e) => {
|
|
2654
|
-
e ? h && c.value && _(
|
|
2656
|
+
e ? h && c.value && _(xe) : be();
|
|
2655
2657
|
}), C(() => {
|
|
2656
|
-
x.value = y.value, g.value = !0, c.value && _(() => h ?
|
|
2658
|
+
x.value = y.value, g.value = !0, c.value && _(() => h ? xe() : fe());
|
|
2657
2659
|
}), T(() => {
|
|
2658
|
-
|
|
2660
|
+
_e(), ve();
|
|
2659
2661
|
}), N(() => t.disabled, (e) => {
|
|
2660
2662
|
if (!e) {
|
|
2661
|
-
|
|
2663
|
+
Ce.value && ye(!0);
|
|
2662
2664
|
return;
|
|
2663
2665
|
}
|
|
2664
|
-
|
|
2666
|
+
O.value &&= !1, A.value &&= !1, ye(!1);
|
|
2665
2667
|
}), (r, l) => (E(), o("div", {
|
|
2666
2668
|
ref_key: "root",
|
|
2667
2669
|
ref: v,
|
|
2668
|
-
style: b(
|
|
2669
|
-
onKeydown:
|
|
2670
|
+
style: b(ce.value),
|
|
2671
|
+
onKeydown: ke
|
|
2670
2672
|
}, [s("div", {
|
|
2671
2673
|
ref_key: "triggerWrapper",
|
|
2672
2674
|
ref: y,
|
|
2673
|
-
style: b(
|
|
2674
|
-
onClick:
|
|
2675
|
-
onFocusin:
|
|
2676
|
-
onFocusout: l[0] ||= (e) =>
|
|
2677
|
-
}, [
|
|
2675
|
+
style: b(ue.value),
|
|
2676
|
+
onClick: De,
|
|
2677
|
+
onFocusin: we,
|
|
2678
|
+
onFocusout: l[0] ||= (e) => O.value = !1
|
|
2679
|
+
}, [k(r.$slots, "trigger")], 36), g.value && ne(h) && m.value ? (E(), o("div", {
|
|
2678
2680
|
key: 0,
|
|
2679
2681
|
ref_key: "floating",
|
|
2680
2682
|
ref: S,
|
|
2681
2683
|
class: "pv-floating pv-floating-native",
|
|
2682
|
-
popover:
|
|
2683
|
-
style: b(
|
|
2684
|
-
onToggle:
|
|
2685
|
-
onFocusin:
|
|
2686
|
-
onFocusout:
|
|
2687
|
-
}, [e.disabled ? a("v-if", !0) :
|
|
2684
|
+
popover: se.value,
|
|
2685
|
+
style: b(de.value),
|
|
2686
|
+
onToggle: Oe,
|
|
2687
|
+
onFocusin: Te,
|
|
2688
|
+
onFocusout: Ee
|
|
2689
|
+
}, [e.disabled ? a("v-if", !0) : k(r.$slots, "content", { key: 0 })], 44, fa)) : m.value ? (E(), i(n, {
|
|
2688
2690
|
key: 1,
|
|
2689
2691
|
to: e.teleportLocation,
|
|
2690
2692
|
disabled: !t.useTeleport || e.disabled
|
|
@@ -2692,10 +2694,10 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2692
2694
|
ref_key: "floating",
|
|
2693
2695
|
ref: S,
|
|
2694
2696
|
class: "pv-floating",
|
|
2695
|
-
style: b(
|
|
2696
|
-
onFocusin:
|
|
2697
|
-
onFocusout:
|
|
2698
|
-
}, [
|
|
2697
|
+
style: b(me.value),
|
|
2698
|
+
onFocusin: Te,
|
|
2699
|
+
onFocusout: Ee
|
|
2700
|
+
}, [k(r.$slots, "content")], 36), [[oe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
2699
2701
|
}
|
|
2700
2702
|
}), ha = ["data-variant"], ga = /* @__PURE__ */ d({
|
|
2701
2703
|
__name: "PvTooltipV2",
|
|
@@ -2720,6 +2722,7 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2720
2722
|
type: Boolean,
|
|
2721
2723
|
default: !0
|
|
2722
2724
|
},
|
|
2725
|
+
hoverTarget: { type: String },
|
|
2723
2726
|
disableInteractive: {
|
|
2724
2727
|
type: Boolean,
|
|
2725
2728
|
default: !1
|
|
@@ -2743,7 +2746,7 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2743
2746
|
setup(e) {
|
|
2744
2747
|
let t = e, n = p(), a = typeof HTMLElement < "u" && n && "ce" in n && n.ce instanceof HTMLElement ? n.ce : void 0, { hasVueSlot: o, hasNativeSlot: u } = ca("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
2745
2748
|
return (t, n) => (E(), i(ma, y(h(t.$props)), c({
|
|
2746
|
-
trigger: ce(() => [
|
|
2749
|
+
trigger: ce(() => [k(t.$slots, "trigger", {}, () => [s("p", null, j(e.label), 1)])]),
|
|
2747
2750
|
_: 2
|
|
2748
2751
|
}, [f.value ? {
|
|
2749
2752
|
name: "content",
|
|
@@ -2751,7 +2754,7 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2751
2754
|
class: v(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
2752
2755
|
role: "tooltip",
|
|
2753
2756
|
"data-variant": e.variant
|
|
2754
|
-
}, [
|
|
2757
|
+
}, [k(t.$slots, "content", {}, () => [l(j(e.description), 1)])], 10, ha)]),
|
|
2755
2758
|
key: "0"
|
|
2756
2759
|
} : void 0]), 1040));
|
|
2757
2760
|
}
|
|
@@ -2829,11 +2832,11 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2829
2832
|
if (t?.id?.startsWith(Ea)) return !1;
|
|
2830
2833
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
2831
2834
|
if (!r || n.options.find((e) => e.id === t?.id && l(e))) return !1;
|
|
2832
|
-
if (
|
|
2835
|
+
if (A(r)) return !0;
|
|
2833
2836
|
if (M.value) return !1;
|
|
2834
2837
|
if (t?.id === Ta) return !0;
|
|
2835
2838
|
let i = n.options.find((e) => e.id === t?.id);
|
|
2836
|
-
return !!i &&
|
|
2839
|
+
return !!i && A(i);
|
|
2837
2840
|
},
|
|
2838
2841
|
onEnd: (e) => {
|
|
2839
2842
|
if (S = null, w) {
|
|
@@ -2851,30 +2854,30 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2851
2854
|
}), T(() => {
|
|
2852
2855
|
x &&= (x.destroy(), null);
|
|
2853
2856
|
});
|
|
2854
|
-
let
|
|
2857
|
+
let te = (e) => {
|
|
2855
2858
|
e.preventDefault(), S && e.currentTarget.classList.add("placeholder-drag-over");
|
|
2856
|
-
},
|
|
2859
|
+
}, D = (e) => {
|
|
2857
2860
|
e.currentTarget.classList.remove("placeholder-drag-over");
|
|
2858
|
-
},
|
|
2861
|
+
}, k = (e, t) => {
|
|
2859
2862
|
if (e.preventDefault(), e.currentTarget.classList.remove("placeholder-drag-over"), S) {
|
|
2860
2863
|
let e = S.id, r = n.options.find((t) => t.id === e);
|
|
2861
|
-
if (r && !
|
|
2864
|
+
if (r && !A(r)) {
|
|
2862
2865
|
let e = [...c.value];
|
|
2863
2866
|
e.splice(t - 1, 0, r), c.value = f(e), S.parentNode && S.parentNode.removeChild(S), w = !0;
|
|
2864
2867
|
}
|
|
2865
2868
|
}
|
|
2866
|
-
},
|
|
2867
|
-
if (!l(e)) if (
|
|
2869
|
+
}, A = (e) => c.value.some((t) => t.id === e.id), M = r(() => n.activeOptionLimit ? c.value.length >= n.activeOptionLimit : !1), ne = (e) => {
|
|
2870
|
+
if (!l(e)) if (A(e)) c.value = c.value.filter((t) => t.id !== e.id);
|
|
2868
2871
|
else {
|
|
2869
2872
|
if (n.activeOptionLimit && c.value.length >= n.activeOptionLimit) return;
|
|
2870
2873
|
c.value = c.value.concat([e]);
|
|
2871
2874
|
}
|
|
2872
|
-
}, ie = (e) => !
|
|
2875
|
+
}, ie = (e) => !A(e) && n.activeOptionLimit && c.value.length >= n.activeOptionLimit || e.disabled, oe = (e) => {
|
|
2873
2876
|
let t = { padding: "4px 8px" };
|
|
2874
|
-
return
|
|
2877
|
+
return A(e) && (l(e) ? t.backgroundColor = "var(--color-background-accent, #f7f8f8)" : (t.backgroundColor = "var(--color-background-highlight, #E4F8F6)", t.borderColor = "var(--color-border-brand, #16696D)")), t;
|
|
2875
2878
|
}, N = (e) => {
|
|
2876
2879
|
let t = {};
|
|
2877
|
-
return ie(e) && (t.backgroundColor = "transparent"), !
|
|
2880
|
+
return ie(e) && (t.backgroundColor = "transparent"), !A(e) && !ie(e) ? t.color = "var(--color-text-brand, #16696D)" : t.color = "var(--color-text-quaternary, #89989B)", t;
|
|
2878
2881
|
};
|
|
2879
2882
|
return (e, r) => (E(), o("div", {
|
|
2880
2883
|
ref_key: "containerRef",
|
|
@@ -2883,7 +2886,7 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2883
2886
|
ref_key: "sortableListRef",
|
|
2884
2887
|
ref: _,
|
|
2885
2888
|
role: "list"
|
|
2886
|
-
}, [(E(!0), o(t, null,
|
|
2889
|
+
}, [(E(!0), o(t, null, O(g.value, (e) => (E(), o("li", {
|
|
2887
2890
|
key: e.id,
|
|
2888
2891
|
id: e.id,
|
|
2889
2892
|
class: "pv-stack-4"
|
|
@@ -2893,25 +2896,25 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2893
2896
|
}, null, 8, ya)])) : e.id.includes(Ea) ? (E(), o("div", {
|
|
2894
2897
|
key: 1,
|
|
2895
2898
|
class: "placeholder-zone",
|
|
2896
|
-
onDragover: r[0] ||= (e) =>
|
|
2897
|
-
onDragleave: r[1] ||= (e) =>
|
|
2898
|
-
onDrop: (t) =>
|
|
2899
|
-
}, [s("div", xa, [s("span", Sa,
|
|
2899
|
+
onDragover: r[0] ||= (e) => te(e),
|
|
2900
|
+
onDragleave: r[1] ||= (e) => D(e),
|
|
2901
|
+
onDrop: (t) => k(t, parseInt(e.id.split("-")[1]) + 1)
|
|
2902
|
+
}, [s("div", xa, [s("span", Sa, j(n.placeholderText), 1)])], 40, ba)) : (E(), o("div", {
|
|
2900
2903
|
key: 2,
|
|
2901
|
-
class: v(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", [!
|
|
2904
|
+
class: v(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", [!A(e) && M.value ? "pv-menu-item-disabled" : "", l(e) ? "pv-sortable-locked" : ""]]),
|
|
2902
2905
|
style: b(oe(e))
|
|
2903
2906
|
}, [s("div", { class: v(["pv-flex pv-full-width pv-sort-option", { "pv-sort-option-locked": l(e) }]) }, [
|
|
2904
2907
|
a(" Locked entries gray their icons and text so they read as immovable at a\n glance; unlocked active entries keep the brand color. "),
|
|
2905
2908
|
u(Dn, {
|
|
2906
|
-
class: v(
|
|
2909
|
+
class: v(A(e) && !l(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
2907
2910
|
name: l(e) ? "lock" : "reorder"
|
|
2908
2911
|
}, null, 8, ["class", "name"]),
|
|
2909
2912
|
e.icon ? (E(), i(Dn, {
|
|
2910
2913
|
key: 0,
|
|
2911
|
-
class: v(
|
|
2914
|
+
class: v(A(e) && !l(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
2912
2915
|
name: e.icon
|
|
2913
2916
|
}, null, 8, ["class", "name"])) : a("v-if", !0),
|
|
2914
|
-
s("span", { class: v(["pv-text-body-sm", { "pv-text-tertiary": l(e) }]) },
|
|
2917
|
+
s("span", { class: v(["pv-text-body-sm", { "pv-text-tertiary": l(e) }]) }, j(e.text), 3),
|
|
2915
2918
|
a(" Teleported so the tooltip escapes the picker's scroll container; dark variant\n matches the panel's other info tips. "),
|
|
2916
2919
|
l(e) && d(e) ? (E(), i(ga, {
|
|
2917
2920
|
key: 1,
|
|
@@ -2924,13 +2927,13 @@ var la = /* @__PURE__ */ new Set(), ua = (e, t) => {
|
|
|
2924
2927
|
class: "pv-text-tertiary",
|
|
2925
2928
|
name: "info-circle"
|
|
2926
2929
|
})]),
|
|
2927
|
-
content: ce(() => [s("div", Ca,
|
|
2930
|
+
content: ce(() => [s("div", Ca, j(d(e)), 1)]),
|
|
2928
2931
|
_: 2
|
|
2929
2932
|
}, 1024)) : a("v-if", !0)
|
|
2930
2933
|
], 2), !ie(e) && !l(e) ? (E(), i(Rn, {
|
|
2931
2934
|
key: 0,
|
|
2932
|
-
"left-icon":
|
|
2933
|
-
ariaLabel:
|
|
2935
|
+
"left-icon": A(e) ? "remove-circle" : "add-circle",
|
|
2936
|
+
ariaLabel: A(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
2934
2937
|
variant: "ghost",
|
|
2935
2938
|
style: b(N(e)),
|
|
2936
2939
|
onClick: (t) => ne(e)
|
|
@@ -3274,7 +3277,7 @@ var Oo = {
|
|
|
3274
3277
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
3275
3278
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
3276
3279
|
if (Z(a) && o.transform !== "strict") {
|
|
3277
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = co(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = co(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = co(x, ["dark"]), w = y || {}, { dark: T } = w, E = co(w, ["dark"]), ee = Z(t) ? this._toVariables({ primitive: t }, o) : {},
|
|
3280
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = co(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = co(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = co(x, ["dark"]), w = y || {}, { dark: T } = w, E = co(w, ["dark"]), ee = Z(t) ? this._toVariables({ primitive: t }, o) : {}, te = Z(_) ? this._toVariables({ semantic: _ }, o) : {}, D = Z(C) ? this._toVariables({ light: C }, o) : {}, O = Z(S) ? this._toVariables({ dark: S }, o) : {}, k = Z(b) ? this._toVariables({ semantic: b }, o) : {}, A = Z(E) ? this._toVariables({ light: E }, o) : {}, j = Z(T) ? this._toVariables({ dark: T }, o) : {}, [M, ne] = [ee.declarations ?? "", ee.tokens], [re, ie] = [te.declarations ?? "", te.tokens || []], [ae, oe] = [D.declarations ?? "", D.tokens || []], [N, se] = [O.declarations ?? "", O.tokens || []], [ce, le] = [k.declarations ?? "", k.tokens || []], [ue, de] = [A.declarations ?? "", A.tokens || []], [fe, pe] = [j.declarations ?? "", j.tokens || []];
|
|
3278
3281
|
s = this.transformCSS(e, M, "light", "variable", o, r, i), c = ne, l = `${this.transformCSS(e, `${re}${ae}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${N}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
3279
3282
|
...ie,
|
|
3280
3283
|
...oe,
|
|
@@ -3308,11 +3311,11 @@ var Oo = {
|
|
|
3308
3311
|
"colorScheme",
|
|
3309
3312
|
"extend",
|
|
3310
3313
|
"css"
|
|
3311
|
-
]), h = f || {}, { colorScheme: g } = h, _ = co(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = co(v, ["dark"]), x = g || {}, { dark: S } = x, C = co(x, ["dark"]), w = Z(m) ? this._toVariables({ [r]: oo(oo({}, m), _) }, n) : {}, T = Z(b) ? this._toVariables({ [r]: oo(oo({}, b), C) }, n) : {}, E = Z(y) ? this._toVariables({ [r]: oo(oo({}, y), S) }, n) : {}, [ee,
|
|
3312
|
-
s = `${this.transformCSS(r, `${ee}${
|
|
3313
|
-
...
|
|
3314
|
-
...
|
|
3315
|
-
...
|
|
3314
|
+
]), h = f || {}, { colorScheme: g } = h, _ = co(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = co(v, ["dark"]), x = g || {}, { dark: S } = x, C = co(x, ["dark"]), w = Z(m) ? this._toVariables({ [r]: oo(oo({}, m), _) }, n) : {}, T = Z(b) ? this._toVariables({ [r]: oo(oo({}, b), C) }, n) : {}, E = Z(y) ? this._toVariables({ [r]: oo(oo({}, y), S) }, n) : {}, [ee, te] = [w.declarations ?? "", w.tokens || []], [D, O] = [T.declarations ?? "", T.tokens || []], [k, A] = [E.declarations ?? "", E.tokens || []];
|
|
3315
|
+
s = `${this.transformCSS(r, `${ee}${D}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, k, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
3316
|
+
...te,
|
|
3317
|
+
...O,
|
|
3318
|
+
...A
|
|
3316
3319
|
])], l = za(p, { dt: wo });
|
|
3317
3320
|
}
|
|
3318
3321
|
return {
|
|
@@ -3671,10 +3674,10 @@ function Io(e) {
|
|
|
3671
3674
|
}
|
|
3672
3675
|
var Lo = 0;
|
|
3673
3676
|
function Ro(e) {
|
|
3674
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
3677
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = D(!1), r = D(e), i = D(null), a = Za() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++Lo}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, ee = E === void 0 ? void 0 : E, O = t.props, k = O === void 0 ? {} : O, A = function() {}, j = function(t) {
|
|
3675
3678
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3676
3679
|
if (s) {
|
|
3677
|
-
var o = Mo(Mo({},
|
|
3680
|
+
var o = Mo(Mo({}, k), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
3678
3681
|
i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e, Xa(i.value, {
|
|
3679
3682
|
type: "text/css",
|
|
3680
3683
|
id: l,
|
|
@@ -3682,21 +3685,21 @@ function Ro(e) {
|
|
|
3682
3685
|
nonce: u
|
|
3683
3686
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), Qa(i.value, "data-primevue-style-id", c), Xa(i.value, o), i.value.onload = function(e) {
|
|
3684
3687
|
return ee?.(e, { name: c });
|
|
3685
|
-
}, C?.(c)), !n.value && (
|
|
3688
|
+
}, C?.(c)), !n.value && (A = N(r, function(e) {
|
|
3686
3689
|
i.value.textContent = e, T?.(c);
|
|
3687
3690
|
}, { immediate: !0 }), n.value = !0);
|
|
3688
3691
|
}
|
|
3689
3692
|
};
|
|
3690
|
-
return l && !d && Io(
|
|
3693
|
+
return l && !d && Io(j), {
|
|
3691
3694
|
id: h,
|
|
3692
3695
|
name: p,
|
|
3693
3696
|
el: i,
|
|
3694
3697
|
css: r,
|
|
3695
3698
|
unload: function() {
|
|
3696
|
-
!s || !n.value || (
|
|
3699
|
+
!s || !n.value || (A(), Ja(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
3697
3700
|
},
|
|
3698
|
-
load:
|
|
3699
|
-
isLoaded:
|
|
3701
|
+
load: j,
|
|
3702
|
+
isLoaded: te(n)
|
|
3700
3703
|
};
|
|
3701
3704
|
}
|
|
3702
3705
|
//#endregion
|
|
@@ -4184,7 +4187,7 @@ function ms() {
|
|
|
4184
4187
|
}), ps = [];
|
|
4185
4188
|
}
|
|
4186
4189
|
function hs(e, t) {
|
|
4187
|
-
var n =
|
|
4190
|
+
var n = D(!1), r = function() {
|
|
4188
4191
|
if (t.config?.theme !== "none" && !$.isStyleNameLoaded("common")) {
|
|
4189
4192
|
var e, n = ns.getCommonTheme?.call(ns) || {}, r = n.primitive, i = n.semantic, a = n.global, o = n.style, s = { nonce: (e = t.config) == null || (e = e.csp) == null ? void 0 : e.nonce };
|
|
4190
4193
|
ns.load(r?.css, os({ name: "primitive-variables" }, s)), ns.load(i?.css, os({ name: "semantic-variables" }, s)), ns.load(a?.css, os({ name: "global-variables" }, s)), ns.loadStyle(os({ name: "global-style" }, s), o), $.setLoadedStyleName("common");
|